/* =============================================================================
   CFB Planner on a phone.

   Loaded only at 720px and narrower (media attribute on its <link>), so none
   of this can reach desktop. styles.css stays the source of the look — the
   field, the amber, the type — and this file rearranges it for one hand:

     - a slim header: the brand, then search · Filters · you in one row, and on
       the game views a row of chips (Weeks · Month · List · Slate · Today);
     - a tab bar at the thumb's end of the screen: Games · Top 25 · Forums ·
       Inbox (Picks when signed out) · More;
     - panels as sheets: More and Filters slide up from the bottom, every other
       dialog fills the screen with its title and Close pinned to the top.

   Layout checks: web/__layout__ (npm run test:layout).
   ============================================================================= */

:root{
  --tabbar-h:60px;
  --safe-b:env(safe-area-inset-bottom, 0px);
  --gutter:14px;
}

html,body{overflow-x:clip}
body{padding-bottom:calc(var(--tabbar-h) + var(--safe-b))}

/* ------------------------------------------------------------- the masthead
   The brand, small. The season tallies are desktop furniture. */
.mast-in{padding:12px var(--gutter) 6px;gap:10px}
.brand-mark{height:26px;filter:drop-shadow(0 0 12px rgba(255,194,71,.2))}
.brand-tag{display:none}
.brand-row{gap:10px}
.brand-season{padding-left:10px;gap:2px}
.brand-season b{font-size:15px;letter-spacing:.5px}
.brand-season i{font-size:7px;letter-spacing:2.4px}
.tally{display:none}

/* ------------------------------------------------------------- the top bar */
/* Solid rather than frosted on a phone: a backdrop-filter makes the bar the
   frame for anything position:fixed inside it, and the Filters sheet (which
   lives inside it) would open at the top of the page instead of the bottom. */
.controls{backdrop-filter:none;-webkit-backdrop-filter:none;background:var(--f1)}
.bar{
  display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;
  gap:8px;padding:8px var(--gutter);
}
.search-wrap{grid-column:1;grid-row:1;max-width:none;min-width:0}
.search-wrap input{height:40px;font-size:16px} /* 16px: iOS zooms into anything smaller */
.search-icon{display:none}
.search-wrap input{padding-left:12px}
#btnFilters{grid-column:2;grid-row:1;height:40px}
/* The desktop's cluster of you dissolves: its parts are the grid's own. */
.bar-you{display:contents}
#identity{grid-column:3;grid-row:1;justify-self:end}
#identity .btn{min-height:40px}
.acct-btn{height:40px}
.acct-faces,.acct-face{width:32px;height:32px}

/* Everything the tab bar and More now hold. */
.bar-gap,.dock,#btnCalendars,#btnModeration,#btnHelp,#btnDiscordGuide,.identity-note{display:none !important}

/* The game views' own row: which view, and Today. Chips scroll sideways inside
   the row (never the page) when they do not all fit. The bar's own .seg only:
   a dialog's tabs (Feeds: Calendar · Discord) are a .seg too, and stay put. */
.bar > .seg{
  grid-column:1 / 3;grid-row:2;display:flex;overflow-x:auto;scrollbar-width:none;
  border:0;background:transparent;gap:6px;border-radius:0;
}
.bar > .seg::-webkit-scrollbar{display:none}
.bar > .seg button{
  flex:none;height:36px;padding:0 14px;border:1px solid var(--line-3);border-radius:var(--r-pill);
  background:var(--f2);font-size:12px;letter-spacing:1.2px;
}
.bar > .seg button + button{border-left:1px solid var(--line-3)}
/* The pill look above outranks the shared pressed style, so the chosen view says amber again here. */
.bar > .seg button[aria-pressed=true]{color:#150f02;background:var(--amber);border-color:var(--amber)}
.bar > .seg :is([data-view="rankings"],[data-view="standings"],[data-view="playoff"],[data-view="picks"],[data-view="predict"],[data-view="teams"]){display:none}
#btnToday{grid-column:3;grid-row:2;height:36px;justify-self:end}
body:not([data-view="week"]):not([data-view="month"]):not([data-view="table"]):not([data-view="slate"]) :is(.bar > .seg,#btnToday){
  display:none;
}

/* ------------------------------------------------------------- the tab bar */
.tabbar{
  position:fixed;left:0;right:0;bottom:0;z-index:50;
  display:grid;grid-auto-flow:column;grid-auto-columns:1fr;
  height:calc(var(--tabbar-h) + var(--safe-b));padding-bottom:var(--safe-b);
  background:rgba(7,12,9,.94);backdrop-filter:blur(16px) saturate(1.3);
  border-top:1px solid var(--line-3);
}
body[data-signed-in="true"] .tab-guest,
body:not([data-signed-in="true"]) .tab-member{display:none}
.tab{
  position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  min-height:var(--tabbar-h);border:0;background:transparent;color:var(--muted);cursor:pointer;
  font:600 10px/1 var(--display);letter-spacing:1.1px;text-transform:uppercase;
  -webkit-tap-highlight-color:transparent;
}
.tab svg{transition:transform .18s}
.tab[aria-current="true"]{color:var(--amber)}
.tab[aria-current="true"]::before{
  content:"";position:absolute;top:0;left:28%;right:28%;height:2px;border-radius:0 0 2px 2px;
  background:var(--amber);box-shadow:0 0 12px rgba(255,194,71,.6);
}
.tab:active svg{transform:scale(.9)}
.tab .pip{position:absolute;top:7px;left:calc(50% + 6px);margin:0}

/* ------------------------------------------------------------- sheets
   Every dialog fills the screen on a phone: title and Close pinned at the
   top, the body scrolling under them. More slides up from the bottom. */
dialog{
  width:100%;max-width:none !important;height:100dvh;max-height:100dvh;margin:0;
  border:0;border-radius:0;inset:0;
}
.dlg-head{position:sticky;top:0;padding-top:calc(12px + env(safe-area-inset-top, 0px))}
.dlg-body{padding-bottom:calc(24px + var(--safe-b))}
.account .profile-block{padding:14px 12px}
.account .draftbar{bottom:calc(-24px - var(--safe-b));margin:22px -20px calc(-24px - var(--safe-b));
  padding:10px 16px calc(10px + var(--safe-b));flex-wrap:wrap}
.account .draftbar .btn{min-height:40px}
.dlg-head .btn{min-height:40px}

dialog.sheet{
  top:auto;bottom:0;height:auto;max-height:86dvh;
  border-radius:18px 18px 0 0;border-top:1px solid var(--line-3);
  animation:sheet-up .22s cubic-bezier(.2,.8,.3,1);
}
dialog.sheet .dlg-head{padding-top:6px}
.sheet-grip{width:38px;height:4px;border-radius:2px;background:var(--line-3);margin:8px auto 2px;flex:none}
@keyframes sheet-up{from{transform:translateY(100%)}}

.more-body{display:grid;gap:8px}
.more-label{margin:6px 0 0;font:600 10.5px/1 var(--display);letter-spacing:2px;text-transform:uppercase;color:var(--amber)}
.more-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.more-item{
  position:relative;display:flex;flex-direction:column;justify-content:center;gap:3px;text-align:left;min-height:64px;padding:12px;
  border:1px solid var(--line-3);border-radius:var(--r-lg);background:var(--f1);color:var(--chalk);
  font:600 14px/1.2 var(--sans);cursor:pointer;
}
.more-item small{font-weight:400;font-size:11.5px;color:var(--muted)}
.more-item:active{background:var(--f3)}
.more-item .pip{position:absolute;top:10px;right:10px;margin:0}
.more-foot{display:grid;gap:8px;margin-top:10px}

/* ------------------------------------------------------------- filters as a sheet */
.filters:not([hidden]){
  position:fixed;left:0;right:0;bottom:0;z-index:70;
  max-height:78dvh;overflow:auto;overscroll-behavior:contain;
  padding:0 var(--gutter) calc(18px + var(--safe-b));
  background:var(--f2);border-top:1px solid var(--line-3);border-radius:18px 18px 0 0;
  box-shadow:0 0 0 100vmax rgba(2,5,3,.72);
  animation:sheet-up .22s cubic-bezier(.2,.8,.3,1);
}
.sheet-head{
  display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:1;
  margin:0 calc(-1 * var(--gutter)) 8px;padding:14px var(--gutter) 10px;background:var(--f2);
  border-bottom:1px solid var(--line-2);
}
.sheet-head b{font:600 15px/1 var(--display);letter-spacing:1.6px;text-transform:uppercase}
.sheet-head .btn{min-height:36px;padding:0 18px}
.filters .chk{min-height:40px;display:flex;align-items:center}
.filters select{height:40px;font-size:16px}

/* ------------------------------------------------------------- page edges */
.wrap{padding:12px var(--gutter) 24px}
.receipt{padding-left:var(--gutter);padding-right:var(--gutter)}
.colophon-in{padding:16px var(--gutter) 24px}

/* The sign-up card sits above the tab bar, not under it. */
.promo{left:10px;right:10px;bottom:calc(var(--tabbar-h) + var(--safe-b) + 10px);width:auto}

@media (prefers-reduced-motion:reduce){
  dialog.sheet,.filters:not([hidden]){animation:none}
}

/* =============================================================================
   The game views
   ============================================================================= */

/* ------------------------------------------------------------- week
   Cards already stack; the day's heading stays in view while its games pass. */
.games{gap:10px}

/* ------------------------------------------------------------- table → rows
   Nine columns cannot fit a phone. Each game becomes a row card: when and the
   channel on top, the two teams below, Discuss and In at the right. Week,
   matchup and venue are the desktop's — they are on the game's card anyway. */
.tscroll{overflow:visible;max-height:none;min-height:0;border:0;border-radius:0}
table{min-width:0;font-size:13px}
thead{display:none}
tbody{display:grid;gap:8px}
tbody tr{
  display:grid;grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"when tv" "away going" "home going";
  column-gap:10px;row-gap:4px;padding:10px 12px;
  background:var(--f2);border:1px solid var(--line);border-radius:var(--r-md);
}
tbody tr td{display:block;padding:0;border:0 !important;background:none !important}
tbody tr td:nth-child(1){grid-area:when}
tbody tr td:nth-child(2){grid-area:when;justify-self:start;margin-left:96px}
tbody tr td:nth-child(3),tbody tr td:nth-child(6),tbody tr td:nth-child(7){display:none}
tbody tr td:nth-child(4){grid-area:away}
tbody tr td:nth-child(5){grid-area:home}
tbody tr td:nth-child(8){grid-area:tv;text-align:right;color:var(--chalk-2)}
tbody tr td.going{grid-area:going;align-self:center;width:auto}
td.cf{padding-left:9px !important;border-left:3px solid var(--gc,#888) !important;font-size:14px}
/* The desktop rings the current month's rows; as cards that is every card. */
tbody tr.thismonth{border-color:var(--line);background:var(--f2)}
tbody tr.live{border-color:var(--amber)}

/* ------------------------------------------------------------- month
   A month that fits: the date, the count, one line of dots. Tap a day to see
   its games (the whole cell is the button). */
.cal .dow{padding:6px 0;font-size:9px;letter-spacing:1px}
.cal .cell{min-height:60px;padding:5px 4px}
.cal .cell .d{font-size:0;gap:0}
.cal .cell .d b{font-size:14px}
.cal .cell .n{top:5px;right:4px;font-size:10px}
.cal .dots{gap:2px;margin-top:6px;padding-right:0;max-height:5px;overflow:hidden}
.cal .dots i{width:5px;height:5px;box-shadow:none}
.cal .dots .plus,.cal .cell .top{display:none}
.month h3{font-size:24px}
.hintline{font-size:11.5px}

/* ------------------------------------------------------------- slate
   The timeline scrolls sideways inside its own box (never the page). The Red
   Zone stacks: each close finish its own full-width row, a thumb's height,
   the score on the left and the clock and channel on the right. */
.sl-title{font-size:20px}
.sl-redzone{flex-direction:column;align-items:stretch;gap:6px;padding:8px}
/* Must-watch: one ticket a row, the number beside it, a thumb's height at least. */
.sl-mw-list{grid-template-columns:minmax(0,1fr);gap:6px}
.sl-mw-game{min-height:56px;padding:9px 12px}
.sl-rz-game{min-height:44px;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:4px 10px}
.sl-rz-game b{flex:1 1 100%;min-width:0}

/* ------------------------------------------------------------- pick'em
   One column: the head, a pill to jump to the standings, then each game as a
   card — its moment over the matchup, the pick bar full width at a thumb's
   height — and the standings after the list. */
.pickem{padding:4px var(--gutter) 28px}
.pk-head{align-items:center;gap:10px 12px;margin-bottom:10px}
.pk-title h2{font-size:24px}
.pk-sub{font-size:12px}
.pk-weeks{order:3;width:100%;justify-content:space-between}
.pk-weeknum{min-width:0;flex:1;font-size:16px}
.pk-step{width:44px;height:44px}
.pk-jump{
  display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border-radius:var(--r-pill);
  border:1px solid var(--line-3);color:var(--ice);font-size:12.5px;text-decoration:none;background:var(--f2);
}
.pk-grid{gap:18px}
.pk-tally{font-size:12.5px}
.pk-row{
  grid-template-columns:minmax(0,1fr);row-gap:8px;padding:12px 12px 2px;margin-bottom:8px;
  border:1px solid var(--line-2);border-radius:var(--r-lg);background:var(--f2);
}
.pk-row:hover{background:var(--f2)}
.pk-meta{padding-top:0}
.pk-day,.pk-time{display:inline}
.pk-time{margin:0 0 0 6px}
/* Sign in to pick: a target a thumb can hit. */
.pb-signin{min-height:32px;padding:0 4px}
/* The pick bar grows to a thumb's height as a whole, so its border wraps the buttons. */
.pk-row .pb-bar{height:44px}
.pk-friends{padding-left:0}
.pk-board{position:static;padding:14px;scroll-margin-top:12px}
.pk-board-head{flex-wrap:wrap}
.pk-join{padding:12px 10px}
.pk-join .btn{min-height:40px}
.pk-scopes button,.pk-period button{min-height:36px}
.pk-rung{padding:10px 6px}
.pk-rung{grid-template-columns:28px minmax(0,1fr) auto;column-gap:8px}
.pk-lock{margin-left:0;min-height:40px;padding:0 14px}

/* ------------------------------------------------------------- a game's page
   One column: the score bug, a row of jump chips that stays in reach while
   the page scrolls, then each section. Tables fill the width. */
.gamepage{padding:4px var(--gutter) 28px}
/* The schedule's phone table becomes a stack of cards (above); a game's small
   tables stay tables. */
.gamepage thead{display:table-header-group}
.gamepage tbody{display:table-row-group}
.gamepage tbody tr{display:table-row;grid-template:none;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.gamepage tbody tr td,
.gamepage tbody tr td:nth-child(n){display:table-cell;grid-area:auto;margin:0;padding:6px 4px;
  border-bottom:1px solid var(--line-2) !important;text-align:right}
.gp-bug{padding:12px 12px 10px}
.gp-lines th,.gp-lines td{padding:5px 4px;font-size:12px}
.gp-lines .gp-total{font-size:22px;width:42px}
.gp-logo{width:28px;height:28px}
.gp-name{font-size:15px}
.gp-jumps{
  display:flex;gap:6px;overflow-x:auto;position:sticky;top:0;z-index:5;margin:12px calc(-1 * var(--gutter)) 0;
  padding:8px var(--gutter);background:var(--f1);border-bottom:1px solid var(--line-2);scrollbar-width:none;
}
.gp-jumps::-webkit-scrollbar{display:none}
.gp-jump{
  flex:none;display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border-radius:var(--r-pill);
  border:1px solid var(--line-3);color:var(--ice);font-size:12.5px;text-decoration:none;background:var(--f2);
}
.gp-grid{gap:4px;margin-top:12px}
.gp-section{scroll-margin-top:64px}
.gp-drive summary{grid-template-columns:70px minmax(0,1fr) auto;padding:10px;min-height:44px}
.gp-plays li{grid-template-columns:58px 38px minmax(0,1fr);gap:8px}
.gp-chart{height:130px}
.gp-chance b{font-size:22px}
.gamelink{min-height:32px}

/* ------------------------------------------------------------- standings and the playoff picture
   One column. The standings stay a table (the schedule's phone rule above
   turns tables into cards), with points and the next game left off. */
.season{padding:6px var(--gutter) 28px}
/* The switch and the name out to the page's edge, where the Top 25 has them;
   the tables keep their inset. */
.season > :is(.season-switch,.season-head){width:auto;margin-inline:calc(-1 * var(--gutter))}
.season-switch{display:flex;width:100%}
.season-switch button{flex:1;min-height:40px}
.st-confs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-left:calc(-1 * var(--gutter));margin-right:calc(-1 * var(--gutter));
  padding:0 var(--gutter)}
.st-confs::-webkit-scrollbar{display:none}
.st-confs button{flex:none;min-height:36px}
.season thead{display:table-header-group}
.season tbody{display:table-row-group}
.season tbody tr{display:table-row;grid-template:none;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.season tbody tr td,
.season tbody tr td:nth-child(n){display:table-cell;grid-area:auto;margin:0;padding:9px 6px;
  border-bottom:1px solid var(--line-2) !important}
.st-table th:nth-child(5),.st-table th:nth-child(6),.st-table th:nth-child(8),
.st-table td:nth-child(5),.st-table td:nth-child(6),.st-table td:nth-child(8){display:none !important}
.st-team{font-size:14px}
/* Five columns in a phone's width: tighter cells, so Streak is not cut off at the edge. */
.st-table th,.st-table td{padding:9px 6px}
.st-place{width:28px}
.st-table thead th{letter-spacing:.06em}
.st-table .st-team{white-space:normal;line-height:1.2}
/* Small phones: the streak goes too, so a long name and both records still fit. */
@media (max-width:360px){
  .st-table th:nth-child(7),.st-table td:nth-child(7){display:none !important}
}
/* The playoff bracket, swiped: the rounds run left to right, edge to edge, each
   column a little narrower than the screen so the next one shows. The round
   chips jump along it and follow the swipe (web/src/playoffBracket.mjs); the
   projected champion leads the page instead of sitting over the title game. */
.po-chips{display:flex;width:100%;margin:0 0 12px}
.po-chips button{flex:1;min-height:36px;padding:0 6px}
.po-scroll{
  --pc:min(236px,calc(100vw - 2 * var(--gutter) - 84px));--pf:240px;
  margin-inline:calc(-1 * var(--gutter));padding-inline:var(--gutter);scroll-padding-inline:var(--gutter);
  scroll-snap-type:x mandatory;scrollbar-width:none;
}
.po-scroll::-webkit-scrollbar{display:none}
.po-tree{padding-inline-end:var(--gutter)}
.po-slot{font-size:13.5px}
.po-champ{display:none}
.po-hero{
  display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto auto;column-gap:14px;align-items:center;
  margin:0 0 14px;padding:14px 16px;border:1px solid var(--amber-2);border-radius:var(--r-lg);
  background:radial-gradient(120% 140% at 0% 50%,rgba(255,194,71,.13),transparent 60%),var(--f2);
}
.po-hero .po-logo{grid-row:1 / 4;margin:0}
.po-hero .po-champ-name{font-family:var(--display);font-size:24px;font-weight:700;letter-spacing:1px;line-height:1.05;text-transform:uppercase;color:var(--chalk)}
.po-field{grid-template-columns:repeat(2,minmax(0,1fr))}
.po-tile{grid-template-columns:18px 30px minmax(0,1fr);column-gap:8px;min-height:64px;padding:8px 10px 8px 6px}
.po-tile .po-logo{width:30px;height:30px}
.po-tile-seed{font-size:18px}
.po-foot{grid-template-columns:minmax(0,1fr);gap:12px}

/* Your own bracket on a phone: the tabs fill the width; the field folds away
   under a button, the bracket swipes like the projection's, and Save stays in
   reach at the bottom while there is something to save. Community's rows are
   cards. */
.bk-tabs{display:flex;width:100%}
.bk-tabs button{flex:1;min-height:40px;padding:0 4px;font-size:11px;letter-spacing:.6px}
/* The challenge's standings: place and points either side, who above how the points came. */
.bk-scope{display:flex;width:100%;overflow-x:auto}
.bk-scope button{flex:none;min-height:40px}
.bk-board-row{grid-template-columns:2em minmax(0,1fr) auto;grid-template-areas:"place who pts" "place detail pts";gap:2px 10px;padding:9px 12px}
.bk-board-row .bk-place{grid-area:place}
.bk-board-row .bk-who{grid-area:who}
.bk-board-row .bk-detail{grid-area:detail}
.bk-board-row .bk-pts{grid-area:pts}
.bk-board-row .bk-champ{display:none}
.bk-empty{padding:18px}
.bk-editor{grid-template-columns:minmax(0,1fr);gap:12px}
.bk-field{position:static;padding:0;border:0;background:none}
.bk-field h3{display:none}
.bk-field-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;padding:0 14px;
  border:1px solid var(--line);border-radius:var(--r-md);background:var(--f2);color:var(--chalk);font:inherit;font-family:var(--display);
  font-size:14px;letter-spacing:1.5px;text-transform:uppercase;cursor:pointer}
.bk-field-toggle small{font-family:var(--sans);font-size:11.5px;letter-spacing:0;text-transform:none;color:var(--muted)}
.bk-field-toggle::after{content:"▾";margin-left:8px;color:var(--muted)}
.bk-editor.field-open .bk-field-toggle::after{content:"▴"}
.bk-editor:not(.field-open) .bk-seeds,.bk-editor:not(.field-open) .bk-picker{display:none}
.bk-seeds,.bk-picker{margin-top:8px;padding:6px 12px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--f2)}
.bk-picker{padding:12px}
.bk-seed{min-height:46px}
.bk-icon{width:40px;height:40px;font-size:16px}
.bk-choices button{min-height:44px}
.bk-bar.is-dirty{position:sticky;bottom:calc(var(--tabbar-h) + var(--safe-b) + 8px);z-index:5;box-shadow:var(--shadow-3)}
.bk-actions{width:100%;margin-left:0}
.bk-actions .btn{flex:1;justify-content:center;min-height:44px}
.bk-vis{flex:1}
.bk-vis button{flex:1;min-height:40px}
.bk-list-head{display:none}
.bk-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"who meta" "champ ff";gap:8px 10px;padding:12px}
.bk-who{grid-area:who}
.bk-champ{grid-area:champ}
.bk-ff{grid-area:ff;justify-self:end}
.bk-meta{grid-area:meta;justify-self:end}
.bk-opened-head h3{font-size:18px}
.bk-opened-head .btn[data-bk-copy]{margin-left:0}

/* ------------------------------------------------------------- the rest
   A phone has no keyboard shortcuts to learn; its help starts with the card. */
.help-keys{display:none}

/* Feeds: a channel's name over its controls, rather than squeezed beside them —
   a connected channel's label is "#channel · Server", and long. */
.feed{flex-direction:column;align-items:stretch;gap:10px}
.feed-controls{justify-content:space-between}
/* Game alerts: each switch on its own line, big enough for a thumb. */
.feed:has(.hookalerts){flex-wrap:nowrap}
.hookalerts{flex:none;flex-direction:column;align-items:stretch;box-sizing:border-box;min-width:0;width:100%}
.hookquiet select{min-height:36px}
.hookalerts label{min-height:40px}
/* Picking the channel: whole rows to tap, and the two buttons a thumb apart. */
.chanpick{padding:12px}
.chanpick-row label{min-height:44px;padding:10px 12px}
.chanpick-actions{flex-direction:column-reverse}
.chanpick-actions .btn{width:100%;min-height:44px}
/* The dialog's two tabs, in its header, kept to one line. */
.dlg-tabs button{padding:6px 10px}
.help-keys + section{margin-top:0;padding-top:0;border-top:0}

/* ------------------------------------------------------------- standalone pages
   /privacy/ and /discord/ load this file too, but have no tab bar. */
body.standalone{padding-bottom:var(--safe-b)}
.guide h1{font-size:32px}
.guide h2{font-size:19px;margin-top:32px}
.guide-cta .btn{flex:1 1 auto;text-align:center;min-height:44px}
.guide-steps > li{padding-left:44px}
.guide-steps > li::before{width:30px;height:30px;font-size:15px}
.guide-faq summary{min-height:44px;display:flex;align-items:center}

/* ------------------------------------------------------------- Season Wrapped
   One tile a row, the year smaller behind the head, the button full width. */
.wrapped{padding:4px var(--gutter) 28px}
.wr-head h2{font-size:26px}
.wr-year{font-size:120px;top:-16px}
.wr-grid{grid-template-columns:minmax(0,1fr);gap:8px}
.wr-value{font-size:32px}
.wr-actions .btn{flex:1 1 100%;justify-content:center;min-height:44px}

/* ------------------------------------------------------------- onboarding tour
   Every card docks at the bottom, above the tab bar, where a thumb is. */
.tour-card,.tour-stage.centred .tour-card{left:8px;right:8px;top:auto;bottom:calc(var(--tabbar-h) + var(--safe-b) + 8px);
  width:auto;transform:none;max-height:calc(100dvh - var(--tabbar-h) - var(--safe-b) - 72px);overflow:auto}
.tour-card h4{font-size:18px}
.tour-card .btn,.tour-skip{min-height:40px}
.tour-chip-slot{left:12px;bottom:calc(var(--tabbar-h) + var(--safe-b) + 10px)}
.tour-chip-go,.tour-chip-x{min-height:40px}

/* The link-problem popup is a short message: a sheet from the bottom with the
   page still above it, not a full screen. */
#linkProblemDialog{height:auto;max-height:80dvh;top:auto;bottom:0;border-top:1px solid var(--amber-2);border-radius:16px 16px 0 0}
#linkProblemDialog .btn{min-height:44px}
