/* ══════════════════════════════════════════════════════════════════════
   public/css/world-home.css — the home screen (#4456, round 2)
   ──────────────────────────────────────────────────────────────────────
   A full screen over the live world (world-home.js), PokéBonk's layout in
   kit B's chrome: the top bar on the slate plate, art cards with the gold
   lip, the red ribbon over the standings, btngold for the one thing to
   press, badge.png for a count, the podium on the Leaderboard's plates with
   the house sigils on top.

   ⭐ IT SIZES ITSELF FROM ITS OWN BOX, NOT THE WINDOW (container queries on
   .wh-screen). In the game the box is the window; in the mock it is a scaled
   stage. Two steps: --k 1 under 1400 x 800 (a landscape phone, a small
   laptop), --k 2 from there (Wray's 14in at 75% is 2016 x 1160).
   Every rule is scoped under .wh-screen, so nothing here reaches the world.
   ══════════════════════════════════════════════════════════════════════ */
@layer base, module, skin, nerm, corners;
/* the pixel cut's numbers, shared with the Pit (venue.html links the same file) */
@import url('/css/kit-cut.css?v=2026-11-11a');
/* the desk, B packed (#5570): unlayered on purpose, see its header */
@import url('/css/world-home-desk.css?v=2026-11-25a');

@layer corners {
  .wh-screen {
    --k: 1;
    --gap: 8px;
    --pad: 10px;
    --ink: #efe3c8;
    --ink-2: #d9cdb2;
    --dim: #b4bfcc;
    --gold: #e3c79a;
    --gold-hi: #f3d79a;
    --gold-btn: #dda52c;
    --red: #a3343b;
    --red-hi: #e0535c;
    --green: #8fd89a;
    --slate: #3a4760;
    --card: #2a3345;
    --well: #1c2330;
    --line: #0b0f15;
    --f-px: 'Press Start 2P', ui-monospace, monospace;
    --f-vt: 'VT323', ui-monospace, monospace;
    --f-tome: 'New Rocker', 'Press Start 2P', serif;
    --lip: inset 0 0 0 2px var(--line), inset 0 0 0 4px #7e6440, inset 0 5px 0 2px #caa982;
    --lip-on: inset 0 0 0 2px var(--line), inset 0 0 0 4px var(--gold-btn), inset 0 5px 0 2px var(--gold-hi);
    /* DEPTH (round 3: "whats missing from our buttons to make them feel less
       flat"): every pressable thing stands on a ledge, catches light on its
       top edge, lifts under the pointer and sinks when pressed */
    --ledge: 0 4px 0 #05070b, 0 6px 10px rgba(0, 0, 0, .45);
    --ledge-up: 0 6px 0 #05070b, 0 10px 16px rgba(0, 0, 0, .5);
    --ledge-down: 0 1px 0 #05070b, 0 2px 4px rgba(0, 0, 0, .4);
    --sheen: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0) 38%, rgba(0, 0, 0, .18));
    position: fixed;
    inset: 0;
    z-index: 9000;
    container-type: size;
    container-name: wh;
    color: var(--ink);
    font-family: var(--f-vt);
  }
  .wh-screen[hidden] { display: none; }

  /* the live world behind, dimmed toward the edges, the way PokéBonk keeps
     its arena moving behind the menu */
  .wh-screen .wh-veil {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 75% 65% at 50% 45%, rgba(10, 14, 22, .05), rgba(6, 8, 14, .7) 82%),
      linear-gradient(rgba(12, 16, 26, .2), rgba(12, 16, 26, .2));
    /* ⛔ no backdrop-filter: a blur over the live 3D canvas is paid on every
       frame, and on a phone that is the frame rate */
  }

  .wh-screen .wh-shell {
    position: relative;
    box-sizing: border-box;
    height: 100%;
    /* the whole screen (round 4: "use the full size of the screen") */
    max-width: none;
    margin: 0;
    padding: var(--pad);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: var(--gap);
  }
  .wh-screen :is(button, a) { font: inherit; color: inherit; }
  .wh-screen button { cursor: pointer; }
  .wh-screen [data-wh-nav]:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 2px; }
  .wh-screen .wh-quiet { margin: 10px 4px; color: var(--dim); font-size: calc(18px + 2px * var(--k)); }

  /* ── the top bar: the slate plate with its gold studs ── */
  .wh-screen .wh-top {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto auto;
    align-items: center;
    gap: calc(10px * var(--k));
    padding: calc(4px * var(--k)) calc(8px * var(--k));
    border-style: solid;
    border-width: calc(6px + 6px * var(--k));
    border-image: url('/assets/ui/kitb/panel.png?v=2026-09-24a') 12 fill / calc(6px + 6px * var(--k)) stretch;
    image-rendering: pixelated;
  }
  .wh-screen .wh-me { display: flex; align-items: center; gap: calc(8px * var(--k)); min-width: 0; }
  .wh-screen .wh-face {
    flex: none;
    width: calc(40px + 20px * var(--k));
    aspect-ratio: 1;
    background: var(--well);
    box-shadow: inset 0 0 0 2px var(--line), 0 0 0 2px var(--line), 0 0 0 4px var(--gold-btn), 0 0 0 6px var(--line);
    overflow: hidden;
  }
  .wh-screen .wh-face canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
  .wh-screen .wh-me-t { display: grid; gap: 2px; min-width: 0; justify-items: start; }
  .wh-screen .wh-me-name {
    font: 400 calc(18px + 7px * var(--k))/1 var(--f-tome);
    color: var(--gold);
    text-shadow: 0 2px 0 var(--line);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
  }
  .wh-screen .wh-me-sub { font-size: calc(16px + 3px * var(--k)); color: var(--dim); }
  .wh-screen .wh-guildtag {
    padding: 2px 8px;
    border: 0;
    background: var(--well);
    box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 3px #4b5874;
    font: calc(7px + 2px * var(--k))/1.4 var(--f-px);
    color: var(--ink-2);
  }

  .wh-screen .wh-wallet { display: flex; gap: calc(6px * var(--k)); }
  .wh-screen .wh-coin {
    display: inline-flex;
    align-items: center;
    gap: calc(6px * var(--k));
    padding: 2px calc(8px * var(--k)) 2px calc(4px * var(--k));
    border-style: solid;
    border-width: calc(4px * var(--k));
    border-image: url('/assets/ui/kitb/well.png?v=2026-09-24a') 10 fill / calc(4px * var(--k)) stretch;
    background: none;
    image-rendering: pixelated;
  }
  .wh-screen .wh-coin-ico { width: calc(16px + 6px * var(--k)); aspect-ratio: 1; background: center / contain no-repeat; image-rendering: pixelated; }
  .wh-screen .wh-coin.is-obol .wh-coin-ico { background-image: url('/assets/ui/kitb/obol.png?v=2026-10-04a'); }
  .wh-screen .wh-coin.is-infamy .wh-coin-ico { background-image: url('/assets/ui/kitb/infamy.png?v=2026-09-24a'); }
  /* dust has no coin of its own yet: a cut gem, drawn */
  .wh-screen .wh-coin.is-dust .wh-coin-ico {
    width: calc(12px + 4px * var(--k));
    margin: 0 calc(2px * var(--k));
    clip-path: polygon(50% 0, 100% 40%, 50% 100%, 0 40%);
    background: linear-gradient(160deg, #e9dcff, #9b7ff0 45%, #5a3fb3);
  }
  .wh-screen .wh-coin-t { display: grid; justify-items: start; line-height: 1; }
  .wh-screen .wh-coin-t b { font: calc(9px + 4px * var(--k))/1 var(--f-px); color: var(--gold); }
  .wh-screen .wh-coin-t small { font-size: calc(14px + 2px * var(--k)); color: var(--dim); }

  .wh-screen .wh-icons { display: flex; gap: calc(6px * var(--k)); }
  .wh-screen .wh-icon[hidden] { display: none; }   /* News waits for an item (#5132) */
  .wh-screen .wh-icon {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: calc(44px + 12px * var(--k));
    padding: calc(4px * var(--k)) calc(6px * var(--k));
    border-style: solid;
    border-width: calc(3px * var(--k)) calc(3px * var(--k)) calc(5px * var(--k));
    border-image: url('/assets/ui/kitb/btn.png?v=2026-09-24a') 3 3 5 3 fill / calc(3px * var(--k)) calc(3px * var(--k)) calc(5px * var(--k)) stretch;
    background: none;
    image-rendering: pixelated;
  }
  .wh-screen .wh-icon:hover { filter: brightness(1.15); }
  .wh-screen :is(.wh-icon, .wh-hero-cta, .wh-claim, .wh-go, .wh-tab, .wh-join-go, .wh-signup, .wh-featured-link) {
    filter: drop-shadow(0 3px 0 #05070b) drop-shadow(0 5px 6px rgba(0, 0, 0, .4));
    transition: transform .1s ease, filter .1s ease;
  }
  .wh-screen :is(.wh-icon, .wh-claim, .wh-go, .wh-tab, .wh-join-go, .wh-signup, .wh-featured-link):hover {
    transform: translateY(-1px);
    filter: brightness(1.12) drop-shadow(0 4px 0 #05070b) drop-shadow(0 7px 8px rgba(0, 0, 0, .45));
  }
  .wh-screen :is(.wh-icon, .wh-claim, .wh-go, .wh-tab, .wh-join-go, .wh-signup, .wh-featured-link):active {
    transform: translateY(2px);
    filter: drop-shadow(0 1px 0 #05070b);
  }
  .wh-screen .wh-icon-t { font: calc(6px + 2px * var(--k))/1 var(--f-px); color: var(--ink-2); }

  /* the nav row's own glyphs (nav-icons.png, colour row), and Home's cat for friends */
  .wh-screen .wh-glyph {
    display: block;
    flex: none;
    width: calc(24px + 8px * var(--k));
    aspect-ratio: 1;
    background: url('/assets/ui/nav-icons.png?v=2026-09-06b') 0 0 / 1000% 200% no-repeat;
    image-rendering: pixelated;
  }
  .wh-screen .wh-icon.is-inbox .wh-glyph { background-position-x: 77.7778%; }
  .wh-screen .wh-icon.is-settings .wh-glyph { background-position-x: 55.5556%; }
  .wh-screen .wh-tile[data-tile='spellbook'] .wh-glyph { background-position-x: 66.6667%; }
  .wh-screen .wh-tile[data-tile='nine'] .wh-glyph { background-position-x: 44.4444%; }
  .wh-screen .wh-tile[data-tile='stall'] .wh-glyph { background-position-x: 33.3333%; }
  .wh-screen .wh-tile[data-tile='guild'] .wh-glyph { background-position-x: 100%; }
  .wh-screen .wh-tile[data-tile='messages'] .wh-glyph { background-position-x: 0%; }
  .wh-screen .wh-tile[data-tile='bazaar'] .wh-glyph { background-position-x: 33.3333%; filter: hue-rotate(160deg) saturate(1.2); }
  .wh-screen .wh-tile[data-tile='friends'] .wh-glyph { background: url('/assets/ui/home-icon.png?v=2026-10-27a') 0 0 / 100% 200% no-repeat; }

  /* ── the two columns ── */
  .wh-screen .wh-main { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, 1fr); gap: calc(var(--gap) * 1.5); min-height: 0; }
  .wh-screen .wh-mid { display: flex; flex-direction: column; gap: var(--gap); min-height: 0; overflow-y: auto; padding: 4px; scrollbar-width: thin; }
  .wh-screen .wh-left { display: flex; flex-direction: column; gap: var(--gap); min-height: 0; overflow-y: auto; padding: 4px; scrollbar-width: thin; }
  .wh-screen .wh-h {
    display: flex; align-items: center; gap: 10px; margin: 2px 0 0;
    font: calc(7px + 3px * var(--k))/1 var(--f-px); letter-spacing: .08em; text-transform: uppercase;
    color: var(--gold); text-shadow: 0 2px 0 var(--line);
  }
  .wh-screen .wh-h::after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, rgba(227, 199, 154, .45), rgba(227, 199, 154, 0)); }

  /* art cards: a picture under the gold lip, darkened where the words sit */
  .wh-screen :is(.wh-hero, .wh-mode) {
    position: relative;
    display: flex;
    overflow: hidden;
    isolation: isolate;
    border: 0;
    padding: 0;
    text-align: left;
    background: var(--card);
    box-shadow: var(--lip), var(--ledge);
    transition: transform .12s ease, box-shadow .12s ease;
  }
  .wh-screen :is(.wh-hero, .wh-mode, .wh-tile, button.wh-card, .wh-event):is(:hover, :focus-visible) { transform: translateY(-2px); }
  .wh-screen :is(.wh-hero, .wh-mode, .wh-tile, button.wh-card):active { transform: translateY(2px); box-shadow: var(--lip), var(--ledge-down); }
  .wh-screen .wh-art {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: center / cover no-repeat;
    transition: transform .5s ease;
  }
  .wh-screen :is(.wh-hero, .wh-mode)::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(8, 10, 16, 0) 30%, rgba(8, 10, 16, .82) 100%);
  }
  .wh-screen :is(.wh-hero, .wh-mode):is(:hover, :focus-visible) { box-shadow: var(--lip-on), var(--ledge-up), 0 0 18px rgba(221, 165, 44, .35); }
  .wh-screen :is(.wh-hero, .wh-mode):is(:hover, :focus-visible) .wh-art { transform: scale(1.05); }

  /* ENTER THE WORLD: the big one, PokéBonk's Play */
  .wh-screen .wh-hero {
    flex: none;
    min-height: calc(96px + 52px * var(--k));
    align-items: flex-end;
    justify-content: space-between;
    padding: calc(10px * var(--k)) calc(14px * var(--k));
    box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 5px var(--gold-btn), inset 0 7px 0 3px var(--gold-hi), 0 0 0 2px var(--line), var(--ledge);
  }
  .wh-screen .wh-hero::before { background: linear-gradient(90deg, rgba(8, 10, 16, .78) 0%, rgba(8, 10, 16, .2) 55%, rgba(8, 10, 16, .55) 100%); }
  /* a slow light across the gate, once on arrival */
  .wh-screen .wh-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 236, 190, .22) 50%, transparent 65%);
    transform: translateX(-100%);
    animation: wh-sweep 2.4s .4s ease-out 1 both;
  }
  .wh-screen .wh-hero-t { display: grid; gap: 4px; }
  .wh-screen .wh-hero-name { font: 400 calc(30px + 16px * var(--k))/1 var(--f-tome); color: #fff1d6; text-shadow: 0 3px 0 var(--line), 0 0 18px rgba(0, 0, 0, .6); }
  .wh-screen .wh-hero-line { font-style: normal; font-size: calc(18px + 4px * var(--k)); color: var(--ink-2); text-shadow: 0 2px 0 var(--line); }
  .wh-screen .wh-hero-go { display: flex; align-items: center; gap: calc(8px * var(--k)); }
  .wh-screen .wh-hero-cta {
    padding: calc(6px * var(--k)) calc(14px * var(--k)) calc(8px * var(--k));
    border-style: solid;
    border-width: calc(3px * var(--k)) calc(3px * var(--k)) calc(5px * var(--k));
    border-image: url('/assets/ui/kitb/btngold.png?v=2026-09-24a') 3 3 5 3 fill / calc(3px * var(--k)) calc(3px * var(--k)) calc(5px * var(--k)) stretch;
    font: calc(9px + 5px * var(--k))/1 var(--f-px);
    color: #2a1c0c;
    image-rendering: pixelated;
  }
  .wh-screen .wh-key {
    display: inline-block;
    padding: 3px 6px 4px;
    background: var(--well);
    box-shadow: inset 0 0 0 2px var(--line), inset 0 -3px 0 2px #11161f, 0 0 0 1px #4b5874;
    font: calc(6px + 2px * var(--k))/1 var(--f-px);
    color: var(--ink-2);
  }

  /* the modes: the Pit and the Deep big, the rest small */
  .wh-screen .wh-play { display: grid; gap: var(--gap); }
  .wh-screen .wh-modes-big { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--gap); }
  .wh-screen .wh-modes-small { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--gap); }
  .wh-screen .wh-mode { flex-direction: column; justify-content: flex-end; min-height: calc(62px + 34px * var(--k)); padding: calc(6px * var(--k)) calc(10px * var(--k)); }
  .wh-screen .wh-mode.is-big { min-height: calc(84px + 44px * var(--k)); }
  .wh-screen .wh-mode-t { display: grid; gap: 2px; }
  .wh-screen .wh-mode-name { font: 400 calc(16px + 6px * var(--k))/1 var(--f-tome); color: #fff1d6; text-shadow: 0 2px 0 var(--line); }
  .wh-screen .wh-mode.is-big .wh-mode-name { font-size: calc(20px + 9px * var(--k)); }
  .wh-screen .wh-mode-line { font-style: normal; font-size: calc(15px + 3px * var(--k)); line-height: 1; color: var(--ink-2); text-shadow: 0 2px 0 var(--line); }
  .wh-screen .wh-chips { position: absolute; top: calc(6px * var(--k)); left: calc(6px * var(--k)); display: flex; gap: 4px; }
  .wh-screen .wh-chip {
    padding: 3px 6px;
    font: calc(5px + 2px * var(--k))/1.2 var(--f-px);
    color: #2a1c0c;
    background: var(--gold-btn);
    box-shadow: 0 0 0 2px var(--line);
  }
  .wh-screen .wh-chip.is-live { background: var(--green); }
  .wh-screen .wh-chip.is-live::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 4px; background: #135a22; animation: wh-blink 1.2s steps(2) infinite; }
  .wh-screen .wh-mode.is-lead { box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px var(--red-hi), inset 0 5px 0 2px #ff9a9a; }

  /* this week: the pack, the quests, the news */
  .wh-screen .wh-week { display: grid; gap: var(--gap); }
  .wh-screen .wh-week-row { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: var(--gap); }
  .wh-screen .wh-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: calc(6px * var(--k));
    min-height: calc(58px + 18px * var(--k));
    padding: calc(6px * var(--k)) calc(10px * var(--k));
    border: 0;
    text-align: left;
    background: var(--sheen), var(--card);
    box-shadow: var(--lip), var(--ledge);
    transition: transform .12s ease, box-shadow .12s ease;
  }
  .wh-screen button.wh-card:hover { background: var(--sheen), #313c51; box-shadow: var(--lip), var(--ledge-up); }
  .wh-screen .wh-card.is-waiting { box-shadow: var(--lip-on), var(--ledge), 0 0 12px rgba(221, 165, 44, .25); }
  .wh-screen .wh-card-t { display: grid; gap: 3px; justify-items: start; min-width: 0; }
  .wh-screen .wh-card-k { font: calc(7px + 2px * var(--k))/1.2 var(--f-px); color: var(--gold); }
  .wh-screen .wh-card-l { font-style: normal; font-size: calc(16px + 3px * var(--k)); line-height: 1; }
  .wh-screen .wh-card-h { font-style: normal; font-size: calc(16px + 3px * var(--k)); line-height: 1; color: #fff1d6; }
  .wh-screen .wh-card-s { font-style: normal; font-size: calc(14px + 2px * var(--k)); line-height: 1; color: var(--dim); }
  .wh-screen .wh-pack-art {
    flex: none;
    width: calc(30px + 14px * var(--k));
    aspect-ratio: 2 / 3;
    background: center / contain no-repeat;
    transform: rotate(-8deg);
    filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .55));
  }
  .wh-screen .wh-pack.is-waiting .wh-pack-art { animation: wh-bob 2.4s ease-in-out infinite; }
  .wh-screen .wh-claim {
    margin-top: 2px;
    padding: calc(3px * var(--k)) calc(10px * var(--k)) calc(5px * var(--k));
    border-style: solid;
    border-width: calc(3px * var(--k)) calc(3px * var(--k)) calc(5px * var(--k));
    border-image: url('/assets/ui/kitb/btngold.png?v=2026-09-24a') 3 3 5 3 fill / calc(3px * var(--k)) calc(3px * var(--k)) calc(5px * var(--k)) stretch;
    background: none;
    font: calc(7px + 3px * var(--k))/1 var(--f-px);
    color: #2a1c0c;
    image-rendering: pixelated;
  }
  .wh-screen .wh-pips { display: flex; gap: 4px; }
  .wh-screen .wh-pip { width: calc(8px + 4px * var(--k)); aspect-ratio: 1; background: var(--well); box-shadow: inset 0 0 0 2px var(--line); }
  .wh-screen .wh-pip.is-done { background: var(--gold-btn); box-shadow: inset 0 0 0 2px var(--line), inset 0 2px 0 2px var(--gold-hi); }
  .wh-screen .wh-pip.is-ready { background: var(--green); }

  /* the tiles: one per window, each with what waits in it */
  .wh-screen .wh-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
  /* THE TILES ARE ICONS FIRST (round 5: "too many the same ... losing its
     individual look for each part"): a sunken round well with the door's
     glyph, the name under it, on a darker plate than the cards */
  .wh-screen .wh-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(2px * var(--k));
    padding: calc(4px * var(--k)) calc(4px * var(--k)) calc(4px * var(--k));
    border: 0;
    text-align: center;
    background: var(--sheen), var(--card);
    box-shadow: var(--lip), var(--ledge);
    transition: transform .12s ease, box-shadow .12s ease;
  }
  .wh-screen .wh-tile:hover { background: var(--sheen), #313c51; box-shadow: var(--lip), var(--ledge-up); }
  .wh-screen .wh-tile.is-waiting { box-shadow: var(--lip-on), var(--ledge); }
  .wh-screen .wh-tile { background: var(--sheen), #1f2738 !important; }
  .wh-screen .wh-tile .wh-glyph {
    width: calc(20px + 8px * var(--k));
    padding: calc(4px * var(--k));
    border-radius: 50%;
    background-color: #121823;
    background-origin: content-box;
    background-clip: content-box;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, .7), 0 0 0 2px var(--line), 0 0 0 3px #7e6440;
  }
  .wh-screen .wh-tile-t { display: grid; gap: 2px; min-width: 0; justify-items: center; max-width: 100%; }
  .wh-screen .wh-tile-t b { font: calc(7px + 2px * var(--k))/1.2 var(--f-px); color: var(--gold); font-weight: 400; }
  .wh-screen .wh-tile-t i { font-style: normal; font-size: calc(13px + 2px * var(--k)); line-height: 1; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .wh-screen .wh-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    z-index: 2;
    min-width: calc(18px + 6px * var(--k));
    padding: 5px 6px 6px;
    background: url('/assets/ui/kitb/badge.png?v=2026-09-24a') center / 100% 100% no-repeat;
    font: calc(6px + 3px * var(--k))/1 var(--f-px);
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 0 #5e1414;
    image-rendering: pixelated;
  }

  /* ── the standings: a slate window under the red ribbon ── */
  .wh-screen .wh-rcol { display: flex; flex-direction: column; gap: var(--gap); min-height: 0; }
  .wh-screen .wh-rcol > .wh-right { flex: 1 1 auto; }
  .wh-screen .wh-right {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: calc(6px * var(--k));
    min-height: 0;
    margin-top: calc(14px * var(--k));
    padding: calc(16px * var(--k)) calc(6px * var(--k)) calc(6px * var(--k));
    border-style: solid;
    border-width: calc(9px + 9px * var(--k));
    border-image: url('/assets/ui/kitb/slate-window.png?v=2026-09-24a') 18 fill / calc(9px + 9px * var(--k)) stretch;
    image-rendering: pixelated;
  }
  .wh-screen .wh-ribbon {
    position: absolute;
    top: calc(-9px - 9px * var(--k) - 11px * var(--k));
    left: 50%;
    transform: translateX(-50%);
    min-width: calc(116px * var(--k));
    box-sizing: border-box;
    padding: calc(2px * var(--k)) calc(28px * var(--k)) calc(9px * var(--k));
    border-style: solid;
    border-width: calc(2px * var(--k)) calc(24px * var(--k)) calc(9px * var(--k));
    border-image: url('/assets/ui/kitb/title.png?v=2026-09-24a') 2 24 9 24 fill / calc(2px * var(--k)) calc(24px * var(--k)) calc(9px * var(--k)) stretch;
    font: 400 calc(16px * var(--k))/1 var(--f-tome);
    color: #f7e6c4;
    text-align: center;
    text-shadow: 0 calc(1px * var(--k)) 0 #5e1414;
    white-space: nowrap;
  }
  .wh-screen .wh-tabs { display: flex; gap: 4px; }
  .wh-screen .wh-tab {
    flex: 1;
    padding: calc(3px * var(--k)) calc(8px * var(--k)) calc(5px * var(--k));
    border-style: solid;
    border-width: calc(3px * var(--k)) calc(3px * var(--k)) calc(5px * var(--k));
    border-image: url('/assets/ui/kitb/btn.png?v=2026-09-24a') 3 3 5 3 fill / calc(3px * var(--k)) calc(3px * var(--k)) calc(5px * var(--k)) stretch;
    background: none;
    font: calc(6px + 2px * var(--k))/1.2 var(--f-px);
    color: var(--ink);
    white-space: nowrap;
    image-rendering: pixelated;
  }
  .wh-screen .wh-tab[aria-current='page'] {
    border-width: calc(6px * var(--k));
    border-image: url('/assets/ui/kitb/tab-on-red.png?v=2026-09-24a') 6 fill / calc(6px * var(--k)) stretch;
    padding: 0 calc(5px * var(--k)) calc(2px * var(--k));
    color: #f7e6c4;
    text-shadow: 0 2px 0 #5e1414;
  }
  /* the standings fill the panel and YOUR STANDING is always in view: only the rows scroll */
  .wh-screen .wh-board { display: flex; flex-direction: column; gap: calc(4px * var(--k)); min-height: 0; flex: 1; overflow: hidden; }
  .wh-screen .wh-bhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 4px; }
  .wh-screen .wh-bname { font: 400 calc(16px + 7px * var(--k))/1 var(--f-tome); color: var(--gold); }
  .wh-screen .wh-bwin { font-style: normal; font-size: calc(14px + 3px * var(--k)); color: var(--dim); }

  /* the podium: first stands in the middle and tallest, each wearing their house */
  .wh-screen .wh-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: calc(4px * var(--k)); padding: 0 2px; }
  .wh-screen .wh-step { display: grid; justify-items: center; min-width: 0; flex: none; }
  .wh-screen .wh-podium { flex: none; }
  .wh-screen .wh-step.is-none { visibility: hidden; }
  .wh-screen .wh-crest { position: relative; display: grid; place-items: center; height: calc(34px + 22px * var(--k)); }
  .wh-screen .wh-sigil { display: block; height: calc(34px + 22px * var(--k)); width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .6)); }
  .wh-screen .wh-step.is-gold .wh-sigil { height: calc(44px + 28px * var(--k)); }
  .wh-screen .wh-step.is-gold .wh-crest { height: calc(44px + 28px * var(--k)); }
  .wh-screen .wh-medal {
    position: absolute;
    bottom: -4px;
    right: -6px;
    display: grid;
    place-items: center;
    width: calc(16px + 6px * var(--k));
    aspect-ratio: 1;
    font: calc(7px + 3px * var(--k))/1 var(--f-px);
    color: #2a1c0c;
    background: var(--gold-btn);
    box-shadow: 0 0 0 2px var(--line);
  }
  .wh-screen .wh-plate {
    --pl-hi: #f4d98a; --pl-mid: #d8a657; --pl-lo: #a97c32;
    display: grid;
    justify-items: center;
    gap: 2px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
    padding: calc(5px * var(--k)) 6px calc(6px * var(--k));
    min-height: calc(34px + 16px * var(--k));
    background-image:
      repeating-linear-gradient(160deg, rgba(255, 255, 255, .10) 0 1px, rgba(0, 0, 0, 0) 1px 3px, rgba(0, 0, 0, .05) 3px 4px, rgba(0, 0, 0, 0) 4px 8px),
      linear-gradient(180deg, var(--pl-hi), var(--pl-mid) 55%, var(--pl-lo));
    box-shadow: inset 0 0 0 2px var(--line), inset 0 4px 0 2px rgba(255, 255, 255, .35);
    color: #2a1c0c;
  }
  .wh-screen .wh-step.is-gold .wh-plate { min-height: calc(46px + 22px * var(--k)); }
  .wh-screen .wh-step.is-silver .wh-plate { --pl-hi: #e6e9ef; --pl-mid: #b9c0cc; --pl-lo: #8b93a1; }
  .wh-screen .wh-step.is-bronze .wh-plate { --pl-hi: #ecc08f; --pl-mid: #cf9560; --pl-lo: #a8703c; }
  .wh-screen .wh-step.is-silver .wh-medal { background: #c9cfd9; }
  .wh-screen .wh-step.is-bronze .wh-medal { background: #d49a63; }
  .wh-screen .wh-step.is-you .wh-plate { box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px var(--red-hi), inset 0 6px 0 2px rgba(255, 255, 255, .35); }
  .wh-screen .wh-pname { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 calc(16px + 4px * var(--k))/1 var(--f-vt); }
  .wh-screen .wh-pval { font: calc(7px + 3px * var(--k))/1 var(--f-px); }

  .wh-screen .wh-rows { display: grid; align-content: start; flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
  .wh-screen .wh-row {
    display: grid;
    grid-template-columns: calc(20px + 10px * var(--k)) calc(16px + 6px * var(--k)) minmax(0, 1fr) auto;
    align-items: center;
    gap: calc(6px * var(--k));
    padding: calc(2px * var(--k)) 6px;
    font-size: calc(16px + 3px * var(--k));
    line-height: 1.15;
  }
  .wh-screen .wh-row:not(.is-you):nth-child(even) { background: rgba(0, 0, 0, .16); }
  .wh-screen .wh-rk { text-align: right; font: calc(6px + 2px * var(--k))/1 var(--f-px); color: var(--ink-2); }
  .wh-screen .wh-rsig { width: 100%; height: auto; display: block; }
  .wh-screen .wh-who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wh-screen .wh-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--gold); }
  .wh-screen .wh-row.is-you { background: linear-gradient(rgba(163, 52, 59, .34), rgba(163, 52, 59, .34)), var(--slate); box-shadow: inset 3px 0 0 0 var(--red-hi); }
  .wh-screen .wh-cut { padding: 3px 8px; border-top: 2px dashed rgba(227, 199, 154, .35); font-size: calc(14px + 2px * var(--k)); color: var(--dim); text-align: right; }

  .wh-screen .wh-you {
    display: grid;
    gap: calc(4px * var(--k));
    margin-top: auto;
    padding: calc(6px * var(--k)) calc(10px * var(--k));
    border-style: solid;
    border-width: calc(6px * var(--k));
    border-image: url('/assets/ui/kitb/well.png?v=2026-09-24a') 10 fill / calc(6px * var(--k)) stretch;
    image-rendering: pixelated;
  }
  .wh-screen .wh-you-head { display: flex; align-items: center; gap: calc(10px * var(--k)); flex-wrap: wrap; }
  .wh-screen .wh-you-k { width: 100%; font: calc(6px + 2px * var(--k))/1 var(--f-px); font-style: normal; color: var(--dim); letter-spacing: .06em; text-transform: uppercase; }
  .wh-screen .wh-you-line { display: flex; align-items: baseline; gap: 8px; }
  .wh-screen .wh-you-rank { font: calc(14px + 10px * var(--k))/1 var(--f-px); color: #ffd2cc; text-shadow: 0 3px 0 #5e1414; }
  .wh-screen .wh-you-rank.is-none { color: var(--dim); text-shadow: none; }
  .wh-screen .wh-you-of { font-size: calc(16px + 3px * var(--k)); color: var(--ink-2); }
  .wh-screen .wh-you-val { margin-left: auto; font-size: calc(16px + 3px * var(--k)); color: var(--gold); }
  .wh-screen .wh-hint { margin: 0; font-size: calc(18px + 4px * var(--k)); line-height: 1.05; color: #fff1d6; }
  .wh-screen .wh-hint.is-first { color: var(--gold); }
  .wh-screen .wh-go {
    justify-self: start;
    padding: calc(4px * var(--k)) calc(14px * var(--k)) calc(6px * var(--k));
    border-style: solid;
    border-width: calc(3px * var(--k)) calc(3px * var(--k)) calc(5px * var(--k));
    border-image: url('/assets/ui/kitb/btngold.png?v=2026-09-24a') 3 3 5 3 fill / calc(3px * var(--k)) calc(3px * var(--k)) calc(5px * var(--k)) stretch;
    background: none;
    font: calc(7px + 3px * var(--k))/1 var(--f-px);
    color: #2a1c0c;
    text-transform: uppercase;
    image-rendering: pixelated;
  }

  /* ── the cats on the standings: the bust in a frame, the house over the shoulder ── */
  .wh-screen .wh-cat {
    position: relative;
    display: block;
    flex: none;
    width: calc(30px + 8px * var(--k));
    aspect-ratio: 1;
    background: radial-gradient(circle at 50% 35%, #3b4a66, var(--well) 70%);
    box-shadow: inset 0 0 0 2px var(--line), 0 0 0 2px var(--line);
  }
  .wh-screen .wh-cat-pic { width: 100%; height: 100%; display: block; image-rendering: pixelated; object-fit: cover; }
  .wh-screen .wh-cat-pic.is-sigil { object-fit: contain; padding: 10%; box-sizing: border-box; image-rendering: auto; }
  /* the house badge sits on the frame's top-left corner, clear of the place number (round 4) */
  .wh-screen .wh-cat-badge {
    position: absolute;
    left: -16%;
    top: -14%;
    width: 46%;
    height: auto;
    filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .7));
  }
  .wh-screen .wh-cat.is-podium { width: calc(48px + 22px * var(--k)); box-shadow: inset 0 0 0 2px var(--line), 0 0 0 2px var(--line), 0 0 0 4px var(--gold-btn), 0 0 0 6px var(--line); }
  .wh-screen .wh-step.is-gold .wh-cat.is-podium { width: calc(58px + 28px * var(--k)); }
  .wh-screen .wh-step.is-silver .wh-cat.is-podium { box-shadow: inset 0 0 0 2px var(--line), 0 0 0 2px var(--line), 0 0 0 4px #c9cfd9, 0 0 0 6px var(--line); }
  .wh-screen .wh-step.is-bronze .wh-cat.is-podium { box-shadow: inset 0 0 0 2px var(--line), 0 0 0 2px var(--line), 0 0 0 4px #d49a63, 0 0 0 6px var(--line); }
  .wh-screen .wh-crest { height: auto; padding-bottom: 6px; }
  .wh-screen .wh-cat.is-row { width: calc(20px + 8px * var(--k)); }
  .wh-screen .wh-cat.is-row .wh-cat-badge { left: -22%; top: -18%; width: 52%; }
  .wh-screen .wh-row { grid-template-columns: calc(20px + 10px * var(--k)) calc(24px + 10px * var(--k)) minmax(0, 1fr) auto; }
  .wh-screen .wh-gcrest {
    display: grid;
    place-items: center;
    width: calc(30px + 8px * var(--k));
    aspect-ratio: 5 / 6;
    clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%);
    background: linear-gradient(180deg, #4b5874, #2a3345);
    font: calc(5px + 2px * var(--k))/1 var(--f-px);
    color: var(--gold);
  }
  .wh-screen .wh-gcrest.is-podium { width: calc(48px + 22px * var(--k)); background: linear-gradient(180deg, #a3343b, #5e1414); font-size: calc(7px + 3px * var(--k)); color: #fff1d6; }
  .wh-screen .wh-pmem { font-size: calc(13px + 2px * var(--k)); }
  .wh-screen .wh-featured {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px calc(8px * var(--k));
    padding: calc(5px * var(--k)) calc(10px * var(--k));
    overflow: hidden;
    background: linear-gradient(90deg, rgba(221, 165, 44, .22), rgba(221, 165, 44, .05)), var(--card);
    box-shadow: var(--lip-on), var(--ledge);
  }
  .wh-screen .wh-featured::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 236, 190, .18) 50%, transparent 60%);
    transform: translateX(-100%);
    animation: wh-sweep 3.6s 1s ease-in-out infinite;
    pointer-events: none;
  }
  .wh-screen .wh-featured-k { grid-column: 1 / -1; font: calc(5px + 2px * var(--k))/1 var(--f-px); color: var(--gold-btn); letter-spacing: .08em; }
  .wh-screen .wh-featured-t { display: grid; gap: 2px; min-width: 0; }
  .wh-screen .wh-featured-t b { font: 400 calc(16px + 5px * var(--k))/1 var(--f-tome); color: #fff1d6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wh-screen .wh-featured-t i { font-style: normal; font-size: calc(14px + 2px * var(--k)); color: var(--dim); }
  .wh-screen .wh-featured-links { display: flex; gap: 6px; }
  .wh-screen .wh-featured-link {
    padding: calc(2px * var(--k)) calc(8px * var(--k)) calc(4px * var(--k));
    border-style: solid;
    border-width: calc(3px * var(--k)) calc(3px * var(--k)) calc(5px * var(--k));
    border-image: url('/assets/ui/kitb/btngold.png?v=2026-09-24a') 3 3 5 3 fill / calc(3px * var(--k)) calc(3px * var(--k)) calc(5px * var(--k)) stretch;
    font: calc(6px + 2px * var(--k))/1.2 var(--f-px);
    color: #2a1c0c;
    text-decoration: none;
    image-rendering: pixelated;
  }

  /* ── what's on: join, coming up, the news ── */
  .wh-screen .wh-join {
    display: grid;
    gap: calc(5px * var(--k));
    padding: calc(8px * var(--k)) calc(10px * var(--k));
    background: linear-gradient(180deg, rgba(221, 165, 44, .16), rgba(221, 165, 44, 0) 60%), var(--card);
    box-shadow: var(--lip-on), var(--ledge);
  }
  .wh-screen .wh-join-k { font: 400 calc(16px + 5px * var(--k))/1 var(--f-tome); color: #fff1d6; text-shadow: 0 2px 0 var(--line); }
  .wh-screen .wh-join-line { font-style: normal; font-size: calc(15px + 3px * var(--k)); line-height: 1; color: var(--ink-2); }
  .wh-screen .wh-join-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: calc(6px * var(--k)); }
  .wh-screen .wh-join-code {
    min-width: 0;
    padding: calc(4px * var(--k)) calc(8px * var(--k));
    border: 0;
    background: var(--well);
    box-shadow: inset 0 0 0 2px var(--line), inset 0 3px 0 2px #0f141d;
    font: calc(9px + 5px * var(--k))/1.3 var(--f-px);
    letter-spacing: .2em;
    color: var(--gold);
    text-transform: uppercase;
  }
  .wh-screen .wh-join-code::placeholder { color: #55617a; }
  .wh-screen .wh-join-code:focus { outline: 3px solid var(--gold-hi); outline-offset: 1px; }
  .wh-screen .wh-join-go {
    padding: calc(4px * var(--k)) calc(14px * var(--k)) calc(6px * var(--k));
    border-style: solid;
    border-width: calc(3px * var(--k)) calc(3px * var(--k)) calc(5px * var(--k));
    border-image: url('/assets/ui/kitb/btngold.png?v=2026-09-24a') 3 3 5 3 fill / calc(3px * var(--k)) calc(3px * var(--k)) calc(5px * var(--k)) stretch;
    background: none;
    font: calc(8px + 4px * var(--k))/1 var(--f-px);
    color: #2a1c0c;
    image-rendering: pixelated;
  }
  .wh-screen .wh-join-msg:empty { display: none; }
  .wh-screen .wh-join-msg { margin: 0; font-size: calc(14px + 2px * var(--k)); color: var(--red-hi); }
  .wh-screen .wh-join-live {
    display: flex;
    align-items: center;
    gap: calc(6px * var(--k));
    padding: calc(5px * var(--k)) calc(8px * var(--k));
    border: 0;
    text-align: left;
    background: linear-gradient(90deg, rgba(143, 216, 154, .25), rgba(143, 216, 154, .05)), var(--well);
    box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px #3d7a48, var(--ledge);
  }
  .wh-screen .wh-join-live b { flex: 1; font-size: calc(16px + 4px * var(--k)); color: #e9ffe9; }
  .wh-screen .wh-join-enter { font: calc(7px + 3px * var(--k))/1 var(--f-px); color: var(--green); }

  /* a rumour going round about you (#5239 TG-i2): told on Home, squashed from here */
  .wh-screen .wh-rumour[hidden] { display: none; }
  .wh-screen .wh-rumour {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: calc(3px * var(--k)) calc(8px * var(--k));
    padding: calc(6px * var(--k)) calc(10px * var(--k));
    background: linear-gradient(180deg, rgba(196, 98, 196, .16), rgba(196, 98, 196, 0) 60%), var(--card);
    box-shadow: var(--lip), var(--ledge);
  }
  .wh-screen .wh-rumour > :not(.wh-rumour-go) { grid-column: 1; }
  .wh-screen .wh-rumour-k { font: calc(7px + 2px * var(--k))/1.2 var(--f-px); color: var(--gold); }
  .wh-screen .wh-rumour-line { margin: 0; font-size: calc(16px + 3px * var(--k)); line-height: 1.05; color: #fff1d6; }
  .wh-screen .wh-rumour-s { font-style: normal; font-size: calc(14px + 2px * var(--k)); line-height: 1; color: var(--dim); }
  .wh-screen .wh-rumour-go { grid-column: 2; grid-row: 1 / span 3; }
  .wh-screen .wh-rumour-msg:empty { display: none; }
  .wh-screen .wh-rumour-msg { margin: 0; font-size: calc(14px + 2px * var(--k)); color: var(--ink-2); }
  .wh-screen .wh-rumour.is-squashed .wh-rumour-line { text-decoration: line-through; color: var(--dim); }

  .wh-screen .wh-events { display: grid; gap: calc(6px * var(--k)); }
  .wh-screen .wh-event {
    display: grid;
    grid-template-columns: calc(34px + 10px * var(--k)) minmax(0, 1fr) auto;
    align-items: center;
    gap: calc(6px * var(--k));
    padding: calc(4px * var(--k));
    background: var(--sheen), var(--card);
    box-shadow: var(--lip), var(--ledge);
    transition: transform .12s ease;
  }
  .wh-screen .wh-event-art { align-self: stretch; min-height: calc(30px + 8px * var(--k)); background: center / cover no-repeat; box-shadow: inset 0 0 0 2px var(--line); }
  .wh-screen .wh-event-t { display: grid; gap: 2px; min-width: 0; }
  .wh-screen .wh-event-mode { font: calc(5px + 2px * var(--k))/1 var(--f-px); color: var(--gold-btn); letter-spacing: .06em; }
  .wh-screen .wh-event-name { font: 400 calc(14px + 3px * var(--k))/1 var(--f-tome); color: #fff1d6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wh-screen .wh-event-line { font-style: normal; font-size: calc(14px + 2px * var(--k)); line-height: 1; color: var(--ink-2); }
  .wh-screen .wh-event-meta { display: flex; gap: 8px; font-size: calc(13px + 2px * var(--k)); line-height: 1; color: var(--dim); white-space: nowrap; }
  .wh-screen .wh-event-when { color: var(--gold); }
  /* the prize line and the Space link (#4786) */
  .wh-screen .wh-event-prize { font-size: calc(13px + 2px * var(--k)); line-height: 1; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wh-screen .wh-event-space { font-size: calc(13px + 2px * var(--k)); line-height: 1; color: var(--gold); text-decoration: underline; text-underline-offset: 2px; justify-self: start; }
  .wh-screen .wh-signup {
    padding: calc(3px * var(--k)) calc(8px * var(--k)) calc(5px * var(--k));
    border-style: solid;
    border-width: calc(3px * var(--k)) calc(3px * var(--k)) calc(5px * var(--k));
    border-image: url('/assets/ui/kitb/btn.png?v=2026-09-24a') 3 3 5 3 fill / calc(3px * var(--k)) calc(3px * var(--k)) calc(5px * var(--k)) stretch;
    background: none;
    font: calc(5px + 2px * var(--k))/1.2 var(--f-px);
    color: var(--ink);
    image-rendering: pixelated;
    white-space: nowrap;
  }
  .wh-screen .wh-signup.is-on {
    border-width: calc(6px * var(--k));
    border-image: url('/assets/ui/kitb/tab-on-red.png?v=2026-09-24a') 6 fill / calc(6px * var(--k)) stretch;
    padding: 0 calc(5px * var(--k)) calc(2px * var(--k));
    color: #f7e6c4;
  }

  /* BRING A FRIEND (#4725, 2026-11-10): an event card's grammar, the link
     as its name, COPY LINK as its button; the words open the full section */
  .wh-screen .wh-refer { display: grid; gap: calc(6px * var(--k)); }
  .wh-screen .wh-refer-open {
    margin: 0; padding: 2px 0; border: 0; background: none; height: auto; min-height: 0;
    font: inherit; line-height: normal; color: inherit; text-align: left; cursor: pointer;
    align-content: center;
  }
  .wh-screen .wh-refer-open:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
  .wh-screen .wh-refer-card { grid-template-columns: calc(34px + 10px * var(--k)) minmax(0, 1fr) auto; }
  .wh-screen .wh-refer-card .wh-event-art { background-size: contain; background-color: rgba(0, 0, 0, .22); }
  .wh-screen .wh-refer-link { color: var(--gold); }
  .wh-screen .wh-refer-link.is-by-hand { white-space: normal; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
  .wh-screen .wh-refer-status { white-space: normal; line-height: 1.1; }

  .wh-screen .wh-news { display: grid; gap: calc(5px * var(--k)); align-content: start; }
  .wh-screen .wh-news-lead {
    padding: calc(6px * var(--k)) calc(10px * var(--k));
    background: var(--sheen), var(--card);
    box-shadow: var(--lip), var(--ledge);
  }
  .wh-screen .wh-news-lead b { display: block; font: 400 calc(15px + 5px * var(--k))/1.05 var(--f-tome); color: #fff1d6; }
  .wh-screen .wh-news-lead p { margin: 4px 0 0; font-size: calc(15px + 3px * var(--k)); line-height: 1.05; color: var(--ink-2); }
  .wh-screen .wh-news-sub { font: calc(5px + 2px * var(--k))/1 var(--f-px); color: var(--dim); letter-spacing: .06em; text-transform: uppercase; }
  .wh-screen .wh-news-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
  .wh-screen .wh-news-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; padding: 3px 6px; font-size: calc(14px + 3px * var(--k)); line-height: 1.05; }
  .wh-screen .wh-news-list li:nth-child(odd) { background: rgba(0, 0, 0, .16); }
  .wh-screen .wh-news-date { font: calc(5px + 2px * var(--k))/1.6 var(--f-px); color: var(--gold); }
  .wh-screen .wh-news-text { color: var(--ink-2); }

  /* the guild showcase: a parchment card (kit B card.png), unlike anything
     else on the screen, washed in the guild's own colour */
  .wh-screen .wh-showcase {
    --sc-accent: #a3343b;
    position: relative;
    display: grid;
    gap: calc(4px * var(--k));
    padding: calc(6px * var(--k)) calc(10px * var(--k)) calc(8px * var(--k));
    border-style: solid;
    border-width: calc(5px * var(--k));
    border-image: url('/assets/ui/kitb/card.png?v=2026-09-24a') 5 fill / calc(5px * var(--k)) stretch;
    image-rendering: pixelated;
    color: #2a1c0c;
    filter: drop-shadow(0 4px 0 #05070b) drop-shadow(0 8px 12px rgba(0, 0, 0, .45));
  }
  .wh-screen .wh-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, color-mix(in srgb, var(--sc-accent) 30%, transparent), transparent 55%);
    pointer-events: none;
  }
  .wh-screen .wh-showcase > * { position: relative; }
  .wh-screen .wh-sc-head { display: flex; justify-content: space-between; align-items: center; }
  .wh-screen .wh-sc-k { font: calc(5px + 2px * var(--k))/1 var(--f-px); letter-spacing: .08em; color: #6b4a1a; }
  .wh-screen .wh-sc-rank { font: calc(5px + 2px * var(--k))/1 var(--f-px); color: #fff; background: var(--sc-accent); padding: 3px 6px; box-shadow: 0 0 0 2px var(--line); }
  .wh-screen .wh-sc-main { display: flex; align-items: center; gap: calc(8px * var(--k)); min-width: 0; }
  .wh-screen .wh-sc-coin { width: calc(26px + 10px * var(--k)); height: calc(26px + 10px * var(--k)); border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--line), 0 0 0 4px #caa982; background: #fff; }
  .wh-screen .wh-sc-t { display: grid; gap: 2px; min-width: 0; }
  .wh-screen .wh-sc-t b { font: 400 calc(16px + 6px * var(--k))/1 var(--f-tome); color: #2a1c0c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wh-screen .wh-sc-t i { font-style: normal; font-size: calc(14px + 3px * var(--k)); color: #5a4328; }
  .wh-screen .wh-sc-stats { display: flex; gap: calc(14px * var(--k)); }
  .wh-screen .wh-sc-stat { display: grid; line-height: 1; }
  .wh-screen .wh-sc-stat b { font: calc(8px + 4px * var(--k))/1 var(--f-px); color: #2a1c0c; }
  .wh-screen .wh-sc-stat i { font-style: normal; font-size: calc(13px + 2px * var(--k)); color: #6b5537; }
  .wh-screen .wh-sc-acts { display: flex; flex-wrap: wrap; gap: 6px; }
  .wh-screen .wh-sc-link {
    padding: calc(3px * var(--k)) calc(8px * var(--k)) calc(5px * var(--k));
    border-style: solid;
    border-width: calc(3px * var(--k)) calc(3px * var(--k)) calc(5px * var(--k));
    border-image: url('/assets/ui/kitb/btn.png?v=2026-09-24a') 3 3 5 3 fill / calc(3px * var(--k)) calc(3px * var(--k)) calc(5px * var(--k)) stretch;
    background: none;
    font: calc(5px + 2px * var(--k))/1.2 var(--f-px);
    color: var(--ink);
    text-decoration: none;
    image-rendering: pixelated;
    filter: drop-shadow(0 3px 0 #05070b);
  }
  .wh-screen .wh-sc-link.is-main { border-image-source: url('/assets/ui/kitb/btngold.png?v=2026-09-24a'); color: #2a1c0c; }
  .wh-screen .wh-sc-link:hover { filter: brightness(1.12) drop-shadow(0 4px 0 #05070b); }
  .wh-screen .wh-gcrest { background: linear-gradient(180deg, color-mix(in srgb, var(--crest, #4b5874) 85%, #fff), var(--crest, #2a3345)); }
  .wh-screen .wh-gcrest.is-showcase { width: calc(30px + 12px * var(--k)); color: #fff1d6; font-size: calc(6px + 2px * var(--k)); box-shadow: none; }

  /* the top guild, in the top bar: a little banner, its own advertising space */
  .wh-screen .wh-topguild {
    justify-self: center;
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: calc(8px * var(--k));
    padding: calc(4px * var(--k)) calc(12px * var(--k)) calc(4px * var(--k)) calc(8px * var(--k));
    border: 0;
    text-align: left;
    background: linear-gradient(90deg, rgba(221, 165, 44, .2), rgba(221, 165, 44, .04)), var(--well);
    box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 3px #7e6440, var(--ledge);
    transition: transform .12s ease;
  }
  .wh-screen .wh-topguild.is-partner { box-shadow: var(--lip-on), var(--ledge); }
  .wh-screen .wh-topguild:hover { transform: translateY(-2px); }
  .wh-screen .wh-topguild-k { grid-column: 1 / -1; font: calc(5px + 2px * var(--k))/1 var(--f-px); letter-spacing: .08em; color: var(--gold-btn); }
  .wh-screen .wh-gcrest.is-top { width: calc(22px + 6px * var(--k)); background: linear-gradient(180deg, #a3343b, #5e1414); color: #fff1d6; font-size: calc(5px + 2px * var(--k)); }
  .wh-screen .wh-topguild-t { display: grid; gap: 1px; min-width: 0; }
  .wh-screen .wh-topguild-t b { font: 400 calc(14px + 4px * var(--k))/1 var(--f-tome); color: #fff1d6; white-space: nowrap; }
  .wh-screen .wh-topguild-t i { font-style: normal; font-size: calc(13px + 2px * var(--k)); color: var(--dim); white-space: nowrap; }
  .wh-screen .wh-face { padding: 0; border: 0; cursor: pointer; }
  .wh-screen :is(.wh-row, .wh-step).is-link { cursor: pointer; }
  .wh-screen .wh-row.is-link:hover { background: rgba(255, 255, 255, .07); }
  .wh-screen .wh-step.is-link:hover .wh-plate { filter: brightness(1.08); }


  /* ══ ROUND 6 (Wray, 2026-10-27: "the top bar doesnt need to cover so much
     it can just be plates like pokebonk does it", and "the bottom left
     buttons can be stylised better") ══════════════════════════════════════ */

  /* THE TOP BAR IS PLATES, floating over the world: your name on the hero
     plate (plate.png, the studded bar the HUD's own plate is cut from), each
     coin on its own small plate, Inbox and Settings in the nav row's door. */
  .wh-screen .wh-top {
    border: 0;
    border-image: none;
    padding: 0;
    background: none;
  }
  .wh-screen .wh-me {
    padding: calc(2px * var(--k)) calc(14px + 6px * var(--k)) calc(2px * var(--k)) calc(4px * var(--k));
    border-style: solid;
    border-width: calc(3px + 3px * var(--k)) calc(5px + 5px * var(--k));
    border-image: url('/assets/ui/kitb/plate.png?v=2026-09-24a') 6 10 6 10 fill / calc(3px + 3px * var(--k)) calc(5px + 5px * var(--k)) stretch;
    image-rendering: pixelated;
    filter: drop-shadow(0 3px 0 #05070b) drop-shadow(0 6px 10px rgba(0, 0, 0, .45));
  }
  .wh-screen .wh-coin {
    padding: 0 calc(10px * var(--k)) 0 calc(4px * var(--k));
    border-width: calc(3px + 3px * var(--k)) calc(5px + 5px * var(--k));
    border-image: url('/assets/ui/kitb/plate.png?v=2026-09-24a') 6 10 6 10 fill / calc(3px + 3px * var(--k)) calc(5px + 5px * var(--k)) stretch;
    filter: drop-shadow(0 3px 0 #05070b) drop-shadow(0 6px 10px rgba(0, 0, 0, .45));
  }
  .wh-screen .wh-icon {
    border-width: calc(4px + 4px * var(--k));
    border-image: url('/assets/ui/kitb/door.png?v=2026-09-24a') 8 fill / calc(4px + 4px * var(--k)) stretch;
    padding: calc(2px * var(--k)) calc(6px * var(--k));
  }
  .wh-screen .wh-icon:hover { border-image-source: url('/assets/ui/kitb/dooron.png?v=2026-09-24a'); filter: none; }

  /* THE TILES ARE DOORS: the nav row's own frame (door.png, gold rim; lit
     dooron.png under the pointer), each lit from behind in its own colour,
     the glyph large in the middle and the name on a small plate beneath. */
  /* one row of doors, as PokéBonk's grid reads; the counts ride the badges */
  .wh-screen .wh-tiles { grid-template-columns: repeat(auto-fit, minmax(calc(58px + 10px * var(--k)), 1fr)); gap: calc(4px + 2px * var(--k)); }
  .wh-screen .wh-tile-t i { display: none; }
  .wh-screen .wh-tile {
    --tile: #8fa3c7;
    padding: 0;
    gap: 0;
    background: none !important;
    box-shadow: none !important;
    filter: none;
  }
  .wh-screen .wh-tile[data-tile='spellbook'] { --tile: #e0535c; }
  .wh-screen .wh-tile[data-tile='nine']      { --tile: #e09a3a; }
  .wh-screen .wh-tile[data-tile='stall']     { --tile: #f3c64a; }
  .wh-screen .wh-tile[data-tile='bazaar']    { --tile: #4fd1b5; }
  .wh-screen .wh-tile[data-tile='guild']     { --tile: #6aa8ff; }
  .wh-screen .wh-tile[data-tile='friends']   { --tile: #ff9f5a; }
  .wh-screen .wh-tile[data-tile='messages']  { --tile: #b48cff; }
  .wh-screen .wh-tile .wh-glyph,
  .wh-screen .wh-tile[data-tile] .wh-glyph {
    box-sizing: border-box;
    width: 100%;
    max-width: calc(62px + 22px * var(--k));
    aspect-ratio: 1;
    padding: calc(7px + 4px * var(--k));
    border-radius: 0;
    border-style: solid;
    border-width: calc(4px + 4px * var(--k));
    border-image: url('/assets/ui/kitb/door.png?v=2026-09-24a') 8 / calc(4px + 4px * var(--k)) stretch;
    background-color: #151b28;
    background-image:
      url('/assets/ui/nav-icons.png?v=2026-09-06b'),
      radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--tile) 85%, transparent) 0, color-mix(in srgb, var(--tile) 35%, transparent) 42%, color-mix(in srgb, var(--tile) 8%, transparent) 70%);
    background-size: 1000% 200%, 100% 100%;
    background-origin: content-box, padding-box;
    background-clip: content-box, padding-box;
    background-repeat: no-repeat;
    box-shadow: inset 0 -6px 12px rgba(0, 0, 0, .55);
    image-rendering: pixelated;
    transition: transform .12s ease;
  }
  .wh-screen .wh-tile[data-tile='friends'] .wh-glyph {
    background-image:
      url('/assets/ui/home-icon.png?v=2026-10-27a'),
      radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--tile) 85%, transparent) 0, color-mix(in srgb, var(--tile) 35%, transparent) 42%, color-mix(in srgb, var(--tile) 8%, transparent) 70%);
    background-size: 100% 200%, 100% 100%;
    background-position: 0 0, 0 0;
  }
  .wh-screen .wh-tile:is(:hover, :focus-visible) .wh-glyph { border-image-source: url('/assets/ui/kitb/dooron.png?v=2026-09-24a'); border-image-slice: 11; transform: translateY(-2px); }
  .wh-screen .wh-tile:active .wh-glyph { transform: translateY(1px); }
  .wh-screen .wh-tile.is-waiting .wh-glyph { border-image-source: url('/assets/ui/kitb/dooron.png?v=2026-09-24a'); border-image-slice: 11; }
  .wh-screen .wh-tile:hover { transform: none; }
  .wh-screen .wh-tile-t {
    margin-top: calc(-3px * var(--k));
    padding: calc(2px * var(--k)) calc(8px * var(--k)) calc(3px * var(--k));
    background: linear-gradient(180deg, #2b3448, #1a2030);
    box-shadow: inset 0 0 0 2px var(--line), inset 0 2px 0 2px color-mix(in srgb, var(--tile) 55%, #2b3448);
  }
  .wh-screen .wh-tile-t b { color: #fff1d6; }
  .wh-screen .wh-tile .wh-badge { top: -4px; right: calc(50% - 30px - 14px * var(--k)); }


  /* ══ ROUND 7, THE STANDINGS (Wray, 2026-10-27: "feels a little cramped ...
     not a big fan of the 4 big buttons over the top ... not much room to see
     players further down the board"). Slim tabs in one well, a shorter
     podium, tighter rows that scroll, your standing in two lines. ══════════ */
  .wh-screen .wh-tabs {
    gap: 0;
    padding: 3px;
    background: var(--well);
    box-shadow: inset 0 0 0 2px var(--line), inset 0 3px 0 2px #0f141d;
  }
  .wh-screen .wh-tab,
  .wh-screen .wh-tab[aria-current='page'] {
    flex: 1;
    padding: calc(4px + 2px * var(--k)) 4px;
    border: 0;
    border-image: none;
    background: none;
    font: calc(5px + 2px * var(--k))/1 var(--f-px);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--dim);
    text-shadow: none;
    filter: none;
  }
  .wh-screen .wh-tab:hover { color: var(--ink); transform: none; filter: none; }
  .wh-screen .wh-tab[aria-current='page'] {
    color: #fff1d6;
    background: linear-gradient(180deg, #c0444c, #8e2a31);
    box-shadow: inset 0 0 0 2px var(--line), inset 0 2px 0 2px #e66a71;
  }
  .wh-screen .wh-bhead { padding: 0 2px; }
  .wh-screen .wh-bname { font-size: calc(13px + 4px * var(--k)); }
  .wh-screen .wh-bwin { font-size: calc(12px + 2px * var(--k)); }

  .wh-screen .wh-podium { gap: calc(3px * var(--k)); }
  .wh-screen .wh-cat.is-podium { width: calc(36px + 14px * var(--k)); }
  .wh-screen .wh-step.is-gold .wh-cat.is-podium { width: calc(44px + 18px * var(--k)); }
  .wh-screen .wh-gcrest.is-podium { width: calc(36px + 14px * var(--k)); }
  .wh-screen .wh-plate,
  .wh-screen .wh-step.is-gold .wh-plate { min-height: 0; margin-top: 3px; padding: calc(3px * var(--k)) 4px; gap: 1px; }
  .wh-screen .wh-pname { font-size: calc(14px + 3px * var(--k)); }
  .wh-screen .wh-pval { font-size: calc(6px + 2px * var(--k)); }
  .wh-screen .wh-pmem { display: none; }

  .wh-screen .wh-rows { border-top: 2px solid rgba(227, 199, 154, .18); }
  .wh-screen .wh-row { padding: calc(1px * var(--k)) 6px; font-size: calc(15px + 2px * var(--k)); }
  .wh-screen .wh-cat.is-row { width: calc(18px + 6px * var(--k)); }
  .wh-screen .wh-row { grid-template-columns: calc(18px + 8px * var(--k)) calc(22px + 8px * var(--k)) minmax(0, 1fr) auto; }

  .wh-screen .wh-you {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: calc(2px * var(--k)) calc(8px * var(--k));
    padding: calc(4px * var(--k)) calc(8px * var(--k));
  }
  .wh-screen .wh-you-head { grid-column: 1 / -1; flex-wrap: nowrap; gap: calc(8px * var(--k)); }
  .wh-screen .wh-you-k { width: auto; }
  .wh-screen .wh-you-rank { font-size: calc(12px + 6px * var(--k)); }
  .wh-screen .wh-hint { font-size: calc(15px + 3px * var(--k)); }
  .wh-screen .wh-go { justify-self: end; padding: calc(3px * var(--k)) calc(10px * var(--k)) calc(5px * var(--k)); font-size: calc(6px + 2px * var(--k)); }

  /* ══ ROUND 9 (Wray, 2026-10-28, off localhost, with PokéBonk's own menu
     beside it: "the game modes windows are very large, i think they would
     look better slimmed down and more polished like the pokebonk", "the
     obols infamy dust buttons are not centred", "the top menu on pokebonk
     is much cleaner", and the standings' insides "below par on the rest of
     the page"). PokéBonk's layout in our chrome: the shops top-left, ONE
     strip top-right (you, the coins, the inbox, the way out), the game's
     name over a compact play cluster, tiles with a line each, a row of
     pills, and the ladder as three wide cards over framed rows. ══════════ */

  /* ── the top bar: the shops on the left, one strip on the right ── */
  .wh-screen .wh-top { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .wh-screen .wh-shops { display: flex; gap: calc(4px + 3px * var(--k)); }
  .wh-screen .wh-shop {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: calc(4px + 2px * var(--k));
    height: calc(34px + 10px * var(--k));
    box-sizing: border-box;
    padding: 0 calc(10px + 4px * var(--k)) 0 calc(6px + 2px * var(--k));
    border-style: solid;
    border-width: calc(3px * var(--k)) calc(3px * var(--k)) calc(5px * var(--k));
    border-image: url('/assets/ui/kitb/btngold.png?v=2026-09-24a') 3 3 5 3 fill / calc(3px * var(--k)) calc(3px * var(--k)) calc(5px * var(--k)) stretch;
    background: none;
    image-rendering: pixelated;
    filter: drop-shadow(0 3px 0 #05070b) drop-shadow(0 5px 6px rgba(0, 0, 0, .4));
  }
  .wh-screen .wh-shop.is-bazaar { border-image-source: url('/assets/ui/kitb/btn.png?v=2026-09-24a'); }
  .wh-screen .wh-shop:hover { filter: brightness(1.12) drop-shadow(0 4px 0 #05070b); transform: translateY(-1px); }
  .wh-screen .wh-shop .wh-glyph { width: calc(20px + 6px * var(--k)); background-position-x: 33.3333%; }
  .wh-screen .wh-shop.is-bazaar .wh-glyph { filter: hue-rotate(160deg) saturate(1.2); }
  .wh-screen .wh-shop-t { font: calc(7px + 3px * var(--k))/1 var(--f-px); color: #2a1c0c; }
  .wh-screen .wh-shop.is-bazaar .wh-shop-t { color: var(--ink); }
  .wh-screen .wh-shop .wh-badge { position: absolute; top: -12px; right: -18px; }

  .wh-screen .wh-strip {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: calc(6px + 4px * var(--k));
    height: calc(40px + 14px * var(--k));
    box-sizing: border-box;
    padding: 0 calc(6px + 2px * var(--k)) 0 calc(3px * var(--k));
    border-style: solid;
    border-width: calc(3px + 3px * var(--k)) calc(5px + 5px * var(--k));
    border-image: url('/assets/ui/kitb/plate.png?v=2026-09-24a') 6 10 6 10 fill / calc(3px + 3px * var(--k)) calc(5px + 5px * var(--k)) stretch;
    image-rendering: pixelated;
    filter: drop-shadow(0 3px 0 #05070b) drop-shadow(0 6px 10px rgba(0, 0, 0, .45));
  }
  /* you, inside the strip: the face and the name, nothing else (the house,
     the level and the guild are on your card a click away) */
  .wh-screen .wh-strip .wh-me { padding: 0; border: 0; border-image: none; filter: none; gap: calc(6px * var(--k)); }
  .wh-screen .wh-strip .wh-face { width: calc(30px + 10px * var(--k)); box-shadow: inset 0 0 0 2px var(--line), 0 0 0 2px var(--line), 0 0 0 3px var(--gold-btn); }
  .wh-screen .wh-strip :is(.wh-me-sub, .wh-guildtag) { display: none; }
  .wh-screen .wh-strip .wh-me-name { font-size: calc(16px + 5px * var(--k)); max-width: calc(140px + 60px * var(--k)); }
  /* the coins: icon and number, each in the same dark pill, the word on hover */
  .wh-screen .wh-strip .wh-wallet {
    display: flex;
    gap: calc(4px + 2px * var(--k));
    padding-left: calc(6px + 4px * var(--k));
    border-left: 2px solid rgba(227, 199, 154, .25);
  }
  .wh-screen .wh-strip .wh-coin {
    justify-content: center;
    min-width: 0;
    height: calc(26px + 8px * var(--k));
    padding: 0 calc(8px + 2px * var(--k)) 0 calc(4px + 2px * var(--k));
    gap: calc(4px + 2px * var(--k));
    border: 0;
    border-image: none;
    background: var(--well);
    box-shadow: inset 0 0 0 2px var(--line), inset 0 2px 0 2px #0f141d;
    filter: none;
  }
  .wh-screen .wh-strip .wh-coin:hover { box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 3px var(--gold-btn); }
  .wh-screen .wh-strip .wh-coin-t small { display: none; }
  .wh-screen .wh-strip .wh-coin-t b { font-size: calc(8px + 4px * var(--k)); }
  .wh-screen .wh-strip .wh-coin-ico { width: calc(14px + 6px * var(--k)); }
  .wh-screen .wh-strip .wh-icons { display: flex; gap: calc(4px * var(--k)); }
  .wh-screen .wh-strip .wh-icon {
    min-width: 0;
    width: calc(28px + 10px * var(--k));
    height: calc(28px + 10px * var(--k));
    padding: 0;
    justify-content: center;
    border-width: calc(3px + 2px * var(--k));
  }
  .wh-screen .wh-strip .wh-icon .wh-glyph { width: calc(18px + 6px * var(--k)); }
  .wh-screen .wh-strip .wh-icon-t { display: none; }
  .wh-screen .wh-strip .wh-icon .wh-badge { position: absolute; top: -8px; right: -8px; }
  .wh-screen .wh-exit {
    height: calc(26px + 8px * var(--k));
    padding: 0 calc(10px + 4px * var(--k));
    border: 0;
    background: var(--well);
    box-shadow: inset 0 0 0 2px var(--line), inset 0 2px 0 2px #0f141d;
    font: calc(6px + 3px * var(--k))/1 var(--f-px);
    color: var(--ink-2);
  }
  .wh-screen .wh-exit:hover { color: #fff1d6; box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 3px var(--gold-btn); }

  /* ── the game's name over the left column, burnt in ── */
  .wh-screen .wh-brand { display: flex; align-items: flex-end; gap: calc(8px + 4px * var(--k)); padding: calc(4px * var(--k)) calc(4px * var(--k)) 0; }
  .wh-screen .wh-brand-n {
    font: 400 calc(34px + 18px * var(--k))/.9 var(--f-tome);
    letter-spacing: .01em;
    color: #fff1cf;
    text-shadow: 0 0 2px #fff7e0, 0 0 9px #ffd27a, 0 0 22px rgba(255, 122, 42, .85), 0 3px 0 #2a1206;
    white-space: nowrap;
  }
  .wh-screen .wh-brand-s { display: grid; gap: calc(3px * var(--k)); justify-items: start; padding-bottom: calc(4px * var(--k)); }
  .wh-screen .wh-brand-s i { font: normal calc(7px + 3px * var(--k))/1 var(--f-px); letter-spacing: .2em; text-transform: uppercase; color: #f3d79a; text-shadow: 0 2px 0 #2a1206; }
  .wh-screen .wh-beta { padding: 2px 6px 3px; font: calc(5px + 2px * var(--k))/1 var(--f-px); color: #fff1d6; background: var(--red); box-shadow: 0 0 0 2px var(--line); }
  /* the burn moves to the name of the game; Enter the world reads plain again */
  .wh-screen .wh-hero-name { color: #fff1d6; text-shadow: 0 3px 0 var(--line), 0 0 18px rgba(0, 0, 0, .6); }

  /* ── the play cluster: Enter the world beside the Pit and the Deep, the rest one slim row ── */
  .wh-screen .wh-play-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--gap); }
  .wh-screen .wh-play-top .wh-modes-big { display: flex; flex-direction: column; gap: var(--gap); }
  .wh-screen .wh-play-top .wh-modes-big .wh-mode { flex: 1; }
  .wh-screen .wh-hero {
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: calc(6px * var(--k));
    padding: calc(8px * var(--k)) calc(12px * var(--k));
  }
  .wh-screen .wh-hero-name { font-size: calc(22px + 10px * var(--k)); }
  .wh-screen .wh-hero-line { font-size: calc(13px + 3px * var(--k)); }
  .wh-screen .wh-hero-cta { padding: calc(4px * var(--k)) calc(12px * var(--k)) calc(6px * var(--k)); font-size: calc(8px + 4px * var(--k)); }
  .wh-screen .wh-mode.is-big { min-height: calc(46px + 22px * var(--k)); }
  .wh-screen .wh-mode { min-height: calc(36px + 16px * var(--k)); padding: calc(4px * var(--k)) calc(8px * var(--k)); }
  .wh-screen .wh-mode.is-big .wh-mode-name { font-size: calc(17px + 6px * var(--k)); }
  .wh-screen .wh-mode-name { font-size: calc(14px + 4px * var(--k)); }
  .wh-screen .wh-mode-line { font-size: calc(12px + 3px * var(--k)); }
  .wh-screen .wh-mode:not(.is-big) .wh-mode-line { display: none; }
  .wh-screen .wh-modes-small { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wh-screen .wh-chips { top: calc(4px * var(--k)); left: calc(4px * var(--k)); }
  .wh-screen .wh-week > .wh-h { display: none; }
  /* the cluster sits in the middle of its column, as PokéBonk's menu does under its logo */
  .wh-screen .wh-left { justify-content: safe center; }
  .wh-screen .wh-week-row { grid-template-columns: 1fr 1fr; }
  /* the Jobs card beside Tasks (#5152): three across */
  .wh-screen .wh-week-row.has-jobs { grid-template-columns: 1.1fr 1fr 1fr; }
  /* and Rooms beside them (#5418): four across, or three without Jobs */
  .wh-screen .wh-week-row.has-rooms { grid-template-columns: 1.1fr 1fr 1fr; }
  .wh-screen .wh-week-row.has-jobs.has-rooms { grid-template-columns: 1.1fr 1fr 1fr 1fr; }

  /* ── the tiles: a card each, the glyph, the name, its line, its colour underneath ── */
  .wh-screen .wh-tiles { grid-template-columns: repeat(auto-fit, minmax(calc(64px + 16px * var(--k)), 1fr)); gap: calc(4px + 2px * var(--k)); }
  .wh-screen .wh-tiles .wh-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: calc(3px * var(--k));
    padding: calc(6px + 2px * var(--k)) 4px calc(8px + 2px * var(--k));
    border-style: solid;
    border-width: calc(4px + 2px * var(--k));
    border-image: url('/assets/ui/kitb/door.png?v=2026-09-24a') 8 fill / calc(4px + 2px * var(--k)) stretch;
    background: none !important;
    box-shadow: inset 0 calc(-4px - 1px * var(--k)) 0 var(--tile), 0 3px 0 #05070b !important;
    image-rendering: pixelated;
  }
  .wh-screen .wh-tiles .wh-tile:is(:hover, :focus-visible) { border-image-source: url('/assets/ui/kitb/dooron.png?v=2026-09-24a'); transform: translateY(-2px); }
  .wh-screen .wh-tiles .wh-tile[data-tile] .wh-glyph {
    width: calc(26px + 10px * var(--k));
    max-width: none;
    padding: 0;
    border: 0;
    border-image: none;
    background-color: transparent;
    background-image: url('/assets/ui/nav-icons.png?v=2026-09-06b');
    background-size: 1000% 200%;
    background-origin: padding-box;
    background-clip: padding-box;
    box-shadow: none;
    filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .6));
  }
  .wh-screen .wh-tiles .wh-tile[data-tile='friends'] .wh-glyph { background-image: url('/assets/ui/home-icon.png?v=2026-10-27a'); background-size: 100% 200%; }
  .wh-screen .wh-tiles .wh-tile[data-tile='board'] { --tile: #f3c64a; }
  .wh-screen .wh-tiles .wh-tile[data-tile='board'] .wh-glyph { background-position-x: 22.2222%; }
  .wh-screen .wh-tiles .wh-tile-t { position: static; display: grid; justify-items: center; gap: 2px; padding: 0; background: none; box-shadow: none; border: 0; border-image: none; }
  .wh-screen .wh-tiles .wh-tile-t b { font: calc(6px + 2px * var(--k))/1.1 var(--f-px); color: #fff1d6; white-space: nowrap; }
  .wh-screen .wh-tiles .wh-tile-t i { display: block; font-size: calc(12px + 2px * var(--k)); color: var(--dim); }
  .wh-screen .wh-tiles .wh-tile .wh-badge { top: -8px; right: -8px; }

  /* ── the pills under the tiles: Settings, a bug, the group, X ── */
  .wh-screen .wh-links { display: flex; flex-wrap: wrap; gap: calc(4px + 3px * var(--k)); }
  .wh-screen .wh-pill {
    display: inline-flex;
    align-items: center;
    gap: calc(4px * var(--k));
    height: calc(26px + 8px * var(--k));
    box-sizing: border-box;
    padding: 0 calc(10px + 4px * var(--k));
    border: 0;
    background: var(--well);
    box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 3px #4b5874, 0 3px 0 #05070b;
    font: calc(6px + 2px * var(--k))/1 var(--f-px);
    color: var(--ink-2);
    text-decoration: none;
  }
  .wh-screen .wh-pill:hover { color: #fff1d6; box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 3px var(--gold-btn), 0 3px 0 #05070b; }
  .wh-screen .wh-pill .wh-glyph { width: calc(16px + 6px * var(--k)); background-position-x: 55.5556%; }
  .wh-screen .wh-pill.is-tg { background: #22324d; }

  /* ── the standings: three wide cards, then framed rows ── */
  .wh-screen .wh-podium.is-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: calc(4px + 2px * var(--k)); padding: 0; }
  .wh-screen .wh-podium.is-stack .wh-step {
    --mc: #f2b81a;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    justify-items: start;
    gap: calc(8px + 4px * var(--k));
    padding: calc(4px + 2px * var(--k)) calc(10px + 4px * var(--k)) calc(4px + 2px * var(--k)) calc(6px + 2px * var(--k));
    background: linear-gradient(90deg, color-mix(in srgb, var(--mc) 32%, transparent), color-mix(in srgb, var(--mc) 8%, transparent) 70%), #1a2130;
    box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px color-mix(in srgb, var(--mc) 70%, #0b0f15), 0 3px 0 #05070b;
  }
  .wh-screen .wh-podium.is-stack .wh-step.is-silver { --mc: #a8b4c8; }
  .wh-screen .wh-podium.is-stack .wh-step.is-bronze { --mc: #d08a4a; }
  .wh-screen .wh-podium.is-stack .wh-step.is-you { box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px var(--red-hi), 0 3px 0 #05070b; }
  .wh-screen .wh-podium.is-stack .wh-step.is-link:hover { filter: brightness(1.1); }
  .wh-screen .wh-podium.is-stack .wh-crest { height: auto; padding: 0; }
  .wh-screen .wh-podium.is-stack .wh-cat.is-podium,
  .wh-screen .wh-podium.is-stack .wh-gcrest.is-podium { width: calc(36px + 12px * var(--k)); }
  .wh-screen .wh-podium.is-stack .wh-step.is-gold .wh-cat.is-podium,
  .wh-screen .wh-podium.is-stack .wh-step.is-gold .wh-gcrest.is-podium { width: calc(44px + 16px * var(--k)); }
  .wh-screen .wh-podium.is-stack .wh-sigil { height: calc(36px + 12px * var(--k)); }
  .wh-screen .wh-podium.is-stack .wh-medal { right: -8px; bottom: -6px; }
  .wh-screen .wh-podium.is-stack .wh-plate,
  .wh-screen .wh-podium.is-stack .wh-step.is-gold .wh-plate {
    justify-items: start;
    gap: calc(2px * var(--k));
    width: auto;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
    color: var(--ink);
  }
  .wh-screen .wh-podium.is-stack .wh-pname { max-width: 100%; font: 400 calc(16px + 5px * var(--k))/1 var(--f-tome); color: #fff1d6; text-shadow: 0 2px 0 var(--line); }
  .wh-screen .wh-podium.is-stack .wh-step.is-gold .wh-pname { font-size: calc(18px + 7px * var(--k)); }
  .wh-screen .wh-psub { display: flex; align-items: center; gap: calc(6px * var(--k)); min-width: 0; }
  .wh-screen .wh-psub i { font-style: normal; font-size: calc(12px + 3px * var(--k)); color: var(--ink-2); white-space: nowrap; }
  .wh-screen .wh-podium.is-stack .wh-pval { display: grid; justify-items: end; gap: 2px; font: inherit; }
  .wh-screen .wh-podium.is-stack .wh-pval b { font: calc(9px + 5px * var(--k))/1 var(--f-px); color: #fff1d6; text-shadow: 0 3px 0 var(--line); }
  .wh-screen .wh-podium.is-stack .wh-step.is-gold .wh-pval b { font-size: calc(10px + 7px * var(--k)); color: #ffd27a; }
  .wh-screen .wh-podium.is-stack .wh-pval i { font-style: normal; font-size: calc(11px + 2px * var(--k)); color: var(--dim); }
  .wh-screen .wh-gtag {
    flex: none;
    padding: 2px 5px 3px;
    font: calc(5px + 2px * var(--k))/1 var(--f-px);
    color: #2a1c0c;
    background: var(--gold-btn);
    box-shadow: 0 0 0 2px var(--line);
  }

  .wh-screen .wh-rows { border-top: 0; gap: calc(3px * var(--k)); padding: calc(2px * var(--k)) 0; }
  .wh-screen .wh-row,
  .wh-screen .wh-row:not(.is-you):nth-child(even) {
    grid-template-columns: calc(22px + 8px * var(--k)) calc(24px + 8px * var(--k)) minmax(0, 1fr) auto;
    gap: calc(8px * var(--k));
    min-height: calc(28px + 8px * var(--k));
    padding: 0 calc(8px * var(--k)) 0 calc(4px * var(--k));
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(0, 0, 0, .12)), #182030;
    box-shadow: inset 0 0 0 2px var(--line), inset 0 2px 0 2px rgba(255, 255, 255, .05);
    font-size: calc(15px + 4px * var(--k));
  }
  .wh-screen .wh-row.is-you { background: linear-gradient(180deg, rgba(224, 83, 92, .28), rgba(94, 20, 20, .38)), #182030; box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px var(--red-hi); }
  .wh-screen .wh-row.is-link:hover { background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(0, 0, 0, .08)), #1d2739; }
  .wh-screen .wh-rk {
    display: grid;
    place-items: center;
    height: calc(18px + 6px * var(--k));
    text-align: center;
    background: var(--well);
    box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 3px #4b5874;
    font: calc(6px + 3px * var(--k))/1 var(--f-px);
    color: var(--ink-2);
  }
  .wh-screen .wh-cat.is-row { width: calc(22px + 8px * var(--k)); }
  .wh-screen .wh-who { display: flex; align-items: center; gap: calc(6px * var(--k)); min-width: 0; color: #fff1d6; text-shadow: 0 2px 0 var(--line); }
  .wh-screen .wh-who-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .wh-screen .wh-val { font: calc(7px + 3px * var(--k))/1 var(--f-px); color: var(--gold); text-shadow: 0 2px 0 var(--line); }
  .wh-screen .wh-row.is-open { opacity: .45; }
  .wh-screen .wh-row.is-open .wh-who { color: var(--dim); font-style: italic; text-shadow: none; }
  .wh-screen .wh-row.is-open .wh-rsig { width: calc(22px + 8px * var(--k)); aspect-ratio: 1; box-shadow: inset 0 0 0 2px var(--line); background: var(--well); }
  .wh-screen .wh-bhead { padding: 0 4px calc(2px * var(--k)); border-bottom: 2px solid rgba(227, 199, 154, .18); }
  .wh-screen .wh-full {
    flex: none;
    height: calc(28px + 8px * var(--k));
    border-style: solid;
    border-width: calc(3px * var(--k)) calc(3px * var(--k)) calc(5px * var(--k));
    border-image: url('/assets/ui/kitb/btn.png?v=2026-09-24a') 3 3 5 3 fill / calc(3px * var(--k)) calc(3px * var(--k)) calc(5px * var(--k)) stretch;
    background: none;
    font: calc(6px + 3px * var(--k))/1 var(--f-px);
    color: #fff1d6;
    image-rendering: pixelated;
    filter: drop-shadow(0 3px 0 #05070b);
  }
  .wh-screen .wh-full:hover { filter: brightness(1.15) drop-shadow(0 3px 0 #05070b); }
  /* a laptop window (1512 x 870 measured): the three cards go to one line
     each and the full-board button gives way to the Leaderboard tile, so
     your standing and a few rows still fit under them */
  @container wh (max-height: 1000px) {
    .wh-screen .wh-podium.is-stack .wh-step { padding-top: 3px; padding-bottom: 3px; gap: 8px; }
    .wh-screen .wh-podium.is-stack :is(.wh-psub, .wh-pval i) { display: none; }
    .wh-screen .wh-podium.is-stack .wh-cat.is-podium,
    .wh-screen .wh-podium.is-stack .wh-step.is-gold .wh-cat.is-podium,
    .wh-screen .wh-podium.is-stack .wh-gcrest.is-podium,
    .wh-screen .wh-podium.is-stack .wh-step.is-gold .wh-gcrest.is-podium { width: 40px; }
    .wh-screen .wh-podium.is-stack .wh-sigil { height: 40px; }
    .wh-screen .wh-podium.is-stack .wh-medal { width: 16px; font-size: 8px; right: -6px; bottom: -4px; }
    .wh-screen .wh-podium.is-stack .wh-pname,
    .wh-screen .wh-podium.is-stack .wh-step.is-gold .wh-pname { font-size: 20px; }
    .wh-screen .wh-podium.is-stack .wh-pval b,
    .wh-screen .wh-podium.is-stack .wh-step.is-gold .wh-pval b { font-size: 14px; }
    .wh-screen .wh-full { display: none; }
    .wh-screen .wh-brand-n { font-size: 52px; }
    .wh-screen .wh-you-k { display: none; }
    .wh-screen .wh-you-head { white-space: nowrap; }
    .wh-screen .wh-you-rank:not(.is-none) { font-size: 28px; }
    .wh-screen .wh-board { overflow: visible; }
    .wh-screen .wh-rows { flex: 1 1 0; }
  }

  /* ══ ROUND 10 (Wray, 2026-10-28, his notes off localhost): $9LV with its
     logo among the coins; no "?" and no World button; Friends, News and the
     game's notifications as small icons; the game's name without "Network";
     "too boxy and snapped to a grid ... not free flowing": rounded cards,
     the week's cards and the shops leaning like PokéBonk's; every outside
     link with its own mark and colour; a shine on hover; windows that grow
     out of what was pressed; embers off a press; the modes behind one card.
     ══════════════════════════════════════════════════════════════════════ */
  .wh-screen .wh-svg { display: block; flex: none; width: calc(14px + 5px * var(--k)); aspect-ratio: 1; }
  .wh-screen .wh-svg svg { display: block; width: 100%; height: 100%; }

  /* the strip */
  .wh-screen .wh-coin.is-9lv .wh-coin-ico.is-img { width: calc(16px + 6px * var(--k)); height: auto; border-radius: 50%; box-shadow: 0 0 0 2px var(--line); image-rendering: auto; }
  .wh-screen .wh-coin.is-9lv .wh-coin-t b { color: #8fd89a; }
  .wh-screen .wh-coin.is-9lv.is-unlinked .wh-coin-t b { color: var(--gold); }
  .wh-screen .wh-strip .wh-icon {
    border: 0;
    border-image: none;
    border-radius: 50%;
    background: var(--well);
    box-shadow: inset 0 0 0 2px var(--line), inset 0 2px 0 2px #0f141d;
    color: var(--ink-2);
  }
  .wh-screen .wh-strip .wh-icon:hover { color: #fff1d6; box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 3px var(--gold-btn); border-image: none; transform: translateY(-1px); }
  .wh-screen .wh-strip .wh-icon.is-friends { color: #ffb27a; }
  .wh-screen .wh-strip .wh-icon.is-news { color: #9fd0ff; }
  .wh-screen .wh-strip .wh-icon.is-inbox { color: #ffd27a; }
  .wh-screen .wh-strip .wh-icon .wh-svg { width: calc(14px + 6px * var(--k)); }

  /* the name of the game, its beta tag leaning on it */
  .wh-screen .wh-brand { align-items: flex-start; gap: calc(4px * var(--k)); }
  .wh-screen .wh-beta { margin-top: calc(6px + 4px * var(--k)); transform: rotate(-6deg); padding: 3px 7px 4px; font-size: calc(6px + 2px * var(--k)); border-radius: 4px; }

  /* softer: rounded cards everywhere a card is drawn in CSS */
  .wh-screen :is(.wh-hero, .wh-mode, .wh-card, .wh-tiles .wh-tile, .wh-podium.is-stack .wh-step, .wh-row, .wh-rk, .wh-pop, .wh-modes-panel) { border-radius: calc(6px + 3px * var(--k)); }
  .wh-screen .wh-art { border-radius: inherit; }

  /* the two big cards: Enter the world and the game modes, side by side */
  .wh-screen .wh-play-top { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .wh-screen .wh-play-top > * { min-height: calc(120px + 60px * var(--k)); }
  .wh-screen .wh-modes-card { justify-content: flex-end; padding: calc(8px * var(--k)) calc(12px * var(--k)); }
  .wh-screen .wh-mstrip { position: absolute; inset: 0; z-index: -2; display: flex; overflow: hidden; border-radius: inherit; }
  .wh-screen .wh-mstrip i {
    flex: 1;
    margin: 0 -10px;
    background: center / cover no-repeat;
    transform: skewX(-10deg);
    box-shadow: -3px 0 0 #0b0f15;
    transition: flex .3s ease;
  }
  .wh-screen .wh-modes-card:is(:hover, :focus-visible) .wh-mstrip i:hover { flex: 1.6; }
  .wh-screen .wh-modes-card .wh-mode-name { font-size: calc(20px + 9px * var(--k)); }

  /* the modes panel: the full cards, grown out of the card */
  .wh-screen .wh-modes-panel {
    position: absolute;
    z-index: 30;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: calc(8px * var(--k));
    padding: calc(10px * var(--k)) calc(12px * var(--k));
    background: linear-gradient(180deg, #182030, #0e121c);
    box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px #7e6440, 0 10px 30px rgba(0, 0, 0, .55);
  }
  .wh-screen .wh-mp-head { display: flex; align-items: center; justify-content: space-between; }
  .wh-screen .wh-mp-title { font: 400 calc(22px + 10px * var(--k))/1 var(--f-tome); color: #fff1d6; text-shadow: 0 3px 0 var(--line); }
  .wh-screen .wh-mp-close { display: grid; place-items: center; width: calc(28px + 8px * var(--k)); aspect-ratio: 1; border: 0; border-radius: 50%; background: var(--red); box-shadow: inset 0 0 0 2px var(--line), 0 3px 0 #05070b; color: #fff1d6; }
  .wh-screen .wh-mp-close:hover { filter: brightness(1.15); }
  .wh-screen .wh-mp-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(calc(90px + 40px * var(--k)), 1fr); gap: calc(8px * var(--k)); overflow-y: auto; }
  .wh-screen .wh-mp-grid .wh-mode { min-height: 0; }
  .wh-screen .wh-mp-grid .wh-mode .wh-mode-line { display: block; }

  /* the week's two cards and the shops lean, as PokéBonk's do */
  .wh-screen .wh-week-row { gap: calc(8px + 4px * var(--k)); padding: 0 calc(6px * var(--k)); }
  .wh-screen .wh-week-row > .wh-card { transform: skewX(-8deg); }
  .wh-screen .wh-week-row > .wh-card > :not(.wh-shine):not(.wh-badge) { transform: skewX(8deg); }
  .wh-screen .wh-week-row > button.wh-card:is(:hover, :focus-visible) { transform: skewX(-8deg) translateY(-2px); }
  .wh-screen .wh-week-row > button.wh-card:active { transform: skewX(-8deg) translateY(2px); }
  .wh-screen .wh-shop { transform: skewX(-8deg); }
  .wh-screen .wh-shop > * { transform: skewX(8deg); }
  .wh-screen .wh-shop:hover { transform: skewX(-8deg) translateY(-1px); }

  /* the tiles, as cards: no door frame, a colour underneath */
  .wh-screen .wh-tiles { grid-template-columns: repeat(auto-fit, minmax(calc(90px + 30px * var(--k)), 1fr)); }
  .wh-screen .wh-tiles .wh-tile {
    position: relative;
    border: 0;
    border-image: none;
    flex-direction: row;
    justify-content: flex-start;
    gap: calc(8px * var(--k));
    padding: calc(8px * var(--k)) calc(10px * var(--k)) calc(10px + 2px * var(--k));
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(0, 0, 0, .14)), #1a2130 !important;
    box-shadow: inset 0 0 0 2px var(--line), inset 0 calc(-4px - 1px * var(--k)) 0 var(--tile), 0 3px 0 #05070b !important;
  }
  .wh-screen .wh-tiles .wh-tile:is(:hover, :focus-visible) { background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(0, 0, 0, .1)), #202a3d !important; }
  .wh-screen .wh-tiles .wh-tile-t { justify-items: start; }

  /* the pills: each its own colour and mark */
  .wh-screen .wh-pill { border-radius: 999px; gap: calc(6px * var(--k)); }
  .wh-screen .wh-pill.is-bug,
  .wh-screen .wh-pill.is-x { width: calc(26px + 8px * var(--k)); padding: 0; justify-content: center; }
  .wh-screen .wh-pill.is-bug { color: #ff8a7a; }
  .wh-screen .wh-pill.is-tg { background: #2a8fc8; color: #fff; box-shadow: inset 0 0 0 2px var(--line), inset 0 2px 0 2px rgba(255, 255, 255, .25), 0 3px 0 #05070b; }
  .wh-screen .wh-pill.is-x { background: #0b0d12; color: #fff; }
  .wh-screen .wh-pill.is-settings .wh-svg { color: var(--gold); }

  /* the coin's links: round, each with its mark */
  .wh-screen .wh-tk-links .wh-tk-links { gap: calc(6px * var(--k)); }
  .wh-screen .wh-tk-links .wh-tk-link {
    display: grid;
    place-items: center;
    width: calc(26px + 8px * var(--k));
    height: calc(26px + 8px * var(--k));
    padding: 0;
    border: 0;
    border-image: none;
    border-radius: 50%;
    background: var(--well);
    box-shadow: inset 0 0 0 2px var(--line), 0 3px 0 #05070b;
    color: #fff1d6;
    filter: none;
  }
  .wh-screen .wh-tk-links .wh-tk-link[data-kind='telegram'] { background: #2a8fc8; color: #fff; }
  .wh-screen .wh-tk-links .wh-tk-link[data-kind='twitter'] { background: #0b0d12; }
  .wh-screen .wh-tk-links .wh-tk-link[data-kind='discord'] { background: #5865f2; }
  .wh-screen .wh-tk-links .wh-tk-link.is-chart { background: #1f6f4a; }
  .wh-screen .wh-tk-links .wh-tk-link:hover { filter: brightness(1.15); transform: translateY(-1px); }

  /* the news, under its button */
  .wh-screen .wh-pop {
    position: absolute;
    z-index: 30;
    width: min(calc(320px + 120px * var(--k)), 46cqw);
    max-height: 70cqh;
    overflow-y: auto;
    padding: calc(8px * var(--k)) calc(10px * var(--k));
    background: linear-gradient(180deg, rgba(24, 32, 48, .98), rgba(14, 18, 28, .98));
    box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px #7e6440, 0 10px 30px rgba(0, 0, 0, .55);
  }

  /* THE SHINE: a light crossing a card on hover */
  .wh-screen :is(.wh-hero, .wh-mode, .wh-tile, .wh-card, .wh-shop, .wh-pill, .wh-step, .wh-full) { position: relative; }
  .wh-screen .wh-shine { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; border-radius: inherit; }
  .wh-screen .wh-shine::before {
    content: '';
    position: absolute;
    top: -30%;
    bottom: -30%;
    left: -70%;
    width: 45%;
    background: linear-gradient(100deg, rgba(255, 244, 214, 0), rgba(255, 244, 214, .32) 50%, rgba(255, 244, 214, 0));
    transform: skewX(-20deg);
  }
  .wh-screen :is(.wh-hero, .wh-mode, .wh-tile, .wh-card, .wh-shop, .wh-pill, .wh-step, .wh-full):is(:hover, :focus-visible) > .wh-shine::before { animation: wh-shine .75s ease-out; }
  @keyframes wh-shine { to { left: 140%; } }

  /* EMBERS off a press */
  .wh-spark {
    position: fixed;
    z-index: 9200;
    width: 5px;
    height: 5px;
    margin: -2px 0 0 -2px;
    pointer-events: none;
    box-shadow: 0 0 6px currentColor;
    animation: wh-spark .6s cubic-bezier(.2, .8, .3, 1) forwards;
  }
  @keyframes wh-spark {
    0% { transform: translate(0, 0) scale(1.2); opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; }
  }

  /* Home comes in and goes out, never just appears */
  .wh-screen:not([hidden]) .wh-shell { animation: wh-open .26s cubic-bezier(.2, .8, .25, 1) both; }
  .wh-screen.is-leaving { animation: wh-close .17s ease-in forwards; }
  @keyframes wh-open { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
  @keyframes wh-close { to { opacity: 0; } }

  /* ══ ROUND 11 (Wray, 2026-10-28): pixel icons in the nav row's style;
     every page full over Home with a way back, PokéBonk's flow; your
     profile as a page; the coin's numbers at the bottom of the right
     column; the Inventory tile back for what you own in the world. ════ */
  .wh-screen .wh-px,
  body.hud-v2 .ws-sheet[data-chrome='home'] .wh-px,
  body.wh-hosting .wh-px {
    display: block;
    flex: none;
    width: calc(16px + 8px * var(--k, 2));
    aspect-ratio: 1;
    background-repeat: no-repeat;
    image-rendering: pixelated;
  }
  .wh-screen .wh-strip .wh-icon .wh-px { width: calc(18px + 6px * var(--k)); }
  .wh-screen .wh-strip .wh-icon { background: var(--well); }
  .wh-screen .wh-pill .wh-px { width: calc(14px + 6px * var(--k)); }
  .wh-screen .wh-pill.is-bug,
  .wh-screen .wh-pill.is-x { background: var(--well); }
  .wh-screen .wh-pill.is-tg { background: var(--well); color: var(--ink-2); box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 3px #4b5874, 0 3px 0 #05070b; }
  .wh-screen .wh-tk-links .wh-tk-link .wh-px { width: 70%; }

  /* the way back to Home: top left of every page */
  .wh-host-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    margin-right: auto;
    padding: 0 14px 0 8px;
    border: 0;
    border-radius: 999px;
    background: #1a2130;
    box-shadow: inset 0 0 0 2px #0b0f15, inset 0 0 0 3px #7e6440, 0 3px 0 #05070b;
    font: 12px/1 'Press Start 2P', ui-monospace, monospace;
    color: #f3d79a;
    cursor: pointer;
    position: relative;
    z-index: 5;
  }
  .wh-host-back:hover { filter: brightness(1.15); transform: translateX(-2px); }
  .wh-host-back .wh-px { width: 24px; aspect-ratio: 1; background-repeat: no-repeat; image-rendering: pixelated; }
  /* a hosted window is a page: Home's own columns step back behind it,
     and its size toggle is gone (every page is full) */
  body.wh-hosting .wh-screen .wh-main,
  body.wh-paging .wh-screen .wh-main { visibility: hidden; }
  body.wh-hosting .ws-sheet .ws-sheet-top { display: flex; align-items: center; }

  /* Home's own pages */
  .wh-screen .wh-page {
    position: absolute;
    z-index: 30;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: calc(8px * var(--k));
    padding: calc(10px * var(--k)) calc(14px * var(--k));
    border-radius: calc(8px + 4px * var(--k));
    background: linear-gradient(180deg, #182030, #0e121c);
    box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px #7e6440, 0 10px 30px rgba(0, 0, 0, .55);
  }
  .wh-screen .wh-pg-head { display: flex; align-items: center; gap: calc(14px * var(--k)); }
  .wh-screen .wh-pg-title { font: 400 calc(22px + 10px * var(--k))/1 var(--f-tome); color: #fff1d6; text-shadow: 0 3px 0 var(--line); }
  .wh-screen .wh-pg-body { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
  .wh-screen .wh-page.is-modes .wh-pg-body { display: flex; }
  .wh-screen .wh-page.is-modes .wh-mp-grid { flex: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(calc(110px + 60px * var(--k)), 1fr); }
  .wh-screen .wh-page.is-news .wh-news { max-width: calc(560px + 200px * var(--k)); }
  .wh-screen .wh-page.is-news .wh-news > .wh-h { display: none; }

  /* your profile */
  .wh-screen .wh-prof { display: grid; grid-template-columns: minmax(calc(220px + 80px * var(--k)), .8fr) minmax(0, 2fr); gap: calc(16px + 10px * var(--k)); align-items: start; }
  .wh-screen .wh-prof-id { display: grid; justify-items: center; gap: calc(6px * var(--k)); padding: calc(12px * var(--k)); border-radius: calc(8px + 4px * var(--k)); background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 2px var(--line); }
  .wh-screen .wh-prof-face { width: calc(120px + 60px * var(--k)); aspect-ratio: 1; border-radius: calc(8px + 4px * var(--k)); overflow: hidden; background: radial-gradient(circle at 50% 35%, #3b4a66, var(--well) 70%); box-shadow: inset 0 0 0 2px var(--line), 0 0 0 2px var(--line), 0 0 0 4px var(--gold-btn); }
  .wh-screen .wh-prof-face canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
  .wh-screen .wh-prof-name { font: 400 calc(22px + 10px * var(--k))/1 var(--f-tome); color: #fff1d6; text-shadow: 0 3px 0 var(--line); }
  .wh-screen .wh-prof-sub { font-size: calc(15px + 3px * var(--k)); color: var(--ink-2); }
  /* your way to Verified (#4805, take B): one line under your name, and its page */
  .wh-screen .wh-vline { width: 100%; min-height: 0; flex-wrap: wrap; justify-content: center; gap: calc(6px * var(--k)) calc(8px * var(--k)); padding: calc(6px * var(--k)) calc(10px * var(--k)); }
  .wh-screen .wh-vline[hidden] { display: none; }
  .wh-screen .wh-vline .wh-card-l { font-size: calc(13px + 2px * var(--k)); color: var(--ink-2); text-align: center; }
  .wh-screen .wh-vline.is-verified .wh-card-l { color: var(--gold); }
  .wh-screen .wh-ver { display: grid; gap: calc(6px * var(--k)); max-width: calc(520px + 200px * var(--k)); }
  /* what Verified is NOT, said first (Wray, 2026-11-10): a gold rule on the left, the page's reading type */
  .wh-screen .wh-ver-plain { margin: 0 0 calc(4px * var(--k)); padding: calc(6px * var(--k)) calc(10px * var(--k)); box-shadow: inset calc(3px * var(--k)) 0 0 0 var(--gold); font: 400 calc(14px + 3px * var(--k))/1.35 var(--f-tome); color: #fff1d6; }
  .wh-screen .wh-ver-step { display: flex; align-items: center; gap: calc(10px * var(--k)); padding: calc(8px * var(--k)) calc(10px * var(--k)); background: #1a2130; box-shadow: inset 0 0 0 2px var(--line); }
  .wh-screen .wh-ver-step.is-done { opacity: .75; }
  .wh-screen .wh-ver-step .wh-pip { flex: none; width: calc(12px + 6px * var(--k)); }
  .wh-screen .wh-ver-l { flex: 1; min-width: 0; font: 400 calc(15px + 3px * var(--k))/1.2 var(--f-tome); font-style: normal; color: #fff1d6; }
  .wh-screen .wh-ver-step .wh-prof-btn { flex: none; padding: 0 calc(10px * var(--k)); display: inline-flex; align-items: center; text-decoration: none; }
  .wh-screen .wh-ver-step.is-community { margin-top: calc(6px * var(--k)); background: none; box-shadow: inset 0 2px 0 0 var(--line); }
  .wh-screen .wh-ver-step.is-community .wh-ver-l { font-family: inherit; font-size: calc(13px + 2px * var(--k)); color: var(--ink-2); }
  .wh-screen .wh-prof-acts { display: grid; gap: calc(6px * var(--k)); width: 100%; margin-top: calc(6px * var(--k)); }
  .wh-screen .wh-prof-btn {
    height: calc(30px + 8px * var(--k));
    border-style: solid;
    border-width: calc(3px * var(--k)) calc(3px * var(--k)) calc(5px * var(--k));
    border-image: url('/assets/ui/kitb/btn.png?v=2026-09-24a') 3 3 5 3 fill / calc(3px * var(--k)) calc(3px * var(--k)) calc(5px * var(--k)) stretch;
    background: none;
    font: calc(6px + 3px * var(--k))/1 var(--f-px);
    color: #fff1d6;
    image-rendering: pixelated;
  }
  .wh-screen .wh-prof-btn.is-gold { border-image-source: url('/assets/ui/kitb/btngold.png?v=2026-09-24a'); color: #2a1c0c; }
  .wh-screen .wh-prof-btn:hover { filter: brightness(1.12); }
  .wh-screen .wh-prof-col { display: grid; gap: calc(8px * var(--k)); align-content: start; }
  .wh-screen .wh-prof-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(calc(100px + 30px * var(--k)), 1fr)); gap: calc(6px * var(--k)); }
  .wh-screen .wh-prof-stat { display: grid; gap: 4px; padding: calc(8px * var(--k)) calc(10px * var(--k)); border-radius: calc(6px + 3px * var(--k)); background: #1a2130; box-shadow: inset 0 0 0 2px var(--line), inset 0 2px 0 2px rgba(255, 255, 255, .04); }
  .wh-screen .wh-prof-stat b { font: calc(9px + 5px * var(--k))/1 var(--f-px); color: var(--gold); }
  .wh-screen .wh-prof-stat i { font-style: normal; font-size: calc(13px + 2px * var(--k)); color: var(--dim); }
  .wh-screen .wh-prof-runs { display: grid; grid-template-columns: repeat(auto-fit, minmax(calc(180px + 60px * var(--k)), 1fr)); gap: calc(6px * var(--k)); }
  .wh-screen .wh-prof-run { display: flex; align-items: center; gap: calc(8px * var(--k)); padding: calc(5px * var(--k)); border-radius: calc(6px + 3px * var(--k)); background: #1a2130; box-shadow: inset 0 0 0 2px var(--line); }
  .wh-screen .wh-prof-run-art { flex: none; width: calc(44px + 20px * var(--k)); aspect-ratio: 1.4; border-radius: calc(4px + 2px * var(--k)); background: center / cover no-repeat; box-shadow: inset 0 0 0 2px var(--line); }
  .wh-screen .wh-prof-run-t { display: grid; gap: 3px; min-width: 0; }
  .wh-screen .wh-prof-run-t b { font: 400 calc(15px + 4px * var(--k))/1 var(--f-tome); color: #fff1d6; }
  .wh-screen .wh-prof-run-t i { font-style: normal; font-size: calc(13px + 2px * var(--k)); color: var(--ink-2); }

  /* the coin at the bottom of the right column: one compact strip */
  .wh-screen .wh-rcol > .wh-token {
    flex: none;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 2px calc(10px * var(--k));
    padding: calc(6px * var(--k)) calc(10px * var(--k));
    border-radius: calc(6px + 3px * var(--k));
  }
  .wh-screen .wh-rcol > .wh-token .wh-tk-banner { display: none; }
  .wh-screen .wh-rcol > .wh-token .wh-tk-head { display: contents; }
  .wh-screen .wh-rcol > .wh-token .wh-tk-logo { position: static; grid-row: 1 / span 2; width: calc(32px + 12px * var(--k)); height: auto; margin: 0; }
  .wh-screen .wh-rcol > .wh-token .wh-tk-name { grid-column: 2; }
  .wh-screen .wh-rcol > .wh-token .wh-tk-price { grid-column: 3; grid-row: 1; text-align: right; }
  .wh-screen .wh-rcol > .wh-token .wh-tk-stats { grid-column: 2; grid-row: 2; margin: 0; }
  .wh-screen .wh-rcol > .wh-token .wh-tk-links { grid-column: 3; grid-row: 2; justify-self: end; margin: 0; }
  .wh-screen .wh-rcol > .wh-token .wh-tk-quiet { grid-column: 2 / -1; margin: 0; }

  /* the way back reads the same on Home's own pages as on a hosted one,
     and the page's title sits beside it */
  .wh-screen .wh-host-back { font: 12px/1 var(--f-px); color: #f3d79a; }
  .wh-screen .wh-pg-head .wh-host-back { margin-right: 0; }
  /* the right column has to hold the showcase, the ladder and the coin:
     the showcase's banner is a strip, the coin one line, and the full
     ladder is the Leaderboard tile's job */
  .wh-screen .wh-showcase .wh-sc-banner { aspect-ratio: auto; height: calc(54px + 30px * var(--k)); }
  .wh-screen .wh-rcol .wh-full { display: none; }
  .wh-screen .wh-rcol > .wh-token { grid-template-columns: auto auto minmax(0, 1fr) auto auto; padding: calc(4px * var(--k)) calc(10px * var(--k)); }
  .wh-screen .wh-rcol > .wh-token .wh-tk-logo { grid-row: 1; width: calc(24px + 8px * var(--k)); }
  .wh-screen .wh-rcol > .wh-token .wh-tk-name { grid-column: 2; grid-row: 1; }
  .wh-screen .wh-rcol > .wh-token .wh-tk-name i { display: none; }
  .wh-screen .wh-rcol > .wh-token .wh-tk-stats { grid-column: 3; grid-row: 1; justify-self: center; }
  .wh-screen .wh-rcol > .wh-token .wh-tk-price { grid-column: 4; grid-row: 1; }
  .wh-screen .wh-rcol > .wh-token .wh-tk-links { grid-column: 5; grid-row: 1; }

  /* the right column never overflows: the ladder gives way first, the
     showcase loses its banner on a short window, and the coin keeps its
     line at the bottom; four tiles share one row */
  .wh-screen .wh-rcol { overflow: hidden; }
  .wh-screen .wh-rcol > .wh-right { flex: 1 1 0; min-height: 0; }
  .wh-screen .wh-rcol > .wh-showcase { flex: none; }
  .wh-screen .wh-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wh-screen .wh-tiles .wh-tile { padding-left: calc(6px * var(--k)); padding-right: calc(6px * var(--k)); gap: calc(5px * var(--k)); }
  .wh-screen .wh-tiles .wh-tile-t b { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  @container wh (max-height: 1000px) {
    .wh-screen .wh-showcase .wh-sc-banner { display: none; }
    .wh-screen .wh-rcol > .wh-token .wh-tk-stats { display: none; }
  }

  /* four tiles: the Inventory is back */
  .wh-screen .wh-tiles .wh-tile[data-tile='nine'] { --tile: #e09a3a; }
  .wh-screen .wh-tiles .wh-tile[data-tile='nine'] .wh-glyph { background-position-x: 44.4444%; }

  /* ══ ROUND 12 (Wray, 2026-10-28): the coin to the left as one clean line;
     "Nethara's top guild" over the showcase; the standings as PokéBonk's
     ladder (three big cards, seven places, a medal on each, the medal
     tiers, your standing at the foot of the scroll); and every page opened
     from Home wears Home's own feel. ═══════════════════════════════════ */

  /* ── the coin, one line ── */
  .wh-screen .wh-coinbar {
    display: flex;
    align-items: center;
    gap: calc(10px + 4px * var(--k));
    padding: calc(6px + 2px * var(--k)) calc(12px + 4px * var(--k)) calc(6px + 2px * var(--k)) calc(8px + 2px * var(--k));
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(0, 0, 0, .15)), #141a26;
    box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 3px #4b5874, 0 3px 0 #05070b;
  }
  .wh-screen .wh-cb-logo { flex: none; width: calc(28px + 10px * var(--k)); height: calc(28px + 10px * var(--k)); border-radius: 50%; box-shadow: 0 0 0 2px var(--line), 0 0 0 3px var(--gold-btn); object-fit: cover; }
  .wh-screen .wh-cb-cell { display: grid; gap: calc(3px * var(--k)); min-width: 0; line-height: 1; }
  .wh-screen .wh-cb-cell b { font: calc(8px + 3px * var(--k))/1 var(--f-px); color: #fff1d6; white-space: nowrap; }
  .wh-screen .wh-cb-cell i { font-style: normal; font-size: calc(12px + 2px * var(--k)); color: var(--dim); white-space: nowrap; }
  .wh-screen .wh-cb-cell.is-name b { font: 400 calc(18px + 6px * var(--k))/1 var(--f-tome); color: var(--gold); }
  .wh-screen .wh-cb-cell.is-name { margin-right: auto; }
  .wh-screen .wh-cb-cell.is-price b { color: #fff1cf; }
  .wh-screen .wh-cb-cell .wh-tk-move { font-size: calc(12px + 2px * var(--k)); }
  .wh-screen .wh-cb-cell .wh-tk-move.is-up { color: #8fd89a; }
  .wh-screen .wh-cb-cell .wh-tk-move.is-down { color: #ff8a7a; }
  .wh-screen .wh-cb-chart { flex: none; display: grid; place-items: center; width: calc(28px + 8px * var(--k)); aspect-ratio: 1; border-radius: 50%; background: var(--well); box-shadow: inset 0 0 0 2px var(--line), 0 3px 0 #05070b; }
  .wh-screen .wh-cb-chart .wh-px { width: 70%; }
  .wh-screen .wh-cb-chart:hover { filter: brightness(1.2); transform: translateY(-1px); }
  .wh-screen .wh-cb-quiet { font-style: normal; color: var(--dim); }
  .wh-screen .wh-rcol > .wh-token { display: none; }

  /* ── Nethara's top guild: the community's podium ── */
  .wh-screen .wh-showcase .wh-sc-head { order: -2; padding-bottom: calc(4px * var(--k)); }
  .wh-screen .wh-showcase .wh-sc-k {
    font: 400 calc(16px + 6px * var(--k))/1 var(--f-tome);
    letter-spacing: 0;
    color: #5e3a10;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .45);
  }
  .wh-screen .wh-showcase .wh-sc-banner { order: -1; }

  /* ── the standings: the whole ladder scrolls, your standing at its foot ── */
  .wh-screen .wh-board { overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; padding-right: 4px; gap: calc(6px * var(--k)); }
  .wh-screen .wh-board > * { flex: none; }
  .wh-screen .wh-rows { flex: none; overflow: visible; }
  .wh-screen .wh-rcol .wh-full { display: block; }
  .wh-screen .wh-you { margin-top: 0; }
  /* three big cards */
  .wh-screen .wh-podium.is-stack .wh-step { position: relative; min-height: calc(58px + 22px * var(--k)); padding-right: calc(46px + 18px * var(--k)); }
  .wh-screen .wh-podium.is-stack .wh-step.is-gold { min-height: calc(70px + 30px * var(--k)); }
  .wh-screen .wh-podium.is-stack .wh-cat.is-podium,
  .wh-screen .wh-podium.is-stack .wh-gcrest.is-podium { width: calc(48px + 16px * var(--k)); }
  .wh-screen .wh-podium.is-stack .wh-step.is-gold .wh-cat.is-podium,
  .wh-screen .wh-podium.is-stack .wh-step.is-gold .wh-gcrest.is-podium { width: calc(58px + 24px * var(--k)); }
  .wh-screen .wh-podium.is-stack .wh-medal { display: none; }
  .wh-screen .wh-medal-ic { display: inline-grid; place-items: center; flex: none; }
  .wh-screen .wh-medal-ic .wh-px { width: calc(16px + 6px * var(--k)); }
  .wh-screen .wh-medal-ic.is-big { position: absolute; right: calc(8px * var(--k)); top: 50%; transform: translateY(-50%); }
  .wh-screen .wh-medal-ic.is-big .wh-px { width: calc(32px + 12px * var(--k)); filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .55)); }
  .wh-screen .wh-podium.is-stack .wh-step.is-gold .wh-medal-ic.is-big .wh-px { width: calc(38px + 16px * var(--k)); }
  .wh-screen .wh-podium.is-stack .wh-step.is-gold .wh-medal-ic.is-big { animation: wh-medal 2.6s ease-in-out infinite; }
  @keyframes wh-medal { 50% { transform: translateY(-50%) rotate(-6deg) scale(1.06); filter: drop-shadow(0 0 8px rgba(255, 210, 122, .7)); } }
  /* rows 4 to 7: the medal beside the score */
  .wh-screen .wh-val { display: inline-flex; align-items: center; gap: calc(6px * var(--k)); justify-self: end; }
  /* the tiers */
  .wh-screen .wh-medals { display: grid; gap: calc(6px * var(--k)); padding: calc(8px * var(--k)) calc(10px * var(--k)); border-radius: calc(6px + 3px * var(--k)); background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 2px var(--line); }
  .wh-screen .wh-medals-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
  .wh-screen .wh-medals-h b { font: 400 calc(14px + 5px * var(--k))/1 var(--f-tome); color: var(--gold); }
  .wh-screen .wh-medals-h i { font-style: normal; font-size: calc(12px + 2px * var(--k)); color: var(--dim); }
  .wh-screen .wh-medals-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
  .wh-screen .wh-medals-t { display: grid; justify-items: center; gap: 4px; }
  .wh-screen .wh-medals-t .wh-px { width: calc(22px + 8px * var(--k)); }
  .wh-screen .wh-medals-t i { font: normal calc(5px + 2px * var(--k))/1 var(--f-px); color: var(--ink-2); }
  .wh-screen .wh-you-line .wh-medal-ic .wh-px { width: calc(22px + 10px * var(--k)); }
  /* a laptop window keeps the big cards, a little smaller; the board scrolls */
  @container wh (max-height: 1000px) {
    .wh-screen .wh-podium.is-stack :is(.wh-psub, .wh-pval i) { display: flex; }
    .wh-screen .wh-podium.is-stack .wh-pval i { display: block; }
    .wh-screen .wh-podium.is-stack .wh-step { min-height: 56px; padding-top: 4px; padding-bottom: 4px; }
    .wh-screen .wh-podium.is-stack .wh-step.is-gold { min-height: 64px; }
    .wh-screen .wh-full { display: block; }
    .wh-screen .wh-you-k { display: block; }
  }

  /* ── EVERY PAGE OPENED FROM HOME WEARS HOME'S FEEL ── */
  /* the frame: Home's own page, rounded and dark with the gold rim, in
     place of the slate window and its ribbon */
  /* (and a station's bench window, #4605: world-bench.js homeLook stamps
     data-chrome='home' on the sheet while that door is open, so the bench
     wears these same rules rather than a copy of them) */
  body.hud-v2 .ws-sheet[data-chrome='home'],
  body.wh-hosting .ws-sheet:not([data-door='map']) {
    border: 0 !important;
    border-image: none !important;
    border-radius: 18px !important;
    background: linear-gradient(180deg, #182030, #0e121c) !important;
    box-shadow: inset 0 0 0 2px #0b0f15, inset 0 0 0 4px #7e6440, 0 10px 30px rgba(0, 0, 0, .55) !important;
    padding: 14px 20px 16px !important;
    overflow: hidden;
  }
  body.hud-v2 .ws-sheet[data-chrome='home'] .ws-sheet-top,
  body.wh-hosting .ws-sheet .ws-sheet-top {
    position: relative !important;
    display: flex !important;
    align-items: center;
    gap: 16px;
    min-height: 44px !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
  }
  body.hud-v2 .ws-sheet[data-chrome='home'] .ws-sheet-title,
  body.wh-hosting .ws-sheet .ws-sheet-title {
    position: static !important;
    translate: none !important;
    left: auto !important;
    top: auto !important;
    height: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    border: 0 !important;
    border-image: none !important;
    background: none !important;
    font: 400 32px/1 'New Rocker', serif !important;
    color: #fff1d6 !important;
    text-shadow: 0 3px 0 #0b0f15 !important;
  }
  /* the X goes: Home and ESC are the way back */
  body.hud-v2 .ws-sheet[data-chrome='home'] .ws-sheet-top .wr-plank,
  body.wh-hosting .ws-sheet .ws-sheet-top .wr-plank { display: none !important; }
  body.hud-v2 .ws-sheet[data-chrome='home'] .wh-host-back,
  body.wh-hosting .ws-sheet .wh-host-back { margin-right: 0; }
  /* the head reads left to right: Home, the page's name, and its tabs on the right */
  body.hud-v2 .ws-sheet[data-chrome='home'] .ws-sheet-top,
  body.wh-hosting .ws-sheet .ws-sheet-top { justify-content: flex-start !important; }
  body.hud-v2 .ws-sheet[data-chrome='home'] .ws-sheet-top .ws-sheet-title,
  body.wh-hosting .ws-sheet .ws-sheet-top .ws-sheet-title { margin: 0 0 0 8px !important; flex: none !important; width: auto !important; text-align: left !important; }
  body.hud-v2 .ws-sheet[data-chrome='home'] .ws-sheet-body,
  body.wh-hosting .ws-sheet .ws-sheet-body { padding-top: 0 !important; }
  /* the tabs, as Home's pills */
  body.wh-hosting .ws-sheet :is(.ws-paneltab, .ww-boardscope) {
    border: 0 !important;
    border-image: none !important;
    border-radius: 999px !important;
    padding: 12px 24px !important;
    font-size: 13px !important;
    background: #1a2130 !important;
    box-shadow: inset 0 0 0 2px #0b0f15, inset 0 0 0 3px #4b5874, 0 3px 0 #05070b !important;
    color: #d9cdb2 !important;
    transition: transform .12s ease, filter .12s ease;
  }
  body.wh-hosting .ws-sheet :is(.ws-paneltab, .ww-boardscope):hover { transform: translateY(-1px); filter: brightness(1.15); }
  body.wh-hosting .ws-sheet :is(.ws-paneltab[aria-current], .ws-paneltab.is-on, .ww-boardscope.is-on, .ww-boardscope[aria-pressed='true'], .ww-boardscope[aria-selected='true']) {
    background: linear-gradient(180deg, #c0444c, #8e2a31) !important;
    box-shadow: inset 0 0 0 2px #0b0f15, inset 0 2px 0 2px #e66a71, 0 3px 0 #05070b !important;
    color: #fff1d6 !important;
  }
  /* a door's side tabs (the Guild's Guild | Social) come inside the page's
     head, beside the way back, as the same pills */
  body.wh-hosting .ws-tabs:not(:empty) {
    position: fixed !important;
    left: calc(var(--wh-host-l) + var(--wh-host-w) - 24px) !important;
    right: auto !important;
    top: calc(var(--wh-host-t) + 16px) !important;
    right: auto !important;
    bottom: auto !important;
    width: max-content !important;
    flex-wrap: nowrap !important;
    height: auto !important;
    translate: -100% 0 !important;
    transform: none !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    border-image: none !important;
  }
  body.wh-hosting .ws-tabs > button {
    position: static !important;
    width: auto !important;
    margin: 0 !important;
    border: 0 !important;
    border-image: none !important;
    border-radius: 999px !important;
    padding: 10px 18px !important;
    background: #1a2130 !important;
    box-shadow: inset 0 0 0 2px #0b0f15, inset 0 0 0 3px #4b5874, 0 3px 0 #05070b !important;
    color: #d9cdb2 !important;
    translate: none !important;
    height: auto !important;
    min-height: 0 !important;
    font: 10px/1 'Press Start 2P', ui-monospace, monospace !important;
  }
  body.wh-hosting .ws-tabs > button::after,
  body.wh-hosting .ws-tabs > button::before { display: none !important; }
  body.wh-hosting .ws-tabs > button:is([aria-current], [aria-selected='true'], [aria-pressed='true'], .is-on, .on) {
    background: linear-gradient(180deg, #c0444c, #8e2a31) !important;
    box-shadow: inset 0 0 0 2px #0b0f15, inset 0 2px 0 2px #e66a71, 0 3px 0 #05070b !important;
    color: #fff1d6 !important;
  }

  /* buttons lift and catch the light, as Home's do */
  body.hud-v2 .ws-sheet[data-chrome='home'] .ws-sheet-body button:not(:disabled),
  body.wh-hosting .ws-sheet .ws-sheet-body button:not(:disabled) { transition: transform .12s ease, filter .12s ease; }
  body.hud-v2 .ws-sheet[data-chrome='home'] .ws-sheet-body button:not(:disabled):hover,
  body.wh-hosting .ws-sheet .ws-sheet-body button:not(:disabled):hover { transform: translateY(-1px); filter: brightness(1.12); }
  body.hud-v2 .ws-sheet[data-chrome='home'] .ws-sheet-body button:not(:disabled):active,
  body.wh-hosting .ws-sheet .ws-sheet-body button:not(:disabled):active { transform: translateY(1px); }
  body.wh-hosting .ws-sheet .ws-frame { border-radius: 10px; }

  /* NETHARA'S TOP GUILD, SMALLER (Wray, 2026-10-28: "make the feature
     guild pane smaller so we can see more of the standings"): the banner a
     thin strip behind the heading, the crest, name and figures on one line,
     the two buttons small beside them. */
  .wh-screen .wh-rcol > .wh-showcase {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: calc(2px * var(--k)) calc(8px * var(--k));
    padding: calc(4px * var(--k)) calc(10px * var(--k)) calc(6px * var(--k));
    overflow: hidden;
  }
  .wh-screen .wh-showcase .wh-sc-banner {
    position: absolute;
    inset: 0 0 auto 0;
    width: 100%;
    height: calc(30px + 10px * var(--k));
    margin: 0;
    opacity: .35;
    object-fit: cover;
    mask-image: linear-gradient(180deg, #000, transparent);
    -webkit-mask-image: linear-gradient(180deg, #000, transparent);
    pointer-events: none;
  }
  .wh-screen .wh-showcase .wh-sc-head { position: relative; grid-column: 1 / -1; padding-bottom: 0; }
  .wh-screen .wh-showcase .wh-sc-k { font-size: calc(14px + 4px * var(--k)); }
  .wh-screen .wh-showcase .wh-sc-main { position: relative; grid-column: 1; gap: calc(6px * var(--k)); }
  .wh-screen .wh-showcase .wh-gcrest.is-showcase { width: calc(22px + 8px * var(--k)); }
  .wh-screen .wh-showcase .wh-sc-coin { width: calc(22px + 8px * var(--k)); height: calc(22px + 8px * var(--k)); }
  .wh-screen .wh-showcase .wh-sc-t b { font-size: calc(15px + 5px * var(--k)); }
  .wh-screen .wh-showcase .wh-sc-t i { font-size: calc(11px + 2px * var(--k)); }
  .wh-screen .wh-showcase .wh-sc-stats { position: relative; grid-column: 1; gap: calc(10px * var(--k)); margin: 0; }
  .wh-screen .wh-showcase .wh-sc-stat b { font-size: calc(7px + 3px * var(--k)); }
  .wh-screen .wh-showcase .wh-sc-stat i { font-size: calc(10px + 2px * var(--k)); }
  .wh-screen .wh-showcase .wh-sc-acts { position: relative; grid-column: 2; grid-row: 2 / span 2; display: grid; gap: calc(4px * var(--k)); margin: 0; }
  .wh-screen .wh-showcase .wh-sc-link { padding: calc(2px * var(--k)) calc(8px * var(--k)) calc(3px * var(--k)); font-size: calc(5px + 2px * var(--k)); text-align: center; }
  /* a laptop window: the guild's name keeps its room, the chart gives way */
  @container wh (max-width: 1600px) {
    .wh-screen .wh-showcase .wh-sc-link:not(.is-board) { display: none; }
    .wh-screen .wh-showcase .wh-sc-acts { grid-row: 2 / span 2; align-self: center; }
  }

  /* ══ ROUND 13 (Wray, 2026-10-28): the standings ribbon's words larger;
     one Store button in the chain's colours. ═════════════════════════ */
  .wh-screen .wh-ribbon {
    min-width: calc(180px + 60px * var(--k));
    padding-top: calc(4px * var(--k));
    padding-left: calc(36px * var(--k));
    padding-right: calc(36px * var(--k));
    font-size: calc(22px + 9px * var(--k));
  }
  .wh-screen .wh-shop.is-sol {
    --sol: linear-gradient(100deg, #9945ff, #7a5cff 25%, #19fb9b 55%, #00c2ff 80%, #9945ff);
    height: calc(46px + 14px * var(--k));
    padding: 0 calc(18px + 6px * var(--k)) 0 calc(8px + 4px * var(--k));
    border: 0;
    border-image: none;
    border-radius: calc(8px + 4px * var(--k));
    background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(0, 0, 0, .25)), var(--sol);
    background-size: 100% 100%, 300% 100%;
    box-shadow: inset 0 0 0 2px var(--line), inset 0 3px 0 2px rgba(255, 255, 255, .3), 0 4px 0 #05070b, 0 0 22px rgba(153, 69, 255, .45);
    animation: wh-sol 6s linear infinite;
  }
  @keyframes wh-sol { to { background-position: 0 0, 300% 0; } }
  .wh-screen .wh-shop.is-sol .wh-glyph { width: calc(26px + 10px * var(--k)); filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .6)); }
  .wh-screen .wh-shop.is-sol .wh-shop-t { display: grid; gap: calc(4px * var(--k)); color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .6); font-size: calc(9px + 4px * var(--k)); }
  .wh-screen .wh-shop-sub { font: normal calc(13px + 3px * var(--k))/1 var(--f-vt); color: rgba(255, 255, 255, .9); }
  .wh-screen .wh-shop.is-sol:hover { filter: brightness(1.1) saturate(1.1); }

  /* ── the foot ── */
  .wh-screen .wh-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 4px; }
  .wh-screen .wh-links { display: flex; gap: calc(10px * var(--k)); }
  .wh-screen .wh-link { font-size: calc(15px + 3px * var(--k)); color: var(--dim); text-decoration: none; text-shadow: 0 2px 0 var(--line); }
  .wh-screen .wh-link:hover { color: var(--gold); }
  .wh-screen .wh-back { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; font-size: calc(16px + 3px * var(--k)); color: var(--ink-2); text-shadow: 0 2px 0 var(--line); }

  /* arrival: the parts come in a beat apart. ONLY AS HOME OPENS (`is-fresh`, world-home.js burnIn), never on a
     redraw (#5566): the rule used to ride every paint, and Home is drawn again when the world arrives behind a
     returning player, so the whole menu went to nothing and faded back in at the moment the town appeared. */
  .wh-screen.is-fresh:not([hidden]) :is(.wh-top, .wh-left > *, .wh-right, .wh-foot) { animation: wh-in .38s ease-out both; }
  .wh-screen.is-fresh:not([hidden]) .wh-left > :nth-child(2) { animation-delay: .05s; }
  .wh-screen.is-fresh:not([hidden]) .wh-left > :nth-child(3) { animation-delay: .1s; }
  .wh-screen.is-fresh:not([hidden]) .wh-left > :nth-child(4) { animation-delay: .15s; }
  .wh-screen.is-fresh:not([hidden]) .wh-right { animation-delay: .08s; }

  @keyframes wh-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  @keyframes wh-sweep { to { transform: translateX(100%); } }
  @keyframes wh-bob { 0%, 100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(-6deg) translateY(-3px); } }
  @keyframes wh-blink { to { visibility: hidden; } }

  /* BURNT IN (the Pit's look A, PR #4506, borrowed on Wray's ask
     2026-10-28). Emphasis only, as the Pit tab keeps it: the one title and
     your own standing, never every heading, or it stops meaning anything.
     Built for a near-black ground, which both sit on (the hero's left
     shade, the standing's well). It burns in once as Home opens
     (world-home.js burnIn, .is-fresh) and then holds. */
  .wh-screen :is(.wh-hero-name, .wh-you-rank:not(.is-none)) {
    color: #fff1cf;
    text-shadow: 0 0 2px #fff7e0, 0 0 9px #ffd27a, 0 0 22px rgba(255, 122, 42, .85), 0 3px 0 #2a1206;
  }
  .wh-screen .wh-you-rank:not(.is-none) { font: 400 calc(20px + 14px * var(--k))/1 var(--f-tome); letter-spacing: .02em; }
  .wh-screen.is-fresh :is(.wh-brand-n, .wh-you-rank:not(.is-none)) { animation: wh-burn .9s cubic-bezier(.3, .7, .2, 1) .15s both; }
  @keyframes wh-burn {
    0% { clip-path: inset(-20% 100% -20% 0); filter: brightness(2.4) saturate(.4); }
    70% { clip-path: inset(-20% 0 -20% 0); filter: brightness(1.6); }
    100% { clip-path: inset(-20% 0 -20% 0); filter: none; }
  }

  /* THE DEEP ASKS FIRST (world-home.js askMode): the ask covers its own
     card, so Home does not move under it */
  .wh-screen .wh-ask {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: calc(4px * var(--k));
    padding: calc(6px * var(--k)) calc(10px * var(--k));
    background: linear-gradient(180deg, rgba(8, 6, 4, .78), rgba(8, 6, 4, .94) 55%);
    cursor: default;
    animation: wh-in .18s ease-out both;
  }
  .wh-screen .wh-ask-name { font: 400 calc(16px + 5px * var(--k))/1 var(--f-tome); color: #fff1d6; text-shadow: 0 2px 0 var(--line); }
  .wh-screen .wh-ask-line { font-style: normal; font-size: calc(13px + 2px * var(--k)); line-height: 1.1; color: var(--ink); text-shadow: 0 2px 0 var(--line); }
  .wh-screen .wh-ask-go { display: flex; gap: calc(8px * var(--k)); }
  .wh-screen :is(.wh-ask-yes, .wh-ask-no) {
    padding: calc(5px * var(--k)) calc(12px * var(--k)) calc(7px * var(--k));
    border-style: solid;
    border-width: calc(3px * var(--k)) calc(3px * var(--k)) calc(5px * var(--k));
    font: calc(8px + 3px * var(--k))/1 var(--f-px);
    image-rendering: pixelated;
    cursor: pointer;
  }
  .wh-screen .wh-ask-yes { border-image: url('/assets/ui/kitb/btngold.png?v=2026-09-24a') 3 3 5 3 fill / calc(3px * var(--k)) calc(3px * var(--k)) calc(5px * var(--k)) stretch; color: #2a1c0c; }
  .wh-screen .wh-ask-no { border-color: transparent; background: var(--well); box-shadow: inset 0 0 0 2px var(--line), 0 0 0 1px #4b5874; color: var(--ink-2); }
  .wh-screen :is(.wh-ask-yes, .wh-ask-no):is(:hover, :focus-visible) { filter: brightness(1.15); outline: none; }
  .wh-screen .wh-mode.is-asking { transform: none; }

  @media (prefers-reduced-motion: reduce) {
    .wh-screen *, .wh-screen *::before, .wh-screen *::after { animation: none !important; transition: none !important; }
  }

  /* ── sizes, from the screen's own box ── */
  @container wh (max-width: 1180px) {
    /* two columns: what's on stacks under the play column and the two
       scroll together; the standings stay pinned beside them */
    .wh-screen .wh-main { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: auto auto; align-items: start; overflow-y: auto; scrollbar-width: thin; }
    /* min-height auto: with 0 the first row sized below the play column and
       what's on drew over it (seen 2026-11-10 with Bring a friend) */
    .wh-screen :is(.wh-left, .wh-mid) { grid-column: 1; overflow: visible; min-height: auto; }
    .wh-screen .wh-left { grid-row: 1; }
    .wh-screen .wh-mid { grid-row: 2; }
    .wh-screen .wh-right { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 0; height: calc(100cqh - 150px); box-sizing: border-box; }
  }
  @container wh (min-width: 1400px) and (min-height: 800px) {
    .wh-screen .wh-shell { --k: 2; --gap: 12px; --pad: 18px; }
  }
  /* a landscape phone: the standings stay in view, the left column scrolls */
  @container wh (max-height: 520px) {
    .wh-screen .wh-shell { --gap: 6px; --pad: 6px; }
    .wh-screen :is(.wh-me-sub, .wh-guildtag, .wh-icon-t, .wh-coin-t small, .wh-topguild-t i) { display: none; }
    .wh-screen .wh-face { width: 36px; }
    .wh-screen .wh-me-name { font-size: 18px; }
    .wh-screen .wh-hero { min-height: 84px; }
    .wh-screen .wh-hero-name { font-size: 28px; }
    .wh-screen .wh-week-row { grid-template-columns: 1fr 1fr; }
    .wh-screen .wh-week-row.has-jobs > .wh-jobs { grid-column: 1 / -1; }
    .wh-screen .wh-week-row.has-jobs.has-rooms > .wh-jobs { grid-column: auto; }
    .wh-screen .wh-news { grid-column: 1 / -1; }
    .wh-screen .wh-podium .wh-crest { height: 30px; }
    .wh-screen .wh-podium .wh-step.is-gold .wh-crest { height: 38px; }
    .wh-screen .wh-podium .wh-plate { min-height: 34px; }
    .wh-screen .wh-podium .wh-step.is-gold .wh-plate { min-height: 40px; }
    .wh-screen .wh-foot { display: none; }
    /* the line he named must fit: the board's own subtitle and the label above the rank give way */
    .wh-screen :is(.wh-bhead, .wh-you-k, .wh-sc-stats, .wh-sc-head) { display: none; }
    /* two columns: what's on stacks under the play column and the two
       scroll together; the standings stay pinned beside them */
    .wh-screen .wh-main { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: auto auto; align-items: start; overflow-y: auto; scrollbar-width: thin; }
    /* min-height auto: with 0 the first row sized below the play column and
       what's on drew over it (seen 2026-11-10 with Bring a friend) */
    .wh-screen :is(.wh-left, .wh-mid) { grid-column: 1; overflow: visible; min-height: auto; }
    .wh-screen .wh-left { grid-row: 1; }
    .wh-screen .wh-mid { grid-row: 2; }
    .wh-screen .wh-right { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 0; height: calc(100cqh - 84px); box-sizing: border-box; }
    .wh-screen .wh-right { padding-top: 10px; }
  }

  /* ══ ROUND 8 (Wray, 2026-10-27) ═══════════════════════════════════════ */

  /* THE $9LV CARD: the token's DexScreener banner across the top, its logo
     and price on a dark slab, the links as the showcase's buttons */
  .wh-screen .wh-token {
    position: relative;
    display: grid;
    gap: calc(4px * var(--k));
    padding: 0 0 calc(8px * var(--k));
    background: var(--card);
    box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px #7e6440, var(--ledge);
    overflow: hidden;
  }
  .wh-screen .wh-tk-banner {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 1;
    object-fit: cover;
    box-shadow: inset 0 -2px 0 var(--line);
  }
  .wh-screen .wh-tk-head {
    display: flex;
    align-items: center;
    gap: calc(8px * var(--k));
    padding: calc(6px * var(--k)) calc(10px * var(--k)) 0;
    min-width: 0;
  }
  .wh-screen .wh-tk-banner + .wh-tk-head { margin-top: calc(-22px - 8px * var(--k)); }
  .wh-screen .wh-tk-logo {
    width: calc(34px + 12px * var(--k));
    height: calc(34px + 12px * var(--k));
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 0 0 2px var(--line), 0 0 0 4px var(--gold-btn), 0 4px 0 4px #05070b;
    flex: none;
  }
  .wh-screen .wh-tk-name { display: grid; gap: 2px; min-width: 0; flex: 1; align-self: end; }
  .wh-screen .wh-tk-name b { font: 400 calc(16px + 6px * var(--k))/1 var(--f-tome); color: #fff1d6; text-shadow: 0 2px 0 var(--line); }
  .wh-screen .wh-tk-name i { font-style: normal; font-size: calc(13px + 3px * var(--k)); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wh-screen .wh-tk-price { display: grid; justify-items: end; gap: 2px; align-self: end; }
  .wh-screen .wh-tk-price b { font: calc(8px + 4px * var(--k))/1 var(--f-px); color: #fff1d6; }
  .wh-screen .wh-tk-move { font-style: normal; font-size: calc(13px + 3px * var(--k)); }
  .wh-screen .wh-tk-move.is-up { color: var(--green); }
  .wh-screen .wh-tk-move.is-down { color: var(--red-hi); }
  .wh-screen .wh-tk-stats { display: flex; gap: calc(14px * var(--k)); padding: 0 calc(10px * var(--k)); }
  .wh-screen .wh-tk-stat { display: grid; line-height: 1; }
  .wh-screen .wh-tk-stat b { font: calc(7px + 3px * var(--k))/1 var(--f-px); color: var(--ink); }
  .wh-screen .wh-tk-stat i { font-style: normal; font-size: calc(13px + 2px * var(--k)); color: var(--dim); }
  .wh-screen .wh-tk-quiet { margin: 0; padding: 0 calc(10px * var(--k)); color: var(--dim); font-size: calc(14px + 2px * var(--k)); }
  .wh-screen .wh-tk-links { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 calc(10px * var(--k)); }
  .wh-screen .wh-tk-link {
    padding: calc(3px * var(--k)) calc(8px * var(--k)) calc(5px * var(--k));
    border-style: solid;
    border-width: calc(3px * var(--k)) calc(3px * var(--k)) calc(5px * var(--k));
    border-image: url('/assets/ui/kitb/btn.png?v=2026-09-24a') 3 3 5 3 fill / calc(3px * var(--k)) calc(3px * var(--k)) calc(5px * var(--k)) stretch;
    font: calc(5px + 2px * var(--k))/1.2 var(--f-px);
    color: var(--ink);
    text-decoration: none;
    image-rendering: pixelated;
    filter: drop-shadow(0 3px 0 #05070b);
  }
  .wh-screen .wh-tk-link[data-kind='telegram'] { border-image-source: url('/assets/ui/kitb/btngold.png?v=2026-09-24a'); color: #2a1c0c; }
  .wh-screen .wh-tk-link:hover { filter: brightness(1.12) drop-shadow(0 4px 0 #05070b); }

  /* THE SHOWCASE WEARS ITS COIN'S BANNER (Wray: "can we get the token logo
     from dexscreener as the guild banner?"): the DexScreener header across
     the top of the parchment card, the card's own rows below it */
  .wh-screen .wh-sc-banner {
    display: block;
    width: calc(100% + 20px * var(--k));
    margin: calc(-6px * var(--k)) calc(-10px * var(--k)) 0;
    aspect-ratio: 3 / 1;
    object-fit: cover;
    box-shadow: 0 2px 0 var(--line);
    order: -1;
  }

  /* HOSTED WINDOWS (Wray: "use the right half of the screen to open the
     inventory or the bazar ... and extend to full screen when the page needs
     it"). While Home is up a door's window is lifted over it and docked into
     the rectangle world-home.js measures from Home's own frame
     (--wh-host-*): beside the left column, or over the whole frame. The
     shell's window, its ribbons and the bag's side panels move up together,
     in the order they already keep among themselves (59 to 63). Inside this
     layer, so !important is what lets a layered rule beat the skin's
     unlayered geometry; the dim a centred window throws over the room is
     dropped, because the room is Home. */
  /* AND THE WORLD'S OWN HUD STEPS OUT while Home is up (round 8, measured
     at 2016x1160: the chat, the bar of slots, the plate and the door row
     showed through the gaps between Home's columns). Hidden, not removed:
     the plate's canvas still draws, and Home's top bar copies its portrait. */
  body.wh-open #world-chat-panel,
  body.wh-open #w0worldbar,
  body.wh-open .an-tl,
  body.wh-open .an-tr,
  body.wh-open #wt-foot,
  /* the cats' speech bubbles too (#4560): drawn over the world, they read
     through the veil and the windows as stray words across Home's pages */
  body.wh-open #bubbles,
  body.wh-open .wld-door { visibility: hidden !important; }
  /* ...the legacy arena's PLAY ARENA plank too (2026-10-28 menu tour: it
     showed between the Spellbook and Inventory tiles). Two pieces come back
     OVER Home on purpose: the chat panel on its Messages tab when the
     Messages tile asks for it (world-home.js showChat, body.wh-chat), and a
     player's card (world-player-card.js), opened from your portrait or a
     name on the standings, so neither press leaves Home any more. */
  body.wh-open.wh-chat #world-chat-panel { visibility: visible !important; z-index: 9065 !important; }
  body.wh-open .wpc { z-index: 9070 !important; }
  /* the footer's links sit where the chat panel comes up; they step out
     while it is over Home rather than show through its frame */
  body.wh-chat .wh-screen .wh-foot > :first-child { visibility: hidden; }

  body.wh-hosting .ws-sheet {
  z-index: 9060 !important;
  left: var(--wh-host-l) !important;
  top: var(--wh-host-t) !important;
  width: var(--wh-host-w) !important;
  height: var(--wh-host-h) !important;
  translate: none !important;
  box-shadow: 0 8px 0 rgba(0, 0, 0, .45), 0 12px 24px rgba(0, 0, 0, .5) !important;
}
body.wh-hosting .ws-tabs { z-index: 9061 !important; }
body.wh-hosting .wc-window,
body.wh-hosting .ww-aside { z-index: 9061 !important; }
body.wh-hosting .ww-aside.is-over-sheet,
body.wh-hosting .ww-profile { z-index: 9062 !important; }
body.wh-hosting .ws-tabs.ww-proftabs { z-index: 9063 !important; }
/* ── THE STORE'S $9LV TAB, IN HOME (round 13): the chain's own page drawn
   as Home's: the address a pill, the checks as green chips, the supply in
   large numbers over a thick rounded bar, every lock a card. ── */
body.wh-hosting .ws-sheet .ww-token { max-width: 1400px; margin: 0 auto; display: grid; gap: 16px; font-family: 'VT323', ui-monospace, monospace; }
body.wh-hosting .ws-sheet .ww-token .ww-ca {
  border: 0 !important;
  border-radius: 999px !important;
  padding: 10px 18px !important;
  background: #1a2130 !important;
  box-shadow: inset 0 0 0 2px #0b0f15, inset 0 0 0 3px #4b5874 !important;
}
body.wh-hosting .ws-sheet .ww-token .ww-ca-addr { font-size: 18px !important; color: #efe3c8 !important; }
body.wh-hosting .ws-sheet .ww-token .ww-ca-copy { border-radius: 999px !important; padding: 6px 14px !important; }
body.wh-hosting .ws-sheet .ww-token .ww-checks { display: flex; gap: 10px; flex-wrap: wrap; }
body.wh-hosting .ws-sheet .ww-token .ww-check {
  padding: 8px 14px !important;
  border-radius: 999px !important;
  background: rgba(79, 209, 140, .12) !important;
  box-shadow: inset 0 0 0 2px #0b0f15, inset 0 0 0 3px rgba(122, 214, 140, .45) !important;
  font-size: 18px !important;
}
body.wh-hosting .ws-sheet .ww-token .ww-supply { font-size: 22px !important; gap: 24px !important; }
body.wh-hosting .ws-sheet .ww-token .ww-supply :is(b, strong, .ww-v) { font: 400 30px/1 'New Rocker', serif !important; color: #fff1d6 !important; }
body.wh-hosting .ws-sheet .ww-token .ww-bar { height: 22px !important; border-radius: 999px !important; overflow: hidden; box-shadow: inset 0 0 0 2px #0b0f15 !important; }
body.wh-hosting .ws-sheet .ww-token .ww-key { font-size: 18px !important; gap: 20px !important; }
body.wh-hosting .ws-sheet .ww-token h3,
body.wh-hosting .ws-sheet .ww-token h4 { font: 400 28px/1 'New Rocker', serif !important; color: #fff1d6 !important; margin: 10px 0 0 !important; }
body.wh-hosting .ws-sheet .ww-token .ww-locks { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 10px !important; }
body.wh-hosting .ws-sheet .ww-token .ww-lock {
  border: 0 !important;
  border-radius: 14px !important;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(0, 0, 0, .14)), #1a2130 !important;
  box-shadow: inset 0 0 0 2px #0b0f15, inset 4px 0 0 0 #e0535c, 0 3px 0 #05070b !important;
}
body.wh-hosting .ws-sheet .ww-token .ww-lockhead { padding: 14px 16px !important; font-size: 20px !important; }
body.wh-hosting .ws-sheet .ww-token .ww-lock-amt { font-size: 20px !important; color: #e3c79a !important; }
body.wh-hosting .ws-sheet .ww-token .ww-lockchip { border-radius: 999px !important; padding: 4px 10px !important; }
/* ── THE INVENTORY, IN HOME: the bag's own layout (#4530, world-inventory-v2.css)
   applies here as in the world; Home only centres it in its page and lets it
   grow. Round 14's overrides were taken out in round 18: they fought the new
   layout (slot names overlapping, huge item icons). ── */
body.wh-hosting .ws-sheet[data-door='nine'] .ww-bag { max-width: 1500px; margin: 0 auto; }

/* ── THE LEADERBOARD, IN HOME (round 14): the ladder at a size that fills
   the page, the top three as gold, silver and bronze cards, every other
   place a framed row like Home's own standings. ── */
body.wh-hosting .ws-sheet[data-door='board'] .ww-table { width: min(1100px, 100%) !important; max-width: none !important; display: grid !important; gap: 6px !important; margin: 6px auto 0 !important; }
body.wh-hosting .ws-sheet[data-door='board'] .ww-table { align-content: start !important; height: auto !important; grid-auto-rows: auto !important; }
body.wh-hosting .ws-sheet[data-door='board'] .ww-rank.is-top :is(.ww-who, .ww-who *, .ww-score, .ww-unit, .ww-cap) { color: #fff1d6 !important; -webkit-text-fill-color: #fff1d6 !important; text-shadow: 0 2px 0 #0b0f15 !important; }
body.wh-hosting .ws-sheet[data-door='board'] .ww-rank.is-top .ww-rk { -webkit-text-fill-color: #2a1c0c !important; }
body.wh-hosting .ws-sheet[data-door='board'] .ww-rank.is-top .ww-crest-t { -webkit-text-fill-color: #2a1c0c !important; }
body.wh-hosting .ws-sheet[data-door='board'] .ww-rank.is-top .ww-unit { color: #d9cdb2 !important; }
body.wh-hosting .ws-sheet[data-door='board'] .ww-rank::before,
body.wh-hosting .ws-sheet[data-door='board'] .ww-rank::after { display: none !important; }
body.wh-hosting .ws-sheet[data-door='board'] .ww-rank {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 14px;
  width: auto !important;
  min-height: 52px;
  padding: 0 18px 0 10px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(0, 0, 0, .14)), #1a2130 !important;
  box-shadow: inset 0 0 0 2px #0b0f15, inset 0 2px 0 2px rgba(255, 255, 255, .04), 0 3px 0 #05070b !important;
  color: #efe3c8 !important;
  transition: transform .15s cubic-bezier(.2, .8, .25, 1), filter .15s ease;
}
body.wh-hosting .ws-sheet[data-door='board'] .ww-rank.is-link:hover { transform: translateX(4px); filter: brightness(1.15); }
body.wh-hosting .ws-sheet[data-door='board'] .ww-rank.is-top { min-height: 74px; }
body.wh-hosting .ws-sheet[data-door='board'] .ww-rank.is-gold { --mc: #f2b81a; }
body.wh-hosting .ws-sheet[data-door='board'] .ww-rank.is-silver { --mc: #a8b4c8; }
body.wh-hosting .ws-sheet[data-door='board'] .ww-rank.is-bronze { --mc: #d08a4a; }
body.wh-hosting .ws-sheet[data-door='board'] .ww-rank.is-top {
  background: linear-gradient(90deg, color-mix(in srgb, var(--mc) 34%, transparent), color-mix(in srgb, var(--mc) 6%, transparent) 70%), #1a2130 !important;
  box-shadow: inset 0 0 0 2px #0b0f15, inset 0 0 0 4px color-mix(in srgb, var(--mc) 70%, #0b0f15), 0 4px 0 #05070b !important;
}
body.wh-hosting .ws-sheet[data-door='board'] .ww-rank.is-you { box-shadow: inset 0 0 0 2px #0b0f15, inset 0 0 0 4px #e0535c, 0 4px 0 #05070b !important; }
body.wh-hosting .ws-sheet[data-door='board'] .ww-rk {
  display: grid !important;
  place-items: center;
  width: 48px !important;
  height: 36px;
  border-radius: 10px;
  background: #121826;
  box-shadow: inset 0 0 0 2px #0b0f15, inset 0 0 0 3px #4b5874;
  font: 13px/1 'Press Start 2P', ui-monospace, monospace !important;
  color: #d9cdb2 !important;
}
body.wh-hosting .ws-sheet[data-door='board'] .ww-rank.is-top .ww-rk { background: var(--mc); color: #2a1c0c !important; box-shadow: inset 0 0 0 2px #0b0f15, inset 0 3px 0 2px rgba(255, 255, 255, .35); }
body.wh-hosting .ws-sheet[data-door='board'] .ww-who { font: 22px/1 'VT323', ui-monospace, monospace !important; color: #fff1d6 !important; }
body.wh-hosting .ws-sheet[data-door='board'] .ww-rank.is-top .ww-who { font: 400 26px/1 'New Rocker', serif !important; }
body.wh-hosting .ws-sheet[data-door='board'] .ww-who .ww-cap { font: inherit !important; color: inherit !important; }
body.wh-hosting .ws-sheet[data-door='board'] .ww-crest-h { width: 26px !important; height: 26px !important; }
body.wh-hosting .ws-sheet[data-door='board'] .ww-crest-t { padding: 3px 6px; border-radius: 4px; background: #dda52c; color: #2a1c0c !important; font-size: 10px !important; }
body.wh-hosting .ws-sheet[data-door='board'] .ww-score { font: 16px/1 'Press Start 2P', ui-monospace, monospace !important; color: #e3c79a !important; }
body.wh-hosting .ws-sheet[data-door='board'] .ww-rank.is-top .ww-score { font-size: 20px !important; color: #fff1d6 !important; }
body.wh-hosting .ws-sheet[data-door='board'] .ww-unit { font: 16px/1 'VT323', ui-monospace, monospace !important; color: #b4bfcc !important; }

/* ── TASKS, IN HOME (round 14, Wray: "these are 'tasks' instead of
   quests"): the first steps and the week as cards in a centred column, a
   progress bar that reads, a big tick box. The News page is Home's own,
   so its tab steps out here. ── */
body.wh-hosting .ws-sheet[data-door='quests'] [data-seg='news'] { display: none !important; }
body.wh-hosting .ws-sheet[data-door='quests'] .ww-quests { max-width: 1100px; margin: 0 auto; display: grid; gap: 14px; }
body.wh-hosting .ws-sheet[data-door='quests'] .ww-q-head {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px !important;
  border: 0 !important;
}
body.wh-hosting .ws-sheet[data-door='quests'] .ww-q-head b { font: 400 28px/1 'New Rocker', serif !important; letter-spacing: 0 !important; text-transform: none !important; color: #fff1d6 !important; }
body.wh-hosting .ws-sheet[data-door='quests'] .ww-q-count { padding: 6px 12px !important; border-radius: 999px !important; background: #121826 !important; box-shadow: inset 0 0 0 2px #0b0f15, inset 0 0 0 3px #4b5874 !important; font: 12px/1 'Press Start 2P', ui-monospace, monospace !important; }
body.wh-hosting .ws-sheet[data-door='quests'] .ww-q-steps { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px !important; }
body.wh-hosting .ws-sheet[data-door='quests'] .ww-q-item {
  display: flex !important;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 14px !important;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(0, 0, 0, .14)), #1a2130;
  box-shadow: inset 0 0 0 2px #0b0f15, inset 0 0 0 3px #4b5874, 0 3px 0 #05070b;
}
body.wh-hosting .ws-sheet[data-door='quests'] .ww-q-goal { font: 22px/1 'VT323', ui-monospace, monospace !important; color: #fff1d6 !important; }
body.wh-hosting .ws-sheet[data-door='quests'] .ww-q-ck,
body.wh-hosting .ws-sheet[data-door='quests'] .ww-q-mark { width: 26px !important; height: 26px !important; border-radius: 7px !important; }
body.wh-hosting .ws-sheet[data-door='quests'] .ww-q-kc { padding: 4px 8px !important; border-radius: 6px !important; font-size: 12px !important; }
body.wh-hosting .ws-sheet[data-door='quests'] .ww-q-meter .ws-meter { height: 18px !important; border-radius: 999px !important; overflow: hidden; }
body.wh-hosting .ws-sheet[data-door='quests'] .ww-q-row {
  display: flex !important;
  align-items: center;
  gap: 16px;
  min-height: 84px;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(221, 165, 44, .14), transparent 60%), #1a2130;
  box-shadow: inset 0 0 0 2px #0b0f15, inset 0 0 0 3px #7e6440, 0 4px 0 #05070b;
}
body.wh-hosting .ws-sheet[data-door='quests'] .ww-q-name { font: 400 28px/1 'New Rocker', serif !important; color: #fff1d6 !important; }
body.wh-hosting .ws-sheet[data-door='quests'] .ww-q-desc { margin-top: 6px; font: 20px/1 'VT323', ui-monospace, monospace !important; color: #b4bfcc !important; }
body.wh-hosting .ws-sheet[data-door='quests'] .ww-q-reset { text-align: center; font: 20px/1.3 'VT323', ui-monospace, monospace !important; color: #b4bfcc !important; }
/* the doors Home took off the world's row (world-albion-nav.js trimForHome) */
body.an-home .an-tile.an-home-off { display: none !important; }
/* ── THE PLAYER REWARDS POOL (round 16): a gold plaque under the coin, the
   total large, its dollar figure, and how much is in the wallet against
   still vesting in ── */
.wh-screen .wh-pool {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: 'k k' 'v usd' 'line line';
  align-items: baseline;
  gap: calc(3px * var(--k)) calc(12px * var(--k));
  padding: calc(8px + 2px * var(--k)) calc(16px + 4px * var(--k));
  border-radius: calc(10px + 4px * var(--k));
  background:
    radial-gradient(ellipse 60% 120% at 0% 50%, rgba(255, 210, 122, .28), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(0, 0, 0, .18)), #1c1a14;
  box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px #b37a18, 0 4px 0 #05070b, 0 0 24px rgba(221, 165, 44, .18);
  overflow: hidden;
}
.wh-screen .wh-pool-k { grid-area: k; font: calc(6px + 3px * var(--k))/1 var(--f-px); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-btn); }
.wh-screen .wh-pool-v {
  grid-area: v;
  font: 400 calc(24px + 12px * var(--k))/1 var(--f-tome);
  color: #fff1cf;
  text-shadow: 0 0 2px #fff7e0, 0 0 9px #ffd27a, 0 0 18px rgba(255, 122, 42, .6), 0 3px 0 #2a1206;
}
.wh-screen .wh-pool-usd { grid-area: usd; font: normal calc(8px + 4px * var(--k))/1 var(--f-px); color: #8fd89a; }
.wh-screen .wh-pool-line { grid-area: line; font-style: normal; font-size: calc(13px + 3px * var(--k)); color: var(--ink-2); }
.wh-screen .wh-pool::after {
  content: '';
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: -60%;
  width: 30%;
  background: linear-gradient(100deg, rgba(255, 244, 214, 0), rgba(255, 244, 214, .18) 50%, rgba(255, 244, 214, 0));
  transform: skewX(-20deg);
  animation: wh-pool-sheen 6s ease-in-out 2s infinite;
  pointer-events: none;
}
@keyframes wh-pool-sheen { 0%, 70% { left: -60%; } 100% { left: 140%; } }
.wh-screen .wh-left > :is(.wh-pool, .wh-coinbar, .wh-links, .wh-tiles, .wh-week, .wh-play, .wh-brand) { flex: none; }
@container wh (max-height: 1000px) {
  .wh-screen .wh-pool { grid-template-areas: 'k v usd'; grid-template-columns: auto auto 1fr; padding: 6px 14px; }
  .wh-screen .wh-pool-line { display: none; }
  .wh-screen .wh-pool-v { font-size: 24px; }
  .wh-screen .wh-coinbar .wh-cb-cell:nth-last-of-type(1):not(.is-price):not(.is-name) { display: none; }
}
/* ── THE INVENTORY AS A HOME PAGE (round 18): the bag's own pieces (#4530)
   laid out across the page: your cat and its gear on the left with what the
   gear adds beside it, the bag filling the right. Cells stay near the size
   they are in the world rather than stretching to the page. ── */
body.wh-hosting .ws-sheet[data-door='nine'] .ww-bag { max-width: 1760px !important; margin: 0 auto !important; height: 100%; }
body.wh-hosting .ws-sheet[data-door='nine'] .ww-bagwrap.ww-inv2,
body.wh-hosting .ws-sheet[data-door='nine'] .ww-bagwrap.ww-inv2:has(> .ww-inv2-who .ww-bagpower[hidden]) {
  --inv2-side: 230px;
  grid-template-columns: auto var(--inv2-side) minmax(0, 1fr) !important;
  grid-template-areas:
    "doll side bhead"
    "doll side note"
    "doll side foot"
    "doll side bag"
    "sock sock bag" !important;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto !important;
  column-gap: 22px !important;
  height: 100%;
  align-content: stretch;
}
body.wh-hosting .ws-sheet[data-door='nine'] .ww-inv2 .ww-dollbox {
  grid-area: doll !important;
  align-self: start;
  width: min(620px, calc((100cqh - 40px) * 1.2574)) !important;
  margin: 4px 0 0 !important;
}
body.wh-hosting .ws-sheet[data-door='nine'] .ww-inv2 > .ww-inv2-who { margin-top: 4px !important; }
body.wh-hosting .ws-sheet[data-door='nine'] .ww-inv2 > .ww-stats.ww-mods { margin-top: 0 !important; }
body.wh-hosting .ws-sheet[data-door='nine'] .ww-inv2 .ww-bag1 {
  --inv2-cols: auto-fill;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)) !important;
  align-content: start;
}
body.wh-hosting .ws-sheet[data-door='nine'] .ww-inv2 .ww-bag1 > .ww-slotc { width: auto !important; height: auto !important; aspect-ratio: 1; }
body.wh-hosting .ws-sheet[data-door='nine'] .ww-inv2 .ww-bag1 > .ww-slotc img { max-width: 72%; max-height: 72%; object-fit: contain; }
/* ── round 19, the sweep of every tab ── */
/* the Leaderboard: a top row's note ("2 cats") reads on the dark card */
body.wh-hosting .ws-sheet[data-door='board'] .ww-rank.is-top .ww-note:not(.ww-crest) { color: #d9cdb2 !important; -webkit-text-fill-color: #d9cdb2 !important; font: 16px/1 'VT323', ui-monospace, monospace !important; }
body.wh-hosting .ws-sheet[data-door='board'] .ww-rank .ww-note:not(.ww-crest) { font: 16px/1 'VT323', ui-monospace, monospace !important; color: #b4bfcc !important; }
/* the period row (Today, Season, All time) under the head, centred over the ladder */
body.wh-hosting .ws-sheet[data-door='board'] .ww-boardbar { display: flex; justify-content: center; border: 0 !important; }

/* Tasks: the Inbox's empty line and its rows in the page's type */
body.wh-hosting .ws-sheet[data-door='quests'] .ww-qcontent { max-width: 1100px; margin: 0 auto; width: 100%; }
body.wh-hosting .ws-sheet[data-door='quests'] .ww-qcontent :is(p, .ww-empty, .ww-quiet) { font: 22px/1.3 'VT323', ui-monospace, monospace !important; color: #b4bfcc !important; text-align: center; padding: 40px 0; }

/* Friends (the Guild door's Social tab): a centred column, the add box a pill,
   each friend a framed row with the name in the title face */
body.wh-hosting .ws-sheet .ws-social { max-width: 1100px; margin: 0 auto !important; width: 100%; }
body.wh-hosting .ws-sheet .ws-friend-add { display: flex; gap: 12px; margin-bottom: 18px !important; }
body.wh-hosting .ws-sheet .ws-friend-in {
  flex: 1;
  height: 48px !important;
  border: 0 !important;
  border-image: none !important;
  border-radius: 999px !important;
  padding: 0 20px !important;
  background: #121826 !important;
  box-shadow: inset 0 0 0 2px #0b0f15, inset 0 0 0 3px #4b5874 !important;
  font: 22px/1 'VT323', ui-monospace, monospace !important;
  color: #efe3c8 !important;
}
body.wh-hosting .ws-sheet .ws-friend-b {
  height: 48px !important;
  padding: 0 20px !important;
  border: 0 !important;
  border-image: none !important;
  border-radius: 999px !important;
  background: #1a2130 !important;
  box-shadow: inset 0 0 0 2px #0b0f15, inset 0 0 0 3px #7e6440, 0 3px 0 #05070b !important;
  font: 11px/1 'Press Start 2P', ui-monospace, monospace !important;
  color: #e3c79a !important;
}
body.wh-hosting .ws-sheet .ws-friend-add .ws-friend-b { background: linear-gradient(180deg, #f3d79a, #dda52c) !important; color: #2a1c0c !important; }
body.wh-hosting .ws-sheet .ws-friend-b:hover { filter: brightness(1.12); transform: translateY(-1px); }
body.wh-hosting .ws-sheet .ws-social .ws-nav-h { margin: 8px 0 10px !important; font: 400 28px/1 'New Rocker', serif !important; color: #fff1d6 !important; text-transform: none !important; letter-spacing: 0 !important; }
body.wh-hosting .ws-sheet .ws-navrow.ws-friend {
  min-height: 68px;
  margin-bottom: 8px;
  padding: 0 14px 0 20px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(0, 0, 0, .14)), #1a2130 !important;
  box-shadow: inset 0 0 0 2px #0b0f15, inset 0 2px 0 2px rgba(255, 255, 255, .04), 0 3px 0 #05070b !important;
}
body.wh-hosting .ws-sheet .ws-friend .ws-nav-t b { font: 400 26px/1 'New Rocker', serif !important; color: #fff1d6 !important; }
body.wh-hosting .ws-sheet .ws-friend .ws-nav-t i { margin-top: 4px; font: 16px/1 'VT323', ui-monospace, monospace !important; color: #b4bfcc !important; }
body.wh-hosting .ws-sheet .ws-friend-acts { display: flex; gap: 8px; }

/* Settings' Wallet: the "sign it somewhere else" fold reads as a heading, not a shout */
body.wh-hosting .ws-sheet .ws-frame { background: transparent; }
/* Settings' Help tab (native): a centred column, Nerm's steps as numbered cards */
body.wh-hosting .ws-sheet .ww-help { max-width: 1000px; margin: 0 auto; display: grid; gap: 14px; }
body.wh-hosting .ws-sheet .ww-help-head b { font: 400 30px/1 'New Rocker', serif !important; color: #fff1d6 !important; text-transform: none !important; letter-spacing: 0 !important; }
body.wh-hosting .ws-sheet .ww-help-state { padding: 6px 12px; border-radius: 999px; background: #121826; box-shadow: inset 0 0 0 2px #0b0f15, inset 0 0 0 3px #4b5874; font: 16px/1 'VT323', ui-monospace, monospace !important; }
body.wh-hosting .ws-sheet .ww-help-sub { font: 22px/1.25 'VT323', ui-monospace, monospace !important; color: #b4bfcc !important; }
body.wh-hosting .ws-sheet .ww-help-go {
  justify-self: center;
  width: auto !important;
  height: 52px !important;
  padding: 0 40px !important;
  border: 0 !important;
  border-image: none !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #f3d79a, #dda52c) !important;
  box-shadow: inset 0 0 0 2px #0b0f15, inset 0 3px 0 2px rgba(255, 255, 255, .35), 0 4px 0 #05070b !important;
  font: 13px/1 'Press Start 2P', ui-monospace, monospace !important;
  color: #2a1c0c !important;
}
body.wh-hosting .ws-sheet .ww-help-list { display: grid; gap: 8px; }
body.wh-hosting .ws-sheet .ww-help-row {
  display: flex !important;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding: 8px 18px !important;
  border: 0 !important;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(0, 0, 0, .14)), #1a2130;
  box-shadow: inset 0 0 0 2px #0b0f15, inset 0 2px 0 2px rgba(255, 255, 255, .04), 0 3px 0 #05070b;
}
body.wh-hosting .ws-sheet .ww-help-n { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #dda52c; color: #2a1c0c !important; font: 13px/1 'Press Start 2P', ui-monospace, monospace !important; }
body.wh-hosting .ws-sheet .ww-help-t { font: 21px/1.25 'VT323', ui-monospace, monospace !important; color: #efe3c8 !important; }
/* ── LOOK IT UP (#5452, Wray 2026-11-20: shape A, "an encyclopedia menu" with a
   search). Help's page: the list and its search on the left, the open entry on
   the right; the first run is the first entry. In the small docked window the
   two stack. Boxes, type and colours are the Help tab's own above. ── */
.ws-sheet .ww-lookup .ww-lk-grid { display: grid; gap: 16px; align-items: start; }
.ws-sheet .ww-lookup .ww-lk-left { display: grid; gap: 10px; align-content: start; }
.ws-sheet .ww-lookup .ww-lk-search { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 12px; background: #121826; box-shadow: inset 0 0 0 2px #0b0f15, inset 0 0 0 3px #4b5874; cursor: text; }
.ws-sheet .ww-lookup .ww-lk-search:focus-within { box-shadow: inset 0 0 0 2px #0b0f15, inset 0 0 0 3px #dda52c; }
.ws-sheet .ww-lookup .ww-lk-glass { font: 28px/1 'VT323', ui-monospace, monospace; color: #dda52c; transform: scaleX(-1); }
.ws-sheet .ww-lookup .ww-lk-q { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; font: 22px/1 'VT323', ui-monospace, monospace; color: #fff1d6; }
.ws-sheet .ww-lookup .ww-lk-q::placeholder { color: #7d8aa0; }
.ws-sheet .ww-lookup .ww-lk-q::-webkit-search-cancel-button { filter: grayscale(1) brightness(1.6); }
.ws-sheet .ww-lookup .ww-lk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-sheet .ww-lookup .ww-lk-chip { position: static !important; flex: none; }
.ws-sheet .ww-lookup .ww-lk-row { width: 100%; justify-content: flex-start; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.ws-sheet .ww-lookup .ww-lk-name { flex: 1; }
.ws-sheet .ww-lookup .ww-lk-cat { font: 17px/1 'VT323', ui-monospace, monospace; color: #7d8aa0; }
.ws-sheet .ww-lookup .ww-lk-none { margin: 6px 4px; font: 20px/1.25 'VT323', ui-monospace, monospace; color: #b4bfcc; }
.ws-sheet .ww-lookup .ww-lk-entry { display: grid; gap: 16px; align-content: start; padding: 24px 28px 26px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(0, 0, 0, .14)), #1a2130;
  box-shadow: inset 0 0 0 2px #0b0f15, inset 0 2px 0 2px rgba(255, 255, 255, .04), 0 3px 0 #05070b; }
/* the first run, drawn inside the entry box: it keeps its own column, unboxed */
.ws-sheet .ww-lookup .ww-lk-entry > .ww-help { max-width: none; margin: 0; padding: 0; }
.ws-sheet .ww-lookup .ww-lk-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ws-sheet .ww-lookup .ww-lk-title { font: 400 40px/1 'New Rocker', serif; color: #fff1d6; }
.ws-sheet .ww-lookup .ww-lk-p { margin: 0; font: 24px/1.3 'VT323', ui-monospace, monospace; color: #efe3c8; max-width: 860px; }
.ws-sheet .ww-lookup .ww-lk-where { display: grid; gap: 8px; padding-top: 14px; border-top: 2px solid rgba(255, 255, 255, .07); }
.ws-sheet .ww-lookup .ww-lk-label { font: 10px/1 'Press Start 2P', ui-monospace, monospace; color: #dda52c; letter-spacing: 1px; }
.ws-sheet .ww-lookup .ww-lk-run { justify-self: start; padding: 0; border: 0; background: none; cursor: pointer; font: 20px/1.2 'VT323', ui-monospace, monospace; color: #f08f7a; text-decoration: underline; text-underline-offset: 3px; }
.ws-sheet .ww-lookup .ww-lk-run:hover { color: #ffb4a3; }
body.wh-hosting .ws-sheet .ww-help.ww-lookup { max-width: 1520px; }
body.wh-hosting .ws-sheet .ww-lookup .ww-lk-grid { grid-template-columns: minmax(380px, 500px) 1fr; gap: 22px; }
body.wh-hosting .ws-sheet .ww-lookup .ww-lk-row { min-height: 52px; }
body.wh-hosting .ws-sheet .ww-lookup .ww-lk-row .ww-lk-name { font-size: 24px !important; }
body.wh-hosting .ws-sheet .ww-lookup .ww-lk-row.is-open { box-shadow: inset 0 0 0 2px #0b0f15, inset 0 0 0 4px #dda52c, 0 3px 0 #05070b; }
body.wh-hosting .ws-sheet .ww-lookup .ww-lk-row:hover:not(.is-open) { box-shadow: inset 0 0 0 2px #0b0f15, inset 0 0 0 3px #7d8aa0, 0 3px 0 #05070b; }
body.wh-hosting .ws-sheet .ww-lookup .ww-lk-entry { min-height: 560px; padding: 28px 34px 30px; }
/* ── THE $9LV PAGE IN HOME: use the page (Wray: "text still on the small
   side, hard to read, we wanted full bleed for a reason so use up the
   space"). The flywheel is drawn at 1.4x across the full width, and the
   chain detail under it reads at the same size as Home's other pages. ── */
body.wh-hosting .ws-sheet[data-door='stall'] .ww-token { max-width: none !important; padding: 0 12px; }
/* the flywheel's own sizes, raised (never zoomed: its arrows are measured
   from where its cards land, and a zoom moves the boxes under the measure) */
body.wh-hosting .ws-sheet[data-door='stall'] .ww-flywheel .tfw { padding: 24px 30px 28px !important; }
body.wh-hosting .ws-sheet[data-door='stall'] .ww-flywheel .tfw-kicker { font-size: 11px !important; }
body.wh-hosting .ws-sheet[data-door='stall'] .ww-flywheel .tfw-title { font-size: 42px !important; }
body.wh-hosting .ws-sheet[data-door='stall'] .ww-flywheel .tfw-idea { font-size: 26px !important; line-height: 1.2 !important; }
body.wh-hosting .ws-sheet[data-door='stall'] .ww-flywheel .tfw-legend-i i { font-size: 22px !important; }
body.wh-hosting .ws-sheet[data-door='stall'] .ww-flywheel .tfw-chip { font-size: 10px !important; }
body.wh-hosting .ws-sheet[data-door='stall'] .ww-flywheel .tfw-band-head { font-size: 11px !important; }
body.wh-hosting .ws-sheet[data-door='stall'] .ww-flywheel .tfw-node-name { font-size: 28px !important; }
body.wh-hosting .ws-sheet[data-door='stall'] .ww-flywheel .tfw-hub .tfw-node-name { font-size: 30px !important; }
body.wh-hosting .ws-sheet[data-door='stall'] .ww-flywheel .tfw-node-name small { font-size: 9px !important; }
body.wh-hosting .ws-sheet[data-door='stall'] .ww-flywheel .tfw-node-line { font-size: 24px !important; line-height: 1.15 !important; }
body.wh-hosting .ws-sheet[data-door='stall'] .ww-flywheel .tfw-node-note { font-size: 21px !important; }
body.wh-hosting .ws-sheet[data-door='stall'] .ww-flywheel .tfw-item-head b { font-size: 24px !important; }
body.wh-hosting .ws-sheet[data-door='stall'] .ww-flywheel .tfw-item p { font-size: 22px !important; line-height: 1.15 !important; }
body.wh-hosting .ws-sheet[data-door='stall'] .ww-flywheel .tfw-al { font-size: 9px !important; }
body.wh-hosting .ws-sheet[data-door='stall'] .ww-token > :not(.ww-flywheel) :is(p, span, i, li, td, .ww-k, .ww-v) { font-size: 24px !important; line-height: 1.25 !important; }
body.wh-hosting .ws-sheet[data-door='stall'] .ww-token .ww-supply { font-size: 28px !important; }
body.wh-hosting .ws-sheet[data-door='stall'] .ww-token .ww-supply :is(b, strong, .ww-v) { font-size: 40px !important; }
body.wh-hosting .ws-sheet[data-door='stall'] .ww-token .ww-locks { grid-template-columns: repeat(auto-fill, minmax(560px, 1fr)) !important; }
body.wh-hosting .ws-sheet[data-door='stall'] .ww-token .ww-lockhead { font-size: 24px !important; padding: 18px 20px !important; }

/* the Ninth Wave's surfer sits right of centre in its picture: every crop of
   it leans right so the cat stays in frame (Wray, round 20) */
.wh-screen [data-art='surf'] { background-position: 78% 18% !important; }
.wh-screen .wh-mstrip [data-art='surf'] { background-position: 72% 25% !important; }
/* the Hook Game's picture is its square of art alone since #4638 (it was the
   square on a teal ground with dark bands, and a near-square or tall card
   showed the ground and the bands round it): it centres like the others */
.wh-screen [data-art='hook'] { background-position: 50% 50% !important; }

/* ══ ROUND 21 (Wray, 2026-10-28, with PokéBonk's pages beside ours: their
   pages have NO window. The world blurs behind, a Back pill and a slanted
   coloured title tag with a line under it sit top left, and the page's own
   cards float on the world at full width, in large type). ══════════════ */
/* no frame: the page is the cards on the dimmed world */
body.wh-hosting .ws-sheet:not([data-door='map']) {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 8px 24px 16px !important;
}
.wh-screen .wh-page {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
/* the world goes darker behind a page, as theirs blurs */
body.wh-hosting .wh-screen .wh-veil,
body.wh-paging .wh-screen .wh-veil { background: rgba(6, 8, 14, .72) !important; transition: background .2s ease; }

/* the title: a slanted tag in the page's colour, hanging off the left edge
   of its row, a pull tab rather than a banner */
body.hud-v2 .ws-sheet[data-chrome='home'] .ws-sheet-top .ws-sheet-title,
body.wh-hosting .ws-sheet .ws-sheet-top .ws-sheet-title,
.wh-screen .wh-pg-title {
  --tag: #c0444c;
  position: relative !important;
  display: inline-flex !important;
  align-items: baseline;
  gap: 14px;
  height: auto !important;
  margin: 0 0 0 4px !important;
  padding: 8px 30px 10px 26px !important;
  border: 0 !important;
  border-image: none !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tag) 80%, #fff), var(--tag) 60%) !important;
  box-shadow: inset 0 0 0 2px #0b0f15, inset 0 3px 0 2px rgba(255, 255, 255, .25), 0 5px 0 #05070b !important;
  transform: skewX(-10deg);
  font: 400 36px/1 'New Rocker', serif !important;
  color: #fff1d6 !important;
  text-shadow: 0 2px 0 #2a0c10 !important;
  animation: wh-tag-in .28s cubic-bezier(.2, .9, .3, 1.15) both;
}
@keyframes wh-tag-in { from { transform: skewX(-10deg) translateX(-24px); opacity: 0; } to { transform: skewX(-10deg); opacity: 1; } }
body.hud-v2 .ws-sheet[data-chrome='home'] .ws-sheet-top .ws-sheet-title::first-letter,
body.wh-hosting .ws-sheet .ws-sheet-top .ws-sheet-title::first-letter,
.wh-screen .wh-pg-title::first-letter { font-size: inherit !important; color: inherit !important; float: none !important; margin: 0 !important; }
body.hud-v2 .ws-sheet[data-chrome='home'] .ws-sheet-top .ws-sheet-title::after,
body.wh-hosting .ws-sheet .ws-sheet-top .ws-sheet-title::after,
.wh-screen .wh-pg-title::after {
  content: attr(data-sub);
  font: 18px/1 'VT323', ui-monospace, monospace;
  color: rgba(255, 241, 214, .85);
  text-shadow: none;
  white-space: nowrap;
}
/* the subtitle gives way when the page's tabs need its room (#4954:
   Settings' seven tabs ran under "Sound, keys, wallet and help" at 1512
   wide). world-home.js fitSub measures and sets the class; a short screen
   drops it the same way (the max-height: 620px rule below). */
body.wh-hosting .ws-sheet.wh-sub-off .ws-sheet-top .ws-sheet-title::after { display: none; }
/* each page its own colour, as theirs are */
body.wh-hosting .ws-sheet[data-door='stall'] .ws-sheet-title { --tag: #2f9e7a; }
body.wh-hosting .ws-sheet[data-door='nine'] .ws-sheet-title { --tag: #c87a2a; }
body.wh-hosting .ws-sheet[data-door='spellbook'] .ws-sheet-title { --tag: #7a4fc0; }
body.wh-hosting .ws-sheet[data-door='board'] .ws-sheet-title { --tag: #d89a1c; }
body.wh-hosting .ws-sheet[data-door='guild'] .ws-sheet-title { --tag: #3a72c8; }
body.wh-hosting .ws-sheet[data-door='quests'] .ws-sheet-title { --tag: #c0444c; }
body.wh-hosting .ws-sheet[data-door='record'] .ws-sheet-title { --tag: #5b6b86; }
.wh-screen .wh-page.is-modes .wh-pg-title { --tag: #c0444c; }
.wh-screen .wh-page.is-news .wh-pg-title { --tag: #3a8fc8; }
.wh-screen .wh-page.is-profile .wh-pg-title { --tag: #c87a2a; }
@media (prefers-reduced-motion: reduce) {
  body.hud-v2 .ws-sheet[data-chrome='home'] .ws-sheet-top .ws-sheet-title,
  body.wh-hosting .ws-sheet .ws-sheet-top .ws-sheet-title,
  .wh-screen .wh-pg-title { animation: none; }
}
/* the Back pill, as theirs: dark key, then the word */
body.hud-v2 .ws-sheet[data-chrome='home'] .wh-host-back,
body.wh-hosting .wh-host-back,
.wh-screen .wh-host-back { height: 44px; padding: 0 18px 0 10px; }
/* ── THE LEADERBOARD AS A PAGE, PokéBonk's shape: the board picker and the
   period down a left column of big cards, the ladder wide on the right ── */
body.wh-hosting .ws-sheet[data-door='board'] .ws-sheet-body {
  display: grid !important;
  grid-template-columns: 300px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px 26px;
  max-width: 1700px;
  margin: 0 auto;
  width: 100%;
}
body.wh-hosting .ws-sheet[data-door='board'] .ww-boardbar { grid-column: 1; grid-row: 1 / span 2; align-self: start; display: block !important; padding: 0 !important; }
body.wh-hosting .ws-sheet[data-door='board'] .ww-boardcontent { grid-column: 2; grid-row: 1 / span 2; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
body.wh-hosting .ws-sheet[data-door='board'] .ww-boardseg { display: grid !important; grid-template-columns: 1fr; gap: 10px !important; }
body.wh-hosting .ws-sheet[data-door='board'] .ww-boardseg::before {
  content: 'Period';
  font: 12px/1 'Press Start 2P', ui-monospace, monospace;
  letter-spacing: 2px;
  color: #b4bfcc;
  margin: 4px 0 2px 4px;
}
body.wh-hosting .ws-sheet[data-door='board'] .ww-boardseg .ww-boardscope {
  justify-content: flex-start !important;
  text-align: left;
  height: 64px !important;
  padding: 0 22px !important;
  border-radius: 16px !important;
  font: 400 26px/1 'New Rocker', serif !important;
}
/* the ladder: big rows, a podium feel for the three on top */
body.wh-hosting .ws-sheet[data-door='board'] .ww-table { width: 100% !important; margin: 0 !important; gap: 8px !important; }
body.wh-hosting .ws-sheet[data-door='board'] .ww-rank { min-height: 64px; font-size: 26px; }
body.wh-hosting .ws-sheet[data-door='board'] .ww-rank.is-top { min-height: 96px; }
body.wh-hosting .ws-sheet[data-door='board'] .ww-rank.is-gold { min-height: 112px; }
body.wh-hosting .ws-sheet[data-door='board'] .ww-rk { width: 60px !important; height: 44px; font-size: 16px !important; }
body.wh-hosting .ws-sheet[data-door='board'] .ww-rank.is-top .ww-rk { width: 70px !important; height: 56px; font-size: 22px !important; }
body.wh-hosting .ws-sheet[data-door='board'] .ww-who { font-size: 28px !important; }
body.wh-hosting .ws-sheet[data-door='board'] .ww-rank.is-top .ww-who { font-size: 36px !important; }
body.wh-hosting .ws-sheet[data-door='board'] .ww-score { font-size: 20px !important; }
body.wh-hosting .ws-sheet[data-door='board'] .ww-rank.is-top .ww-score { font-size: 28px !important; }
body.wh-hosting .ws-sheet[data-door='board'] .ww-crest-h { width: 34px !important; height: 34px !important; }
body.wh-hosting .ws-sheet[data-door='board'] .ww-rank { grid-template-columns: 76px minmax(0, 1fr) auto auto auto !important; }
body.wh-hosting .ws-sheet[data-door='board'] .ww-rank.is-top { grid-template-columns: 88px minmax(0, 1fr) auto auto auto !important; }
/* ══ ROUND 22: THE LEADERBOARD PAGE (Home's own) and the standings' head ══ */
.wh-screen .wh-page.is-board .wh-pg-title { --tag: #d89a1c; }
.wh-screen .wh-page.is-board .wh-pg-body { overflow: hidden; }
.wh-screen .wh-lb { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; height: 100%; min-height: 0; max-width: 1680px; margin: 0 auto; }
.wh-screen .wh-lb-side { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; scrollbar-width: thin; padding: 4px; }
.wh-screen .wh-lb-k { font: 11px/1 var(--f-px); letter-spacing: 2px; color: var(--dim); margin: 2px 0 2px 4px; }
.wh-screen .wh-lb-pick {
  --c: #4b5874;
  position: relative;
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 14px 18px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(0, 0, 0, .14)), #1a2130;
  box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 3px #4b5874, 0 4px 0 #05070b;
  transition: transform .12s ease, filter .12s ease;
}
.wh-screen .wh-lb-pick.is-world { --c: #e0535c; }
.wh-screen .wh-lb-pick.is-pit { --c: #d89a1c; }
.wh-screen .wh-lb-pick.is-deep { --c: #7a4fc0; }
.wh-screen .wh-lb-pick.is-guild { --c: #3a72c8; }
.wh-screen .wh-lb-pick b { font: 400 26px/1 var(--f-tome); color: #fff1d6; }
.wh-screen .wh-lb-pick i { font-style: normal; font-size: 18px; color: var(--dim); }
.wh-screen .wh-lb-pick:hover { transform: translateX(3px); filter: brightness(1.12); }
.wh-screen .wh-lb-pick[aria-current='page'] {
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .10) 0 14px, rgba(255, 255, 255, 0) 14px 28px), linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 55%, #1a2130));
  box-shadow: inset 0 0 0 2px var(--line), inset 0 3px 0 2px rgba(255, 255, 255, .25), 0 4px 0 #05070b;
}
.wh-screen .wh-lb-pick[aria-current='page'] i { color: rgba(255, 241, 214, .9); }
.wh-screen .wh-lb-side .wh-medals { margin-top: 8px; }
.wh-screen .wh-lb-side .wh-medals-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 10px; }
.wh-screen .wh-lb-more { align-self: flex-start; margin-top: 4px; }

.wh-screen .wh-lb-main { position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow-y: auto; scrollbar-width: thin; padding: 4px 6px 4px 4px; }
.wh-screen .wh-lb-band {
  --c: #e0535c;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-radius: 18px;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .08) 0 18px, rgba(255, 255, 255, 0) 18px 36px), linear-gradient(100deg, color-mix(in srgb, var(--c) 85%, #000), color-mix(in srgb, var(--c) 45%, #d89a1c));
  box-shadow: inset 0 0 0 2px var(--line), inset 0 3px 0 2px rgba(255, 255, 255, .2), 0 5px 0 #05070b;
}
.wh-screen .wh-lb-band.is-pit { --c: #b8641a; }
.wh-screen .wh-lb-band.is-deep { --c: #6a3fb0; }
.wh-screen .wh-lb-band.is-guild { --c: #2f62b8; }
.wh-screen .wh-lb-band-t { display: grid; gap: 4px; }
.wh-screen .wh-lb-kick { font: 11px/1 var(--f-px); letter-spacing: 2px; color: rgba(255, 241, 214, .8); }
.wh-screen .wh-lb-band-t b { font: 400 46px/1 var(--f-tome); color: #fff1d6; text-shadow: 0 3px 0 rgba(0, 0, 0, .45); }
.wh-screen .wh-lb-band-t i { font-style: normal; font-size: 21px; color: rgba(255, 241, 214, .9); }
.wh-screen .wh-lb-chips { display: grid; gap: 8px; justify-items: end; }
.wh-screen .wh-lb-chip { padding: 7px 14px; border-radius: 999px; background: #fff1d6; color: #2a1c0c; font: 12px/1 var(--f-px); box-shadow: 0 0 0 2px var(--line); }
.wh-screen .wh-lb-chip.is-dark { background: rgba(0, 0, 0, .4); color: #fff1d6; }
/* the Pit's window picks (#4746): This week, This season, All time; the one shown is the dark chip */
.wh-screen .wh-wpicks { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.wh-screen .wh-board > .wh-wpicks { justify-content: flex-start; padding: 0 4px; margin: 2px 0 4px; }
.wh-screen .wh-wpick { border: 0; cursor: pointer; opacity: .78; }
.wh-screen .wh-wpick:hover { opacity: 1; }
.wh-screen .wh-wpick[aria-current='page'] { opacity: 1; background: #2a1c0c; color: #ffd98a; box-shadow: 0 0 0 2px #e8b04a; }

/* the podium: three pedestals, first in the middle and tallest */
.wh-screen .wh-lb-pod { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: center; align-items: end; gap: 18px; padding-top: 10px; }
.wh-screen .wh-lb-step { --mc: #f2b81a; display: grid; justify-items: center; }
.wh-screen .wh-lb-step.is-silver { --mc: #a8b4c8; }
.wh-screen .wh-lb-step.is-bronze { --mc: #d08a4a; }
.wh-screen .wh-lb-who { display: grid; justify-items: center; gap: 6px; padding-bottom: 10px; cursor: pointer; }
.wh-screen .wh-lb-who .wh-cat.is-podium { width: 110px; box-shadow: inset 0 0 0 2px var(--line), 0 0 0 3px var(--line), 0 0 0 6px var(--mc), 0 0 22px color-mix(in srgb, var(--mc) 60%, transparent); border-radius: 50%; overflow: hidden; }
.wh-screen .wh-lb-step.is-gold .wh-lb-who .wh-cat.is-podium { width: 140px; }
.wh-screen .wh-lb-who .wh-gcrest.is-podium { width: 110px; }
.wh-screen .wh-lb-name { display: flex; align-items: center; gap: 8px; max-width: 100%; }
.wh-screen .wh-lb-name b { font: 400 28px/1 var(--f-tome); color: #fff1d6; text-shadow: 0 2px 0 var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wh-screen .wh-lb-sub { font-style: normal; font-size: 18px; color: var(--ink-2); }
.wh-screen .wh-lb-val { display: flex; align-items: baseline; gap: 6px; }
.wh-screen .wh-lb-val b { font: 22px/1 var(--f-px); color: #ffd27a; text-shadow: 0 3px 0 var(--line); }
.wh-screen .wh-lb-val i { font-style: normal; font-size: 18px; color: var(--dim); }
.wh-screen .wh-lb-block {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 110px;
  border-radius: 14px 14px 4px 4px;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .18) 0 14px, rgba(255, 255, 255, 0) 14px 28px), linear-gradient(180deg, color-mix(in srgb, var(--mc) 90%, #fff), var(--mc));
  box-shadow: inset 0 0 0 2px var(--line), inset 0 4px 0 2px rgba(255, 255, 255, .35), 0 5px 0 #05070b;
}
.wh-screen .wh-lb-step.is-gold .wh-lb-block { height: 150px; }
.wh-screen .wh-lb-step.is-bronze .wh-lb-block { height: 80px; }
.wh-screen .wh-lb-block b { font: 400 64px/1 var(--f-tome); color: rgba(255, 255, 255, .92); text-shadow: 0 4px 0 rgba(0, 0, 0, .25); }
.wh-screen .wh-lb-block .wh-medal-ic { position: absolute; top: -18px; right: 14px; }
.wh-screen .wh-lb-block .wh-medal-ic .wh-px { width: 40px; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .5)); }
.wh-screen .wh-lb-step.is-you .wh-lb-name b { color: #ffb0a8; }

/* the places under it */
.wh-screen .wh-lb-table { flex: none; display: grid; gap: 6px; padding: 12px; border-radius: 18px; background: rgba(10, 14, 22, .7); box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 3px #4b5874; }
.wh-screen .wh-lb-tr { display: grid; grid-template-columns: 64px 56px minmax(0, 1fr) 56px 200px; align-items: center; gap: 14px; min-height: 64px; padding: 0 16px 0 10px; border-radius: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(0, 0, 0, .12)), #1a2130; box-shadow: inset 0 0 0 2px var(--line); cursor: pointer; transition: transform .12s ease, filter .12s ease; }
.wh-screen .wh-lb-tr:not(.is-head):hover { transform: translateX(4px); filter: brightness(1.12); }
.wh-screen .wh-lb-tr.is-head { min-height: 0; padding-top: 2px; padding-bottom: 6px; background: none; box-shadow: none; cursor: default; font: 10px/1 var(--f-px); letter-spacing: 1.5px; color: var(--dim); text-transform: uppercase; }
.wh-screen .wh-lb-tr.is-head > :last-child { text-align: right; }
.wh-screen .wh-lb-tr.is-you { box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px var(--red-hi); }
.wh-screen .wh-lb-rk { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #121826; box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 3px #4b5874; font: 15px/1 var(--f-px); color: var(--ink-2); }
.wh-screen .wh-lb-tr .wh-cat.is-row { width: 48px; border-radius: 10px; overflow: hidden; }
.wh-screen .wh-lb-nm { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wh-screen .wh-lb-nm b { font: 400 26px/1 var(--f-tome); color: #fff1d6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wh-screen .wh-lb-nm i { font-style: normal; font-size: 18px; color: var(--dim); }
.wh-screen .wh-lb-tr .wh-medal-ic .wh-px { width: 30px; }
.wh-screen .wh-lb-v { justify-self: end; font: 20px/1 var(--f-px); color: #ffd27a; text-shadow: 0 2px 0 var(--line); }
.wh-screen .wh-lb-empty { padding: 60px 0; text-align: center; font-size: 24px; color: var(--dim); }

/* your season, pinned at the foot of the scroll */
.wh-screen .wh-you.wh-lb-you {
  position: sticky;
  bottom: 0;
  flex: none;
  margin-top: auto;
  padding: 16px 22px;
  border: 0;
  border-image: none;
  border-radius: 18px;
  background: linear-gradient(180deg, #232c3f, #171e2c);
  box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px #dda52c, 0 -6px 18px rgba(0, 0, 0, .45);
}
.wh-screen .wh-lb-you .wh-you-rank:not(.is-none) { font-size: 40px !important; }
.wh-screen .wh-lb-you .wh-hint { font-size: 24px; }
.wh-screen .wh-lb-you .wh-go { font-size: 12px; padding: 10px 18px 12px; }

/* ── Home's standings: a striped header band in place of the big ribbon ── */
.wh-screen .wh-right { margin-top: 0; padding-top: calc(8px * var(--k)); }
.wh-screen .wh-ribbon { display: none; }
.wh-screen .wh-rhead {
  flex: none;
  display: flex;
  align-items: center;
  gap: calc(8px * var(--k));
  margin: calc(-4px * var(--k)) calc(-2px * var(--k)) 0;
  padding: calc(6px * var(--k)) calc(12px * var(--k));
  border: 0;
  border-radius: calc(8px + 2px * var(--k));
  text-align: left;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .12) 0 12px, rgba(255, 255, 255, 0) 12px 24px), linear-gradient(90deg, #d89a1c, #b8641a);
  box-shadow: inset 0 0 0 2px var(--line), inset 0 3px 0 2px rgba(255, 255, 255, .25), 0 3px 0 #05070b;
  cursor: pointer;
}
.wh-screen .wh-rhead:hover { filter: brightness(1.08); }
.wh-screen .wh-rhead .wh-px { width: calc(20px + 8px * var(--k)); }
.wh-screen .wh-rhead-t { display: grid; gap: 2px; }
.wh-screen .wh-rhead-t b { font: 400 calc(18px + 6px * var(--k))/1 var(--f-tome); color: #fff1d6; text-shadow: 0 2px 0 #5a2a06; }
.wh-screen .wh-rhead-t i { font-style: normal; font-size: calc(12px + 2px * var(--k)); color: rgba(255, 241, 214, .85); }
.wh-screen .wh-page.is-board .wh-pg-head { margin-bottom: 10px; }
.wh-screen .wh-lb-pod { padding: 18px 10px 0; border-radius: 22px; background: radial-gradient(ellipse 70% 90% at 50% 60%, rgba(6, 8, 14, .78), rgba(6, 8, 14, .35) 70%, transparent); }
.wh-screen .wh-lb-side .wh-medals-h { flex-direction: column; align-items: flex-start; gap: 4px; }
.wh-screen .wh-lb-side .wh-medals { background: rgba(10, 14, 22, .8); }
/* ══ ROUND 25: THE HALFTONE FADE (Wray, 2026-10-29: "we can go with F").
   In place of PokéBonk's stripes, print dots in the style of the old tape
   sleeves (SKC, Panasonic SP) that thin out across the piece. The game
   keeps the dots; the speed stripes stay on the promotional sleeves. ═════ */
.wh-screen :is(.wh-lb-band, .wh-rhead, .wh-lb-pick[aria-current='page'], .wh-lb-block) { position: relative; isolation: isolate; }
.wh-screen .wh-lb-band { background: linear-gradient(100deg, color-mix(in srgb, var(--c) 85%, #000), color-mix(in srgb, var(--c) 60%, #d89a1c)) !important; }
.wh-screen .wh-rhead { background: linear-gradient(90deg, #d89a1c, #b8641a) !important; }
.wh-screen .wh-lb-pick[aria-current='page'] { background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 55%, #1a2130)) !important; }
.wh-screen .wh-lb-block { background: linear-gradient(180deg, color-mix(in srgb, var(--mc) 90%, #fff), var(--mc)) !important; }
.wh-screen :is(.wh-lb-band, .wh-rhead, .wh-lb-pick[aria-current='page'], .wh-lb-block)::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .5) 1.8px, transparent 2.2px) 0 0 / 7px 7px;
  -webkit-mask-image: linear-gradient(110deg, transparent 35%, #000 95%);
  mask-image: linear-gradient(110deg, transparent 35%, #000 95%);
}
.wh-screen .wh-lb-block::before { background-size: 8px 8px; -webkit-mask-image: linear-gradient(200deg, #000 5%, transparent 75%); mask-image: linear-gradient(200deg, #000 5%, transparent 75%); }
.wh-screen .wh-rhead::before { background-size: 6px 6px; }

/* ══ THE DANCERS (#4547; Wray, 2026-10-28: "the players last known look of
   their cat dancing on the podium"). A ranked cat with a look stands on its
   own pedestal: the name, the house and the score over it, the cat on the
   block. Its round face stands in until the rig is dressed (world-board-
   cats.js), then the live cat dances there, drawn on nothing, a pool of the
   step's colour at its feet. The blocks come down a little so the podium
   is no taller than it was. ══════════════════════════════════════════════ */
.wh-screen .wh-lb-who.has-dancer { padding-bottom: 0; gap: 4px; }
.wh-screen .wh-lb-who.has-dancer .wh-lb-dancer { order: 9; }
.wh-screen .wh-lb-dancer { position: relative; z-index: 0; display: grid; place-items: center; width: 150px; height: 176px; margin-bottom: -4px; }
.wh-screen .wh-lb-step.is-gold .wh-lb-dancer { width: 172px; height: 204px; }
.wh-screen .wh-lb-step:has(.has-dancer) .wh-lb-block { height: 86px; }
.wh-screen .wh-lb-step.is-gold:has(.has-dancer) .wh-lb-block { height: 116px; }
.wh-screen .wh-lb-step.is-bronze:has(.has-dancer) .wh-lb-block { height: 62px; }
.wh-screen .wh-lb-dance {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  pointer-events: none;
}
/* the spotlight: a pool of the step's own colour at the cat's feet */
.wh-screen .wh-lb-dancer::after {
  content: '';
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 0;
  height: 16%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--mc) 50%, transparent), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.wh-screen .wh-lb-dancer.is-live::after { opacity: 1; }
.wh-screen .wh-lb-dancer.is-live > .wh-cat { display: none; }
@container wh (max-height: 700px) {
  .wh-screen .wh-lb-dancer { width: 104px; height: 124px; }
  .wh-screen .wh-lb-step.is-gold .wh-lb-dancer { width: 120px; height: 144px; }
}

/* ══ HOME ON A PHONE AND A SMALL WINDOW (#4560; Wray, 2026-10-29: "cleaning
   up for desktop and phone to fix overlap issues"). Measured on the served
   page at 844x390, 932x430, 1512x870 and 2016x1160, every text run checked
   against every other. ═════════════════════════════════════════════════ */

/* the top bar: where the coins need the room, the name gives way to the
   face (it ran under the first coin at 844 wide) */
@container wh (max-width: 900px) {
  .wh-screen .wh-strip .wh-me-name { display: none; }
}
/* THE STANDINGS COLUMN, NARROW. Round 5 wrapped .wh-right in .wh-rcol (the
   top guild over it), so the column the grid places is the wrapper: the pin
   and the height go on it, or it shrinks to its header and hides the list
   (a landscape phone showed "Standings" and nothing under it). */
@container wh (max-width: 1180px) {
  .wh-screen .wh-rcol { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 0; align-self: start; height: calc(100cqh - 150px); box-sizing: border-box; }
  .wh-screen .wh-rcol > .wh-right { position: static; grid-row: auto; grid-column: auto; height: auto; }
}
@container wh (max-height: 520px) {
  .wh-screen .wh-rcol { height: calc(100cqh - 84px); }
}
/* your standing under Home's list: the score wraps under the rank rather
   than running out past the panel's edge (it did at 1512 wide) */
.wh-screen .wh-right .wh-you-head { flex-wrap: wrap; row-gap: 2px; }
.wh-screen .wh-you-val { white-space: nowrap; }
/* a standings row: the name stops short of the score */
.wh-screen .wh-pname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* A PAGE'S TAG on a short screen: the title is the page's name, not its
   banner */
@container wh (max-height: 620px) {
  .wh-screen .wh-pg-title { font-size: 24px !important; padding: 4px 18px 6px 16px !important; gap: 8px; }
  .wh-screen .wh-page .wh-pg-head { margin-bottom: 2px; }
  .wh-screen .wh-pg-head .wh-host-back { height: 34px; padding: 0 14px 0 8px; }
}

/* A WINDOW HOSTED IN HOME on a short screen: the same smaller tag, its
   subtitle gone, and the sheet's own margins pulled in, so the window's body
   gets the room. The hosted sheet sits outside Home's container, so this is
   a media query, not a container one. */
@media (max-height: 620px) {
  body.hud-v2 .ws-sheet[data-chrome='home'] .ws-sheet-top .ws-sheet-title,
  body.wh-hosting .ws-sheet .ws-sheet-top .ws-sheet-title { font-size: 24px !important; padding: 4px 18px 6px 16px !important; }
  body.hud-v2 .ws-sheet[data-chrome='home'] .ws-sheet-top .ws-sheet-title::after,
  body.wh-hosting .ws-sheet .ws-sheet-top .ws-sheet-title::after,
  .wh-screen .wh-pg-title::after { display: none; }
  body.hud-v2 .ws-sheet[data-chrome='home'] .ws-sheet-top,
  body.wh-hosting .ws-sheet .ws-sheet-top { min-height: 34px !important; margin: 0 0 6px !important; }
  body.hud-v2 .ws-sheet[data-chrome='home'] .wh-host-back,
  body.wh-hosting .wh-host-back { height: 34px; padding: 0 14px 0 8px; }
  body.wh-hosting .ws-tabs:not(:empty) { top: calc(var(--wh-host-t) + 10px) !important; }
}
/* A WINDOW'S TABS on a narrow screen: they hang off the head's right end
   and grew leftward over the page's name (Settings' seven ran across "Your
   game" at 844 wide). They keep clear of the name and scroll sideways. */
@media (max-width: 1100px) {
  body.wh-hosting .ws-tabs:not(:empty) {
    max-width: calc(var(--wh-host-w) - 330px) !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none;
    gap: 6px !important;
  }
  body.wh-hosting .ws-tabs > button { flex: none !important; }
}

/* THE INVENTORY ON A NARROW SCREEN. Round 18's page names a `side` area
   the bag's pieces no longer use (#4527 gave the power line and what the
   gear adds areas of their own, `who` and `stats`), so under 1100 wide they
   fell into columns of their own and squeezed the bag to nothing. Two
   columns here: the cat on the left; on the right the bag's head, your power
   and what your gear adds, then the bag; the page scrolls when it is taller
   than the screen. */
@media (max-width: 1100px) {
  body.wh-hosting .ws-sheet[data-door='nine'] .ww-bagwrap.ww-inv2,
  body.wh-hosting .ws-sheet[data-door='nine'] .ww-bagwrap.ww-inv2:has(> .ww-inv2-who .ww-bagpower[hidden]) {
    grid-template-columns: auto minmax(0, 1fr) !important;
    grid-template-areas:
      "doll bhead"
      "doll note"
      "doll foot"
      "doll who"
      "doll stats"
      "doll bag"
      "sock sock" !important;
    /* every row sized by what is in it, the cat spanning all of the right
       column's: sharing rows with the power line, the cat hung down over it */
    grid-template-rows: auto auto auto auto auto auto auto !important;
    align-content: start !important;
    column-gap: 14px !important;
    row-gap: 6px !important;
  }
  body.wh-hosting .ws-sheet[data-door='nine'] .ww-inv2 > .ww-inv2-who { grid-area: who !important; }
  body.wh-hosting .ws-sheet[data-door='nine'] .ww-inv2 > .ww-stats { grid-area: stats !important; }
  body.wh-hosting .ws-sheet[data-door='nine'] .ww-inv2 .ww-bag1 { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)) !important; }
  /* the page grows with what is on it and scrolls, rather than squeezing
     what your gear adds to its header under the bag */
  body.wh-hosting .ws-sheet[data-door='nine'] .ws-sheet-body { overflow-y: auto !important; }
  body.wh-hosting .ws-sheet[data-door='nine'] .ww-bag,
  body.wh-hosting .ws-sheet[data-door='nine'] .ww-bagwrap.ww-inv2 { height: auto !important; max-height: none !important; flex: none !important; overflow: visible !important; container-type: inline-size !important; }
  body.wh-hosting .ws-sheet[data-door='nine'] .ww-inv2 > .ww-stats { height: auto !important; min-height: max-content !important; max-height: none !important; overflow: visible !important; container-type: normal !important; contain: none !important; }
  body.wh-hosting .ws-sheet[data-door='nine'] .ww-inv2 .ww-dollbox { width: min(380px, 40vw) !important; }
}
@media (max-height: 620px) {
  body.wh-hosting .ws-sheet[data-door='nine'] .ww-inv2 .ww-dollbox { width: 250px !important; }
}

/* THE LEADERBOARD, SMALL. One column: the boards become a row of tabs over
   the band (the medals' key and the old boards link step aside), and every
   part comes down to a phone's size, so the band, the podium and the table
   each scroll into view instead of the band and the pinned standing filling
   the screen between them. */
@container wh (max-height: 620px) or (max-width: 1100px) {
  .wh-screen .wh-lb { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 8px; }
  .wh-screen .wh-lb-side { flex-direction: row; align-items: stretch; gap: 6px; padding: 2px 2px 4px; overflow-x: auto; overflow-y: hidden; }
  .wh-screen .wh-lb-side > :not(.wh-lb-pick) { display: none; }
  .wh-screen .wh-lb-pick { flex: none; padding: 7px 14px 8px; border-radius: 12px; }
  .wh-screen .wh-lb-pick b { font-size: 18px; }
  .wh-screen .wh-lb-pick i { display: none; }
  .wh-screen .wh-lb-pick:hover { transform: none; }
  .wh-screen .wh-lb-main { gap: 8px; }
  .wh-screen .wh-lb-band { padding: 6px 12px; border-radius: 12px; gap: 10px; }
  .wh-screen .wh-lb-band-t b { font-size: 22px; }
  .wh-screen :is(.wh-lb-kick, .wh-lb-band-t i) { display: none; }
  .wh-screen .wh-lb-chips { display: flex; gap: 4px; }
  .wh-screen .wh-lb-chip { font-size: 9px; padding: 5px 10px; }
  .wh-screen .wh-lb-pod { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 6px 4px 0; border-radius: 14px; }
  .wh-screen .wh-lb-who { gap: 2px; padding-bottom: 6px; max-width: 100%; }
  .wh-screen .wh-lb-name { justify-content: center; }
  .wh-screen .wh-lb-name b { font-size: 18px; }
  .wh-screen .wh-lb-sub { font-size: 14px; }
  .wh-screen .wh-lb-val b { font-size: 14px; }
  .wh-screen .wh-lb-val i { font-size: 13px; }
  .wh-screen .wh-lb-who .wh-cat.is-podium { width: 64px; }
  .wh-screen .wh-lb-step.is-gold .wh-lb-who .wh-cat.is-podium { width: 78px; }
  .wh-screen .wh-lb-block, .wh-screen .wh-lb-step:has(.has-dancer) .wh-lb-block { height: 54px; border-radius: 10px 10px 3px 3px; }
  .wh-screen .wh-lb-step.is-gold .wh-lb-block, .wh-screen .wh-lb-step.is-gold:has(.has-dancer) .wh-lb-block { height: 72px; }
  .wh-screen .wh-lb-step.is-bronze .wh-lb-block, .wh-screen .wh-lb-step.is-bronze:has(.has-dancer) .wh-lb-block { height: 40px; }
  .wh-screen .wh-lb-block b { font-size: 34px; }
  .wh-screen .wh-lb-block .wh-medal-ic { top: -12px; right: 8px; }
  .wh-screen .wh-lb-block .wh-medal-ic .wh-px { width: 26px; }
  .wh-screen .wh-lb-dancer { width: 96px; height: 116px; }
  .wh-screen .wh-lb-step.is-gold .wh-lb-dancer { width: 112px; height: 134px; }
  .wh-screen .wh-lb-table { padding: 6px; gap: 4px; border-radius: 12px; }
  .wh-screen .wh-lb-tr { grid-template-columns: 34px 36px minmax(0, 1fr) 26px minmax(56px, auto); gap: 8px; min-height: 42px; padding: 0 10px 0 6px; border-radius: 10px; }
  .wh-screen .wh-lb-tr.is-head { min-height: 0; font-size: 8px; }
  .wh-screen .wh-lb-rk { width: 30px; height: 30px; font-size: 11px; }
  .wh-screen .wh-lb-tr .wh-cat.is-row { width: 34px; border-radius: 8px; }
  .wh-screen .wh-lb-nm { gap: 6px; }
  .wh-screen .wh-lb-nm b { font-size: 18px; }
  .wh-screen .wh-lb-nm i { font-size: 13px; }
  .wh-screen .wh-lb-tr .wh-medal-ic .wh-px { width: 22px; }
  .wh-screen .wh-lb-v { font-size: 13px; }
  /* your standing in ONE line, so the pinned bar leaves the scroll its room */
  .wh-screen .wh-you.wh-lb-you { display: flex; align-items: center; gap: 12px; padding: 6px 14px; border-radius: 12px; }
  .wh-screen .wh-lb-you .wh-you-head { flex: none; gap: 10px; }
  .wh-screen .wh-lb-you .wh-you-val { margin-left: 0; font-size: 15px; }
  .wh-screen .wh-lb-you .wh-you-line .wh-medal-ic .wh-px { width: 22px; }
  .wh-screen .wh-lb-you .wh-you-rank:not(.is-none) { font-size: 24px !important; }
  .wh-screen .wh-lb-you .wh-hint { flex: 1 1 auto; min-width: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wh-screen .wh-lb-you .wh-go { flex: none; }
  .wh-screen .wh-lb-you .wh-go { font-size: 10px; padding: 7px 12px 9px; }
  .wh-screen .wh-lb-empty { padding: 18px 0; font-size: 18px; }
}

/* ══ THE RIGHT SIDE WEARS THE LEFT'S POLISH (Wray, 2026-11-01: "our left
   side looks much more polished than our right ... since smithing and
   refining menus all got that same polish i think it makes sense to cover
   at least that window"). The left's cards pop because of four things, and
   the standings and the strip were still the flat kit-B 9-slices without
   them: a rounded edge; the SHEEN (light at the top, dark at the foot); the
   LIP (a dark line, a coloured rim, and a lit band just inside the top);
   and the LEDGE (a hard black step under the card and a soft shadow, which
   lifts on hover and sinks on press). The bench windows (#4605) wear the
   same frame, so the standings window now reads as one of them. Only the
   dressing changes; no size, order or behaviour does. ═════════════════ */

/* the window: Home's own frame in place of slate-window.png */
.wh-screen .wh-right {
  border: 0;
  border-image: none;
  border-radius: calc(12px + 3px * var(--k));
  padding: calc(6px + 4px * var(--k)) calc(6px + 3px * var(--k)) calc(6px + 3px * var(--k));
  background:
    radial-gradient(120% 40% at 50% 0%, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #1c2536, #0f141e);
  box-shadow: var(--lip), var(--ledge), 0 10px 30px rgba(0, 0, 0, .4);
  image-rendering: auto;
}
/* ...but it keeps the slate window's gold corners (Wray, 2026-11-01: "the
   little corner finishes on the current window are charming and tie in that
   low poly look"): window-corners.png is slate-window.png's four corner cells
   with the slate taken out (scripts/ui/derive-window-corners.js), laid over
   the frame at the old window's scale, so the corners square off again and
   the gold sits where it always sat. */
.wh-screen .wh-right { border-radius: calc(3px + 1px * var(--k)); padding: calc(8px + 8px * var(--k)); }
.wh-screen .wh-right::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  border-style: solid;
  border-width: calc(9px + 9px * var(--k));
  border-image: url('/assets/ui/kitb/window-corners.png?v=2026-11-01a') 18 / calc(9px + 9px * var(--k)) stretch;
  image-rendering: pixelated;
}
.wh-screen .wh-right .wh-board { padding-bottom: 6px; }
/* the header band sat out over the old 9-slice's thick border; inside the
   thin rim it keeps to the window's edge */
.wh-screen .wh-right .wh-rhead { margin: 0; box-shadow: inset 0 0 0 2px var(--line), inset 0 3px 0 2px rgba(255, 255, 255, .25), var(--ledge); }

/* the tabs: one sunken track, round pills, the chosen one lit and raised */
.wh-screen .wh-right .wh-tabs {
  gap: 3px;
  padding: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #0d121b, #161d2a);
  box-shadow: inset 0 0 0 2px var(--line), inset 0 3px 6px rgba(0, 0, 0, .55), 0 1px 0 rgba(255, 255, 255, .06);
}
.wh-screen .wh-right .wh-tab { border-radius: 999px; transition: background .12s ease, color .12s ease; }
.wh-screen .wh-right .wh-tab:hover { background: rgba(255, 255, 255, .06); }
.wh-screen .wh-right .wh-tab[aria-current='page'] {
  background: var(--sheen), linear-gradient(180deg, #d0505a, #8e2a31);
  box-shadow: inset 0 0 0 2px var(--line), inset 0 4px 0 1px #f08a90, 0 2px 0 #05070b;
  text-shadow: 0 1px 0 #5e1414;
}

/* the three big cards: the sheen over their medal wash, a lit band in the
   medal's colour, and the ledge (your own card keeps its red rim) */
.wh-screen .wh-right .wh-podium.is-stack { gap: calc(6px + 3px * var(--k)); padding-bottom: 4px; }
.wh-screen .wh-right .wh-podium.is-stack .wh-step {
  background:
    var(--sheen),
    linear-gradient(90deg, color-mix(in srgb, var(--mc) 32%, transparent), color-mix(in srgb, var(--mc) 8%, transparent) 70%),
    #1a2130;
  box-shadow:
    inset 0 0 0 2px var(--line),
    inset 0 0 0 4px color-mix(in srgb, var(--mc) 70%, #0b0f15),
    inset 0 5px 0 2px color-mix(in srgb, var(--mc) 60%, #fff1d6),
    var(--ledge);
  transition: transform .12s ease, box-shadow .12s ease;
}
.wh-screen .wh-right .wh-podium.is-stack .wh-step.is-you {
  box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px var(--red-hi), inset 0 5px 0 2px #ff9a9a, var(--ledge);
}
.wh-screen .wh-right .wh-podium.is-stack .wh-step.is-link:is(:hover, :focus-visible) { transform: translateY(-2px); }
.wh-screen .wh-right .wh-podium.is-stack .wh-step.is-link:hover {
  box-shadow:
    inset 0 0 0 2px var(--line),
    inset 0 0 0 4px color-mix(in srgb, var(--mc) 70%, #0b0f15),
    inset 0 5px 0 2px color-mix(in srgb, var(--mc) 60%, #fff1d6),
    var(--ledge-up);
}
.wh-screen .wh-right .wh-podium.is-stack .wh-step.is-you.is-link:hover {
  box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px var(--red-hi), inset 0 5px 0 2px #ff9a9a, var(--ledge-up);
}
.wh-screen .wh-right .wh-podium.is-stack .wh-step.is-link:active { transform: translateY(2px); }

/* places 4 to 7: the bench's framed rows, a slate rim, a faint lit top and
   a small ledge, spaced so each ledge shows */
.wh-screen .wh-right .wh-rows { gap: calc(5px + 2px * var(--k)); padding-bottom: 3px; }
.wh-screen .wh-right .wh-row,
.wh-screen .wh-right .wh-row:not(.is-you):nth-child(even) {
  background: var(--sheen), #1a2130;
  box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 3px #3a4760, inset 0 4px 0 1px rgba(255, 255, 255, .07), 0 3px 0 #05070b, 0 5px 8px rgba(0, 0, 0, .35);
  transition: transform .12s ease, box-shadow .12s ease;
}
.wh-screen .wh-right .wh-row.is-you {
  background: var(--sheen), linear-gradient(180deg, rgba(224, 83, 92, .28), rgba(94, 20, 20, .38)), #182030;
  box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px var(--red-hi), inset 0 5px 0 2px #ff9a9a, 0 3px 0 #05070b, 0 5px 8px rgba(0, 0, 0, .35);
}
.wh-screen .wh-right .wh-row.is-link:hover {
  background: var(--sheen), #222c40;
  box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 3px #4b5874, inset 0 4px 0 1px rgba(255, 255, 255, .1), var(--ledge-up);
  transform: translateY(-1px);
}
.wh-screen .wh-right .wh-row.is-link:active { transform: translateY(1px); }
.wh-screen .wh-right .wh-rk {
  border-radius: calc(4px + 2px * var(--k));
  background: linear-gradient(180deg, #121823, #1f2738);
  box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 3px #4b5874, inset 0 3px 4px rgba(0, 0, 0, .5);
}

/* the medal tiers: a sunken well under the lit rows */
.wh-screen .wh-right .wh-medals {
  background: linear-gradient(180deg, rgba(0, 0, 0, .32), rgba(0, 0, 0, .14));
  box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 3px #2a3448, inset 0 4px 8px rgba(0, 0, 0, .45), 0 1px 0 rgba(255, 255, 255, .06);
}

/* your standing: a card on the gold lip, as the pack waiting to be claimed */
.wh-screen .wh-right .wh-you {
  border: 0;
  border-image: none;
  border-radius: calc(6px + 3px * var(--k));
  padding: calc(8px + 4px * var(--k)) calc(10px + 4px * var(--k));
  background: var(--sheen), linear-gradient(180deg, #2a3345, #1f2738);
  box-shadow: var(--lip-on), var(--ledge);
  image-rendering: auto;
}
/* on a tall window it stays in view at the foot of the scroll, as on the
   Leaderboard page, so the window never ends on half a card (on a laptop or
   a phone it would cover the podium, so there it scrolls with the rest) */
@container wh (min-height: 1001px) {
  .wh-screen .wh-right .wh-board > .wh-you { position: sticky; bottom: 0; z-index: 4; box-shadow: var(--lip-on), 0 -8px 16px rgba(6, 8, 14, .6), var(--ledge); }
}

/* the full board: a round slate pill in place of btn.png */
.wh-screen .wh-right .wh-full {
  border: 0;
  border-image: none;
  border-radius: 999px;
  background: var(--sheen), #2a3345;
  box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 3px #4b5874, inset 0 4px 0 1px rgba(255, 255, 255, .1), var(--ledge);
  filter: none;
  image-rendering: auto;
  transition: transform .12s ease, box-shadow .12s ease;
}
.wh-screen .wh-right .wh-full:hover { filter: none; transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 3px var(--gold-btn), inset 0 4px 0 1px rgba(255, 255, 255, .12), var(--ledge-up); }
.wh-screen .wh-right .wh-full:active { transform: translateY(2px); box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 3px #4b5874, var(--ledge-down); }

/* the strip at the top right: Home's rounded bar in place of plate.png,
   its coins as round pills like the pills under the cards */
.wh-screen .wh-strip {
  border: 0;
  border-image: none;
  border-radius: 999px;
  padding: 0 calc(10px + 4px * var(--k)) 0 calc(6px + 3px * var(--k));
  background: var(--sheen), linear-gradient(180deg, #232c3f, #151b28);
  box-shadow: var(--lip), var(--ledge);
  filter: none;
  image-rendering: auto;
}
.wh-screen .wh-strip .wh-face { border-radius: 50%; }
.wh-screen .wh-strip .wh-coin {
  border-radius: 999px;
  background: linear-gradient(180deg, #0d121b, #182030);
  box-shadow: inset 0 0 0 2px var(--line), inset 0 3px 5px rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 255, 255, .06);
}
.wh-screen .wh-strip .wh-coin:hover { box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 3px var(--gold-btn), 0 1px 0 rgba(255, 255, 255, .06); }
.wh-screen .wh-strip .wh-icon {
  background: var(--sheen), #222b3d;
  box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 3px #4b5874, inset 0 4px 0 1px rgba(255, 255, 255, .1), 0 3px 0 #05070b;
}
.wh-screen .wh-strip .wh-icon:hover { box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 3px var(--gold-btn), inset 0 4px 0 1px rgba(255, 255, 255, .12), 0 4px 0 #05070b; }

/* ══ THE PIXEL CUT: modern frames, retro corners (Wray, 2026-11-01, off a
   snippet of the Pit's run bar, Leave and camera menu: "we kept a rounded
   look here and pixilated without losing the look ... i want modern frames
   but with that retro feel so this is probably the missing link"). Every
   smooth curve on Home becomes the kit's cut corner (`corner-shape: bevel`:
   a straight 45-degree cut, as plate.png and tip.png draw it), the depth
   inside stays (sheen, lip, ledge all follow the cut), and the long bars
   carry plate.png's gold studs at their ends. Circles stay circles: a coin,
   a face and a round icon are round things. Where a browser has no
   corner-shape (Safari today) it falls back to the small radius set here,
   so it reads as softly rounded, never broken. The `:not(#_)` lifts these
   over the many rounds above without an !important. ═════════════════════ */
.wh-screen:not(#_) {
  /* the numbers live in kit-cut.css (imported at the top), shared with the Pit */
  --cut: var(--kit-cut);
  --cut-bar: var(--kit-cut-bar);
  --stud: var(--kit-stud);
}
.wh-screen:not(#_) :is(.wh-shop, .wh-hero, .wh-mode, .wh-card, .wh-tile, .wh-pool, .wh-right, .wh-rhead, .wh-step, .wh-row, .wh-rk, .wh-medals, .wh-you, .wh-pop, .wh-modes-panel, .wh-beta,
    .wh-pg-title, .wh-lb-pick, .wh-lb-band, .wh-lb-pod, .wh-lb-block, .wh-lb-table, .wh-lb-tr, .wh-prof-id, .wh-prof-face, .wh-prof-stat, .wh-prof-run, .wh-ver-step:not(.is-community)) {
  border-radius: var(--cut);
  corner-shape: bevel;
}
.wh-screen:not(#_) :is(.wh-strip, .wh-coin, .wh-pill:not(.is-bug, .is-x), .wh-coinbar, .wh-tabs, .wh-full, .wh-host-back, .wh-lb-chip) {
  border-radius: var(--cut-bar);
  corner-shape: bevel;
}
.wh-screen:not(#_) .wh-tab { border-radius: var(--kit-cut-tab); corner-shape: bevel; }
/* small things (a portrait in a row, a run's thumbnail): a short cut, or they turn to diamonds */
.wh-screen:not(#_) :is(.wh-cat.is-row, .wh-prof-run-art) { border-radius: var(--kit-cut-small); corner-shape: bevel; }
/* what draws inside a box takes the box's own corner, so the art and the
   shine never poke past a cut and a round button's shine stays round */
.wh-screen:not(#_) :is(.wh-art, .wh-mstrip, .wh-shine) { corner-shape: inherit; }
/* the standings window keeps its gold corner pieces over a square-cut frame */
.wh-screen:not(#_) .wh-right { border-radius: var(--kit-cut-small); }

/* the studs: plate.png's two gold rivets, one at each end of a long bar */
.wh-screen:not(#_) :is(.wh-strip, .wh-coinbar) { position: relative; }
.wh-screen:not(#_) :is(.wh-strip, .wh-coinbar)::before,
.wh-screen:not(#_) :is(.wh-strip, .wh-coinbar)::after {
  content: '';
  position: absolute;
  top: 50%;
  width: var(--kit-stud-size);
  height: var(--kit-stud-size);
  margin-top: calc(var(--kit-stud-size) / -2);
  background: var(--stud);
  pointer-events: none;
}
.wh-screen:not(#_) :is(.wh-strip, .wh-coinbar)::before { left: calc(6px + 2px * var(--k)); }
.wh-screen:not(#_) :is(.wh-strip, .wh-coinbar)::after { right: calc(6px + 2px * var(--k)); }
.wh-screen:not(#_) .wh-strip { padding-left: calc(14px + 5px * var(--k)); padding-right: calc(18px + 5px * var(--k)); }
.wh-screen:not(#_) .wh-coinbar { padding-left: calc(16px + 5px * var(--k)); padding-right: calc(18px + 5px * var(--k)); }

/* ── every window Home opens, and every station's window in Home's look ──
   A station's window keeps a frame, so it is cut and carries the slate
   window's gold corners, as the standings window does. A window Home hosts
   has no frame since round 21 (its cards float on the dimmed world), so it
   gets no corners. What is inside either takes the same three cuts; these
   answer rules above that hold their radius with !important. */
body.hud-v2:not(.wh-hosting) .ws-sheet[data-chrome='home'] {
  border-radius: var(--kit-cut-small) !important;
  corner-shape: bevel;
}
body.hud-v2:not(.wh-hosting) .ws-sheet[data-chrome='home']::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  border-style: solid;
  border-width: 18px;
  border-image: url('/assets/ui/kitb/window-corners.png?v=2026-11-01a') 18 / 18px stretch;
  image-rendering: pixelated;
}
:is(body.wh-hosting .ws-sheet:not([data-door='map']), body.hud-v2 .ws-sheet[data-chrome='home'])
  :is(.ws-sheet-title, .ws-frame, .ws-navrow, .ww-q-item, .ww-q-row, .ww-rank, .ww-boardscope,
      .wb-row, .wb-scene, .wb-tray, .wb-level, .wb-costs, .wb-act, .wb-away, .ww-help-row, .ww-lk-entry, .ww-lk-search,
      .tfw, .tfw-item, .tfw-node, .tfw-band, .ww-lock):not(#_) {
  border-radius: var(--kit-cut) !important;
  corner-shape: bevel;
}
:is(body.wh-hosting .ws-sheet:not([data-door='map']), body.hud-v2 .ws-sheet[data-chrome='home'])
  :is(.wh-host-back, .ws-friend-in, .ws-friend-b, .ws-paneltab, .wb-tab, .ww-help-go, .ww-ca, .ww-ca-copy, .ww-check, .ww-lockchip):not(#_) {
  border-radius: var(--kit-cut-bar) !important;
  corner-shape: bevel;
}
:is(body.wh-hosting .ws-sheet:not([data-door='map']), body.hud-v2 .ws-sheet[data-chrome='home'])
  :is(.ww-q-ck, .ww-q-kc, .ww-q-mark, .ww-rk, .ww-crest-t, .hv-slot, .hv-bar, .hv-bar > i, .ws-meter, .ws-meter > *,
      .ww-q-count, .ww-help-state, .tfw-chip, .ww-bar, .ww-bar > *):not(#_) {
  border-radius: var(--kit-cut-small) !important;
  corner-shape: bevel;
}
:is(body.wh-hosting .ws-sheet:not([data-door='map']), body.hud-v2 .ws-sheet[data-chrome='home']) .wh-shine { corner-shape: inherit; }

/* ══ WRAY'S NOTES ON THE CUT, 2026-11-01 ══════════════════════════════ */

/* "angled bands but the corners are sticking out making it look cheap":
   the art under a card paints over the card's own rim (the rim is the
   card's inset shadow, under its children), so the bands ran to the very
   edge. The rim is drawn again OVER the art, following the cut. */
.wh-screen:not(#_) :is(.wh-modes-card, .wh-pit-card)::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  corner-shape: inherit;
  box-shadow: var(--lip);
}
.wh-screen:not(#_) .wh-pit-card::after { box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px var(--red-hi), inset 0 5px 0 2px #ff9a9a; }
.wh-screen:not(#_) :is(.wh-modes-card, .wh-pit-card):is(:hover, :focus-visible)::after { box-shadow: var(--lip-on); }
.wh-screen:not(#_) :is(.wh-modes-card, .wh-pit-card) .wh-mode-t { position: relative; z-index: 3; }

/* THE PIT, ON ITS OWN TILE, over the game modes card */
.wh-screen:not(#_) .wh-play-side { display: grid; grid-template-rows: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--gap); min-height: calc(120px + 60px * var(--k)); }
.wh-screen:not(#_) .wh-play-side > .wh-mode { min-height: 0; }
.wh-screen:not(#_) .wh-pit-card {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: calc(6px * var(--k));
  padding: calc(6px * var(--k)) calc(10px * var(--k));
}
.wh-screen:not(#_) .wh-pit-card .wh-mode-name { font-size: calc(20px + 9px * var(--k)); }
.wh-screen:not(#_) .wh-pit-card .wh-mode-line { display: block; font-size: calc(13px + 3px * var(--k)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wh-screen:not(#_) .wh-pit-card .wh-mode-t { min-width: 0; }
.wh-screen:not(#_) .wh-pit-card .wh-mode-line.is-last { color: #ffd2cc; }
.wh-screen:not(#_) .wh-pit-card .wh-hero-go { position: relative; z-index: 3; flex: none; }
.wh-screen:not(#_) .wh-pit-card .wh-hero-cta { padding: calc(4px + 2px * var(--k)) calc(10px + 4px * var(--k)); font-size: calc(9px + 3px * var(--k)); }
.wh-screen:not(#_) .wh-pit-card::before { background: linear-gradient(90deg, rgba(8, 10, 16, .82) 0%, rgba(8, 10, 16, .35) 60%, rgba(8, 10, 16, .6) 100%); }
.wh-screen:not(#_) .wh-pit-card .wh-chips { z-index: 3; }
.wh-screen:not(#_) .wh-chip.is-week { background: var(--red-hi); color: #fff1d6; }
.wh-screen:not(#_) .wh-play-side .wh-modes-card .wh-mode-name { font-size: calc(16px + 6px * var(--k)); }

/* THE PARTY'S SEATS ON THE PIT'S CARD (#4723, pick 1A; world-home.js
   pitWrap). The card keeps a gap under its pitch line; the seats sit in an
   overlay that repeats the card's own row (same padding, same gap, an unseen
   FIGHT key), so they land in that gap and stop where FIGHT starts. Only an
   empty seat takes a press; everything else falls through to the card. */
.wh-screen:not(#_) .wh-play-side > .wh-pit-wrap {
  --seat: calc(10px + 6px * var(--k));
  position: relative;
  display: grid;
  min-height: 0;
}
.wh-screen:not(#_) .wh-pit-wrap > .wh-pit-card { min-height: 0; }
/* THE TITLE NEVER UNDER THE CHIP. The seats are a row more than today's
   card holds, so the seated card keeps the chip's band clear at its top
   (the chip's own top, its height, a hair) and its row of the column grows
   to fit what it holds; the game modes card under it gives up the
   difference, so nothing else on Home moves. */
.wh-screen:not(#_) .wh-play-side:has(> .wh-pit-wrap) { grid-template-rows: min-content minmax(0, 1fr); }
.wh-screen:not(#_) .wh-pit-wrap > .wh-pit-card { padding-top: calc(4px * var(--k) + (5px + 2px * var(--k)) * 1.2 + 8px + 4px * var(--k)); }
.wh-screen:not(#_) .wh-pit-card .wh-pit-gap { display: block; height: var(--seat); margin-top: calc(1px + 2px * var(--k)); }
.wh-screen:not(#_) .wh-pit-card .wh-mode-line.wh-pit-party { color: #ffd2cc; font-size: calc(11px + 3px * var(--k)); }
/* five in the party: the line that says a bracket seats four must be READ,
   so it may take two lines, and the pitch gives it the room (the card has
   no height for both on a phone or at 1512) */
.wh-screen:not(#_) .wh-pit-wrap.is-five .wh-pit-card .wh-mode-line:not(.wh-pit-party) { display: none; }
.wh-screen:not(#_) .wh-pit-wrap.is-five .wh-pit-card .wh-mode-line.wh-pit-party {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
}
/* the title on one line however narrow the card ("The / Pit" on a phone):
   it overflows to the right, over the art above FIGHT, and never widens the
   column the lines under it are cut to */
.wh-screen:not(#_) .wh-pit-wrap .wh-pit-card .wh-mode-name { white-space: nowrap; min-width: 0; }
.wh-screen:not(#_) .wh-pit-over {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: calc(6px * var(--k));
  padding: calc(6px * var(--k)) calc(10px * var(--k));
  pointer-events: none;
  transition: transform .12s ease;
}
/* the overlay rides the card's lift and press, so the seats never slide off their gap */
.wh-screen:not(#_) .wh-pit-wrap:has(> .wh-pit-card:is(:hover, :focus-visible)) > .wh-pit-over { transform: translateY(-2px); }
.wh-screen:not(#_) .wh-pit-wrap:has(> .wh-pit-card:active) > .wh-pit-over { transform: translateY(2px); }
.wh-screen:not(#_) .wh-pit-over .wh-pit-ghost { visibility: hidden; flex: none; }
.wh-screen:not(#_) .wh-pit-over .wh-pit-ghost .wh-hero-cta { padding: calc(4px + 2px * var(--k)) calc(10px + 4px * var(--k)); font-size: calc(9px + 3px * var(--k)); }
.wh-screen:not(#_) .wh-pit-seats {
  display: flex;
  align-items: flex-end;
  gap: calc(1px + 2px * var(--k));
  flex: 0 1 auto;
  min-width: 0;
  height: var(--seat);
}
/* a seat gives a little when five sit where four fit (a phone), and stays square */
.wh-screen:not(#_) .wh-seat {
  flex: 0 1 var(--seat);
  min-width: 10px;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  display: inline-grid;
  place-items: center;
  width: var(--seat);
  max-height: var(--seat);
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--gold);
  background: rgba(10, 12, 20, .8);
  image-rendering: pixelated;
}
.wh-screen:not(#_) .wh-seat > :is(img, canvas) { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.wh-screen:not(#_) .wh-seat.is-away { opacity: .7; }
.wh-screen:not(#_) .wh-seat.is-quiet { border-color: rgba(227, 199, 154, .55); background: rgba(10, 12, 20, .65); }
.wh-screen:not(#_) .wh-seat-i { font: 400 calc(var(--seat) * .7)/1 var(--f-vt); color: var(--dim); }
.wh-screen:not(#_) .wh-seat.is-empty {
  border-style: dashed;
  border-color: rgba(239, 227, 200, .45);
  background: rgba(10, 12, 20, .55);
  color: var(--ink);
  font: 400 calc(var(--seat) * .7)/1 var(--f-vt);
  cursor: pointer;
  pointer-events: auto;
}
.wh-screen:not(#_) .wh-seat.is-empty:is(:hover, :focus-visible) { border-style: solid; border-color: var(--gold-hi); background: rgba(221, 165, 44, .3); outline: none; }

/* "the dither effect is overlapping the edge of the surface it should be
   on": the halftone kept clear of the band's rim and inside its cut */
.wh-screen:not(#_) :is(.wh-lb-band, .wh-rhead, .wh-lb-pick[aria-current='page'], .wh-lb-block)::before {
  inset: 3px;
  border-radius: calc(var(--cut) - 2px);
  corner-shape: bevel;
}

/* the Store: the word alone, a size up, now that its three tabs are not
   listed under it */
.wh-screen:not(#_) .wh-shop.is-store .wh-shop-t { font-size: calc(10px + 5px * var(--k)); }

/* "not seeing the coin image or their banner anymore": the coin's
   DexScreener banner was a 35% wash under the card's head; now it fills the
   card's right side at full strength, fading into the parchment, behind the
   Chart and standings buttons */
.wh-screen:not(#_) .wh-showcase .wh-sc-banner {
  inset: 0 0 0 38%;
  width: auto;
  height: 100%;
  opacity: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 45%);
  mask-image: linear-gradient(90deg, transparent 0, #000 45%);
}
.wh-screen:not(#_) .wh-showcase :is(.wh-sc-head, .wh-sc-main, .wh-sc-stats, .wh-sc-acts) { position: relative; z-index: 1; }
.wh-screen:not(#_) .wh-showcase .wh-sc-coin { border-radius: 50%; }

/* A GUILD'S MARK ON A STANDINGS TILE: its coin's logo, then its tag */
.wh-screen:not(#_) .wh-gmark { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.wh-screen:not(#_) .wh-coinlogo {
  flex: none;
  width: calc(14px + 4px * var(--k));
  height: calc(14px + 4px * var(--k));
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 0 0 2px var(--line), 0 0 0 3px var(--gold-btn);
}
.wh-screen:not(#_) .wh-lb-tr .wh-coinlogo, .wh-screen:not(#_) .wh-lb-name .wh-coinlogo { width: 22px; height: 22px; }

/* ══ YOUR HOUSE, AND CHANGING IT (#4767; Wray's pick 2 + A, 2026-11-02) ══
   The profile's "Your house" panel and the change house page. Round 2,
   after "its still too small i think we have enough room to format it a
   little more creatively": every house is a CHIP (its sigil big, its name
   beside it), every row's label says its direction in colour (green cuts
   your way, red against you), and the page sets NOW beside AFTER. Every
   box takes the pixel cut (kit-cut.css). */
.wh-screen:not(#_) .wh-house-wrap { display: grid; gap: calc(8px * var(--k)); }
.wh-screen:not(#_) .wh-house {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: calc(10px * var(--k)) calc(14px + 8px * var(--k));
  padding: calc(10px * var(--k)) calc(14px * var(--k));
  border-radius: var(--cut);
  corner-shape: bevel;
  background: linear-gradient(90deg, color-mix(in srgb, var(--hc, #9d8a6d) 24%, #1a2130), #1a2130 55%);
  box-shadow: inset 0 0 0 2px var(--line), inset 4px 0 0 0 var(--hc, #9d8a6d);
}
.wh-screen:not(#_) .wh-house-id { display: grid; justify-items: center; gap: calc(4px * var(--k)); min-width: calc(110px + 30px * var(--k)); }
.wh-screen:not(#_) .wh-house-name { font: 400 calc(20px + 8px * var(--k))/1 var(--f-tome); color: #fff1d6; text-shadow: 0 3px 0 var(--line); }
.wh-screen:not(#_) .wh-house-bonus {
  grid-column: 1 / -1;
  padding-top: calc(6px * var(--k));
  border-top: 2px dashed rgba(227, 199, 154, .18);
  font-style: normal;
  font-size: calc(15px + 4px * var(--k));
  color: var(--ink-2);
}
.wh-screen:not(#_) .wh-house-go { display: grid; gap: 6px; justify-items: center; min-width: calc(150px + 50px * var(--k)); }
.wh-screen:not(#_) .wh-house-go .wh-prof-btn { width: 100%; }
.wh-screen:not(#_) :is(.wh-house-go, .wh-hs-go) .wh-prof-btn { height: calc(38px + 10px * var(--k)); font-size: calc(8px + 4px * var(--k)); }
.wh-screen:not(#_) .wh-house-price { font-style: normal; font: calc(8px + 4px * var(--k))/1.3 var(--f-px); color: var(--gold); text-align: center; }
.wh-screen:not(#_) .wh-prof-btn:disabled { filter: grayscale(.8) brightness(.7); cursor: not-allowed; }
.wh-screen:not(#_) .wh-hs-sig-l { width: calc(64px + 20px * var(--k)); height: auto; image-rendering: pixelated; filter: drop-shadow(0 3px 0 var(--line)); }
.wh-screen:not(#_) .wh-hs-sig-m { width: calc(36px + 14px * var(--k)); height: auto; image-rendering: pixelated; filter: drop-shadow(0 2px 0 var(--line)); }
.wh-screen:not(#_) .wh-hs-sig-t { width: calc(40px + 16px * var(--k)); height: auto; image-rendering: pixelated; filter: drop-shadow(0 2px 0 var(--line)); }

/* the board: two columns, each a heading and two rows of label + chips */
.wh-screen:not(#_) .wh-mc-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(calc(300px + 70px * var(--k)), 1fr)); gap: calc(8px * var(--k)) calc(16px * var(--k)); min-width: 0; }
.wh-screen:not(#_) .wh-mc-col { display: grid; gap: calc(5px * var(--k)); align-content: start; min-width: 0; }
.wh-screen:not(#_) .wh-mc-h { font-style: normal; font: calc(8px + 4px * var(--k))/1.4 var(--f-px); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.wh-screen:not(#_) .wh-mc-row { display: grid; grid-template-columns: calc(150px + 40px * var(--k)) minmax(0, 1fr); align-items: center; gap: calc(8px * var(--k)); }
/* a row's label: the direction in colour first, then the words */
.wh-screen:not(#_) .wh-mc-tag {
  display: grid;
  gap: 2px;
  align-content: center;
  padding: calc(4px * var(--k)) calc(8px * var(--k));
  border-radius: var(--cut);
  corner-shape: bevel;
  --tc: #b4bfcc;
  background: color-mix(in srgb, var(--tc) 14%, #141b26);
  box-shadow: inset 0 0 0 2px var(--line), inset 4px 0 0 0 var(--tc);
}
.wh-screen:not(#_) .wh-mc-tag.is-good { --tc: #7fcf8f; }
.wh-screen:not(#_) .wh-mc-tag.is-bad { --tc: #ef7a6c; }
.wh-screen:not(#_) .wh-mc-tag b { font: 400 calc(7px + 3px * var(--k))/1.35 var(--f-px); letter-spacing: .04em; text-transform: uppercase; color: color-mix(in srgb, var(--tc) 70%, #fff1d6); }
.wh-screen:not(#_) .wh-mc-tag i { font-style: normal; font-size: calc(13px + 3px * var(--k)); color: var(--ink-2); }
/* a house as a chip: its sigil big, its name in its colour */
.wh-screen:not(#_) .wh-mc-chips { display: flex; flex-wrap: wrap; gap: calc(6px * var(--k)); min-width: 0; }
.wh-screen:not(#_) .wh-mc-chip {
  display: inline-flex;
  align-items: center;
  gap: calc(6px * var(--k));
  padding: calc(2px * var(--k)) calc(10px * var(--k)) calc(2px * var(--k)) calc(4px * var(--k));
  border-radius: var(--cut);
  corner-shape: bevel;
  background: linear-gradient(180deg, color-mix(in srgb, var(--hc, #9d8a6d) 22%, #1a2130), #161d29);
  box-shadow: inset 0 0 0 2px var(--line), inset 0 -3px 0 0 color-mix(in srgb, var(--hc, #9d8a6d) 55%, #000);
}
.wh-screen:not(#_) .wh-mc-sig { width: calc(28px + 10px * var(--k)); height: auto; image-rendering: pixelated; filter: drop-shadow(0 2px 0 var(--line)); }
.wh-screen:not(#_) .wh-mc-chip b { font: 400 calc(16px + 5px * var(--k))/1 var(--f-tome); color: color-mix(in srgb, var(--hc, #9d8a6d) 55%, #fff1d6); white-space: nowrap; }

/* the page: the nine on the left as a three by three, NOW and AFTER on the right */
.wh-screen:not(#_) .wh-hs { display: grid; grid-template-columns: minmax(calc(250px + 90px * var(--k)), .7fr) minmax(0, 2.3fr); gap: calc(14px + 10px * var(--k)); align-items: start; }
.wh-screen:not(#_) :is(.wh-hs-l, .wh-hs-r) { display: grid; gap: calc(8px * var(--k)); align-content: start; min-width: 0; }
.wh-screen:not(#_) .wh-hs-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(5px * var(--k)); }
.wh-screen:not(#_) .wh-hs-tile {
  position: relative;
  display: grid;
  justify-items: center;
  gap: calc(3px * var(--k));
  padding: calc(6px * var(--k)) calc(4px * var(--k));
  border: 0;
  border-radius: var(--cut);
  corner-shape: bevel;
  background: linear-gradient(180deg, color-mix(in srgb, var(--hc, #9d8a6d) 14%, #1a2130), #1a2130);
  color: #fff1d6;
  box-shadow: inset 0 0 0 2px var(--line);
  cursor: pointer;
}
.wh-screen:not(#_) .wh-hs-tile b { font: 400 calc(13px + 5px * var(--k))/1 var(--f-tome); }
.wh-screen:not(#_) .wh-hs-tile i { position: absolute; top: calc(4px * var(--k)); right: calc(5px * var(--k)); font-style: normal; font: calc(6px + 2px * var(--k))/1 var(--f-px); color: var(--gold); }
.wh-screen:not(#_) .wh-hs-tile:hover:not(:disabled) { filter: brightness(1.18); transform: translateY(-1px); }
.wh-screen:not(#_) .wh-hs-tile:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.wh-screen:not(#_) .wh-hs-tile.is-on { background: linear-gradient(180deg, color-mix(in srgb, var(--hc, #9d8a6d) 40%, #1a2130), #1a2130); box-shadow: var(--kit-lip-on); }
.wh-screen:not(#_) .wh-hs-tile.is-mine { opacity: .5; cursor: default; }

.wh-screen:not(#_) .wh-cmp { display: grid; grid-template-columns: minmax(calc(170px + 50px * var(--k)), auto) minmax(0, 1fr) minmax(0, 1fr); gap: calc(5px * var(--k)) calc(8px * var(--k)); align-items: stretch; }
.wh-screen:not(#_) .wh-cmp-head {
  display: flex;
  align-items: center;
  gap: calc(8px * var(--k));
  padding: calc(5px * var(--k)) calc(10px * var(--k));
  border-radius: var(--cut);
  corner-shape: bevel;
  background: linear-gradient(90deg, color-mix(in srgb, var(--hc, #9d8a6d) 26%, #1a2130), #1a2130 80%);
  box-shadow: inset 0 0 0 2px var(--line);
}
.wh-screen:not(#_) .wh-cmp-head.is-after:not(.is-empty) { box-shadow: var(--kit-lip-on); }
.wh-screen:not(#_) .wh-cmp-head-t { display: grid; gap: 3px; }
.wh-screen:not(#_) .wh-cmp-head-t i { font-style: normal; font: calc(7px + 3px * var(--k))/1 var(--f-px); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.wh-screen:not(#_) .wh-cmp-head-t b { font: 400 calc(20px + 8px * var(--k))/1 var(--f-tome); color: #fff1d6; }
.wh-screen:not(#_) .wh-cmp-head.is-empty { justify-content: center; background: none; box-shadow: none; outline: 2px dashed rgba(227, 199, 154, .35); outline-offset: -2px; font: calc(8px + 3px * var(--k))/1.3 var(--f-px); color: var(--gold); }
.wh-screen:not(#_) .wh-cmp-grp { grid-column: 1 / -1; margin-top: calc(4px * var(--k)); padding-bottom: 3px; border-bottom: 2px solid rgba(227, 199, 154, .18); font: calc(7px + 4px * var(--k))/1.3 var(--f-px); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.wh-screen:not(#_) .wh-cmp-cell {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: calc(3px * var(--k)) calc(6px * var(--k));
  border-radius: var(--cut);
  corner-shape: bevel;
  background: rgba(0, 0, 0, .2);
}
.wh-screen:not(#_) .wh-cmp-cell.is-after { background: rgba(221, 165, 44, .07); box-shadow: inset 0 0 0 2px rgba(221, 165, 44, .22); }
.wh-screen:not(#_) .wh-cmp-cell.is-empty { background: none; box-shadow: none; outline: 2px dashed rgba(227, 199, 154, .2); outline-offset: -2px; }
.wh-screen:not(#_) .wh-cmp-cell.is-word { font: 400 calc(16px + 5px * var(--k))/1.1 var(--f-tome); color: #fff1d6; padding-left: calc(10px * var(--k)); }
.wh-screen:not(#_) .wh-hs-stays { margin: 0; font-size: calc(15px + 4px * var(--k)); color: var(--ink-2); }
.wh-screen:not(#_) .wh-hs-foot { display: grid; gap: calc(6px * var(--k)); margin-top: calc(6px * var(--k)); }
.wh-screen:not(#_) .wh-hs-price {
  display: grid;
  gap: 4px;
  align-content: center;
  padding: calc(7px * var(--k)) calc(12px * var(--k));
  border-radius: var(--cut);
  corner-shape: bevel;
  background: rgba(221, 165, 44, .12);
  box-shadow: inset 0 0 0 2px var(--kit-brass);
}
.wh-screen:not(#_) .wh-hs-price b { font: calc(10px + 5px * var(--k))/1.35 var(--f-px); color: var(--gold); }
.wh-screen:not(#_) .wh-hs-price span { font-size: calc(15px + 4px * var(--k)); color: var(--ink-2); }
.wh-screen:not(#_) .wh-hs-price.is-moved { background: rgba(224, 100, 90, .14); box-shadow: inset 0 0 0 2px #a5483f; }
.wh-screen:not(#_) .wh-hs-price.is-moved b { color: #ff9a8a; }
.wh-screen:not(#_) .wh-hs-price.is-free { background: rgba(143, 199, 154, .12); box-shadow: inset 0 0 0 2px #4f7d5a; }
.wh-screen:not(#_) .wh-hs-price.is-free b { color: #a8e0b2; }
.wh-screen:not(#_) .wh-hs-go { display: grid; gap: calc(6px * var(--k)); align-content: center; }
/* the gold button names the house and the price, so it may take two lines: it grows, it never overprints */
.wh-screen:not(#_) .wh-hs-go .wh-prof-btn { height: auto; min-height: calc(38px + 10px * var(--k)); padding: calc(4px * var(--k)) calc(6px * var(--k)); line-height: 1.5; white-space: normal; }
.wh-screen:not(#_) .wh-hs-why { margin: 0; color: #e9b07a; font-size: calc(15px + 4px * var(--k)); }
.wh-screen .wh-page.is-house .wh-pg-title { --tag: #8a5ac8; }
/* a narrow Home (a landscape phone): the button drops under the house, the
   page stacks the nine over the table, and the price sits over the buttons */
@container wh (max-width: 1180px) {
  .wh-screen:not(#_) .wh-house { grid-template-columns: auto minmax(0, 1fr); }
  .wh-screen:not(#_) .wh-house-go { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; align-items: center; justify-items: stretch; min-width: 0; }
  .wh-screen:not(#_) .wh-house-price { text-align: left; }
  .wh-screen:not(#_) .wh-hs { grid-template-columns: minmax(0, 1fr); }
  .wh-screen:not(#_) .wh-hs-pick { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .wh-screen:not(#_) .wh-hs-tile b { display: none; }
  /* stacked, the price and buttons come AFTER the table, never before it */
  .wh-screen:not(#_) .wh-hs-l { display: contents; }
  .wh-screen:not(#_) .wh-hs-r { order: 1; }
  .wh-screen:not(#_) .wh-hs-foot { order: 2; }
}

  /* THE RUN-UP WEEKEND (#4795): the place line on its card, and the prize on a podium step */
  .wh-event-you { display: block; margin-top: 2px; color: #d8cfb8; font: 15px/17px "VT323", monospace; }
  .wh-lb-prize { display: inline-block; margin-top: 2px; padding: 1px 8px; background: #fff6d8; color: #1b1608; font: 15px/17px "VT323", monospace; box-shadow: 0 0 0 2px #1b1608; }

  /* VERIFIED TO BE PAID (#4805): the notice beside a prize is the profile's Verified line (.wh-vline); a link where it leaves
     the page (the Pit league's band), so never underlined, and on a band it sits under the prize at its own width */
  .wh-screen .wh-paynote { text-decoration: none; }
  .wh-screen .wh-lb-band-t .wh-paynote { display: inline-flex; width: auto; margin-top: calc(6px * var(--k)); }

  /* THE GUILD TILE'S BUBBLE (#4901, Wray's A): once, with a Got it. */
  .wh-guildpop { position: fixed; z-index: 40; width: 300px; padding: 10px 12px; background: #1b2238; color: #e8dcc0; font: 16px/18px "VT323", monospace; box-shadow: 0 0 0 2px #0c0f1c, 0 0 0 4px #c9a24a, 0 6px 0 4px rgba(0, 0, 0, .45); }
  .wh-guildpop[hidden] { display: none; }
  .wh-guildpop > b { display: block; margin-bottom: 3px; color: #f3c96a; font-weight: normal; letter-spacing: .04em; }
  .wh-guildpop-ok { display: block; margin-top: 8px; padding: 2px 12px; background: #e0a92c; color: #1b1608; border: 0; font: inherit; cursor: pointer; }

/* ══ ST13 (Wray, 2026-11-13, #5353 / #5365): "I just dont like that gold
   outline that still puts it in as a box. Lets keep to the navy theme for
   our menu but probably it needs a bit of a tidy up as its a mix of old
   chrome etc." A window Home hosts has had no frame since round 21; what
   still sat in the menu as a box was the panel beside the Inventory (Bank,
   Skills, Whetstone, Appearance), which kept the slate window and its gold
   scrollwork, and around it kit B's planks, red tabs and brown rimmed wells.
   Hosted, they wear what Settings and Social already wear: navy, a dark
   line with a slate rim, Home's pills with the chosen one in red, the gold
   plank only for the one thing a page asks of you. Looks only: every size
   is held (a plank's rim was its border, so the pill takes that width back
   as padding). ══════════════════════════════════════════════════════════ */

/* TAKE B (Wray, 2026-11-16, Pick 5365, after his note on PR 5367: "taking
   off them gold trims on corners that were pixel cut I think was a mistake,
   it doesnt look related enough to the comfy in game screens ... I dont mind
   the navy being darker but I think them small details are going to be
   missed"). The gold OUTLINE round a window stays gone; the small gold trims
   come back on the corners (the slate window's own corner finishes on the
   panel, a small gold L in each well; the menu's own four corners went again
   on 2026-11-18, see below), with the cosy frame's
   details carried into navy: a lit band inside the top, gold studs at the
   ends, a fine slate inner line, the honey speckle as navy flecks
   (kitb/navy-speckle.png), a gold rim on the chosen pill, the navy a step
   darker. Both pictures: scripts/ui/derive-navy-speckle.js. */
body.wh-hosting {
  --wh-navy-speckle: url('/assets/ui/kitb/navy-speckle.png?v=2026-11-16a');
  --wh-navy-band: #5a6b8f;
  --wh-navy-fine: rgba(104, 124, 164, .5);
  --wh-navy-well: #0a0e15;
  --wh-well-corners: url('/assets/ui/kitb/well-corners.png?v=2026-11-16a');
}

/* 1. the panel beside the Inventory: darker navy, speckled, a lit band inside
   the top and a fine inner line, no slate window and no outline; the slate
   window's gold corner finishes laid over it with nothing between them, and
   a gold stud at each end. The corners are drawn for a squared frame, so the
   cut drops to the small one, as the Standings window's did on 2026-11-01. */
body.wh-hosting .ww-aside:not(#_) {
  border-image: none !important;
  border-color: transparent !important;
  background:
    linear-gradient(180deg, var(--wh-navy-band) 0 calc(2px * var(--hv-k, 2)), rgba(0, 0, 0, 0) calc(2px * var(--hv-k, 2))) border-box,
    var(--wh-navy-speckle) 0 0 / 64px 64px border-box,
    linear-gradient(180deg, #172033, #0a0e16) border-box !important;
  box-shadow: 0 0 0 2px #0b0f15, 0 6px 0 2px rgba(0, 0, 0, .45) !important;
  border-radius: var(--kit-cut-small) !important;
  corner-shape: bevel;
  /* the fine inner line is slate, never gold, so it cannot read as the gold box */
  outline: calc(1px * var(--hv-k, 2)) solid var(--wh-navy-fine) !important;
  outline-offset: calc(-5px * var(--hv-k, 2)) !important;
}
/* its pseudo-elements measure from the PADDING box, so they reach back over
   the panel's 28px border (world-skin.css .ww-aside) to sit on its edge */
body.wh-hosting .ww-aside:not(#_)::after {
  content: '';
  position: absolute;
  inset: -28px;
  box-sizing: border-box;
  z-index: 6;
  pointer-events: none;
  border-style: solid;
  border-width: calc(18px * var(--hv-k, 2));
  border-image: url('/assets/ui/kitb/window-corners.png?v=2026-11-01a') 18 / calc(18px * var(--hv-k, 2)) stretch;
  image-rendering: pixelated;
}
body.wh-hosting .ww-aside:not(#_)::before {
  content: '';
  position: absolute;
  inset: -28px -31px;
  z-index: 6;
  pointer-events: none;
  background:
    var(--kit-stud) left center / var(--kit-stud-size) var(--kit-stud-size) no-repeat,
    var(--kit-stud) right center / var(--kit-stud-size) var(--kit-stud-size) no-repeat;
}

/* A TRIM BELONGS TO A WINDOW (Wray, 2026-11-18, on take B as built: "It
   looks good on the windows but you have it floating in empty space on
   screens that dont have a window there so its not actually attached to the
   window"). Take B had also marked the menu's own four corners under the
   page's title, and a page Home hosts has had no frame since round 21: on
   every one of them four gold corner pieces stood alone on the dimmed world
   (and behind an open panel's own, so its corners read doubled). They are
   gone. In this block a gold corner, a stud, the lit band, the speckle and
   the fine line are drawn only by something that paints its own frame: the
   panel above and Home's Standings window (section 5), and the small gold L
   on a well (section 3). The page itself, .ws-sheet, gets no rule here.
   __tests__/homeMenuNavy.test.js holds every rule in the block to that. */

/* 2. kit B's slate plank and red tab, as Home's pill */
body.wh-hosting :is(.ws-sheet .ws-sheet-body, .ww-aside)
  :is(.ww-way:not(.ww-appearance), .ww-sort, .ww-asidex, .ww-asidetab, .wb-tab, .wa-tab, .wa-mask, .wa-reset, .wsb-chip, .wsb-btn:not(.is-gold), .ww-house-cta:disabled):not(#_) {
  border: 0 !important;
  border-image: none !important;
  border-radius: var(--kit-cut-bar) !important;
  corner-shape: bevel;
  background: #1a2130 !important;
  box-shadow: inset 0 0 0 2px #0b0f15, inset 0 0 0 3px #4b5874, 0 3px 0 #05070b !important;
  color: #d9cdb2 !important;
  text-shadow: none !important;
  image-rendering: auto;
}
body.wh-hosting :is(.ws-sheet .ws-sheet-body, .ww-aside)
  :is(.ww-way[aria-expanded='true'], .ww-asidetab[aria-selected='true'], .wb-tab.is-on, .wb-tab[aria-current], .wb-tab[aria-selected='true'], .wa-tab[aria-pressed='true'], .wa-mask[aria-pressed='true'], .wsb-chip:is(.is-on, [aria-pressed='true'], [aria-selected='true'], [aria-current])):not(#_):not(#_) {
  background: linear-gradient(180deg, #c0444c, #8e2a31) !important;
  /* take B: the chosen pill keeps its shape and takes back a thin gold rim */
  box-shadow: inset 0 0 0 2px #0b0f15, inset 0 0 0 4px #dda52c, inset 0 5px 0 2px #f3d79a, 0 3px 0 #05070b !important;
  color: #fff1d6 !important;
}
/* "YOU BELONG HERE" is a state, not a dead button: the word stays gold */
body.wh-hosting .ws-sheet .ws-sheet-body .ww-house-cta:disabled:not(#_):not(#_) { color: #e3c79a !important; }
/* the rim's width, back as padding (6px a side at the desk's chrome pixel, 12 on a tab) */
body.wh-hosting :is(.ws-sheet .ws-sheet-body, .ww-aside) :is(.ww-asidetab, .wb-tab):not(#_) { padding: 0 calc(9px + 3px * var(--hv-k, 2)) !important; }
body.wh-hosting .ww-aside .wb-tab.ws-paneltab:not(#_):not(#_) { padding: 0 calc(6px + 6px * var(--hv-k, 2)) !important; font-size: 8px !important; }
body.wh-hosting .ww-aside .ww-asidex:not(#_) { padding: 0 calc(12px + 3px * var(--hv-k, 2)) !important; }
body.wh-hosting .ww-aside .wa-tab:not(#_) { padding: 0 calc(4px + 6px * var(--hv-k, 2)) !important; }
body.wh-hosting .ww-aside .wa-mask:not(#_) { padding: 0 calc(2px + 3px * var(--hv-k, 2)) !important; }
body.wh-hosting .ww-aside .wa-reset:not(#_) { padding: 0 calc(14px + 3px * var(--hv-k, 2)) !important; }
body.wh-hosting :is(.ws-sheet .ws-sheet-body, .ww-aside) .ww-sort:not(#_) { padding: 0 calc(8px + 3px * var(--hv-k, 2)) 0 calc(6px + 3px * var(--hv-k, 2)) !important; }
body.wh-hosting .ws-sheet .ws-sheet-body .ww-way:not(.ww-appearance):not(#_) { padding: 0 calc(8px + 3px * var(--hv-k, 2)) !important; }
body.wh-hosting .ws-sheet .ws-sheet-body .ww-way.ww-waytab:not(#_):not(#_) { padding: 0 calc(5px + 3px * var(--hv-k, 2)) !important; }
body.wh-hosting .ws-sheet .ws-sheet-body .wsb-chip:not(#_) { padding: 0 calc(7px + 6px * var(--hv-k, 2)) !important; }
body.wh-hosting .ws-sheet .ws-sheet-body .wsb-btn:not(.is-gold):not(#_) { padding: 0 calc(10px + 3px * var(--hv-k, 2)) !important; }
body.wh-hosting .ws-sheet .ws-sheet-body .wsb-btn.is-sm:not(.is-gold):not(#_):not(#_) { padding: 0 calc(6px + 3px * var(--hv-k, 2)) !important; }

/* 3. the wells: the brown rim goes slate, as a navy card's does; take B lays
   a small gold L in each corner and the speckle in the navy. An inset shadow
   paints over a background, so the soft shade under the top edge moves into
   the background and the rim keeps only its two hard lines. */
body.wh-hosting :is(.ws-sheet, .ww-aside) :is(.ww-stage, .ww-stats.ww-mods, .wb-well):not(#_) {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0) 14px),
    var(--wh-navy-speckle) 0 0 / 64px 64px,
    var(--wh-navy-well) !important;
  box-shadow: inset 0 0 0 2px #07090d, inset 0 0 0 4px #2c3850 !important;
}
/* the Ls are a border image with no border under it: it paints over the inset
   rim, takes no room, and stays put when a well scrolls (the bag does) */
body.wh-hosting :is(.ws-sheet, .ww-aside) :is(.ww-stage, .ww-stats.ww-mods, .wb-well):not(#_),
body.wh-hosting .ws-sheet .ww-inv2 > .ww-bag1:not(#_) {
  border-image: var(--wh-well-corners) 18 / 18px / 0 stretch !important;
}
/* the bag's cells start 5px in and would cover its Ls: they move out onto its rim */
body.wh-hosting .ws-sheet .ww-inv2 > .ww-bag1:not(#_):not(#_) { border-image-outset: 3px !important; }
body.wh-hosting .ws-sheet .ww-inv2 .ww-stagewell:not(#_)::after { box-shadow: inset 0 0 0 2px #07090d, inset 0 0 0 4px #2c3850, inset 0 0 26px 8px rgba(5, 8, 14, .75) !important; }
body.wh-hosting .ws-sheet .ww-inv2 .ww-footbar:not(#_) {
  background: var(--wh-navy-speckle) 0 0 / 64px 64px, var(--wh-navy-well) !important;
  box-shadow: inset 0 2px 0 #07090d, inset 2px 0 0 #07090d, inset -2px 0 0 #07090d,
    inset 0 4px 0 #2c3850, inset 4px 0 0 #2c3850, inset -4px 0 0 #2c3850 !important;
}
body.wh-hosting .ws-sheet .ww-inv2 > .ww-bag1:not(#_) {
  background: var(--wh-navy-speckle) 0 0 / 64px 64px, var(--wh-navy-well) !important;
  box-shadow: inset 0 -2px 0 #07090d, inset 2px 0 0 #07090d, inset -2px 0 0 #07090d,
    inset 0 -4px 0 #2c3850, inset 4px 0 0 #2c3850, inset -4px 0 0 #2c3850 !important;
}
body.wh-hosting :is(.ws-sheet, .ww-aside) .ww-find:not(#_) { background: #141a26 !important; box-shadow: inset 0 0 0 2px #2c3850, inset 2px 2px 0 2px rgba(0, 0, 0, .35) !important; }
body.wh-hosting .ws-sheet .wsb .wsb-facts:not(#_) { background: #141a26 !important; border-color: #2c3850 !important; }
body.wh-hosting .ww-aside :is(.wc-track, .wc-track-bar, .wa-chip):not(#_) { box-shadow: inset 0 0 0 2px #07090d, inset 0 0 0 3px #2c3850 !important; }

/* 4. the Bank in the menu: cells the bag's size, not six to the page's width
   (a phone on its side already lays its own, world-bank.css section 10) */
@media (min-height: 541px) {
  body.wh-hosting .ww-aside.wb-aside.is-over-sheet .wb-grid:not(#_) { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)) !important; }
}

/* 5. Home's Standings window, in take B's hand (Wray, 2026-11-16): the gold
   rim of its lip goes (no gold box), its 2026-11-01 corner finishes stay
   (the ::after above, at 3108), and it takes the panel's cosy details: the
   lit band, the speckle, the fine slate line, a stud at each end. */
.wh-screen .wh-right:not(#_) {
  background:
    linear-gradient(180deg, #5a6b8f 0 calc(2px + 2px * var(--k, 1)), rgba(0, 0, 0, 0) calc(2px + 2px * var(--k, 1))),
    url('/assets/ui/kitb/navy-speckle.png?v=2026-11-16a') 0 0 / 64px 64px,
    linear-gradient(180deg, #172033, #0a0e16);
  box-shadow: inset 0 0 0 2px #0b0f15, 0 4px 0 #05070b, 0 10px 30px rgba(0, 0, 0, .4);
  outline: 2px solid rgba(104, 124, 164, .5);
  outline-offset: -10px;
}
.wh-screen .wh-right:not(#_)::before {
  content: '';
  position: absolute;
  inset: 0 -3px;
  z-index: 6;
  pointer-events: none;
  background:
    var(--kit-stud) left center / var(--kit-stud-size) var(--kit-stud-size) no-repeat,
    var(--kit-stud) right center / var(--kit-stud-size) var(--kit-stud-size) no-repeat;
}

/* 6. A LOOK ON TRIAL, NOT ROLLED OUT (Wray, 2026-11-18: "Im curious what a
   texture like we have here on the bank screen looks like but in that
   lighter navy as thats more cosy id say. Let's capture this before we move
   onto all other overlay menu surfaces"). /world.html?navy=light puts
   wh-navy-light on <body> for that page load (world-home.js navyLook), and
   the menu's two windows, the panel beside the Inventory and the Standings
   window, keep take B's texture and every detail (the speckle, the lit
   band, the fine line, the studs, the corner trims) on take C's lighter,
   flatter navy: #3a4760, the old slate window's own fill, one colour with
   no fade down it. The band and the line are lifted by the same step as
   the ground, so they read as they do on the darker navy. Off by default,
   and it reaches nothing else: the wells stay dark, and no other overlay
   menu takes either navy until he picks. */
body.wh-navy-light {
  --wh-navy-light: #3a4760;
  --wh-navy-light-band: #7c8fb6;
  --wh-navy-light-fine: rgba(164, 182, 218, .5);
}
body.wh-hosting.wh-navy-light .ww-aside:not(#_) {
  background:
    linear-gradient(180deg, var(--wh-navy-light-band) 0 calc(2px * var(--hv-k, 2)), rgba(0, 0, 0, 0) calc(2px * var(--hv-k, 2))) border-box,
    var(--wh-navy-speckle) 0 0 / 64px 64px border-box,
    var(--wh-navy-light) border-box !important;
  outline-color: var(--wh-navy-light-fine) !important;
}
body.wh-navy-light .wh-screen .wh-right:not(#_) {
  background:
    linear-gradient(180deg, var(--wh-navy-light-band) 0 calc(2px + 2px * var(--k, 1)), rgba(0, 0, 0, 0) calc(2px + 2px * var(--k, 1))),
    url('/assets/ui/kitb/navy-speckle.png?v=2026-11-16a') 0 0 / 64px 64px,
    var(--wh-navy-light);
  outline-color: var(--wh-navy-light-fine);
}
} /* end of @layer corners */
