/* Density pass (Dodd, 2026-10-25: "making the UI a bit less big but still easy to read, but feel less claustrophobic.
   Less clutter with text everywhere"). Loaded LAST in index.html so it can bring the scaled-up pages down a notch in
   one place, using the size tokens in style.css :root (--fs-*, --page-gap, --pad-panel). Rules:
     - headings, panels, tiles and gaps about 10-15% smaller where they had grown oversized;
     - body text stays >= 16px (--fs-body), labels >= 13.5px (--fs-label) (raised a notch for #174);
     - more air between things rather than more boxes: wider gaps, a little more margin round each page.
   Phones (<= 860px) keep their own sizes from each page's file; most rules here are for the desktop layout. */

/* ---------- the frame: the wordmark, the menu, the page margins ---------- */
@media (min-width: 861px) {
  .brand b { font-size: var(--fs-brand); }
  .nav { gap: 4px; }
  .nav > button { font-size: var(--fs-nav); padding: 10px 14px 10px 20px; }
  .modview { padding: clamp(24px, 3.2vh, 40px) clamp(24px, 3vw, 60px) 56px; } /* 3vw: at 1280 the pass still gets its 1000px side-by-side stage */
}
/* the top tally's small labels: at least the label floor */
.hud-label { font-size: 12.5px; } /* (the top plate keeps its size: #166 sets it on desktop) */

/* ---------- page titles: one size everywhere (desktop; phones keep each page's own) ---------- */
@media (min-width: 861px) {
  .work-head h1, .acp-head h1 { font-size: var(--fs-page); }
  .acp-head p { font-size: var(--fs-body); }
  /* Home: the prompt under the pack */
  .hm-prompt .phead h2 { font-size: clamp(30px, 2.8vw, 46px); }
}

/* ---------- Inventory: lighter tabs, a calmer detail column, more space between the two plates ----------
   (its own container sizes take over below 1060px, so these are for the wide two-column layout only) */
@container (min-width: 1061px) {
  .inv { gap: var(--page-gap); }
  .inv-head h1 { font-size: var(--fs-page); }
  .inv-head p { font-size: var(--fs-body); }
  .inv-tabs [role=tab] { min-height: 46px; padding: 0 20px; font-size: 19px; }
  .inv-head-right > .bp-btn { min-height: 54px; }
  .inv-body { gap: var(--page-gap); }
  .inv-main { padding: var(--pad-panel); }
  .inv-detail { padding: 34px var(--pad-panel) 26px; gap: 16px; }
  .inv-detail .bp-plinth { min-height: 290px; }
  .iv-hero { --s: 2.3; width: 220px; height: 240px; }
  .iv-hero.rk-pack { --s: 2.45; }
  .iv-hero.rk-back { --s: 2.5; }
  .inv-detail .bp-info h2 { font-size: clamp(28px, 2.4vw, 36px); }
  .inv-detail .bp-text { font-size: var(--fs-body); }
  .inv-detail .bp-act .bp-btn { min-height: 52px; font-size: 16px; }
}
.iv-slot-kind { font-size: var(--fs-label); }

/* ---------- Stats: smaller figures, more room round the calendar (desktop; it has its own sizes at 860) ---------- */
@media (min-width: 861px) {
  .st-head { margin-bottom: var(--page-gap); }
  .st-figures { gap: clamp(12px, 1.2vw, 20px); }
  .st-fig { padding: 18px 20px 16px; }
  .st-fig strong { font-size: var(--fs-hero-num); }
  .st-cal-head h2, .st-detail-head h2 { font-size: var(--fs-h2); }
}

/* ---------- Account ---------- */
@media (min-width: 861px) {
  .acp { gap: var(--page-gap); }
  .acp-empty .acp-title { font-size: clamp(26px, 2.2vw, 34px); }
  .acp-member .acp-title { font-size: clamp(26px, 2.1vw, 32px); }
  .acp-set .acp-title { font-size: 23px; }
}

/* ---------- Settings: the sheet's type a step down (desktop; phones keep settings.css's own) ---------- */
@media (min-width: 861px) {
  .set-head h2 { font-size: 26px; }
  .set-tabs [role=tab] { font-size: 19px; min-height: 44px; }
  .set-h { font-size: 24px; }
  .set-sec-head h4 { font-size: 18px; }
}

/* ---------- #166 the frame, bigger (Dodd, 10-26: "the IRIS and the Home, Collection, Battle Pass, Shop, Profile: make
   that much larger. It takes up more of the screen over there, and centre stuff a bit better... Same with the top
   right, maybe enlarge that a tiny bit"; then, live: "a little bit big... just a little bit smaller"). Desktop only;
   phones keep their tab bar and top plate. The left column grows with the screen (it was stuck at 250 px from 1800 px
   up), the wordmark and the menu words grow with it (a touch at 1440, more on big screens), and the menu sits in the
   middle of the column's height (a touch above), level with Home's stage. The top plate (today's numbers, Hours,
   music, settings) and Quests / While you were gone are a little bigger, a little more on big screens. */
@media (min-width: 861px) {
  .desk { grid-template-columns: clamp(212px, calc(40px + 12vw), 350px) minmax(0, 1fr); }
  .side { padding: 34px 0 calc(34px + 9vh) clamp(26px, 2.4vw, 58px); }
  .brand b { font-size: clamp(72px, calc(16px + 3.9vw), 118px); }
  .brand span { margin-top: .9em; font-size: clamp(11.5px, .7vw, 17px); }
  .side .nav { margin-top: auto; margin-bottom: auto; gap: clamp(4px, .3vw, 8px); }
  .side .nav > button { font-size: clamp(23px, calc(6px + 1.2vw), 40px); padding: .4em .6em .4em .8em; }
  .side .nav > .nav-pass { margin-top: clamp(10px, .6vw, 15px); }
  .side .nav > .nav-pass.nav-shop { margin-top: 0; }
  .side .nav-mark { width: clamp(7px, .34vw, 10px); height: clamp(7px, .34vw, 10px); }
  .nav button[aria-current="true"]::before { top: 22%; bottom: 22%; width: clamp(2px, .12vw, 3px); }

  .hud { height: calc(52px + .55vw); }
  .hud-stat { min-width: calc(88px + .8vw); padding: 0 calc(15px + .25vw); }
  .hud-num { font-size: calc(17.5px + .3vw); }
  .hud-num small { font-size: calc(11px + .12vw); }
  .hud-label { font-size: calc(11px + .12vw); }
  .hud-btn { width: calc(41px + .25vw); height: calc(41px + .25vw); }
  .hud-btn svg { width: calc(18px + .12vw); height: calc(18px + .12vw); }
  .hud-coin { width: calc(27px + .2vw); height: calc(27px + .2vw); }
  .hd-btn { height: calc(35px + .25vw); padding: 0 calc(8px + .12vw) 0 calc(11px + .12vw); font-size: calc(12px + .12vw); }
  .hd-count { font-size: calc(10px + .1vw); }
}
@media (min-width: 861px) and (max-height: 820px) { .side .nav > button { padding-top: .3em; padding-bottom: .3em; } }
