:root { --ink: #213c35; --muted: #78877f; --green: #247b59; --line: #e5eae1; --paper: #f6f8f4; --gold: #ffcf63; font-family: 'Avenir Next', Avenir, 'Nunito', ui-rounded, system-ui, sans-serif; color: var(--ink); background: var(--paper); font-synthesis: none; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; -webkit-tap-highlight-color: transparent; }
body { -webkit-user-select: none; user-select: none; }
button, a { touch-action: manipulation; }
button { font: inherit; cursor: pointer; border: 0; transition: transform .18s, background .18s, box-shadow .18s; }
button:active { transform: translateY(2px); }
button:focus-visible, a:focus-visible { outline: 3px solid #dd9438; outline-offset: 5px; }
button:disabled { cursor: default; opacity: .58; transform: none; }
[hidden] { display: none !important; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
#game { position: fixed; inset: 0; display: block; touch-action: none; }
.screen { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: 18px; padding: calc(30px + env(safe-area-inset-top)) 24px calc(30px + env(safe-area-inset-bottom)); text-align: center; overflow-y: auto; background: rgba(242,247,239,.96); }
h1, h2, h3, p { margin: 0; }
h2 { font-size: clamp(26px, 5vw, 40px); letter-spacing: -1px; }
.eyebrow { font-size: 10px; letter-spacing: 1.9px; font-weight: 800; color: var(--green); }
.tagline { color: #63776b; font-size: 16px; }
.big { background: var(--green); color: white; padding: 18px 30px; border-radius: 14px; font-size: 18px; font-weight: 800; box-shadow: 0 4px 0 #16573e; }
.big:hover { background: #196849; }
.small { padding: 12px 20px; background: white; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; font-weight: 700; }
.small:hover { background: #e9efe5; }
.small.off { opacity: .45; filter: grayscale(1); }
.corner { position: fixed; top: calc(58px + env(safe-area-inset-top)); left: max(12px, calc(50% - 210px)); width: 42px; height: 42px; border-radius: 13px; color: white; background: #203d38d9; font-size: 20px; z-index: 5; }
.corner.right { left: auto; right: max(12px, calc(50% - 210px)); }
body:has(#menu:not([hidden])) #mute { display: none; }
.home-screen { padding: 0 36px; display: block; text-align: left; background: var(--paper); }
.home-shell { width: min(1180px, 100%); margin: auto; }
.home-header { min-height: 102px; padding-top: env(safe-area-inset-top); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); text-decoration: none; display: flex; gap: 10px; align-items: center; font-weight: 850; font-size: 30px; letter-spacing: -1.3px; line-height: 1; }
.brand-light { font-weight: 500; color: #3c815c; }
.brand small { font-size: 6.5px; display: block; letter-spacing: 1.45px; font-weight: 800; margin-top: 7px; color: #79877e; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 48px; border-radius: 14px 14px 19px 14px; transform: rotate(-7deg); background: var(--green); color: #ffdc75; box-shadow: inset 0 -4px #166648; }
.brand-mark .icon { width: 28px; height: 28px; fill: currentColor; stroke-width: 1; transform: rotate(7deg); }
.header-right { display: flex; align-items: center; gap: 30px; font-size: 11px; color: var(--muted); }
.learning-label { display: flex; align-items: center; gap: 7px; }
.learning-label > span { width: 6px; height: 6px; background: #76aa6a; border-radius: 100%; }
.coin-pill { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid #e9e3ce; border-radius: 30px; background: #fffdf5; color: #8f825b; }
.coin-pill strong { color: #635434; font-size: 14px; }
.coin-icon { display: grid; place-items: center; border: 2px solid #f1b846; border-radius: 50%; height: 23px; width: 23px; color: #b47a0f; background: #ffe399; }
.home-content { padding: 32px 0 0; }
.welcome { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.welcome h1 { font-size: clamp(25px, 3vw, 38px); letter-spacing: -1.5px; line-height: 1.25; margin: 7px 0 8px; font-weight: 800; }
.welcome p:last-child { color: var(--muted); font-size: 13px; }
.welcome-doodle { color: #c3cead; line-height: 0; padding-right: 18px; }
.welcome-doodle svg { width: 64px; height: 64px; display: block; }
.adventure-grid { display: grid; grid-template-columns: minmax(0, 2.9fr) minmax(255px, 1fr); gap: 20px; }
.adventure-card { position: relative; isolation: isolate; overflow: hidden; border-radius: 24px; background: #e3eedc; min-height: 342px; border: 1px solid #dbe6d5; }
#home-art { position: absolute; width: 100%; height: 100%; inset: 0; z-index: -1; }
.adventure-copy { position: relative; padding: 28px 30px 26px; width: 55%; }
.world-tag { display: inline-flex; gap: 5px; align-items: center; font-size: 9px; font-weight: 750; color: #54755b; border: 1px solid #bfcfb7; padding: 6px 10px; border-radius: 30px; margin-bottom: 25px; letter-spacing: .7px; background: #f0f6e8b3; }
.world-tag > span:first-child { height: 5px; width: 5px; background: #3b8c61; border-radius: 50%; }
.adventure-copy > .eyebrow { font-size: 8px; letter-spacing: 1.6px; }
.adventure-copy h2 { font-size: clamp(25px, 2.65vw, 35px); letter-spacing: -1.1px; line-height: 1.14; margin: 9px 0 12px; }
.adventure-copy > p:not(.eyebrow) { color: #6a7e68; font-size: 12px; line-height: 1.7; }
.play-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 22px; padding: 14px 21px; font-size: 15px; border-radius: 11px; min-width: 180px; }
.play-button .icon { width: 19px; height: 19px; }
.play-note { display: block; font-size: 8px; color: #71886b; margin-top: 13px; }
.art-caption { position: absolute; right: 22px; bottom: 17px; font-size: 8px; color: #536e4e; }
.progress-card { border: 1px solid var(--line); border-radius: 24px; background: #fffefb; padding: 23px 22px 0; text-align: center; }
.section-label { display: flex; justify-content: center; align-items: center; gap: 7px; font-size: 9px; font-weight: 800; letter-spacing: 1.5px; color: #8b9584; }
.section-label .icon { width: 15px; height: 15px; }
.level-medal { width: 76px; height: 80px; margin: 16px auto 11px; position: relative; display: grid; place-items: center; background: #fff0c6; border: 5px solid #fffbeb; border-radius: 25px; transform: rotate(-8deg); box-shadow: 0 0 0 1px #f5e9c6; }
.level-medal .icon { position: absolute; height: 55px; width: 55px; color: #eeb44b; fill: #ffd675; stroke-width: 1; }
.level-medal > span { position: relative; color: #986324; font-size: 23px; font-weight: 850; transform: rotate(8deg); }
.progress-card h2 { font-size: 17px; letter-spacing: -.4px; }
.progress-card > p { margin-top: 5px; color: var(--muted); font-size: 11px; }
.level-progress { margin: 24px 0 19px; }
.level-progress > div:first-child { display: flex; justify-content: space-between; font-size: 8px; color: var(--muted); margin-bottom: 8px; }
.level-progress strong { color: #687d61; }
.bar { height: 6px; border-radius: 20px; background: #eaf0e5; overflow: hidden; }
.bar > div { height: 100%; background: #84ac6f; border-radius: inherit; transition: width .3s; }
.combo-stat { display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--line); padding: 16px 0; text-align: left; font-size: 10px; }
.combo-stat small { display: block; color: #90988a; font-size: 7px; margin-top: 4px; }
.combo-stat > strong { margin-left: auto; font-size: 23px; color: #96752f; }
.combo-icon { background: #fff4d9; color: #bc943f; padding: 8px; border-radius: 10px; display: flex; }
.combo-icon .icon { width: 17px; height: 17px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 27px 0 13px; }
.section-heading h2 { font-size: 16px; letter-spacing: -.3px; display: flex; align-items: center; gap: 8px; }
.section-heading > span { font-size: 10px; color: #8a9487; }
.mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.mode-card { background: #fffefb; border: 1px solid var(--line); border-radius: 17px; padding: 19px 15px; display: flex; align-items: center; gap: 12px; text-align: left; color: var(--ink); }
.mode-card:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 8px 20px #27452d09; border-color: #b9cfb0; }
.mode-icon { width: 44px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; }
.daily-icon { background: #fff0d1; color: #bb8539; }
.training-icon { background: #e6efe3; color: #699161; }
.wardrobe-icon { background: #eee8f6; color: #9780b8; }
.mode-copy { flex: 1; }
.mode-copy strong { font-size: 12px; display: block; }
.mode-copy small { display: block; color: #899080; font-size: 9px; line-height: 1.5; margin-top: 5px; }
.tiny-tag { display: none; }
.mode-arrow { width: 16px; color: #9da697; }
.missions-heading h2 { font-size: 14px; }
.missions-heading .icon { color: #8c9c71; width: 18px; }
.missions-heading > span { font-size: 8px; letter-spacing: 1.1px; }
.missions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.mission { padding: 14px 15px; background: #eef2e9; border: 1px solid #e5ebdc; border-radius: 12px; }
.mission-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10px; font-weight: 650; }
.mission-title > span { color: #9b8139; white-space: nowrap; font-size: 10px; }
.mission-progress { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.mission-progress .bar { flex: 1; background: #dce5d3; height: 4px; }
.mission-progress > span { font-size: 8px; color: #87937b; }
.mission.done { background: #e4efdc; }
.home-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 23px 0 calc(20px + env(safe-area-inset-bottom)); color: #95a08e; font-size: 9px; }
.footer-spark { color: #a4b581; margin-left: 5px; }
.hint { font-size: 9px; color: #95a08e; display: flex; align-items: center; gap: 5px; }
.key-hint { border: 1px solid #dce3d5; width: 19px; height: 18px; border-radius: 5px; display: inline-grid; place-items: center; }
.toggles { display: flex; gap: 6px; }
.toggles .small { font-size: 13px; padding: 7px; border: 0; background: transparent; }
.stats { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--line); background: white; border-radius: 20px; font-size: 19px; font-weight: 650; }
.banner { margin: 0; padding: 10px 16px; border-radius: 12px; background: #ffe6a0; color: #665024; font-weight: 750; font-size: 16px; }
.banner.world, .banner.mission { background: #d5ead0; color: #3b6d44; }
.banner.boss { background: #ffddbb; }.banner.training { background: #e8ddf6; }.banner.daily { background: #dcecf4; }
.daily { display: flex; flex-direction: column; align-items: center; gap: 8px; }.daily .sub { display: flex; gap: 14px; font-size: 12px; }
#end-missions { display: grid; gap: 8px; }
#wardrobe { justify-content: flex-start; padding-top: calc(28px + env(safe-area-inset-top)); padding-bottom: 29vh; gap: 12px; background: linear-gradient(#f4f7ef 62%, #f4f7efcf 67%, #f4f7ef00 75%); }
#wardrobe h2 { font-size: 30px; }.balance { font-size: 13px; color: #77836b; }
#wardrobe-back, #training-back { position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 16px; width: 42px; height: 42px; padding: 0; z-index: 6; }
.rows { display: flex; flex-direction: column; gap: 17px; width: min(600px,100%); }
.row h3 { margin: 0 0 8px; font-size: 12px; color: #7b8972; }.items { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; }
.item { width: 75px; min-height: 93px; padding: 9px 3px; border-radius: 13px; border: 1px solid #dfe7d7; background: #ffffffcf; color: var(--ink); font-size: 9px; font-weight: 650; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.item .swatch { width: 33px; height: 33px; border-radius: 11px; border: 3px solid #d4dfcb; font-size: 18px; line-height: 27px; }.item.equipped { background: #e5efdc; border-color: #8eae77; }.item.equipped .swatch { border-color: #779d60; }.item .price { color: #9e813b; font-size: 9px; }.item.locked { opacity: .7; }
.msg { color: #7f6331; font-weight: 700; font-size: 13px; }.chips { display: grid; grid-template-columns: repeat(4, minmax(50px,70px)); gap: 10px; }.chip { height: 56px; border-radius: 14px; font-size: 20px; color: #738767; background: white; border: 2px solid #dce5d5; }.chip.on { color: white; background: var(--green); border-color: var(--green); }
.shake { animation: shake .3s; }@keyframes shake { 0%,100% { transform: translateX(0); }25% { transform: translateX(-6px); }75% { transform: translateX(6px); } }
#safe-probe { position: fixed; top: env(safe-area-inset-top); left: 0; width: 1px; height: 1px; pointer-events: none; visibility: hidden; }
@media (min-width: 1500px) { .home-content { padding-top: 45px; }.adventure-card { min-height: 380px; }.adventure-copy { padding: 35px; }.world-tag { margin-bottom: 30px; }.progress-card { padding-top: 29px; }.level-medal { margin-top: 25px; margin-bottom: 18px; }.section-heading { margin-top: 32px; } }
@media (max-width: 1000px) { .home-screen { padding: 0 24px; }.adventure-grid { grid-template-columns: minmax(0, 2.4fr) minmax(220px, 1fr); gap: 14px; }.adventure-copy { padding: 25px 22px; width: 64%; }.adventure-copy h2 { font-size: 28px; }.mode-card { gap: 9px; padding: 15px 11px; }.mode-icon { width: 36px; height: 40px; }.mode-copy strong { font-size: 11px; }.mode-copy small { font-size: 8px; }.mode-arrow { display: none; }.home-footer > span { display: none; } }
@media (max-width: 720px) { .home-screen { padding: 0 20px; }.home-header { min-height: 86px; }.brand { font-size: 27px; }.brand small { font-size: 5.5px; }.brand-mark { width: 36px; height: 41px; }.header-right { gap: 0; }.learning-label, .coin-pill > span:last-child { display: none; }.coin-pill { padding: 7px 10px; }.home-content { padding-top: 25px; }.welcome { margin-bottom: 20px; }.welcome .eyebrow { font-size: 8px; }.welcome h1 { font-size: 27px; letter-spacing: -1px; }.welcome p:last-child { font-size: 11px; max-width: 280px; line-height: 1.6; }.welcome-doodle { padding: 0; }.welcome-doodle svg { width: 38px; height: 38px; }.adventure-grid { display: flex; flex-direction: column; }.adventure-card { min-height: 350px; }.adventure-copy { width: 61%; padding: 24px; }.adventure-copy h2 { font-size: 29px; }.progress-card { display: grid; grid-template-columns: 47px 1fr auto; gap: 4px 12px; align-items: center; padding: 17px; border-radius: 18px; text-align: left; }.section-label, .progress-card > p { display: none; }.level-medal { grid-row: 1 / 3; width: 42px; height: 46px; border-width: 3px; border-radius: 15px; margin: 0; }.level-medal .icon { width: 34px; height: 34px; }.level-medal > span { font-size: 16px; }.progress-card h2 { font-size: 12px; }.level-progress { margin: 2px 0 0; grid-column: 2; }.level-progress > div:first-child { font-size: 7px; margin-bottom: 5px; }.combo-stat { grid-column: 3; grid-row: 1 / 3; border: 0; border-left: 1px solid var(--line); padding: 0 0 0 13px; gap: 5px; flex-direction: column; text-align: center; }.combo-icon, .combo-stat small { display: none; }.combo-stat > span { font-size: 7px; }.combo-stat > strong { font-size: 20px; margin: 0; }.section-heading { margin-top: 23px; }.section-heading > span { display: none; }.mode-grid { grid-template-columns: 1fr; gap: 9px; }.mode-card { padding: 14px; gap: 13px; border-radius: 15px; }.mode-icon { width: 42px; height: 44px; }.mode-copy strong { font-size: 13px; }.mode-copy small { font-size: 10px; }.mode-arrow { display: block; }.tiny-tag { display: inline; font-size: 6px; margin-left: 6px; color: #ab893d; letter-spacing: .4px; }.missions { grid-template-columns: 1fr; gap: 8px; }.mission { padding: 12px 14px; }.mission-title { font-size: 11px; }.mission-progress { margin-top: 8px; }.home-footer { flex-wrap: wrap; padding: 17px 0 calc(20px + env(safe-area-inset-bottom)); gap: 4px; }.hint { font-size: 7px; }.toggles { margin-left: auto; }.art-caption { font-size: 7px; right: 13px; }.rows { gap: 12px; }.item { width: 62px; min-height: 82px; padding: 6px 2px; font-size: 8px; }.items { gap: 5px; } }
@media (max-width: 400px) { .home-screen { padding: 0 15px; }.welcome h1 { font-size: 24px; }.welcome-doodle { display: none; }.adventure-copy { padding: 22px 18px; width: 64%; }.adventure-copy h2 { font-size: 25px; }.adventure-copy > p:not(.eyebrow) { font-size: 11px; }.play-button { min-width: 155px; gap: 15px; font-size: 14px; }.play-note { font-size: 6.5px; }.art-caption { font-size: 6px; }.tiny-tag { font-size: 5px; }.hint { max-width: 240px; }.item { width: 56px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
