@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&display=swap');

:root {
  color-scheme: light;
  --paper: #f5f3e7;
  --ink: #192c28;
  --muted: #465953;
  --line: #c9d0bf;
  --lime: #e2f393;
  --forest: #213d33;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.6 system-ui, sans-serif; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: .22em; }
:focus-visible { outline: 3px solid #b46a12; outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(1200px, calc(100% - 88px)); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--line); }
.header-inner, .site-footer .shell { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font: 800 1.35rem var(--display); text-decoration: none; }
.mark { display: grid; place-items: center; color: var(--lime); background: var(--ink); width: 32px; height: 32px; border-radius: 50%; }
nav { display: flex; gap: clamp(1rem, 4vw, 2.4rem); }
nav a { text-decoration: none; font-weight: 650; font-size: .9rem; }
nav a:hover, .text-link:hover { text-decoration-thickness: 2px; }
.hero { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-top: clamp(2.5rem, 7vw, 6rem); }
h1, h2 { margin: 0; font-family: var(--display); line-height: 1; letter-spacing: -.045em; }
h1 { font-size: clamp(3.25rem, 7vw, 7rem); font-weight: 800; }
.intro p { max-width: 30ch; font-size: clamp(1rem, 1.55vw, 1.24rem); color: var(--muted); margin: 1.25rem 0 1.5rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; color: var(--lime); background: var(--ink); padding: .72rem 1rem; border: 1px solid transparent; border-radius: 8px; font: 750 1rem/1.5 system-ui, sans-serif; text-decoration: none; cursor: pointer; min-height: 46px; }
.button:hover { background: #365346; }
.text-link { display: block; width: fit-content; margin-top: 1rem; font-size: .9rem; }
.game { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 0 14px 28px #18302320; }
.game-top, .game-foot { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: .35rem 1rem; padding: .8rem 1rem; }
.game-top h2 { font-size: 1.16rem; letter-spacing: -.01em; }
.game-top h2 span { color: var(--lime); }
.game-stats, .game-foot { font-size: .83rem; }
.game-stats label { margin-left: .6rem; }
progress { width: 46px; height: .55rem; accent-color: #f9ba6f; vertical-align: .05em; }
.stage { position: relative; background: var(--forest); }
.stage img, canvas { display: block; width: 100%; height: auto; aspect-ratio: 12/7; }
canvas { touch-action: none; }
canvas:focus-visible { outline-offset: -4px; }
.game-overlay { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; padding: 1rem; text-align: center; background: #0c211a50; }
.game-overlay .button { color: var(--ink); background: var(--lime); box-shadow: 0 3px 0 #0d241b; }
.game-overlay .button:hover { background: #f6ffca; }
#game-message { margin: 0 0 .6rem; color: #fff; background: #192c28; padding: .22rem .55rem; border-radius: 5px; font-weight: 680; }
#game-message:empty { display: none; }
.game-foot button { border: 1px solid #9aac9d; border-radius: 5px; padding: .18rem .6rem; color: inherit; background: transparent; font: inherit; cursor: pointer; }
.credit { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .1rem .8rem; padding-top: .85rem; color: var(--muted); font-size: .82rem; }
.guide, .faq { margin-top: clamp(3rem, 7vw, 6rem); padding-top: 1.8rem; border-top: 1px solid var(--line); }
.guide h2, .faq h2 { font-size: clamp(2rem, 4.8vw, 3.6rem); }
.steps { list-style: none; counter-reset: steps; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem 3rem; padding: 0; margin: 1.5rem 0 0; }
.steps li { counter-increment: steps; }
.steps li::before { content: counter(steps); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: .6rem; border-radius: 50%; background: var(--lime); font-weight: 750; }
.steps p, details p { color: var(--muted); margin: .35rem 0 0; }
.faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: 1rem 3rem; }
details { padding: .7rem 0 1rem; border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 750; min-height: 28px; }
.site-footer { margin-top: 4rem; background: var(--ink); color: var(--paper); }
.site-footer .mark { background: var(--lime); color: var(--ink); }
.legal { padding-top: 3rem; max-width: 700px; }
.legal h1 { font-size: clamp(2rem, 8vw, 4rem); }
@media (max-width: 790px) {
  .shell { width: calc(100% - 36px); }
  .hero, .faq { grid-template-columns: 1fr; }
  .hero { gap: 1.3rem; padding-top: 2.2rem; }
  h1 br { display: none; }
  .intro p { max-width: 48ch; margin: .8rem 0 1rem; }
  .text-link { display: inline-block; margin: .75rem 0 0 .7rem; }
  .credit { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .masthead .brand { font-size: 1.12rem; }
  .game-top, .game-foot { padding: .6rem .68rem; }
  .stat-label { display: none; }
  .game-stats label { margin-left: .25rem; }
  .game-top h2 { font-size: 1rem; }
}
