:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  color: #fff9ed;
  background: #10252d;
  --muted: #c3d8db;
  --border: #36545c;
  --gold: #ffdb83;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { max-width: 43rem; margin: auto; padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left)); }
header { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.brand { display: flex; align-items: center; gap: .65rem; font-size: .95rem; font-weight: 750; }
.brand img, .intro img { border-radius: .75rem; }
button { font: inherit; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.secondary { padding: .5rem .85rem; min-height: 44px; border: 1px solid var(--border); border-radius: .65rem; background: #1e3942; color: inherit; font-weight: 650; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; margin-bottom: .65rem; }
.stats > div { display: grid; gap: .2rem; padding: .62rem clamp(.55rem, 3vw, 1rem); border: 1px solid var(--border); border-radius: .75rem; background: #1a3440; }
.stats > div:first-child { background: #3a3230; border-color: #82674b; }
.stats > div:first-child strong { color: var(--gold); }
.stats span { color: var(--muted); font-size: .875rem; }
.stats strong { font-size: clamp(1.35rem, 6vw, 2rem); font-variant-numeric: tabular-nums; line-height: 1.1; }
.field { position: relative; display: grid; place-items: center; isolation: isolate; overflow: hidden; height: clamp(17.5rem, 60vh, 32rem); height: clamp(17.5rem, 60svh, 32rem); border: 1px solid var(--border); border-radius: 1.15rem; background: linear-gradient(#193746, #23524d 72%, #183c3a); }
.field::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 17px 19px, #e4ffffa3 1px, transparent 2px) 0 0 / 69px 54px, radial-gradient(circle at 8px 12px, #e4ffff61 1px, transparent 2px) 18px 8px / 53px 61px; }
.progress { position: absolute; z-index: 3; top: 0; left: 0; width: 100%; height: 4px; transform-origin: left; background: var(--gold); }
.intro { display: grid; justify-items: center; text-align: center; padding: 1rem; background: radial-gradient(ellipse, #183c44 28%, transparent 75%); }
h1 { font-family: Georgia, serif; margin: .5rem 0 0; font-size: clamp(2rem, 8vw, 3.5rem); line-height: 1.03; letter-spacing: -.045em; }
.intro p { margin: .6rem 0 1rem; color: var(--muted); }
.primary { display: inline-block; min-width: 8rem; min-height: 44px; padding: .68rem 1.15rem; border: 0; border-radius: .65rem; background: var(--gold); color: #261b13; font-weight: 800; text-decoration: none; }
.primary:hover { background: #ffe8ac; }
.lanes { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.lanes button { display: flex; align-items: end; justify-content: center; border: 0; padding: 0 0 .55rem; background: transparent; color: #effffd; font-size: 1.35rem; }
.lanes button + button { border-left: 1px dashed #badbdc66; }
.lanes button.selected { background: linear-gradient(transparent 20%, #dcfbd21f); }
.lanes button:focus-visible { outline-offset: -4px; }
.drop, .sled { position: absolute; transform: translateX(-50%); pointer-events: none; line-height: 1; }
.drop { font-size: 2.25rem; filter: drop-shadow(0 3px 4px #091e26a0); }
.drop.coal { color: #222832; text-shadow: 0 0 2px #fff5e2, 1px 1px #a9bec2; }
.sled { bottom: 2.15rem; font-size: 2.65rem; }
.how { margin: .8rem 0 0; text-align: center; font-size: .875rem; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
dialog, .download { max-width: min(28rem, 100%); background: #1a3440; color: inherit; border: 1px solid var(--border); border-radius: 1rem; padding: 1.3rem; }
dialog { margin: auto; width: calc(100% - 2rem); }
dialog::backdrop { background: #0a191dcc; }
dialog h2 { margin: 0; }
dialog p, .download p { color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
a { color: var(--gold); }
.apk-link { display: block; margin-bottom: 1rem; }
