/* THE WEB SHELL (WEB_SHELL_SPEC.md 3.1, 3.2). Web only: the app never loads this file (it is not in
   presync, and only the web's copies of index.html and trivia.html link it: scripts/web-shell.mjs).

   Desktop (1024px and up): one dark green sidebar, 264px, fixed at the left of every page; the app's
   screens sit in the space beside it and its own tab bar steps aside (the sidebar carries the same
   six tabs). Phone and tablet: the sidebar is not drawn; the app's tab bar is the menu, as in the app. */

:root { --zs-w: 264px; --zs-bg: #12403A; --zs-deep: #0A2825; --zs-cream: #FFF9F0; --zs-ink: #E6F1EC; --zs-soft: #8FB9AD; }

.zb-side { display: none; }

@media (min-width: 1024px) {
  html.zb-web .zb-side {
    display: flex; flex-direction: column; gap: 16px;
    position: fixed; left: 0; top: 0; bottom: 0; width: var(--zs-w); z-index: 300;
    box-sizing: border-box; padding: 22px 14px 0; overflow: hidden;
    background: var(--zs-bg); color: var(--zs-ink);
    font-family: var(--font-ui, Inter, system-ui, sans-serif);
    -webkit-font-smoothing: antialiased;
  }
  /* The app's screens move over by the sidebar's width. index.html's body is a centred flex column
     and trivia.html's screens are a centred 480px column, so padding the body re-centres both in
     the space that is left. */
  html.zb-web body { padding-left: var(--zs-w) !important; box-sizing: border-box; }
  /* The sidebar IS the tab bar on a desktop. */
  html.zb-web .th-tabbar { display: none !important; }
  html.zb-web body.th-app-shell .th-main { padding-bottom: 40px; }

  /* ONE RULE FOR EVERYTHING THAT COVERS THE WINDOW (George, 2026-11-19, after the Netlify preview: avatars
     flying to the wrong pills, the bloom and the intro full screen with no sidebar, the board off centre).
       1. The sidebar never goes. Many layers hide <body> while they are up (the WKWebView guard, CLAUDE.md
          UI rules) and the sidebar is in <body>, so it is made visible on its own: visibility is inherited
          but a child may set it back.
       2. An app SCREEN or ANIMATION that fills the window in the app fills the COLUMN here: it starts at the
          sidebar's edge, so what is centred in it is centred in the column, as everything else is.
       3. A FLIGHT LAYER does not move. Its clones are placed at window coordinates (getBoundingClientRect),
          so a flight layer moved 264px lands every clone 264px wrong (the face-off's faces did exactly that).
          Transparent and full window: #cd-fo-flylayer, #sfx-gateflight, #occfx, .ob-fly, the lifted pills.
       4. A SHEET is a modal: a card centred on the column over the dimmed window (below, "SHEETS").
     tests/e2e/web-shell.e2e.test.mjs "everything that covers the window" holds each kind to its rule. */
  html.zb-web .zb-side { visibility: visible !important; }
  html.zb-web #countdown-overlay,
  html.zb-web #still-there,
  html.zb-web #onboarding-overlay,
  html.zb-web .t-results-loading,
  html.zb-web .tint-overlay,
  html.zb-web .sfx-overlay,
  html.zb-web .zl-layer,
  html.zb-web .lb-overlay,
  html.zb-web #archive-overlay,
  html.zb-web .zb-overlay,
  html.zb-web #prof-overlay,
  html.zb-web #lrecap-overlay,
  html.zb-web .trc-overlay,
  /* The launch splash too (QA pass: centred on the window, it jumped 132px into the intro and round that
     follow it in the column). After the front page, nothing moves sideways again. */
  html.zb-web #zb-splash { left: var(--zs-w) !important; }
  html.zb-web.zb-play .trc-bar { left: var(--zs-w) !important; }
  /* The pills carried from Home's rung into the round's countdown are centred on the COLUMN, where the
     countdown's own pill is (launch.js liftPill, trivia.html's head script #zb-launch-pill). Inline styles,
     hence !important. */
  html.zb-web #zb-launch-pill { left: calc(50% + var(--zs-w) / 2) !important; }
  html.zb-web .zl-flypill { left: calc(50% + var(--zs-w) / 2 - 64px) !important; }
  /* The face-off's and the loading screen's Back sits at the left of the question's own lane (640px), not at
     the column's far edge (QA pass: alone at x 278 in a 1176px column). */
  html.zb-web.zb-play .countdown-back { left: max(14px, calc(50% - 320px)) !important; }

  /* THE EXPLAINERS (NOTES, notes.js) on a desktop (follow-ups 2026-11-20): the sentence and "Tap to continue" are
     centred on the COLUMN, not the window, and the sentence sits on the veil's own teal, solid, so a wide page's
     cards and boards (dimmed, not gone) never read through it. The veil and its hole keep window coordinates. */
  html.zb-web .zbn .zbn-tx { left: var(--zs-w) !important; background: #12403A; padding: 18px 22px 20px;
    border-radius: 16px; box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.55); box-sizing: border-box; max-width: 472px; }
  html.zb-web .zbn .zbn-tap { left: var(--zs-w) !important; }

  /* Spec 3.1: a sub page's back is the app's plain arrow as a ROUND button, BESIDE the title (not at the far
     left of a centred title). The scene header's own round button is unchanged. */
  html.zb-web .th-subhead:not(.th-scenehead) .th-subhead-back {
    border-radius: 50%; background: var(--surface, #FFFCF7); border: 1.5px solid var(--rule); opacity: 1; color: var(--text); }
  html.zb-web .th-subhead:not(.th-scenehead) .th-subhead-center { text-align: left; padding-left: 4px; }
  html.zb-web .th-subhead:not(.th-scenehead) .th-subhead-back:hover { background: var(--bg); }
  /* ‹ › on every scrolling row (webshell.js _pagers). */
  .zs-pager { position: absolute; z-index: 60; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--rule);
    background: var(--surface, #FFFCF7); color: var(--text); display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px -6px rgba(31, 26, 20, 0.35); cursor: pointer; padding: 0; }
  .zs-pager:hover { background: var(--bg); }
  .zs-pager[hidden] { display: none; }

  /* "Can your friends beat N?" (trivia.html _trcShareCard): on a desktop its heading and lines sit LEFT, by the
     cards; a phone keeps it centred, as 2.6.83 shipped it (George, 2026-11-19). */
  html.zb-web .t-schal-txt { text-align: left; }
  html.zb-web .t-schal-who { justify-content: flex-start; }
  html.zb-web .t-schal-who > span:last-child { text-align: left; }

  /* SHEETS (rule 4). Every sheet on a desktop is the same thing: a card, centred on the COLUMN (the
     layer's padding-left is the sidebar's width), over the whole window dimmed, sidebar included, with the
     page behind it still there. In the app some are bottom sheets and some full screen (the sign-up gate,
     the challenge card); a phone-width window keeps exactly that. One card size, one corner, one shadow. */
  html.zb-web .ps-sheet,
  html.zb-web #t-confirm-backdrop,
  html.zb-web #zb-share:not(.zbs-full),
  html.zb-web .zb-confirm,
  html.zb-web #iap-paywall-overlay,
  html.zb-web .pr-overlay,
  html.zb-web .lb-psheet,
  html.zb-web #dc-invite-overlay {
    padding-left: var(--zs-w) !important; box-sizing: border-box; align-items: center !important; justify-content: center !important;
    /* No side padding of its own on the right: a layer's phone padding (the paywall's 14px, the player
       sheet's 12px) put its card that much left of the column's centre (follow-ups 2026-11-20). */
    padding-right: 0 !important;
  }
  html.zb-web .ps-sheet .ps-card,
  html.zb-web #t-confirm-backdrop .t-confirm,
  html.zb-web #zb-share:not(.zbs-full) .zbs-sheet,
  html.zb-web .pr-overlay .pr-sheet,
  html.zb-web .lb-psheet .lb-psheet-card,
  html.zb-web #iap-paywall-overlay > *,
  html.zb-web #dc-invite-overlay .dc-invite-card {
    border-radius: 20px !important; max-height: calc(100vh - 48px); overflow-y: auto;
    box-shadow: 0 24px 60px -18px rgba(10, 20, 18, 0.5) !important;
  }
  /* The full-screen ones in the app (the sign-up gate, the challenge card) become the same card: a dimmed
     window instead of their opaque page, their content in a card of the gate's own width and height. */
  html.zb-web .ps-sheet.ps-gate { background: transparent !important; }
  html.zb-web .ps-sheet.ps-gate .ps-backdrop { display: block !important; opacity: 1 !important; }
  html.zb-web .ps-sheet.ps-gate .ps-card { height: auto !important; }
  html.zb-web #dc-invite-overlay .dc-invite-card { background: var(--bg, #FFF9F0) !important; }
  /* Their identity sits a third of the way down a phone screen (16vh above it); in a card it sits at the
     card's top, under its close, with the card as tall as what it holds (QA pass: a 250px empty band). */
  html.zb-web .ps-sheet.ps-gate .ps-gate-icon,
  html.zb-web #dc-invite-overlay .dc-inv-av { margin-top: 8px !important; }
  html.zb-web .ps-sheet.ps-gate .ps-track { margin-top: 20px !important; }
  /* ONE dim, one width, centred contents: the same card whichever sheet it is (QA pass: Leave round? was a
     lighter veil than the sign-up, the sign-in 480 wide against the sign-up's 460, its words 11px left). */
  html.zb-web .ps-sheet .ps-backdrop,
  html.zb-web .zbs-backdrop,
  html.zb-web .zb-confirm-dim { background: rgba(31, 26, 20, 0.5) !important; }
  html.zb-web #t-confirm-backdrop,
  html.zb-web #dc-invite-overlay,
  html.zb-web .pr-overlay,
  html.zb-web .lb-psheet,
  html.zb-web #iap-paywall-overlay { background: rgba(31, 26, 20, 0.5) !important; }
  html.zb-web .ps-sheet .ps-card,
  html.zb-web #t-confirm-backdrop .t-confirm,
  html.zb-web #zb-share:not(.zbs-full) .zbs-sheet,
  html.zb-web #dc-invite-overlay .dc-invite-card { max-width: 460px !important; }
  html.zb-web .ps-sheet:not(.ps-gate) .ps-card { padding-left: 44px !important; }
  /* ONE LAYOUT for the sign-up and the sign-in (follow-ups 2026-11-20: the gate had its × top-left, a cream
     ground and 22px sides; the sign-in its × top-right, the surface and 44px): the gate takes the sign-in's.
     Its back chevron (opened from a card, or the email step) stays top-left, where Back always is. */
  html.zb-web .ps-sheet.ps-gate .ps-card { background: var(--surface, #FFFCF7) !important; padding: 28px 44px 22px !important; }
  html.zb-web .ps-sheet.ps-gate:not(.ps-has-back):not(.ps-email-expanded) .ps-gate-x {
    position: absolute !important; top: 8px; right: 8px; left: auto; margin: 0 !important; }
  /* The paywall's card is the same card: 460 wide, centred on the column (its own 14px sides put it 7px left). */
  html.zb-web #iap-paywall-overlay > * { width: 100% !important; max-width: 460px !important; box-sizing: border-box; }
  /* A card is not dragged: the bottom sheet's handle stays on the phone (the growth asks' too, 2026-11-20:
     "Start a league" read as a phone sheet at the foot of the round end). */
  html.zb-web #zb-share:not(.zbs-full) .zbs-grab,
  html.zb-web .pr-overlay .pr-grab { display: none !important; }
  html.zb-web .pr-overlay .pr-sheet { padding-bottom: 22px !important; }
  /* The page behind a sheet stays: these layers hide <body> in the app (a full-screen sheet has nothing
     behind it to show), and a modal is a card over the page it was opened on. */
  html.zb-web:has(.ps-sheet.active) body,
  html.zb-web:has(#zb-confirm) body,
  html.zb-web:has(#dc-invite-overlay) body,
  html.zb-web:has(.pr-overlay.active) body { visibility: visible !important; }
  /* The question's bar (proximity.css, pinned by transform: only its box moves here) spans the space
     beside the sidebar, its lane at the question's own width (canvas PlayA: 640px). */
  html.zb-web.zb-play .proximity-wrap { left: var(--zs-w) !important;
    /* From the column's width, not 100%: a fixed box's percentage padding is the WINDOW's, which made the lane 376px. */
    padding-left: max(12px, calc((100vw - var(--zs-w) - 640px) / 2)); padding-right: max(12px, calc((100vw - var(--zs-w) - 640px) / 2)); }
  html.zb-web.zb-play .screen { min-height: calc(100vh - 96px); }
  /* THE QUESTION AT PLAYA'S WIDTH (George, 2026-11-20: "the questions/timer bar look a tad wider, and the progress is
     top right"): the question screen takes the 640px lane its bar already has (640 + the screen's 16px sides), and the
     ten dots sit at the right of the top row, the back arrow at its left. One column of answers, as PlayA draws them. */
  html.zb-web.zb-play #screen-game { max-width: 672px; }
  html.zb-web.zb-play #screen-game .t-dots { justify-content: flex-end; }

  /* ── A FRIEND'S PROFILE (canvas ScrProfile): who they are, their stats and reactions on the left; head to
     head and topics on the right. profile.js's overlay, its body in two columns (webshell.js profColumns: every web page, not the Profile tab's alone). */
  html.zb-web .prof-overlay.wt-prof .prof-header { border: 0; padding: 44px 0 0; width: 100%; max-width: 1120px; margin: 0 auto; box-sizing: border-box; padding-left: 56px; padding-right: 56px; }
  html.zb-web .prof-overlay.wt-prof .prof-back { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--rule); background: var(--surface); opacity: 1; }
  /* The plain chevron every desktop sub page's round back has (spec 3.1), not the overlay's long arrow. */
  html.zb-web .prof-overlay.wt-prof .prof-back svg { display: none; }
  html.zb-web .prof-overlay.wt-prof .prof-back::before { content: ''; width: 9px; height: 9px; margin-left: 4px; border-left: 2.2px solid currentColor; border-bottom: 2.2px solid currentColor; transform: rotate(45deg); }
  html.zb-web .prof-overlay.wt-prof .prof-body { display: grid; grid-template-columns: 390px minmax(0, 1fr); gap: 24px; align-items: start; max-width: 1120px; width: 100%;
    margin: 0 auto; padding: 24px 56px 48px; box-sizing: border-box; }
  html.zb-web .wt-prof-l { background: var(--surface); border: 1.5px solid var(--rule); border-radius: 20px; padding: 28px 24px; display: flex; flex-direction: column; align-items: center; }
  html.zb-web .wt-prof-l > .prof-stats { align-self: stretch; }
  html.zb-web .wt-prof-r { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  html.zb-web .wt-prof-r > :not(:empty) { background: var(--surface); border: 1.5px solid var(--rule); border-radius: 20px; padding: 24px 26px; margin: 0; }

  /* ── YOUR ANSWERS and COMPARE (canvas ScrAnswers, ScrCompare): the app's question cards two across, the
     day's five dots above them (the round switcher, decision 3) at the left, under the title. */
  html.zb-web .as-wrap .as-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  /* The loading blocks take the cards' own shape and grid, so a round switch fills in place (the app draws three). */
  html.zb-web .as-wrap .as-list > .as-skel { height: 300px; margin: 0; border-radius: 20px; }
  html.zb-web .as-wrap .as-list > .as-skel:nth-child(3) { display: none; }
  html.zb-web .as-wrap .as-rail { justify-content: flex-start; align-items: center; gap: 10px; }
  html.zb-web .as-wrap .as-rail::before { content: 'Rounds'; font-weight: 700; font-size: 0.94rem; color: var(--muted); margin-right: 6px; }
  html.zb-web .as-wrap .as-toggles { justify-content: flex-start; }

  html.zb-web .prof-tp-row.prof-tp-fixed { cursor: default; }
  html.zb-web .prof-tp-row.prof-tp-fixed:hover { background: none; }
  /* THE BOARD ON A DESKTOP (leaderboard.js _wide / _sideHtml; George, 2026-11-21: a topic's board opened "a mobile
     version of the leaderboard, not the desktop version with filters on the right"). Wherever the board opens over
     the column, it is laid out as the Board tab is: a serif title over the board in a card, its filters ONE card on
     the right. Not when it is docked in a page (.lb-docked keeps its own layout). */
  html.zb-web #lb-overlay.active:not(.lb-docked) {
    display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-rows: auto auto minmax(0, 1fr);
    grid-template-areas: "head head" "tick ." "main side"; column-gap: 24px; align-content: stretch;
    padding: 28px max(40px, calc((100vw - var(--zs-w) - 1120px) / 2)) 24px; box-sizing: border-box;
  }
  html.zb-web #lb-overlay:not(.lb-docked) .lb-header { grid-area: head; max-width: none; width: auto; margin: 0 0 22px; padding: 0; border: 0;
    display: flex; flex-direction: row; align-items: center; gap: 14px; }
  html.zb-web #lb-overlay:not(.lb-docked) .lb-header-center { text-align: left; align-items: flex-start; flex: 1; min-width: 0; }
  html.zb-web #lb-overlay:not(.lb-docked) .lb-header-name { font-family: var(--font-display); font-weight: 700; font-size: 2.75rem; line-height: 1.08;
    letter-spacing: -0.01em; text-transform: none; color: var(--text); }
  html.zb-web #lb-overlay:not(.lb-docked) .lb-header-sub { font-size: 1rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); margin-top: 4px; }
  html.zb-web #lb-overlay:not(.lb-docked) .lb-nav-btn { position: static; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--rule);
    background: var(--surface); opacity: 1; flex: none; }
  html.zb-web #lb-overlay:not(.lb-docked) #lb-friends-btn { display: none; }
  html.zb-web #lb-overlay:not(.lb-docked) .lb-ticker { grid-area: tick; max-width: none; margin: 0 0 12px; }
  html.zb-web #lb-overlay:not(.lb-docked) .lb-frame { grid-area: main; max-width: none; width: auto; margin: 0; min-height: 0;
    background: var(--surface); border: 1.5px solid var(--rule); border-radius: 20px; box-shadow: 0 14px 34px -18px rgba(31, 26, 20, 0.24); padding: 18px 22px; }
  html.zb-web #lb-overlay:not(.lb-docked) .lb-filter-bar.lb-side { grid-area: side; align-self: start; display: block !important; width: auto; max-width: none; margin: 0;
    background: var(--surface); border: 1.5px solid var(--rule); border-radius: 20px; box-shadow: 0 14px 34px -18px rgba(31, 26, 20, 0.24); padding: 22px 24px; }
  html.zb-web #lb-overlay .lb-side-lab { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
  html.zb-web #lb-overlay .lb-side-lab:first-child { margin-top: 0; }
  html.zb-web #lb-overlay .lb-side-list { display: flex; flex-direction: column; gap: 2px; }
  html.zb-web #lb-overlay .lb-side-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg); border: 1px solid var(--rule); }
  html.zb-web #lb-overlay .lb-side-it { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 12px; border: 1.5px solid transparent;
    background: none; cursor: pointer; font: 600 0.94rem var(--font-ui); color: var(--text); text-align: left; }
  html.zb-web #lb-overlay .lb-side-it:hover { background: var(--bg); }
  html.zb-web #lb-overlay .lb-side-list .lb-side-it.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); color: var(--accentDeep, #16705E); }
  html.zb-web #lb-overlay .lb-side-seg .lb-side-it { justify-content: center; padding: 9px 6px; color: var(--muted); }
  html.zb-web #lb-overlay .lb-side-seg .lb-side-it.on { background: var(--surface); color: var(--accentDeep, #16705E); font-weight: 700; box-shadow: 0 2px 6px -2px rgba(31, 26, 20, 0.2); }
  html.zb-web #lb-overlay .lb-side-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; }
  /* Share & Challenge (a round's board): under the filters, not pinned across the window's foot. */
  html.zb-web #lb-overlay:not(.lb-docked) .lb-share-row { position: static; grid-area: side; align-self: end; max-width: none; margin: 0;
    background: none; border: 0; padding: 0; }

  /* The strip over the round (canvas PlayA: the scene folded to a band, the topic's name and the
     round's pill). Drawn by webshell.js into a box of fixed height, so the question never moves. */
  html.zb-web.zb-play body { padding-top: 0; }
  .zs-strip {
    position: sticky; top: 0; z-index: 5; height: 96px; box-sizing: border-box;
    display: flex; align-items: center; gap: 16px; padding: 0 40px;
    background: var(--zs-bg) center 38% / cover no-repeat;  /* a scene's lit subject sits about a third of the way down */ color: var(--zs-cream);
    box-shadow: inset 0 0 0 2000px rgba(10, 40, 37, 0.45);
    font-family: var(--font-ui, Inter, system-ui, sans-serif);
  }
  /* The round end names the round itself (ROUNDEND's head): the strip steps aside there, so the name is not said twice. */
  html.zb-web.zb-play body:has(#screen-results.active) .zs-strip { display: none; }
  /* …and it is there from the round page's FIRST FRAME, filled in before it (scripts/web-shell.mjs stripFill;
     George, 2026-11-21: the scene "goes away whilst the ladder animates, then reappears as the face off happens").
     The ladder, the face-off and the questions all happen under it. The face-off (and Still there?, its own
     backdrop) starts under it, so it never covers it. */
  /* THE PAGE'S SCENE FOLDS INTO IT: a page's Play shrinks its scene onto exactly this box before it leaves
     (webshell.js foldInto), so the round opens with the strip already where the scene ended. */
  html.zb-web.zb-play #countdown-overlay,
  html.zb-web.zb-play #still-there,
  html.zb-web.zb-play .zl-host { top: 96px !important; }   /* the launch's ladder (launch.js), as the face-off it lands in */
  .zs-strip-name { font-family: var(--font-display, Fraunces, serif); font-weight: 800; font-size: 1.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .zs-strip-pill { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px;
    background: rgba(255, 249, 240, 0.14); border: 1px solid rgba(255, 249, 240, 0.25); font-size: 0.88rem; font-weight: 700; }
  .zs-strip-pill i { width: 18px; height: 18px; border-radius: 50%; background: var(--c, #5C9F6E); }
}
@media (max-width: 1023.98px) { .zs-strip { display: none; } }
html:not(.zb-web) .zs-strip { display: none; }

/* The hand-off from the front page's Play to the round (/play?play=1, the route script in scripts/web-shell.mjs):
   the page stays the plain cream the round's page opens on (a ?play= entry skips the app's splash, so a teal
   hold cut hard to the round's cream; QA pass, 2026-11-19). */
html.zs-handoff { background: #FFF9F0; }
html.zs-handoff body { visibility: hidden !important; }
html.zs-handoff #zb-splash { visibility: visible !important; }

/* "Swipe up to continue" under the streak bloom (streak_celebrate.js) is the app's: on the web there is
   nothing to swipe on a desktop, and the screen moves on by itself (George, 2026-11-19). */
html.zb-web #sfx-grab { display: none !important; }

/* ── The sidebar's pieces ─────────────────────────────────────────────────── */
.zb-side a { color: inherit; text-decoration: none; }
.zb-side a:focus-visible { outline: 2px solid var(--zs-cream); outline-offset: 2px; }
.zs-logo { display: flex; align-items: center; gap: 10px; padding: 0 8px; color: var(--zs-cream) !important;
  font-family: var(--font-display, Fraunces, serif); font-weight: 800; font-size: 1.3rem; }
.zs-logo-ic { flex: none; width: 30px; height: 30px; border-radius: 8px; background: url(/icon-192.png) center / cover no-repeat; }
.zs-main { display: flex; flex-direction: column; gap: 8px; }

.zs-daily { display: block; padding: 12px 14px 14px; border-radius: 16px; background: var(--zs-deep); }
.zs-daily-hd { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.19rem; color: var(--zs-cream); }
.zs-daily-k { flex: none; }
/* The streak on the box's header line (HOME_SHELVES_SPEC decision 13). */
.zs-daily-st { margin-left: auto; font-size: 0.82rem; font-weight: 700; color: #F4D58A; white-space: nowrap; }
.zs-daily-st[hidden] { display: none; }
/* Each game: its icon, its name, its five-dot mini ladder. */
.zs-games { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.zs-game { display: flex; align-items: center; gap: 8px; min-width: 0; }
.zs-game[hidden] { display: none; }
.zs-gic { flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: var(--zs-cream);
  display: flex; align-items: center; justify-content: center; }
.zs-gname { flex: 1; min-width: 0; font-size: 0.88rem; font-weight: 700; color: var(--zs-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zs-dots { flex: none; display: flex; gap: 4px; height: 13px; }
.zs-dot { flex: none; width: 13px; height: 13px; box-sizing: border-box; border-radius: 50%;
  border: 1.5px dashed color-mix(in srgb, var(--c) 70%, transparent); background: var(--zs-deep); }
.zs-dot[hidden] { display: none; }
.zs-dot.next { border: none; background: var(--c); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 40%, transparent); }
.zs-dot.done { border: none; background: var(--c); box-shadow: 0 1.5px 0 rgba(0, 0, 0, 0.3); }
.zs-dot.locked { opacity: 0.55; }

.zs-topics { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 16px; font-weight: 800; font-size: 1.19rem; color: var(--zs-ink); }
.zs-topics:hover { background: rgba(255, 255, 255, 0.07); }
.zs-topics > span:first-of-type { flex: 1; }
.zs-count { min-width: 22px; height: 22px; padding: 0 7px; box-sizing: border-box; border-radius: 999px; background: #1F8A75;
  border: 1px solid #4FB8A1; color: #fff; font-size: 0.82rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }

/* The page you are on is cream. */
.zs-daily.on { background: var(--zs-cream); }
.zs-daily.on .zs-daily-hd { color: var(--zs-bg); }
.zs-daily.on .zs-gname { color: #2B5A52; }
.zs-daily.on .zs-gic { background: #E3F2EE; color: #16705E; }
.zs-daily.on .zs-daily-st { color: #8A6512; }
.zs-daily.on .zs-dot:not(.next):not(.done) { background: var(--zs-cream); }
.zs-topics.on { background: var(--zs-cream); color: var(--zs-bg); }

/* Everything personal: one box, the sidebar's remaining height, so filling it moves nothing else. */
.zs-personal { flex: 1 1 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 16px; }
.zs-sec { display: flex; flex-direction: column; gap: 2px; }
.zs-sec-hd { padding: 0 10px 2px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--zs-soft); }
.zs-row { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; height: 44px; box-sizing: border-box; }
.zs-row:hover { background: rgba(255, 255, 255, 0.07); }
.zs-row-ic { flex: none; width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, 0.10);
  display: flex; align-items: center; justify-content: center; font-size: 1rem; position: relative; }
.zs-row-ic.disc { border-radius: 50%; color: #fff; font-size: 0.82rem; font-weight: 700; background-size: cover; background-position: center; }
.zs-row-em { position: absolute; right: -5px; bottom: -4px; width: 18px; height: 18px; border-radius: 6px; background: var(--zs-cream);
  border: 1.5px solid var(--zs-bg); display: flex; align-items: center; justify-content: center; font-size: 0.82rem; line-height: 1; }
.zs-row-txt { flex: 1; min-width: 0; }
.zs-row-nm { display: block; font-size: 0.94rem; font-weight: 600; color: var(--zs-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zs-row-sub { display: block; font-size: 0.82rem; color: var(--zs-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.zs-join { padding: 16px; border-radius: 16px; background: var(--zs-deep); display: flex; flex-direction: column; gap: 10px; }
.zs-join-hd { font-family: var(--font-display, Fraunces, serif); font-weight: 800; font-size: 1.12rem; color: var(--zs-cream); line-height: 1.2; }
.zs-join ul { list-style: none; padding: 0; margin: 2px 0 4px; display: flex; flex-direction: column; gap: 9px; }
.zs-join li { display: flex; gap: 9px; align-items: center; font-size: 0.88rem; line-height: 1.35; color: #E6F1ED; }
.zs-join li::before { content: ''; flex: none; width: 14px; height: 8px; margin-top: -3px; border-left: 2px solid #7FD3BE; border-bottom: 2px solid #7FD3BE; transform: rotate(-45deg); }
.zs-join-btn { display: flex; justify-content: center; padding: 12px; border-radius: 12px; background: var(--zs-cream); color: var(--zs-bg);
  border: none; font: inherit; font-weight: 700; font-size: 0.94rem; box-shadow: 0 3px 0 #000; cursor: pointer; }
.zs-join-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #000; }
.zs-join-in { text-align: center; font-size: 0.88rem; color: #CFE3DC; }
.zs-join-in button { background: none; border: none; padding: 0; font: inherit; color: var(--zs-cream); font-weight: 700; cursor: pointer; }
/* A laptop's shorter window (George, 2026-11-21: This season and Trending AND the card, together): the card's
   list and padding close up a little, so a row of each list and the whole card fit a 1366x768 screen. */
@media (max-height: 820px) {
  .zs-join { padding: 13px 14px; gap: 8px; }
  .zs-join ul { gap: 6px; margin: 0 0 2px; }
  .zs-join-btn { padding: 10px; }
}
/* A 720px-tall window: the card keeps its heading, Sign up and Sign in, and lets its three lines go first. */
@media (max-height: 740px) {
  .zs-join ul { display: none; }
}

.zs-foot { margin: 0 -14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; padding: 8px 10px 12px;
  background: var(--zs-deep); border-top: 1px solid rgba(255, 255, 255, 0.10); }
.zs-tab { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 9px 2px; border-radius: 12px;
  font-size: 0.82rem; font-weight: 600; color: #CFE3DC !important; }
.zs-tab:hover { background: rgba(255, 255, 255, 0.07); color: #fff !important; }
.zs-tab.on { background: var(--zs-cream); color: var(--zs-bg) !important; }
.zs-tab-ic { position: relative; display: flex; height: 22px; align-items: center; }
.zs-badge { position: absolute; top: -6px; right: -10px; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 999px;
  background: #1F8A75; border: 1px solid #4FB8A1; color: #fff; font-size: 0.82rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
/* The streak count in a pill, the unread badge's shape in the streak's gold (George, 2026-11-21: "130 in gold" was
   hard to read over the flame). Dark ink on gold reads on the dark bar and on the cream of the tab you are on. */
.zs-streak { position: absolute; top: -9px; left: 7px; min-width: 20px; height: 19px; padding: 0 5px; box-sizing: border-box; border-radius: 999px;
  background: #E8B547; border: 1px solid #F2C77A; color: #1F1A14; font-size: 0.82rem; font-weight: 800; line-height: 1;
  display: flex; align-items: center; justify-content: center; white-space: nowrap; }
.zs-tab.on .zs-streak { border-color: #C7952F; }
.zs-me { display: flex; }
.zs-me .zs-av { width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 0.82rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; }
.zb-side [hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) { .zb-side * { transition: none !important; } }

/* An app screen on its way to its page (webshell.js _leavePhone): never painted, at ANY web width (George,
   2026-11-21: "Only the native iOS app drops SEO marketing copy"; the first version hid it on a desktop only). */
html.zb-web.zs-gone #th-main { visibility: hidden !important; }
