/* ============ ORACLE SITE — public pages (queue, splots, ratings, dice, menu) ============
   Companion to public/css/oracle.css (overlays). Same palette, page-scale chrome.
   Mockups: claude.ai/design BootcutBot project → Public Site Redesign.html */

:root {
  --ink: #0b0816;
  --ink-2: #120d22;
  --ink-3: #1a1329;
  --vellum: #1d1730;
  --parchment: #efe3c3;
  --parchment-dim: #c9bc97;
  --parchment-faint: #8a7f62;
  --gilt: #d6b263;
  --gilt-bright: #f2d583;
  --gilt-deep: #8a6a2d;
  --gilt-shadow: #5a421a;
  --crimson: #b5322a;
  --crimson-bright: #e85545;
  --crimson-deep: #6a1a14;
  --jade: #4a9f7f;
  --violet: #7a5bd3;
  --font-display: "Cinzel", "Cormorant Garamond", "Trajan Pro", serif;
  --font-hand: "IM Fell English SC", "Cinzel", serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", monospace;
  --font-body: "Cormorant Garamond", Georgia, serif;
  --plaque-bg: linear-gradient(180deg, #1e1632 0%, #0f0a1d 100%);
  --plaque-bg-hot:
    radial-gradient(ellipse at 50% 0%, rgba(232, 85, 69, 0.22), transparent 65%),
    linear-gradient(180deg, #3a0a14 0%, #1c0509 55%, #0a0205 100%);
  --plaque-shadow:
    inset 0 1px 0 rgba(242, 213, 131, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.65),
    inset 0 0 0 3px rgba(0, 0, 0, 0.55),
    inset 0 0 0 4px rgba(214, 178, 99, 0.18),
    0 4px 14px rgba(0, 0, 0, 0.55);
  --plaque-shadow-hot:
    inset 0 1px 0 rgba(232, 85, 69, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.65),
    inset 0 0 0 3px rgba(0, 0, 0, 0.55),
    inset 0 0 0 4px rgba(181, 50, 42, 0.28),
    0 0 18px rgba(181, 50, 42, 0.3),
    0 4px 14px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.os-body {
  margin: 0;
  min-height: 100vh;
  color: var(--parchment);
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 80% 30% at 50% 0%, rgba(214, 178, 99, 0.1), transparent 70%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(181, 50, 42, 0.07), transparent 70%),
    linear-gradient(180deg, #0f0a1c 0%, #0a0715 50%, #0b0816 100%);
  background-attachment: fixed;
  position: relative;
}
/* film grain */
body.os-body::before {
  content: "";
  position: fixed; inset: 0; z-index: 90;
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
  pointer-events: none;
}

a { color: var(--gilt-bright); }
::selection { background: rgba(214, 178, 99, 0.35); color: var(--parchment); }

.os-main { max-width: 1440px; margin: 0 auto; }

/* ---- keyframes ---- */
@keyframes osLamp {
  0%, 100% { opacity: 0.55; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.08); filter: brightness(1.3); }
}
@keyframes osCascade { 0%, 70% { opacity: 1; } 71%, 100% { opacity: 0.2; } }
@keyframes osCtaPulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.18); } }

/* ---- lamps & leds ---- */
.os-led {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  --c: var(--gilt-bright);
  background: radial-gradient(circle at 35% 30%, #fff6d6 0%, var(--c) 45%, rgba(0, 0, 0, 0.6) 115%);
  box-shadow: 0 0 6px var(--c), 0 0 13px color-mix(in srgb, var(--c) 50%, transparent), inset 0 0 1px rgba(0, 0, 0, 0.5);
}
.os-led.is-blink { animation: osLamp 1.6s ease-in-out infinite; }
.os-led.is-off {
  background: rgba(214, 178, 99, 0.12);
  box-shadow: inset 0 0 0 1px rgba(214, 178, 99, 0.3);
  animation: none;
}
.os-led.sm { width: 6px; height: 6px; }
.os-led.xs { width: 7px; height: 7px; }

.os-lamps {
  position: absolute; left: 0; right: 0; height: 10px;
  display: flex; justify-content: space-between;
  padding: 0 10px; pointer-events: none; z-index: 11;
}
.os-lamps.top { top: -4px; }
.os-lamps.bottom { bottom: -4px; }
.os-lamps i {
  width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6d6 0%, var(--gilt-bright) 45%, rgba(0, 0, 0, 0.6) 115%);
  box-shadow: 0 0 6px rgba(242, 213, 131, 0.9), 0 0 13px rgba(242, 213, 131, 0.5), inset 0 0 1px rgba(0, 0, 0, 0.5);
  animation: osLamp 1.6s ease-in-out infinite;
}
.os-lamps i:nth-child(4n + 2) { animation-delay: 400ms; }
.os-lamps i:nth-child(4n + 3) { animation-delay: 800ms; }
.os-lamps i:nth-child(4n + 4) { animation-delay: 1200ms; }

/* ---- type primitives ---- */
.os-kicker {
  font-family: var(--font-display);
  font-size: 10px; letter-spacing: 0.42em; text-transform: uppercase;
  font-weight: 600; color: var(--gilt);
}
.os-kicker .star { color: var(--crimson-bright); opacity: 0.75; }
.os-kicker .star:first-child { margin-right: 12px; }
.os-kicker .star:last-child { margin-left: 12px; }

.os-hand {
  font-family: var(--font-hand);
  letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--parchment-dim);
}

/* ---- arch corners ---- */
.os-arch { position: absolute; width: 22px; height: 22px; border: 1px solid var(--gilt); opacity: 0.7; pointer-events: none; }
.os-arch.tl { top: 6px; left: 6px; border-right: none; border-bottom: none; }
.os-arch.tr { top: 6px; right: 6px; border-left: none; border-bottom: none; }
.os-arch.bl { bottom: 6px; left: 6px; border-right: none; border-top: none; }
.os-arch.br { bottom: 6px; right: 6px; border-left: none; border-top: none; }

/* ---- pills (plaque buttons) ---- */
.os-pill {
  height: 42px; padding: 0 18px;
  background: var(--plaque-bg);
  color: var(--parchment);
  border: 1px solid var(--gilt);
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  box-shadow: var(--plaque-shadow);
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.8);
}
.os-pill .ico { font-size: 13px; letter-spacing: 0; }
.os-pill.sm { height: 34px; font-size: 10px; }
.os-pill.lg { height: 54px; font-size: 13px; padding: 0 28px; }
.os-pill.hot {
  background: var(--plaque-bg-hot);
  border-color: var(--crimson);
  color: #ffe3d8;
  box-shadow: var(--plaque-shadow-hot);
  animation: osCtaPulse 2.2s ease-in-out infinite;
}
.os-pill.gold {
  background: linear-gradient(180deg, var(--gilt-bright), var(--gilt) 60%, var(--gilt-deep));
  border-color: var(--gilt-bright);
  color: #241505;
  box-shadow: inset 0 1px 0 rgba(255, 246, 214, 0.8), inset 0 -1px 0 var(--gilt-shadow), 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 18px rgba(242, 213, 131, 0.25);
  text-shadow: 0 1px 0 rgba(255, 246, 214, 0.5);
}
.os-pill.ghost {
  background: transparent;
  border-color: rgba(214, 178, 99, 0.45);
  color: var(--parchment-dim);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}

/* ---- status badges ---- */
.os-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 6px;
  --c: var(--gilt-bright);
  border: 1px solid var(--c);
  background: linear-gradient(180deg, rgba(30, 22, 50, 0.9), rgba(15, 10, 29, 0.9));
  font-family: var(--font-display); font-size: 9.5px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--c); font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(242, 213, 131, 0.18), inset 0 -1px 0 rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.45), 0 0 10px color-mix(in srgb, var(--c) 15%, transparent);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}
.os-badge .os-led { --c: inherit; }
.os-badge.is-off { --c: var(--parchment-faint); border-color: rgba(214, 178, 99, 0.25); box-shadow: inset 0 1px 0 rgba(242, 213, 131, 0.18), inset 0 -1px 0 rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.45); }
.os-badge.jade { --c: var(--jade); }
.os-badge.crimson { --c: var(--crimson-bright); }
.os-badge.dim { --c: var(--parchment-dim); }

/* ---- tote numbers ---- */
.os-tote {
  position: relative; display: inline-block; padding: 4px 14px;
  font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1;
  color: var(--gilt-bright); font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #1a0f1e 0%, #0a0510 100%);
  border: 1px solid rgba(214, 178, 99, 0.45);
  box-shadow: inset 0 1px 0 rgba(242, 213, 131, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.8), 0 0 10px rgba(242, 213, 131, 0.15);
  text-shadow: 0 0 14px currentColor, 0 2px 0 rgba(0, 0, 0, 0.9);
}
/* split-flap hairline */
.os-tote::after {
  content: ""; position: absolute; left: 3px; right: 3px; top: 50%; height: 1px;
  background: rgba(0, 0, 0, 0.85);
  box-shadow: 0 1px 0 rgba(242, 213, 131, 0.12);
  pointer-events: none;
}
.os-tote.jade { color: var(--jade); }
.os-tote.crimson { color: var(--crimson-bright); }
.os-tote.dim { color: var(--parchment-dim); }
.os-tote.md { font-size: 24px; padding: 4px 10px; }
.os-tote.sm { font-size: 17px; padding: 3px 10px; }
.os-tote.xl { font-size: 34px; }

/* ---- stat plaques ---- */
.os-stat {
  background: var(--plaque-bg);
  border: 1px solid rgba(214, 178, 99, 0.45);
  padding: 13px 16px 15px;
  display: flex; flex-direction: column; gap: 9px; align-items: flex-start;
  box-shadow: var(--plaque-shadow);
}
.os-stat.big { padding: 18px 22px 20px; }
.os-stat .label {
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.3em;
  color: var(--gilt); text-transform: uppercase;
}
.os-stat .sub { font-family: var(--font-hand); font-size: 11px; color: var(--parchment-faint); letter-spacing: 0.18em; text-transform: uppercase; }

/* ---- LCARS heritage cascade ---- */
.os-cascade { overflow: hidden; opacity: 0.5; }
.os-cascade .row { display: flex; gap: 18px; font-family: var(--font-mono); font-size: 9px; line-height: 1.7; white-space: nowrap; }
.os-cascade .row span:nth-child(4n + 1) { color: var(--gilt); }
.os-cascade .row span:nth-child(4n + 2) { color: var(--crimson-bright); }
.os-cascade .row span:nth-child(4n + 3) { color: var(--jade); }
.os-cascade .row span:nth-child(4n + 4) { color: var(--parchment-faint); }
.os-cascade .row span:nth-child(5n + 1) { animation: osCascade 2.3s steps(2, end) infinite; }
.os-cascade .row:nth-child(2) span:nth-child(5n + 1) { animation: none; }
.os-cascade .row:nth-child(2) span:nth-child(5n + 3) { animation: osCascade 2.7s steps(2, end) infinite; }

/* ============ SITE NAV ============ */
.os-nav {
  height: 72px;
  background: linear-gradient(180deg, #2a1e42 0%, #1a1329 55%, #0f0a1d 100%);
  border-bottom: 1px solid var(--gilt);
  display: flex; align-items: center; padding: 0 28px; gap: 30px;
  box-shadow: inset 0 1px 0 rgba(242, 213, 131, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.7), 0 6px 24px rgba(0, 0, 0, 0.6);
  position: relative; z-index: 95;
}
.os-logo { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.os-logo .mark {
  width: 36px; height: 36px; background: var(--plaque-bg); border: 1px solid var(--gilt);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--gilt-bright);
  box-shadow: var(--plaque-shadow), 0 0 10px rgba(214, 178, 99, 0.22);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.9), 0 0 10px rgba(242, 213, 131, 0.5);
}
.os-logo .word { display: flex; flex-direction: column; line-height: 1.25; }
.os-logo .word .presents {
  font-family: var(--font-display); font-size: 7.5px; letter-spacing: 0.5em;
  color: var(--gilt); text-transform: uppercase; opacity: 0.85;
}
.os-logo .word .name {
  font-family: var(--font-display); font-size: 16px; color: var(--gilt-bright); font-weight: 700;
  letter-spacing: 0.24em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.9), 0 0 12px rgba(214, 178, 99, 0.4);
}
.os-nav nav { display: flex; align-items: stretch; gap: 2px; margin-left: 10px; align-self: stretch; }
.os-nav nav a {
  font-family: var(--font-display); font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase;
  text-decoration: none; padding: 0 16px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--parchment-dim);
}
.os-nav nav a:hover { color: var(--parchment); }
.os-nav nav a .star { display: none; color: var(--crimson-bright); font-size: 8px; }
.os-nav nav a.active {
  color: var(--gilt-bright);
  background: linear-gradient(180deg, rgba(214, 178, 99, 0.14), transparent);
  box-shadow: inset 0 -2px 0 var(--gilt);
  text-shadow: 0 0 10px rgba(242, 213, 131, 0.5);
}
.os-nav nav a.active .star { display: inline; }
.os-nav .spacer { flex: 1; }
.os-live {
  display: flex; align-items: center; gap: 10px; padding: 7px 14px 8px;
  background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(214, 178, 99, 0.35);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.7);
}
.os-live .txt {
  font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--parchment-faint);
}
.os-live.is-live .txt { color: var(--crimson-bright); text-shadow: 0 0 10px rgba(232, 85, 69, 0.6); }
.os-nav-burger {
  display: none;
  width: 44px; height: 44px; background: var(--plaque-bg); border: 1px solid rgba(214, 178, 99, 0.5);
  color: var(--gilt-bright); place-items: center; cursor: pointer;
  font-family: var(--font-mono); font-size: 16px; box-shadow: var(--plaque-shadow); padding: 0;
}
.os-nav-sheet {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0; z-index: 94;
  background: linear-gradient(180deg, #1a1329 0%, #0f0a1d 100%);
  border-bottom: 1px solid var(--gilt);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  padding: 14px 16px 18px;
  flex-direction: column; gap: 8px;
}
.os-nav-sheet.open { display: flex; }
.os-nav-sheet a {
  font-family: var(--font-display); font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  font-weight: 700; text-decoration: none; color: var(--parchment-dim);
  padding: 13px 16px; min-height: 44px; display: flex; align-items: center; gap: 10px;
  background: var(--plaque-bg); border: 1px solid rgba(214, 178, 99, 0.3);
  box-shadow: inset 0 1px 0 rgba(242, 213, 131, 0.12);
}
.os-nav-sheet a.active { color: var(--gilt-bright); border-color: var(--gilt); }
.os-nav-sheet a.active::before { content: "✦"; color: var(--crimson-bright); font-size: 8px; }
.os-nav-sheet .os-pill { justify-content: center; height: 48px; }

/* ============ FOOTER ============ */
.os-footer {
  background: linear-gradient(180deg, #120d22 0%, #0b0816 100%);
  border-top: 1px solid var(--gilt);
  box-shadow: inset 0 1px 0 rgba(242, 213, 131, 0.25), inset 0 12px 40px rgba(0, 0, 0, 0.5);
  margin-top: 56px;
}
.os-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding: 46px 48px 36px; }
.os-footer .blurb { display: flex; flex-direction: column; gap: 16px; max-width: 360px; }
.os-footer .blurb p { font-family: var(--font-body); font-size: 16.5px; line-height: 1.55; color: var(--parchment-dim); margin: 0; font-style: italic; }
.os-footer .col { display: flex; flex-direction: column; gap: 14px; min-width: 150px; }
.os-footer .col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.os-footer .col a {
  font-family: var(--font-body); font-size: 15.5px; color: var(--parchment-dim); text-decoration: none;
  display: inline-flex; align-items: center; gap: 9px;
}
.os-footer .col a::before { content: "✦"; color: var(--crimson-bright); font-size: 8px; opacity: 0.8; }
.os-footer .col a:hover { color: var(--parchment); }
.os-footer .bottom {
  border-top: 1px solid rgba(214, 178, 99, 0.25); padding: 16px 48px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.os-footer .bottom span { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.2em; color: var(--parchment-faint); }

/* ============ PAGE HEAD (inner pages) ============ */
.os-pagehead { display: flex; align-items: flex-end; gap: 40px; padding: 46px 48px 30px; position: relative; z-index: 5; }
.os-pagehead .lead { flex: 1; max-width: 660px; }
.os-pagehead h1 {
  font-family: var(--font-display); font-size: 44px; font-weight: 700; color: var(--gilt-bright);
  letter-spacing: 0.12em; margin: 14px 0; line-height: 1.05; text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.9), 0 2px 0 var(--gilt-shadow), 0 3px 0 rgba(0, 0, 0, 0.7), 0 0 22px rgba(214, 178, 99, 0.4);
}
.os-pagehead .blurb { font-family: var(--font-body); font-size: 17.5px; line-height: 1.55; color: var(--parchment-dim); margin: 0; }
.os-pagehead .blurb code, .os-cmd-inline {
  font-family: var(--font-mono); font-size: 14px; color: var(--gilt-bright); font-weight: 600;
}
.os-pagehead .aside { display: grid; grid-template-columns: repeat(2, 180px); gap: 12px; }
.os-pagehead .aside.single { grid-template-columns: minmax(180px, auto); }

/* ---- section bar ---- */
.os-section-bar { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.os-section-bar::before { content: "✦"; color: var(--crimson-bright); font-size: 10px; opacity: 0.85; }
.os-section-bar .t { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.42em; text-transform: uppercase; font-weight: 600; color: var(--gilt); }
.os-section-bar::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(214, 178, 99, 0.45), rgba(214, 178, 99, 0.05)); }

/* ============ LEDGER (tables) ============ */
.os-ledger {
  border: 1px solid rgba(214, 178, 99, 0.4); overflow: hidden;
  background: linear-gradient(180deg, rgba(29, 23, 48, 0.75), rgba(13, 9, 24, 0.95));
  box-shadow: var(--plaque-shadow);
}
.os-lhead, .os-lrow {
  display: grid; grid-template-columns: var(--cols, 1fr);
  padding: 11px 20px; gap: 16px; align-items: center;
}
.os-lhead {
  border-bottom: 1px solid rgba(214, 178, 99, 0.35);
  background: linear-gradient(180deg, rgba(42, 30, 66, 0.8), rgba(20, 14, 36, 0.8));
  box-shadow: inset 0 1px 0 rgba(242, 213, 131, 0.18);
}
.os-lhead span {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gilt); font-weight: 600;
}
.os-lrow { padding: 12px 20px; border-bottom: 1px solid rgba(214, 178, 99, 0.14); }
.os-lrow:nth-child(odd) { background: rgba(214, 178, 99, 0.025); }
.os-lrow:last-child { border-bottom: none; }
.os-ledger.hl-first .os-lhead + .os-lrow { background: linear-gradient(90deg, rgba(214, 178, 99, 0.1), transparent); }
.os-lrow .num { font-family: var(--font-mono); font-size: 12px; color: var(--gilt-deep); }
.os-lrow .entry { font-family: var(--font-body); font-size: 17px; color: var(--parchment); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.7); min-width: 0; overflow-wrap: anywhere; }
.os-lrow .entry a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(214, 178, 99, 0.25); }
.os-lrow .entry a:hover { color: var(--gilt-bright); border-bottom-color: var(--gilt); }
.os-lrow .entry.strong { font-weight: 600; }
.os-lrow .mono { font-family: var(--font-mono); font-size: 12px; color: var(--parchment-dim); }
.os-lrow .sub { font-family: var(--font-mono); font-size: 9px; color: var(--parchment-faint); letter-spacing: 0.14em; text-transform: uppercase; }
.os-right { text-align: right; justify-self: end; }
.os-ledger .os-empty { padding: 26px 20px; font-family: var(--font-body); font-style: italic; font-size: 16px; color: var(--parchment-faint); }

/* first-timer flavor tag */
.os-tag {
  font-family: var(--font-hand); font-size: 10.5px; letter-spacing: 0.28em; color: var(--jade);
  border: 1px solid rgba(74, 159, 127, 0.4); padding: 2px 8px 3px; text-transform: uppercase;
  background: rgba(74, 159, 127, 0.08); white-space: nowrap;
}
.os-tag.crimson { color: var(--crimson-bright); border-color: rgba(232, 85, 69, 0.4); background: rgba(232, 85, 69, 0.08); }
.os-tag.gilt { color: var(--gilt-bright); border-color: rgba(242, 213, 131, 0.4); background: rgba(242, 213, 131, 0.08); }

/* ============ TOOLBAR (search + sort chips) ============ */
.os-toolbar { display: flex; align-items: center; gap: 14px; padding: 0 48px 24px; position: relative; z-index: 5; flex-wrap: wrap; }
.os-search {
  display: flex; align-items: center; gap: 12px; width: 340px; height: 42px;
  background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(214, 178, 99, 0.4); padding: 0 16px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.os-search .ico { color: var(--gilt); font-size: 13px; }
.os-search input {
  flex: 1; min-width: 0; background: transparent; border: none; outline: none;
  font-family: var(--font-mono); font-size: 12px; color: var(--parchment); letter-spacing: 0.06em;
}
.os-search input::placeholder { color: var(--parchment-faint); }
.os-chip {
  font-family: var(--font-display); font-size: 9.5px; letter-spacing: 0.26em; text-transform: uppercase;
  padding: 11px 16px 12px; cursor: pointer; font-weight: 700;
  color: var(--parchment-dim); background: transparent;
  border: 1px solid rgba(214, 178, 99, 0.3);
}
.os-chip:hover { color: var(--parchment); }
.os-chip.active {
  color: var(--gilt-bright); background: var(--plaque-bg);
  border-color: var(--gilt); box-shadow: var(--plaque-shadow);
  text-shadow: 0 0 10px rgba(242, 213, 131, 0.4);
}

/* ============ PAGINATION ============ */
.os-pages { display: flex; align-items: center; gap: 8px; padding: 20px 48px 0; justify-content: flex-end; position: relative; z-index: 5; flex-wrap: wrap; }
.os-pages .count { margin-right: auto; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--parchment-faint); text-transform: uppercase; }
.os-pages button {
  min-width: 34px; height: 34px; display: inline-grid; place-items: center; padding: 0 8px;
  font-family: var(--font-display); font-size: 11.5px; font-weight: 700; cursor: pointer;
  color: var(--parchment-dim); background: var(--plaque-bg);
  border: 1px solid rgba(214, 178, 99, 0.35);
  box-shadow: inset 0 1px 0 rgba(242, 213, 131, 0.15), 0 2px 8px rgba(0, 0, 0, 0.4);
}
.os-pages button:disabled { opacity: 0.35; cursor: default; }
.os-pages button.current {
  color: #241505;
  background: linear-gradient(180deg, var(--gilt-bright), var(--gilt) 60%, var(--gilt-deep));
  border-color: var(--gilt-bright);
  box-shadow: inset 0 1px 0 rgba(255, 246, 214, 0.8), 0 2px 8px rgba(0, 0, 0, 0.5);
}
.os-pages .gap { font-family: var(--font-display); color: var(--parchment-faint); padding: 0 2px; }

/* ============ COMMAND CHIPS ============ */
.os-cmd {
  display: flex; flex-direction: row; gap: 16px; align-items: center;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(31, 22, 54, 0.7), rgba(16, 10, 31, 0.9));
  border: 1px solid rgba(214, 178, 99, 0.28);
  box-shadow: inset 0 1px 0 rgba(242, 213, 131, 0.12), 0 2px 8px rgba(0, 0, 0, 0.4);
}
.os-cmd-code {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; color: var(--gilt-bright);
  background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(214, 178, 99, 0.45);
  padding: 5px 11px; cursor: copy; white-space: nowrap; flex-shrink: 0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
  text-shadow: 0 0 8px rgba(242, 213, 131, 0.45);
}
.os-cmd-code .copy-ico { color: var(--gilt-deep); font-size: 10px; margin-left: 6px; }
.os-cmd-code.copied { color: var(--jade); border-color: rgba(74, 159, 127, 0.6); text-shadow: 0 0 8px rgba(74, 159, 127, 0.5); }
.os-cmd .desc { font-family: var(--font-body); font-size: 15.5px; color: var(--parchment-dim); line-height: 1.45; }

/* menu page masonry */
.os-menu-cols { column-count: 2; column-gap: 24px; padding: 6px 48px 0; position: relative; z-index: 5; }
.os-menu-group {
  break-inside: avoid; margin-bottom: 24px; background: var(--plaque-bg);
  border: 1px solid rgba(214, 178, 99, 0.4); box-shadow: var(--plaque-shadow); overflow: hidden;
}
.os-menu-group .ghead {
  display: flex; align-items: center; gap: 11px; padding: 14px 20px;
  border-bottom: 1px solid rgba(214, 178, 99, 0.3);
  background: linear-gradient(180deg, rgba(42, 30, 66, 0.7), transparent);
  box-shadow: inset 0 1px 0 rgba(242, 213, 131, 0.18);
}
.os-menu-group .ghead .t {
  font-family: var(--font-display); font-size: 10.5px; letter-spacing: 0.42em; text-transform: uppercase;
  font-weight: 600; color: var(--parchment);
}
.os-menu-group .ghead .n { margin-left: auto; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.2em; color: var(--parchment-faint); }
.os-menu-group .glist { display: flex; flex-direction: column; gap: 10px; padding: 16px; }

/* ============ RATING LAMPS ============ */
.os-rating { display: inline-flex; align-items: center; gap: 6px; }
.os-rating i {
  width: 13px; height: 13px; border-radius: 50%; position: relative; overflow: hidden;
  background: rgba(214, 178, 99, 0.12);
  box-shadow: inset 0 0 0 1px rgba(214, 178, 99, 0.35);
}
.os-rating i.full {
  background: radial-gradient(circle at 35% 30%, #fff6d6, var(--gilt-bright) 45%, var(--gilt-deep) 100%);
  box-shadow: 0 0 7px rgba(242, 213, 131, 0.85), inset 0 0 0 1px rgba(242, 213, 131, 0.9);
}
.os-rating i.half::before {
  content: ""; position: absolute; inset: 0; width: 50%;
  background: radial-gradient(circle at 70% 30%, #fff6d6, var(--gilt-bright) 45%, var(--gilt-deep) 100%);
  box-shadow: 0 0 7px rgba(242, 213, 131, 0.85);
}
.os-rating-val { font-family: var(--font-mono); font-size: 12px; color: var(--gilt-bright); font-weight: 600; text-shadow: 0 0 8px rgba(242, 213, 131, 0.4); }

/* ============ BAR CHARTS (dice) ============ */
.os-chart {
  background: var(--plaque-bg); border: 1px solid rgba(214, 178, 99, 0.45); box-shadow: var(--plaque-shadow);
  padding: 24px 26px 20px; position: relative;
}
.os-chart .chead { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.os-chart .bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; }
.os-chart .barcol { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.os-chart .barcol .v { font-family: var(--font-mono); font-size: 9.5px; color: var(--parchment-faint); }
.os-chart .barcol .bar {
  width: 100%; min-height: 3px;
  --c: var(--gilt);
  background: linear-gradient(180deg, var(--c), rgba(0, 0, 0, 0.4));
  border: 1px solid var(--c); border-bottom: none;
  box-shadow: 0 0 12px color-mix(in srgb, var(--c) 33%, transparent), inset 0 1px 0 rgba(255, 246, 214, 0.4);
}
.os-chart .barcol .f { font-family: var(--font-display); font-size: 11px; color: var(--parchment-dim); font-weight: 700; }
.os-chart.crimson .barcol .bar { --c: var(--crimson-bright); }

/* dice session select */
.os-select {
  display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 18px;
  background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(214, 178, 99, 0.45);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.7);
}
.os-select label { font-family: var(--font-display); font-size: 8.5px; letter-spacing: 0.42em; text-transform: uppercase; font-weight: 600; color: var(--gilt); }
.os-select select {
  background: transparent; border: none; outline: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--parchment); font-weight: 600;
}
.os-select select option { background: var(--ink-2); color: var(--parchment); }

/* ============ HOMEPAGE ============ */
.os-hero {
  position: relative; margin: 30px 48px 40px; padding: 54px 40px 46px;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(214, 178, 99, 0.16), transparent 60%),
    linear-gradient(180deg, #2a1e42 0%, #1a1329 50%, #0f0a1d 100%);
  border: 1px solid var(--gilt);
  box-shadow: var(--plaque-shadow), 0 0 30px rgba(214, 178, 99, 0.22);
  z-index: 5;
}
.os-hero .center { text-align: center; }
.os-wordmark {
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.3em; font-size: 96px;
  line-height: 0.95; color: var(--gilt-bright); text-align: center; padding-left: 0.3em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.9), 0 3px 0 var(--gilt-shadow), 0 4px 0 rgba(0, 0, 0, 0.7), 0 0 34px rgba(214, 178, 99, 0.45);
}
.os-wordmark .cut {
  color: var(--crimson-bright);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.9), 0 3px 0 var(--crimson-deep), 0 0 26px rgba(232, 85, 69, 0.55);
}
.os-hero .tagline { font-family: var(--font-hand); font-size: 14px; letter-spacing: 0.42em; color: var(--parchment-dim); text-transform: uppercase; }
.os-hero .lead {
  font-family: var(--font-body); font-size: 19px; font-style: italic; line-height: 1.6;
  color: var(--parchment-dim); max-width: 560px; margin: 26px auto 30px; text-align: center;
}
.os-hero .ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.os-status-row { padding: 0 48px 32px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; position: relative; z-index: 5; }

.os-hotseat {
  margin: 0 48px 56px; position: relative; z-index: 5;
  background: var(--plaque-bg); border: 1px solid var(--gilt);
  box-shadow: var(--plaque-shadow), 0 0 26px rgba(214, 178, 99, 0.2);
}
.os-hotseat .inner { display: flex; align-items: center; gap: 44px; padding: 34px 44px; }
.os-hotseat .who { display: flex; flex-direction: column; gap: 11px; flex: 1; min-width: 0; }
.os-hotseat .who .k { display: inline-flex; align-items: center; gap: 10px; }
.os-hotseat .name {
  font-family: var(--font-display); font-size: 46px; font-weight: 700; color: var(--parchment);
  letter-spacing: 0.04em; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.9), 0 0 18px rgba(242, 213, 131, 0.4);
}
.os-hotseat .meta { font-family: var(--font-mono); font-size: 11px; color: var(--parchment-faint); letter-spacing: 0.22em; text-transform: uppercase; }
.os-hotseat .totes { display: flex; gap: 28px; align-items: center; }
.os-hotseat .totes .cell { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.os-hotseat .totes .cell .k { font-family: var(--font-display); font-size: 8.5px; letter-spacing: 0.42em; text-transform: uppercase; font-weight: 600; color: var(--gilt); }

.os-home-tables { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; padding: 0 48px; position: relative; z-index: 5; }

/* generic content wrap for pages */
.os-content { padding: 0 48px; position: relative; z-index: 5; }
.os-grid-8 { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; padding: 0 48px 28px; position: relative; z-index: 5; }
.os-grid-charts { display: grid; grid-template-columns: 1fr 1.6fr; gap: 24px; padding: 0 48px 40px; position: relative; z-index: 5; }

/* ============ PROFILE (/u/:username) ============ */
.os-prof-crumb { padding: 24px 48px 0; position: relative; z-index: 5; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; }
.os-prof-crumb a { color: var(--gilt); text-decoration: none; }
.os-prof-crumb .sep { margin: 0 10px; color: var(--crimson-bright); }
.os-prof-crumb .here { color: var(--parchment-dim); }

.os-prof-hero {
  margin: 30px 48px 0; position: relative; z-index: 5;
  border: 1px solid var(--gilt);
  background: radial-gradient(ellipse 70% 120% at 25% 0%, rgba(214, 178, 99, 0.12), transparent), var(--plaque-bg);
  box-shadow: var(--plaque-shadow), 0 0 24px rgba(214, 178, 99, 0.2);
}
.os-prof-hero .who { display: flex; gap: 30px; padding: 36px 38px 30px; align-items: center; }
.os-prof-hero .idcol { display: flex; flex-direction: column; gap: 12px; flex: 1; min-width: 0; }
.os-prof-hero .name {
  font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--gilt-bright);
  letter-spacing: 0.05em; line-height: 1; overflow-wrap: anywhere;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.9), 0 2px 0 var(--gilt-shadow), 0 0 24px rgba(242, 213, 131, 0.4);
}
.os-prof-hero .meta { display: flex; gap: 22px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--parchment-faint); text-transform: uppercase; }
.os-prof-hero .meta .jade { color: var(--jade); }
.os-prof-hero .meta .crimson { color: var(--crimson-bright); }

.os-avatar { position: relative; flex-shrink: 0; }
.os-avatar .face {
  width: 108px; height: 108px;
  background: radial-gradient(ellipse at top, rgba(122, 91, 211, 0.16), transparent 60%), linear-gradient(180deg, #1f1636 0%, #100a1f 60%, #0a0615 100%);
  border: 1px solid rgba(214, 178, 99, 0.5); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 37px; color: var(--gilt-bright);
  box-shadow: var(--plaque-shadow), 0 0 12px rgba(214, 178, 99, 0.2);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.9), 0 2px 0 var(--gilt-shadow), 0 0 16px rgba(242, 213, 131, 0.5);
}
.os-avatar .flag {
  position: absolute; right: -8px; bottom: -8px; padding: 3px 9px 4px;
  background: var(--plaque-bg-hot); border: 1px solid var(--crimson); color: #ffe3d8;
  font-family: var(--font-display); font-size: 7.5px; font-weight: 700; letter-spacing: 0.3em;
  box-shadow: var(--plaque-shadow-hot); text-transform: uppercase;
  text-shadow: 0 0 8px rgba(232, 85, 69, 0.6); white-space: nowrap;
}

.os-prof-stats {
  display: grid; grid-template-columns: repeat(var(--prof-cols, 4), 1fr);
  border-top: 1px solid rgba(214, 178, 99, 0.3);
  background: linear-gradient(180deg, rgba(13, 9, 24, 0.6), rgba(13, 9, 24, 0.9));
}
.os-prof-stats .cell { padding: 18px 24px 20px; border-right: 1px solid rgba(214, 178, 99, 0.18); display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.os-prof-stats .cell:last-child { border-right: none; }
.os-prof-stats .cell .label { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.28em; color: var(--gilt); text-transform: uppercase; }

/* ============ MOBILE ≤ 640px ============ */
@media (max-width: 900px) {
  .os-pagehead { flex-direction: column; align-items: flex-start; gap: 24px; }
  .os-grid-8 { grid-template-columns: repeat(4, 1fr); }
  .os-grid-charts { grid-template-columns: 1fr; }
  .os-home-tables { grid-template-columns: 1fr; }
  .os-menu-cols { column-count: 1; }
}

@media (max-width: 640px) {
  .os-nav { height: 60px; padding: 0 16px; gap: 12px; }
  .os-nav nav { display: none; }
  .os-nav .os-live .txt { font-size: 8.5px; }
  .os-nav .os-pill.nav-twitch { display: none; }
  .os-nav-burger { display: grid; }

  .os-hero { margin: 20px 16px 22px; padding: 34px 18px 28px; }
  .os-wordmark { font-size: 44px; }
  .os-hero .tagline { font-size: 10px; letter-spacing: 0.36em; }
  .os-hero .lead { font-size: 15.5px; margin: 18px 4px 20px; }
  .os-hero .ctas { flex-direction: column; }
  .os-hero .ctas .os-pill { justify-content: center; height: 48px; width: 100%; }
  /* keep lamp animation cost down: hero + hotseat keep lamps; hide elsewhere */
  .os-lamps { padding: 0 6px; }
  .os-lamps i:nth-child(n + 15) { display: none; }

  .os-status-row { padding: 0 16px 20px; justify-content: flex-start; gap: 6px; }
  .os-hotseat { margin: 0 16px 28px; }
  .os-hotseat .inner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 16px 18px; }
  .os-hotseat .name { font-size: 20px; white-space: normal; }
  .os-hotseat .totes { gap: 16px; }

  .os-home-tables { padding: 0 16px; gap: 24px; }
  .os-content { padding: 0 16px; }
  .os-pagehead { padding: 28px 16px 16px; }
  .os-pagehead h1 { font-size: 26px; }
  .os-pagehead .blurb { font-size: 15.5px; }
  .os-pagehead .aside { grid-template-columns: 1fr 1fr; width: 100%; }
  .os-toolbar { padding: 0 16px 14px; }
  .os-search { width: 100%; }
  .os-pages { padding: 14px 16px 0; }
  .os-grid-8 { grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 16px 18px; }
  .os-grid-charts { padding: 0 16px 26px; gap: 14px; }
  .os-menu-cols { padding: 0 16px; }

  /* ledgers → plaque row-cards */
  .os-lhead { display: none; }
  .os-lrow {
    display: flex; align-items: center; gap: 14px; padding: 13px 16px; min-height: 44px;
    background: linear-gradient(180deg, rgba(31, 22, 54, 0.75), rgba(16, 10, 31, 0.92)) !important;
    border: 1px solid rgba(214, 178, 99, 0.3); border-bottom: 1px solid rgba(214, 178, 99, 0.3);
    box-shadow: inset 0 1px 0 rgba(242, 213, 131, 0.14), 0 2px 8px rgba(0, 0, 0, 0.45);
    margin-bottom: 8px;
  }
  .os-ledger { border: none; background: transparent; box-shadow: none; overflow: visible; }
  .os-lrow .entry { font-size: 16px; font-weight: 600; flex: 1; }
  .os-lrow .num { min-width: 28px; }
  .os-right { text-align: right; }

  .os-footer .cols { grid-template-columns: 1fr; gap: 28px; padding: 28px 20px 22px; }
  .os-footer .bottom { padding: 14px 20px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .os-cascade .row:nth-child(2) { display: none; }

  .os-cmd { flex-direction: column; gap: 9px; align-items: flex-start; }
  .os-hotseat .inner .totes .cell .k { font-size: 8px; }

  .os-prof-crumb { padding: 16px 16px 0; }
  .os-prof-hero { margin: 20px 16px 0; }
  .os-prof-hero .who { flex-direction: row; gap: 16px; padding: 22px 18px 20px; }
  .os-prof-hero .name { font-size: 20px; }
  .os-avatar .face { width: 70px; height: 70px; font-size: 24px; }
  .os-prof-stats { grid-template-columns: 1fr 1fr; }
  .os-prof-stats .cell { padding: 13px 16px 15px; border-bottom: 1px solid rgba(214, 178, 99, 0.18); }
}
