/* ============================================================
   REUSABLE UTILITY CLASSES
   Small, named, single-purpose classes for styling that repeats
   across the markup — use these instead of a one-off inline style.
   ============================================================ */

.hl{color:var(--text)}                /* lift muted text to full brightness for one word/phrase */

/* ---------- Page hero banners ----------
   The designer's banner for each tab, full .wrap width between the
   header and the tabs, as in her mockups. Only the current tab's
   banner shows, driven by the same .menu-rail aria-current state as
   PAGE COLORS in shared.css — no JS. Two versions per tab in
   images/heroes/: -wide (her 1920px, ~3.5:1) and -phone (1200x480,
   2.5:1, a taller crop so it isn't a thin strip at 390px), swapped by
   the <picture> source at 599px; the browser only downloads the one
   it shows, and only once its tab opens (loading="lazy" on every
   banner but Missions, the default tab). Her border, glow and logo
   are baked into the images (transparent outside the frame). */
.page-hero{display:none; margin-bottom:28px}
.page-hero img{display:block; width:100%; height:auto}
body:has(.menu-rail [aria-current="true"][data-menu="missions"]) .page-hero[data-hero-for="missions"],
body:has(.menu-rail [aria-current="true"][data-menu="dossier"]) .page-hero[data-hero-for="dossier"],
body:has(.menu-rail [aria-current="true"][data-menu="dead-drop"]) .page-hero[data-hero-for="dead-drop"],
body:has(.menu-rail [aria-current="true"][data-menu="stats"]) .page-hero[data-hero-for="stats"],
body:has(.menu-rail [aria-current="true"][data-menu="hall-of-fame"]) .page-hero[data-hero-for="hall-of-fame"]{display:block}
/* every board tab's banner carries the PESB GTA logo, so the header
   drops it on the board (Command Center's own hero-equivalent, .cc-hero
   in command-center.css, carries it too and drops it the same way) */
.brandmark .gta-logo{display:none}
@media(max-width:599px){ .page-hero{margin-bottom:20px} }

/* ---------- Loading splash (index.html only) ----------
   A ~3s cinematic splash on first load each browser session (see the
   inline script right after #loading-screen in index.html for the
   session-storage/timing logic). The designer's Belize map
   (images/belize-map.jpg) runs full-height down the far left with a
   slow zoom and fades into navy on its right edge; the logo pulses,
   large, centered in the space to its right, over the palette's
   ellipse-gradient blue glow. On tall/narrow screens (phones, upright
   tablets) there's no room beside the map, so it fills the screen
   behind a dark scrim instead, logo centered on top. The sitewide
   prefers-reduced-motion rule already strips both animations and the
   fade-out transition for anyone who needs that -- the JS timer still
   governs how long it's on screen either way. */
.loading-screen{
  --map-w:calc(100vh * 1116 / 2000); /* the map's width at full screen height */
  position:fixed; inset:0; z-index:9999;
  display:flex; align-items:center; justify-content:center; overflow:hidden;
  padding-left:var(--map-w); /* centers the logo in the space right of the map */
  background:
    radial-gradient(ellipse 45% 60% at calc(var(--map-w) + (100% - var(--map-w)) / 2) 50%, rgba(var(--glow-rgb),.55), transparent 70%),
    var(--bg);
  transition:opacity .6s ease, visibility .6s ease;
}

.loading-screen.hide{opacity:0; visibility:hidden; pointer-events:none}

/* The mask fades the map's right edge (the sea) into the background.
   It's on the map itself rather than an overlay so it scales with the
   zoom -- a separate overlay leaves a hard-edged strip of map poking
   out past it while the map is enlarged. */
.loading-art{
  position:absolute; top:0; bottom:0; left:0; width:var(--map-w);
  background:url("../images/belize-map.jpg") center/cover no-repeat;
  -webkit-mask-image:linear-gradient(90deg, #000 55%, transparent 100%);
  mask-image:linear-gradient(90deg, #000 55%, transparent 100%);
  transform-origin:left center;
  animation:loadingZoom 3.4s ease-out forwards;
}

/* The installed app's 1.5s splash (board.html): the map zoom finishes
   just as the fade-out starts instead of being cut off halfway. */
.loading-screen.quick .loading-art{animation-duration:1.7s}

/* Plain navy until the map and logo have both loaded (.wait, in the
   markup, removed by board.html's splash script), then they fade in together, the zoom
   and pulse starting from there rather than half-done. */
.loading-art, .loading-logo{transition:opacity .45s ease}
.loading-screen.wait :is(.loading-art, .loading-logo){opacity:0; animation-play-state:paused}

.loading-scrim{display:none} /* only used on tall/narrow screens, below */

.loading-logo{
  position:relative; width:min(560px, 36vw, 70vh); display:block;
  filter:drop-shadow(0 10px 30px rgba(var(--shadow-rgb),.6));
  animation:loadingPulse 1.6s ease-in-out infinite;
}

@media(max-aspect-ratio:6/5){
  .loading-screen{padding-left:0; background:var(--bg)}
  .loading-art{width:auto; right:0; background-position:left center; -webkit-mask-image:none; mask-image:none}
  .loading-scrim{display:block; position:absolute; inset:0; background:rgba(var(--bg-rgb),.62)}
  .loading-logo{width:min(420px, 72vw, 60vh)}
}

/* board.html's equivalent of .hud-actions -- same right-aligned column
   stacking (the stats above the sync pill), just without a button
   to also make room for. */
.hud-right{display:flex; flex-direction:column; align-items:flex-end; gap:10px; margin-left:auto}

/* ---------- Mission alerts (partials/alerts.html, alerts.js) ----------
   The bell sits beside the sync pill under the HUD stats: an outline
   while alerts are off on this device, filled gold once they're on. Its
   panel drops down from it, right-aligned, over the page. */
.hud-sync{align-items:center; gap:8px}

.hud-sync:has(.alerts-panel:not([hidden])){z-index:80} /* the open panel above the page */

.alerts{position:relative}

/* The round header button beside the sync pill (the bell). */
.hud-btn{width:36px; height:36px; background:rgba(var(--surface-rgb),.85)}

.hud-btn svg{width:20px; height:20px}

.alerts-bell .bell-body{fill:none; transition:fill .15s}

.alerts-bell.on{color:var(--gold); border-color:rgba(var(--gold-rgb),.7)}

.alerts-bell.on .bell-body{fill:currentColor}

.alerts-bell[aria-expanded="true"]{border-color:var(--gold)}

.alerts-panel{
  position:absolute; z-index:60; top:calc(100% + 10px); right:0;
  width:min(340px, calc(100vw - 32px));
  background:rgba(var(--surface-rgb),.98); backdrop-filter:blur(10px);
  border:1px solid rgba(var(--gold-rgb),.5); border-radius:var(--r); box-shadow:var(--shadow);
  padding:14px 16px 16px; text-align:left;
  animation:alertsIn .18s ease-out;
}

@keyframes alertsIn{from{opacity:0; transform:translateY(-6px)}}

.alerts-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:12px}

.alerts-title{font-family:var(--ff-head); font-weight:700; font-size:var(--fs-md); letter-spacing:.06em; text-transform:uppercase; color:var(--gold); margin:0}

.alerts-master{padding-bottom:12px; border-bottom:1px solid var(--line); font-weight:700}

.alerts-types .switch-row{padding:10px 0}

.alerts-types .switch-row + .switch-row{border-top:1px solid rgba(var(--line-rgb),.5)}

.alerts-types .switch-row.is-disabled .switch-label{opacity:.55}

.alerts-note{margin:10px 0 0; font-size:var(--fs-sm); color:var(--dim); line-height:1.45}

.alerts-note:empty{display:none}

/* A row of filter dropdowns (Krewe/Week/Period selects) below a
   section's own heading/lede, never inline beside it -- see the Stats
   and Hall of Fame sub-tabs (board.html), each of which builds its
   own filters this way rather than the sechead flex-row they used to
   share the same line with. */
.filters-row{display:flex; gap:20px; flex-wrap:wrap; margin-bottom:22px}

/* ---------- Filter bars (filters.js) ----------
   Stats and Hall of Fame's cascading Year/Quarter/Month/Week/Krewe row.
   A level with a single option is a read-only .filter-static box, the
   same size as a dropdown. The Filters button that folds it away below
   1200px is shared with every other filter row (shared.css, "Filter
   panels"). */
.filters-row[id$="-filters"]{display:block}
.filter-fields{display:flex; gap:20px; flex-wrap:wrap}
.filter-field{margin:0; flex:0 1 190px; min-width:140px}
.filter-static{
  display:flex; align-items:center; height:48px;
  background:var(--field); border:1px solid var(--line); border-radius:2px; padding:11px 13px;
  font-size:var(--fs-base); color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
@media(max-width:1199px){ .filter-field{flex:1 1 140px} }

/* A filtered count under the filters (Player Stats' rewards earned, Most
   Wanted's total players), styled like Command Center's "N total" and sitting just above the list it counts. */
.filters-row + .unit-grand-total,
.heat-legend-panel + .unit-grand-total{margin:-8px 0 14px}

/* "Next mission in" -- only shown once a mission is actually posted
   (see renderMissionsNow() in board.html toggling its [hidden]).
   Counts down to next Monday 7am Belize time, ticking every minute.
   Everything sits on one shared text baseline (not centered), so the
   label, the big numbers, their units and the date read as one
   straight line despite their different sizes and fonts. */
.countdown{
  display:flex; align-items:baseline; gap:18px; flex-wrap:wrap;
  border:1px solid var(--page); border-radius:var(--r); background:var(--raise);
  padding:14px 18px; margin-bottom:22px;
}


.countdown-label{
  font-size:var(--fs-sm); letter-spacing:.12em; text-transform:uppercase; color:var(--dim);
}

.countdown-units{display:flex; align-items:baseline; gap:16px}

.countdown .cu{display:flex; align-items:baseline; gap:5px; font-variant-numeric:tabular-nums}

.countdown .cu b{font-family:var(--ff-display); font-size:var(--fs-md); color:var(--gold)}

.countdown .cu i{font-style:normal; font-size:var(--fs-xs); color:var(--text); text-transform:uppercase}

/* The deadline countdown's own date/time (#dl-when), folded into the
   same box rather than repeated in a separate note below it. */
.countdown-when{font-size:var(--fs-xs); color:var(--text)}

.grid{display:grid; gap:25px}

.g2{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}

.g-mission{grid-template-columns:1fr}

@media(min-width:840px){.g-mission{grid-template-columns:1fr 1fr}}

.g3{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}

.g4{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}

@media(max-width:599px){ .g2,.g3,.g4{grid-template-columns:1fr} }

/* ---------- info cards ----------
   The one card for short blocks of copy on the board: Themes,
   Terminology, WHAT?/WHY?/PROOF?/SCORE?, the three Rules lists, the
   Scoring points and the reward tiers. A direct request to keep every
   card the same: one padding, one title style, standard body text.
   Background and page-colored outline come from .panel. Pieces, all
   optional but the title:
   - .label  a small gray line above the title ("15 PTS", "KLIK · MONTHLY")
   - h3      the title, in the page color, or --title when a card sets
             its own (each Theme card uses its theme color)
   - p / ul  body text; ul.plus and ul.minus add +/– markers */
.info-card{padding:20px 22px; display:flex; flex-direction:column; gap:10px}

.info-card .label{font-size:var(--fs-sm); letter-spacing:.16em; text-transform:uppercase; color:var(--dim)}

.info-card h3{font-family:var(--ff-head); font-weight:700; font-size:var(--fs-lg); letter-spacing:.01em; text-transform:uppercase; color:var(--title, var(--page))}

.info-card p,
.info-card li{font-size:var(--fs-base); color:var(--text)}

.info-card ul{margin:2px 0 0; padding:0; list-style:none; display:flex; flex-direction:column; gap:9px}

.info-card :is(.plus,.minus) li{padding-left:22px; position:relative}

.info-card :is(.plus,.minus) li::before{position:absolute; left:0; top:0; font-weight:700}

.info-card .plus li::before{content:"+"; color:var(--cyan)}

.info-card .minus li::before{content:"\2013"; color:var(--violet)}

/* ---------- standings ---------- */

.trow{display:grid; grid-template-columns:minmax(160px,1.25fr) minmax(210px,2fr) 110px; gap:18px;
  align-items:center; padding:14px 4px 14px 14px; border-bottom:1px solid rgba(var(--line-rgb),.5);
  border-left:3px solid transparent; transition:background .15s;}

.trow.lead{background:linear-gradient(90deg,rgba(var(--gold-rgb),.12),transparent 70%); border-bottom-color:var(--gold)}

/* rowheat-<slug>, not heat-<slug> — deliberately a separate class
   namespace from the .heat-<slug> rules below. Those set `color`
   directly, and .trow needs the tier color on its border only, not
   inherited by every child (team name, member count, etc). */
.trow.rowheat-wasted{border-left-color:var(--dim)}

.trow.rowheat-heating{border-left-color:var(--gold)}

.trow.rowheat-fire{border-left-color:var(--orange)}

.trow.rowheat-redhot{border-left-color:var(--violet)}

.trow.rowheat-wanted{border-left-color:var(--red); background:linear-gradient(90deg,rgba(var(--red-rgb),.1),transparent 70%)}

.trow .tname{font-weight:600; display:flex; align-items:center; gap:8px; flex-wrap:wrap}

.trow .tfn{font-size:var(--fs-sm); letter-spacing:.1em; text-transform:uppercase; color:var(--dim); width:100%}

.trow .num{text-align:right; font-variant-numeric:tabular-nums}

.trow .pts-num{font-size:var(--fs-sm); color:var(--text)}

/* Score Board row readouts: icon + number (direct request), replacing
   "8 players this week" / "729 / 925" / "3 of 3 weeks in". */
.trow .tfn .headcount-icon{width:14px; height:14px; vertical-align:-2px; margin-right:5px}
.trow .tstat{white-space:nowrap}
.trow .tstat + .tstat{margin-top:6px}
.trow .tstat-weeks{color:var(--dim)}
.tstat-icon{width:15px; height:15px; vertical-align:-3px; margin-right:6px}

@media(max-width:599px){
  .trow{grid-template-columns:1fr; gap:8px; padding:16px 4px 16px 12px}
  .trow .num{text-align:left}
}

.hl-item{
  display:flex; align-items:center; gap:9px; padding:9px 14px;
  border:1px solid currentColor; border-radius:var(--r);
  background:color-mix(in srgb, currentColor 12%, var(--surface));
}

/* Phones fold the heat legend behind a "Heat levels" button, closed by
   default (direct request); styled like the Filters button. */
.heat-legend-toggle{display:none}
@media(max-width:599px){
  .heat-legend-toggle{
    display:flex; align-items:center; gap:10px; width:100%; min-height:48px; cursor:pointer;
    background:var(--field); border:1px solid var(--line); border-radius:2px; padding:10px 14px;
    color:var(--text); text-align:left; margin:14px 0 20px;
  }
  .heat-legend-toggle svg{flex:none; width:18px; height:18px; color:var(--page)}
  .heat-legend-toggle .filter-toggle-label{flex:1}
  .heat-legend-toggle::after{content:""; flex:none; width:8px; height:8px; border-right:2px solid var(--dim); border-bottom:2px solid var(--dim); transform:rotate(45deg); margin:-4px 4px 0 0; transition:transform .15s}
  .heat-legend-panel.is-open > .heat-legend-toggle{border-color:var(--page); margin-bottom:0}
  .heat-legend-panel.is-open > .heat-legend-toggle::after{transform:rotate(-135deg); margin-top:4px}
  .heat-legend-panel:not(.is-open) > .heat-legend{display:none}
  /* Two levels side by side: the words go under the stars (direct
     request), close under them, with more room under the tier name. */
  .heat-legend{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px}
  .hl-item{flex-direction:column; align-items:flex-start; gap:3px; padding:10px 12px}
  .hl-item .stars{display:flex; line-height:0}
  .hl-txt b{margin-bottom:4px}
}

.hl-txt{display:flex; flex-direction:column; line-height:1.3}

.hl-txt b{font-family:var(--ff-display); font-size:var(--fs-xs); letter-spacing:.06em; text-transform:uppercase}

.hl-txt .rng{font-size:var(--fs-2xs); color:var(--text)}

.track{height:14px; background:rgba(var(--shadow-rgb),.35); border:1px solid var(--line); border-radius:2px; display:flex; overflow:hidden; position:relative}

.track i{display:block; height:100%}

.track .goal{position:absolute; top:-2px; bottom:-2px; width:2px; background:var(--dim); opacity:.55}

.legend{display:flex; gap:16px; flex-wrap:wrap; margin-top:12px; font-size:var(--fs-sm); color:var(--text)}

.legend span{display:inline-flex; align-items:center; gap:7px}

.legend i{width:12px; height:12px; border-radius:2px; display:block}

.legend i.goal{background:var(--text); width:2px; height:14px; border-radius:0}


/* More room between Krewes on the Score Board (direct request). Scoped to
   #standings; .krewe-block's shared 28px still applies elsewhere. */
#standings .krewe-block{margin-bottom:64px}

/* Stats' "How scores work": an ⓘ beside the heading, and the box it
   opens under the heading (direct request). */
.sechead-title{display:flex; align-items:center; gap:10px}
.info-btn{flex:none; display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; padding:0;
  background:none; border:0; border-radius:50%; color:var(--page); cursor:pointer; opacity:.85; transition:opacity .15s}
.info-btn:hover, .info-btn[aria-expanded="true"]{opacity:1}
.info-btn svg{width:24px; height:24px}
.score-info{position:relative; background:var(--card-glass); border:1px solid var(--line); border-radius:var(--r); padding:16px 20px; margin:-8px 0 22px}
.score-info-close{position:absolute; top:10px; right:10px; display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; padding:0;
  background:none; border:0; border-radius:50%; color:var(--dim); cursor:pointer}
.score-info-close:hover{color:var(--text); background:rgba(var(--page-rgb),.15)}
.score-info-close svg{width:18px; height:18px}
.score-info[hidden]{display:none}
.score-info-h{font-family:var(--ff-head); font-weight:500; font-size:var(--fs-lg); letter-spacing:.06em; text-transform:uppercase; color:var(--page); margin-bottom:8px; padding-right:36px}
.score-info ul{margin:0; padding-left:18px}
.score-info li{margin:6px 0; font-size:var(--fs-base); line-height:1.45}
.score-info b{font-weight:600}
/* The worked example: one step per line, labels in a column, fractions
   stacked like written math (direct request). Folded until tapped. */
.calc{margin-top:14px; padding-top:12px; border-top:1px solid var(--line)}
.calc-sum{display:inline-flex; align-items:center; gap:6px; cursor:pointer; list-style:none;
  font-size:var(--fs-sm); letter-spacing:.1em; text-transform:uppercase; color:var(--dim)}
.calc-sum::-webkit-details-marker{display:none}
.calc-sum::after{content:""; width:7px; height:7px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg); margin:-4px 0 0 4px; transition:transform .15s}
.calc[open] > .calc-sum::after{transform:rotate(-135deg); margin-top:3px}
.calc-sum:hover{color:var(--text)}
.calc[open] > .calc-sum{margin-bottom:8px}
.calc-h{font-size:var(--fs-sm); letter-spacing:.1em; text-transform:uppercase; color:var(--dim); margin:4px 0 4px}
.calc-h:not(:first-of-type){margin-top:16px}
.calc-say{margin:0 0 8px; font-size:var(--fs-base)}
.calc-row{display:grid; grid-template-columns:72px 1fr; align-items:center; gap:10px; min-height:40px}
.calc-k{font-size:var(--fs-sm); color:var(--dim)}
.calc-m{font-size:var(--fs-lg); font-variant-numeric:tabular-nums; white-space:nowrap; overflow-wrap:normal}
.calc-ans{color:var(--page)}
/* The body font has no ≥ (or ÷), so math signs fall back to a system font. */
.calc-sym{font-family:var(--ff-math)}
.frac{display:inline-flex; flex-direction:column; align-items:center; vertical-align:middle; line-height:1.2; margin:0 2px}
.frac > span:first-child{padding:0 4px 2px; border-bottom:2px solid currentColor}
.frac > span:last-child{padding-top:2px}
@media(max-width:599px){
  .calc-row{grid-template-columns:58px 1fr; gap:8px}
  .calc-m{font-size:var(--fs-base); white-space:normal}
}

/* Player Stats' Mission Passed | Keep Grinding tabs: the gold header
   titles they were as section headings (direct request), each with its
   player count. The open one is full gold, the other faded. */
.roll-tabs{display:flex; align-items:center; flex-wrap:wrap; gap:4px 14px; margin-bottom:14px}
.roll-tab{display:inline-flex; align-items:center; gap:8px; padding:4px 0; background:none; border:0; cursor:pointer;
  font-family:var(--ff-head); font-weight:500; font-size:var(--fs-lg); letter-spacing:.06em; text-transform:uppercase; color:var(--gold); opacity:.5; transition:opacity .15s}
.roll-tab:hover, .roll-tab[aria-selected="true"]{opacity:1}
.roll-tab-n{display:inline-flex; align-items:center; font-family:var(--ff); font-weight:600; font-size:var(--fs-sm); letter-spacing:0; color:var(--text)}
.roll-tab-n .headcount-icon{margin-right:3px}
.roll-tabs-sep{font-size:var(--fs-lg); color:var(--gold); opacity:.5}

/* minmax raised from 210px: at ~230px a card can't fit its heat badge
   (5 stars + a tier name up to "MOST WANTED", ~11 characters) on one
   line, so the label wrapped mid-word and threw the row's height off.
   260px is comfortably past that worst case; see .heat-name's
   white-space:nowrap below for the other half of this fix. */
.roll{display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:20px}

/* Player Stats cards, laid out like the designer's mockup (direct
   request): name + score on one line in the condensed header font, the
   Klik in small spaced cyan capitals, then the Heat stars. Navy at 75%,
   like the mockup, on direct request -- the one card on the site that
   isn't solid BOW Blue. Keep Grinding cards
   look the same as winners, as in the mockup; the group heading
   separates them. */
.member{background:var(--card-glass); border:1px solid var(--page); border-radius:var(--r); padding:12px 16px 11px; min-width:0}

.member-top{display:flex; align-items:baseline; gap:12px}

.member .mn{flex:1; min-width:0; font-family:var(--ff-head); font-weight:700; font-size:var(--fs-lg); line-height:1.1; text-transform:uppercase; letter-spacing:.01em; overflow-wrap:anywhere}

.member .msc{flex:none; font-family:var(--ff-head); font-weight:700; font-size:var(--fs-lg); line-height:1.1; color:var(--text)}

.member .mt{margin-top:4px; font-size:var(--fs-xs); letter-spacing:.14em; text-transform:uppercase; color:var(--cyan); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}

.member .heat{margin-top:9px; gap:10px}

.member .heat .stars svg{width:18px; height:18px}

.member .heat-name{font-size:var(--fs-base); letter-spacing:.06em}

/* ---------- winners tab ---------- */
.quarter-winner-card{
  background:var(--raise); border:1px solid var(--page); border-radius:var(--r);
  padding:18px 20px; margin:14px 0 20px;
}

.quarter-winner-card.won{border-color:var(--gold); background:linear-gradient(135deg,rgba(var(--gold-rgb),.1),transparent 60%), var(--raise)}

.qw-label{font-size:var(--fs-sm); letter-spacing:.1em; text-transform:uppercase; color:var(--dim)}

.qw-name{font-family:var(--ff-tabs); font-size:var(--fs-xl); letter-spacing:0; /* keeps Pricedown's ligatures (see .menu-rail button) */ text-transform:uppercase; color:var(--gold); margin-top:4px}

/* Same as the Most Wanted / Champion cards' Krewe line (.member-lg .mt). */
.qw-krewe{margin-top:6px; font-size:var(--fs-sm); letter-spacing:.14em; text-transform:uppercase; color:var(--cyan)}

.qw-pending{font-size:var(--fs-base); color:var(--text); margin-top:6px}

.qw-history{margin-top:14px; padding-top:14px; border-top:1px solid var(--line)}

.qw-history-h{font-size:var(--fs-sm); letter-spacing:.1em; text-transform:uppercase; color:var(--dim); margin-bottom:8px}

.qw-history-row{display:flex; justify-content:space-between; gap:12px; font-size:var(--fs-sm); padding:5px 0; color:var(--text)}

.qw-history-row b{color:var(--text); font-weight:600}

/* The Champion: one bigger .member card per Krewe winner, styled like
   Most Wanted's player cards (direct request) -- the Klik with its
   participation beside it (participationChipHtml()), the Krewe in cyan,
   then the Heat level with the percentage on its left. Two across (six a
   month fill three rows), one on phones. */
.roll.roll-lg{grid-template-columns:repeat(auto-fill,minmax(340px,1fr)); gap:24px}
@media(max-width:599px){ .roll.roll-lg{grid-template-columns:1fr} }
.member.member-lg{padding:20px 24px 18px}
.member.member-lg .mn, .member.member-lg .msc{font-size:var(--fs-xl)}
.member.member-lg .mt{margin-top:6px; font-size:var(--fs-sm)}
.member.member-lg .heat{margin-top:14px}
.member.member-lg .heat .stars svg{width:22px; height:22px}

/* Participation as the person icon + a small percentage, inline at the
   end of a Klik's name (The Champion, Survivors), so the name uses the
   card's full width and the chip follows its last word. */
.part-chip{display:inline-flex; align-items:center; vertical-align:middle; margin-left:4px; font-family:var(--ff); font-weight:600; font-size:var(--fs-xs); letter-spacing:0; text-transform:none; color:var(--dim); white-space:nowrap}
.part-chip .headcount-icon{width:13px; height:13px; margin-right:3px}

/* Survivors: the same glass card as Most Wanted and The Champion, with a
   gold edge; the Klik in gold Pricedown, participation beside it, the
   Krewe, then the quarter's average as a Heat level. */
#survivors .quarter-winner-card.won{background:var(--card-glass)}
#survivors .heat{margin-top:12px; gap:10px}
#survivors .heat .stars svg{width:22px; height:22px}
#survivors .heat-name{font-size:var(--fs-base); letter-spacing:.06em}
#survivors .heat + .qw-name{margin-top:18px}


/* Dead Drop drafts (dead-drop.js, "Drafts on this device"). */
.dd-draft-note{display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; margin-bottom:16px}
.dd-draft-note span{flex:1 1 240px}
.dd-draft-hint{margin:10px 0 0}
/* "Trying again in 12s. Keep this page open." beside Try now (scheduleDeadDropRetry(), dead-drop.js). */
.dd-retry{display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; margin:10px 0 0; font-size:var(--fs-sm); color:var(--text)}



/* The drops made on this device this week (#dd-drops, dead-drop.js; user,
   2026-10-09/10): a BOW Blue card each with a rule in the Krewe's colour
   on top, "Dropped" and when, the name, Krewe/Klik/week tags, what was
   dropped, then the actions under a divider. Its certificate opens under
   it. New drop comes first (user, 2026-10-12). */
.dd-drop-list{display:flex; flex-direction:column; gap:16px}
.dd-drop-list .dd-done{margin-bottom:0} /* not a page section's 56px */
/* New drop on the far right with its note right-aligned beside it; where
   they don't fit on one line, the note takes its own line, left-aligned,
   and the button stays on the right under it (user, 2026-10-12). */
.dd-new-row{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:10px 16px;
  margin:30px 0; container-type:inline-size;
}
.dd-new-note{flex:1 1 auto; margin:0; text-align:right; font-size:var(--fs-sm); color:var(--dim)}
@container (max-width:560px){ .dd-new-note{flex-basis:100%; text-align:left} }
/* Above the form when it's opened from the cards: Back on the left, the
   title and "Krewe · Klik" centred on the form (user, 2026-10-12): two
   equal side columns keep the middle one truly centred. Where the form is
   too narrow for that (phones), Back gets its own line and the title is
   centred under it. */
#deaddrop-form-wrap{container-type:inline-size}
.dd-form-head{
  display:grid; grid-template-columns:1fr minmax(0,max-content) 1fr; align-items:center; gap:12px 16px;
  margin-bottom:18px; padding-bottom:14px; border-bottom:1px solid var(--line);
}
.dd-form-head .btn{justify-self:start}
.dd-form-who{min-width:0; text-align:center}
@container (max-width:520px){ .dd-form-head{grid-template-columns:minmax(0,1fr)} }
.dd-form-title{margin:0; font-family:var(--ff-head); font-weight:700; font-size:var(--fs-lg); line-height:1.2; color:var(--text); overflow-wrap:anywhere}
.dd-form-sub{margin:4px 0 0; font-size:var(--fs-sm); color:var(--dim)}
:where(.dd-done){--krewe:var(--page); --krewe-rgb:var(--page-rgb)} /* until its .krewe-* class */
.dd-done{
  background:var(--raise); border:1px solid var(--line); border-top:3px solid var(--krewe);
  border-radius:var(--r); padding:18px 22px 16px;
}
.dd-done-head{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:4px 12px}
.dd-done-label{
  display:inline-flex; align-items:center; gap:6px; color:var(--good);
  font-family:var(--ff-display); font-size:var(--fs-sm); letter-spacing:.12em; text-transform:uppercase;
}
.dd-done-label svg{width:18px; height:18px}
.dd-done-when{font-size:var(--fs-sm); color:var(--dim)}
.dd-done-name{margin:6px 0 10px; font-family:var(--ff-head); font-weight:700; font-size:var(--fs-xl); line-height:1.1; color:var(--text); overflow-wrap:anywhere}
.dd-done-tags{display:flex; flex-wrap:wrap; gap:8px}
.dd-done-proof{margin:12px 0 0; color:var(--text)}
.dd-done-foot{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px 16px;
  margin-top:16px; padding-top:14px; border-top:1px solid var(--line);
}
.dd-done-foot .btnrow{margin:0}
.dd-done-again{margin:0; font-size:var(--fs-sm); color:var(--dim)}
/* A drop the site never showed (ddDropMissing(), dead-drop.js). */
.dd-missing{border-top-color:var(--bad)}
.dd-missing .dd-done-label{color:var(--gold)}
.dd-missing-note{margin:12px 0 0; padding-left:12px; border-left:3px solid var(--bad); color:var(--text)}


/* The Turn it in form sits on a card (.panel) so it reads clearly over
   the background image (direct request). Same padding as the info cards. */
#deaddrop-form-wrap{padding:20px 22px}
@media(max-width:599px){ #deaddrop-form-wrap{padding:16px} }


/* Stats > Leaderboard fits the screen at every width: no table.data
   min-width, and on phones the Krewe column folds under the Klik name. */
table.data.lb-table{min-width:0}
/* The same see-through navy as the Hall of Fame cards (direct request). */
#leaderboard-panel{background:var(--card-glass)}
/* Each Krewe in its own color, same as the mission cards (shared.css). */
.lb-table [class*="krewe-"]{color:var(--krewe)}
table.data.lb-table td{overflow-wrap:anywhere}
/* Rank stays left-aligned under the "#" header, inline with it, instead
   of the right-aligned numeric style the rest of table.data uses. */
table.data.lb-table td.lb-rank{text-align:left; font-variant-numeric:tabular-nums}
.lb-krewe-sub{display:none; margin-top:2px; font-size:var(--fs-xs)}
@media(max-width:599px){
  table.data.lb-table .lb-krewe{display:none}
  table.data.lb-table .lb-krewe-sub{display:block}
  table.data.lb-table th, table.data.lb-table td{padding-left:10px; padding-right:10px}
}


/* .body is deliberately darker than the summary bar (--ink, the same
   "recessed" tone used for inset form fields) rather than matching
   --surface like the mission cards inside it — same color on both
   layers read as flat, no separation between the accordion and the
   cards it holds. */
details.arc{border:1px solid var(--page); border-radius:var(--r); background:var(--raise); margin-bottom:11px; overflow:hidden}

details.arc summary{cursor:pointer; padding:14px 18px; display:flex; align-items:center; gap:14px; list-style:none; flex-wrap:wrap}

details.arc summary::-webkit-details-marker{display:none}

details.arc summary .wk{font-family:var(--ff-head); font-weight:700; font-size:var(--fs-lg); letter-spacing:.01em; color:var(--gold)}

details.arc summary .pd{font-size:var(--fs-sm); color:var(--dim); letter-spacing:.08em; text-transform:uppercase}

details.arc summary .cnt{margin-left:auto; font-size:var(--fs-sm); color:var(--text)}

details.arc .body{padding:16px 18px 18px; background:var(--surface); border-top:1px solid var(--line)}

/* Preview of a scheduled week: the gold .preview-banner across the top
   (shared.css; renderPreviewBanner(), missions.js), so it's never mistaken
   for the live board. */
