:root {
  color-scheme: light;
  --ink: #26372f;
  --ink-soft: #55645a;
  --muted: #849087;
  --line: #e8eae3;
  --paper: #fffefa;
  --canvas: #f4f5ef;
  --forest: #286c54;
  --forest-dark: #204e3e;
  --forest-deep: #173b31;
  --forest-soft: #e5f1e8;
  --lime: #cde5a7;
  --gold: #e9b55d;
  --coral: #e2826c;
  --purple: #7b69a5;
  --shadow: 0 14px 40px rgb(41 58 43 / 6%);
  font-family: "Sarabun", "Kanit", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  background: var(--canvas);
  color: var(--ink);
}

* { box-sizing: border-box; }

html { min-width: 320px; min-height: 100%; scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--canvas); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid rgb(67 132 102 / 38%); outline-offset: 3px; }
button:disabled { cursor: not-allowed !important; }
button[hidden], [hidden] { display: none !important; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 10;
  display: flex; width: 246px; flex-direction: column;
  padding: 26px 16px 18px; border-right: 1px solid #e9ebe5;
  background: #fffefa;
}
.brand { display: flex; align-items: center; gap: 12px; width: fit-content; margin: 0 0 44px 9px; color: var(--ink); text-decoration: none; }
.brand__mark { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 15px; color: #fff; background: var(--forest); box-shadow: 0 6px 12px rgb(40 108 84 / 18%); }
.brand__mark svg { width: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand__mark svg circle { fill: var(--lime); stroke: none; }
.brand__word { font-family: "Kanit", sans-serif; font-size: 27px; font-weight: 600; letter-spacing: -.8px; line-height: .86; }
.brand__word > span { color: #6db08c; }
.brand__word small { display: block; margin-top: 6px; color: #9aa49b; font: 700 8px/1 "Sarabun", sans-serif; letter-spacing: 1.6px; }
.sidebar__caption { padding: 0 12px 12px; color: #a2aaa2; font: 600 11px/1.4 "Sarabun", sans-serif; letter-spacing: .45px; }
.side-nav { display: grid; gap: 5px; }
.side-nav__item { position: relative; display: flex; min-height: 45px; align-items: center; gap: 12px; padding: 0 13px; border: 0; border-radius: 11px; color: #69756b; background: transparent; text-align: left; cursor: pointer; transition: background .18s ease, color .18s ease, transform .18s ease; }
.side-nav__item:hover { color: var(--forest); background: #f3f7f0; }
.side-nav__item.is-active { color: var(--forest-dark); background: #e9f2e9; font-weight: 700; }
.side-nav__item.is-active::before { position: absolute; inset: 10px auto 10px -16px; width: 3px; border-radius: 0 5px 5px 0; background: #3d8b69; content: ""; }
.side-nav__icon { display: grid; width: 23px; flex: none; place-items: center; color: #819187; font: 23px/1 "Kanit", sans-serif; }
.side-nav__item.is-active .side-nav__icon { color: #468263; }
.side-nav__item > span:nth-child(2) { flex: 1; font: 600 13px/1.2 "Sarabun", sans-serif; }
.side-nav__arrow { color: #7e9c83; font: 20px/1 "Sarabun", sans-serif; }
.side-nav__badge { display: grid; min-width: 22px; height: 22px; padding: 0 5px; place-items: center; border-radius: 8px; color: #6d7c6e; background: #f1f2ec; font: 700 10px/1 "Sarabun", sans-serif; }
.sidebar__caption--chapter { margin-top: 37px; padding-bottom: 12px; }
.chapter-mini { display: flex; align-items: center; gap: 10px; padding: 11px 10px; border: 1px solid #eeefe8; border-radius: 12px; background: #fff; }
.chapter-mini__icon { display: grid; width: 35px; height: 35px; flex: none; place-items: center; border-radius: 10px; background: #eef4e9; font-size: 19px; }
.chapter-mini > div:nth-child(2) { min-width: 0; flex: 1; }
.chapter-mini strong, .chapter-mini small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chapter-mini strong { font: 600 11px/1.4 "Sarabun", sans-serif; }
.chapter-mini small { margin-top: 3px; color: #9aa197; font: 500 10px/1.2 "Sarabun", sans-serif; }
.chapter-mini__dots { color: #b3bbb0; font: 10px/1 "Sarabun", sans-serif; letter-spacing: 1px; }
.sidebar__bottom { display: grid; gap: 10px; margin-top: auto; }
.save-status { display: flex; align-items: center; gap: 8px; padding: 0 8px 13px; color: #89948b; font: 500 10px/1.4 "Sarabun", sans-serif; }
.save-status__dot { width: 7px; height: 7px; border-radius: 50%; background: #6db38a; box-shadow: 0 0 0 3px #e7f3e8; }
.reset-button, .sidebar__back { display: flex; align-items: center; gap: 9px; min-height: 35px; padding: 0 8px; border: 0; color: #8c968b; background: transparent; text-align: left; text-decoration: none; font: 500 11px/1.3 "Sarabun", sans-serif; cursor: pointer; }
.reset-button:hover, .sidebar__back:hover { color: var(--forest); }
.reset-button > span { font-size: 16px; }
.sidebar__back { border-top: 1px solid #eceee8; padding-top: 11px; }

.main-area { min-height: 100vh; margin-left: 246px; }
.topbar { position: sticky; top: 0; z-index: 8; display: flex; height: 70px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 38px; border-bottom: 1px solid #e9ebe5; background: rgb(255 254 250 / 92%); backdrop-filter: blur(16px); }
.breadcrumbs { display: flex; align-items: center; gap: 11px; color: #9aa39b; font: 500 11px/1.2 "Sarabun", sans-serif; }
.breadcrumbs strong { color: #47564b; font-weight: 600; }
.breadcrumbs__slash { color: #c5cac2; }
.topbar__right { display: flex; align-items: center; gap: 18px; }
.topbar__season { display: flex; align-items: center; gap: 7px; color: #7d897e; font: 500 11px/1.2 "Sarabun", sans-serif; }
.topbar__season span { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; color: #bf8540; background: #fff3d9; font-size: 13px; }
.topbar__divider { width: 1px; height: 28px; background: #e9ebe5; }
.player-chip { display: flex; align-items: center; gap: 9px; }
.player-chip { padding: 3px 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.player-chip:hover .player-chip__avatar { border-color: #cdddc9; background: #eaf1e5; }
.player-chip__avatar { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #e4e9df; border-radius: 12px; background: #f0f2e9; font-size: 20px; }
.player-chip__copy strong, .player-chip__copy small { display: block; }
.player-chip__copy strong { max-width: 115px; overflow: hidden; color: #38483d; font: 600 11px/1.35 "Sarabun", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.player-chip__copy small { margin-top: 2px; color: #9ba49b; font: 500 9px/1.2 "Sarabun", sans-serif; }
.player-chip__caret { margin-left: 2px; color: #93a096; font-size: 14px; }
.page-root { max-width: 1460px; min-height: calc(100vh - 120px); margin: 0 auto; padding: 25px 38px 22px; }
.app-footer { display: flex; justify-content: space-between; gap: 20px; padding: 0 38px 18px; color: #a0a8a0; font: 500 9px/1.5 "Sarabun", sans-serif; letter-spacing: .15px; }
.app-footer span:first-child { letter-spacing: 1px; }

.icon { display: inline-block; width: 15px; height: 15px; flex: none; vertical-align: middle; }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 13px; padding: 0 17px; border: 1px solid transparent; border-radius: 10px; text-decoration: none; font: 600 12px/1 "Sarabun", sans-serif; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease; }
.button:not(:disabled):hover { transform: translateY(-1px); }
.button .icon { width: 15px; }
.button--primary { color: #fff; background: var(--forest); box-shadow: 0 5px 12px rgb(40 108 84 / 15%); }
.button--primary:not(:disabled):hover { background: #347b60; box-shadow: 0 7px 16px rgb(40 108 84 / 20%); }
.button--primary:disabled, .button--cream:disabled { color: #9da69d; background: #e5e8e1; box-shadow: none; }
.button--cream { color: #2f6249; background: #f3e8ce; box-shadow: 0 5px 12px rgb(9 42 31 / 12%); }
.button--cream:not(:disabled):hover { background: #fbf0d7; }
.button--outline { border-color: #d9e2d8; color: #426d53; background: #fffefa; }
.button--outline:not(:disabled):hover { border-color: #83aa8c; background: #f6faf4; }
.button--wide { width: 100%; }
.button--equipped { border-color: #dceade; color: #488060; background: #eef6ed; cursor: default; }
.text-button { display: inline-flex; align-items: center; gap: 7px; padding: 5px 0; border: 0; color: #68866d; background: transparent; font: 600 10px/1.2 "Sarabun", sans-serif; cursor: pointer; }
.text-button:hover { color: #356b4e; }
.eyebrow { display: block; color: #9ba69b; font: 700 9px/1.3 "Sarabun", sans-serif; letter-spacing: 1.15px; }
.panel { border: 1px solid #ebece6; border-radius: 15px; background: var(--paper); box-shadow: 0 5px 18px rgb(38 55 47 / 3%); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-heading h2 { margin: 4px 0 0; color: #334238; font: 600 17px/1.25 "Kanit", sans-serif; letter-spacing: -.2px; }

.level-card { display: flex; min-height: 72px; align-items: center; gap: 14px; margin-bottom: 19px; padding: 11px 15px; border: 1px solid #ebede6; border-radius: 13px; background: var(--paper); }
.level-card__avatar { display: grid; width: 43px; height: 43px; flex: none; place-items: center; border: 1px solid #e7ebdf; border-radius: 13px; background: #f0f2e9; font-size: 24px; }
.level-card__details { min-width: 170px; flex: 1; }
.level-card__top, .level-card__bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.level-card__top strong { color: #3a4b3e; font: 600 12px/1.2 "Sarabun", sans-serif; }
.level-card__top > span { padding: 3px 7px; border-radius: 6px; color: #638360; background: #eef4e9; font: 700 9px/1.2 "Sarabun", sans-serif; }
.level-card__bottom { margin-top: 5px; color: #9ca49a; font: 500 9px/1.3 "Sarabun", sans-serif; }
.level-card__upgrade { padding: 0; border: 0; color: #558461; background: transparent; font: 700 9px/1.2 "Sarabun", sans-serif; cursor: pointer; }
.level-card__upgrade:hover { color: #2f6d48; text-decoration: underline; }
.xp-line { height: 5px; overflow: hidden; margin-top: 6px; border-radius: 8px; background: #eef0e8; }
.xp-line span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #77a981, #b2c982); transition: width .4s ease; }
.level-card__currency { display: flex; min-width: 128px; align-items: center; gap: 9px; padding: 6px 4px 6px 18px; border-left: 1px solid #edefe8; }
.coin-icon { color: #d7a241; font-size: 25px; line-height: 1; }
.level-card__currency small, .level-card__currency strong { display: block; }
.level-card__currency small { color: #9ca49a; font: 500 9px/1.2 "Sarabun", sans-serif; }
.level-card__currency strong { margin-top: 3px; color: #425344; font: 700 13px/1.1 "Sarabun", sans-serif; }
.currency-plus { display: grid; width: 23px; height: 23px; margin-left: auto; place-items: center; border: 1px solid #e6ece3; border-radius: 8px; color: #729474; background: #f8faf4; font-size: 17px; }

.hero-card { position: relative; display: flex; min-height: 322px; overflow: hidden; align-items: center; border: 1px solid #264d3c; border-radius: 17px; background: linear-gradient(109deg, #244f3d 0%, #1f4939 48%, #264f3e 100%); box-shadow: 0 10px 26px rgb(31 73 57 / 14%); }
.hero-card::before { position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 100%, rgb(153 183 106 / 17%), transparent 35%), radial-gradient(ellipse at 78% 0%, rgb(247 217 144 / 12%), transparent 40%); content: ""; }
.hero-card__copy { position: relative; z-index: 2; width: 49%; padding: 30px 0 29px 34px; color: #fff; }
.eyebrow--light { display: flex; align-items: center; gap: 8px; color: #b6d4b9; }
.eyebrow--light > span { width: 6px; height: 6px; border-radius: 50%; background: #c5dd8f; box-shadow: 0 0 8px rgb(197 221 143 / 80%); }
.hero-card h1 { margin: 16px 0 9px; color: #fff9e9; font: 500 clamp(29px, 3.1vw, 40px)/1.12 "Kanit", sans-serif; letter-spacing: -.6px; }
.hero-card h1 span { color: #d7e9b0; }
.hero-card__copy > p { max-width: 360px; margin: 0; color: #cad7cb; font: 400 12px/1.8 "Sarabun", sans-serif; }
.hero-card__actions { display: flex; align-items: center; gap: 14px; margin-top: 21px; }
.hero-card__actions .button { min-height: 41px; padding-inline: 16px; }
.playtime { display: flex; align-items: center; gap: 6px; color: #b9c9bc; font: 500 10px/1.2 "Sarabun", sans-serif; }
.playtime span { font-size: 14px; }
.hero-card__footnote { display: flex; align-items: center; gap: 7px; margin-top: 18px; color: #a9c1ad; font: 500 9px/1.4 "Sarabun", sans-serif; }
.hero-card__footnote span { color: #d4dc9a; }
.hero-art { position: absolute; inset: 0 0 0 44%; overflow: hidden; }
.hero-art__sun { position: absolute; top: 37px; right: 21%; width: 94px; height: 94px; border: 1px solid rgb(248 226 162 / 24%); border-radius: 50%; background: radial-gradient(circle, rgb(241 205 129 / 40%) 0%, rgb(231 196 126 / 25%) 44%, rgb(221 195 133 / 8%) 71%); box-shadow: 0 0 40px rgb(244 215 148 / 12%); }
.hero-art__moon { position: absolute; top: 66px; right: 12%; color: #f4d88f; font-size: 15px; }
.hero-art__mountain { position: absolute; right: -4%; bottom: 28px; width: 77%; height: 60%; border-radius: 50% 50% 0 0; }
.hero-art__mountain--back { right: 2%; bottom: 50px; width: 70%; background: linear-gradient(142deg, #496b55, #365744); clip-path: polygon(0 100%, 18% 50%, 28% 62%, 48% 12%, 68% 62%, 79% 42%, 100% 100%); opacity: .92; }
.hero-art__mountain--front { right: -3%; bottom: 7px; width: 80%; height: 49%; background: linear-gradient(180deg, #3d6750, #2d5844); clip-path: polygon(0 100%, 0 69%, 18% 50%, 31% 70%, 45% 37%, 63% 58%, 76% 39%, 100% 70%, 100% 100%); }
.hero-art__tree { position: absolute; z-index: 2; color: #214a39; font: 100px/.8 Georgia, serif; text-shadow: 12px 0 0 #234b38, -11px 7px 0 #284f3b; opacity: .8; }
.hero-art__tree--one { right: 12%; bottom: 36px; font-size: 124px; }
.hero-art__tree--two { right: 31%; bottom: 30px; font-size: 82px; color: #315b42; }
.hero-art__tree--three { right: 3%; bottom: 23px; font-size: 72px; color: #315b42; }
.hero-art__crystal { position: absolute; z-index: 2; color: #b5d98f; text-shadow: 0 0 20px rgb(203 235 142 / 75%); transform: rotate(45deg); }
.hero-art__crystal--one { right: 48%; bottom: 56px; font-size: 31px; }
.hero-art__crystal--two { right: 24%; bottom: 68px; color: #8ccdb7; font-size: 20px; }
.hero-art__character { position: absolute; z-index: 3; right: 35%; bottom: 45px; display: grid; width: 82px; height: 100px; place-items: center; border-radius: 48% 48% 12px 12px; background: radial-gradient(ellipse at 50% 74%, #d0bd7d 0 28%, #6b8d64 29% 55%, transparent 56%); filter: drop-shadow(0 8px 8px rgb(10 36 26 / 25%)); }
.hero-art__character > span { margin-top: -23px; font-size: 49px; filter: drop-shadow(0 2px 1px rgb(30 44 34 / 20%)); }
.hero-art__character i { position: absolute; bottom: -9px; width: 32px; height: 13px; border-radius: 50%; background: rgb(20 46 33 / 35%); filter: blur(4px); }
.hero-art__spark { position: absolute; z-index: 2; color: #e7d89e; }
.hero-art__spark--one { top: 35%; left: 21%; font-size: 14px; }
.hero-art__spark--two { top: 23%; left: 41%; font-size: 27px; }
.hero-art__spark--three { top: 48%; right: 7%; font-size: 22px; }
.hero-art__label { position: absolute; z-index: 4; right: 30px; bottom: 26px; display: flex; min-width: 174px; align-items: center; gap: 9px; padding: 9px 11px; border: 1px solid rgb(226 239 216 / 28%); border-radius: 11px; background: rgb(22 59 44 / 76%); box-shadow: 0 5px 16px rgb(13 39 28 / 16%); backdrop-filter: blur(8px); }
.hero-art__label-dot { width: 7px; height: 7px; border-radius: 50%; background: #a5d394; box-shadow: 0 0 8px #a5d394; }
.hero-art__label small, .hero-art__label strong { display: block; }
.hero-art__label small { color: #a9c2ab; font: 500 8px/1.2 "Sarabun", sans-serif; }
.hero-art__label strong { margin-top: 3px; color: #f2f2df; font: 600 10px/1.1 "Sarabun", sans-serif; }
.hero-art__label-arrow { margin-left: auto; color: #bdd5b2; font-size: 14px; }
.hero-art__badge { position: absolute; top: 26px; right: 28px; z-index: 3; padding: 7px 10px; border: 1px solid rgb(227 239 218 / 20%); border-radius: 9px; color: #c6d8c8; background: rgb(22 59 44 / 54%); font: 500 9px/1.2 "Sarabun", sans-serif; }
.hero-art__badge b { margin-left: 4px; color: #ddedb4; }

.home-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(240px, .85fr); gap: 16px; margin-top: 18px; }
.journey-panel, .discover-panel { min-width: 0; padding: 19px 19px 15px; }
.journey-panel .panel-heading, .discover-panel .panel-heading { margin-bottom: 13px; }
.discover-count, .keepsake-count, .section-count { color: #97a094; font: 600 10px/1.2 "Sarabun", sans-serif; }
.journey-list { display: grid; }
.mini-stage { display: flex; min-height: 59px; align-items: center; gap: 11px; padding: 7px 5px; border: 0; border-top: 1px solid #f0f0eb; color: var(--ink); background: transparent; text-align: left; cursor: pointer; transition: background .16s ease; }
.mini-stage:first-child { border-top: 0; }
.mini-stage:not(:disabled):hover { border-radius: 9px; background: #f6f8f2; }
.mini-stage__icon { display: grid; width: 38px; height: 38px; flex: none; place-items: center; border: 1px solid #ebeee4; border-radius: 12px; background: #f2f4eb; font-size: 19px; }
.mini-stage.is-complete .mini-stage__icon { border-color: #d8e9d9; background: #e8f3e7; }
.mini-stage.is-locked .mini-stage__icon { filter: grayscale(.7); background: #f4f4f1; font-size: 14px; }
.mini-stage__copy { min-width: 0; flex: 1; }
.mini-stage__copy strong, .mini-stage__copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-stage__copy strong { color: #47564a; font: 600 11px/1.4 "Sarabun", sans-serif; }
.mini-stage__copy small { margin-top: 3px; color: #a1a89f; font: 500 9px/1.2 "Sarabun", sans-serif; }
.mini-stage__state { display: grid; width: 25px; height: 25px; flex: none; place-items: center; color: #8eaa89; }
.mini-stage.is-complete .mini-stage__state { border-radius: 50%; color: #4f8c65; background: #e8f3e9; font-size: 12px; }
.mini-stage.is-locked .mini-stage__state { color: #b1b7ae; font-size: 9px; }
.discover-panel { display: flex; flex-direction: column; }
.discover-art { position: relative; display: grid; min-height: 92px; margin: 0 0 3px; place-items: center; overflow: hidden; border-radius: 11px; background: radial-gradient(ellipse at 50% 115%, #e8ecd8, #f7f7f0 70%); }
.discover-art__book { z-index: 1; font-size: 40px; filter: drop-shadow(0 6px 5px rgb(64 76 48 / 18%)); transform: rotate(-7deg); }
.discover-art__star { position: absolute; color: #bdc98a; }
.discover-art__star--a { top: 15px; left: 29%; font-size: 15px; }
.discover-art__star--b { right: 28%; bottom: 20px; font-size: 19px; }
.discover-art__leaf { position: absolute; right: 18%; top: 10px; color: #91ad7a; font-size: 27px; transform: rotate(21deg); }
.discover-panel__text { margin: 7px 0 13px; color: #89958b; font: 400 10px/1.7 "Sarabun", sans-serif; }
.discover-panel .button { min-height: 36px; margin-top: auto; font-size: 10px; }
.classroom-note { display: flex; align-items: center; gap: 8px; margin: 12px 2px 0; color: #8f9c91; font: 500 9px/1.5 "Sarabun", sans-serif; }
.classroom-note__icon { display: grid; width: 14px; height: 14px; place-items: center; border: 1px solid #adb9a9; border-radius: 50%; font: 700 9px/1 "Sarabun", sans-serif; }
.classroom-note__tag { margin-left: auto; color: #a8b0a5; font: 700 8px/1 "Sarabun", sans-serif; letter-spacing: 1px; }

.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin: 10px 0 22px; }
.page-heading h1 { margin: 5px 0 4px; color: #32463a; font: 500 29px/1.2 "Kanit", sans-serif; letter-spacing: -.4px; }
.page-heading p { margin: 0; color: #8d988d; font: 400 12px/1.6 "Sarabun", sans-serif; }
.heading-progress { width: 142px; flex: none; padding: 10px 12px; border: 1px solid #e9ece4; border-radius: 11px; background: #fffefa; }
.heading-progress > span { display: block; color: #98a197; font: 500 9px/1.2 "Sarabun", sans-serif; }
.heading-progress > strong { display: block; margin-top: 3px; color: #415c47; font: 700 16px/1.15 "Sarabun", sans-serif; }
.heading-progress > strong small { color: #9ca69b; font-size: 10px; font-weight: 500; }
.progress-track { height: 4px; overflow: hidden; margin-top: 6px; border-radius: 5px; background: #eef0e9; }
.progress-track > span { display: block; height: 100%; border-radius: inherit; background: #77a582; transition: width .3s ease; }
.map-scene { position: relative; display: flex; min-height: 146px; align-items: center; overflow: hidden; padding: 24px 29px; border: 1px solid #dce7d7; border-radius: 14px; background: linear-gradient(103deg, #e6f0dd, #f0f2e5 48%, #e3ebdd); }
.map-scene::before, .map-scene::after { position: absolute; bottom: -63px; width: 53%; height: 155px; border-radius: 50% 50% 0 0; background: #c9dcbf; content: ""; }
.map-scene::before { left: -7%; transform: rotate(-7deg); }
.map-scene::after { right: -7%; height: 125px; background: #d5e2cc; transform: rotate(7deg); }
.map-scene__tree { position: absolute; z-index: 1; right: 23%; bottom: 4px; font-size: 84px; filter: drop-shadow(0 5px 2px rgb(48 73 52 / 10%)); }
.map-scene__mountain { position: absolute; right: 2%; bottom: 0; width: 40%; height: 85%; background: #dae7d2; clip-path: polygon(0 100%, 28% 40%, 43% 65%, 64% 15%, 100% 100%); }
.map-scene__copy { position: relative; z-index: 2; display: grid; gap: 3px; }
.map-scene__copy small { color: #849d7e; font: 700 8px/1.2 "Sarabun", sans-serif; letter-spacing: 1.2px; text-transform: uppercase; }
.map-scene__copy strong { color: #3d6147; font: 500 23px/1.3 "Kanit", sans-serif; }
.map-scene__copy em { color: #869888; font: normal 10px/1.2 "Sarabun", sans-serif; }
.map-scene__crystal { position: absolute; z-index: 2; right: 12%; top: 25px; color: #77aa88; font-size: 39px; text-shadow: 0 0 16px #a5cf9c; }
.map-list { position: relative; display: grid; gap: 13px; margin-top: 18px; }
.map-list::before { position: absolute; top: 42px; bottom: 42px; left: 23px; width: 1px; border-left: 2px dashed #d6dfd0; content: ""; }
.map-node { position: relative; display: grid; grid-template-columns: 48px 152px minmax(0, 1fr); min-height: 185px; align-items: center; gap: 14px; padding: 14px 19px 14px 13px; border: 1px solid #e9ece4; border-radius: 14px; background: #fffefa; transition: box-shadow .2s ease, border-color .2s ease; }
.map-node.is-current { border-color: #9cbea0; box-shadow: 0 6px 20px rgb(62 120 75 / 8%); }
.map-node.is-locked { background: #fafaf7; }
.map-node__number { position: relative; z-index: 1; display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid #dfe7da; border-radius: 50%; color: #849486; background: #fffefa; font: 700 9px/1 "Sarabun", sans-serif; }
.map-node.is-complete .map-node__number { border-color: #7aab85; color: white; background: #70a17c; }
.map-node.is-current .map-node__number { border-color: #82ad88; color: #4e855e; background: #e8f3e7; }
.map-node.is-locked .map-node__number { color: #adb4ab; background: #f5f5f2; }
.map-node__art { position: relative; display: grid; height: 132px; overflow: hidden; place-items: center; border: 1px solid #e5ebdf; border-radius: 12px; background: linear-gradient(145deg, #edf3e6, #dfe9d7); }
.map-node__art::before, .map-node__art::after { position: absolute; bottom: -29px; width: 120px; height: 79px; border-radius: 50%; background: #c5d6b8; content: ""; }
.map-node__art::before { left: -30px; }
.map-node__art::after { right: -34px; bottom: -37px; width: 130px; height: 87px; background: #d1dfc8; }
.map-node__art--2 { background: linear-gradient(145deg, #e7f0eb, #d9e9df); }
.map-node__art--2::before { background: #bdd6c6; }
.map-node__art--3 { background: linear-gradient(145deg, #f0ecdc, #e7ead9); }
.map-node__art--3::before { background: #d6dbbb; }
.map-node__art > span { position: relative; z-index: 1; margin-top: -14px; font-size: 43px; filter: drop-shadow(0 5px 5px rgb(59 74 48 / 16%)); }
.map-node__art > i { position: absolute; top: 19px; right: 25px; width: 30px; height: 30px; border-radius: 50%; background: rgb(246 220 151 / 65%); box-shadow: 0 0 18px rgb(246 220 151 / 32%); }
.map-node__content { min-width: 0; }
.map-node__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #98a398; font: 500 9px/1.2 "Sarabun", sans-serif; }
.map-node__meta span:first-child { padding: 4px 7px; border-radius: 6px; color: #718d6e; background: #edf4e9; font-weight: 600; }
.map-node.is-locked .map-node__meta span:first-child { color: #9aa19a; background: #f1f2ee; }
.map-node h2 { margin: 9px 0 0; color: #3c5041; font: 500 18px/1.2 "Kanit", sans-serif; }
.map-node h3 { margin: 3px 0 0; color: #829186; font: 500 10px/1.3 "Sarabun", sans-serif; }
.map-node p { margin: 8px 0 0; color: #8a968b; font: 400 10px/1.6 "Sarabun", sans-serif; }
.map-node__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 11px; }
.map-node__footer .button { min-height: 34px; padding-inline: 12px; font-size: 10px; }
.reward-preview { display: flex; gap: 12px; color: #9a9e8e; font: 600 9px/1.2 "Sarabun", sans-serif; }
.reward-preview span:first-child { color: #9b8a56; }
.reward-preview span:last-child { color: #b1873b; }
.locked-hint { color: #a3aaa1; font: 500 9px/1.3 "Sarabun", sans-serif; }
.chapter-next { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 15px 18px; border: 1px dashed #dfe3da; border-radius: 12px; color: #a1aaa1; background: #f8f9f5; }
.chapter-next > span:first-child { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 10px; background: #eef0e9; font-size: 15px; }
.chapter-next > div { flex: 1; }
.chapter-next strong, .chapter-next small { display: block; }
.chapter-next strong { color: #8d988e; font: 600 11px/1.3 "Sarabun", sans-serif; }
.chapter-next small { margin-top: 3px; color: #a9b0a8; font: 500 9px/1.2 "Sarabun", sans-serif; }
.chapter-next__soon { padding: 5px 8px; border-radius: 6px; color: #99a298; background: #eeefe9; font: 600 8px/1.2 "Sarabun", sans-serif; }

.adventure-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 4px 0 20px; }
.back-button { display: inline-flex; flex: none; align-items: center; gap: 8px; padding: 8px 0; border: 0; color: #819083; background: transparent; font: 600 10px/1.2 "Sarabun", sans-serif; cursor: pointer; }
.back-button .icon { transform: rotate(180deg); }
.adventure-heading__title { display: flex; flex: 1; align-items: center; justify-content: center; gap: 10px; }
.adventure-heading__icon { display: grid; width: 39px; height: 39px; place-items: center; border: 1px solid #e3eade; border-radius: 12px; background: #edf3e8; font-size: 21px; }
.adventure-heading__title .eyebrow { margin-bottom: 3px; font-size: 8px; }
.adventure-heading__title h1 { margin: 0; color: #34483a; font: 500 17px/1.2 "Kanit", sans-serif; }
.adventure-steps { display: flex; flex: none; align-items: center; gap: 6px; color: #a1aaa0; font: 500 8px/1.2 "Sarabun", sans-serif; }
.adventure-steps > span { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.adventure-steps i { display: grid; width: 18px; height: 18px; place-items: center; border: 1px solid #e1e5dd; border-radius: 50%; color: #a0a99f; background: #fff; font: normal 600 8px/1 "Sarabun", sans-serif; }
.adventure-steps > span.is-done { color: #5d8868; }
.adventure-steps > span.is-done i { border-color: #8fb295; color: white; background: #79a783; }
.adventure-steps > b { width: 17px; height: 1px; background: #dfe4dc; }
.adventure-layout { display: grid; grid-template-columns: minmax(0, 1fr) 230px; align-items: start; gap: 15px; }
.challenge-card, .battle-card, .result-card { min-width: 0; padding: 22px; border: 1px solid #e8ebe3; border-radius: 15px; background: #fffefa; box-shadow: var(--shadow); }
.exploration-card { min-width: 0; padding: 17px; border: 1px solid #e8ebe3; border-radius: 15px; background: #fffefa; box-shadow: var(--shadow); }
.exploration-card__heading { display: flex; align-items: center; gap: 10px; }
.exploration-card__icon { display: grid; width: 39px; height: 39px; flex: none; place-items: center; border: 1px solid #e4eadb; border-radius: 12px; background: #edf3e7; font-size: 20px; }
.exploration-card__heading > div { min-width: 0; flex: 1; }
.exploration-card__heading h2 { margin: 4px 0 0; color: #3c4f41; font: 500 16px/1.2 "Kanit", sans-serif; }
.exploration-counter { display: flex; align-items: baseline; gap: 4px; padding: 6px 9px; border: 1px solid #e8ecd9; border-radius: 8px; color: #6f8d6f; background: #f5f7ed; font: 600 11px/1 "Sarabun", sans-serif; }
.exploration-counter strong { color: #507b58; font-size: 15px; }
.exploration-counter i { color: #aab39e; font-style: normal; }
.exploration-counter small { color: #929e91; font: 500 8px/1 "Sarabun", sans-serif; }
.exploration-card__copy { margin: 11px 0 10px; color: #89958a; font: 400 9px/1.6 "Sarabun", sans-serif; }
.exploration-progress { display: flex; min-height: 34px; align-items: center; gap: 8px; padding: 6px 9px; border: 1px solid #eaeddf; border-radius: 8px 8px 0 0; color: #77866e; background: #f7f8ef; }
.exploration-progress__icon { color: #9caf75; font-size: 15px; }
.exploration-progress__text { min-width: 0; flex: 1; font: 600 8px/1.45 "Sarabun", sans-serif; }
.exploration-progress__bar { width: 58px; height: 5px; flex: none; overflow: hidden; border-radius: 9px; background: #e4e9d9; }
.exploration-progress__bar > i { display: block; height: 100%; border-radius: inherit; background: #82a87b; transition: width .25s ease; }
.world-game { position: relative; width: 100%; overflow: hidden; border: 1px solid #e5eadc; border-top: 0; border-radius: 0 0 12px 12px; background: #dce8d3; aspect-ratio: 16 / 9; }
.world-game canvas { display: block; width: 100% !important; height: 100% !important; touch-action: none; }
.world-game__loading, .world-error { display: grid; width: 100%; height: 100%; align-content: center; justify-items: center; gap: 9px; color: #71836e; background: linear-gradient(145deg, #e5eddc, #d9e6d2); text-align: center; font: 500 10px/1.4 "Sarabun", sans-serif; }
.world-game__loading > span { font-size: 37px; }
.world-error { min-height: 190px; padding: 15px; color: #876d55; }
.world-error .button { min-height: 34px; }
.world-error > small { max-width: 350px; color: #9a8a79; }
.world-controls { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 4px 0; }
.world-dpad { display: grid; width: 106px; height: 72px; flex: none; grid-template: repeat(2, 31px) / repeat(3, 31px); align-items: center; justify-items: center; gap: 3px; }
.world-dpad__button { display: grid; width: 31px; height: 31px; touch-action: none; user-select: none; place-items: center; border: 1px solid #e1e7dc; border-radius: 9px; color: #63806a; background: #f8faf5; box-shadow: 0 2px 4px rgb(37 59 39 / 5%); font: 700 13px/1 "Sarabun", sans-serif; cursor: pointer; }
.world-dpad__button:active { border-color: #83a98a; color: #fff; background: #7fa586; transform: scale(.96); }
.world-dpad__button--up { grid-area: 1 / 2; }
.world-dpad__button--left { grid-area: 2 / 1; }
.world-dpad__button--down { grid-area: 2 / 2; }
.world-dpad__button--right { grid-area: 2 / 3; }
.world-controls__hint { display: flex; min-width: 0; align-items: center; gap: 9px; }
.world-controls__hint-icon { display: grid; width: 30px; height: 30px; flex: none; place-items: center; border: 1px solid #e8ebdf; border-radius: 9px; color: #869b75; background: #f4f6ec; font-size: 14px; }
.world-controls__hint strong, .world-controls__hint small { display: block; }
.world-controls__hint strong { color: #637361; font: 600 9px/1.3 "Sarabun", sans-serif; }
.world-controls__hint small { margin-top: 3px; color: #9ba59a; font: 400 8px/1.4 "Sarabun", sans-serif; }
.world-controls__skip { min-height: 32px; flex: none; padding: 0 9px; border: 1px solid #e1e7dc; border-radius: 8px; color: #7c897c; background: #fff; font: 600 8px/1.2 "Sarabun", sans-serif; cursor: pointer; }
.world-controls__skip:hover { border-color: #a9bca0; background: #f7faf3; }
.challenge-card__top { display: flex; align-items: center; gap: 11px; }
.challenge-card__book { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid #e7e9db; border-radius: 12px; color: #8c9562; background: #f1f1e1; }
.challenge-card__book .icon { width: 19px; height: 19px; }
.challenge-card__top h2 { margin: 4px 0 0; color: #3e5143; font: 500 18px/1.2 "Kanit", sans-serif; }
.challenge-card__step { margin-left: auto; color: #a5ada3; font: 600 9px/1.2 "Sarabun", sans-serif; }
.challenge-card__story { margin: 16px 0; padding: 11px 13px; border-left: 2px solid #9cb998; border-radius: 0 8px 8px 0; color: #718072; background: #f5f7f0; font: 400 10px/1.65 "Sarabun", sans-serif; }
.challenge-card__question { margin-bottom: 10px; }
.challenge-card__question > span { display: flex; align-items: center; gap: 6px; color: #a38c59; font: 600 9px/1.3 "Sarabun", sans-serif; }
.challenge-card__question h3 { margin: 7px 0 0; color: #35483b; font: 500 15px/1.6 "Kanit", sans-serif; }
.answer-list { display: grid; gap: 8px; }
.answer-option { display: flex; min-height: 48px; align-items: center; gap: 11px; padding: 8px 11px; border: 1px solid #e7e9e2; border-radius: 10px; color: #4e5f52; background: #fff; text-align: left; cursor: pointer; transition: border-color .16s, background .16s, transform .16s; }
.answer-option:hover { border-color: #8fb396; background: #f7fbf5; transform: translateX(2px); }
.answer-option__letter { display: grid; width: 25px; height: 25px; flex: none; place-items: center; border: 1px solid #e7e9e2; border-radius: 8px; color: #869287; background: #fafbf7; font: 700 9px/1 "Sarabun", sans-serif; }
.answer-option > span:nth-child(2) { flex: 1; font: 500 11px/1.45 "Sarabun", sans-serif; }
.answer-option__arrow { display: grid; width: 24px; height: 24px; place-items: center; color: #a9b4a8; }
.answer-option__arrow .icon { width: 13px; }
.challenge-card__hint { display: flex; align-items: flex-start; gap: 7px; margin-top: 14px; color: #9aa398; font: 400 9px/1.55 "Sarabun", sans-serif; }
.challenge-card__hint > span:first-child { color: #a0b57f; }
.adventure-aside { display: grid; gap: 12px; }
.aside-card { padding: 15px; border: 1px solid #e8ebe4; border-radius: 13px; background: #fffefa; }
.aside-card--guide { position: relative; padding: 16px 14px 13px 60px; background: linear-gradient(142deg, #f8f5e9, #f5f6ee); }
.guide-icon { position: absolute; top: 15px; left: 13px; display: grid; width: 37px; height: 37px; place-items: center; border: 1px solid #ece8d7; border-radius: 12px; background: #fffdf2; font-size: 20px; }
.aside-card--guide > div strong, .aside-card--guide > div small { display: block; }
.aside-card--guide > div strong { color: #52604b; font: 600 10px/1.3 "Sarabun", sans-serif; }
.aside-card--guide > div small { margin-top: 3px; color: #9fa38f; font: 500 8px/1.2 "Sarabun", sans-serif; }
.aside-card--guide > p { grid-column: 1 / -1; margin: 12px 0 0 -46px; color: #858b78; font: 400 9px/1.7 "Sarabun", sans-serif; }
.equipped-mini { display: flex; align-items: center; gap: 9px; margin-top: 12px; }
.equipped-mini > span:first-child { display: grid; width: 33px; height: 33px; flex: none; place-items: center; border: 1px solid #ebede6; border-radius: 10px; background: #f6f7f1; font-size: 17px; }
.equipped-mini strong, .equipped-mini small { display: block; }
.equipped-mini strong { color: #4e5d51; font: 600 9px/1.3 "Sarabun", sans-serif; }
.equipped-mini small { margin-top: 3px; color: #9da59b; font: 500 8px/1.2 "Sarabun", sans-serif; }
.aside-note { display: flex; align-items: flex-start; gap: 7px; padding: 9px 10px; border-radius: 9px; color: #849284; background: #ebf3e9; font: 500 8px/1.5 "Sarabun", sans-serif; }
.aside-note .icon { width: 13px; height: 13px; color: #679173; }

.battle-card { padding: 19px; }
.battle-card__top { display: flex; align-items: center; justify-content: space-between; }
.battle-card__top h2 { margin: 4px 0 0; color: #3a4c3e; font: 500 19px/1.2 "Kanit", sans-serif; }
.battle-round { display: flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 7px; color: #698a69; background: #edf4e8; font: 600 8px/1.2 "Sarabun", sans-serif; }
.battle-round__dot { width: 6px; height: 6px; border-radius: 50%; background: #79ad7b; box-shadow: 0 0 0 3px #daebd8; }
.battle-arena { position: relative; display: grid; min-height: 206px; grid-template-columns: 1fr 52px 1fr; align-items: center; overflow: hidden; margin-top: 15px; border: 1px solid #e3e9db; border-radius: 12px; background: linear-gradient(180deg, #f3f2e5 0%, #e7eddf 66%, #d7e3d1 100%); }
.battle-arena__sky { position: absolute; top: 18px; right: 20%; width: 58px; height: 58px; border-radius: 50%; background: #f1d99b; opacity: .65; }
.battle-arena__ground { position: absolute; inset: auto 0 0; height: 35%; background: linear-gradient(180deg, #cbdabd, #bacdaf); clip-path: ellipse(70% 60% at 50% 100%); }
.battle-arena__spark { position: absolute; z-index: 1; color: #a0b98b; }
.battle-arena__spark--one { top: 21%; left: 34%; font-size: 18px; }
.battle-arena__spark--two { top: 30%; right: 18%; font-size: 15px; }
.combatant { position: relative; z-index: 2; display: flex; min-width: 0; flex-direction: column; align-items: center; padding: 16px 8px 11px; text-align: center; }
.combatant__glow { position: absolute; top: 23px; width: 93px; height: 77px; border-radius: 50%; background: rgb(189 222 159 / 50%); filter: blur(13px); }
.combatant--enemy .combatant__glow { background: rgb(224 181 136 / 40%); }
.combatant__sprite { position: relative; z-index: 1; display: grid; width: 87px; height: 92px; place-items: center; font-size: 61px; filter: drop-shadow(0 6px 5px rgb(63 74 51 / 19%)); animation: character-bob 2.8s ease-in-out infinite; }
.combatant--enemy .combatant__sprite { font-size: 65px; animation-delay: -.7s; }
.combatant__name { max-width: 100%; overflow: hidden; margin-top: 1px; color: #405244; font: 600 10px/1.3 "Sarabun", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.combatant__role { margin-top: 3px; color: #8f9a8c; font: 500 8px/1.2 "Sarabun", sans-serif; }
.health-bar { width: min(115px, 88%); height: 6px; overflow: hidden; margin-top: 9px; border: 1px solid rgb(104 148 102 / 19%); border-radius: 8px; background: rgb(255 255 255 / 68%); }
.health-bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #77ae77, #aad17d); transition: width .28s ease; }
.health-bar--enemy { border-color: rgb(183 122 91 / 18%); }
.health-bar--enemy > span { background: linear-gradient(90deg, #db9073, #ecb27c); }
.combatant > small { margin-top: 4px; color: #748275; font: 600 8px/1.2 "Sarabun", sans-serif; }
.battle-arena__versus { position: relative; z-index: 2; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgb(241 244 231 / 89%); border-radius: 50%; color: #a28b66; background: rgb(255 255 255 / 54%); font: 700 9px/1 "Sarabun", sans-serif; }
.battle-insight { display: flex; align-items: center; gap: 9px; margin-top: 12px; padding: 9px 11px; border: 1px solid #e9eadb; border-radius: 9px; background: #f7f6ea; }
.battle-insight__icon { display: grid; width: 26px; height: 26px; flex: none; place-items: center; border-radius: 8px; background: #eeeddc; font-size: 13px; }
.battle-insight strong, .battle-insight small { display: block; }
.battle-insight strong { color: #6d7754; font: 600 9px/1.3 "Sarabun", sans-serif; }
.battle-insight small { margin-top: 2px; color: #90967d; font: 400 8px/1.45 "Sarabun", sans-serif; }
.battle-actions { margin-top: 14px; }
.battle-actions__heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.battle-actions__heading .eyebrow { font-size: 8px; }
.energy-pips { color: #9f9869; font: 600 8px/1.2 "Sarabun", sans-serif; }
.energy-pips i { color: #a5aca0; font-style: normal; font-weight: 500; }
.battle-actions__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.battle-action { display: flex; min-height: 55px; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid #e7e9e1; border-radius: 9px; color: #49584b; background: #fff; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.battle-action:not(:disabled):hover { border-color: #93b391; background: #f7fbf4; transform: translateY(-1px); }
.battle-action:disabled { color: #b4bbb2; background: #f7f7f3; opacity: .67; }
.battle-action__icon { display: grid; width: 31px; height: 31px; flex: none; place-items: center; border-radius: 9px; }
.battle-action__icon .icon { width: 17px; height: 17px; }
.battle-action__icon--attack { color: #bd7665; background: #f8ece7; }
.battle-action__icon--skill { color: #8375a6; background: #f0edf7; font-size: 17px; }
.battle-action__icon--defend { color: #638899; background: #eaf2f4; }
.battle-action__icon--potion { background: #f7eeee; font-size: 15px; }
.battle-action > span:nth-child(2) { min-width: 0; flex: 1; }
.battle-action strong, .battle-action small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.battle-action strong { color: #546056; font: 600 9px/1.3 "Sarabun", sans-serif; }
.battle-action strong i { color: #9d8c67; font-style: normal; }
.battle-action small { margin-top: 3px; color: #9ca59a; font: 500 7px/1.2 "Sarabun", sans-serif; }
.battle-action__key { display: grid; width: 17px; height: 17px; flex: none; place-items: center; border: 1px solid #e9ebe5; border-radius: 5px; color: #a4aca1; background: #fbfbf8; font: 600 7px/1 "Sarabun", sans-serif; }
.battle-log { margin-top: 13px; padding-top: 9px; border-top: 1px solid #eef0e9; }
.battle-log__label { display: block; margin-bottom: 4px; color: #9ba59a; font: 700 8px/1.2 "Sarabun", sans-serif; letter-spacing: .55px; }
.battle-log p { display: flex; gap: 7px; margin: 4px 0; color: #849184; font: 400 8px/1.5 "Sarabun", sans-serif; }
.battle-log p::before { width: 4px; height: 4px; flex: none; margin-top: 4px; border-radius: 50%; background: #a8bd9a; content: ""; }
.result-card { display: flex; min-height: 415px; flex-direction: column; align-items: center; justify-content: center; padding: 33px; overflow: hidden; text-align: center; background: radial-gradient(ellipse at 50% 0, #f4f5e8, #fffefa 59%); }
.result-card--defeat { background: radial-gradient(ellipse at 50% 0, #f0f0e9, #fffefa 59%); }
.result-card__confetti { margin-bottom: -8px; color: #b7bf83; font-size: 16px; letter-spacing: 9px; }
.result-card__medal { display: grid; width: 68px; height: 68px; margin: 7px 0 14px; place-items: center; border: 1px solid #e7e8d3; border-radius: 24px; background: #f5f2d9; font-size: 35px; box-shadow: 0 7px 18px rgb(102 110 64 / 8%); }
.result-card--defeat .result-card__medal { border-color: #e7e9e3; background: #f1f2ee; }
.result-card > .eyebrow { color: #93a27f; }
.result-card h2 { margin: 8px 0 5px; color: #3d553f; font: 500 25px/1.2 "Kanit", sans-serif; }
.result-card--defeat h2 { color: #596057; }
.result-card > p { max-width: 340px; margin: 0; color: #8e998c; font: 400 10px/1.7 "Sarabun", sans-serif; }
.result-rewards { display: flex; align-items: stretch; gap: 8px; margin: 20px 0; }
.result-rewards > div { display: grid; min-width: 83px; gap: 2px; justify-items: center; padding: 8px 10px; border: 1px solid #e9ebdf; border-radius: 10px; background: #fff; }
.result-rewards > div > span { color: #b09a62; font-size: 15px; }
.result-rewards strong { color: #58674f; font: 700 13px/1.2 "Sarabun", sans-serif; }
.result-rewards small { max-width: 100px; overflow: hidden; color: #9ba396; font: 500 8px/1.3 "Sarabun", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.result-card__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.result-card__actions .button { min-height: 37px; font-size: 10px; }

.page-heading--house { margin-bottom: 15px; }
.house-level-badge, .inventory-counter { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid #e4e9de; border-radius: 9px; color: #6d896d; background: #f9faf5; font: 600 10px/1.2 "Sarabun", sans-serif; white-space: nowrap; }
.house-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .85fr); align-items: stretch; gap: 15px; }
.house-scene { position: relative; min-height: 285px; overflow: hidden; border: 1px solid #e1e8d8; border-radius: 15px; background: linear-gradient(180deg, #dfeaf0 0%, #eff1dc 67%, #dce6cf 100%); }
.house-scene__sky { position: absolute; inset: 0 0 auto; height: 57%; }
.house-scene__sun { position: absolute; top: 24px; right: 17%; color: #d8b66c; font-size: 30px; opacity: .9; }
.house-scene__cloud { position: absolute; top: 50px; left: 14%; width: 55px; height: 12px; border-radius: 50%; background: rgb(255 255 255 / 61%); }
.house-scene__cloud::before, .house-scene__cloud::after { position: absolute; bottom: 1px; width: 23px; height: 20px; border-radius: 50%; background: inherit; content: ""; }
.house-scene__cloud::before { left: 8px; }
.house-scene__cloud::after { left: 24px; width: 17px; height: 16px; }
.house-scene__cloud--two { top: 83px; left: 45%; transform: scale(.68); opacity: .68; }
.house-scene__hill { position: absolute; bottom: -57px; width: 72%; height: 166px; border-radius: 50%; background: #cadcba; }
.house-scene__hill--back { left: -13%; bottom: -52px; background: #d3e0c8; transform: rotate(-9deg); }
.house-scene__hill--front { right: -16%; bottom: -70px; background: #c5d8b4; transform: rotate(8deg); }
.house-scene__trees { position: absolute; z-index: 2; bottom: 71px; left: 5%; color: #678669; font-size: 29px; letter-spacing: 12px; opacity: .9; }
.cottage { position: absolute; z-index: 3; left: 50%; bottom: 48px; width: 139px; height: 112px; transform: translateX(-50%); filter: drop-shadow(0 8px 5px rgb(62 79 51 / 13%)); }
.cottage__body { position: absolute; right: 8px; bottom: 0; left: 8px; height: 67px; border: 2px solid #a77a54; border-radius: 4px 4px 7px 7px; background: linear-gradient(90deg, #f5e5c6, #f4e7cd 70%, #e8d2ad); }
.cottage__roof { position: absolute; z-index: 1; top: 0; left: 0; width: 100%; height: 60px; border: 2px solid #876346; background: linear-gradient(150deg, #a77b54, #8d684b); clip-path: polygon(50% 0, 100% 72%, 95% 85%, 50% 30%, 5% 85%, 0 72%); }
.cottage__door { position: absolute; bottom: 0; left: 54px; width: 31px; height: 45px; border: 2px solid #a77a54; border-bottom: 0; border-radius: 13px 13px 0 0; background: #97704e; }
.cottage__door::after { position: absolute; top: 23px; right: 5px; width: 4px; height: 4px; border-radius: 50%; background: #f2db9e; content: ""; }
.cottage__window { position: absolute; z-index: 1; top: 16px; width: 21px; height: 22px; border: 2px solid #98714d; border-radius: 50% 50% 3px 3px; background: #b7d2d0; }
.cottage__window::after { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: #99724f; content: ""; }
.cottage__window--left { left: 13px; }
.cottage__window--right { right: 13px; }
.cottage__chimney { position: absolute; z-index: 0; top: 8px; right: 23px; width: 14px; height: 29px; background: #9b7352; }
.cottage__smoke { position: absolute; top: -10px; right: 4px; color: #b9c7ba; font-size: 20px; }
.house-scene__path { position: absolute; z-index: 2; bottom: -1px; left: 50%; width: 114px; height: 69px; background: #dfd5b5; clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%); transform: translateX(-50%); }
.house-scene__flowers { position: absolute; z-index: 3; right: 7%; bottom: 28px; color: #879c6b; font-size: 17px; letter-spacing: 8px; }
.house-scene__banner { position: absolute; z-index: 4; top: 17px; left: 17px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid rgb(255 255 255 / 65%); border-radius: 9px; background: rgb(255 254 247 / 81%); backdrop-filter: blur(7px); }
.house-scene__banner > span:first-child { color: #79936d; font-size: 17px; }
.house-scene__banner small, .house-scene__banner strong { display: block; }
.house-scene__banner small { color: #93a092; font: 500 8px/1.2 "Sarabun", sans-serif; }
.house-scene__banner strong { margin-top: 2px; color: #516b51; font: 600 9px/1.2 "Sarabun", sans-serif; }
.house-scene__decor { position: absolute; z-index: 4; bottom: 38px; color: #758c61; font-size: 18px; }
.house-scene__decor--one { left: 27%; }
.house-scene__decor--two { right: 25%; }
.house-scene--level-2 .cottage { transform: translateX(-50%) scale(1.1); transform-origin: bottom; }
.house-scene--level-3 { background: linear-gradient(180deg, #dce7ed, #f3eeda 70%, #dce7d1); }
.house-scene--level-3 .cottage { transform: translateX(-50%) scale(1.2); transform-origin: bottom; filter: drop-shadow(0 0 10px rgb(226 190 101 / 23%)); }
.character-layout { display: grid; grid-template-columns: minmax(220px, .75fr) minmax(0, 1.6fr); gap: 14px; }
.character-portrait { position: relative; display: flex; min-height: 285px; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; border: 1px solid #dfe8d9; border-radius: 15px; background: radial-gradient(ellipse at 50% 48%, #edf2df 0%, #e5eddc 42%, #dce8d8 100%); }
.character-portrait::before, .character-portrait::after { position: absolute; bottom: -54px; width: 130%; height: 130px; border-radius: 50%; background: #cddfc6; content: ""; }
.character-portrait::before { left: -36%; bottom: -68px; background: #d5e2cd; }
.character-portrait::after { right: -40%; bottom: -81px; background: #c2d6bd; }
.character-portrait__halo { position: absolute; top: 48px; width: 139px; height: 139px; border: 1px solid rgb(124 160 113 / 25%); border-radius: 50%; background: radial-gradient(circle, rgb(249 247 219 / 85%), rgb(205 224 191 / 25%) 69%, transparent 70%); box-shadow: 0 0 36px rgb(165 189 125 / 17%); }
.character-portrait__avatar { position: relative; z-index: 1; display: grid; width: 138px; height: 150px; margin-top: 10px; place-items: center; border-radius: 47% 47% 22% 22%; background: radial-gradient(ellipse at 50% 80%, #87a47a 0 31%, #aebc88 32% 49%, transparent 50%); filter: drop-shadow(0 7px 6px rgb(57 80 52 / 12%)); font-size: 78px; }
.character-portrait__identity { position: relative; z-index: 3; display: grid; justify-items: center; gap: 3px; margin-top: 5px; }
.character-portrait__identity > span { color: #84967d; font: 500 8px/1.2 "Sarabun", sans-serif; }
.character-portrait__identity > strong { color: #405c45; font: 500 17px/1.2 "Kanit", sans-serif; }
.character-portrait__identity > small { color: #91a08b; font: 600 8px/1.3 "Sarabun", sans-serif; letter-spacing: .5px; }
.character-portrait__spark { position: absolute; z-index: 2; color: #a0b380; }
.character-portrait__spark--one { top: 72px; left: 15%; font-size: 19px; }
.character-portrait__spark--two { top: 115px; right: 16%; font-size: 24px; }
.character-details { display: grid; align-content: start; gap: 13px; }
.character-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.character-stat { display: grid; min-height: 115px; align-content: start; justify-items: start; padding: 12px; border: 1px solid #e8ebe4; border-radius: 12px; background: #fffefa; }
.character-stat__icon { display: grid; width: 29px; height: 29px; margin-bottom: 7px; place-items: center; border-radius: 9px; }
.character-stat__icon .icon { width: 15px; height: 15px; }
.character-stat--gold .character-stat__icon { color: #ad8751; background: #f7f0e2; }
.character-stat--blue .character-stat__icon { color: #688d99; background: #edf3f3; }
.character-stat--purple .character-stat__icon { color: #887bad; background: #f1eef7; }
.character-stat__label { color: #869185; font: 600 8px/1.2 "Sarabun", sans-serif; }
.character-stat > strong { margin-top: 1px; color: #4c5d4f; font: 500 20px/1.1 "Kanit", sans-serif; }
.character-stat > small { margin-top: 3px; color: #a0a89d; font: 500 7px/1.3 "Sarabun", sans-serif; }
.character-equipment { padding: 13px; }
.character-equipment .panel-heading { margin-bottom: 9px; }
.character-equipment .panel-heading h2 { font-size: 14px; }
.character-equipment__items { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.character-equipment__items > div { display: grid; grid-template-columns: 33px minmax(0, 1fr); align-items: center; column-gap: 8px; padding: 8px; border: 1px solid #edefe7; border-radius: 9px; background: #fbfcf8; }
.character-equipment__items > div > span { display: grid; width: 32px; height: 32px; grid-row: span 2; place-items: center; border-radius: 9px; background: #f0f3e8; font-size: 17px; }
.character-equipment__items small, .character-equipment__items strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.character-equipment__items small { color: #a0a89d; font: 500 7px/1.2 "Sarabun", sans-serif; }
.character-equipment__items strong { color: #5a6959; font: 600 8px/1.35 "Sarabun", sans-serif; }
.avatar-section { margin-top: 14px; padding: 16px; }
.avatar-section .panel-heading { margin-bottom: 13px; }
.avatar-section__hint { color: #a0a99d; font: 500 8px/1.2 "Sarabun", sans-serif; }
.avatar-picker { display: flex; flex-wrap: wrap; gap: 9px; }
.avatar-option { position: relative; display: grid; width: 54px; height: 54px; place-items: center; border: 1px solid #e8ebe3; border-radius: 14px; background: #f7f8f3; cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.avatar-option:hover { border-color: #9bb69a; background: #f1f6ec; transform: translateY(-2px); }
.avatar-option.is-selected { border-color: #7ba783; background: #edf5e9; box-shadow: 0 0 0 2px rgb(120 167 131 / 13%); }
.avatar-option > span { font-size: 27px; }
.avatar-option > i { position: absolute; top: -5px; right: -5px; display: grid; width: 16px; height: 16px; place-items: center; border: 1px solid #fff; border-radius: 50%; color: white; background: #659774; font: normal 700 8px/1 "Sarabun", sans-serif; }
.avatar-section__note { margin: 11px 0 0; color: #9ba59a; font: 400 8px/1.4 "Sarabun", sans-serif; }
.house-info { padding: 18px; }
.house-info h2 { margin: 6px 0 5px; color: #40533f; font: 500 19px/1.2 "Kanit", sans-serif; }
.house-info > p { margin: 0; color: #909b8e; font: 400 10px/1.55 "Sarabun", sans-serif; }
.house-feature-list { display: grid; gap: 12px; margin: 17px 0; padding: 14px 0; border-top: 1px solid #eef0e9; border-bottom: 1px solid #eef0e9; }
.house-feature-list > div { display: flex; align-items: center; gap: 10px; }
.house-feature-list > div > span:first-child { display: grid; width: 28px; height: 28px; flex: none; place-items: center; border: 1px solid #e8ebdf; border-radius: 9px; color: #81936f; background: #f5f7ef; font-size: 12px; }
.house-feature-list strong, .house-feature-list small { display: block; }
.house-feature-list strong { color: #596758; font: 600 9px/1.3 "Sarabun", sans-serif; }
.house-feature-list small { margin-top: 3px; color: #9da69a; font: 500 8px/1.2 "Sarabun", sans-serif; }
.house-upgrade { display: grid; gap: 9px; }
.house-upgrade > div { display: flex; align-items: center; justify-content: space-between; color: #929d90; font: 500 9px/1.2 "Sarabun", sans-serif; }
.house-upgrade > div strong { color: #9a804c; font: 700 10px/1.2 "Sarabun", sans-serif; }
.house-upgrade .button { min-height: 38px; font-size: 10px; }
.house-upgrade__hint { color: #a0a69e; text-align: center; font: 500 8px/1.2 "Sarabun", sans-serif; }
.home-keepsakes { margin-top: 15px; padding: 18px; }
.home-keepsakes .panel-heading { margin-bottom: 13px; }
.keepsake-list { display: flex; gap: 10px; }
.keepsake { display: grid; min-width: 74px; justify-items: center; gap: 6px; padding: 8px 10px; border: 1px solid #edeee8; border-radius: 10px; background: #fafaf7; }
.keepsake > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; color: #adb4a7; background: #f1f2ed; font-size: 17px; }
.keepsake > small { max-width: 110px; overflow: hidden; color: #a6ada3; font: 500 8px/1.3 "Sarabun", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.keepsake.is-found { border-color: #e4ebdf; background: #f8faf5; }
.keepsake.is-found > span { background: #edf3e7; }
.keepsake.is-found > small { color: #71856f; }

.inventory-counter i { color: #b1b8ad; font-style: normal; }
.inventory-section { margin-top: 21px; }
.inventory-section > .panel-heading { margin-bottom: 10px; }
.item-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.item-card { position: relative; display: flex; min-height: 138px; gap: 11px; padding: 13px 12px; border: 1px solid #e8ebe4; border-radius: 13px; background: #fffefa; }
.item-card.is-equipped { border-color: #d4e4d2; background: #fbfdf9; }
.item-card__icon { display: grid; width: 46px; height: 46px; flex: none; place-items: center; border: 1px solid #e9ede3; border-radius: 13px; background: #f3f5ec; font-size: 24px; }
.item-card__copy { min-width: 0; flex: 1; padding-right: 3px; }
.item-card__type { display: block; color: #9ba69a; font: 600 8px/1.2 "Sarabun", sans-serif; }
.item-card__copy h3 { overflow: hidden; margin: 4px 0 3px; color: #46574a; font: 600 12px/1.2 "Sarabun", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.item-card__copy p { margin: 0; color: #98a296; font: 400 8px/1.5 "Sarabun", sans-serif; }
.item-card__stat { display: inline-flex; align-items: center; gap: 4px; margin-top: 7px; padding: 4px 6px; border-radius: 6px; color: #8b875f; background: #f7f5e9; font: 600 8px/1.2 "Sarabun", sans-serif; }
.item-card__stat .icon { width: 11px; height: 11px; }
.item-card > .button { position: absolute; right: 11px; bottom: 11px; min-height: 27px; padding: 0 9px; border-radius: 7px; font-size: 8px; }
.item-card__copy { padding-bottom: 25px; }
.potion-row { display: flex; align-items: center; gap: 11px; margin-top: 17px; padding: 12px 14px; border: 1px solid #e9eae4; border-radius: 12px; background: #fffefa; }
.potion-row__icon { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 11px; background: #f6edee; font-size: 20px; }
.potion-row > span:nth-child(2) { flex: 1; }
.potion-row strong, .potion-row small { display: block; }
.potion-row strong { color: #566354; font: 600 10px/1.3 "Sarabun", sans-serif; }
.potion-row small { margin-top: 3px; color: #9ba499; font: 400 8px/1.35 "Sarabun", sans-serif; }
.potion-row > b { color: #a28861; font: 700 12px/1 "Sarabun", sans-serif; }

.codex-total { display: flex; align-items: baseline; gap: 6px; color: #8c9b86; }
.codex-total strong { color: #5d805f; font: 500 24px/1 "Kanit", sans-serif; }
.codex-total span { color: #99a395; font: 500 9px/1 "Sarabun", sans-serif; }
.codex-list { display: grid; gap: 10px; }
.codex-entry { display: grid; grid-template-columns: 27px 42px minmax(0, 1fr) auto; align-items: start; gap: 11px; padding: 15px 16px; border: 1px solid #e8ebe4; border-radius: 13px; background: #fffefa; }
.codex-entry__index { padding-top: 7px; color: #b0b8ad; font: 700 9px/1 "Sarabun", sans-serif; }
.codex-entry__icon { display: grid; width: 39px; height: 39px; place-items: center; border: 1px solid #e6ebdf; border-radius: 12px; background: #f1f4e9; font-size: 20px; }
.codex-entry__meta { display: flex; flex-wrap: wrap; gap: 8px; color: #9ca69a; font: 500 8px/1.2 "Sarabun", sans-serif; }
.codex-entry__meta span:first-child { color: #81976f; }
.codex-entry__content h2 { margin: 6px 0 4px; color: #47574a; font: 500 13px/1.5 "Kanit", sans-serif; }
.codex-entry__content p { margin: 0; color: #89968a; font: 400 9px/1.65 "Sarabun", sans-serif; }
.codex-entry__stamp { display: inline-flex; align-items: center; gap: 4px; padding: 5px 7px; border-radius: 6px; color: #749276; background: #edf4eb; font: 600 8px/1.2 "Sarabun", sans-serif; white-space: nowrap; }
.codex-locked { margin-top: 19px; padding: 17px; border: 1px dashed #e1e4dc; border-radius: 13px; background: #f9faf6; }
.codex-locked .panel-heading { margin-bottom: 11px; }
.codex-locked .panel-heading h2 { font-size: 14px; }
.codex-locked > div:last-child { display: flex; flex-wrap: wrap; gap: 7px; }
.codex-locked__pill { padding: 7px 9px; border: 1px solid #e9ebe6; border-radius: 7px; color: #a1aaa0; background: #fffefa; font: 500 8px/1.2 "Sarabun", sans-serif; }
.codex-complete { margin-top: 15px; padding: 15px; border-radius: 10px; color: #6d896c; background: #eef5e9; text-align: center; font: 600 10px/1.5 "Sarabun", sans-serif; }
.empty-state { display: grid; min-height: 360px; align-content: center; justify-items: center; padding: 30px; text-align: center; }
.empty-state__icon { display: grid; width: 68px; height: 68px; place-items: center; border: 1px solid #e5eadf; border-radius: 22px; background: #f1f5eb; font-size: 31px; }
.empty-state h1, .empty-state h2 { margin: 17px 0 5px; color: #445749; font: 500 21px/1.3 "Kanit", sans-serif; }
.empty-state p { margin: 0 0 15px; color: #8e998e; font: 400 11px/1.6 "Sarabun", sans-serif; }
.empty-state--journal { min-height: 245px; border: 1px dashed #e1e5dc; border-radius: 14px; background: #fafbf7; }
.empty-state--journal h2 { margin-top: 12px; font-size: 17px; }
.empty-state--journal .button { margin-top: 5px; }

.game-dialog { width: min(485px, calc(100% - 28px)); max-width: none; max-height: min(90vh, 720px); padding: 0; overflow: auto; border: 1px solid #e5e9e0; border-radius: 17px; color: var(--ink); background: #fffefa; box-shadow: 0 25px 80px rgb(27 45 31 / 23%); }
.game-dialog::backdrop { background: rgb(25 42 31 / 42%); backdrop-filter: blur(4px); }
.dialog-inner { padding: 22px; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.dialog-heading h2 { margin: 4px 0 2px; color: #3b4e3f; font: 500 20px/1.2 "Kanit", sans-serif; }
.dialog-heading p { margin: 0; color: #929c90; font: 400 10px/1.5 "Sarabun", sans-serif; }
.dialog-close { display: grid; width: 30px; height: 30px; flex: none; place-items: center; border: 1px solid #e8ebe3; border-radius: 9px; color: #8d988d; background: #fff; cursor: pointer; }
.dialog-close:hover { background: #f4f7f1; }
.dialog-close .icon { width: 15px; }
.stat-points-callout { display: flex; align-items: center; gap: 8px; margin: 17px 0 10px; padding: 10px 12px; border: 1px solid #eae8d7; border-radius: 9px; color: #858968; background: #f9f7e9; font: 500 9px/1.2 "Sarabun", sans-serif; }
.stat-points-callout > span:first-child { color: #a69a64; }
.stat-points-callout strong { margin-left: auto; color: #8a7644; font: 700 15px/1 "Sarabun", sans-serif; }
.stat-allocation-list { display: grid; gap: 7px; }
.stat-allocation { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid #ebede7; border-radius: 10px; }
.stat-allocation__icon { display: grid; width: 35px; height: 35px; flex: none; place-items: center; border-radius: 10px; }
.stat-allocation__icon .icon { width: 17px; height: 17px; }
.stat-allocation__icon--gold { color: #ad8751; background: #f7f0e2; }
.stat-allocation__icon--blue { color: #688d99; background: #edf3f3; }
.stat-allocation__icon--purple { color: #887bad; background: #f1eef7; }
.stat-allocation__copy { min-width: 0; flex: 1; }
.stat-allocation__copy strong, .stat-allocation__copy small { display: block; }
.stat-allocation__copy strong { color: #546255; font: 600 10px/1.3 "Sarabun", sans-serif; }
.stat-allocation__copy small { margin-top: 3px; color: #9ba49a; font: 500 8px/1.3 "Sarabun", sans-serif; }
.stat-allocation__plus { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid #dfe8dc; border-radius: 9px; color: #5f906a; background: #f5faf2; font-size: 19px; cursor: pointer; }
.stat-allocation__plus:not(:disabled):hover { color: white; background: #6e9d76; }
.stat-allocation__plus:disabled { color: #b7beb5; background: #f3f4f1; }
.dialog-footnote { margin: 12px 0 0; color: #a0a89e; text-align: center; font: 400 8px/1.5 "Sarabun", sans-serif; }
.profile-name-label, .profile-avatar-label { display: block; color: #6f7c6e; font: 600 9px/1.3 "Sarabun", sans-serif; }
.profile-name-label { margin-top: 18px; }
.profile-name-input { width: 100%; min-height: 41px; margin-top: 6px; padding: 0 11px; border: 1px solid #e3e8de; border-radius: 9px; color: #445648; background: #fdfefa; font: 500 11px/1 "Sarabun", sans-serif; }
.profile-name-input:focus { border-color: #8eb292; outline: 3px solid rgb(89 143 96 / 13%); }
.profile-avatar-label { margin-top: 14px; }
.avatar-picker--dialog { margin-top: 7px; }
.profile-save { width: 100%; min-height: 39px; margin-top: 18px; }
.toast-region { position: fixed; right: 22px; bottom: 20px; z-index: 30; max-width: min(360px, calc(100vw - 32px)); padding: 12px 16px; border: 1px solid rgb(255 255 255 / 20%); border-radius: 10px; color: #fff; background: #334f3e; box-shadow: 0 12px 30px rgb(22 45 31 / 20%); font: 500 11px/1.5 "Sarabun", sans-serif; opacity: 0; pointer-events: none; transform: translateY(9px); transition: opacity .2s, transform .2s; }
.toast-region.is-visible { opacity: 1; transform: translateY(0); }

@keyframes character-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

@media (max-width: 1170px) {
  .sidebar { width: 222px; }
  .main-area { margin-left: 222px; }
  .topbar { padding-inline: 27px; }
  .page-root { padding-inline: 27px; }
  .app-footer { padding-inline: 27px; }
  .adventure-layout { grid-template-columns: minmax(0, 1fr) 195px; gap: 11px; }
  .adventure-steps { gap: 4px; }
  .adventure-steps > b { width: 10px; }
  .map-node { grid-template-columns: 40px 130px minmax(0, 1fr); gap: 10px; }
  .map-node__art { height: 120px; }
}

@media (max-width: 960px) {
  .sidebar { width: 72px; align-items: center; padding: 19px 9px 13px; }
  .brand { margin: 0 0 36px; }
  .brand__word, .sidebar__caption, .side-nav__item > span:nth-child(2), .side-nav__arrow, .side-nav__badge, .chapter-mini, .save-status, .reset-button, .sidebar__back { display: none; }
  .brand__mark { width: 42px; height: 42px; }
  .side-nav { width: 100%; gap: 8px; }
  .side-nav__item { min-height: 46px; justify-content: center; padding: 0; }
  .side-nav__item.is-active::before { inset: 11px auto 11px -9px; }
  .side-nav__icon { width: auto; font-size: 24px; }
  .sidebar__bottom { display: flex; width: 100%; justify-content: center; margin-top: auto; }
  .main-area { margin-left: 72px; }
  .home-grid { grid-template-columns: minmax(0, 1.4fr) minmax(200px, .8fr); gap: 11px; }
  .level-card__currency { min-width: 108px; padding-left: 12px; }
  .adventure-layout { grid-template-columns: 1fr; }
  .adventure-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aside-note { grid-column: 1 / -1; }
  .adventure-heading { flex-wrap: wrap; }
  .adventure-heading__title { justify-content: flex-start; }
  .adventure-steps { order: 3; width: 100%; justify-content: center; }
}

@media (max-width: 700px) {
  body { padding-bottom: calc(75px + env(safe-area-inset-bottom)); }
  .sidebar { inset: auto 12px calc(10px + env(safe-area-inset-bottom)); width: auto; height: 61px; flex-direction: row; justify-content: center; padding: 6px; border: 1px solid #e6eae1; border-radius: 17px; background: rgb(255 254 250 / 95%); box-shadow: 0 9px 27px rgb(38 55 47 / 14%); backdrop-filter: blur(15px); }
  .brand, .sidebar__caption, .sidebar__bottom { display: none; }
  .side-nav { display: flex; width: 100%; align-items: stretch; justify-content: space-around; gap: 3px; }
  .side-nav__item, .side-nav__item > span:nth-child(2) { display: flex; }
  .side-nav__item { min-width: 0; min-height: 48px; flex: 1; flex-direction: column; justify-content: center; gap: 1px; padding: 3px 2px; border-radius: 11px; }
  .side-nav__item.is-active::before, .side-nav__arrow, .side-nav__badge { display: none !important; }
  .side-nav__icon { height: 24px; font-size: 20px; }
  .side-nav__item > span:nth-child(2) { overflow: hidden; color: inherit; font: 600 8px/1.1 "Sarabun", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
  .main-area { margin-left: 0; }
  .topbar { height: 58px; padding: 0 16px; }
  .breadcrumbs { gap: 7px; font-size: 9px; }
  .breadcrumbs > span:first-child, .breadcrumbs__slash, .topbar__season, .topbar__divider { display: none; }
  .topbar__right { gap: 8px; }
  .player-chip { gap: 6px; }
  .player-chip__avatar { width: 31px; height: 31px; border-radius: 10px; font-size: 18px; }
  .player-chip__copy strong { max-width: 91px; font-size: 10px; }
  .player-chip__copy small { font-size: 8px; }
  .player-chip__caret { font-size: 12px; }
  .page-root { min-height: calc(100vh - 108px); padding: 13px 14px 18px; }
  .app-footer { display: none; }
  .level-card { min-height: 64px; gap: 9px; margin-bottom: 12px; padding: 8px; border-radius: 11px; }
  .level-card__avatar { width: 38px; height: 38px; border-radius: 11px; font-size: 21px; }
  .level-card__details { min-width: 90px; }
  .level-card__top strong { max-width: 90px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .level-card__top > span { padding: 3px 5px; font-size: 8px; }
  .level-card__bottom { gap: 3px; font-size: 7px; }
  .level-card__bottom span:last-child { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .level-card__currency { min-width: 85px; gap: 6px; padding: 5px 0 5px 8px; }
  .coin-icon { font-size: 20px; }
  .level-card__currency small { font-size: 7px; }
  .level-card__currency strong { font-size: 11px; }
  .currency-plus { display: none; }
  .hero-card { min-height: 402px; align-items: flex-start; border-radius: 14px; }
  .hero-card__copy { width: 100%; padding: 22px 20px 0; }
  .hero-card h1 { margin-top: 12px; font-size: 33px; }
  .hero-card__copy > p { max-width: 300px; font-size: 10px; line-height: 1.65; }
  .hero-card__actions { margin-top: 14px; }
  .hero-card__actions .button { min-height: 37px; gap: 9px; font-size: 10px; }
  .playtime { font-size: 8px; }
  .hero-card__footnote { margin-top: 9px; font-size: 8px; }
  .hero-art { inset: 148px 0 0; }
  .hero-art__sun { top: 18px; right: 20%; width: 66px; height: 66px; }
  .hero-art__mountain { bottom: 12px; }
  .hero-art__mountain--back { bottom: 27px; }
  .hero-art__tree--one { bottom: 15px; font-size: 99px; }
  .hero-art__tree--two { bottom: 12px; font-size: 66px; }
  .hero-art__tree--three { bottom: 9px; font-size: 56px; }
  .hero-art__character { right: 37%; bottom: 26px; transform: scale(.77); transform-origin: bottom; }
  .hero-art__crystal--one { bottom: 29px; }
  .hero-art__crystal--two { bottom: 43px; }
  .hero-art__label { right: 13px; bottom: 13px; min-width: 138px; padding: 7px 8px; }
  .hero-art__badge { top: 14px; right: 12px; padding: 6px 7px; font-size: 7px; }
  .hero-art__spark--one { top: 41%; }
  .hero-art__spark--two { top: 13%; }
  .home-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 11px; }
  .journey-panel, .discover-panel { padding: 14px; border-radius: 12px; }
  .panel-heading h2 { font-size: 15px; }
  .journey-panel .panel-heading, .discover-panel .panel-heading { margin-bottom: 9px; }
  .mini-stage { min-height: 55px; gap: 9px; }
  .mini-stage__icon { width: 35px; height: 35px; }
  .discover-art { min-height: 75px; }
  .discover-panel .button { min-height: 34px; }
  .classroom-note { align-items: flex-start; font-size: 8px; }
  .classroom-note__tag { flex: none; padding-top: 3px; font-size: 7px; }
  .page-heading { align-items: flex-start; gap: 10px; margin: 9px 0 15px; }
  .page-heading h1 { font-size: 24px; }
  .page-heading p { max-width: 290px; font-size: 10px; }
  .heading-progress { width: 100px; padding: 8px; }
  .heading-progress > span { font-size: 7px; }
  .heading-progress > strong { font-size: 14px; }
  .map-scene { min-height: 120px; padding: 19px; }
  .map-scene__copy strong { font-size: 18px; }
  .map-scene__tree { right: 15%; bottom: 0; font-size: 65px; }
  .map-scene__crystal { right: 7%; top: 16px; font-size: 26px; }
  .map-list { gap: 10px; margin-top: 12px; }
  .map-list::before { top: 34px; bottom: 34px; left: 16px; }
  .map-node { grid-template-columns: 27px minmax(0, 1fr); min-height: 0; gap: 7px; padding: 11px 10px; border-radius: 12px; }
  .map-node__number { width: 22px; height: 22px; font-size: 8px; }
  .map-node__art { display: none; }
  .map-node__content { grid-column: 2; }
  .map-node__meta { font-size: 8px; }
  .map-node h2 { margin-top: 7px; font-size: 16px; }
  .map-node h3 { font-size: 9px; }
  .map-node p { margin-top: 6px; font-size: 9px; }
  .map-node__footer { margin-top: 9px; }
  .reward-preview { gap: 8px; font-size: 8px; }
  .map-node__footer .button { min-height: 31px; padding-inline: 9px; font-size: 9px; }
  .locked-hint { max-width: 150px; font-size: 8px; text-align: right; }
  .chapter-next { margin-top: 11px; padding: 11px; }
  .adventure-heading { justify-content: flex-start; gap: 8px; margin: 2px 0 13px; }
  .back-button { width: 100%; padding: 3px 0; font-size: 9px; }
  .adventure-heading__title { flex: 1; }
  .adventure-steps { justify-content: flex-start; gap: 5px; overflow: auto; padding: 1px 0; }
  .adventure-steps > span { gap: 3px; font-size: 7px; }
  .adventure-steps > b { width: 12px; }
  .adventure-layout { gap: 10px; }
  .challenge-card, .battle-card { padding: 14px; border-radius: 12px; }
  .exploration-card { padding: 11px; border-radius: 12px; }
  .exploration-card__heading { gap: 7px; }
  .exploration-card__icon { width: 34px; height: 34px; font-size: 17px; }
  .exploration-card__heading h2 { font-size: 13px; }
  .exploration-counter { gap: 3px; padding: 5px 7px; font-size: 9px; }
  .exploration-counter strong { font-size: 13px; }
  .exploration-counter small { font-size: 7px; }
  .exploration-card__copy { margin: 8px 0; font-size: 8px; }
  .exploration-progress { min-height: 30px; gap: 6px; padding: 5px 7px; }
  .exploration-progress__text { font-size: 7px; }
  .exploration-progress__bar { width: 45px; }
  .world-controls { min-height: 76px; gap: 6px; padding-top: 7px; }
  .world-dpad { width: 91px; height: 67px; grid-template: repeat(2, 29px) / repeat(3, 29px); gap: 2px; }
  .world-dpad__button { width: 29px; height: 29px; border-radius: 8px; }
  .world-controls__hint { gap: 5px; }
  .world-controls__hint-icon { width: 25px; height: 25px; }
  .world-controls__hint strong { font-size: 8px; }
  .world-controls__hint small { font-size: 7px; }
  .world-controls__skip { min-height: 31px; max-width: 77px; padding-inline: 6px; font-size: 7px; }
  .challenge-card__top { gap: 8px; }
  .challenge-card__book { width: 35px; height: 35px; }
  .challenge-card__top h2 { font-size: 16px; }
  .challenge-card__step { font-size: 8px; }
  .challenge-card__story { margin: 12px 0; padding: 9px; font-size: 9px; }
  .challenge-card__question h3 { font-size: 13px; }
  .answer-option { min-height: 45px; gap: 8px; padding: 7px 8px; }
  .answer-option > span:nth-child(2) { font-size: 10px; }
  .challenge-card__hint { font-size: 8px; }
  .battle-card { padding: 12px; }
  .battle-arena { min-height: 186px; grid-template-columns: 1fr 37px 1fr; margin-top: 11px; }
  .combatant { padding: 12px 4px 9px; }
  .combatant__sprite { width: 68px; height: 75px; font-size: 51px; }
  .combatant--enemy .combatant__sprite { font-size: 54px; }
  .combatant__name { max-width: 130px; font-size: 9px; }
  .combatant__role { max-width: 130px; font-size: 7px; }
  .health-bar { width: 88%; margin-top: 7px; }
  .battle-actions__grid { gap: 6px; }
  .battle-action { min-height: 52px; gap: 6px; padding: 6px; }
  .battle-action__icon { width: 27px; height: 27px; }
  .battle-action__key { display: none; }
  .battle-action strong { font-size: 8px; }
  .battle-action small { font-size: 7px; }
  .battle-insight { gap: 7px; padding: 8px; }
  .battle-insight strong { font-size: 8px; }
  .battle-insight small { font-size: 7px; }
  .adventure-aside { grid-template-columns: 1fr; gap: 8px; }
  .aside-card--guide { min-height: 78px; }
  .aside-card:not(.aside-card--guide) { display: none; }
  .aside-note { grid-column: auto; }
  .result-card { min-height: 355px; padding: 22px 15px; }
  .result-card h2 { font-size: 22px; }
  .result-rewards > div { min-width: 74px; padding: 7px; }
  .house-layout { grid-template-columns: 1fr; gap: 10px; }
  .house-scene { min-height: 235px; }
  .house-info { padding: 15px; }
  .house-info h2 { font-size: 17px; }
  .house-feature-list { gap: 9px; margin: 12px 0; padding: 11px 0; }
  .home-keepsakes { margin-top: 10px; padding: 14px; }
  .keepsake-list { gap: 6px; overflow-x: auto; }
  .keepsake { min-width: 71px; padding: 7px; }
  .inventory-counter { padding: 7px; font-size: 8px; }
  .item-grid { grid-template-columns: 1fr; gap: 8px; }
  .item-card { min-height: 126px; padding: 11px; }
  .item-card__copy h3 { font-size: 11px; }
  .item-card__copy p { max-width: 210px; }
  .potion-row { padding: 10px; }
  .codex-entry { grid-template-columns: 22px 35px minmax(0, 1fr); gap: 7px; padding: 12px 9px; }
  .codex-entry__icon { width: 33px; height: 33px; font-size: 17px; }
  .codex-entry__stamp { grid-column: 3; justify-self: start; margin-top: 4px; }
  .codex-entry__content h2 { font-size: 11px; }
  .codex-entry__content p { font-size: 8px; }
  .character-layout { grid-template-columns: 1fr; gap: 10px; }
  .character-portrait { min-height: 220px; }
  .character-portrait__halo { top: 26px; width: 112px; height: 112px; }
  .character-portrait__avatar { width: 112px; height: 115px; font-size: 64px; }
  .character-stat-grid { gap: 6px; }
  .character-stat { min-height: 103px; padding: 9px; }
  .character-stat > small { font-size: 6px; }
  .character-equipment { padding: 11px; }
  .avatar-section { margin-top: 10px; padding: 13px; }
  .avatar-picker { gap: 7px; }
  .avatar-option { width: 48px; height: 48px; border-radius: 12px; }
  .avatar-option > span { font-size: 24px; }
  .game-dialog { width: calc(100% - 20px); max-height: 84vh; border-radius: 14px; }
  .dialog-inner { padding: 17px; }
  .toast-region { right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); left: 14px; max-width: none; text-align: center; }
}

@media (max-width: 390px) {
  .page-root { padding-inline: 10px; }
  .topbar { padding-inline: 11px; }
  .hero-card { min-height: 390px; }
  .hero-card__copy { padding-inline: 16px; }
  .hero-card h1 { font-size: 30px; }
  .hero-art__character { right: 33%; }
  .hero-art__label { min-width: 126px; }
  .battle-arena { grid-template-columns: 1fr 30px 1fr; }
  .adventure-steps > b { width: 7px; }
  .adventure-steps > span { font-size: 6px; }
  .map-node__footer { align-items: flex-end; }
  .reward-preview { flex-direction: column; gap: 4px; }
}
