/* ARRRGUE — the treasure-map direction: aged parchment, deep navy ink,
   one weathered rust-red, treasure gold, big serif numerals, wax-seal stamps.
   No gradients, no glass. Argue like ye mean it. */

:root {
  --paper: #ECE1C7;      /* aged parchment */
  --paper-2: #F7EFD8;    /* lighter parchment (cards) */
  --well: #DFD1AF;       /* sunk/inset panels */
  --ink: #1E2A31;        /* deep navy-black — nautical ink */
  --ink-soft: #6C6047;   /* faded sepia */
  --red: #B23A1E;        /* weathered rust-red */
  --red-deep: #8C2B13;
  --green: #1C6B50;      /* bottle green */
  --gold: #B98A1F;       /* treasure gold */
  --rule: 2px solid var(--ink);
  --shadow: 4px 4px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --font-display: 'Archivo Black', 'Arial Black', sans-serif;
  --font-body: 'Space Grotesk', 'Helvetica Neue', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { height: 100%; overflow-x: clip; }

body {
  margin: 0;
  min-height: 100%;
  /* Stamp entrances scale content past the viewport edge for a few frames;
     without clipping, mobile browsers grow the layout viewport and unpin
     position:fixed elements (the host bar). */
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(30, 42, 49, 0.06) 1px, transparent 1px);
  background-size: 14px 14px;
}

#app { max-width: 700px; margin: 0 auto; padding: 14px 16px 56px; }

::selection { background: var(--red); color: var(--paper); }

h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5.5vw, 2.1rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 4px 0 6px;
  text-wrap: balance;
}

p { margin: 8px 0; }
b { font-weight: 700; }

i.serif, .serif { font-family: var(--font-serif); font-style: italic; font-size: 1.12em; }

.hint { color: var(--ink-soft); font-size: 0.9rem; }
.hint.center, .center { text-align: center; }
.lede { font-size: 1.05rem; max-width: 46ch; }
.count { color: var(--ink-soft); font-size: 0.85rem; }
.footnote {
  text-align: center; color: var(--ink-soft); font-size: 0.78rem;
  letter-spacing: 0.18em; text-transform: uppercase; margin-top: 18px;
}
.footnote + .footnote { margin-top: 6px; }
.footnote a { color: var(--ink-soft); text-underline-offset: 2px; }
.footnote a:hover { color: var(--red-deep); }

/* AdSense unit: give it breathing room and a min-height so the layout doesn't
   jump when the ad fills in. Renders only when ads are configured. */
.adslot { display: block; margin: 18px 0 4px; min-height: 90px; }

.screen { display: flex; flex-direction: column; gap: 14px; }
.screen.center-stage { text-align: center; align-items: center; }
.screen.center-stage > * { width: 100%; }

.row { display: flex; align-items: center; }
.row.space { justify-content: space-between; }
.row.gap { gap: 8px; flex-wrap: wrap; }
.row.wrap { flex-wrap: wrap; gap: 18px; }

/* --- Masthead / landing ------------------------------------------------- */

.masthead { text-align: center; padding-top: 7vh; }

.logo {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 16vw, 5.2rem);
  letter-spacing: -0.03em;
  margin: 0;
  text-transform: uppercase;
}
.logo i, .wordmark i { color: var(--red); font-style: normal; }

.tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 5vw, 1.6rem);
  margin: 2px 0 10px;
}

.standfirst {
  max-width: 44ch;
  margin: 0 auto 12px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* --- Header --------------------------------------------------------------- */

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: var(--rule);
  padding-bottom: 8px;
}
.wordmark {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.top-right { display: flex; align-items: center; gap: 8px; }

.codechip {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  border: var(--rule);
  background: var(--paper-2);
  padding: 3px 8px 2px;
}

.clock {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.05rem;
  background: var(--ink);
  color: var(--paper);
  padding: 4px 9px;
}
.clock.urgent { background: var(--red); animation: tick 1s steps(2, start) infinite; }
@keyframes tick { 50% { opacity: 0.6; } }

.kicker, .kicker2 {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.kicker2 { font-size: 0.85rem; }
.kicker:empty { display: none; }

/* --- Cards & rules --------------------------------------------------------- */

.card {
  background: var(--paper-2);
  border: var(--rule);
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
}
.card.sealed { background: var(--well); }

.rule-head {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 10px;
  font-weight: 700;
}
.row.space .rule-head { margin-bottom: 0; }

.specline { margin: 6px 0; font-size: 0.95rem; }
.subject { font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; margin: 6px 0 12px; }

/* --- Ticket (room code) ----------------------------------------------------- */

.ticket {
  display: flex;
  align-items: stretch;
  border: var(--rule);
  background: var(--paper-2);
  box-shadow: var(--shadow);
}
.ticket-left {
  flex: 1;
  padding: 14px 16px;
  border-right: 2px dashed var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.ticket-label { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.ticket-url { font-weight: 700; font-size: 1.05rem; word-break: break-all; }
.ticket-code {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 9vw, 3rem);
  letter-spacing: 0.1em;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  color: var(--red);
}

/* --- Inputs & buttons -------------------------------------------------------- */

input, textarea, select {
  width: 100%;
  padding: 12px 13px;
  margin: 6px 0;
  border: var(--rule);
  border-radius: 0;
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
}
input:focus, textarea:focus, select:focus, button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
input::placeholder, textarea::placeholder { color: #A99C86; }
#join-code {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.4em;
  text-align: center;
  font-size: 1.4rem;
}
select { width: auto; min-width: 130px; }

button {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  border: var(--rule);
  border-radius: 0;
  background: var(--paper-2);
  color: var(--ink);
  padding: 10px 14px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.05s ease, box-shadow 0.05s ease;
}
button:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
button:disabled { opacity: 0.4; cursor: default; }

.primary { background: var(--red); color: var(--paper); border-color: var(--ink); }
.primary:active:not(:disabled) { background: var(--red-deep); }
.ink { background: var(--ink); color: var(--paper); }
.big { width: 100%; padding: 16px; font-size: 1.1rem; letter-spacing: 0.02em; }
.sm { padding: 8px 12px; font-size: 0.88rem; box-shadow: 2px 2px 0 var(--ink); }

/* --- Chips (players, items) --------------------------------------------------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: var(--rule);
  background: var(--paper-2);
  padding: 6px 12px;
  font-size: 0.92rem;
  font-weight: 500;
}
.chip:nth-child(odd) { transform: rotate(-0.7deg); }
.chip:nth-child(even) { transform: rotate(0.6deg); }
.chip.off { opacity: 0.45; border-style: dashed; }
.chip.done { border-color: var(--green); color: var(--green); }
.chip i { font-style: normal; font-size: 0.8em; }
.chip .kick {
  border: none; box-shadow: none; background: none; padding: 0 2px;
  font-size: 1rem; color: var(--ink-soft); line-height: 1;
}

/* --- Mode menu ------------------------------------------------------------------ */

.modemenu { display: flex; flex-direction: column; }
.mode {
  display: flex;
  gap: 12px;
  align-items: baseline;
  text-align: left;
  padding: 11px 10px;
  border: none;
  border-bottom: 1px solid rgba(28, 23, 18, 0.18);
  background: none;
  box-shadow: none;
  font-weight: 400;
}
.mode:last-child { border-bottom: none; }
.mode:active { transform: none; }
.mode.sel { background: var(--ink); color: var(--paper); }
.mode-n {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--red);
  min-width: 3.2em;
}
.mode.sel .mode-n { color: var(--paper); }
.mode-body { display: flex; flex-direction: column; gap: 2px; }
.mode-name { font-weight: 700; }
.mode-name em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 0.95em;
  color: var(--ink-soft);
  margin-left: 6px;
}
.mode.sel .mode-name em { color: rgba(246, 241, 231, 0.7); }
.mode-desc { font-size: 0.83rem; color: var(--ink-soft); line-height: 1.35; }
.mode.sel .mode-desc { color: rgba(246, 241, 231, 0.8); }

.seg { display: inline-flex; border: var(--rule); box-shadow: var(--shadow-sm); }
.seg button { border: none; box-shadow: none; border-right: 1px solid var(--ink); background: var(--paper-2); }
.seg button:last-child { border-right: none; }
.seg button.sel { background: var(--red); color: var(--paper); }
.seg button:active { transform: none; }

/* --- Modals -------------------------------------------------------------------- */

.overlay {
  position: fixed; inset: 0;
  background: rgba(28, 23, 18, 0.55);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 20;
}
.sheet {
  background: var(--paper);
  border-top: var(--rule);
  padding: 16px;
  width: 100%;
  max-width: 700px;
  max-height: 84vh;
  overflow-y: auto;
}
.close { border: none; box-shadow: none; background: none; font-size: 1.7rem; padding: 0 6px; }

.catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.cat {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 12px; text-align: left; font-weight: 400;
}
.cat.sel { background: var(--ink); color: var(--paper); }
.cat-emoji { font-size: 1.4rem; }
.cat-name { font-weight: 700; font-size: 0.92rem; }
.cat-count { font-size: 0.75rem; color: var(--ink-soft); }
.cat.sel .cat-count { color: rgba(246, 241, 231, 0.7); }

/* --- Rank lists ------------------------------------------------------------------- */

.ranklist { display: flex; flex-direction: column; gap: 7px; }
.rankrow {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper-2);
  border: var(--rule);
  padding: 9px 12px;
  text-align: left;
  font-weight: 400;
  box-shadow: none;
  width: 100%;
}
.rankrow:active { transform: none; }
.rankrow.below { opacity: 0.55; border-style: dashed; box-shadow: none; }
.rankrow.locked { background: var(--well); }
.rankrow.open { border-style: dashed; background: transparent; cursor: pointer; }
.rankrow.open.marked, .rankrow.open:active { border-style: solid; border-color: var(--red); }
button.rankrow.open { box-shadow: none; }
.rankrow .item { flex: 1; font-weight: 500; font-size: 1rem; min-width: 0; }
.rankrow .note { font-size: 0.76rem; color: var(--ink-soft); text-align: right; white-space: nowrap; }

.final .rankrow { padding: 13px 14px; box-shadow: var(--shadow-sm); }
.final .rankrow .item { font-size: 1.08rem; }

.num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1;
  min-width: 1.4em;
  text-align: center;
}
.num.hot { color: var(--red); }
.final .num { font-size: 1.9rem; }

.arrows { display: flex; gap: 6px; }
.arrows button { padding: 5px 10px; font-size: 0.95rem; box-shadow: 2px 2px 0 var(--ink); }
.arrows .del { color: var(--red); }

.cutline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin: 3px 0;
}
.cutline::before, .cutline::after { content: ''; flex: 1; border-top: 2px dashed var(--red); }

.slotline {
  border: 2px dashed var(--ink-soft);
  color: var(--ink-soft);
  text-align: center;
  padding: 11px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

/* --- Item pools --------------------------------------------------------------------- */

.pool { display: flex; flex-wrap: wrap; gap: 8px; }
.pool.dim { opacity: 0.85; }
.poolchip {
  border: var(--rule);
  background: var(--paper-2);
  padding: 9px 13px;
  font-size: 0.94rem;
  font-weight: 500;
  box-shadow: 2px 2px 0 var(--ink);
}
.big-pool .poolchip { padding: 12px 15px; font-size: 1rem; }
.poolchip.used { opacity: 0.3; text-decoration: line-through; box-shadow: none; }
.poolchip.static { box-shadow: none; cursor: default; }
.poolchip.marked { background: var(--red); color: var(--paper); }

/* --- Stamps & staged moments ----------------------------------------------------------- */

.stamp { animation: stamp 0.38s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes stamp {
  0% { opacity: 0; transform: scale(1.35) rotate(-3deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.stampmark {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.22em;
  color: var(--red);
  border: 3px solid var(--red);
  padding: 4px 14px 2px;
  transform: rotate(-6deg);
  text-transform: uppercase;
}
.stampmark.sm { font-size: 0.8rem; border-width: 2px; padding: 2px 8px 1px; transform: rotate(-4deg); }

.lockedcard {
  border: var(--rule);
  background: var(--paper-2);
  box-shadow: var(--shadow);
  padding: 26px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.marquee {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2rem, 9vw, 3.2rem);
  line-height: 1.1;
  text-align: center;
  border: var(--rule);
  background: var(--paper-2);
  box-shadow: var(--shadow);
  padding: 28px 20px;
  transform: rotate(-1deg);
  animation: stamp 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
  text-wrap: balance;
}
.marquee.sm { font-size: clamp(1.5rem, 7vw, 2.3rem); padding: 20px 16px; }

.secretcard {
  border: 2px dashed var(--ink);
  padding: 10px 14px;
  font-size: 0.92rem;
  background: var(--well);
}

.doom {
  border: 3px solid var(--red);
  background: var(--paper-2);
  box-shadow: var(--shadow);
  padding: 24px 18px;
  transform: rotate(-1.5deg);
  margin: 8px 0;
}
.doom.gold { border-color: var(--gold); }
.doom-label {
  font-size: 0.75rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.doom.gold .doom-label { color: var(--gold); }
.doom-item {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.8rem, 8vw, 2.8rem);
  line-height: 1.05;
}
.doom-sub { color: var(--ink-soft); font-size: 0.9rem; margin-top: 6px; }

.urgent-head { color: var(--red); }

/* --- Summit ------------------------------------------------------------------------------ */

.sources { display: flex; gap: 10px; flex-wrap: wrap; }
.source {
  flex: 1;
  min-width: 130px;
  border: 1px solid var(--ink);
  background: var(--paper-2);
  padding: 8px 10px;
}
.source-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(28, 23, 18, 0.2);
  padding-bottom: 4px;
  margin-bottom: 4px;
}
.source ol { margin: 0; padding-left: 1.3em; font-size: 0.88rem; }
.source li { margin: 2px 0; }

/* --- Big Spender ---------------------------------------------------------------------------- */

.pursebar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  font-size: 0.95rem;
}
.purse {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--paper);
  margin-right: 6px;
}

.spendlist { display: flex; flex-direction: column; gap: 6px; }
.spendrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: var(--rule);
  background: var(--paper-2);
  padding: 7px 10px 7px 13px;
}
.spendrow.active { border-color: var(--red); box-shadow: 3px 3px 0 var(--red); }
.spendrow .item { font-weight: 500; }
.stepper { display: flex; align-items: center; gap: 9px; }
.stepper .pts {
  min-width: 2.2ch;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--red);
}
.stepper button { width: 40px; height: 40px; padding: 0; font-size: 1.25rem; box-shadow: 2px 2px 0 var(--ink); }

/* --- Face-Off ----------------------------------------------------------------------------------- */

.versus { display: flex; flex-direction: column; gap: 8px; width: 100%; margin: 8px 0; }
.fighter {
  padding: 24px 16px;
  font-size: 1.15rem;
  background: var(--paper-2);
  border: var(--rule);
  box-shadow: var(--shadow);
  text-align: center;
  font-weight: 400;
}
.fighter b { font-weight: 700; }
.fighter.marked { background: var(--red); color: var(--paper); }
.fighter.won { border-color: var(--green); box-shadow: 4px 4px 0 var(--green); }
.fighter.lost { opacity: 0.4; box-shadow: none; }
.fighter .votes { display: block; margin-top: 6px; font-size: 0.85rem; color: inherit; opacity: 0.7; }
.fighter.pick:disabled { opacity: 1; cursor: default; }
.vs {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--red);
  text-align: center;
}

/* --- Reveal & results ------------------------------------------------------------------------------ */

.priorlist { display: flex; flex-direction: column; gap: 5px; border-top: 1px solid rgba(28,23,18,0.2); padding-top: 10px; }
.prior { font-size: 0.85rem; color: var(--ink-soft); }

.verdict { font-size: clamp(1.7rem, 7vw, 2.6rem); }

.meldboard { display: flex; flex-direction: column; gap: 8px; }
.meldrow { display: flex; align-items: center; gap: 10px; }
.meldrow .item { min-width: 7em; font-weight: 500; font-size: 0.92rem; }
.meldrow.best .item { color: var(--red); font-weight: 700; }
.meldbar {
  flex: 1;
  height: 14px;
  border: 1px solid var(--ink);
  background: var(--paper-2);
  overflow: hidden;
}
.meldbar span { display: block; height: 100%; background: var(--red); }
.meldrow b { font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }

/* --- Post-game feedback (thumbs up/down) --------------------------------------------------------------- */

.feedback .fbrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(28, 23, 18, 0.18);
}
.feedback .fbrow:first-of-type { border-top: none; }
.fb-label { font-weight: 700; font-size: 0.95rem; }
.fb-btns { display: inline-flex; gap: 8px; }
.fb {
  padding: 6px 12px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 2px 2px 0 var(--ink);
}
.fb b { font-variant-numeric: tabular-nums; font-weight: 700; }
.fb.sel { background: var(--ink); color: var(--paper); }
.fb.sel[data-verdict="up"] { background: var(--green); border-color: var(--ink); }
.fb.sel[data-verdict="down"] { background: var(--red); border-color: var(--ink); }

/* --- Between-games interstitial ------------------------------------------------------------------------ */

.overlay.interstitial { align-items: center; z-index: 40; }
.interstitial-sheet { border: var(--rule); max-width: 460px; margin: 0 12px; }
.interstitial-sheet .adslot { margin: 12px 0; }

/* --- Sign-in & history ----------------------------------------------------------------------------------- */

.signin #gsi-btn { margin-top: 8px; }
.signin .row.gap { margin-top: 8px; }
.histrow { padding: 10px 0; border-top: 1px solid rgba(28, 23, 18, 0.18); }
.histrow:first-of-type { border-top: none; }
.histrow .specline { margin: 4px 0 0; }

/* --- Host controls bar -------------------------------------------------------------------------------- */

.hostbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 700px;
  z-index: 30;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
}
.hb-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.hb-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}
.hb-note { font-size: 0.85rem; color: var(--paper); opacity: 0.75; }
.hostbar button {
  background: var(--red);
  color: var(--paper);
  border: 2px solid var(--paper);
  box-shadow: none;
  padding: 9px 14px;
  font-size: 0.92rem;
}
.hostbar button:active { transform: translate(1px, 1px); background: var(--red-deep); }
body.with-hostbar #app { padding-bottom: 130px; }

.ghost {
  display: block;
  width: 100%;
  border: none;
  box-shadow: none;
  background: none;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 8px 2px 2px;
}
.ghost:active { transform: none; color: var(--ink); }

.hoststar { font-style: normal; color: var(--red); margin-right: 2px; }

/* --- Toast & banner ----------------------------------------------------------------------------------- */

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  padding: 12px 20px;
  border: 2px solid var(--paper);
  box-shadow: var(--shadow-sm);
  z-index: 50;
  max-width: 90vw;
  text-align: center;
}
.banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  text-align: center;
  padding: 6px;
  border-bottom: var(--rule);
}
.hidden { display: none; }

@media (prefers-reduced-motion: reduce) {
  .stamp, .marquee { animation: none; }
  .clock.urgent { animation: none; }
}
