/* Shared design tokens for Hero View (omz.html) and Olympus (olympus.html).
   Size, radius and spacing live here; colours and fonts stay in each page's own :root.
   Change a value here and both apps follow. New CSS uses these, not raw px.

   TYPE SCALE (px values mapped to steps). The floor for any text is --fs-2xs (11px).
   The two --fs-micro tokens are the only sizes under the floor: compact labels that cannot grow
   without breaking their row (tab bars, slider ticks, badges). They keep their old size on purpose and are
   listed in PROJECT.md; retire one by moving its row to a roomier layout, not by editing the value. */
:root {
  --fs-2xs: 11px;
  --fs-xs:  12px;
  --fs-sm:  13px;
  --fs-md:  14px;
  --fs-lg:  16px;
  --fs-xl:  18px;
  --fs-2xl: 20px;
  --fs-3xl: 22px;
  --fs-4xl: 24px;
  --fs-5xl: 28px;
  /* glyph sizes: emoji and big numerals, used as exact values (no neighbours to snap to) */
  --fs-g30: 30px;
  --fs-g32: 32px;
  --fs-g44: 44px;
  --fs-g48: 48px;
  --fs-g52: 52px;
  --fs-g56: 56px;
  --fs-g64: 64px;
  --fs-g72: 72px;
  /* under-the-floor exceptions (see above) */
  --fs-micro-9:  9px;
  --fs-micro-10: 10px;

  /* ROLES. Every tab uses the same four text roles; a card in any tab reads as one app. */
  --fs-item:   var(--fs-md);     /* title of a row (chore, reward, armory item) */
  --fs-tile:   var(--fs-xs);     /* title of a tile in a grid (chest, pack slot) */
  --fs-body:   var(--fs-md);
  --fs-meta:   var(--fs-xs);
  --fs-label:  var(--fs-2xs);
  --fw-item:   700;
  --fw-body:   600;

  /* RADIUS. 50% (circles) and 2 to 3px (thin bars and tracks) stay literal. */
  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:   12px;
  --r-card: 14px;                /* cards and tiles */
  --r-lg:   16px;
  --r-xl:   20px;
  --r-2xl:  24px;                /* modals, header and tab bar corners */
  --r-pill: 999px;
  --card-radius: var(--r-card);
  --card-pad:    12px 14px;

  /* SPACING, named by px value. Only these values are tokenised; anything else stays literal. */
  --sp-4:  4px;
  --sp-6:  6px;
  --sp-8:  8px;
  --sp-10: 10px;
  --sp-12: 12px;
  --sp-14: 14px;
  --sp-16: 16px;
  --sp-20: 20px;
  --sp-24: 24px;
}

/* ======================================================================
   BUTTONS. Shape, size and colour variants shared by Hero View and Olympus.
   New buttons: class="btn btn-solid btn-md" (variants: solid, tint, neutral, ghost, danger;
   sizes: sm, md, lg). The named selectors below are existing buttons that already use the same
   look, listed here so their markup did not need to change. A selector keeps only its layout
   (width, margin, letter-spacing, font-family, states) in the page.
   ====================================================================== */
:root {
  /* Crimson and bronze (from the background art and the Bronze Crest skin). Used by the nudge banner. */
  --crimson: #6b1414;
  --bronze:  #9c7a34;
  /* Banner tint strength: the colour gradient laid over --banner-base (nudge uses crimson mixes, softer on purpose) */
  /* Banner box: same padding on every banner; --banner-gap is the space between stacked banners */
  --banner-pad: var(--sp-12) var(--sp-16);
  --banner-gap: var(--sp-8);
  --banner-tint-a: 0.22;
  --banner-tint-b: 0.10;
  --btn-r:  var(--r-md);
  --btn-fw: 700;
  --btn-pad-sm: var(--sp-6) var(--sp-12);   --btn-fs-sm: var(--fs-xs);
  --btn-pad-md: var(--sp-12);               --btn-fs-md: var(--fs-sm);
  --btn-pad-lg: var(--sp-16);               --btn-fs-lg: var(--fs-md);
  --btn-solid-bg: linear-gradient(135deg, #c9a84c, #e8c76a);
  --btn-solid-fg: #0a0e1a;
  --btn-danger-bg: rgba(192,57,43,0.08);
  --btn-danger-bd: rgba(192,57,43,0.25);
  --btn-danger-fg: rgba(231,76,60,0.8);
  /* chips and round icon buttons */
  --chip-r:   var(--r-pill);
  --chip-pad: var(--sp-4) var(--sp-10);
  --icon-btn-sm: 24px;
  --icon-btn-md: 36px;
  --icon-btn-lg: 42px;
}
.btn,
.arm-btn-no,
.arm-btn-yes,
.btn-cancel-powerup,
.btn-invoke,
.btn-parent-sign-out,
.btn-save-hero,
.btn-sign-out,
.btn-submit,
.btn-switch-hero,
.chest-close,
.chore-delete-btn,
.gremlin-close,
.hydra-close,
.inventory-use-btn,
.powerup-info-close,
.req-range,
.skip-chore-option,
.tour-btn,
.treasury-ask-btn,
.treasury-back-btn {
  cursor: pointer; font-weight: var(--btn-fw);
}
.btn-solid,
.arm-btn-yes,
.btn-invoke,
.btn-save-hero,
.btn-submit,
.tour-btn,
.treasury-ask-btn {
  background: var(--btn-solid-bg); color: var(--btn-solid-fg); border: none;
}
.btn-tint,
.btn-switch-hero,
.chest-close,
.inventory-use-btn,
.powerup-info-close {
  background: var(--gold-dim); color: var(--gold-bright); border: 1px solid var(--gold);
}
.btn-neutral,
.skip-chore-option,
.treasury-back-btn {
  background: var(--surface2); color: var(--text); border: 1px solid var(--border);
}
.btn-ghost,
.arm-btn-no,
.btn-cancel-powerup,
.req-range {
  background: transparent; color: var(--muted); border: 1px solid var(--border);
}
.btn-danger,
.btn-parent-sign-out,
.btn-sign-out,
.chore-delete-btn {
  background: var(--btn-danger-bg); color: var(--btn-danger-fg); border: 1px solid var(--btn-danger-bd);
}
.btn-sm,
.chore-delete-btn {
  padding: var(--btn-pad-sm); font-size: var(--btn-fs-sm); border-radius: var(--r-sm);
}
.btn-md,
.arm-btn-no,
.arm-btn-yes,
.powerup-info-close,
.treasury-ask-btn,
.treasury-back-btn {
  padding: var(--btn-pad-md); font-size: var(--btn-fs-md); border-radius: var(--btn-r);
}
.btn-lg,
.btn-cancel-powerup,
.btn-invoke,
.btn-save-hero,
.btn-submit,
.chest-close,
.gremlin-close,
.hydra-close {
  padding: var(--btn-pad-lg); font-size: var(--btn-fs-lg); border-radius: var(--btn-r);
}
.btn { font-family: var(--serif, inherit); transition: transform 0.15s; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Plain close "x" and chips */
.btn-x, .help-x, .profile-sheet-close {
  background: none; border: none; color: var(--muted); font-size: var(--fs-2xl);
  line-height: 1; cursor: pointer; padding: var(--sp-4);
}
.chip, .oracle-chip, .nudge-chip, .help-chip, .lad-chip, .hero-pill, .arm-pill,
.hist-pill, .feed-chip, .feed-markread { border-radius: var(--chip-r); }
.chip, .oracle-chip, .nudge-chip, .hist-pill, .feed-chip, .feed-markread { padding: var(--chip-pad); }
