/* Pali Thunder — สวนศัพท์ (/prototype/word-garden) */
[v-cloak] { display: none; }

.wg-body {
	margin: 0;
	font-family: 'Sarabun', sans-serif;
	background: #0f172a;
	-webkit-tap-highlight-color: transparent;
}
.wg-app { min-height: 100dvh; }

/* ── โหลด ── */
.wg-splash {
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	color: #e2e8f0;
	font-size: 1.05rem;
}
.wg-spin {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 4px solid rgba(255, 255, 255, .25);
	border-top-color: #a5b4fc;
	animation: wg-rot 1s linear infinite;
}
@keyframes wg-rot { to { transform: rotate(360deg); } }

/* ── หน้าเลือกเรื่อง ── */
.wg-pick {
	min-height: 100dvh;
	background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 40%);
	padding: calc(14px + env(safe-area-inset-top)) 0 40px;
}
@media (prefers-color-scheme: dark) {
	.wg-pick { background: linear-gradient(180deg, #1e1b3a 0%, #0f172a 45%); }
}
.wg-pick-head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	max-width: 760px;
	margin: 0 auto;
	padding: 0 16px 4px;
}
.wg-pick-head h1 { margin: 0; font-size: 1.4rem; color: #312e81; }
.wg-pick-head p { margin: 3px 0 0; color: #64748b; font-size: .86rem; line-height: 1.5; }
@media (prefers-color-scheme: dark) {
	.wg-pick-head h1 { color: #c7d2fe; }
}
.wg-pick-controls {
	position: sticky;
	top: 0;
	z-index: 5;
	max-width: 760px;
	margin: 12px auto 0;
	padding: 10px 16px;
	background: linear-gradient(180deg, #f8fafc 70%, rgba(248, 250, 252, 0));
	display: flex;
	flex-direction: column;
	gap: 10px;
}
@media (prefers-color-scheme: dark) {
	.wg-pick-controls { background: linear-gradient(180deg, #0f172a 70%, rgba(15, 23, 42, 0)); }
}
.wg-book-tabs {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding-bottom: 2px;
}
.wg-book-tabs button {
	flex: 0 0 auto;
	border: 1.5px solid #e2e8f0;
	background: #fff;
	color: #475569;
	border-radius: 999px;
	padding: 7px 15px;
	font-family: inherit;
	font-size: .9rem;
	font-weight: 700;
	cursor: pointer;
}
.wg-book-tabs button.is-on { border-color: #4f46e5; background: #4f46e5; color: #fff; }
.wg-pick-controls input[type=search] {
	width: 100%;
	background: #fff;
	border: 1.5px solid #e2e8f0;
	border-radius: 12px;
	padding: 10px 13px;
	font: inherit;
	color: #1e293b;
}
@media (prefers-color-scheme: dark) {
	.wg-book-tabs button { background: #171b2e; border-color: #272d47; color: #94a3b8; }
	.wg-pick-controls input[type=search] { background: #171b2e; border-color: #272d47; color: #e2e8f0; }
}
.wg-story-list {
	max-width: 760px;
	margin: 4px auto 0;
	padding: 0 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.wg-story-card {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	text-align: left;
	background: #fff;
	border: 1.5px solid #e8ecf5;
	border-radius: 14px;
	padding: 12px 14px;
	font-family: inherit;
	cursor: pointer;
	transition: transform .12s ease, border-color .15s ease, box-shadow .15s ease;
}
.wg-story-card:hover { border-color: #a5b4fc; box-shadow: 0 4px 14px rgba(79, 70, 229, .12); }
.wg-story-card:active { transform: scale(.99); }
.wg-story-card.is-current { border-color: #4f46e5; background: #eef2ff; }
.wg-story-card:focus-visible { outline: 2px solid #4f46e5; outline-offset: 2px; }
.wg-story-main { flex: 1; min-width: 0; }
.wg-story-main b { display: block; color: #1e293b; font-size: 1.05rem; }
.wg-story-sub { color: #94a3b8; font-size: .78rem; }
.wg-story-meta { display: flex; align-items: center; gap: 8px; flex: none; }
.wg-story-arrow { color: #c7d2fe; font-size: .9rem; }
.wg-chip-seen { background: #d1fae5; color: #059669; box-shadow: none; }
@media (prefers-color-scheme: dark) {
	.wg-story-card { background: #171b2e; border-color: #272d47; }
	.wg-story-card.is-current { background: #23284a; }
	.wg-story-main b { color: #e7eaf8; }
	.wg-story-card:hover { box-shadow: none; }
}

/* ── เวที ── */
.wg-stage {
	position: relative;
	min-height: 100dvh;
	background: url('/assets/game/word-garden/garden-bg.jpg') center 20% / cover no-repeat fixed #7ba05b;
	overflow: hidden;
	padding-bottom: calc(96px + env(safe-area-inset-bottom));
	box-sizing: border-box;
}
.wg-sky {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(15, 23, 42, .38) 0%, rgba(15, 23, 42, .05) 22%, rgba(15, 23, 42, 0) 40%, rgba(15, 23, 42, .18) 100%);
	pointer-events: none;
}

/* ── HUD ── */
.wg-hud {
	position: relative;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: calc(10px + env(safe-area-inset-top)) 14px 0;
}
.wg-hud-btn {
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	border: 0;
	background: rgba(255, 255, 255, .92);
	color: #4338ca;
	font-size: 1rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(15, 23, 42, .18);
}
.wg-hud-title {
	background: rgba(255, 255, 255, .92);
	border-radius: 12px;
	padding: 5px 14px;
	box-shadow: 0 2px 8px rgba(15, 23, 42, .18);
	line-height: 1.15;
}
.wg-hud-title b { color: #312e81; font-size: 1.02rem; }
.wg-hud-title span { display: block; color: #64748b; font-size: .72rem; }
.wg-hud-stats { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.wg-chip {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	gap: 5px;
	background: rgba(255, 255, 255, .92);
	color: #334155;
	border-radius: 999px;
	padding: 6px 12px;
	font-size: .84rem;
	font-weight: 700;
	box-shadow: 0 2px 8px rgba(15, 23, 42, .18);
}
.wg-chip-drop { color: #0369a1; }
.wg-chip-due { color: #b45309; }
.wg-chip-due.is-zero { color: #059669; }
.wg-chip-cat { background: #eef2ff; color: #4338ca; box-shadow: none; }
.wg-sync {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: rgba(255, 255, 255, .92);
	color: #64748b;
	font-size: .9rem;
	box-shadow: 0 2px 8px rgba(15, 23, 42, .18);
}
.wg-sync.is-saving { color: #0284c7; }
.wg-sync.is-saved { color: #059669; }
.wg-sync.is-error { color: #e11d48; }
.wg-guest-note {
	max-width: 760px;
	margin: 12px auto 0;
	padding: 0 16px;
	color: #64748b;
	font-size: .85rem;
	line-height: 1.5;
}
.wg-guest-note i { color: #6366f1; margin-right: 4px; }
.wg-guest-note a { color: #4f46e5; font-weight: 700; }
@media (prefers-color-scheme: dark) {
	.wg-guest-note { color: #8e96b3; }
	.wg-guest-note a { color: #a5b4fc; }
}

/* ── ครอบคลุมชุด ── */
.wg-coverage {
	position: relative;
	z-index: 5;
	margin: 8px 14px 0;
	background: rgba(255, 255, 255, .85);
	border-radius: 12px;
	padding: 7px 12px 6px;
	box-shadow: 0 2px 8px rgba(15, 23, 42, .14);
	cursor: pointer;
	max-width: 430px;
}
.wg-coverage-bar {
	height: 8px;
	border-radius: 99px;
	background: #e2e8f0;
	overflow: hidden;
}
.wg-coverage-bar span {
	display: block;
	height: 100%;
	border-radius: 99px;
	background: linear-gradient(90deg, #6366f1, #10b981);
	transition: width .5s ease;
}
.wg-coverage small { color: #475569; font-size: .74rem; font-weight: 600; }

/* ── สวนและต้นไม้ ── */
.wg-garden { position: absolute; inset: 0; z-index: 2; }
.wg-plant {
	position: absolute;
	width: 15%;
	max-width: 96px;
	min-width: 58px;
	transform: translate(-50%, -60%);
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	text-align: center;
}
.wg-plant-soil {
	position: absolute;
	left: 50%;
	bottom: -6%;
	width: 100%;
	transform: translateX(-50%);
	pointer-events: none;
}
.wg-plant-sprite {
	position: relative;
	width: 86%;
	margin-bottom: 8%;
	transition: transform .25s ease, filter .25s ease;
	transform-origin: 50% 90%;
	pointer-events: none;
}
.wg-plant-emoji {
	position: absolute;
	left: 50%;
	top: 30%;
	transform: translate(-50%, -50%);
	font-size: 1.8rem;
	pointer-events: none;
}
.wg-plant-name {
	position: relative;
	display: inline-block;
	background: rgba(255, 255, 255, .94);
	color: #1e293b;
	border-radius: 999px;
	padding: 2px 10px;
	font-size: .84rem;
	font-weight: 800;
	box-shadow: 0 1px 5px rgba(15, 23, 42, .25);
	white-space: nowrap;
	max-width: 130%;
	overflow: hidden;
	text-overflow: ellipsis;
}
.wg-plant-drop {
	position: absolute;
	top: -4%;
	right: 6%;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #38bdf8;
	color: #fff;
	font-size: .8rem;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(2, 132, 199, .5);
	animation: wg-bob 1.6s ease-in-out infinite;
}
@keyframes wg-bob { 50% { transform: translateY(-5px); } }
.wg-plant.is-due .wg-plant-sprite { transform: rotate(-7deg) scale(.97); filter: saturate(.72) brightness(.96); }
.wg-plant.is-overdue .wg-plant-sprite { transform: rotate(-12deg) scale(.92); filter: saturate(.42) brightness(.9); }
.wg-plant.is-overdue .wg-plant-name { color: #94a3b8; letter-spacing: .1em; }
.wg-plant.is-fresh:hover .wg-plant-sprite,
.wg-plant.is-fresh:focus-visible .wg-plant-sprite { transform: scale(1.06); }
.wg-plant.is-busy { pointer-events: none; }
.wg-plant:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 4px; border-radius: 14px; }

.wg-garden-empty {
	position: absolute;
	left: 50%;
	top: 56%;
	transform: translate(-50%, -50%);
	background: rgba(255, 255, 255, .92);
	color: #334155;
	border-radius: 16px;
	padding: 16px 22px;
	max-width: min(420px, 84vw);
	text-align: center;
	font-size: .98rem;
	line-height: 1.65;
	box-shadow: 0 6px 24px rgba(15, 23, 42, .25);
}

.wg-pager {
	position: absolute;
	right: 14px;
	top: 46%;
	z-index: 4;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	background: rgba(255, 255, 255, .88);
	border-radius: 12px;
	padding: 6px 8px;
	font-size: .78rem;
	font-weight: 700;
	color: #475569;
	box-shadow: 0 2px 8px rgba(15, 23, 42, .18);
}
.wg-pager button {
	border: 0;
	background: none;
	color: #4f46e5;
	font-size: 1.25rem;
	cursor: pointer;
	padding: 2px;
}
.wg-pager button:disabled { color: #cbd5e1; cursor: default; }

/* ── ปุ่มหลักล่าง ── */
.wg-actions {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 20;
	display: flex;
	gap: 8px;
	padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
	background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, .55));
	max-width: 640px;
	margin: 0 auto;
}
.wg-act {
	flex: 1;
	border: 0;
	border-radius: 16px;
	padding: 10px 6px 9px;
	background: rgba(255, 255, 255, .95);
	color: #1e293b;
	font-family: inherit;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	box-shadow: 0 4px 14px rgba(15, 23, 42, .3);
	transition: transform .15s ease;
}
.wg-act:active { transform: scale(.96); }
.wg-act:disabled { opacity: .55; cursor: default; }
.wg-act i { font-size: 1.1rem; }
.wg-act span { font-weight: 800; font-size: .88rem; }
.wg-act em { font-style: normal; font-size: .7rem; color: #64748b; }
.wg-act-plant i { color: #059669; }
.wg-act-water i { color: #0284c7; }
.wg-act-book i { color: #b45309; }

/* ── ประกาศครบวัน / toast ── */
.wg-daydone {
	position: fixed;
	left: 50%;
	bottom: calc(96px + env(safe-area-inset-bottom));
	transform: translateX(-50%);
	z-index: 18;
	background: rgba(255, 251, 235, .97);
	color: #92400e;
	border-radius: 999px;
	padding: 9px 18px;
	font-weight: 700;
	font-size: .9rem;
	box-shadow: 0 4px 16px rgba(15, 23, 42, .25);
	white-space: nowrap;
}
.wg-toast {
	position: fixed;
	left: 50%;
	top: calc(64px + env(safe-area-inset-top));
	transform: translateX(-50%);
	z-index: 60;
	background: rgba(15, 23, 42, .92);
	color: #f1f5f9;
	border-radius: 12px;
	padding: 9px 16px;
	font-size: .9rem;
	max-width: min(480px, 88vw);
	box-shadow: 0 4px 16px rgba(15, 23, 42, .4);
}

/* ── โมดัล ── */
.wg-backdrop {
	position: fixed;
	inset: 0;
	z-index: 40;
	background: rgba(15, 23, 42, .55);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 16px;
	padding-bottom: calc(16px + env(safe-area-inset-bottom));
}
@media (min-width: 640px) { .wg-backdrop { align-items: center; } }
.wg-modal {
	width: 100%;
	max-width: 460px;
	max-height: min(86dvh, 640px);
	overflow-y: auto;
	background: #fff;
	border-radius: 22px;
	padding: 20px 20px 18px;
	box-shadow: 0 18px 50px rgba(15, 23, 42, .45);
	box-sizing: border-box;
}

.wg-primary {
	display: block;
	width: 100%;
	border: 0;
	border-radius: 14px;
	background: #4f46e5;
	color: #fff;
	font-family: inherit;
	font-size: 1.02rem;
	font-weight: 800;
	padding: 12px;
	margin-top: 14px;
	cursor: pointer;
	transition: background .15s ease, transform .15s ease;
}
.wg-primary:hover { background: #4338ca; }
.wg-primary:active { transform: scale(.98); }
.wg-ghost {
	display: block;
	width: 100%;
	border: 0;
	background: none;
	color: #64748b;
	font-family: inherit;
	font-size: .9rem;
	font-weight: 700;
	padding: 10px;
	margin-top: 4px;
	cursor: pointer;
}
.wg-ghost.wg-danger { color: #e11d48; }

/* intro */
.wg-intro h1 { margin: 0; font-size: 1.5rem; color: #312e81; }
.wg-intro-sub { margin: 2px 0 12px; color: #64748b; font-size: .88rem; }
.wg-intro-how {
	margin: 0 0 14px;
	padding: 0 0 0 2px;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: #334155;
	font-size: .92rem;
	line-height: 1.55;
}
.wg-intro-how b { color: #4338ca; }
.wg-intro-count { color: #059669; font-weight: 700; font-size: .9rem; margin: 10px 0 0; }

.wg-field { margin-top: 12px; }
.wg-field label { display: block; font-size: .8rem; font-weight: 700; color: #64748b; margin-bottom: 6px; }
.wg-seg { display: flex; gap: 6px; }
.wg-seg button {
	flex: 1;
	border: 1.5px solid #e2e8f0;
	background: #f8fafc;
	color: #475569;
	border-radius: 12px;
	padding: 8px 4px;
	font-family: inherit;
	font-size: .88rem;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
}
.wg-seg button small { font-size: .68rem; font-weight: 600; color: #94a3b8; }
.wg-seg button.is-on { border-color: #4f46e5; background: #eef2ff; color: #4338ca; }
.wg-pages-pick { margin-top: 8px; color: #475569; font-size: .9rem; display: flex; align-items: center; gap: 6px; }
.wg-pages-pick input {
	width: 68px;
	border: 1.5px solid #e2e8f0;
	border-radius: 10px;
	padding: 7px 9px;
	font-family: inherit;
	font-size: .95rem;
}
.wg-pages-pick input:focus, .wg-seg button:focus-visible, .wg-choice:focus-visible {
	outline: 2px solid #4f46e5;
	outline-offset: 1px;
}

/* เมล็ดใหม่ */
.wg-seed { text-align: center; }
.wg-seed-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fef3c7;
	color: #92400e;
	border-radius: 999px;
	padding: 5px 14px;
	font-size: .8rem;
	font-weight: 800;
}
.wg-word { margin: 12px 0 2px; font-size: 2.1rem; color: #1e293b; line-height: 1.2; }
.wg-meaning { margin: 0 0 6px; color: #334155; font-size: 1.05rem; line-height: 1.5; }
.wg-dict { margin: 0 0 10px; color: #64748b; font-size: .88rem; line-height: 1.45; }
.wg-dict i { color: #94a3b8; margin-right: 3px; }
.wg-chip-vibh { background: #fef3c7; color: #92400e; box-shadow: none; }
.wg-word-meta { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 0 0 6px; }
.wg-sentence {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 10px 12px;
	margin-top: 10px;
	text-align: left;
	font-size: .88rem;
	line-height: 1.6;
}
.wg-sentence-pali { margin: 0; color: #1e293b; font-weight: 600; }
.wg-sentence-pali b { color: #4338ca; }
.wg-sentence-thai { margin: 4px 0 0; color: #64748b; }

.wg-seed-alt { display: flex; gap: 4px; }
.wg-seed-alt .wg-ghost { width: auto; flex: 1; }

/* คำถาม */
.wg-quiz-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.wg-quiz-kind { color: #0284c7; font-weight: 800; font-size: .84rem; }
.wg-quiz-stage { color: #94a3b8; font-size: .78rem; font-weight: 700; }
.wg-quiz-prompt { margin: 6px 0 2px; font-size: 2rem; color: #1e293b; text-align: center; line-height: 1.3; }
.wg-quiz-prompt-mean { font-size: 1.2rem; font-weight: 700; }
.wg-quiz-ctx {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 12px 14px;
	margin: 4px 0 2px;
	color: #1e293b;
	font-size: 1.02rem;
	line-height: 1.7;
	font-weight: 600;
}
.wg-quiz-ctx b { color: #4338ca; background: #eef2ff; border-radius: 6px; padding: 0 4px; }
.wg-quiz-ask { text-align: center; color: #64748b; font-size: .86rem; margin: 4px 0 12px; }
.wg-choices { display: flex; flex-direction: column; gap: 8px; }
.wg-choice {
	border: 1.5px solid #e2e8f0;
	background: #f8fafc;
	color: #1e293b;
	border-radius: 14px;
	padding: 12px 14px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
	transition: transform .12s ease, background .15s ease, border-color .15s ease;
	line-height: 1.45;
}
.wg-choice:not(:disabled):hover { border-color: #a5b4fc; background: #eef2ff; }
.wg-choice:not(:disabled):active { transform: scale(.98); }
.wg-choice.is-right { border-color: #059669; background: #d1fae5; color: #065f46; }
.wg-choice.is-soft { border-color: #f59e0b; background: #fef3c7; color: #92400e; }
.wg-choice:disabled { cursor: default; }

.wg-result { margin-top: 14px; border-radius: 14px; padding: 12px 14px; }
.wg-result-right { background: #ecfdf5; border: 1px solid #a7f3d0; }
.wg-result-soft { background: #fffbeb; border: 1px solid #fde68a; }
.wg-result-head { margin: 0; font-weight: 800; font-size: .92rem; }
.wg-result-right .wg-result-head { color: #059669; }
.wg-result-soft .wg-result-head { color: #b45309; }
.wg-result-word { margin: 6px 0 0; color: #1e293b; font-size: 1.05rem; line-height: 1.5; }
.wg-result-next { margin: 4px 0 0; color: #64748b; font-size: .84rem; }

/* เก็บเกี่ยว */
.wg-harvest { text-align: center; }
.wg-harvest h2 { margin: 6px 0 4px; color: #92400e; }
.wg-harvest-burst { font-size: 3rem; animation: wg-pop-in .5s ease; }
.wg-harvest-note { color: #64748b; font-size: .9rem; line-height: 1.6; }
@keyframes wg-pop-in { from { transform: scale(.4); opacity: 0; } }

/* สมุด ── */
.wg-book-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.wg-book-head h2 { margin: 0; font-size: 1.15rem; color: #312e81; }
.wg-book-head .wg-hud-btn { box-shadow: none; background: #f1f5f9; }
.wg-book-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.wg-book-tabs button {
	flex: 1;
	border: 1.5px solid #e2e8f0;
	background: #f8fafc;
	color: #475569;
	border-radius: 12px;
	padding: 8px 4px;
	font-family: inherit;
	font-size: .84rem;
	font-weight: 700;
	cursor: pointer;
}
.wg-book-tabs button em { font-style: normal; color: #94a3b8; }
.wg-book-tabs button.is-on { border-color: #4f46e5; background: #eef2ff; color: #4338ca; }
.wg-book-list { display: flex; flex-direction: column; gap: 8px; }
.wg-book-list article {
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 9px 12px;
}
.wg-book-list article.is-due { border-color: #fbbf24; background: #fffbeb; }
.wg-book-emoji { font-size: 1.5rem; flex: none; }
.wg-book-info { min-width: 0; flex: 1; }
.wg-book-info b { color: #1e293b; font-size: 1.02rem; }
.wg-book-info span { display: block; color: #475569; font-size: .84rem; line-height: 1.4; }
.wg-book-info small { color: #94a3b8; font-size: .74rem; }
.wg-mini-water {
	flex: none;
	border: 0;
	border-radius: 999px;
	background: #0ea5e9;
	color: #fff;
	font-family: inherit;
	font-size: .8rem;
	font-weight: 800;
	padding: 7px 12px;
	cursor: pointer;
}
.wg-empty { color: #94a3b8; text-align: center; padding: 18px 0; font-size: .9rem; }
.wg-book-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wg-stat {
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 12px;
	text-align: center;
}
.wg-stat b { display: block; font-size: 1.4rem; color: #4338ca; font-variant-numeric: tabular-nums; }
.wg-stat span { color: #64748b; font-size: .78rem; }
.wg-book-note { grid-column: 1 / -1; color: #94a3b8; font-size: .8rem; text-align: center; margin: 6px 0 0; }

/* transitions */
.wg-pop-enter-active, .wg-pop-leave-active { transition: opacity .25s ease, transform .25s ease; }
.wg-pop-enter, .wg-pop-leave-to { opacity: 0; transform: translateY(8px); }

@media (prefers-reduced-motion: reduce) {
	.wg-plant-drop, .wg-harvest-burst { animation: none; }
	.wg-plant-sprite, .wg-act, .wg-choice, .wg-coverage-bar span { transition: none; }
}

/* จอแคบ: ชิป HUD กระชับ */
@media (max-width: 480px) {
	.wg-chip { padding: 5px 9px; font-size: .76rem; }
	.wg-hud-title { padding: 4px 10px; }
	.wg-hud-title span { display: none; }
}

/* จอกว้าง: จำกัดสนามให้อยู่กลาง */
@media (min-width: 900px) {
	.wg-plant { max-width: 110px; }
	.wg-hud, .wg-coverage { max-width: 860px; margin-left: auto; margin-right: auto; }
	.wg-coverage { margin-top: 10px; }
}
