/* The website's palette on the game interface; gameplay rendering stays intact. */
.site-game{font-family:var(--site-font)!important}
.site-game .game-back{position:fixed;right:19px;top:17px;z-index:100;color:#516a43;text-decoration:none;font:500 10px var(--site-font);background:linear-gradient(145deg,#fffefa,#efeee8);border:1px solid #d9dfcf;box-shadow:inset 0 1px 1px white,0 3px 8px #202b1714;padding:8px 14px;border-radius:30px;touch-action:manipulation;display:inline-flex;gap:10px;align-items:center}
.site-game .game-back:hover{transform:translateY(-1px)}
.site-game:not(:has(#menu-screen.active,#pause-screen.active)) .game-back{display:none}
.site-game :is(button,.brand,.level-card,.level-selector,.menu-stats strong){font-family:var(--site-font)!important}
.site-game:has(#menu-screen.active) #topbar .brand{color:#697c56}.site-game:has(#menu-screen.active) #topbar .brand b{color:#ed795b}
.site-game:has(#menu-screen.active) #topbar :is(.volume-control,.icon-btn){background:#e8edde;border-color:#d6dfcb;color:#718b5c}.site-game:has(#menu-screen.active) #topbar .icon-btn svg{fill:#718b5c}.site-game:has(#menu-screen.active) #topbar .volume-control label{color:#7f906d}
.site-game #menu-screen{--ink:#252824;--paper:#252824;--muted:#7d8971;--line:#d8dfcc;--cyan:#ed795b;--blue:#82966e;--violet:#8f9d7b;--pink:#cf8b83;--acid:#738c5e;--amber:#ed795b;background:#f7f6f2f7!important;color:#252824;font-family:var(--site-font);overflow-y:auto}
.site-game #menu-screen::after{display:none}.site-game .menu-atmosphere{opacity:.2}
.site-game #menu-screen :is(h1,h2,.logo,.menu-stats strong){font-family:var(--site-font)!important;text-shadow:none!important;color:#252824}
.site-game #menu-screen h1{letter-spacing:-.065em}.site-game #menu-screen :is(.logo-death,.menu-copy h1 span){color:#ed795b;text-shadow:none}.site-game #menu-screen .logo-death i{background:#ed795b;box-shadow:none}
.site-game #menu-screen :is(.eyebrow,.panel-code,.tagline,.menu-copy>p,.control-hint,.control-note,.menu-foot,.menu-stats small,.level-card small){color:#879476;font-family:var(--site-font)}
.site-game #menu-screen .menu-stats strong{color:#526744}.site-game #menu-screen :is(.eyebrow span,.status-line){color:#8b9b7c}.site-game .menu-card,.site-game .level-card{background:#e9eedf!important;border:1px solid #d9e2ce!important;box-shadow:0 8px 25px #3548240a!important;border-radius:20px!important;color:#526744}
.site-game #menu-screen .level-selector button{background:#edf1e6;color:#81936f;border-color:#d9e1ce;border-radius:7px;box-shadow:none}.site-game #menu-screen .level-selector button.active{background:#ed795b;color:white;border-color:#ed795b}
.site-game #menu-screen :is(.difficulty-btn,.language-toggle,.shop-open-btn){background:#eef1e7!important;border:1px solid #d8e0cc!important;border-radius:12px!important;box-shadow:none!important;color:#6f825b!important;font-family:var(--site-font)!important}.site-game #menu-screen .shop-open-btn strong{color:#607b4c}.site-game #menu-screen .shop-open-btn :is(span,small){color:#839473}
.site-game #menu-screen :is(.difficulty-btn b,.difficulty-btn i){color:#7c9265!important}.site-game #menu-screen .language-toggle span.active{color:#536d41}
.site-game :is(#play-btn,.primary-btn,.primary-action){font-family:var(--site-font)!important;background:linear-gradient(165deg,#ff8665,#f3603f)!important;color:#fff!important;border:1px solid #e87556!important;border-radius:999px!important;box-shadow:inset 0 2px 2px #ffffff66,inset 0 -2px 2px #b8462840,0 2px 2px #ba503341,0 9px 17px #ed795b25!important;text-shadow:0 1px 1px #a4432825!important;clip-path:none!important}
.site-game #play-btn :is(small,.arrow){color:#fff!important;opacity:.85}.site-game .menu-buttons .primary-action{padding-left:22px!important}.site-game .menu-buttons button,.site-game .secondary-btn{font-family:var(--site-font)!important;border-radius:999px!important}.site-game #menu-screen .menu-buttons button:not(.primary-action){background:#fffefa;color:#6a7f55;border:1px solid #dce1d2;padding-left:22px}
.site-game .menu-actions button{font-family:var(--site-font)!important;border-radius:999px!important;clip-path:none!important;padding-left:22px;min-height:49px}
.site-game #menu-screen .menu-actions button:not(.primary-action){background:linear-gradient(155deg,#fffefa,#efeee7);color:#6a7f55;border:1px solid #dce1d2;box-shadow:inset 0 1px 1px #fff,0 2px 3px #253a1b0a;margin-top:10px}
.site-game .menu-actions button b{color:inherit;opacity:.65}.site-game .primary-action :is(b,span){color:white!important;opacity:.85}
.site-game :is(.panel,.result-panel,.shop-panel,.orientation-panel){font-family:var(--site-font)!important;background:#f7f6f2!important;border:1px solid #dce2d2!important;border-radius:20px!important;color:#252824!important;box-shadow:0 20px 60px #121d1240!important}
.site-game :is(.panel,.result-panel,.shop-panel,.orientation-panel) :is(h1,h2,h3){font-family:var(--site-font)!important;color:#3e5434!important;text-shadow:none!important;letter-spacing:-.04em}
.site-game :is(.panel,.result-panel,.shop-panel,.orientation-panel) :is(p,.panel-code,.fine-print,.eyebrow){color:#8b987d!important;font-family:var(--site-font)!important}
.site-game :is(.panel,.result-panel,.shop-panel,.orientation-panel) .secondary-btn,.site-game .panel button:not(.primary-action){background:#fffefa!important;color:#6e825a!important;border:1px solid #d8dfcb!important;border-radius:30px!important}
.site-game .skin-card,.site-game .aura-card{border-radius:13px!important;background:#ebf0e4!important;border-color:#dce4d1!important;color:#567446!important}.site-game :is(.skin-card,.aura-card) :is(h3,p,small){color:#6f835c!important}.site-game :is(.skin-card,.aura-card) button{background:#fffefa!important;border:1px solid #d9e2cc!important;border-radius:30px;color:#698153!important}.site-game .shop-tabs button{font-family:var(--site-font)!important;border-radius:30px!important;background:#edf0e6!important;color:#7c8e6a!important}.site-game .shop-tabs button.active{background:#dce5cd!important;color:#536f3f!important}
.site-game .close-panel{color:#6d805b!important}.site-game .controls-grid :is(kbd,span){color:#6a8156}.site-game .controls-grid kbd{background:#e6eddb;border-color:#d3dec5}.site-game #menu-screen .level-card h2{color:#4d683e}.site-game #menu-screen .level-card .difficulty{color:#849571}
.site-game :is(button,a):focus-visible{outline:3px solid #ed795b;outline-offset:5px}
@media(max-width:700px){.site-game .game-back{top:10px;right:10px;font-size:9px;padding:7px 10px}.site-game #menu-screen{padding-top:58px}.site-game .logo{font-size:clamp(70px,14vw,120px)}}
@media(prefers-reduced-motion:reduce){.site-game .game-back{transition:none}}

/* Match the site's white surfaces and navy feature panels in the game menus. */
.site-game .menu-card{background:var(--site-card)!important;border-color:#e0e2d8!important}
.site-game #menu-screen .level-card{background:var(--site-night)!important;background-image:var(--site-feature-bg)!important;border-color:#365064!important;color:#c3cfd7}
.site-game #menu-screen .level-card h2{color:var(--site-gold)!important}
.site-game #menu-screen .level-card :is(small,.difficulty){color:#c3cfd7}
