:root{color-scheme:dark;--ink:#f7e6bb;--paper:#e8c98e;--yellow:#ffc928;--dark:#090b09;--muted:#b8b3a2}*{box-sizing:border-box}html{min-height:100%;background:var(--dark)}body{margin:0;background:radial-gradient(ellipse at top,#1b2117 0,#090b09 58%);color:var(--ink);font-family:system-ui,-apple-system,Segoe UI,sans-serif;min-height:100vh}.game-header{max-width:1120px;margin:auto;padding:18px 22px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #414137}.back-link,footer a{color:var(--yellow);font-weight:800;text-decoration:none;font-size:.82rem;letter-spacing:.04em}.game-mark{font-weight:950;letter-spacing:.08em;font-size:.8rem}.game-shell{width:min(100% - 28px,1000px);margin:28px auto 42px}.eyebrow{font-size:.75rem;letter-spacing:.15em;font-weight:850;color:var(--yellow);margin:0 0 8px}.game-shell h1{font-size:clamp(2.3rem,7vw,4.8rem);line-height:.95;letter-spacing:-.055em;margin:0 0 12px;font-weight:1000;font-style:italic}.intro{max-width:620px;color:#ded7c3;font-size:1.05rem;line-height:1.55;margin:0 0 22px}.hud{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:12px}.hud>div{border:1px solid #4b4b3e;background:#141711;border-radius:8px;padding:10px 12px;min-width:0}.hud span{display:block;font-size:.67rem;letter-spacing:.1em;color:var(--muted);font-weight:800}.hud strong{display:block;font-size:clamp(.95rem,2.6vw,1.35rem);margin-top:3px;white-space:nowrap}.game-frame{position:relative;width:100%;overflow:hidden;border:2px solid #55523d;border-radius:12px;background:#11160e;box-shadow:0 18px 40px #0008;isolation:isolate}#early-birds-canvas{width:100%;aspect-ratio:16/9;min-height:420px}#early-birds-canvas canvas{display:block;width:100%!important;height:100%!important;object-fit:contain}.game-overlay{position:absolute;inset:0;display:grid;place-items:center;padding:16px;background:#080a08a8;z-index:2}.overlay-card{width:min(100%,420px);padding:clamp(18px,4vw,32px);background:#e8c98e;color:#211d14;border:3px solid #33281a;box-shadow:7px 7px 0 #0008;text-align:center}.overlay-card .eyebrow{color:#6d3d13}.overlay-card h2{font-size:clamp(1.6rem,5vw,2.6rem);font-weight:1000;font-style:italic;margin:0 0 10px;line-height:1}.overlay-card p:not(.eyebrow){line-height:1.5;margin:0 0 20px}.overlay-card button{border:3px solid #1c1a14;background:var(--yellow);color:#17150f;font-weight:950;font-size:1rem;padding:14px 22px;box-shadow:4px 4px 0 #3a2b15;cursor:pointer}.overlay-card button:active{transform:translate(2px,2px);box-shadow:2px 2px 0 #3a2b15}.status{font-weight:900;letter-spacing:.08em;color:var(--yellow);margin:14px 0 6px}.mobile-tip{color:var(--muted);font-size:.85rem;line-height:1.5;margin:0}footer{max-width:1120px;margin:auto;border-top:1px solid #414137;padding:20px 22px 28px;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;color:#aaa99a;font-size:.8rem}footer span{color:#aaa99a}@media(max-width:520px){.game-header{align-items:flex-start;flex-direction:column;gap:8px}.game-shell{width:calc(100% - 20px);margin-top:22px}.hud{grid-template-columns:repeat(2,minmax(0,1fr))}.hud>div{padding:8px 10px}#early-birds-canvas{aspect-ratio:4/5;min-height:520px}.game-overlay{padding:8px}.overlay-card{padding:10px 12px;max-height:100%;overflow:auto}.overlay-card .eyebrow{font-size:.62rem;margin-bottom:5px}.overlay-card h2{font-size:clamp(1.2rem,5vw,1.65rem);margin-bottom:6px}.overlay-card p:not(.eyebrow){font-size:.8rem;line-height:1.25;margin-bottom:9px}.overlay-card button{padding:9px 12px;font-size:.85rem}.game-mark{display:none}}

/* Mobile-first game viewport tuning */
@media(max-width:600px){
  html,body{width:100%;overflow-x:hidden}
  .game-header{padding:10px 12px;flex-direction:row;align-items:center;gap:8px}
  .back-link{font-size:.7rem;letter-spacing:0}
  .game-mark{display:none}
  .game-shell{width:calc(100% - 16px);margin:12px auto 22px}
  .game-shell h1{font-size:clamp(2rem,10vw,3rem);margin-bottom:7px}
  .eyebrow{font-size:.65rem;margin-bottom:5px}
  .intro{font-size:.9rem;line-height:1.35;margin-bottom:12px}
  .hud{gap:5px;margin-bottom:8px}
  .hud>div{padding:6px 8px;border-radius:5px}
  .hud span{font-size:.58rem}
  .hud strong{font-size:1rem}
  .game-frame{border-radius:8px}
  #early-birds-canvas{aspect-ratio:3/4;min-height:0;height:min(58svh,520px)}
  #early-birds-canvas canvas{height:100%!important;max-height:100%}
  .game-overlay{padding:8px}
  .overlay-card{padding:12px;max-height:calc(100% - 8px);overflow:auto}
  .overlay-card .eyebrow{font-size:.58rem}
  .overlay-card h2{font-size:clamp(1.2rem,6vw,1.7rem)}
  .overlay-card p:not(.eyebrow){font-size:.78rem;line-height:1.3;margin-bottom:10px}
  .overlay-card button{padding:10px 14px;font-size:.85rem}
  .status{margin:8px 0 4px;font-size:.85rem}
  .mobile-tip{font-size:.75rem}
  footer{padding:14px 12px 20px;gap:8px}
}
@media(max-height:700px) and (max-width:600px){
  #early-birds-canvas{height:48svh}
  .game-shell{margin-top:8px}
  .intro{margin-bottom:8px}
}
