/* ========================================
   cleanup-puzzle - Global Styles
   unityroom-inspired flat design
   ======================================== */

:root {
	--bg-body: #f5f5f5;
	--bg-white: #ffffff;
	--bg-dark: #1a1a2e;
	--text-primary: #333333;
	--text-secondary: #555555;
	--text-light: #999999;
	--accent: #4a90d9;
	--accent-hover: #357abd;
	--border: #e0e0e0;
	--border-light: #eeeeee;
	--success: #27ae60;
	--danger: #e74c3c;
	--bg-gray: #e5ecf4;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family:
		-apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN",
		Roboto, "Helvetica Neue", Arial, sans-serif;
	background: var(--bg-body);
	color: var(--text-primary);
	line-height: 1.6;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
}

/* ========================================
   Site Header
   ======================================== */

.site-header {
	background: var(--bg-white);
	border-bottom: 1px solid var(--border);
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 56px;
}

.site-logo {
	font-size: 20px;
	font-weight: 800;
	text-decoration: none;
	color: var(--text-primary);
	display: flex;
	align-items: center;
	gap: 8px;
	letter-spacing: -0.3px;
}

.site-logo-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background: var(--accent);
	border-radius: 6px;
	font-size: 14px;
	font-weight: 800;
	color: #fff;
}

.site-nav {
	display: flex;
	gap: 0;
	font-size: 13px;
}

.site-nav span {
	color: var(--text-secondary);
	padding: 8px 14px;
	border-radius: 4px;
}

/* ========================================
   Main Content
   ======================================== */

.main-content {
	background-color: var(--bg-white);
}

/* ========================================
   Game Info Section
   ======================================== */

.game-title-section {
	border-radius: 4px;
	padding: 24px;
	max-width: 860px;
	margin: 0 auto;
}

.game-title {
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 10px;
}

.share-buttons {
	display: flex;
	gap: 8px;
	margin-top: 16px;
	justify-content: center;
}

.share-btn {
	padding: 8px 20px;
	border: none;
	border-radius: 4px;
	background: #000;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.share-btn:hover {
	background: #333;
}

.developer-info {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.developer-icon {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
}

.developer-name {
	font-size: 14px;
	font-weight: 600;
	color: var(--accent);
}

.game-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.game-tag {
	padding: 2px 10px;
	background: #f0f0f0;
	color: var(--text-secondary);
	border-radius: 3px;
	font-size: 12px;
}

.game-meta-dates {
	font-size: 12px;
	color: var(--text-light);
	display: flex;
	gap: 6px;
	align-items: center;
}

.game-meta-dates span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

/* ========================================
   Game Container — Pastel Cute Theme
   ======================================== */

.game-section {
	background: var(--bg-gray);
	padding: 48px 24px;
}

.game-wrapper {
	background: url('../images/bg.png') left / cover no-repeat;
	border-radius: 16px;
	padding: 40px 10px 10px;
	color: #5a4a3a;
	position: relative;
	max-width: 860px;
	margin: auto;
	box-shadow: 0 4px 24px rgba(180, 140, 100, 0.13);
	font-family: "Zen Maru Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
}

.game-wrapper.is-fullscreen {
	border-radius: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 100vh;
	padding: 24px;
	background: url('../images/bg.png') left / cover no-repeat;
}

/* Game Header */
.game-header {
	margin-bottom: 16px;
}

.difficulty-select {
	display: flex;
	gap: 6px;
	justify-content: center;
}

.diff-btn {
	padding: 6px 18px;
	background: #fff;
	border: 2px solid #e8d5c4;
	color: #9a8a7a;
	border-radius: 20px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	transition: all 0.15s ease;
}

.diff-btn:hover {
	background: #fff5ee;
	border-color: #d4b8a0;
	color: #7a6a5a;
}

.diff-btn.active {
	background: #ff816d;
	border-color: #ff816d;
	color: #fff;
	box-shadow: 0 2px 8px rgba(248, 180, 200, 0.4);
}

.game-info {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 15px;
	font-variant-numeric: tabular-nums;
	color: #7a6a5a;
}

.mine-count-icon {
	width: 24px;
	height: 24px;
	object-fit: contain;
}

.mine-count,
.timer {
	min-width: 70px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 600;
}

.timer {
	text-align: right;
	justify-content: flex-end;
}

.restart-btn {
	background: #fff;
	border: 2px solid #e8d5c4;
	color: #9a8a7a;
	font-size: 14px;
	cursor: pointer;
	padding: 5px 14px;
	border-radius: 20px;
	line-height: 1;
	transition: all 0.15s ease;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 600;
	font-family: inherit;
}

.restart-btn:hover {
	background: #fff5ee;
	border-color: #d4b8a0;
	color: #7a6a5a;
}

.restart-btn:active {
	transform: scale(0.96);
}

.bottom-bar {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 16px;
	margin-top: 12px;
}

/* Board */
.board {
	display: grid;
	gap: 3px;
	margin: 0 auto;
	max-width: 500px;
	aspect-ratio: 1;
	user-select: none;
	-webkit-user-select: none;
	background: url('../images/room-bg.png') center / cover no-repeat;
	border-radius: 12px;
	padding: 6px;
	box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.06);
}

.is-fullscreen .game-header,
.is-fullscreen .bottom-bar,
.is-fullscreen .fullscreen-bar {
	width: min(500px, 70vh, 90vw);
}

.is-fullscreen .fullscreen-btn {
	font-size: 18px;
}

.is-fullscreen .fullscreen-btn-label {
	font-size: 12px;
}

.is-fullscreen .board {
	width: min(500px, 70vh, 90vw);
	max-width: none;
}

.is-fullscreen .board[data-size="easy"] {
	width: min(300px, 60vh, 90vw);
}

.is-fullscreen .board[data-size="hard"] {
	width: min(520px, 70vh, 90vw);
}

.is-fullscreen .score-overlay {
	position: fixed;
}

.is-fullscreen .game-message {
	position: fixed;
}

.board[data-size="easy"] {
	max-width: 300px;
}

.board[data-size="hard"] {
	max-width: 520px;
}

.cell {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 30px;
	font-weight: 900;
	-webkit-text-stroke: 1px currentColor;
	cursor: pointer;
	aspect-ratio: 1;
	min-width: 0;
	transition: background 0.12s ease, transform 0.1s ease, box-shadow 0.12s ease;
}

.board[data-size="hard"] .cell {
	font-size: 20px;
	border-radius: 6px;
}

.cell.unrevealed {
	background: url('../images/panel.png') center / contain no-repeat;
}

.cell.unrevealed:hover {
	transform: scale(1.05);
	filter: brightness(1.04);
}

.cell.unrevealed:active {
	transform: scale(0.96);
}

.cell.revealed {
	background: transparent;
	cursor: default;
}

.cell.flagged {
	background: transparent;
	box-shadow: none;
	animation: flagPop 0.25s ease;
}

.flag-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	pointer-events: none;
}

.cell.mine {
	background: transparent;
	animation: mineReveal 0.3s ease;
}

.mine-img {
	width: 85%;
	height: 85%;
	object-fit: contain;
	pointer-events: none;
}

@keyframes flagPop {
	0% { transform: scale(1); }
	50% { transform: scale(1.12); }
	100% { transform: scale(1); }
}

@keyframes mineReveal {
	0% { transform: scale(0.8); opacity: 0.5; }
	100% { transform: scale(1); opacity: 1; }
}

.cell[data-number="1"] {
	color: #0e5f9e;
}

.cell[data-number="2"] {
	color: #096733;
}

.cell[data-number="3"] {
	color: #b00505;
}

.cell[data-number="4"] {
	color: #702c9b;
}

.cell[data-number="5"] {
	color: #8c4205;
}

.cell[data-number="6"] {
	color: #0a8970;
}

.cell[data-number="7"] {
	color: #906f00;
}

.cell[data-number="8"] {
	color: #392a2a;
}

/* Game Message Overlay */
.game-message {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 28px;
	font-weight: 900;
	letter-spacing: px;
	color: #5a4a3a;
	pointer-events: none;
	z-index: 10;
	animation: fadeInMessage 0.4s ease;
	background: rgba(255, 255, 255, 0.85);
	padding: 14px;
	border-radius: 14px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	border: 2px solid #f0e0d0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.game-message p {
	text-align: center;
	font-size: 14px;
	letter-spacing: 0;
	color: #7c5a47;
}

.gameover-img {
	width: 104px;
	height: 104px;
	object-fit: contain;
}

.game-message.win {
	color: #ff816d;
	border-color: #ff816d;
	background: rgba(255, 255, 255, 0.95);
}

.game-message.hidden {
	display: none;
}

@keyframes fadeInMessage {
	from {
		opacity: 0;
		transform: translate(-50%, -50%) scale(0.7);
	}

	to {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}
}

/* Score Panel (Modal) */
.score-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(90, 74, 58, 0.35);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 20;
	animation: fadeInOverlay 0.3s ease;
}

.score-overlay.hidden {
	display: none;
}

.score-panel {
	background: #fef6e9;
	border: 2px solid #e8d5c4;
	border-radius: 16px;
	padding: 24px;
	width: 90%;
	max-width: 360px;
	color: #5a4a3a;
	position: relative;
	box-shadow: 0 12px 40px rgba(180, 140, 100, 0.2);
	animation: panelSlideUp 0.35s ease;
}

@keyframes panelSlideUp {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.score-close-btn {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 30px;
	height: 30px;
	background: #f0e0d0;
	border: none;
	color: #9a8a7a;
	font-size: 14px;
	cursor: pointer;
	padding: 0;
	line-height: 30px;
	text-align: center;
	border-radius: 50%;
	transition: all 0.15s ease;
}

.score-close-btn:hover {
	background: #e8d5c4;
	color: #5a4a3a;
}

.score-list-title {
	font-size: 13px;
	color: #9a8a7a;
	margin-bottom: 8px;
	font-weight: 600;
	padding-top: 8px;
	border-top: 1px solid #f0e0d0;
}

@keyframes fadeInOverlay {
	from { opacity: 0; }
	to { opacity: 1; }
}

.score-title {
	font-size: 16px;
	margin-bottom: 12px;
	color: #e88da0;
	font-weight: 700;
}

.score-form {
	display: flex;
	gap: 8px;
	margin-bottom: 14px;
}

.score-name-input {
	flex: 1;
	padding: 8px 12px;
	border: 2px solid #e8d5c4;
	border-radius: 10px;
	background: #fff;
	color: #5a4a3a;
	font-size: 14px;
	outline: none;
	font-family: inherit;
	transition: border-color 0.15s ease;
}

.score-name-input::placeholder {
	color: #c4b4a4;
}

.score-name-input:focus {
	border-color: #ff816d;
	box-shadow: 0 0 0 3px rgba(248, 180, 200, 0.15);
}

.score-save-btn {
	padding: 8px 16px;
	background: #ff816d;
	color: #fff;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	transition: all 0.15s ease;
	font-family: inherit;
}

.score-save-btn:hover {
	background: #f09ab4;
	box-shadow: 0 2px 8px rgba(248, 180, 200, 0.4);
}

.score-save-btn:active {
	transform: scale(0.96);
}

.score-saved {
	color: #e88da0;
	font-size: 14px;
	font-weight: 600;
}

.score-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12px;
}

.score-table th,
.score-table td {
	padding: 6px 8px;
	text-align: left;
	border-bottom: 1px solid #f0e0d0;
	max-width: 60px;
	word-break: break-all;
}

.score-table th {
	color: #9a8a7a;
	font-weight: 600;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.score-table tr:last-child td {
	border-bottom: none;
}

.result-clear {
	color: #e88da0;
	font-weight: 600;
}

.result-gameover {
	color: #d97070;
	font-weight: 600;
}

.no-scores {
	font-size: 13px;
	color: #9a8a7a;
	text-align: center;
	padding: 12px 0;
}

/* Fullscreen Bar */
.fullscreen-bar {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
}

.fullscreen-btn {
	background: #fff;
	border: 2px solid #e8d5c4;
	color: #9a8a7a;
	font-size: 18px;
	cursor: pointer;
	padding: 5px 12px;
	border-radius: 20px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	transition: all 0.15s ease;
	font-family: inherit;
}

.fullscreen-btn-label {
	font-size: 12px;
	font-weight: 600;
}

.fullscreen-btn:hover {
	background: #fff5ee;
	border-color: #d4b8a0;
	color: #7a6a5a;
}

.fullscreen-btn:active {
	transform: scale(0.96);
}

.fullscreen-source-link {
	font-family: "Courier New", Courier, monospace;
	font-size: 11px;
	color: rgba(90, 74, 58, 0.25);
	text-decoration: none;
}

.fullscreen-source-link:hover {
	color: rgba(90, 74, 58, 0.5);
}

.fullscreen-source-link.hidden {
	display: none;
}

/* ========================================
   Description Section
   ======================================== */

.description-section {
	background: var(--bg-white);
	padding: 48px 20px;
}

.section-title {
	font-size: 16px;
	font-weight: 700;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--text-primary);
	color: var(--text-primary);
		max-width: 860px;
		margin: 0 auto 16px;
}

.description-text {
	font-size: 14px;
	color: var(--text-secondary);
	line-height: 1.85;
		max-width: 860px;
		margin: auto;
}

.description-text p {
	margin-bottom: 10px;
}

.description-text strong {
	color: var(--text-primary);
	font-weight: 600;
}

/* ========================================
   News / Announcements
   ======================================== */

.news-section {
	background: var(--bg-white);
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 24px;
			max-width: 860px;
		margin: 48px auto;
}

.news-list {
	list-style: none;
}

.news-item {
	padding: 12px 0;
	border-bottom: 1px solid var(--border-light);
	display: flex;
	align-items: baseline;
	gap: 10px;
	font-size: 14px;
}

.news-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.news-item:first-child {
	padding-top: 0;
}

.news-title-text {
	flex: 1;
	line-height: 1.4;
	text-decoration: none;
	color: var(--text-primary);
}

.news-title-text:hover {
	color: var(--accent);
	text-decoration: underline;
}

.news-source {
	font-size: 11px;
	color: var(--text-light);
	white-space: nowrap;
}

.news-tag {
	font-size: 11px;
	padding: 1px 8px;
	border-radius: 3px;
	font-weight: 600;
	white-space: nowrap;
}

.news-tag.tech {
	background: #e8f5e9;
	color: #388e3c;
}

.news-tag.ai {
	background: #e3f2fd;
	color: #1565c0;
}

.news-tag.news {
	background: #fff3e0;
	color: #e65100;
}

.news-tag.feature {
	background: #f3e5f5;
	color: #7b1fa2;
}

.news-tag.interview {
	background: #fbe9e7;
	color: #bf360c;
}

.news-date {
	font-size: 12px;
	color: var(--text-light);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

/* ========================================
   Site Footer
   ======================================== */

.site-footer {
	text-align: center;
	padding: 24px 20px;
	font-size: 12px;
	color: var(--text-light);
	border-top: 1px solid var(--border);
	background: var(--bg-white);
}

.site-footer-inner {
	max-width: 860px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.site-footer-links {
	display: flex;
	gap: 20px;
	font-size: 12px;
}

.site-footer-links span {
	color: var(--text-light);
}

/* ========================================
   Source Page
   ======================================== */

.source-page {
	background: #1e1e1e;
	color: #d4d4d4;
	min-height: 100vh;
	font-family: "Courier New", Courier, monospace;
	font-size: 13px;
	line-height: 1.6;
	padding: 24px;
}

.source-page pre {
	overflow-x: auto;
}

.source-page .line-number {
	color: #858585;
	display: inline-block;
	width: 40px;
	text-align: right;
	margin-right: 16px;
	user-select: none;
}

.source-page .comment {
	color: #6a9955;
}

.source-page .keyword {
	color: #569cd6;
}

.source-page .string {
	color: #ce9178;
}

.source-page .func {
	color: #dcdcaa;
}

.source-page .type {
	color: #4ec9b0;
}

.source-page .number {
	color: #b5cea8;
}

.source-page a {
	color: #569cd6;
	text-decoration: underline;
	text-decoration-color: rgba(86, 156, 214, 0.3);
}

.source-page a:hover {
	text-decoration-color: #569cd6;
}

/* ========================================
   Chat Data Page
   ======================================== */

.chat-page {
	max-width: 720px;
	margin: 0 auto;
	padding: 24px 16px;
	background: var(--bg-body);
	min-height: 100vh;
}

.chat-header {
	background: var(--bg-white);
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 16px 20px;
	margin-bottom: 16px;
	font-size: 14px;
	color: var(--text-secondary);
}

.chat-header h1 {
	font-size: 16px;
	color: var(--text-primary);
	margin-bottom: 4px;
}

.chat-message {
	background: var(--bg-white);
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 14px 18px;
	margin-bottom: 6px;
}

.chat-message .chat-sender {
	font-weight: 600;
	font-size: 13px;
	margin-bottom: 4px;
}

.chat-message .chat-sender.user {
	color: var(--accent);
}

.chat-message .chat-sender.ai {
	color: #8e44ad;
}

.chat-message .chat-sender.system {
	color: var(--text-light);
}

.chat-message .chat-text {
	font-size: 14px;
	line-height: 1.7;
	color: var(--text-secondary);
}

/* ========================================
   Archive Page
   ======================================== */

.archive-page {
	max-width: 720px;
	margin: 0 auto;
	padding: 24px 16px;
	min-height: 100vh;
}

.archive-list {
	list-style: none;
}

.archive-item {
	background: var(--bg-white);
	border: 1px solid var(--border);
	border-radius: 4px;
	margin-bottom: 8px;
}

.archive-item a {
	display: block;
	padding: 16px 20px;
	text-decoration: none;
	color: var(--text-primary);
}

.archive-item a:hover {
	background: var(--bg-body);
}

.archive-item .archive-name {
	font-weight: 600;
	font-size: 15px;
	margin-bottom: 4px;
}

.archive-item .archive-desc {
	font-size: 13px;
	color: var(--text-light);
}

/* ========================================
   Console Page
   ======================================== */

.console-page {
	background: #0a0a0a;
	color: #00ff41;
	height: 100vh;
	font-family: "Courier New", Courier, monospace;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.console-header {
	padding: 12px 20px;
	border-bottom: 1px solid #1a1a1a;
	font-size: 12px;
	color: #444;
}

.console-output {
	flex: 1;
	padding: 20px;
	overflow-y: auto;
	line-height: 1.8;
	font-size: 14px;
}

.console-line {
	margin-bottom: 4px;
	animation: consoleFade 0.3s ease;
}

.console-line.system {
	color: #666;
}

.console-line.ai {
	color: #00ff41;
}

.console-line.user {
	color: #00bfff;
}

.console-choices {
	padding: 12px 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.console-choice-btn {
	padding: 8px 20px;
	background: transparent;
	border: 1px solid #00ff41;
	color: #00ff41;
	font-family: inherit;
	font-size: 14px;
	cursor: pointer;
	border-radius: 2px;
}

.console-choice-btn:hover {
	background: #00ff41;
	color: #0a0a0a;
}

.console-share {
	margin-top: 12px;
}

.console-share-btn {
	display: inline-block;
	padding: 8px 20px;
	background: transparent;
	border: 1px solid #555;
	color: #888;
	font-family: inherit;
	font-size: 13px;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.console-share-btn:hover {
	background: #333;
	color: #ccc;
}

@keyframes consoleFade {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 600px) {
	.site-header {
		padding: 0 14px;
		height: 48px;
	}

	.site-logo {
		font-size: 17px;
	}

	.site-nav span {
		padding: 6px 8px;
		font-size: 12px;
	}

	.main-content {
		padding: 0;
	}

	.game-title-section {
		padding: 16px;
	}

	.game-section {
		padding: 12px 8px;
	}

	.game-wrapper {
		border-radius: 12px;
		padding: 30px 10px 8px;
	}

	.game-title {
		font-size: 18px;
	}

	/* Board */
	.board {
		max-width: 100% !important;
		padding: 4px;
		border-radius: 8px;
		gap: 2px;
	}

	.board[data-size="hard"] .cell {
		font-size: 14px;
		border-radius: 4px;
	}

	/* Bottom bar */
	.bottom-bar {
		gap: 10px;
		margin-top: 8px;
	}

	.mine-count,
	.timer {
		font-size: 13px;
		min-width: 55px;
	}

	.mine-count-icon {
		width: 20px;
		height: 20px;
	}

	.restart-btn {
		padding: 4px 10px;
		font-size: 12px;
	}

	/* Game message */
	.game-message {
		font-size: 22px;
		letter-spacing: 2px;
		padding: 12px 20px;
		border-radius: 12px;
		max-width: 80vw;
	}

	.game-message p {
		font-size: 12px;
	}

	.gameover-img {
		width: 72px;
		height: 72px;
	}

	/* Score panel */
	.score-panel {
		border-radius: 12px;
		padding: 18px 16px;
		max-width: 90vw;
	}

	.score-close-btn {
		width: 26px;
		height: 26px;
		line-height: 26px;
		font-size: 12px;
	}

	.score-title {
		font-size: 14px;
	}

	.score-name-input {
		font-size: 13px;
		padding: 6px 10px;
	}

	.score-save-btn {
		font-size: 12px;
		padding: 6px 12px;
	}

	/* Fullscreen bar */
	.fullscreen-bar {
		margin-top: 8px;
	}

	.fullscreen-btn {
		padding: 3px 8px;
		font-size: 14px;
	}

	.fullscreen-btn-label {
		font-size: 11px;
	}

	/* Fullscreen on mobile */
	.game-wrapper.is-fullscreen {
		padding: 12px 8px;
	}

	.is-fullscreen .game-header,
	.is-fullscreen .bottom-bar,
	.is-fullscreen .fullscreen-bar {
		width: 90vw;
	}

	.is-fullscreen .board,
	.is-fullscreen .board[data-size="easy"],
	.is-fullscreen .board[data-size="hard"] {
		width: 90vw;
	}

	/* Developer info */
	.developer-info {
		flex-wrap: wrap;
		gap: 6px 10px;
	}

	.developer-icon {
		width: 28px;
		height: 28px;
	}

	.game-tag {
		font-size: 11px;
		padding: 2px 8px;
	}

	/* Meta dates */
	.game-meta-dates {
		flex-wrap: wrap;
		gap: 2px 6px;
		font-size: 11px;
	}

	.game-meta-dates span:nth-child(2),
	.game-meta-dates span:nth-child(4) {
		display: none;
	}

	/* Description / News */
	.description-section {
		padding: 24px 16px;
	}

	.section-title {
		font-size: 15px;
		padding-left: 16px;
		padding-right: 16px;
	}

	.description-text {
		font-size: 13px;
		padding: 0 16px;
	}

	.news-section {
		padding: 16px;
		margin: 24px 10px;
	}

	.news-section .section-title {
		padding-left: 0;
		padding-right: 0;
	}

	.news-item {
		flex-wrap: wrap;
		gap: 4px 8px;
		font-size: 13px;
	}

	.news-title-text {
		flex-basis: 100%;
		order: -1;
		font-size: 13px;
	}

	.news-tag {
		font-size: 10px;
	}

	.news-source {
		display: none;
	}

	.news-date {
		font-size: 11px;
	}

	/* Share */
	.share-buttons {
		flex-wrap: wrap;
	}

	.share-btn {
		font-size: 12px;
		padding: 6px 16px;
	}

	/* Footer */
	.site-footer {
		padding: 16px 14px;
		font-size: 11px;
	}

	.site-footer-links {
		gap: 14px;
		font-size: 11px;
	}

	/* Source page */
	.source-page {
		padding: 14px 10px;
		font-size: 11px;
	}

	.source-page .line-number {
		width: 28px;
		margin-right: 8px;
		font-size: 10px;
	}

	/* Console page */
	.console-header {
		padding: 10px 14px;
		font-size: 11px;
	}

	.console-output {
		padding: 14px;
		font-size: 13px;
	}

	.console-choice-btn {
		padding: 6px 14px;
		font-size: 13px;
	}

	.console-share-btn {
		font-size: 12px;
	}
}

@media (max-width: 380px) {
	.site-header {
		padding: 0 10px;
		height: 44px;
	}

	.site-logo {
		font-size: 15px;
	}

	.site-logo-icon {
		width: 24px;
		height: 24px;
		font-size: 12px;
	}

	.site-nav span {
		padding: 4px 6px;
		font-size: 11px;
	}

	.game-title-section {
		padding: 12px;
	}

	.game-title {
		font-size: 16px;
		margin-bottom: 8px;
	}

	.developer-icon {
		width: 24px;
		height: 24px;
	}

	.developer-name {
		font-size: 13px;
	}

	.game-tag {
		font-size: 10px;
		padding: 1px 6px;
	}

	.game-meta-dates {
		font-size: 10px;
	}

	.board[data-size="hard"] .cell {
		font-size: 11px;
	}

	.game-message {
		font-size: 18px;
		letter-spacing: 1px;
		padding: 10px 16px;
	}

	.gameover-img {
		width: 56px;
		height: 56px;
	}

	.bottom-bar {
		gap: 6px;
	}

	.mine-count,
	.timer {
		font-size: 12px;
		min-width: 45px;
	}

	.description-section {
		padding: 16px 12px;
	}

	.section-title {
		font-size: 14px;
		padding-left: 12px;
		padding-right: 12px;
	}

	.description-text {
		font-size: 12px;
		padding: 0 12px;
		line-height: 1.75;
	}

	.news-section {
		padding: 12px;
		margin: 16px 8px;
	}

	.news-section .section-title {
		padding-left: 0;
		padding-right: 0;
		font-size: 14px;
	}

	.news-title-text {
		font-size: 12px;
	}

	.site-footer {
		padding: 12px 10px;
		font-size: 10px;
	}

	.site-footer-links {
		gap: 10px;
		font-size: 10px;
	}
}
