/* The DLE Club site, shared by every page: the club games' own type and colours (dle_engine ui/style.css)
   on paper, under a band in the club's navy that carries the header, the page's title and today's
   gauntlet, as the club's share card does. build-page.py inlines it in the homepage and writes it to
   dist/site.css for the club board. */
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-display:swap;font-weight:200 800;src:url('/fonts/bricolage-var.woff2') format('woff2-variations'),url('/fonts/bricolage-var.woff2') format('woff2')}
:root{color-scheme:light dark;--page:#fbf8f2;--card:#fff;--ink:#141414;--secondary:rgba(20,20,20,.62);--line:rgba(20,20,20,.1);--focus:#141414;--image-edge:rgba(20,20,20,.08);
  /* the band: the club's navy, with its ivory */
  --band:#141b2d;--cream:#faf2dd;--cream-2:rgba(250,242,221,.68);--cream-line:rgba(250,242,221,.16)}
@media(prefers-color-scheme:dark){:root{--page:#0e1117;--card:#181c24;--ink:#f3f1ec;--secondary:rgba(243,241,236,.64);--line:rgba(243,241,236,.12);--focus:#f3f1ec;--image-edge:rgba(238,246,255,.07);--band:#182033}}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:24px}
body{margin:0;background:var(--page);color:var(--ink);font-family:'Bricolage Grotesque','Avenir Next','Segoe UI',system-ui,sans-serif;font-optical-sizing:auto;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none;-webkit-tap-highlight-color:transparent}
a:focus-visible,button:focus-visible{outline:3px solid var(--focus);outline-offset:4px;border-radius:6px}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;padding:0}
[hidden]{display:none!important}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip{position:fixed;z-index:3;left:16px;top:16px;background:var(--ink);color:var(--page);padding:14px 20px;transform:translateY(-170%)}
.skip:focus{transform:none}

/* One column for every page: 1376 wide at most */
.wrap{max-width:1456px;margin:0 auto;padding:0 40px}

/* ------------------------------------------------------------ the band */

.band{--focus:var(--cream);background:var(--band);color:var(--cream)}
/* The paper rises over the band's foot with round corners, as a sheet does */
.band:after{content:'';display:block;height:32px;margin-top:40px;border-radius:32px 32px 0 0;background:var(--page)}
.site-header{height:64px;display:flex;align-items:center;gap:32px}
.site-name{display:inline-flex;align-items:center;gap:10px;flex-shrink:0}
.site-mark{display:block;width:32px;height:32px}
/* The club's wordmark (scripts/build-wordmark.mjs): ivory letters in a navy outline, made for this band */
.site-wordmark{display:block;width:auto;height:27px}
/* The way around, beside the name; the page you're on sits in a pill */
.site-nav{display:flex;align-items:center;gap:4px}
.site-nav a{display:flex;align-items:center;height:34px;padding:0 14px;border-radius:11px;font-size:15px;font-weight:700;color:var(--cream-2);white-space:nowrap}
.site-nav a:hover{color:var(--cream)}
.site-nav a[aria-current=page]{background:rgba(250,242,221,.09);color:var(--cream)}

/* ------------------------------------------------------------ the top */

/* The page's title and your club score side by side (the club's mark between them on the homepage),
   with the five games across under them */
.hero{display:grid;grid-template-columns:minmax(0,1fr) 384px;grid-template-areas:'title score' 'games games' 'extras extras';align-items:center;gap:24px 32px;padding-top:12px}
.hero.has-art{grid-template-columns:minmax(0,1fr) 400px 384px;grid-template-areas:'title art score' 'games games games' 'extras extras extras'}
.hero>.title{grid-area:title}
.hero>.join{grid-column:1/-1}
.route{display:contents}
.kicker{margin:0 0 12px;font-size:13px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--cream-2);font-variant-numeric:tabular-nums}
.kicker b{color:var(--cream)}
.title h1{margin:0;font-size:66px;font-weight:800;letter-spacing:-.025em;line-height:1;overflow-wrap:anywhere}
.title .sub{margin:24px 0 0;font-size:16.5px;line-height:1.6;color:rgba(250,242,221,.86)}
.title .sub b{color:var(--cream);font-weight:700}

/* The club's calendar and the board's cup on their pedestal */
.hero-art{grid-area:art;align-self:center;margin:-36px -20px -40px}
.hero-art img{display:block;width:100%;height:auto}

/* Your club score: the five added up, where they put you, and the way on */
.finish{grid-area:score;display:flex;flex-direction:column;padding:24px;border-radius:24px;background:rgba(250,242,221,.04);box-shadow:inset 0 0 0 1px var(--cream-line)}
.finish-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.finish-h{margin:6px 0 0;font-size:12px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--cream-2)}
.streak{display:grid;justify-items:center;margin:0;padding:8px 14px;border-radius:14px;background:rgba(250,242,221,.07)}
.streak b{font-size:22px;font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.streak small{font-size:12px;color:var(--cream-2)}
/* Freezes held, under the streak: only while there are any */
.streak .streak-freeze{margin-top:1px;font-size:11px;font-weight:700;color:var(--cream);white-space:nowrap}
.streak .streak-freeze[hidden]{display:none}
.finish-score{margin:2px 0 0;font-size:60px;font-weight:800;letter-spacing:-.05em;line-height:1.05;font-variant-numeric:tabular-nums}
.finish-score small{margin-left:6px;font-size:22px;font-weight:600;letter-spacing:0;color:var(--cream-2)}
/* The bar under your club score: a fifth per game, each filled to that game's score */
.segments{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin-top:16px}
/* Score bars: flat and fully round, a played game's at least a round dot (route.js sets max(height, score%)) */
.segments span{height:8px;border-radius:99px;background:rgba(250,242,221,.14);overflow:hidden}
.segments i{display:block;height:100%;width:0;border-radius:99px;transition:width .6s cubic-bezier(.2,.8,.2,1)}
.finish-note{margin:12px 0 0;font-size:14px;line-height:1.4;color:var(--cream-2)}
.finish-note b{color:var(--cream);font-weight:800}
/* With extras: under the five, a thinner, shorter line for each extra in its band colour, and the
   score with extras as a quiet label at the end */
.finish-all{display:flex;align-items:center;gap:5px;margin:8px 0 0;font-size:13px;line-height:1.3;color:var(--cream-2);font-variant-numeric:tabular-nums}
.x-segs{display:contents}
.x-segs span{flex:0 1 calc((100% - 20px) / 5);height:4px;border-radius:99px;background:rgba(250,242,221,.14);overflow:hidden}
.x-segs i{display:block;height:100%;width:0;border-radius:99px;transition:width .6s cubic-bezier(.2,.8,.2,1)}
.x-label{flex:none;margin-left:auto;padding-left:8px;white-space:nowrap}
.x-label b{color:var(--cream);font-weight:800}
.finish-all:hover .x-label{text-decoration:underline;text-underline-offset:3px}
/* Your friends today, one row under the extras (club/nudge.js): the friend's lil-guy, the words, a way to the board */
.finish-nudge{display:flex;align-items:center;gap:10px;margin:14px 0 0;padding:6px 14px 6px 6px;border-radius:12px;background:rgba(250,242,221,.07);font-size:14px;font-weight:600;line-height:1.35;color:var(--cream)}
.finish-nudge[hidden]{display:none}
.finish-nudge:not(:has(.face)){padding-left:12px}
.finish-nudge .face{flex:none;display:block;width:30px;height:30px}
.finish-nudge b{font-weight:800;font-variant-numeric:tabular-nums}
.finish-nudge::after{content:'→';margin-left:auto;padding-left:4px;color:var(--cream-2)}
.finish-nudge:hover span{text-decoration:underline;text-underline-offset:3px}
@media(max-width:599px){.finish-nudge{gap:8px;padding-right:12px;font-size:13.5px}.finish-nudge .face{width:26px;height:26px}}
.finish .primary{width:100%;margin-top:18px;background:var(--cream);color:#141414}
/* Once the five are in, the next extra: an outline under the share button */
.finish .primary.bonus{margin-top:10px;background:none;color:var(--cream);box-shadow:inset 0 0 0 1.8px var(--cream)}
.finish-link{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:16px;font-size:16px;font-weight:700;color:var(--cream)}
.finish-link:hover{text-decoration:underline;text-underline-offset:3px}
.route-toast{margin:10px 0 0;font-size:13px;font-weight:600;color:var(--cream-2)}
.route-toast:empty{display:none}
/* You at the top of the card: your lil-guy and the name the board shows */
.finish-me{display:flex;align-items:center;gap:12px;min-width:0}
.finish-me>div{min-width:0}
.finish-top .streak{flex:none;white-space:nowrap}
.finish-face{flex:none}
.finish-face .face{display:block;width:52px;height:52px}
.finish-name{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;margin:3px 0 0;font-size:19px;font-weight:800;letter-spacing:-.015em;min-width:0}
.finish-who{display:inline-flex;align-items:center;gap:2px;min-width:0;max-width:100%;color:inherit}
.finish-who svg{flex:none;opacity:.6}
.finish-who:hover [data-name]{text-decoration:underline;text-underline-offset:3px}
.finish-name [data-name]{min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.finish-rename{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:0 12px;border:0;border-radius:999px;background:color-mix(in srgb,var(--cream) 14%,transparent);color:var(--cream);font:inherit;font-size:13px;font-weight:700;letter-spacing:0;cursor:pointer;white-space:nowrap}
.finish-rename:hover{background:color-mix(in srgb,var(--cream) 24%,transparent)}
/* Signing in with Google, at the foot of the score card: what you'd keep, and Google's button */
.finish-account{margin-top:16px;font-size:14px;line-height:1.5;color:var(--cream-2)}
.finish-account p{margin:0}
.account-ask{padding:16px;border-radius:16px;background:color-mix(in srgb,var(--cream) 9%,transparent)}
.account-h{font-size:17px;font-weight:800;letter-spacing:-.02em;color:var(--cream)}
.account-sub{margin-top:2px!important}
/* Drawn as Google's own large outline button, which takes its place once Google's script is in */
.google-go{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;max-width:400px;height:40px;margin:12px auto 0;padding:0 12px;border:1px solid #dadce0;border-radius:999px;background:#fff;color:#1f1f1f;font-family:Roboto,Arial,sans-serif;font-size:14px;font-weight:500;letter-spacing:.25px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.google-go svg{width:18px;height:18px}
.google-go:disabled{cursor:default}
.google-slot{display:flex;justify-content:center;height:40px;margin-top:12px;-webkit-tap-highlight-color:transparent}
.google-slot iframe{outline:none!important;color-scheme:light}
[data-signed-in]{padding-top:14px;border-top:1px solid color-mix(in srgb,var(--cream) 16%,transparent)}
.finish-quiet{padding:0;border:0;background:none;color:var(--cream);font:inherit;font-weight:700;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.finish-account-note{margin-top:8px!important}
.finish-account-note:empty{display:none}
/* After a second day played: keep the club on the home screen, in a line under the sign-in */
.finish-install{display:grid;grid-template-columns:44px minmax(0,1fr);gap:4px 12px;align-items:center;margin-top:12px;padding:14px 16px;border-radius:16px;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--cream) 18%,transparent);font-size:14px;line-height:1.45;color:var(--cream-2)}
.finish-install[hidden]{display:none}
.finish-install img{border-radius:11px}
.finish-install p{margin:0}
.install-h{font-size:15px;font-weight:800;letter-spacing:-.015em;color:var(--cream)}
.finish-install svg{vertical-align:-2px}
.install-go{grid-column:1/-1;display:flex;align-items:center;gap:16px;margin-top:8px}
.install-yes{height:36px;padding:0 16px;border-radius:999px;background:var(--cream);color:var(--ink);font-size:14px;font-weight:800}
.install-yes[hidden]{display:none}
.remind-mark{display:grid;place-items:center;width:44px;height:44px;border-radius:11px;background:color-mix(in srgb,var(--cream) 12%,transparent);color:var(--cream)}
.finish-remind [hidden]{display:none}
.remind-note{grid-column:1/-1}
.remind-note:empty{display:none}
/* One ask at a time on the card: the reminder, else keeping it on the home screen, else signing in */
.finish:has([data-remind]:not([hidden]) [data-remind-ask]:not([hidden])) [data-install],
.finish:has([data-remind]:not([hidden]) [data-remind-ask]:not([hidden])) [data-account],
.finish:has([data-install]:not([hidden])) [data-account]{display:none}
.finish-rename-form{margin:14px 0 6px}
.finish-rename-form .secondary{color:var(--cream);box-shadow:inset 0 0 0 1.8px var(--cream)}
.finish-rename-form .error{color:var(--cream)}
.finish-go{display:flex;flex-direction:column}

/* A card per game: its cover, its line, your score and a bar in its band colour (club/route.js), and the way in */
.stops{grid-area:games;list-style:none;margin:8px 0 0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.stop{container:stop/inline-size;display:flex;flex-direction:column;height:100%;padding:0 6px 18px;overflow:hidden;border-radius:24px;background:var(--cream);color:#141414}
/* The cover runs to the card's edges, so the picture is as big as the tile */
.stop .cover{display:block;margin:0 -6px 16px;border-radius:0;box-shadow:none}
.stop .cover:after{display:none}
a.stop:hover .cover-art{transform:scale(1.045)}
/* Name and line take the tile's width; the play button sits by the score, so every tile lines up */
.stop-text{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'name name' 'tag tag' 'score play' 'bar bar' 'made made';align-items:center;column-gap:12px;padding:0 6px 0 10px}
/* How a game's points were made: its own score, and the % of today's club it beat */
.stop-made,.extra-made{grid-area:made;margin-top:7px;font-size:13px;line-height:1.3;color:rgba(20,20,20,.62);font-variant-numeric:tabular-nums}
.stop-made:empty,.extra-made:empty{display:none}
.stop-name{grid-area:name;font-size:21px;font-weight:800;letter-spacing:-.025em}
.stop-tag{grid-area:tag;font-size:15px;line-height:1.3;color:rgba(20,20,20,.7);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stop-score{grid-area:score;margin-top:4px;font-size:16px;color:rgba(20,20,20,.62)}
.stop.done .stop-score{font-size:32px;font-weight:800;letter-spacing:-.04em;color:#141414;line-height:1.1;font-variant-numeric:tabular-nums}
.stop-score small{margin-left:4px;font-size:15px;font-weight:600;letter-spacing:0;color:rgba(20,20,20,.55)}
.stop .meter{grid-area:bar;margin-top:8px}
.stop-play{grid-area:play;display:grid;place-items:center;width:48px;height:48px;margin-top:6px;border-radius:15px;background:#141414;color:#fff;transition:transform .12s}
a.stop:hover .stop-play{transform:scale(1.06)}
/* The extra after the five: smaller tiles, each its cover beside its name and your score (club/route.js) */
.extras{grid-area:extras;margin-top:4px}
.extras-head{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 16px;margin-bottom:12px}
.extras-h{margin:0;font-size:12px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--cream-2)}
.extras-note{margin:0;font-size:14px;color:var(--cream-2)}
.extra-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.extra{display:grid;grid-template-columns:42% minmax(0,1fr);align-items:center;gap:14px;height:100%;padding-right:12px;overflow:hidden;border-radius:18px;background:var(--cream);color:#141414}
/* The cover is at least its own 16:9 tall, so its top (the wordmark) is never cut off, and fills the
   tile when the words are taller, giving up only its right-hand side */
.extra .cover,.extra .cover.wide{display:block;align-self:stretch;width:100%;min-width:0;aspect-ratio:16/9;border-radius:0;box-shadow:none}
.extra .cover-art{position:absolute;inset:0;object-position:left center}
.extra .cover:after{display:none}
a.extra:hover .cover-art{transform:scale(1.045)}
.extra-text{display:grid;min-width:0;padding:10px 0}
.extra-text .extra-made{grid-area:auto}
.extra-name{font-size:17px;font-weight:800;letter-spacing:-.02em}
/* The New and Beta pills sit centred on the name's line */
.stop-name:has(.new),.extra-name:has(.new){display:flex;align-items:center;gap:7px}
.stop-name .new,.extra-name .new{padding:4px 7px 3px;border-radius:99px;background:#141414;color:var(--cream);font-size:10px;font-weight:800;letter-spacing:.08em;line-height:1;text-transform:uppercase}
.extra-tag{font-size:13.5px;line-height:1.3;color:rgba(20,20,20,.7);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.extra-score{margin-top:2px;font-size:13.5px;color:rgba(20,20,20,.62)}
.extra.done .extra-score{font-size:22px;font-weight:800;letter-spacing:-.03em;color:#141414;line-height:1.15;font-variant-numeric:tabular-nums}
.extra-score small{margin-left:3px;font-size:12.5px;font-weight:600;letter-spacing:0;color:rgba(20,20,20,.55)}
.extra .meter{margin-top:6px}
/* Once the five are in, the next extra: ringed, and its line says play it */
.extra.next{outline:3px solid var(--cream);outline-offset:3px}
.extra.next .extra-score{font-weight:800;color:#141414}
.meter{height:6px;border-radius:99px;background:rgba(20,20,20,.09);overflow:hidden}
.meter i{display:block;height:100%;width:0;border-radius:99px;transition:width .6s cubic-bezier(.2,.8,.2,1)}

/* ------------------------------------------------------------ the page */

.page{padding-top:8px}
/* A section: its heading, with a short note on the right */
.sec{margin-top:72px}
.sec-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px 32px;flex-wrap:wrap;margin-bottom:20px}
.sec-h{margin:0;font-size:30px;font-weight:800;letter-spacing:-.04em;line-height:1.15}
.sec-note{display:flex;align-items:baseline;gap:16px;margin:0;font-size:15px;color:var(--secondary);font-variant-numeric:tabular-nums}
.sec-note b{color:var(--ink);font-weight:800}
.more{font-weight:700;color:var(--ink);text-decoration:underline;text-underline-offset:3px}

/* A card on the paper: white, with a hairline, as the games' sheets */
.card{padding:22px;border-radius:22px;background:var(--card);box-shadow:inset 0 0 0 1px var(--line)}
.card-h{margin:0;font-size:20px;font-weight:800;letter-spacing:-.03em}
/* A small label over a card or chart, with a note on the right */
.eyebrow{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin:0 0 14px;font-size:18px;font-weight:700;letter-spacing:-.01em;color:var(--secondary)}
.eyebrow b{color:var(--ink);font-weight:700;font-size:14px;font-variant-numeric:tabular-nums}
.sub{margin:6px 0 0;font-size:15px;line-height:1.45;color:var(--secondary)}

/* The buttons: as the games' (ink, 56px high, 16px corners) */
.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:56px;padding:0 22px;border:0;border-radius:16px;font:inherit;font-size:17px;font-weight:800;letter-spacing:-.01em;cursor:pointer;transition:transform .08s,opacity .2s}
.primary{background:var(--ink);color:var(--page)}
.secondary{background:none;color:var(--ink);box-shadow:inset 0 0 0 1.8px var(--ink)}
.primary:active,.secondary:active{transform:scale(.985)}
.primary:disabled,.secondary:disabled{opacity:.4;cursor:default}

/* ------------------------------------------------------------ the club board */

/* A table in all but name (club/rows.js): rank, name, a column per game under its icon, the total.
   Each score sits on its band colour, as the share squares do; the top three get a medal. */
.board-card{padding:6px 22px 14px}
/* The switch, and how many played and how many the club has, as the home page has them */
.board-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;margin-top:16px}
.board-top .scope{margin-top:0}
.board-count{margin:0;font-size:15px;color:var(--secondary);font-variant-numeric:tabular-nums}
.board-count b{color:var(--ink);font-weight:800}
.board-count:empty{display:none}
.row{display:grid;grid-template-columns:30px minmax(0,1fr) repeat(5,50px) 64px;align-items:center;gap:0 10px;min-height:48px;border-bottom:1px solid var(--line)}
.list{list-style:none;margin:0;padding:0}
.list>li:last-child,.list li:has(+ .you){border-bottom-color:transparent}
.board-head{min-height:48px;font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--secondary)}
.board-head img{display:block;width:30px;height:30px;margin:0 auto;object-fit:contain}
.board-head .pts-h{text-align:right}
.rk{display:grid;place-items:center;width:28px;height:28px;font-size:15px;font-weight:800;color:var(--secondary);font-variant-numeric:tabular-nums}
.rk.long{font-size:12px;letter-spacing:-.03em}
.rk.medal{border-radius:50%;color:#2b2110;font-size:14px;box-shadow:inset 0 -2px 0 rgba(0,0,0,.14)}
.rk.m1{background:#f3c642}
.rk.m2{background:#d6dbe2;color:#2a2f37}
.rk.m3{background:#e8a873;color:#3a2210}
/* The player's lil-guy beside their name: a square kept for it, so a row never moves when it arrives */
.who{display:flex;align-items:center;gap:10px;min-width:0}
.face{flex:none;width:30px;height:30px}
.face svg{display:block;width:100%;height:100%}
.named{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.who b{font-size:17px;font-weight:800;letter-spacing:-.015em}
.who small{margin-left:8px;font-size:13px;font-weight:600;color:var(--secondary)}
.cell{display:grid;place-items:center}
.cell b{display:grid;place-items:center;width:44px;height:32px;border-radius:10px;background:color-mix(in srgb,var(--c) 20%,transparent);font-size:15px;font-weight:800;font-variant-numeric:tabular-nums}
.cell.off b{background:none;box-shadow:inset 0 0 0 1.5px var(--line);color:var(--secondary);font-weight:700}
.pts{text-align:right;font-size:22px;font-weight:800;letter-spacing:-.035em;font-variant-numeric:tabular-nums}
.pts.zero{color:var(--secondary)}
/* The last 7 days: a square a day in its band colour, under the five games' columns */
.list.week .row,.board-head.week{grid-template-columns:30px minmax(0,1fr) auto 64px}
.days{display:flex;gap:4px}
.days i{width:18px;height:18px;border-radius:5px;background:var(--c)}
.days i.off{background:none;box-shadow:inset 0 0 0 1.5px var(--line)}
/* With extras: every club game's column in one box, as many as there are, so a phone can make them a strip of squares */
.list.all .row,.board-head.all{grid-template-columns:30px minmax(0,1fr) auto 64px}
.games{display:grid;grid-auto-flow:column;grid-auto-columns:40px;gap:0 5px}
.list.all .cell b{width:40px}
.games-h{display:none}
/* You: the one ink row, as the engine marks you on a leaderboard */
.row.you{margin:6px -12px;padding:0 12px;border-radius:16px;border-bottom-color:transparent;background:var(--ink);color:var(--page)}
.row.you .rk:not(.medal),.row.you .who small,.row.you .pts.zero{color:color-mix(in srgb,var(--page) 66%,transparent)}
.row.you .cell b{background:color-mix(in srgb,var(--c) 55%,transparent)}
.row.you .cell.off b,.row.you .days i.off{background:none;box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--page) 30%,transparent);color:color-mix(in srgb,var(--page) 66%,transparent)}
.gap{padding:6px 0 2px;text-align:center;font-size:15px;font-weight:800;letter-spacing:.2em;color:var(--secondary);border-bottom:1px solid var(--line)}
.empty{margin:16px 0 4px;font-size:15px;font-weight:600;color:var(--secondary)}

/* How everyone did: one bar per range of totals, in the share squares' colours, yours marked */
/* A board's switches: the gauntlet or with extras, and today or the last 7 days */
.scope{display:inline-flex;gap:4px;margin-top:16px;padding:4px;border-radius:999px;background:color-mix(in srgb,var(--ink) 6%,transparent)}
.scope button{height:36px;padding:0 16px;border-radius:999px;font-size:15px;font-weight:700;color:var(--secondary)}
.scope button[aria-pressed=true]{background:var(--ink);color:var(--page)}
.tabs{display:flex;gap:24px;margin:12px 0 2px;border-bottom:1px solid var(--line)}
.tabs button{position:relative;padding:8px 0 12px;font-size:16px;font-weight:700;color:var(--secondary)}
.tabs button[aria-pressed=true]{color:var(--ink)}
.tabs button[aria-pressed=true]::after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:2.5px;border-radius:2px;background:var(--ink)}
.dist-caption{margin:-10px 0 0;font-size:13px;color:var(--secondary)}
/* Today's hardest and easiest game, a pill on its card */
.gc-tag{position:absolute;top:-10px;left:50%;transform:translateX(-50%);padding:3px 10px;border-radius:99px;background:var(--cream);color:#141414;font-size:11.5px;font-weight:800;white-space:nowrap}
.gc-tag.easy{background:#34405a;color:var(--cream)}
/* On a cover, in its top right corner, so it never sits over the game's name; short on a small cover */
.cover .gc-tag{top:10px;left:auto;right:10px;transform:none;z-index:1;background:#141414;color:var(--cream)}
.cover .gc-tag.easy{background:var(--cream);color:#141414}
@container (max-width:240px){.cover .gc-tag{top:8px;right:8px;font-size:10.5px;padding:2px 8px}.cover .gc-tag span{display:none}}
.dist{display:grid;grid-template-columns:repeat(var(--bars,8),minmax(0,1fr));gap:3px;padding-top:24px}
.dist .bar{min-width:0}
.dist .col{position:relative;height:64px;display:flex;align-items:flex-end;border-bottom:1px solid var(--line)}
.dist .col i{position:relative;display:block;width:100%;border-radius:3px 3px 0 0;background:var(--c)}
.dist .me .col i{background:var(--ink)}
.dist .col em{position:absolute;left:50%;bottom:100%;margin-bottom:5px;transform:translateX(-50%);font-style:normal;font-size:11px;font-weight:800;color:var(--ink);white-space:nowrap}
.dist .axis{grid-column:1/-1;display:flex;justify-content:space-between;margin-top:6px}
.dist .axis span{font-size:11px;font-weight:700;color:var(--secondary);font-variant-numeric:tabular-nums}

/* ------------------------------------------------------------ the games' covers */

/* Each game's own art: one object on its own colour */
.cover{container-type:inline-size;position:relative;aspect-ratio:1;overflow:hidden;border-radius:9px;background:#172c40;box-shadow:inset 0 0 0 1px var(--image-edge)}
.cover.wide{aspect-ratio:16/9}
.cover:after{content:'';position:absolute;inset:0;border:1px solid var(--image-edge);border-radius:inherit;pointer-events:none}
.cover-art{display:block;width:100%;height:100%;object-fit:cover;transition:transform .28s ease}

/* ------------------------------------------------------------ the foot */

/* Ads (club/ads.js) are labelled, in the engine's look, and hidden until one fills */
.ad{max-width:970px;margin:72px auto 0}
.ad-h{display:block;margin-bottom:6px;font-size:10.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--secondary);text-align:center}
.ad-preview{display:grid;place-items:center;border-radius:12px;background:color-mix(in srgb,var(--ink) 7%,transparent);color:var(--secondary);font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}
.ad:has(ins[data-ad-status='unfilled']){display:none}

/* The foot of every page wraps its links on narrow screens without pushing the page wider */
footer{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;padding-bottom:calc(env(safe-area-inset-bottom,0px) + 32px);font-size:14px;color:var(--secondary)}
footer.wrap{margin-top:88px}
footer:before{content:'';flex:0 0 100%;height:1px;margin-bottom:8px;background:var(--line)}
footer nav{display:flex;flex-wrap:wrap;gap:12px 22px}
footer a:hover,footer button:hover{color:var(--ink)}

/* The analytics question (club/tracking.js): in Europe above the band until it's answered, in the
   page's flow so it never covers the gauntlet or the board; above the foot from Analytics settings */
.consent{margin:16px auto}
.consent:has(+footer){margin-top:64px}
.consent+footer.wrap{margin-top:24px}
.consent-card{display:flex;align-items:center;gap:14px 24px;padding:16px 18px;border-radius:20px;background:var(--card);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
.consent-text{flex:1;margin:0;font-size:14px;line-height:1.45;color:var(--secondary)}
.consent-text b{color:var(--ink);font-weight:700}
.consent-text a{color:var(--ink);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.consent-row{display:flex;flex:none;gap:8px}
.consent-row button{min-height:44px;padding:0 18px;font-size:15px}
@media(max-width:699px){
.consent-card{flex-direction:column;align-items:stretch}
.consent-row{display:grid;grid-template-columns:1fr 1fr}
.consent-row [data-close]{grid-column:1/-1}
}

/* ------------------------------------------------------------ narrower screens */

/* Smaller laptops: the mark gives the score its room */
@media(max-width:1279px){
.hero.has-art{grid-template-columns:minmax(0,1fr) 360px;grid-template-areas:'title score' 'games games' 'extras extras'}
.hero-art{display:none}
.title h1{font-size:58px}
}
/* Tablets: the score under the title, then the games two a row */
@media(max-width:899px){
.hero,.hero.has-art{grid-template-columns:minmax(0,1fr);grid-template-areas:'title' 'score' 'games' 'extras';gap:24px}
.stops{grid-template-columns:repeat(2,minmax(0,1fr))}
/* The three extras stay in a row, each its cover over its words */
.extra{grid-template-columns:minmax(0,1fr);align-items:start;gap:8px;padding:0 0 10px}
.extra{align-content:start}
.extra .cover.wide{align-self:start;aspect-ratio:16/9}
.extra-text{padding:0 12px}
/* Five tiles two a row: the fifth runs the width, its cover beside its words */
.stops li:nth-child(5){grid-column:1/-1}
.stops li:nth-child(5) .stop{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;padding:0 0 0 0}
.stops li:nth-child(5) .stop .cover.wide{margin:0;align-self:stretch;aspect-ratio:auto}
/* Its picture fills the tile's height beside the words, cropped on the right so the wordmark stays */
.stops li:nth-child(5) .stop .cover-art{position:absolute;inset:0;object-position:left center}
.stops li:nth-child(5) .stop-text{padding:12px 12px 12px 4px}
/* Its wordmark runs the width of its cover, so the hardest and easiest tag goes to the bottom corner */
.stops li:nth-child(5) .cover .gc-tag{top:auto;bottom:8px}
.site-header{gap:20px}
}
@media(max-width:599px){
.site-nav .nav-friends{display:none}
.wrap{padding:0 20px}
.band:after{height:24px;margin-top:28px;border-radius:24px 24px 0 0}
.site-header{height:52px;gap:12px;justify-content:space-between}
.site-name{gap:8px}
.site-mark{width:28px;height:28px}
.site-wordmark{height:22px}
.site-nav{gap:2px}
.site-nav a{height:34px;padding:0 10px;font-size:14px}
.hero{padding-top:12px;gap:20px}
.title h1{font-size:40px}
.title .sub{margin-top:14px;font-size:16px}
.title .sub br{display:none}
.kicker{font-size:12px}
.finish{padding:20px;border-radius:20px}
.finish-score{font-size:48px}
.stops{gap:10px;margin-top:0}
.stop{padding:0 4px 12px;border-radius:18px}
.stop .cover{margin:0 -4px 10px}
.stop-name{font-size:17px}
.stop-text{grid-template-areas:'name name' 'tag tag' 'score play' 'bar bar' 'made made';column-gap:8px;padding:0 6px}
.stop-made,.extra-made{margin-top:6px;font-size:12px}
.stop-tag{font-size:13px}
.stop-score{font-size:13.5px}
.stop.done .stop-score{font-size:24px}
.stop-score small{font-size:12px}
.stop-play{width:40px;height:40px;border-radius:12px}
.stop-play svg{width:14px;height:14px}
/* The three extras one under another, each its cover beside its name, line and score, like the fifth game */
.extra-list{grid-template-columns:minmax(0,1fr);gap:10px}
.extra{grid-template-columns:42% minmax(0,1fr);align-items:center;gap:12px;padding:0 12px 0 0;border-radius:16px}
.extra .cover.wide{align-self:stretch;aspect-ratio:16/9}
.extra-text{padding:8px 0}
.extra-name{font-size:16.5px}
.extra-tag{font-size:13px}
.extra.done .extra-score{font-size:20px}
.extra-score{font-size:13px}
.page{padding-top:4px}
.sec{margin-top:52px}
.sec-h{font-size:25px}
.card{padding:18px;border-radius:18px}
.board-card{padding:2px 12px 10px}
.row{grid-template-columns:26px minmax(0,1fr) repeat(5,27px) 38px;gap:0 4px;min-height:46px}
.board-head img{width:22px;height:22px}
.rk{width:24px;height:24px;font-size:13px}
/* A place in the thousands still fits its column */
.rk.long{width:26px;font-size:10px}
.rk.medal{font-size:12px}
.who{gap:6px}
.face{width:24px;height:24px}
.named{white-space:normal}
/* A long name takes a second line rather than being cut off */
.who b{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:14.5px;line-height:1.15;white-space:normal;overflow-wrap:anywhere}
.row{padding:5px 0}
.who small{display:block;margin:1px 0 0;font-size:12px}
.cell b{width:27px;height:26px;border-radius:7px;font-size:12px}
.pts{font-size:17px}
.days{gap:3px}
.days i{width:13px;height:13px;border-radius:4px}
.row.you{margin:6px -8px;padding:0 8px}
.list.all .row,.board-head.all{grid-template-columns:26px minmax(0,1fr) auto 38px}
.games{grid-auto-columns:14px;gap:0 3px}
.list.all .cell b{width:14px;height:14px;border-radius:4px;font-size:0;background:var(--c)}
.list.all .row.you .cell b{background:var(--c)}
.board-head.all .games{display:block}
.board-head.all .games img{display:none}
.board-head.all .games-h{display:block}
.dist .col{height:56px}
footer.wrap{margin-top:64px}
}
@media(max-width:399px){.site-nav .nav-games{display:none}}
/* A narrow phone keeps the room for the name, and the faces wait for a wider screen: under 360px the
   name has barely three letters' room, and the last 7 days' squares take more of it */
@media(max-width:359px){.face{display:none}}
@media(max-width:379px){.list.week .face{display:none}}
/* The club board shows only the score card above the board */
.stops:empty{display:none}
/* Discord and Ko-fi: links in the header, cards on the homepage and the club board */
.site-nav .nav-discord,.site-nav .nav-kofi{gap:7px;margin-left:6px;color:var(--cream);box-shadow:inset 0 0 0 1.5px var(--cream-line)}
.site-nav .nav-kofi{margin-left:0}
.site-nav svg{width:18px;height:18px}
.site-nav .nav-discord svg{color:#8b95f7}
.site-nav .nav-kofi svg{color:var(--cream)}
.discord-mark.kofi-mark{background:#ff5e5b}
.kofi-mark svg path:last-child{fill:#ff5e5b}
.kofi-mark svg path:first-child{fill:#fff}
.kofi-card .discord-go{min-width:0}
.discord-board.kofi-card .discord-go{margin-top:0}
.community{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:56px}
.community .discord-home{margin-top:0}
@media(max-width:1099px){.site-nav .nav-kofi{display:none}.community{grid-template-columns:minmax(0,1fr)}}
.discord-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:20px}
.discord-mark{display:grid;place-items:center;width:64px;height:64px;border-radius:18px;background:#5865f2;color:#fff}
.discord-mark svg{width:36px;height:36px}
.discord-text .sub{margin:4px 0 0}
.discord-go{white-space:nowrap}
.discord-home{margin-top:56px}
.discord-board{grid-template-columns:auto minmax(0,1fr);gap:14px}
.discord-board .discord-mark{width:48px;height:48px;border-radius:14px}
.discord-board .discord-mark svg{width:28px;height:28px}
.discord-board .discord-go{grid-column:1/-1;width:100%}
@media(max-width:759px){
.site-nav .nav-discord{display:none}
.community{margin-top:40px;gap:16px}
.discord-card{grid-template-columns:auto minmax(0,1fr);gap:14px}
.discord-mark{width:48px;height:48px;border-radius:14px}
.discord-mark svg{width:28px;height:28px}
.discord-go{grid-column:1/-1;width:100%}
.discord-home{margin-top:40px}
}
/* Moving between the club's pages fades across instead of flashing blank (browsers without it reload as before) */
@view-transition{navigation:auto}
::view-transition-old(root),::view-transition-new(root){animation-duration:.16s}
.band{view-transition-name:band}
::view-transition-group(band){animation-duration:.16s}
.game h3{margin:14px 0 0;font-size:18px;font-weight:700;letter-spacing:-.02em;line-height:1.3}
/* a game in its first weeks: a small ink pill after its name */
.game h3 .new{display:inline-block;margin-left:8px;padding:2px 7px 3px;border-radius:99px;background:var(--ink);color:var(--page);font-size:10.5px;font-weight:800;letter-spacing:.08em;line-height:1.2;text-transform:uppercase;vertical-align:3px}
/* All games: each game’s branded cover, three big over a row of five on a wide screen, two across on a tablet, one on a phone */
.game-grid{display:grid;grid-template-columns:repeat(15,minmax(0,1fr));gap:40px 24px}
.game-grid>.game{grid-column:span 3}
.game-grid>.game:nth-child(-n+3){grid-column:span 5}
.game-grid>.game:nth-child(-n+3) h3{font-size:21px}
.game .cover.wide{border-radius:16px}
.game{display:block;min-width:0;border-radius:8px}
.game:hover .cover-art{transform:scale(1.045)}
.game:active .cover-art{transform:scale(1.01)}
.description{margin:3px 0 0;font-size:15px;color:var(--secondary);line-height:1.45}
.game:hover h3{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
@media(max-width:1099px){.game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:34px 24px}.game-grid>.game,.game-grid>.game:nth-child(-n+3){grid-column:auto}}
/* On a phone, one to a row: Weighsies, the newest, straight after Amountle */
@media(max-width:599px){.game h3{margin-top:12px;font-size:16px}.description{font-size:13.5px}.game-grid{grid-template-columns:minmax(0,1fr);gap:28px}.game-grid>.game{order:2}.game-grid>.game-amountle{order:0}.game-grid>.game-weighsies{order:1}}

/* Today's club board under the gauntlet: its top ten beside how everyone did and friends boards */
.today-grid{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:24px;align-items:start}
.today-side{display:grid;gap:24px}
.friends-card .secondary{width:100%;margin-top:16px}
/* Yesterday's winner and your place, under today's top ten */
.yesterday{margin:16px 0 0;font-size:15px;line-height:1.5;color:var(--secondary)}
.yesterday b{color:var(--ink)}
.yesterday a{font-weight:700;color:var(--ink);text-decoration:underline;text-underline-offset:3px}
@media(max-width:1099px){.today-grid{grid-template-columns:minmax(0,1fr)}.today-side{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:759px){.today-side{grid-template-columns:minmax(0,1fr)}}

/* Coming soon: games not linked yet, as a row of round pictures with their names */
.soon-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:28px 32px}
.soon-list li{display:flex;flex-direction:column;align-items:center;gap:10px;width:112px;text-align:center}
.soon-art{display:block;width:112px;height:112px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 1px var(--image-edge)}
.soon-name{font-size:15px;font-weight:700;letter-spacing:-.02em}
@media(max-width:599px){.soon-list{gap:20px 14px}.soon-list li{width:84px}.soon-art{width:84px;height:84px}.soon-name{font-size:13.5px}}
/* When the next gauntlet starts, under the day */
.kicker .next-set{display:block;margin-top:6px}

/* A game's own page: its name, line and buttons beside its cover; how to play beside today in the club;
   the other club games as a row of icons */
.game-title{display:grid;grid-template-columns:minmax(0,1fr) 560px;gap:32px 48px;align-items:center;padding:28px 0 44px}
.game-title h1{margin:0;font-size:64px}
.game-go{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.game-go .primary{background:var(--cream);color:#141414}
.game-go .secondary{color:var(--cream);box-shadow:inset 0 0 0 1.8px var(--cream)}
.game-cover{border-radius:20px}
.game-grid-page{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:24px;align-items:start}
.how-steps{margin:12px 0 0;padding-left:22px;font-size:17px;line-height:1.5}
.how-steps li+li{margin-top:8px}
.how-counts{margin:18px 0 0;padding-top:16px;border-top:1px solid var(--line);font-size:15px;line-height:1.5;color:var(--secondary)}
.game-today,.game-mine{margin:12px 0 0;font-size:17px;line-height:1.5;color:var(--secondary)}
.game-today b,.game-mine b{color:var(--ink);font-weight:800;font-variant-numeric:tabular-nums}
.other-games{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:16px}
.other-games a{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:15px;font-weight:700;letter-spacing:-.01em;text-align:center}
.other-games img{border-radius:10px}
.other-games a:hover span{text-decoration:underline;text-underline-offset:3px}
@media(max-width:899px){.game-title{grid-template-columns:minmax(0,1fr);padding-top:12px}.game-title h1{font-size:44px}.game-grid-page{grid-template-columns:minmax(0,1fr)}.other-games{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:599px){.game-go>a{flex:1 1 100%}}
/* Under All games: each club game's own page, for how to play it */
.how-links{margin:32px 0 0;font-size:15px;line-height:1.8;color:var(--secondary)}
.how-links a{font-weight:700;color:var(--ink);text-decoration:underline;text-underline-offset:3px}

/* Your week (club/home.js): on Monday and Tuesday, one light card above the club board. The words and
   numbers, the seven days, then share it or put it away */
.your-week{display:grid;grid-template-columns:minmax(0,1fr) auto 200px;align-items:center;gap:20px 40px;margin-top:56px}
.your-week[hidden]{display:none}
.yw-h{margin:0;font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--secondary)}
.yw-h span:before{content:' · '}
.yw-line{margin:8px 0 0;font-size:20px;font-weight:600;letter-spacing:-.02em;line-height:1.3;color:var(--secondary)}
.yw-line b{color:var(--ink);font-weight:800}
.yw-nums{display:flex;flex-wrap:wrap;gap:10px 32px;margin:16px 0 0}
.yw-nums div{display:flex;flex-direction:column-reverse}
.yw-nums dt{margin-top:2px;font-size:13px;color:var(--secondary)}
.yw-nums dd{margin:0;font-size:26px;font-weight:800;letter-spacing:-.04em;line-height:1.1;font-variant-numeric:tabular-nums}
.yw-nums dd small{margin-left:3px;font-size:14px;font-weight:600;letter-spacing:0;color:var(--secondary)}
/* A square a day, Monday first: green a full run, amber some games, an outline a day off; the best day ringed */
.yw-days{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(7,44px);gap:8px}
.yw-days li{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--secondary)}
.yw-days b{display:grid;place-items:center;width:100%;aspect-ratio:1;border-radius:11px;font-size:13.5px;font-weight:800;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:var(--secondary);box-shadow:inset 0 0 0 1.5px var(--line)}
.yw-days .run b{background:#1f9d5b;color:#fff;box-shadow:none}
.yw-days .some b{background:#e0a100;color:#141414;box-shadow:none}
.yw-days .best b{box-shadow:0 0 0 2px var(--card),0 0 0 4px var(--ink)}
.yw-days .best small{color:var(--ink)}
.yw-go{display:flex;flex-direction:column;gap:4px}
.yw-go .primary{width:100%}
.yw-done{min-height:44px;font-size:15px;font-weight:700;color:var(--secondary)}
.yw-done:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.yw-note{margin:0;font-size:13px;line-height:1.4;color:var(--secondary);text-align:center;overflow-wrap:anywhere}
.yw-note:empty{display:none}
@media(max-width:1099px){.your-week{grid-template-columns:auto minmax(0,1fr)}.yw-text{grid-column:1/-1}.yw-go{justify-self:end;width:100%;max-width:240px}}
@media(max-width:599px){.your-week{grid-template-columns:minmax(0,1fr);gap:18px;margin-top:40px}.yw-line{font-size:18px}.yw-nums{gap:10px 22px}.yw-nums dd{font-size:22px}.yw-days{grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.yw-days b{border-radius:9px;font-size:12.5px}.yw-go{justify-self:stretch;max-width:none}}
