/* The 23 Nov pass. AJ's notes after build 30: less list, more life, without
   leaving the drafting table. One file, read last, so each section says what it
   changes and why.

   1. The header's mark and the calmer welcome
   2. Podiums that keep their place when places are shared
   3. The streak flame
   4. Social: Global standings leads, as a card with the day's leaders on it
   5. Season 2's countdown
   6. The tab pager (swiping between tabs), and the tab bar on Android and older phones
   7. You: tiles for the three places, a calendar for History and the Archive
   8. Playground: a grid of shots by family
   9. The second pass that day: less on each screen, and one way of moving
*/

/* ---------- 1. the header's mark; the calmer welcome ---------- */
/* The mark beside the word, sized to the word's cap height. */
:root .wordmark .brand-lockup{gap:9px}
:root .wordmark .brand-lockup .brand-eye{width:34px;height:22px}
/* The welcome: the promise, today's five, one button. A returning player's way
   in is one quiet link beside How to play; the sign-in buttons wait in their
   sheet. With that block gone the eye has room, and the button sits low, under
   the thumb. */
#welcome .welcome-hero{height:clamp(96px,calc(40svh - 110px),270px);margin-top:auto}
#welcome .welcome-actions{margin-top:auto}
#welcome .welcome-links{display:flex;align-items:center;justify-content:center;gap:4px;margin:clamp(2px,.8svh,10px) 0 0}
#welcome .welcome-links .welcome-help{margin:0;padding:8px 12px}
#welcome .welcome-links .dot{color:var(--es-ink-3)}
#welcome .welcome-links .dot[hidden]{display:none}
#welcome .welcome-legal{margin:0!important;padding-top:clamp(6px,1.4svh,16px)}

/* ---------- 2. podiums keep their place when places are shared ---------- */
/* Where a leader stands follows the board's order (slot), and the medal follows
   the place they earned. Two firsts are both gold and both crowned; second and
   third never trade sides because a place is shared. */
#dlg-board .gs-podium>.gs-top.slot-1{order:2}
#dlg-board .gs-podium>.gs-top.slot-2{order:1}
#dlg-board .gs-podium>.gs-top.slot-3{order:3}
#dlg-board .group-today .group-board.group-podium[data-podium="3"]>li.slot-1{order:2}
#dlg-board .group-today .group-board.group-podium[data-podium="3"]>li.slot-2{order:1}
#dlg-board .group-today .group-board.group-podium[data-podium="3"]>li.slot-3{order:3}
#dlg-board .group-today .group-board.group-podium[data-podium="2"]>li.slot-1{order:1}
#dlg-board .group-today .group-board.group-podium[data-podium="2"]>li.slot-2{order:2}

/* ---------- 3. the streak flame ---------- */
/* visuals.js flame(): coral with a warm core, beside every streak number. */
.flame-icon{display:inline-block;flex:none;width:.82em;height:.82em;margin-right:.12em;vertical-align:-.06em;overflow:visible}
.flame-icon .flame-o{fill:var(--flame,#ff8873)}
.flame-icon .flame-i{fill:var(--flame-core,#ffd98a)}
:root[data-theme="light"] .flame-icon{--flame:#e2573f;--flame-core:#f6b84a}
.flame-icon.is-out .flame-o{fill:none;stroke:var(--es-ink-3,currentColor);stroke-width:1.5}
.flame-icon.is-out .flame-i{fill:none}
/* One living flame per screen: your own streak on You. It breathes; it does not dance. */
.flame-icon.is-live:not(.is-out){transform-origin:50% 92%;animation:flame-breathe 2.6s ease-in-out infinite}
.flame-icon.is-live:not(.is-out) .flame-i{transform-origin:50% 92%;animation:flame-core 1.7s ease-in-out infinite}
@keyframes flame-breathe{0%,100%{transform:scale(1) rotate(0)}40%{transform:scale(1.03,1.07) rotate(-1.6deg)}70%{transform:scale(.99,1.02) rotate(1.2deg)}}
@keyframes flame-core{0%,100%{transform:scale(1)}50%{transform:scale(.9,1.08)}}
@media (prefers-reduced-motion:reduce){.flame-icon.is-live,.flame-icon.is-live .flame-i{animation:none!important}}
/* On the boards the number keeps its own colour and the flame sits tight to it. */
#dlg-board .gs-list .tot,#dlg-board .gs-top strong,#dlg-board .gs-facts dd{white-space:nowrap}
#dlg-board .gs-list .tot .flame-icon{width:.74em;height:.74em}
#dlg-stats .you-record-cell[data-record="streak"] .you-big{display:inline-flex;align-items:baseline}
#dlg-stats .you-record-cell[data-record="streak"] .flame-icon{width:.7em;height:.7em;margin-right:.1em;align-self:center}

/* ---------- 4. Social: Global standings leads ---------- */
/* One card above your groups. Once today's board is known it carries the day:
   how many have played, and the three leading it, medal-ringed. */
#dlg-board .social-root>.social-discover{margin:0 0 26px}
#dlg-board .social-root>.social-discover+.social-mine{margin-top:0}
#dlg-board .social-global{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:0 14px;width:100%;min-height:84px;margin:0;padding:15px 14px 15px 16px;overflow:hidden;border:1px solid color-mix(in srgb,var(--gold,#d8bd79) 34%,var(--es-line));border-radius:20px;background:linear-gradient(135deg,color-mix(in srgb,var(--gold,#d8bd79) 13%,var(--es-surface)) 0%,var(--es-surface) 58%);box-shadow:var(--es-shadow-soft);color:var(--es-ink);font:inherit;text-align:left;cursor:pointer;transition:transform .12s ease,border-color .15s ease}
#dlg-board .social-global:active{transform:scale(.985)}
#dlg-board .social-global:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
#dlg-board .social-global-mark{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:color-mix(in srgb,var(--gold,#d8bd79) 20%,var(--es-surface-2));color:var(--gold,#d8bd79)}
#dlg-board .social-global-mark svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
:root[data-theme="light"] #dlg-board .social-global-mark{color:#7f6020}
#dlg-board .social-global-copy{display:grid;gap:6px;min-width:0}
#dlg-board .social-global-copy b{font:700 18px/1.2 var(--card-label,inherit);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#dlg-board .social-global-line{display:flex;flex-wrap:wrap;align-items:center;gap:4px 9px;min-width:0}
#dlg-board .social-global-line small{font-size:14px;line-height:1.3;color:var(--es-ink-2);overflow-wrap:anywhere}
#dlg-board .social-global>svg:last-child{width:20px;height:20px;color:var(--es-ink-3);fill:none;stroke:currentColor;stroke-width:2}
#dlg-board .social-global-faces{flex:none}
#dlg-board .social-global-faces .social-face{width:26px;height:26px;margin-left:-7px;border:2px solid var(--es-surface);font:700 10.5px/1 var(--font-ui)}
#dlg-board .social-global-faces .social-face:first-child{margin-left:0}
#dlg-board .social-global-faces .social-face:not(.is-waiting):not(.is-more){background:var(--es-surface-2);color:var(--es-ink);box-shadow:0 0 0 1.5px var(--medal,var(--es-line-strong))}
#dlg-board .social-global-faces .place-1{--medal:var(--gold,#d8bd79);z-index:3}
#dlg-board .social-global-faces .place-2{--medal:var(--silver,#bbcad6);z-index:2}
#dlg-board .social-global-faces .place-3{--medal:var(--bronze,#d8a482);z-index:1}

/* ---------- 5. The season: its tag over the wordmark, Season 2's card under the sheet, its page, the premiere ---------- */
/* The season's tag sits over the wordmark like a title block's label: small and
   filled, quiet for Season 1, in the accent once Season 2 is on. It lies over
   the wordmark's button, which keeps room for it above the name. Season 2's way
   in is a card of its own under the sheet (further down). */
.wm-h1,.web-brand{display:grid;grid-template-columns:minmax(0,1fr);align-content:center}
.wm-h1>*,.web-brand>*{grid-area:1/1}
.brand-stack{display:inline-flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;box-sizing:border-box;min-height:44px;padding-top:21px}
.brand-stack .brand-name,.brand-stack .brand-lockup{height:auto!important;min-height:0!important}
.season-track{display:flex;align-self:start;justify-self:start;height:16px;pointer-events:none;z-index:1}
.season-flair{display:inline-flex;align-items:center;flex:none;box-sizing:border-box;height:16px;padding:0 4px 0 6px;border-radius:4px;background:color-mix(in srgb,var(--es-ink-3) 30%,var(--es-surface));color:var(--es-ink);font:700 9.5px/1 var(--card-label,var(--font-ui));letter-spacing:.17em;text-transform:uppercase;white-space:nowrap;transition:color .22s ease,background-color .22s ease}
.season-flair.is-season-2{background:var(--es-coral);color:var(--es-coral-ink)}
.season-flair.is-flipping{animation:season-flair-flip .72s cubic-bezier(.2,1.25,.35,1) both}
@keyframes season-flair-flip{
  0%{transform:rotateX(0deg) scale(1)}
  38%{transform:rotateX(88deg) scale(.86);opacity:.35}
  66%{transform:rotateX(-14deg) scale(1.14);opacity:1}
  100%{transform:rotateX(0deg) scale(1);opacity:1}
}
body:is([data-phase="play"],[data-phase="reveal"]) .app-header :is(.brand-stack,.season-track){display:none}
.web-home .brand-stack .brand-lockup{height:auto}
/* Season 2's card: a quiet panel the width of the sheet, under it. Two sheets of
   the new set, the season's name in the accent over what is behind the card,
   then, past a hairline, the time left and the arrow. */
.season-home{display:block;align-self:center;box-sizing:border-box;width:100%;margin:0}
.season-home[hidden],body:not([data-phase="intro"]) #season-home,body:is(.first-run-offer,.first-shot-offer,.first-run-leaving) #season-home,#app:has(.challenge-landing) #season-home{display:none}
.season-card{display:flex;align-items:center;gap:10px;box-sizing:border-box;width:100%;min-height:64px;margin:0;padding:8px 10px 8px 12px;border:1px solid var(--es-line);border-radius:12px;background:var(--es-surface);color:var(--es-ink);font:inherit;text-align:start;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:border-color .16s ease,background-color .16s ease,transform .12s ease}
.season-card:hover{border-color:var(--es-line-strong)}
.season-card:active{transform:scale(.985);background:var(--es-surface-2)}
.season-card:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.season-card-art{position:relative;flex:none;width:42px;height:40px}
.season-card-art>i{position:absolute;inset-block-start:0;inset-inline-start:0;display:grid;place-items:center;box-sizing:border-box;width:28px;height:28px;border:1px solid var(--es-line-strong);border-radius:7.5px;background:var(--es-surface-2);color:var(--es-ink-2);transform:rotate(-9deg)}
.season-card-art>i+i{inset-block-start:11px;inset-inline-start:14px;color:var(--es-ink);transform:rotate(6deg);box-shadow:0 1px 5px color-mix(in srgb,var(--es-ground) 60%,transparent)}
.season-card-art svg{width:18px;height:18px}
.season-card-art>i+i .game-icon .ac{color:var(--es-coral)}
.season-card-copy{display:grid;gap:4px;flex:1 1 auto;min-width:0}
.season-card-kicker{font:700 10.5px/1 var(--card-label,var(--font-ui));letter-spacing:.14em;text-transform:uppercase;color:var(--es-coral)}
.season-card-line{font:700 14.5px/1.2 var(--font-ui);letter-spacing:0;color:var(--es-ink);text-wrap:balance}
.season-card-when{display:block;flex:none;align-self:stretch;align-content:center;padding-inline-start:11px;border-inline-start:1px solid var(--es-line);font:500 13px/1.2 var(--font-ui);color:var(--es-ink-2);white-space:nowrap;font-variant-numeric:tabular-nums}
.season-card-when::first-letter{text-transform:uppercase}
.season-card-when b{font-weight:500;direction:ltr;unicode-bidi:isolate}
.season-card>.ui-icon,.season-card>svg:last-child{flex:none;width:14px;height:14px;margin-inline-start:-4px;color:var(--es-ink)}
.season-card.needs-update{border-color:color-mix(in srgb,var(--es-coral) 70%,var(--es-line))}
.season-card.is-live .season-card-when{color:var(--es-ink);font-weight:600}
/* In the app the sheet gives the card its room: Today's eye is drawn shorter
   while the card is up (sheet.css sizes it to fill the screen to the tab bar), so
   the sheet, the card and the tab bar are all in the first view on a phone of 812 pt
   or taller. The card stands 12 px under the sheet and 11 to 18 px over the tab bar
   (measured at 375x812, 390x844, 393x852, 402x874, 430x932 and 440x956). A phone
   375 pt wide sets the sheet's own contents smaller, so its eye keeps more.
   These are the first guess; app.js (fitSeasonHome) then sets --season-eye from what
   it measures, since a headline is taller in some languages than in others. */
.native-app #season-home{margin:-6px 0 -24px}
:root[data-theme] body.native-app[data-phase="intro"]:has(#season-home:not([hidden])) .home-blueprint>.today-sketch{height:var(--season-eye,clamp(44px,calc(100svh - 776px),176px))}
:root[data-theme].enlarged-text body.native-app[data-phase="intro"]:has(#season-home:not([hidden])) .home-blueprint>.today-sketch{height:44px}
/* (Arabic's headline stands 26 px taller than the Latin one.) */
:root[data-theme]:lang(ar) body.native-app[data-phase="intro"]:has(#season-home:not([hidden])) .home-blueprint>.today-sketch{height:var(--season-eye,clamp(44px,calc(100svh - 802px),176px))}
@media(max-width:380px){
:root[data-theme] body.native-app[data-phase="intro"]:has(#season-home:not([hidden])) .home-blueprint>.today-sketch{height:var(--season-eye,clamp(44px,calc(100svh - 745px),176px))}
:root[data-theme]:lang(ar) body.native-app[data-phase="intro"]:has(#season-home:not([hidden])) .home-blueprint>.today-sketch{height:var(--season-eye,clamp(44px,calc(100svh - 771px),176px))}
}
/* A guest's chip on the sheet is an open place for a name: its dashes and its
   figure are in the accent, its word in full ink. Enough to be found, no more. */
:root .sheet-head .sheet-who.is-guest{border-color:color-mix(in srgb,var(--es-coral) 62%,var(--es-line));background:color-mix(in srgb,var(--es-coral) 7%,transparent);color:var(--es-ink);font-weight:700}
:root .sheet-head .sheet-who.is-guest svg{color:var(--es-coral)}
:root .sheet-head .sheet-who.is-guest:is(:hover,:focus-visible){border-color:var(--es-coral);background:color-mix(in srgb,var(--es-coral) 13%,transparent)}
/* Under a finished sheet it takes the full line, after the next sheet's clock and
   the reminder. In the app that is only on a phone tall enough to show the whole
   card over the tab bar: a finished sheet does not shrink, and half a card behind
   the bar is worse than none (it is on Today again before the next sheet is played). */
.sheet-below>.season-home{flex:1 0 100%;margin:6px -2px 0 -4px}
@media(max-height:899.98px){.native-app .sheet-below>.season-home{display:none}}
@media(max-width:350px){.season-card{gap:10px;padding-inline:12px 10px}.season-card-art{display:none}}
.web-brand>.web-home{justify-self:start}
/* On the narrowest browsers the language pill is its globe alone: with a long name (Português (Brasil)) it ran over the wordmark at 320 px, and over the season's line with it. */
@media(max-width:350px){.web-header .lang-pill-name{display:none}.web-header .lang-pill{padding-inline:10px}}

/* Season 2's page. It covers the app as Settings does (below, "Settings in the
   app is a pushed page too"): the same paper, a quiet link back, then the
   season's name set like Today's headline, the time left, and the twenty. */
#dlg-season{position:fixed;inset:0;margin:0;padding:0;width:100%;max-width:none;height:100dvh;max-height:none;border:0;border-radius:0;overflow:hidden auto;overscroll-behavior-y:contain;color:var(--es-ink);background-color:var(--ground);background-image:linear-gradient(var(--sheet-rule) 1px,transparent 1px),linear-gradient(90deg,var(--sheet-rule) 1px,transparent 1px),linear-gradient(var(--sheet-fine) 1px,transparent 1px),linear-gradient(90deg,var(--sheet-fine) 1px,transparent 1px);background-size:100px 100px,100px 100px,20px 20px,20px 20px;animation:none;box-shadow:none}
#dlg-season::backdrop{background:var(--ground)}
#dlg-season .season-page{display:flex;flex-direction:column;gap:0;width:min(100%,720px);min-height:100%;margin:0 auto;box-sizing:border-box;padding:calc(12px + var(--safe-area-inset-top,env(safe-area-inset-top,0px))) var(--page-gutter) 0;background:none;border:0;border-radius:0}
.native-app #dlg-season .season-page{padding-top:calc(10px + var(--safe-area-inset-top,env(safe-area-inset-top,0px)))}
@media (min-width:760px){#dlg-season .season-page{max-width:648px}}
#dlg-season .settings-back{display:block;align-self:flex-start;min-height:44px;margin:0;padding:8px 0;font-size:.8rem;text-align:start;text-decoration:none;color:var(--es-ink-2,var(--ink-2))}
#dlg-season .season-page-head{display:grid;justify-items:start;gap:12px;margin:8px 0 0}
#dlg-season .season-page-kicker{padding:4px 5px 4px 8px;border-radius:5px;background:var(--es-coral);color:var(--es-coral-ink);font:700 11px/1 var(--card-label,var(--font-ui));letter-spacing:.17em;text-transform:uppercase}
#dlg-season #season-title{display:block;margin:0;font:900 clamp(46px,14vw,62px)/.86 var(--display);letter-spacing:.004em;text-transform:uppercase;color:var(--es-ink);overflow-wrap:anywhere;outline:0}
#dlg-season #season-title::after{content:".";color:var(--es-coral)}
:root:is(:lang(ja),:lang(zh-Hans),:lang(ko),:lang(ar)) #dlg-season #season-title::after{content:none}
/* Capitals with accents need the room between lines that English does without; Arabic is set a size down. */
:root:not(:lang(en)) #dlg-season #season-title{line-height:.98}
:root:lang(ar) #dlg-season #season-title{font-size:clamp(34px,10.5vw,46px)}
:root:lang(ar) #dlg-season .season-page-head{gap:4px}
#dlg-season #season-body{display:flex;flex:1;flex-direction:column}
#dlg-season #season-body:not(:has(>.season-dock)){padding-bottom:calc(28px + var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px)))}
#dlg-season .season-when{margin:14px 0 0;font:700 12.5px/1.3 var(--card-label,var(--font-ui));letter-spacing:.12em;text-transform:uppercase;color:var(--es-ink-2)}
#dlg-season .season-count{display:flex;align-items:baseline;gap:10px;margin:16px 0 0;color:var(--es-ink)}
#dlg-season .season-count b{font:900 clamp(72px,24vw,104px)/.86 var(--display);letter-spacing:.005em;font-variant-numeric:tabular-nums}
#dlg-season .season-count b.is-word{font-size:clamp(52px,16vw,72px);text-transform:uppercase}
#dlg-season .season-count span{font:900 clamp(28px,9vw,38px)/1 var(--display);text-transform:uppercase;color:var(--es-ink-2)}
/* The clock is one ruled row, as in a drawing's title block: four figures on the
   page itself, a hairline between them, no boxes. */
#dlg-season .season-clock{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;width:100%;padding:15px 0 13px;border-block:1px solid var(--es-line);direction:ltr}
#dlg-season .season-clock-cell{display:grid;justify-items:start;align-content:center;gap:7px;padding:0 0 0 16px;border:0;border-inline-start:1px solid var(--es-line);border-radius:0;background:none}
#dlg-season .season-clock-cell:first-child{padding-inline-start:0;border-inline-start:0}
#dlg-season .season-clock-cell b{font:900 clamp(36px,11vw,50px)/.86 var(--display);letter-spacing:.01em;font-variant-numeric:tabular-nums;color:var(--es-ink)}
#dlg-season .season-clock-cell small{font:700 10px/1 var(--card-label,var(--font-ui));letter-spacing:.16em;text-transform:uppercase;color:var(--es-ink-3)}
#dlg-season .season-hint{margin:26px 0 0;font:700 11.5px/1.3 var(--card-label,var(--font-ui));letter-spacing:.14em;text-transform:uppercase;color:var(--es-ink-3)}
/* The twenty are one panel ruled into cells, four across (five where there is
   room), not twenty boxes. A cell is a shot's mark over its name. */
#dlg-season .season-marks{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;margin:26px 0 0;padding:0;overflow:hidden;border:1px solid var(--es-line);border-radius:14px;background:linear-gradient(var(--es-line),var(--es-line)) var(--es-surface)}
@media (min-width:560px){#dlg-season .season-marks{grid-template-columns:repeat(5,minmax(0,1fr))}}
#dlg-season .season-hint+.season-marks{margin-top:10px}
/* (A 320 pt phone: four cells of 70 px. The names are set a size down so "Remember" is not broken.) */
@media (max-width:350px){#dlg-season ul.season-marks>li{font-size:.68rem;letter-spacing:-.005em}}
#dlg-season .season-marks li{display:grid;place-items:center;align-content:center;gap:7px;min-height:78px;box-sizing:border-box;padding:11px 3px 10px;text-align:center;overflow-wrap:anywhere;font:600 .78rem/1.2 var(--card-label,var(--font-ui));background:var(--es-surface);color:var(--es-ink)}
#dlg-season .season-marks li:has(>button){padding:0}
#dlg-season .season-marks li>button{display:grid;place-items:center;align-content:center;gap:7px;width:100%;height:100%;min-height:78px;box-sizing:border-box;padding:11px 3px 10px;border:0;border-radius:0;background:none;color:inherit;font:inherit;overflow-wrap:anywhere;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .15s ease}
#dlg-season .season-marks li>button:hover{background:color-mix(in srgb,var(--es-surface-2) 55%,var(--es-surface))}
#dlg-season .season-marks li>button:active{background:var(--es-surface-2)}
#dlg-season .season-marks li>button:focus-visible{outline:2px solid var(--focus);outline-offset:-3px}
#dlg-season .season-marks svg{width:26px;height:26px}
/* The panel stands still; the marks come up into their cells in turn. */
#dlg-season .season-marks li>:is(svg,span),#dlg-season .season-marks li>button>*{animation:season-deal .36s cubic-bezier(.2,.8,.25,1) both;animation-delay:calc(var(--deal) * 18ms + 140ms)}
@keyframes season-deal{from{opacity:0;transform:translateY(5px)}}
@media (prefers-reduced-motion:reduce){#dlg-season .season-marks li *{animation:none}}
:root[data-restoring] #dlg-season .season-marks li *{animation:none}
#dlg-season .season-copy{max-width:34em;margin:18px 0 0;font-size:15px;line-height:1.5;color:var(--es-ink-2);text-wrap:pretty}
#dlg-season #season-body>.season-marks:last-child{margin-bottom:8px}
#dlg-season .season-update{display:grid;gap:12px;margin:22px 0 0;padding:14px;border:1px solid color-mix(in srgb,var(--es-coral) 55%,var(--es-line));border-radius:14px;background:color-mix(in srgb,var(--es-coral) 9%,var(--es-surface))}
#dlg-season .season-update p{margin:0;font-size:15px;line-height:1.45;color:var(--es-ink)}
#dlg-season .season-update .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;margin:0}
#dlg-season .season-update .btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* The way into practice stays in reach at the foot of the page, over the paper. */
#dlg-season .season-dock{position:sticky;bottom:0;margin:auto calc(-1 * var(--page-gutter)) 0;padding:26px var(--page-gutter) calc(16px + var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px)));background:linear-gradient(to bottom,transparent,var(--ground) 34%);pointer-events:none}
#dlg-season .season-dock>.btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;margin:0;pointer-events:auto}
#dlg-season .season-dock>.btn svg{flex:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* Season 2 premiere non-blocking celebration ribbon & sheet deal */
.season-premiere{position:fixed;inset:0;z-index:70;pointer-events:none;display:grid;place-items:start center;padding:calc(max(16px,var(--safe-area-inset-top,env(safe-area-inset-top,0px))) + 58px) 16px 0;overflow:hidden}
.season-premiere-sweep{position:absolute;inset:0;background:linear-gradient(108deg,transparent 24%,color-mix(in srgb,var(--gold,#e5ba4a) 22%,transparent) 48%,color-mix(in srgb,var(--es-coral) 16%,transparent) 54%,transparent 76%);transform:translateX(-110%);animation:season-sweep .95s cubic-bezier(.2,.75,.25,1) forwards}
.season-premiere-card{position:relative;display:grid;justify-items:center;gap:4px;padding:14px 22px 15px;border:1.5px solid color-mix(in srgb,var(--es-coral) 58%,var(--gold,#e5ba4a));border-radius:16px;background:color-mix(in srgb,var(--es-surface) 95%,transparent);box-shadow:0 16px 40px rgba(3,12,28,.34),0 2px 8px rgba(3,12,28,.16);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);text-align:center;animation:season-premiere-in 2.7s cubic-bezier(.2,1.18,.35,1) forwards}
.season-premiere-tag{display:inline-flex;align-items:center;gap:5px;font:700 10.5px/1 var(--card-label,var(--font-ui));letter-spacing:.18em;text-transform:uppercase;color:var(--es-coral)}
.season-premiere-tag::before{content:"✦";color:var(--gold,#e5ba4a)}
.season-premiere-title{margin:0;font:900 clamp(26px,8vw,34px)/.95 var(--display);letter-spacing:.01em;text-transform:uppercase;color:var(--es-ink)}
.season-premiere-sub{margin:0;font:600 13px/1.25 var(--font-ui);color:var(--es-ink-2)}
@keyframes season-sweep{to{transform:translateX(110%)}}
@keyframes season-premiere-in{
  0%{opacity:0;transform:translateY(-22px) scale(.88) rotate(-2deg)}
  14%{opacity:1;transform:translateY(0) scale(1.03) rotate(.4deg)}
  22%{opacity:1;transform:translateY(0) scale(1) rotate(0deg)}
  82%{opacity:1;transform:translateY(0) scale(1)}
  100%{opacity:0;transform:translateY(-14px) scale(.96)}
}
body.season-premiere-live .daily-preview ol>li{animation:welcome-deal .46s cubic-bezier(.2,.8,.25,1.12) both;animation-delay:calc(180ms + var(--deal,0) * 65ms)}
@media (prefers-reduced-motion:reduce){
  .season-flair.is-flipping,.season-premiere-sweep,.season-premiere-card,body.season-premiere-live .daily-preview ol>li{animation:none}
  .season-premiere-sweep{display:none}
}

/* ---------- 6. the tab pager, and the tab bar ---------- */
/* The tabs as one sideways scroller (tab-pager.js). Off (in a shot, on the web)
   the frame is not there: its boxes vanish and the page lays out as it always
   has. On, the three tabs sit side by side, each the full screen, and the
   system scrolls and snaps between them. */
#tab-pager,.tab-slot{display:contents}
html.tab-pager-on #tab-pager{position:fixed;inset:0;display:flex;direction:ltr;overflow:hidden;scroll-snap-type:x mandatory;scroll-behavior:auto;overscroll-behavior:contain;scrollbar-width:none}
/* The pages can be swiped once the tabs beside this one are drawn (armed), and
   not from a page deeper in a tab (solo). */
html.tab-pager-on #tab-pager[data-mode=tabs][data-armed]{overflow:auto hidden}
html.tab-pager-on #tab-pager::-webkit-scrollbar{display:none}
html.tab-pager-on .tab-slot{display:block;position:relative;flex:0 0 100%;min-width:0;height:100%;overflow:hidden;scroll-snap-align:start;scroll-snap-stop:always}
/* Nothing is left in the page's own flow, and the sheet's ground is the body's: keep it the screen's height. */
html.tab-pager-on body{min-height:100svh}
/* Only the tab you are on scrolls up and down. A tab beside it has no scroller
   of its own, so the system draws it into the pager's one strip, which is
   always painted: the tab is whole the moment a swipe uncovers it, even while
   the page's script is busy. (With its own scrolling layer it is painted on
   demand and arrives half blank.) */
html.tab-pager-on .tab-slot.is-current[data-tab=today]{overflow:hidden auto;overscroll-behavior-y:contain}
/* A tab's page keeps the box it had over the window, inside its place. */
html.tab-pager-on .tab-slot>.page-dialog{position:absolute;z-index:auto;overflow:hidden;overscroll-behavior:auto contain}
html.tab-pager-on .tab-slot.is-current>.page-dialog{overflow:hidden auto}
/* A tab beside this one holds still: the streak flame breathes only on the tab
   you are on. Anything that animates gets a layer of its own, and a page that
   stacks and clips such a layer gets one too (hence z-index:auto above): it is
   then painted on demand like any scroller, and a swipe uncovers it blank. */
html.tab-pager-on .tab-slot:not(.is-current) :is(.flame-icon,.flame-icon *){animation:none!important}
/* One sheet of paper lies behind all three tabs (the body's), and the pages move
   over it. A page's own copy of the paper, and the one behind its title, are
   fixed to the screen so their grids line up; a background fixed to the screen
   cannot ride a scroller the system moves, and showed as a flat band travelling
   with the title and a blink of grid lines on landing. A page at its top has
   nothing under its title to cover, so neither is drawn there. */
html.tab-pager-on .tab-slot>.page-dialog{background:none}
html.tab-pager-on .tab-slot>.page-dialog:not(.is-scrolled) .destination-header::before{background:none}
/* A tab you are not on is drawn and closed: there to be seen arriving. */
html.tab-pager-on .tab-slot>.page-dialog:not([open]){display:block}
/* Today no longer lies hidden under an open tab: it is beside it. */
html.tab-pager-on body[data-view] :is(#play,#results,.about-more,#app>footer){visibility:visible}
html.tab-pager-on body.native-app[data-view] .app-header{display:flex}
/* Sideways strips inside a page end at their own edge, not on the next tab. */
html.tab-pager-on .tab-slot :is(.player-progress-bars,.progress-bars-scroll,.shot-comparison,.personal-card){overscroll-behavior-x:contain}
html.tab-pager-on .tab-slot [data-tab-swipe=off]{touch-action:pan-y}
/* The field takes no pan while a shot is played. On the unplayed Today the same
   box only holds the headline, in the middle of the screen: a swipe (or a
   scroll) may start there. */
body[data-phase="intro"] .stage,body[data-phase="intro"] .stage canvas{touch-action:auto}

/* The tab bar where UIKit's glass bar is not there (Android, older iPhones): the
   same floating capsule, in the page's own materials. Pages run under it, as
   they do under the glass bar. */
:root .native-app:not(.native-glass) .app-nav{left:50%;right:auto;bottom:calc(8px + var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px)));transform:translateX(-50%);width:min(calc(100% - 36px),440px);max-width:none;min-height:0;box-sizing:border-box;padding:5px;gap:4px;border:1px solid color-mix(in srgb,var(--es-ink) 14%,transparent);border-radius:999px;background:color-mix(in srgb,var(--es-surface-2,var(--es-surface)) 72%,transparent);-webkit-backdrop-filter:blur(22px) saturate(1.5);backdrop-filter:blur(22px) saturate(1.5);box-shadow:0 12px 34px rgba(3,10,22,.34),inset 0 1px 0 color-mix(in srgb,#fff 10%,transparent)}
:root[data-theme="light"] .native-app:not(.native-glass) .app-nav{background:color-mix(in srgb,var(--es-surface) 78%,transparent);box-shadow:0 10px 30px rgba(40,52,70,.18),inset 0 1px 0 #fff8}
:root .native-app:not(.native-glass) .app-nav>button{min-height:54px;gap:3px;padding:6px 4px;border-radius:999px;font-size:12px;font-weight:600;color:var(--es-ink-2)}
:root .native-app:not(.native-glass) .app-nav>button[aria-current=page]{color:var(--es-ink)!important;font-weight:700}
:root .native-app:not(.native-glass) .app-nav>button svg{width:23px;height:23px;transition:transform .28s cubic-bezier(.3,1.5,.5,1)}
:root .native-app:not(.native-glass) .app-nav>button[aria-current=page] svg{transform:scale(1.08)}
:root .native-app:not(.native-glass) .app-nav.segmented-control{border-radius:999px;overflow:clip}
:root .native-app:not(.native-glass) .app-nav.segmented-control::before{border-radius:999px!important;background:color-mix(in srgb,var(--es-ink) 13%,transparent)!important;box-shadow:inset 0 1px 0 color-mix(in srgb,#fff 9%,transparent)!important}
.native-app:not(.native-glass) .page-dialog{bottom:0}
.native-app:not(.native-glass):not(.keyboard-open) .page-dialog>.dlg,.native-app:not(.native-glass):not(.keyboard-open) :is(#dlg-board,#dlg-stats).page-dialog>.dlg{padding-bottom:calc(108px + var(--safe-area-inset-bottom,env(safe-area-inset-bottom)))}
@media (prefers-reduced-motion:reduce){:root .native-app:not(.native-glass) .app-nav>button svg{transition:none}}

/* ---------- 7. You: three tiles, a week, and months ---------- */
/* The three places You leads to are tiles side by side, each with its own
   colour, where there was a list of rows. */
#dlg-stats .you-links{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:18px;border-top:0}
#dlg-stats .you-link{--tile:var(--study-blue,#8eb8d2);grid-template-columns:minmax(0,1fr);justify-items:start;align-content:start;gap:10px;min-height:112px;padding:14px 12px 12px;border:1px solid var(--es-line);border-radius:18px;background:linear-gradient(160deg,color-mix(in srgb,var(--tile) 13%,var(--es-surface)) 0%,var(--es-surface) 62%);box-shadow:var(--es-shadow-soft);transition:transform .12s ease}
#dlg-stats .you-link:active{transform:scale(.97);background:var(--es-surface-2)}
#dlg-stats .you-link:nth-child(2){--tile:var(--es-coral)}
#dlg-stats .you-link:nth-child(3){--tile:var(--study-gold,#d7bd7d)}
#dlg-stats .you-link-icon{width:40px;height:40px;border-radius:12px;background:color-mix(in srgb,var(--tile) 20%,transparent);color:var(--tile)}
#dlg-stats .you-link-text{gap:3px}
#dlg-stats .you-link-text b{font-size:15.5px}
#dlg-stats .you-link-text small{font-size:12.5px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#dlg-stats .you-link>.ui-icon{display:none}
/* Design review D-07: on a 320px phone the three tiles are 88px wide and "Playground" ran 7px past its tile. */
@media (max-width:340px){#dlg-stats .you-link{padding-inline:8px}#dlg-stats .you-link-text b{font-size:13px}}
#dlg-stats .you-link:focus-visible{border-radius:18px;outline-offset:2px}
.enlarged-text #dlg-stats .you-links{grid-template-columns:minmax(0,1fr)}
.enlarged-text #dlg-stats .you-link{min-height:0;grid-template-columns:40px minmax(0,1fr);align-items:center}

/* The last seven days as tiles in their score's colour (the calendar's cells, in a row). */
#dlg-stats .you-week{list-style:none;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin:0;padding:0}
#dlg-stats .you-week-day{display:grid;justify-items:center;align-content:center;gap:5px;width:100%;min-height:62px;margin:0;padding:7px 0 8px;border:1px solid var(--es-line);border-radius:12px;background:transparent;color:var(--es-ink-2);font:inherit}
#dlg-stats .you-week-day small{font:700 10.5px/1 var(--card-label,var(--font-ui));letter-spacing:.1em;color:var(--es-ink-3)}
#dlg-stats .you-week-day b{min-height:14px;font:800 13.5px/1 var(--font-ui);font-variant-numeric:tabular-nums}
#dlg-stats button.you-week-day{cursor:pointer;transition:transform .12s ease}
#dlg-stats button.you-week-day:active{transform:scale(.94)}
#dlg-stats .you-week-day.is-played{border-color:transparent;background:var(--band);color:var(--band-text)}
#dlg-stats .you-week-day.is-played small{color:color-mix(in srgb,var(--band-text) 72%,transparent)}
#dlg-stats .you-week-day.is-played.is-perfect{background:var(--perfect-metal,var(--band))}
#dlg-stats .you-week-day.is-missed{border-style:dashed;border-color:var(--es-line-strong)}
#dlg-stats .you-week-day.is-today{box-shadow:0 0 0 2px var(--es-ground),0 0 0 3.5px var(--es-coral)}
#dlg-stats .you-week-day:focus-visible{outline:2px solid var(--focus);outline-offset:3px}

/* History, the Archive and a group's winners: calendar months (calendar.js). A
   played day is a tile in the colour its five shots averaged; today wears the
   pencil's ring. */
:is(#dlg-stats,#dlg-board) .cal{display:grid;gap:26px;max-width:460px}
:is(#dlg-stats,#dlg-board) .cal-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 2px 10px}
:is(#dlg-stats,#dlg-board) .cal-head h3{margin:0;font:900 26px/1 var(--display);letter-spacing:.01em;text-transform:uppercase;color:var(--es-ink)}
:is(#dlg-stats,#dlg-board) .cal-head span{font-size:13px;color:var(--es-ink-2);white-space:nowrap}
:is(#dlg-stats,#dlg-board) .cal-head span b{color:var(--es-ink);font-weight:700;font-variant-numeric:tabular-nums}
:is(#dlg-stats,#dlg-board) .cal-weekdays,:is(#dlg-stats,#dlg-board) .cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
:is(#dlg-stats,#dlg-board) .cal-weekdays{margin-bottom:6px}
:is(#dlg-stats,#dlg-board) .cal-weekdays span{text-align:center;font:700 10.5px/1.4 var(--card-label,var(--font-ui));letter-spacing:.1em;color:var(--es-ink-3)}
:is(#dlg-stats,#dlg-board) .cal-day{position:relative;display:grid;justify-items:center;align-content:center;gap:3px;min-width:0;min-height:48px;aspect-ratio:1;margin:0;padding:3px 0;border:1px solid var(--es-line);border-radius:11px;background:transparent;color:var(--es-ink-2);font:inherit;-webkit-tap-highlight-color:transparent}
:is(#dlg-stats,#dlg-board) .cal-day small{font:600 10px/1 var(--font-ui);color:var(--es-ink-3);font-variant-numeric:tabular-nums}
:is(#dlg-stats,#dlg-board) .cal-day b{font:800 13px/1 var(--font-ui);letter-spacing:-.01em;font-variant-numeric:tabular-nums}
:is(#dlg-stats,#dlg-board) .cal-day.is-blank{border-color:transparent}
:is(#dlg-stats,#dlg-board) .cal-day.is-missed{border-style:dashed;border-color:color-mix(in srgb,var(--es-line-strong) 70%,transparent)}
:is(#dlg-stats,#dlg-board) button.cal-day{cursor:pointer;transition:transform .12s ease,box-shadow .15s ease}
:is(#dlg-stats,#dlg-board) button.cal-day:active{transform:scale(.93)}
:is(#dlg-stats,#dlg-board) .cal-day.is-played{border-color:transparent;background:var(--band);color:var(--band-text)}
:is(#dlg-stats,#dlg-board) .cal-day.is-played small{color:color-mix(in srgb,var(--band-text) 70%,transparent)}
:is(#dlg-stats,#dlg-board) .cal-day.is-played.is-perfect{background:var(--perfect-metal,var(--band))}
:is(#dlg-stats,#dlg-board) .cal-day.is-partial{border-color:var(--es-line-strong);background:repeating-linear-gradient(135deg,transparent 0 5px,var(--band-none) 5px 10px);color:var(--es-ink-2)}
:is(#dlg-stats,#dlg-board) .cal-day.is-today{box-shadow:0 0 0 2px var(--es-ground),0 0 0 3.5px var(--es-coral)}
:is(#dlg-stats,#dlg-board) .cal-day[aria-pressed="true"]{box-shadow:0 0 0 2px var(--es-ground),0 0 0 4px var(--es-ink);transform:none}
:is(#dlg-stats,#dlg-board) .cal-day:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
/* The Archive's cells: an unplayed sheet invites, a half-played one says how far. */
#dlg-stats .cal-day.is-open{border-color:var(--es-line-strong);background:var(--es-surface);color:var(--es-ink)}
#dlg-stats .cal-day.is-open small{color:var(--es-ink-2)}
#dlg-stats .cal-play{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--es-ink);color:var(--es-surface)}
#dlg-stats .cal-play svg{width:9px;height:9px;fill:currentColor}
#dlg-stats .cal-day.is-resume{border-color:var(--es-coral);background:color-mix(in srgb,var(--es-coral) 12%,var(--es-surface));color:var(--es-ink)}
#dlg-stats .cal-day.is-resume b{font-size:12px;color:var(--es-coral)}
:root[data-theme="light"] #dlg-stats .cal-day.is-resume b{color:var(--es-coral)}
#dlg-stats .cal-day.is-replay{background:color-mix(in srgb,var(--band) 55%,var(--es-surface));box-shadow:inset 0 0 0 1.5px var(--band)}
/* Under History's calendar: the picked day's five shots, one day at a time. */
#dlg-stats .personal-history .history-detail{margin-top:22px;padding:0;border:0;background:none;box-shadow:none}
#dlg-stats .personal-history .history-hint{margin:0;padding:14px 16px;border:1px dashed var(--es-line-strong);border-radius:14px;color:var(--es-ink-2);font-size:14.5px;text-align:center}
#dlg-stats .personal-history .history-detail:has(.history-list>li.is-picked) .history-hint{display:none}
#dlg-stats .personal-history .history-list>li{display:none}
#dlg-stats .personal-history .history-list>li.is-picked{display:block;padding:4px 16px 8px;border:1px solid var(--es-line);border-radius:18px;background:var(--es-surface);box-shadow:var(--es-shadow-soft)}
#dlg-stats .archive-panel .archive-list{margin-top:6px;padding:0}
/* The Archive's days were list rows once; as calendar cells they take the cell's own box and ink. */
:root #dlg-stats .archive-list button.cal-day{display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;align-content:center;gap:3px;width:auto;min-height:48px;padding:3px 0;font:inherit;text-align:center;color:var(--es-ink-2)}
:root #dlg-stats .archive-list button.cal-day.is-played{color:var(--band-text)}
:root #dlg-stats .archive-list button.cal-day:is(.is-open,.is-resume){color:var(--es-ink)}
:root #dlg-stats .archive-list .cal-day small{font:600 10px/1 var(--font-ui)}
:root #dlg-stats .archive-list .cal-day svg{width:9px;height:9px;color:inherit}
#dlg-stats .archive-panel .panel-intro{margin-bottom:2px}
.enlarged-text #dlg-stats .cal-day b{font-size:11px}

/* ---------- 8. Playground: tiles by family ---------- */
/* Three across, each a mark and a name in its family's colour, under the
   family's name. The one-line description is still read out, and still on the
   shot's own card; here the page is for picking. Enlarged text keeps the
   two-column cards with their descriptions. */
.lab-panel [data-family="draw"]{--fam:#aacff4}.lab-panel [data-family="tap"]{--fam:#d4c2f1}.lab-panel [data-family="adjust"]{--fam:#e9ce92}.lab-panel [data-family="timing"]{--fam:#a5daca}.lab-panel [data-family="estimate"]{--fam:#f3b8a5}
.lab-panel [data-family="place"]{--fam:#aacff4}.lab-panel [data-family="shape"]{--fam:#d4c2f1}.lab-panel [data-family="length"]{--fam:#e9ce92}.lab-panel [data-family="motion"]{--fam:#a5daca}.lab-panel [data-family="memory"]{--fam:#f3b8a5}
:root[data-theme="light"] .lab-panel :is([data-family="draw"],[data-family="place"]){--fam:#35658c}
:root[data-theme="light"] .lab-panel :is([data-family="tap"],[data-family="shape"]){--fam:#705a92}
:root[data-theme="light"] .lab-panel :is([data-family="adjust"],[data-family="length"]){--fam:#856529}
:root[data-theme="light"] .lab-panel :is([data-family="timing"],[data-family="motion"]){--fam:#2b746b}
:root[data-theme="light"] .lab-panel :is([data-family="estimate"],[data-family="memory"]){--fam:#a5522f}
.lab-panel .lab-family{grid-column:1/-1;display:flex;align-items:center;gap:10px;margin:14px 2px 0;font:700 12px/1.2 var(--card-label,var(--font-ui));letter-spacing:.14em;text-transform:uppercase;color:var(--fam,var(--es-ink-2))}
.lab-panel .lab-family:first-child{margin-top:2px}
.lab-panel .lab-family::after{content:"";flex:1;height:1px;background:color-mix(in srgb,var(--fam,var(--es-line)) 35%,transparent)}
/* Three across on a phone, two on the narrowest, as many as fit on a wide page. */
:root:not(.enlarged-text) .lab-panel .lab-grid{grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:8px}
:root:not(.enlarged-text) .lab-panel .lab-pick{position:relative;justify-items:center;align-content:center;gap:8px;min-height:92px;padding:12px 6px 11px;border-radius:16px;text-align:center;background:linear-gradient(165deg,color-mix(in srgb,var(--fam,var(--es-ink)) 11%,var(--es-surface)) 0%,var(--es-surface) 70%);transition:transform .12s ease}
:root:not(.enlarged-text) .lab-panel .lab-pick:active{transform:scale(.95)}
:root:not(.enlarged-text) .lab-panel .lab-pick .em{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:color-mix(in srgb,var(--fam,var(--es-ink)) 17%,transparent);color:var(--fam,var(--es-ink))}
:root:not(.enlarged-text) .lab-panel .lab-pick .em svg{width:26px;height:26px}
:root:not(.enlarged-text) .lab-panel .lab-pick b{font:700 13px/1.15 var(--card-label,var(--font-ui));text-align:center;text-transform:none;letter-spacing:0;white-space:normal;hyphens:manual;color:var(--es-ink)}
:root:not(.enlarged-text) .lab-panel .lab-pick .bl{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
:root:not(.enlarged-text) .lab-panel .lab-pick .lab-from{margin-top:0;font-size:10px;padding:1px 7px}

/* Stats ends on the same strip; the old list's box does not apply to it. */
#dlg-stats .you-week-day{grid-template-columns:minmax(0,1fr);text-align:center}

/* ---------- 10. A group's winners, by day ---------- */
/* The leaderboard's month as a calendar: each finished day shows who won it, in
   gold where that is you and coral where it is someone else (AJ, 30 Nov), and a
   name under Most wins lights that player's days. The day picked opens beneath. */
#dlg-board .winner-calendar [data-winner-calendar]{margin-top:14px}
#dlg-board .winner-calendar .cal{gap:20px}
#dlg-board .winner-calendar .cal-head h3{font-size:20px}
#dlg-board .cal-day.is-won{border-color:var(--es-line);background:var(--es-surface-2);color:var(--es-ink);gap:2px;transition:transform .12s ease,opacity .18s ease,box-shadow .15s ease}
#dlg-board .cal-day .win-face{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:color-mix(in srgb,var(--es-coral) 26%,var(--es-surface));box-shadow:inset 0 0 0 1.5px var(--es-coral);color:var(--es-ink);font:700 10.5px/1 var(--font-ui);font-style:normal}
#dlg-board .win-key{display:flex;gap:16px;margin:0 0 8px;font:500 13px/1.3 var(--font-ui);color:var(--es-ink-2)}
#dlg-board .win-key span{display:inline-flex;align-items:center;gap:6px}
#dlg-board .win-key span::before{content:'';width:12px;height:12px;border-radius:50%;background:color-mix(in srgb,var(--es-coral) 26%,var(--es-surface));box-shadow:inset 0 0 0 1.5px var(--es-coral)}
#dlg-board .win-key .is-mine::before{background:color-mix(in srgb,var(--gold,#d8bd79) 26%,var(--es-surface));box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--gold,#d8bd79) 70%,transparent)}
#dlg-board .cal-day.is-mine .win-face{background:color-mix(in srgb,var(--gold,#d8bd79) 26%,var(--es-surface));box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--gold,#d8bd79) 70%,transparent)}
#dlg-board .cal-day.is-won em{position:absolute;top:3px;right:4px;font:700 9px/1 var(--font-ui);font-style:normal;color:var(--es-ink-3)}
#dlg-board .cal-day.is-won small{position:absolute;top:3px;left:5px}
#dlg-board .cal-day.is-won{align-content:end;padding-bottom:5px}
#dlg-board .cal-day.is-dim{opacity:.32}
#dlg-board .winner-calendar [data-winner-days]{margin-top:16px}
#dlg-board .winner-calendar .history-hint{margin:0;padding:14px 16px;border:1px dashed var(--es-line-strong);border-radius:14px;color:var(--es-ink-2);font-size:14.5px;text-align:center}

/* ---------- 9. the second pass (23 Nov, evening): less on each screen, and one way of moving ---------- */
/* Social's group card: the name stands whole (two lines if it needs them), one
   line under it says who has played, and your place stands at the right once
   you have one. Nothing on the card is cut short. */
#dlg-board .is-compact .social-card-name b{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.18}
#dlg-board .is-compact .social-card-line{flex-wrap:wrap;row-gap:4px}
#dlg-board .is-compact .social-card-line>span:last-child{white-space:normal;overflow:visible;overflow-wrap:anywhere}
#dlg-board .is-compact .group-card-copy{gap:6px}

/* You's three tiles stand the same height, whatever each caption needs. */
#dlg-stats .you-links{align-items:stretch}
#dlg-stats .you-link{align-self:stretch;height:auto}
.enlarged-text #dlg-stats .you-link{align-self:auto}

/* A page inside a tab is titled the same way wherever it is: Stats and History
   as Global standings and a group are, smaller than the tab's own title. The
   Settings gear belongs to You itself, not to every page under it. */
#dlg-stats:not([data-personal-panel=overview]) .destination-header h2.destination-title{font-size:calc(1.5rem - var(--title-collapse,0) * .3rem);line-height:1.8rem}
#dlg-stats:not([data-personal-panel=overview]) .you-settings{display:none}
#dlg-stats:not([data-personal-panel=overview]) .destination-header{margin-bottom:16px}
/* Design review D-04: ...and at the same height. In the app You's pages sat 10px (the back link) and 14px (the
   title) above Social's; both now put the link at 10px under the safe area, the title 4px under the link and the
   page 20px under the header. */
.native-app #dlg-stats:not([data-personal-panel=overview]) .destination-header{padding-block:10px;row-gap:4px;margin-bottom:20px}

/* The challenge result: the verdict is the card's heading, clear of its ×. */

/* Movement means one thing each (view-motion.js). The tabs lie side by side and
   slide sideways (24 Nov: the system's own scroller in the app, section 6; the
   two pages as pictures on the web); a page deeper in a tab slides in from the
   right; a page that covers the app and closes with × (Settings) rises from
   the bottom as the sheets do. The 'tab' fade is for a tab that appears by
   other means (a link, a button on another page). */
@supports(view-transition-name:eyeshot-page){
 :root[data-navigation-direction=tab]::view-transition-old(eyeshot-page){animation:none}
 :root[data-navigation-direction=tab]::view-transition-new(eyeshot-page){animation:tab-arrive .18s ease-out both}
 :root[data-navigation-direction=rise]::view-transition-old(eyeshot-page){animation:none}
 :root[data-navigation-direction=rise]::view-transition-new(eyeshot-page){animation:page-rise .32s cubic-bezier(.2,.85,.25,1) both}
 :root[data-navigation-direction=fall]::view-transition-old(eyeshot-page){animation:page-fall .24s cubic-bezier(.4,0,1,1) both;z-index:1}
 :root[data-navigation-direction=fall]::view-transition-new(eyeshot-page){animation:none}
}
@keyframes tab-arrive{from{opacity:0}}
@keyframes page-rise{from{transform:translateY(100%)}}
@keyframes page-fall{to{transform:translateY(100%)}}
@media(prefers-reduced-motion:reduce){:root[data-navigation-direction]::view-transition-old(eyeshot-page),:root[data-navigation-direction]::view-transition-new(eyeshot-page){animation:none}}

/* ============================================================
   10. the final pass (24 Nov): the group Leaderboard reads like the rest
   ============================================================ */
/* No wins yet: the same card the group's Today tab uses for its notice. */
#dlg-board .group-competition:has(>.group-first){gap:12px}
#dlg-board .group-competition>.group-first{margin:0;padding:14px 16px;border:1px solid var(--es-line);border-radius:14px;background:var(--es-surface);box-shadow:var(--es-shadow-soft);font-size:15.5px;line-height:1.45;color:var(--es-ink-2)}
#dlg-board .group-competition>.group-first b{color:var(--es-ink)}
/* Most wins: a name and its wins on one line, the bar under them, as Global
   standings draws a row. A long name wraps; the crown stays beside it. */
#dlg-board .winner-bars>button{grid-template-columns:minmax(0,1fr) auto;gap:7px 12px;padding:11px 2px}
#dlg-board .winner-bars>button[aria-pressed=true]{padding-inline:8px}
#dlg-board .winner-bars .winner-name{display:flex;align-items:center;min-width:0;font:600 15.5px/1.25 var(--font-ui)}
#dlg-board .winner-bars .winner-name bdi{min-width:0;overflow-wrap:anywhere}
#dlg-board .winner-bars .winner-crown{flex:none;margin:0 6px 0 0}
#dlg-board .winner-bars>button>b{font:700 15.5px/1.25 var(--font-ui);font-variant-numeric:tabular-nums;white-space:nowrap}
#dlg-board .winner-bars .winner-track{grid-column:1/-1;height:5px;border-radius:3px}
#dlg-board .winner-bars .winner-track i{border-radius:3px}
/* The day picked on the calendar: when, then each winner once with the total. */
#dlg-board [data-winner-days]:has(.winner-day){padding:13px 14px 4px}
#dlg-board .winner-day-when{margin:0 0 4px;font:700 11.5px/1.3 var(--card-label,var(--font-ui));letter-spacing:.12em;text-transform:uppercase;color:var(--es-ink-2)}
#dlg-board .winner-day-row{display:flex;align-items:center;gap:10px;width:100%;min-height:50px;margin:0;padding:6px 0;border:0;border-top:1px solid var(--es-line);border-radius:0;background:none;color:var(--es-ink);font:600 16px/1.25 var(--font-ui);text-align:left}
#dlg-board .winner-day-when+.winner-day-row{border-top:0}
#dlg-board button.winner-day-row{cursor:pointer}
#dlg-board button.winner-day-row:focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:8px}
#dlg-board .winner-day-name{flex:1;min-width:0;overflow-wrap:anywhere}
#dlg-board .winner-day-score{flex:none;display:inline-flex;align-items:baseline;font:900 22px/1 var(--display);font-variant-numeric:tabular-nums;white-space:nowrap}
#dlg-board .winner-day-score small{margin-left:2px;font:600 11px/1 var(--font-ui);color:var(--es-ink-3)}
#dlg-board .winner-day-row>svg{flex:none;width:16px;height:16px;color:var(--es-ink-3);fill:none;stroke:currentColor;stroke-width:2}
#dlg-board .winner-day-more{margin:0;padding:0 0 10px;font-size:13.5px;color:var(--es-ink-2)}
/* A reply to a challenge is waiting: a dot on the Social tab (the HTML bar;
   the glass bar draws its own). */
.app-nav .nav-dot{display:none;fill:var(--es-coral,#f0705a);stroke:var(--es-ground,var(--ground));stroke-width:1.4}
body.social-news .app-nav .nav-dot{display:block}

/* ---------- 1.0.3 polish: navigation (A1 to A4) ---------- */
/* A1. Pages inside a tab. The picture of the page before lies to the left of a
   pushed page (page-pictures.js): the pager's row is then the picture and the
   page, and a swipe from left to right uncovers the picture. The other tabs
   step out of the row but stay laid out, far off to the left: taken out and
   put back, everything in them that animates would play again. */
html.tab-pager-on #tab-pager>.tab-under{display:none}
html.tab-pager-on #tab-pager[data-mode=back][data-armed]{overflow:auto hidden}
/* The row with a pushed page up (app.js, "pages inside a tab"): the tabs to this
   tab's left, the pictures of the pages beneath (each given its order from
   script, just before the page's), and the page. Every swipe back has the next
   place to go already beside it. */
html.tab-pager-on .tab-slot[data-tab=compete]{order:10}
html.tab-pager-on .tab-slot[data-tab=stats]{order:20}
html.tab-pager-on #tab-pager[data-mode=back]>.tab-under[data-row]{display:block}
html.tab-pager-on #tab-pager[data-mode=back]>.tab-slot[data-out]{position:absolute;top:0;left:-300%;width:100%;scroll-snap-align:none;pointer-events:none}
/* A tab left with a page still drawn in it (app.js, standIn): the picture of its
   root keeps its place in the row until its own page is there to take it back. */
html.tab-pager-on #tab-pager>.tab-under[data-stand]{display:block}
html.tab-pager-on #tab-pager>.tab-slot[data-stood]{position:absolute;top:0;left:-300%;width:100%;scroll-snap-align:none;pointer-events:none}
/* The tab bar is away while a pushed page is up (body.tabbar-hidden, app.js
   syncTabBar; the glass bar reads the same class, native-navigation.js). The
   page then runs to the foot of the screen: only the safe area is kept clear. */
.native-app.tabbar-hidden:not(.keyboard-open) :is(#dlg-board,#dlg-stats).page-dialog>.dlg{padding-bottom:calc(28px + var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px)))}
/* Where the glass bar is not there, the page's own bar leaves and returns softly. */
:root .native-app:not(.native-glass) .app-nav{transition:opacity .18s ease,transform .24s cubic-bezier(.2,.8,.2,1),visibility 0s}
:root .native-app.tabbar-hidden:not(.tabbar-returning):not(.native-glass) .app-nav{opacity:0;visibility:hidden;pointer-events:none;transform:translateX(-50%) translateY(14px);transition:opacity .14s ease,transform .18s ease,visibility 0s linear .18s;-webkit-backdrop-filter:none;backdrop-filter:none;view-transition-name:none}
@media (prefers-reduced-motion:reduce){:root .native-app:not(.native-glass) .app-nav,:root .native-app.tabbar-hidden:not(.tabbar-returning):not(.native-glass) .app-nav{transition:none}}
/* The bar belongs to the app, which the welcome stands in front of: it is not
   drawn over the welcome's own links. (It sits beside the app, not inside it,
   since the tabs became a pager, so hiding the app no longer hid it.) */
#welcome:not([hidden])~.app-nav{display:none!important}
/* Settings in the app is a pushed page too. It lies to the right of a gap its
   own width, in a scroller of its own (app.js, "Settings in the app"): a swipe
   from left to right slides it away over the page it was opened from, which is
   the real page, not a picture. The page carries the paper; the gap shows
   what is underneath. */
.native-app :is(#dlg-account,#dlg-season).back-scroller[open]{display:flex;direction:ltr;overflow:auto hidden;scroll-snap-type:x mandatory;scroll-behavior:auto;overscroll-behavior:none;scrollbar-width:none;background:none}
.native-app :is(#dlg-account,#dlg-season).back-scroller::-webkit-scrollbar{display:none}
.native-app :is(#dlg-account,#dlg-season).back-scroller::backdrop{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}
.native-app :is(#dlg-account,#dlg-season).back-scroller>:is(.back-gap,.back-page){flex:0 0 100%;min-width:0;height:100%;box-sizing:border-box;scroll-snap-align:start;scroll-snap-stop:always}
.native-app :is(#dlg-account,#dlg-season).back-scroller>.back-page{overflow:hidden auto;overscroll-behavior-y:contain;background-color:var(--ground);background-image:linear-gradient(var(--sheet-rule) 1px,transparent 1px),linear-gradient(90deg,var(--sheet-rule) 1px,transparent 1px),linear-gradient(var(--sheet-fine) 1px,transparent 1px),linear-gradient(90deg,var(--sheet-fine) 1px,transparent 1px);background-size:100px 100px,100px 100px,20px 20px,20px 20px}
/* The page's body keeps the box it had as the dialog's own child (launch-pages.css, sheet-you.css). */
#dlg-account>.back-page>.dlg{width:min(100%,720px);margin:0 auto;box-sizing:border-box;padding:calc(12px + var(--safe-area-inset-top,env(safe-area-inset-top))) 24px calc(24px + var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px)));background:none;border:0;border-radius:0;min-height:100%}
@media(max-width:380px){#dlg-account>.back-page>.dlg{padding-inline:18px}}
@media (min-width:760px){:root #dlg-account>.back-page>.dlg{max-width:648px;margin-inline:auto}}
/* Its way back, where a pushed page's always is: a quiet link above the title. */
#dlg-account .settings-back{display:block;align-self:flex-start;min-height:44px;margin:0;padding:8px 0;font-size:.8rem;text-align:left;text-decoration:none;color:var(--es-ink-2,var(--ink-2))}
#dlg-account .settings-back+h2{margin-top:-16px}
/* Design review D-04: as a pushed page Settings takes a pushed page's header too: the title at the size, tracking,
   gutter and height of Stats, Archive and Global standings. It had kept the old sheet's 2.4rem title, a 24px
   gutter and offsets of its own. */
.native-app #dlg-account>.back-page>.dlg{padding-top:calc(10px + var(--safe-area-inset-top,env(safe-area-inset-top,0px)));padding-inline:var(--page-gutter)}
:root .native-app #dlg-account #account-body>.settings-back+h2{margin:-22px 0 5px;font:900 1.5rem/1.8rem var(--display);letter-spacing:.015em}
@media (min-width:760px){:root .native-app #dlg-account>.back-page>.dlg{max-width:664px}}
/* A4. The pane under a segmented control (Today and Streaks on Global standings)
   turns sideways: the board leaving slides out towards the side it lies on and
   the other comes in from its own side, in one movement, while the control's
   thumb slides above it and the rest of the page stands still (view-motion.js,
   turnPane). Each board keeps its own height as it travels: nothing stretches.
   With motion reduced the two cross-fade. */
@supports(view-transition-name:eyeshot-pane){
 :root[data-navigation-direction^=pane] .is-turning{view-transition-name:eyeshot-pane}
 :root[data-navigation-direction^=pane]::view-transition-old(eyeshot-page){display:none}
 :root[data-navigation-direction^=pane]::view-transition-new(eyeshot-page){animation:none}
 ::view-transition-group(eyeshot-pane){animation-duration:.22s;animation-timing-function:cubic-bezier(.3,.7,.2,1)}
 ::view-transition-old(eyeshot-pane),::view-transition-new(eyeshot-pane){height:auto;mix-blend-mode:normal;animation-duration:.22s;animation-timing-function:cubic-bezier(.3,.7,.2,1);animation-fill-mode:both}
 :root[data-navigation-direction=pane-next]::view-transition-old(eyeshot-pane){animation-name:pane-out-left}
 :root[data-navigation-direction=pane-next]::view-transition-new(eyeshot-pane){animation-name:pane-in-right}
 :root[data-navigation-direction=pane-prev]::view-transition-old(eyeshot-pane){animation-name:pane-out-right}
 :root[data-navigation-direction=pane-prev]::view-transition-new(eyeshot-pane){animation-name:pane-in-left}
 @media(prefers-reduced-motion:reduce){
  ::view-transition-group(eyeshot-pane){animation-duration:.14s}
  :root[data-navigation-direction^=pane]::view-transition-old(eyeshot-pane){animation:pane-fade-out .14s ease both}
  :root[data-navigation-direction^=pane]::view-transition-new(eyeshot-pane){animation:pane-fade-in .14s ease both}
 }
}
@keyframes pane-out-left{to{transform:translateX(-100vw)}}
@keyframes pane-in-right{from{transform:translateX(100vw)}}
@keyframes pane-out-right{to{transform:translateX(100vw)}}
@keyframes pane-in-left{from{transform:translateX(-100vw)}}
@keyframes pane-fade-out{to{opacity:0}}
@keyframes pane-fade-in{from{opacity:0}}
