/* GLIMPSE (prototype): a picture flashes for a second; put it back from memory. */
:root {
  --paper: #edeae1; --card: #fbfaf6; --ink: #121212; --ink-2: #57554e; --rule: #121212; --soft: #d6d1c4;
  --accent: #e8590c; --accent-ink: #ffffff;
  --sunset: linear-gradient(90deg, #f59f00, #e03131 50%, #6741d9);
  --display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #0d0e10; --card: #16181c; --ink: #f1eee6; --ink-2: #a19f97; --rule: #f1eee6; --soft: #2e3036; --accent: #ff922b; --accent-ink: #ffffff; color-scheme: dark; }
}
:root[data-theme="dark"] { --paper: #0d0e10; --card: #16181c; --ink: #f1eee6; --ink-2: #a19f97; --rule: #f1eee6; --soft: #2e3036; --accent: #ff922b; --accent-ink: #ffffff; color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; }
html { touch-action: manipulation; overscroll-behavior-y: none; }
body { background: var(--paper); color: var(--ink); font: 16px/1.45 var(--sans); }
/* holding a finger down (to pour, drag, draw) never selects text or opens the phone's menu */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.gl-board, .gl-board * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.gl-top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--card); position: sticky; top: 0; z-index: 5; }
.dd-mark { font: 900 18px/1 var(--display); background: var(--ink); color: var(--card); padding: 6px 7px; text-decoration: none; }
.gl-top .title { font: 900 26px/1 var(--display); text-transform: uppercase; }
.gl-top .step { color: var(--ink-2); font-weight: 700; font-size: 13px; }
.gl-top .status { margin-left: auto; font: 900 24px/1 var(--display); }
.gl { max-width: 560px; margin: 0 auto; padding: 14px 16px 16px; }
.card { background: var(--card); border-radius: 18px; padding: 18px; }
.eyebrow { margin: 0 0 6px; color: var(--accent); font-weight: 800; font-size: 13px; }
.big { font: 900 clamp(48px, 12vw, 84px)/.9 var(--display); text-transform: uppercase; margin: 0 0 10px; }
.lede { margin: 0 0 14px; font-size: 17px; }
.muted { color: var(--ink-2); margin: 0 0 12px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 14px; border: 0; background: transparent; color: var(--ink); font: 700 16px var(--sans); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink) 25%, transparent); text-underline-offset: 4px; cursor: pointer; }
.btn.primary { background: var(--accent); color: var(--accent-ink); text-decoration: none; border-radius: 12px; padding: 0 24px; min-height: 52px; font-size: 17px; }
.btn.wide { width: 100%; margin-top: 12px; }
.btn:disabled { opacity: .4; cursor: default; }


/* the seven games, today's five lit */
.gl-seven { list-style: none; margin: 6px 0 22px; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.gl-seven li { display: grid; justify-items: center; gap: 5px; min-width: 0; opacity: .3; filter: grayscale(1); }
.gl-seven li.on { opacity: 1; filter: none; }
.gl-seven .gl-ico { width: 36px; height: 36px; border-radius: 9px; border-width: 1.5px; box-shadow: 1.5px 1.5px 0 var(--rule) !important; }
.gl-seven .nm { font-size: 11px; font-weight: 700; white-space: nowrap; }
.gl-sub { margin: 0 0 4px; font-weight: 800; font-size: 14px; color: var(--ink-2); }
.gl-more { margin-top: 6px; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 0; }
.gl-more .btn { padding: 0 4px; font-size: 15px; }
.gl-miss { margin: 0 0 6px; font-weight: 700; color: #e5484d; }
.gl-arch { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 2px; }
.gl-arch li { display: flex; justify-content: space-between; align-items: center; min-height: 40px; }
.linkish { background: none; border: 0; padding: 0; font: 700 16px var(--sans); color: var(--ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.mid { font: 900 40px/1 var(--display); text-transform: uppercase; margin: 0 0 10px; }
.gl-spread { margin: 4px 0 14px; }
.gl-done li.missed .mini { outline: 2px solid #e5484d; outline-offset: -2px; }
.gl-head .dd-lives { margin-left: auto; align-self: center; }
.gl-read { margin-left: auto; font: 900 34px/1 var(--display); color: var(--g); }
.gl-read:empty { display: none; }
.gl-read:not(:empty) + .dd-lives { margin-left: 10px; }
/* the line-up on the home screen: each game with its own colour, like Sprint */
.gl-lineup { list-style: none; margin: 4px 0 18px; padding: 0; display: grid; gap: 8px; }
.gl-lineup li { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 4px 0; }
/* game icons as stickers, like Sprint's: a dark outline and a hard shadow */
.gl-ico { width: 44px; height: 44px; border-radius: 10px; background: var(--g); display: grid; place-items: center; border: 2px solid var(--rule); box-shadow: 2px 2px 0 var(--rule) !important; flex: none; }
.gl-txt { display: grid; gap: 1px; min-width: 0; }
.gl-txt b { font: 900 22px/1 var(--display); text-transform: uppercase; }
.gl-txt span { font-size: 14px; color: var(--ink-2); }
.gl-lineup em { font: 900 22px/1 var(--display); font-style: normal; }

/* a round: the game's name, its board, then the buttons */
.gl-round { padding: 16px; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.gl-head { display: flex; gap: 12px; align-items: center; margin: 0 0 12px; }
.gl-head > div { display: grid; gap: 2px; min-width: 0; }
.gl-head b { font: 900 28px/1 var(--display); text-transform: uppercase; color: var(--g); }
.gl-hint { font-weight: 600; font-size: 15px; }
.gl-board { position: relative; width: 100%; aspect-ratio: 1; border-radius: 16px; touch-action: none; overflow: hidden; transition: transform .25s; }
.gl-board svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gl-count { position: absolute; inset: 0; display: grid; place-items: center; font: 800 64px/1 var(--display); color: #fff; pointer-events: none; transition: background .2s; }
.gl-count:not(:empty) { background: rgba(10, 12, 16, .45); }
.gl-board.flash { animation: gl-flash 1s ease-out; }
@keyframes gl-flash { 0% { filter: brightness(1.8); transform: scale(.97); } 15% { filter: brightness(1); transform: scale(1); } }
.gl-board.reveal .gl-ghost { animation: gl-in .5s ease-out both .1s; }
@keyframes gl-in { from { opacity: 0; } to { opacity: 1; } }
.gl-actions { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
.gl-actions .btn.primary { flex: 1; }
.gl-result { text-align: center; margin-top: 12px; }
.gl-pts { font: 900 64px/1 var(--display); color: var(--g); }
.gl-verdict { margin: 4px 0 6px; font-weight: 800; font-size: 18px; }
/* the summary */
.gl-done { list-style: none; margin: 8px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.gl-done li { display: grid; gap: 4px; justify-items: center; min-width: 0; }
.gl-done .mini { width: 100%; aspect-ratio: 1; border-radius: 10px; position: relative; overflow: hidden; }
.gl-done .mini svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.gl-done .nm { font-weight: 800; font-size: 12px; color: var(--g); }
.gl-done b { font: 900 18px/1 var(--display); }
/* each game's motion: the skyline rumbles up, the stars twinkle, clouds drift, the tap turns, plans plot themselves */
.gl-board.rumble svg { animation: gl-rumble .11s linear infinite; }
@keyframes gl-rumble { 0% { transform: translate(0, 0); } 25% { transform: translate(-1.5px, 1px); } 50% { transform: translate(1.2px, -1px); } 75% { transform: translate(-1px, -1.2px); } }
.gl-board .bld { animation: gl-rise .62s cubic-bezier(.25, 1.3, .45, 1) both; }
@keyframes gl-rise { from { transform: translateY(85px); } }
.gl-board .dust { transform-box: fill-box; transform-origin: center; animation: gl-dust .9s ease-out both; }
@keyframes gl-dust { 0% { opacity: 0; transform: translate(0, 0) scale(.3); } 20% { opacity: .9; } 100% { opacity: 0; transform: translate(var(--dx), -7px) scale(2); } }
.gl-board .tw { animation: gl-tw 3s ease-in-out infinite alternate; }
@keyframes gl-tw { from { opacity: .12; } to { opacity: .9; } }
.gl-board .star, .gl-done .star { transform-box: fill-box; transform-origin: center; animation: gl-twinkle 1.8s ease-in-out infinite; }
@keyframes gl-twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(.72) rotate(22deg); opacity: .8; } }
.gl-board .halo { transform-box: fill-box; transform-origin: center; animation: gl-halo 1.8s ease-in-out infinite; }
@keyframes gl-halo { 0%, 100% { opacity: .8; transform: scale(1.1); } 50% { opacity: .3; transform: scale(.75); } }
.gl-board .pop { transform-box: fill-box; transform-origin: center; animation: gl-pop .38s cubic-bezier(.3, 1.7, .5, 1) both; }
@keyframes gl-pop { from { transform: scale(0); } }
.gl-board .plot { stroke-dasharray: 1; animation: gl-draw .5s ease-out both, gl-fillin .3s .4s both; }
@keyframes gl-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes gl-fillin { from { fill-opacity: 0; } }
.gl-board .gl-m, .gl-board .hatch, .gl-board .link { animation: gl-in .45s .35s both; }
.gl-board .tape { animation: gl-tape 14s linear infinite; }
@keyframes gl-tape { to { transform: translateX(-100px); } }
.gl-board .blip { transform-box: fill-box; transform-origin: center; animation: gl-blip .6s ease-in-out infinite alternate; }
@keyframes gl-blip { to { transform: scale(1.7); opacity: .6; } }
.gl-board .handle { transform-box: fill-box; transform-origin: 0 50%; transition: transform .2s; }
.gl-board.pouring .handle { transform: rotate(-28deg); }
.gl-board .slide { animation: gl-slide .5s ease-out both; }
@keyframes gl-slide { from { opacity: 0; transform: translateX(-24px); } }
/* Clock: the second hand ticks, the real hands spin round to their time; Flock: birds flap and drift past; Lights: each one blinks in turn */
.gl-board .sec, .gl-done .sec { transform-origin: 50px 50px; animation: gl-sec 60s steps(60) infinite; }
@keyframes gl-sec { to { transform: rotate(360deg); } }
.gl-board .spin { animation: gl-spin 1s cubic-bezier(.3, 1.3, .5, 1) both; }
@keyframes gl-spin { from { transform: rotate(0deg); } }
.gl-board .flap { transform-box: fill-box; transform-origin: center; animation: gl-flap .45s ease-in-out infinite alternate; }
@keyframes gl-flap { to { transform: scaleY(.35); } }
.gl-board .drift { animation: gl-driftx 1.3s linear both; }
@keyframes gl-driftx { from { transform: translateX(-6px); } to { transform: translateX(6px); } }
.gl-board .blink { opacity: 0; animation: gl-blink .5s ease-out both; }
@keyframes gl-blink { 0% { opacity: 0; } 15% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
/* the tutorial's hints: a press that ripples, an arrow that nudges, a dot that slides */
.gl-board .c-ring { transform-box: fill-box; transform-origin: center; animation: c-ring 1.2s ease-out infinite; }
@keyframes c-ring { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.gl-board .c-dot { transform-box: fill-box; transform-origin: center; animation: c-press 1.2s ease-in-out infinite; }
@keyframes c-press { 0%, 100% { transform: scale(1); } 40% { transform: scale(.75); } }
.gl-board .c-hold .c-ring { animation-duration: 1.6s; }
.gl-board .c-up { animation: c-up 1.3s ease-in-out infinite; }
@keyframes c-up { 0% { transform: translateY(6px); opacity: 0; } 25% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(-10px); opacity: 0; } }
.gl-board .c-blink { animation: c-blink 1.1s ease-in-out infinite alternate; }
@keyframes c-blink { from { opacity: .35; } to { opacity: 1; } }
.gl-board .c-slide { animation: c-slide 1.6s ease-in-out infinite alternate; }
@keyframes c-slide { to { transform: translateX(24px); } }
@media (prefers-reduced-motion: reduce) { .gl-board, .gl-board * { animation: none !important; } }
.btn[hidden] { display: none; }

/* the leaderboard and crowns, like Sprint's */
.gl-boardcard { margin-top: 14px; }
.gl-lbt { font-size: 30px; margin: 2px 0 10px; }
.lb { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lb-row { width: 100%; display: grid; grid-template-columns: 2.2em 1fr auto; gap: 10px; padding: 10px 12px; align-items: center; background: none; border: 0; text-align: left; color: var(--ink); font: inherit; cursor: pointer; }
.lb-row:disabled { cursor: default; opacity: 1; }
button.lb-row:not(:disabled) .who .nm-t { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink) 25%, transparent); text-underline-offset: 3px; }
button.lb-row[aria-expanded="true"] .who .nm-t { text-decoration-color: var(--accent); }
/* a player's points on each game: one bar split by game, then a line per game */
.lb-splits { padding: 0 12px 12px calc(2.2em + 22px); }
.lb-splits[hidden] { display: none; }
.lb-bar { display: flex; height: 10px; margin: 0 0 10px; border-radius: 5px; overflow: hidden; gap: 2px; }
.lb-bar i { display: block; min-width: 3px; }
.lb-splits ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lb-splits li { display: grid; grid-template-columns: 5.2em 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.lb-splits .nm { font: 900 16px/1 var(--display); text-transform: uppercase; }
.lb-splits .track { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; }
.lb-splits .track i { display: block; height: 100%; border-radius: 4px; }
.lb-splits .st { font: 900 16px/1 var(--display); font-variant-numeric: tabular-nums; }
.lb .n { font-weight: 700; color: var(--ink-2); }
.lb li.p1 .n { color: #c99a00; } .lb li.p2 .n { color: #8a8f98; } .lb li.p3 .n { color: #b5651d; }
.lb li.p1 .n, .lb li.p2 .n, .lb li.p3 .n { font: 900 22px/1 var(--display); }
.lb .t { font: 900 20px/1 var(--display); font-variant-numeric: tabular-nums; }
.lb li.me { background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 12px; }
.lb li.me .lb-row { font-weight: 800; }
.lb-row .who { display: flex; align-items: center; min-width: 0; }
.lb-row .who .nm-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lb-none { margin: 0 0 4px; font-weight: 600; }
.lb-alias { margin: 12px 0 0; font-weight: 700; }
.lb-alias a { color: var(--ink); }
.crown { display: inline-flex; align-items: center; gap: 3px; margin-left: 7px; vertical-align: middle; }
.crown svg { width: 18px; height: 14px; display: block; fill: currentColor; }
.crown b { font: 800 13px/1 var(--sans); }
.crown.bronze { color: #b5651d; } .crown.silver { color: #8a8f98; } .crown.gold { color: #c99a00; }
.crown.legend { color: #e0a800; } .crown.legend svg { filter: drop-shadow(0 0 3px rgba(255, 196, 0, .8)); animation: crown-glow 2.4s ease-in-out infinite; }
@keyframes crown-glow { 50% { filter: drop-shadow(0 0 7px rgba(255, 196, 0, .95)); } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .crown.silver { color: #c3c8d0; } :root:not([data-theme="light"]) .crown.gold { color: #f2c94c; } :root:not([data-theme="light"]) .crown.bronze { color: #e08a4a; } }
:root[data-theme="dark"] .crown.silver { color: #c3c8d0; } :root[data-theme="dark"] .crown.gold { color: #f2c94c; } :root[data-theme="dark"] .crown.bronze { color: #e08a4a; }
.crowns-box { margin: 16px 0 0; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, #e0a800 10%, transparent); display: grid; gap: 12px; }
.cr-title { margin: 0; font: 800 13px/1 var(--sans); }
.cr-row { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; font-size: 15px; line-height: 1.35; }
.cr-row > .crown { margin: 0; justify-self: start; }
.cr-row > .crown svg { width: 24px; height: 18px; }
.cr-row > .crown.none { width: 24px; height: 18px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 10%, transparent); }
.cr-label { display: block; font: 700 12px/1.2 var(--sans); margin-bottom: 2px; }
.signin-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.signin-cta p { margin: 0; font: 600 15px/1.35 var(--sans); flex: 1 1 180px; }
.signin-btn { font: 700 16px var(--sans); color: var(--paper); background: var(--ink); border: 0; border-radius: 10px; padding: 0 18px; min-height: 44px; cursor: pointer; flex: none; }
@media (prefers-reduced-motion: reduce) { .crown.legend svg { animation: none; } }

/* Glimpse's own buttons are the sunset its seven games run through (a game's buttons keep that game's colour) */
html .gl .btn.primary:not([style]) { background: var(--sunset); color: #fff; }
