/* Mayfair Day — The Shepherd Mayfair livery */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,500;0,600;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --navy: #010612;
  --navy-1: #070d1d;
  --navy-2: #0d1528;
  --line: rgba(255, 234, 214, .14);
  --ivory: #ffead6;
  --ivory-dim: rgba(255, 234, 214, .62);
  --ivory-faint: rgba(255, 234, 214, .38);
  --brass: #a68a64;
  --brass-lit: #d9bd8d;
  --verified: #7dc9a3;
  --rejected: #d4796a;
  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --r: 14px;
  --shadow: 0 24px 60px rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  min-height: 100dvh;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(166, 138, 100, .18), transparent 60%),
    radial-gradient(800px 500px at 100% 100%, rgba(166, 138, 100, .08), transparent 60%),
    var(--navy);
  color: var(--ivory);
  font-family: var(--body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fine brass filigree behind everything */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(166,138,100,.045) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, rgba(166,138,100,.045) 0 1px, transparent 1px 22px);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}

h1, h2, h3, .display { font-family: var(--display); font-weight: 500; letter-spacing: .01em; margin: 0; }

.wrap { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 20px 18px 96px; }
.wrap.narrow { max-width: 620px; }

/* ------------------------------------------------------------- wordmark */
.mark { text-align: center; padding: 26px 0 6px; }
.mark .eyebrow {
  font-size: 10px; letter-spacing: .42em; text-transform: uppercase;
  color: var(--brass); font-weight: 600;
}
.mark .name {
  font-family: var(--display); font-size: clamp(38px, 11vw, 76px);
  line-height: .95; margin: 10px 0 6px;
  background: linear-gradient(175deg, var(--ivory) 20%, var(--brass-lit) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mark .rule { display: flex; align-items: center; gap: 12px; justify-content: center; color: var(--brass); }
.mark .rule i { display: block; height: 1px; width: min(140px, 26vw); background: linear-gradient(90deg, transparent, var(--brass)); }
.mark .rule i:last-child { background: linear-gradient(270deg, transparent, var(--brass)); }
.mark .rule span { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; }

/* ---------------------------------------------------------------- panels */
.panel {
  background: linear-gradient(180deg, var(--navy-2), var(--navy-1));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  box-shadow: var(--shadow);
}
.panel + .panel { margin-top: 14px; }
.panel h2 { font-size: 22px; }
.panel .sub { color: var(--ivory-dim); font-size: 13px; margin-top: 4px; }

.label { display: block; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--brass); margin: 0 0 6px; font-weight: 600; }

input, textarea, select {
  width: 100%; padding: 12px 14px; color: var(--ivory);
  background: rgba(255, 234, 214, .05);
  border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--body); font-size: 15px; outline: none;
  transition: border-color .18s, background .18s;
}
input:focus, textarea:focus, select:focus { border-color: var(--brass); background: rgba(255, 234, 214, .08); }
input::placeholder, textarea::placeholder { color: var(--ivory-faint); }
select option { background: var(--navy-2); }
textarea { min-height: 76px; resize: vertical; }

.btn {
  appearance: none; cursor: pointer; font-family: var(--body);
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 13px 22px; border-radius: 999px;
  border: 1px solid var(--brass); color: var(--navy);
  background: linear-gradient(180deg, var(--brass-lit), var(--brass));
  transition: transform .16s cubic-bezier(.2,.9,.3,1.4), box-shadow .2s, filter .2s;
  box-shadow: 0 8px 22px rgba(166, 138, 100, .28);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(166, 138, 100, .38); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ivory); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--brass); color: var(--brass-lit); }
.btn.danger { background: transparent; border-color: rgba(212,121,106,.5); color: var(--rejected); box-shadow: none; }
.btn.sm { padding: 8px 14px; font-size: 11px; }
.btn.block { width: 100%; }

:focus-visible { outline: 2px solid var(--brass-lit); outline-offset: 3px; }

/* ----------------------------------------------------------------- chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px; font-size: 11px; font-weight: 500;
  border: 1px solid var(--line); color: var(--ivory-dim); background: rgba(255,234,214,.04);
}
.chip.brass { color: var(--brass-lit); border-color: rgba(166,138,100,.45); }
.chip.ok { color: var(--verified); border-color: rgba(125,201,163,.4); background: rgba(125,201,163,.08); }
.chip.no { color: var(--rejected); border-color: rgba(212,121,106,.4); background: rgba(212,121,106,.08); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.tight { gap: 6px; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.grid { display: grid; gap: 12px; }
.mono { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ name cards */
.namecard {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255,234,214,.04);
  animation: rise .45s cubic-bezier(.2,.9,.3,1.2) backwards;
}
.namecard .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 12px var(--brass); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------ SIGNATURE: seal */
.seal-stage {
  position: fixed; inset: 0; z-index: 90; display: none;
  align-items: center; justify-content: center; flex-direction: column; gap: 20px;
  background: rgba(1, 6, 18, .88); backdrop-filter: blur(10px);
  padding: 24px; text-align: center;
}
.seal-stage.on { display: flex; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; } }

.seal { width: 190px; height: 190px; animation: stamp .7s cubic-bezier(.2, 1.3, .4, 1) both; }
.seal.miss { animation: crack .6s ease both; }
@keyframes stamp {
  0%   { transform: scale(3.4) rotate(-22deg); opacity: 0; filter: blur(8px); }
  55%  { transform: scale(.92) rotate(3deg);  opacity: 1; filter: blur(0); }
  72%  { transform: scale(1.06) rotate(-2deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes crack {
  0% { transform: scale(2.2); opacity: 0; }
  40% { transform: scale(1); opacity: 1; }
  55%, 75% { transform: scale(1) translateX(-9px) rotate(-3deg); }
  65%, 85% { transform: scale(1) translateX(9px) rotate(3deg); }
  100% { transform: scale(1); }
}
.seal-verdict { font-family: var(--display); font-size: clamp(30px, 9vw, 52px); line-height: 1; }
.seal-verdict.ok { color: var(--verified); }
.seal-verdict.no { color: var(--rejected); }
.seal-caption { font-family: var(--display); font-style: italic; font-size: 20px; color: var(--ivory); max-width: 420px; }
.seal-reason { font-size: 13px; color: var(--ivory-dim); max-width: 420px; line-height: 1.6; }

/* Brass dust burst */
.dust { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--brass-lit); pointer-events: none; }

/* ------------------------------------------------------------ the draw */
.draw-stage { position: relative; min-height: 320px; display: grid; place-items: center; }
.drum {
  width: 168px; height: 168px; border-radius: 50%;
  border: 2px solid var(--brass); position: relative;
  display: grid; place-items: center;
  background: radial-gradient(circle at 34% 28%, rgba(217,189,141,.35), rgba(1,6,18,.9) 62%);
  animation: spin 2.2s linear infinite;
  box-shadow: 0 0 60px rgba(166,138,100,.35), inset 0 0 40px rgba(166,138,100,.25);
}
.drum::after {
  content: ''; position: absolute; inset: 14px; border-radius: 50%;
  border: 1px dashed rgba(255,234,214,.28);
}
@keyframes spin { to { transform: rotate(360deg); } }

.draw-name {
  font-family: var(--display); font-size: clamp(34px, 10vw, 62px);
  animation: pop .35s cubic-bezier(.2,1.4,.4,1) both;
}
@keyframes pop { from { opacity: 0; transform: scale(.6) translateY(14px); } to { opacity: 1; transform: none; } }

.house-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.house {
  border: 1px solid var(--line); border-radius: var(--r); padding: 16px;
  background: linear-gradient(180deg, rgba(255,234,214,.05), transparent);
  position: relative; overflow: hidden;
}
.house .crest {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-size: 17px; letter-spacing: .04em;
  border: 1px solid currentColor; margin-bottom: 10px;
}
.house h3 { font-size: 21px; }
.house ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.house li { font-size: 14px; color: var(--ivory-dim); animation: rise .4s backwards; }
.house li b { color: var(--ivory); font-weight: 500; }
.house.mine { border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass), 0 20px 50px rgba(166,138,100,.2); }
.house.mine::after {
  content: 'YOUR HOUSE'; position: absolute; top: 12px; right: -30px;
  transform: rotate(38deg); background: var(--brass); color: var(--navy);
  font-size: 9px; font-weight: 700; letter-spacing: .16em; padding: 4px 34px;
}

/* -------------------------------------------------------------- location */
.loc {
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: linear-gradient(180deg, var(--navy-2), var(--navy-1));
  transition: border-color .2s, transform .2s;
}
.loc:hover { border-color: rgba(166,138,100,.4); }
.loc.found { border-color: rgba(125,201,163,.42); }
.loc.missed { opacity: .5; }
.loc-head { display: flex; gap: 14px; align-items: center; padding: 15px 16px; cursor: pointer; }
.loc-head .idx {
  font-family: var(--display); font-size: 24px; color: var(--brass);
  min-width: 34px; text-align: center;
}
.loc-head .ttl { flex: 1; }
.loc-head .ttl b { display: block; font-size: 16px; font-weight: 500; }
.loc-head .ttl small { color: var(--ivory-faint); font-size: 12px; font-style: italic; font-family: var(--display); }
.loc-body { padding: 0 16px 16px; display: none; }
.loc.open .loc-body { display: block; animation: rise .3s; }

/* countdown ring */
.ring { position: relative; width: 74px; height: 74px; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring .track { stroke: rgba(255,234,214,.12); }
.ring .bar { stroke: var(--brass-lit); stroke-linecap: round; transition: stroke-dashoffset 1s linear, stroke .4s; }
.ring.urgent .bar { stroke: var(--rejected); }
.ring.urgent { animation: pulse 1s infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }
.ring b {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 15px; font-variant-numeric: tabular-nums; font-weight: 600;
}

/* ------------------------------------------------------------------ wall */
.wall { columns: 260px; column-gap: 12px; }
.post {
  break-inside: avoid; margin-bottom: 12px; border-radius: var(--r);
  border: 1px solid var(--line); overflow: hidden; background: var(--navy-2);
  animation: rise .5s backwards;
}
.post img { width: 100%; display: block; }
.post .meta { padding: 12px 14px; }
.post .cap { font-family: var(--display); font-style: italic; font-size: 17px; line-height: 1.3; }
.post .by { font-size: 11px; color: var(--ivory-faint); margin-top: 8px; letter-spacing: .06em; }
.post .tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.post .tags span { font-size: 10px; padding: 3px 8px; border-radius: 999px; background: rgba(166,138,100,.14); color: var(--brass-lit); }
.post.rejected img { filter: grayscale(.85) brightness(.65); }

/* ----------------------------------------------------------------- board */
.rank { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.rank:last-child { border-bottom: 0; }
.rank .pos { font-family: var(--display); font-size: 27px; width: 38px; text-align: center; color: var(--ivory-faint); }
.rank.top1 .pos { color: #e8c98a; text-shadow: 0 0 18px rgba(232,201,138,.5); }
.rank.top2 .pos { color: #cfd3d8; }
.rank.top3 .pos { color: #c08a5e; }
.rank .who { flex: 1; }
.rank .who b { display: block; font-weight: 500; font-size: 15px; }
.rank .who small { color: var(--ivory-faint); font-size: 11px; }
.rank .score { text-align: right; font-variant-numeric: tabular-nums; }
.rank .score b { font-size: 19px; font-family: var(--display); }
.rank .score small { display: block; color: var(--ivory-faint); font-size: 11px; }

/* ------------------------------------------------------------------ tabs */
.tabs {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  display: flex; border-top: 1px solid var(--line);
  background: rgba(1,6,18,.92); backdrop-filter: blur(14px);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabs button {
  flex: 1; background: none; border: 0; color: var(--ivory-faint); cursor: pointer;
  padding: 13px 4px 15px; font-family: var(--body);
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  border-top: 2px solid transparent; margin-top: -1px; transition: color .2s, border-color .2s;
}
.tabs button.on { color: var(--brass-lit); border-top-color: var(--brass); }

.view { display: none; }
.view.on { display: block; animation: rise .35s; }

/* ---------------------------------------------------------------- admin */
.adm-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0; }
.adm-nav button {
  background: transparent; border: 1px solid var(--line); color: var(--ivory-dim);
  padding: 9px 16px; border-radius: 999px; cursor: pointer; font-family: var(--body);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  transition: all .18s;
}
.adm-nav button.on { border-color: var(--brass); color: var(--navy); background: var(--brass); }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); padding: 10px 8px; border-bottom: 1px solid var(--line); font-weight: 600; }
td { padding: 10px 8px; border-bottom: 1px solid rgba(255,234,214,.07); vertical-align: middle; }

.toast {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%);
  background: var(--navy-2); border: 1px solid var(--brass); color: var(--ivory);
  padding: 12px 20px; border-radius: 999px; font-size: 13px; z-index: 120;
  box-shadow: var(--shadow); animation: rise .3s;
}

.empty { text-align: center; padding: 44px 20px; color: var(--ivory-faint); font-family: var(--display); font-size: 19px; font-style: italic; }

.spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid rgba(255,234,214,.18); border-top-color: var(--brass-lit);
  animation: spin .8s linear infinite; display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ═══════════════════════════════════════════════════════════════
   MAYFAIR DAY v2 — the loud half
   ═══════════════════════════════════════════════════════════════ */

/* ---------------------------------------------------- top bar */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0 12px; margin-bottom: 6px;
  background: linear-gradient(180deg, var(--navy) 68%, transparent);
}
.topbar .crest-lg {
  width: 52px; height: 52px; flex: none; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  font-family: var(--display); font-size: 19px;
  border: 1px solid currentColor;
}
.topbar .crest-lg::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid currentColor; opacity: .28;
  animation: halo 3.4s ease-in-out infinite;
}
@keyframes halo { 0%,100% { transform: scale(1); opacity: .28; } 50% { transform: scale(1.12); opacity: .05; } }

.progress-ring { position: relative; width: 54px; height: 54px; flex: none; }
.progress-ring svg { transform: rotate(-90deg); }
.progress-ring circle { fill: none; stroke-width: 4; }
.progress-ring .track { stroke: rgba(255,234,214,.12); }
.progress-ring .bar { stroke: var(--brass-lit); stroke-linecap: round; transition: stroke-dashoffset .8s cubic-bezier(.2,.9,.3,1.2); }
.progress-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; font-weight: 600; }

.iconbtn {
  background: none; border: 1px solid var(--line); color: var(--ivory-dim);
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer; flex: none;
  display: grid; place-items: center; font-size: 15px; transition: all .18s;
}
.iconbtn:hover { border-color: var(--brass); color: var(--brass-lit); }
.iconbtn.off { opacity: .45; }

/* ------------------------------------------- entrance choreography */
.stagger > * { animation: rise .5s cubic-bezier(.2,.9,.3,1.2) backwards; }
.stagger > *:nth-child(1) { animation-delay: .04s }
.stagger > *:nth-child(2) { animation-delay: .09s }
.stagger > *:nth-child(3) { animation-delay: .14s }
.stagger > *:nth-child(4) { animation-delay: .19s }
.stagger > *:nth-child(5) { animation-delay: .24s }
.stagger > *:nth-child(6) { animation-delay: .29s }
.stagger > *:nth-child(7) { animation-delay: .34s }
.stagger > *:nth-child(8) { animation-delay: .39s }
.stagger > *:nth-child(n+9) { animation-delay: .44s }

/* Wordmark letters drop in one at a time */
.name .ltr { display: inline-block; animation: drop .6s cubic-bezier(.2,1.5,.4,1) backwards; }
@keyframes drop {
  from { opacity: 0; transform: translateY(-46px) rotate(-14deg) scale(1.4); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

/* ------------------------------------------------ location cards */
.loc { position: relative; }
.loc::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(115deg, transparent 42%, rgba(255,234,214,.14) 50%, transparent 58%);
  transition: opacity .3s;
}
.loc.running::before { opacity: 1; animation: sheen 2.6s ease-in-out infinite; }
@keyframes sheen { 0% { transform: translateX(-120%); } 60%, 100% { transform: translateX(120%); } }

.loc.justfound { animation: won .9s cubic-bezier(.2,1.2,.3,1); }
@keyframes won {
  0%   { transform: scale(1); }
  22%  { transform: scale(1.045) rotate(-.7deg); box-shadow: 0 0 0 3px rgba(125,201,163,.5); }
  55%  { transform: scale(.995) rotate(.4deg); }
  100% { transform: scale(1); box-shadow: none; }
}
.loc.found .idx { color: var(--verified); }
.loc.found .ttl b { text-decoration: line-through; text-decoration-color: rgba(125,201,163,.55); }
.loc.missed .idx { color: var(--rejected); }

.ring.urgent .bar { stroke: var(--rejected); }
.ring.panic { animation: panic .5s infinite; }
@keyframes panic { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* ------------------------------------------- judging: photo scan */
.scan {
  position: relative; width: min(300px, 74vw); aspect-ratio: 3/4;
  border-radius: 16px; overflow: hidden; border: 1px solid var(--brass);
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
.scan img { width: 100%; height: 100%; object-fit: cover; }
.scan::after {
  content: ''; position: absolute; left: 0; right: 0; height: 34%;
  background: linear-gradient(180deg, transparent, rgba(217,189,141,.42), transparent);
  animation: sweep 1.5s ease-in-out infinite;
}
@keyframes sweep { 0% { top: -34%; } 100% { top: 100%; } }
.scan .grid-lines {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(217,189,141,.16) 0 1px, transparent 1px 26px),
                    repeating-linear-gradient(90deg, rgba(217,189,141,.16) 0 1px, transparent 1px 26px);
}
.judging-label {
  font-family: var(--display); font-size: 21px; font-style: italic; color: var(--brass-lit);
}
.judging-label::after { content: '…'; animation: dots 1.4s steps(4) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '…'; } }

/* -------------------------------------------------------- ticker */
.ticker {
  position: fixed; left: 50%; transform: translateX(-50%); top: 12px;
  z-index: 110; display: grid; gap: 8px; width: min(440px, calc(100vw - 24px));
  pointer-events: none;
}
.ticker div {
  background: rgba(13,21,40,.96); border: 1px solid var(--line); border-left: 3px solid var(--brass);
  border-radius: 10px; padding: 10px 14px; font-size: 13px;
  box-shadow: var(--shadow); animation: slidein .45s cubic-bezier(.2,1.2,.3,1);
}
.ticker div b { color: var(--brass-lit); font-weight: 600; }
@keyframes slidein { from { opacity: 0; transform: translateY(-20px) scale(.94); } }

/* -------------------------------------------------------- podium */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 10px; margin: 30px 0 8px; }
.plinth {
  flex: 1; max-width: 130px; border-radius: 10px 10px 0 0; text-align: center;
  padding: 14px 8px 12px; position: relative;
  background: linear-gradient(180deg, rgba(255,234,214,.14), rgba(255,234,214,.03));
  border: 1px solid var(--line); border-bottom: 0;
  animation: grow .9s cubic-bezier(.2,1.1,.3,1) backwards; transform-origin: bottom;
}
@keyframes grow { from { transform: scaleY(0); opacity: 0; } }
.plinth.p1 { height: 190px; animation-delay: .9s; border-color: rgba(232,201,138,.6); }
.plinth.p2 { height: 140px; animation-delay: .3s; }
.plinth.p3 { height: 110px; animation-delay: .6s; }
.plinth .medal { font-family: var(--display); font-size: 34px; line-height: 1; }
.plinth.p1 .medal { color: #e8c98a; text-shadow: 0 0 22px rgba(232,201,138,.6); }
.plinth.p2 .medal { color: #cfd3d8; }
.plinth.p3 .medal { color: #c08a5e; }
.plinth .nm { font-size: 13px; font-weight: 600; margin-top: 8px; word-break: break-word; }
.plinth .sc { font-size: 11px; color: var(--ivory-faint); margin-top: 3px; }

.crown {
  font-family: var(--display); font-size: clamp(30px, 9vw, 56px);
  background: linear-gradient(175deg, var(--ivory) 20%, #e8c98a 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: pop .6s cubic-bezier(.2,1.4,.4,1) both;
}

/* ------------------------------------------------------- confetti */
.shard { position: fixed; pointer-events: none; z-index: 200; border-radius: 1px; }

/* -------------------------------------------------- combo banner */
.combo {
  position: fixed; left: 50%; top: 42%; transform: translate(-50%,-50%);
  font-family: var(--display); font-size: clamp(30px,10vw,58px); z-index: 130;
  color: var(--brass-lit); text-shadow: 0 0 40px rgba(217,189,141,.55);
  pointer-events: none; animation: combo 1.5s cubic-bezier(.2,1.2,.3,1) forwards;
}
@keyframes combo {
  0%   { opacity: 0; transform: translate(-50%,-50%) scale(.4) rotate(-8deg); }
  22%  { opacity: 1; transform: translate(-50%,-50%) scale(1.08) rotate(2deg); }
  70%  { opacity: 1; transform: translate(-50%,-52%) scale(1); }
  100% { opacity: 0; transform: translate(-50%,-72%) scale(.94); }
}

/* ------------------------------------------------- misc polish */
.pill-row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.pill-row::-webkit-scrollbar { display: none; }
.btn.shoot-btn { position: relative; overflow: hidden; }
.btn.shoot-btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.4) 50%, transparent 60%);
  animation: sheen 2.4s ease-in-out infinite;
}
.hint-line { font-family: var(--display); font-style: italic; font-size: 16px; color: var(--brass-lit); }

/* ═══════════════════════════════════════════════════════════════
   MOBILE — this is a game played one-handed, outdoors, in a hurry
   ═══════════════════════════════════════════════════════════════ */

html {
  -webkit-text-size-adjust: 100%;         /* stop iOS resizing text in landscape */
  text-size-adjust: 100%;
}

body {
  overscroll-behavior-y: contain;         /* no accidental pull-to-refresh mid-hunt */
  -webkit-overflow-scrolling: touch;
}

button, .btn, .iconbtn, .chip, a, label, summary {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;             /* kills the 300ms double-tap-zoom delay */
}

.btn, .iconbtn, .tabs button, .adm-nav button, summary {
  user-select: none; -webkit-user-select: none;
}

/* iOS zooms the whole page when a focused field is under 16px. Never do that. */
input, textarea, select { font-size: 16px; }

/* Thumb-sized targets everywhere (Apple's floor is 44px). */
.btn { min-height: 48px; }
.btn.sm { min-height: 38px; padding: 9px 14px; }
.iconbtn { width: 44px; height: 44px; }
.tabs button { min-height: 58px; }
.loc-head { min-height: 68px; }
.wallFilter { min-height: 38px; }

/* Respect the notch and the home indicator on every edge. */
.wrap {
  padding-left: max(18px, env(safe-area-inset-left));
  padding-right: max(18px, env(safe-area-inset-right));
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
}
.topbar { padding-top: calc(12px + env(safe-area-inset-top)); }
.ticker { top: calc(12px + env(safe-area-inset-top)); }
.toast { bottom: calc(84px + env(safe-area-inset-bottom)); }

/* The verdict card can outgrow a small screen — let it scroll rather than clip. */
.seal-stage {
  overflow-y: auto;
  padding: calc(28px + env(safe-area-inset-top)) 22px calc(28px + env(safe-area-inset-bottom));
  gap: 16px;
}
.seal-stage > * { flex: none; }

/* Tables are the one desktop-shaped thing in the console. Let them scroll. */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tablewrap table { min-width: 460px; }
.tablewrap::-webkit-scrollbar { height: 6px; }
.tablewrap::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

@media (max-width: 560px) {
  .wrap { padding-top: 12px; }
  .panel { padding: 15px; border-radius: 12px; }
  .panel h2 { font-size: 20px; }
  .mark { padding: 18px 0 4px; }

  .seal { width: 150px; height: 150px; }
  .scan { width: min(250px, 68vw); }
  .seal-caption { font-size: 18px; }
  .seal-reason { font-size: 12.5px; }

  .wall { columns: 1; }
  .house-grid { grid-template-columns: 1fr; }
  .drum { width: 132px; height: 132px; }
  .draw-stage { min-height: 240px; }

  .rank { padding: 12px 10px; gap: 10px; }
  .rank .pos { width: 30px; font-size: 23px; }

  .plinth { padding: 10px 5px; }
  .plinth .nm { font-size: 11.5px; }
  .plinth .sc { font-size: 10px; }
  .plinth.p1 { height: 158px; } .plinth.p2 { height: 118px; } .plinth.p3 { height: 94px; }

  .adm-nav { gap: 5px; }
  .adm-nav button { padding: 10px 13px; font-size: 10.5px; }
}

/* Short landscape phones: give the content room, shrink the theatrics. */
@media (max-height: 480px) and (orientation: landscape) {
  .mark { padding: 10px 0 2px; }
  .mark .name { font-size: 34px; }
  .draw-stage { min-height: 180px; }
  .drum { width: 104px; height: 104px; }
  .seal { width: 118px; height: 118px; }
  .scan { width: 170px; }
}

/* ------------------------------------------------ organiser guidance */
details.help {
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(166,138,100,.06); margin-bottom: 14px;
}
details.help > summary {
  cursor: pointer; padding: 13px 16px; list-style: none;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brass-lit); font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; min-height: 46px;
}
details.help > summary::-webkit-details-marker { display: none; }
details.help > summary::after { content: '＋'; font-size: 16px; letter-spacing: 0; }
details.help[open] > summary::after { content: '－'; }
details.help .body { padding: 0 16px 16px; font-size: 13.5px; line-height: 1.65; color: var(--ivory-dim); }
details.help .body p { margin: 0 0 10px; }
details.help .body p:last-child { margin-bottom: 0; }
details.help .body b { color: var(--ivory); font-weight: 600; }
details.help .body code {
  background: rgba(255,234,214,.08); padding: 1px 6px; border-radius: 4px;
  font-size: 12px; color: var(--brass-lit);
}
details.help .body dl { margin: 0; }
details.help .body dt { color: var(--ivory); font-weight: 600; margin-top: 12px; font-size: 13px; }
details.help .body dd { margin: 3px 0 0; }

.fieldhint { font-size: 11.5px; color: var(--ivory-faint); margin: 6px 0 0; line-height: 1.5; }
.warnbox {
  border-left: 3px solid var(--rejected); background: rgba(212,121,106,.07);
  border-radius: 8px; padding: 11px 14px; font-size: 12.5px; color: var(--ivory-dim); margin-top: 12px;
}
.warnbox b { color: var(--rejected); }

/* The stage buttons are also the stage indicator — make "you are here" obvious. */
.btn.st.on {
  background: linear-gradient(180deg, var(--brass-lit), var(--brass));
  border-color: var(--brass); color: var(--navy);
  box-shadow: 0 8px 22px rgba(166,138,100,.28);
}
.btn.st.on::before { content: '● '; font-size: 9px; vertical-align: middle; }

/* Judgement feed rows: stack rather than squeeze on a phone. */
@media (max-width: 560px) {
  #feed > .row { flex-wrap: wrap !important; }
  #feed > .row > div:nth-child(2) { min-width: 60%; }
  #feed .grid { flex-direction: row; align-items: center; gap: 10px; width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════
   WELCOME — animation above, words below. They never overlap.
   ═══════════════════════════════════════════════════════════════ */

#welcome { display: none; }
#welcome.on { display: block; animation: rise .4s; }

.intro-head { text-align: center; padding: 20px 0 10px; }
.intro-head .eyebrow {
  font-size: 10px; letter-spacing: .38em; text-transform: uppercase;
  color: var(--brass); font-weight: 600;
}
.intro-title {
  font-family: var(--display); font-size: clamp(36px, 12vw, 62px); line-height: .95; margin: 8px 0 0;
  background: linear-gradient(175deg, var(--ivory) 25%, var(--brass-lit) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* The stage is a fixed-ratio box so the copy below never jumps as scenes swap. */
.intro-stage {
  position: relative; margin: 12px 0 18px;
  border: 1px solid var(--line); border-radius: 16px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(166,138,100,.14), transparent 70%),
    linear-gradient(180deg, var(--navy-2), var(--navy-1));
  overflow: hidden;
}
.intro-stage::after {           /* vignette, so shapes never crowd the edges */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 46px rgba(1,6,18,.75);
}
.intro-stage svg { display: block; width: 100%; height: auto; aspect-ratio: 400 / 250; }

/* ── the readable half ───────────────────────────────────────────────────
   Solid panel, no artwork behind it, generous size, high contrast. */
.intro-copy {
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: 14px;
  padding: 18px 18px 20px;
  min-height: 190px;               /* holds its shape between chapters */
}
.intro-step {
  font-size: 10px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--brass-lit); font-weight: 700; margin-bottom: 10px;
}
.intro-copy h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(24px, 6.4vw, 31px); line-height: 1.15;
  color: var(--ivory); margin: 0 0 10px;
  text-wrap: balance;
}
.intro-copy p {
  margin: 0; font-size: 16.5px; line-height: 1.62;
  color: rgba(255, 234, 214, .88);      /* 11:1 or better on the panel */
  max-width: 60ch;
}
.intro-copy h2, .intro-copy p { animation: copyIn .45s cubic-bezier(.2,.9,.3,1.2) both; }
.intro-copy p { animation-delay: .07s; }
@keyframes copyIn { from { opacity: 0; transform: translateY(8px); } }

/* ── chapter rail ── */
.intro-rail { display: flex; gap: 8px; margin: 16px 0 14px; }
.intro-rail button {
  flex: 1; height: 40px; padding: 0; background: none; border: 0; cursor: pointer;
  position: relative; -webkit-tap-highlight-color: transparent;
}
.intro-rail button::after {
  content: ''; position: absolute; left: 0; right: 0; top: 18px; height: 3px;
  border-radius: 2px; background: rgba(255,234,214,.18); transition: background .3s;
}
.intro-rail button.on::after { background: var(--brass-lit); box-shadow: 0 0 12px rgba(217,189,141,.5); }

.intro-actions { display: flex; gap: 10px; }
.intro-actions .btn { flex: 1; }

.linkish {
  display: block; width: 100%; margin-top: 14px; padding: 12px;
  background: none; border: 0; cursor: pointer;
  color: rgba(255, 234, 214, .66);   /* 6.4:1 — the .38 tint measured 3.13:1 */
  font-family: var(--body); font-size: 14px;
  text-decoration: underline; text-underline-offset: 3px;
  -webkit-tap-highlight-color: transparent;
}
.linkish:hover { color: var(--brass-lit); }

@media (max-width: 560px) {
  .intro-stage { margin: 10px 0 14px; border-radius: 14px; }
  .intro-copy { min-height: 210px; padding: 16px; }
  .intro-copy p { font-size: 16px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .intro-head { padding: 10px 0 4px; }
  .intro-title { font-size: 30px; }
  .intro-stage svg { max-height: 40vh; }
  .intro-copy { min-height: 0; }
}

/* ── "turn your sound on" ───────────────────────────────────────────────── */
.soundcall {
  display: flex; align-items: flex-start; gap: 12px;
  margin: 14px 0 0; padding: 13px 15px;
  border: 1px solid rgba(166,138,100,.45);
  border-radius: 12px;
  background: rgba(166,138,100,.10);
}
.soundcall .spk {
  font-size: 20px; line-height: 1.2; flex: none;
  animation: thump 1.9s ease-in-out infinite;
}
@keyframes thump {
  0%, 68%, 100% { transform: scale(1); }
  76% { transform: scale(1.22) rotate(-6deg); }
  84% { transform: scale(1.06) rotate(4deg); }
}
.soundcall b { display: block; color: var(--ivory); font-size: 14.5px; font-weight: 600; margin-bottom: 3px; }
.soundcall span { color: rgba(255,234,214,.78); font-size: 13.5px; line-height: 1.55; }
.soundcall.compact { margin-top: 12px; padding: 11px 13px; }
.soundcall.compact b { display: inline; margin: 0; }
.soundcall.compact span { font-size: 13px; }

/* The mute toggle should look switched off, not broken. */
.iconbtn.off {
  opacity: 1;
  color: var(--rejected);
  border-color: rgba(212,121,106,.45);
  background: rgba(212,121,106,.08);
}

/* ═══════════════════════════════════════════════════════════════════════════
   THE CASEBOOK — player-side theme
   ───────────────────────────────────────────────────────────────────────────
   Gaslight London by way of a workshop: soot, oxidised steel, scorch marks and
   brass. The hotel's ivory and brass survive; the navy goes to soot and picks
   up rust and ember. Loaded last, so it overrides the tokens above without
   touching a line of the layout that everything is tested against.
   The organiser console keeps the plainer livery — it is a tool, not a toy.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --navy:      #07090c;   /* soot */
  --navy-1:    #0c1013;
  --navy-2:    #151b20;   /* steel plate */
  --line:      rgba(216, 184, 116, .20);
  --ivory:     #f3e7d3;
  --ivory-dim: rgba(243, 231, 211, .70);
  --ivory-faint: rgba(243, 231, 211, .58);   /* 5.5:1 on plate; .44 measured 3.8 */
  --brass:     #9a7f4f;
  --brass-lit: #d8b874;
  --ember:     #c9541c;   /* burnt edge */
  --verified:  #7fb58c;   /* verdigris */
  --rejected:  #d96545;   /* oxide — 4.9:1 on plate, readable as a stamp */
  --rust-deep: #8c3b1e;   /* the same rust, for fills and edges where no text sits on it */
  --display:   'IM Fell English', 'Cormorant Garamond', Georgia, serif;
  --stamp:     'Special Elite', 'Courier New', monospace;
  --shadow:    0 20px 46px rgba(0, 0, 0, .72);
}

/* Gaslight fog and a fall of soot over everything. */
body {
  background:
    radial-gradient(1100px 620px at 50% -12%, rgba(216, 184, 116, .10), transparent 62%),
    radial-gradient(760px 520px at 106% 104%, rgba(201, 84, 28, .09), transparent 60%),
    var(--navy);
}
body::before {
  background-image:
    repeating-linear-gradient(46deg, rgba(216,184,116,.030) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(-46deg, rgba(216,184,116,.030) 0 1px, transparent 1px 26px);
}
body::after {
  content: ''; position: fixed; inset: -20%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(216,184,116,.055), transparent 70%);
  width: 62vmax; height: 62vmax; left: 8%; top: 4%;
  animation: fog 34s ease-in-out infinite alternate;
}
@keyframes fog {
  0%   { transform: translate(0, 0) scale(1); opacity: .8; }
  50%  { transform: translate(28vw, 16vh) scale(1.3); opacity: .45; }
  100% { transform: translate(-10vw, 34vh) scale(1.1); opacity: .7; }
}

/* ── plate: brushed steel, scorched at one corner, riveted ───────────────── */
.panel, .loc, .post, .intro-copy, .intro-stage, .soundcall {
  position: relative;
  background-image:
    repeating-linear-gradient(93deg, rgba(255,255,255,.022) 0 1px, transparent 1px 3px),
    radial-gradient(130% 90% at 4% -14%, rgba(201,84,28,.13), transparent 58%),
    radial-gradient(100% 80% at 104% 112%, rgba(0,0,0,.60), transparent 62%),
    linear-gradient(178deg, #1b2228 0%, #11161a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    inset 0 -2px 7px rgba(0,0,0,.62),
    var(--shadow);
  border-color: rgba(216,184,116,.20);
}

/* Rivets in the corners. */
.panel::before {
  content: ''; position: absolute; inset: 9px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle 3.2px at left top,     #7d8288 38%, #0d1114 62%, transparent 64%),
    radial-gradient(circle 3.2px at right top,    #7d8288 38%, #0d1114 62%, transparent 64%),
    radial-gradient(circle 3.2px at left bottom,  #7d8288 38%, #0d1114 62%, transparent 64%),
    radial-gradient(circle 3.2px at right bottom, #7d8288 38%, #0d1114 62%, transparent 64%);
  background-repeat: no-repeat;
  opacity: .8;
}
.panel > * { position: relative; z-index: 1; }

/* A bent, burnt corner on every case file. */
.loc {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
}
.loc::after {
  content: ''; position: absolute; right: 0; bottom: 0; width: 46px; height: 46px;
  pointer-events: none;
  background: radial-gradient(circle at 100% 100%, rgba(201,84,28,.55), rgba(140,59,30,.28) 42%, transparent 68%);
}

/* ── type ─────────────────────────────────────────────────────────────────── */
h1, h2, h3, .display, .mark .name, .intro-title, .draw-name, .crown { font-family: var(--display); }
.mark .name, .intro-title { letter-spacing: .01em; }

.label, .eyebrow, .intro-step, .mark .rule span, .mark .eyebrow {
  font-family: var(--stamp); letter-spacing: .22em;
}
.loc-head .idx {
  font-family: var(--stamp); font-size: 15px; letter-spacing: .04em;
  color: var(--brass-lit); opacity: .85;
}
.loc-head .ttl small { font-family: var(--stamp); font-style: normal; letter-spacing: .1em; font-size: 10.5px; }
.mono, .rank .score b, .ring b, .progress-ring b { font-family: var(--stamp); }

/* ── stamped ink verdicts ────────────────────────────────────────────────── */
.chip {
  font-family: var(--stamp); letter-spacing: .1em; text-transform: uppercase;
  font-size: 10px; border-radius: 3px;
}
.chip.ok, .chip.no {
  border-width: 2px; padding: 4px 10px;
  transform: rotate(-1.6deg);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35);
}
.chip.ok { border-color: var(--verified); color: var(--verified); background: rgba(127,181,140,.10); }
.chip.no { border-color: var(--rejected); color: var(--rejected); background: rgba(140,59,30,.16); transform: rotate(1.4deg); }
.chip.brass { border-color: rgba(216,184,116,.45); color: var(--brass-lit); }

/* ── controls: struck brass and blued steel ─────────────────────────────── */
.btn {
  font-family: var(--stamp); letter-spacing: .14em; border-radius: 4px;
  background: linear-gradient(180deg, #e0c27f 0%, #b1904f 46%, #8a6c37 100%);
  border: 1px solid #6b5528;
  color: #140d05;
  text-shadow: 0 1px 0 rgba(255,255,255,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 4px rgba(0,0,0,.35), 0 6px 16px rgba(0,0,0,.5);
}
.btn:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 4px rgba(0,0,0,.35), 0 12px 24px rgba(0,0,0,.6); }
.btn.ghost {
  background: linear-gradient(180deg, #232b31, #151a1e);
  border-color: rgba(216,184,116,.32); color: var(--ivory);
  text-shadow: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 6px 14px rgba(0,0,0,.45);
}
.btn.ghost:hover { border-color: var(--brass-lit); color: var(--brass-lit); }
.btn.danger { background: linear-gradient(180deg, #2a1a16, #1a100d); border-color: rgba(217,101,69,.5); color: var(--rejected); text-shadow: none; }

input, textarea, select {
  border-radius: 4px; font-family: var(--body);
  background: rgba(0,0,0,.34);
  border-color: rgba(216,184,116,.24);
  box-shadow: inset 0 2px 5px rgba(0,0,0,.55);
}
input:focus, textarea:focus, select:focus { border-color: var(--brass-lit); box-shadow: inset 0 2px 5px rgba(0,0,0,.55), 0 0 0 3px rgba(201,84,28,.16); }

/* ── the clock: an ember burning down ───────────────────────────────────── */
.ring .bar { stroke: var(--brass-lit); filter: drop-shadow(0 0 3px rgba(216,184,116,.5)); }
.ring.urgent .bar { stroke: var(--ember); filter: drop-shadow(0 0 6px rgba(201,84,28,.75)); }
.ring.panic .bar { stroke: var(--rejected); filter: drop-shadow(0 0 9px rgba(193,74,43,.9)); }
.progress-ring .bar { stroke: var(--brass-lit); }

/* ── tabs: a riveted footplate ──────────────────────────────────────────── */
.tabs {
  background:
    repeating-linear-gradient(93deg, rgba(255,255,255,.02) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #171d22, #0b0f12);
  border-top: 1px solid rgba(216,184,116,.24);
  box-shadow: 0 -10px 26px rgba(0,0,0,.6);
}
.tabs button { font-family: var(--stamp); letter-spacing: .16em; }
.tabs button.on { color: var(--brass-lit); border-top-color: var(--ember); }

/* ── evidence photographs ───────────────────────────────────────────────── */
.post { border-radius: 4px; }
.post img { filter: contrast(1.06) saturate(.9) sepia(.08); }
.post.rejected img { filter: grayscale(.9) brightness(.6) sepia(.25); }
.post .cap { font-family: var(--display); }
.post .by { font-family: var(--stamp); letter-spacing: .06em; }
.post .tags span { font-family: var(--stamp); border-radius: 2px; letter-spacing: .06em; }

/* ── the ledger ─────────────────────────────────────────────────────────── */
.rank .pos { font-family: var(--display); }
.rank.top1 .pos { color: var(--brass-lit); text-shadow: 0 0 16px rgba(216,184,116,.55); }

/* ── house crests read as pressed brass ─────────────────────────────────── */
.crest, .crest-lg {
  font-family: var(--display);
  background: radial-gradient(circle at 34% 26%, rgba(216,184,116,.30), rgba(0,0,0,.45) 70%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 4px 12px rgba(0,0,0,.55);
}

/* ── the drum becomes a furnace ─────────────────────────────────────────── */
.drum {
  background: radial-gradient(circle at 34% 28%, rgba(216,184,116,.34), rgba(201,84,28,.16) 45%, rgba(7,9,12,.94) 72%);
  border-color: var(--brass);
  box-shadow: 0 0 70px rgba(201,84,28,.30), inset 0 0 44px rgba(216,184,116,.22);
}

/* ── verdict theatre ────────────────────────────────────────────────────── */
.seal-stage { background: rgba(7, 9, 12, .93); }
.seal-verdict { font-family: var(--stamp); letter-spacing: .1em; text-transform: uppercase; font-size: clamp(26px, 8vw, 44px); }
.scan { border-radius: 4px; border-color: var(--brass); }
.scan img { filter: contrast(1.08) sepia(.12); }

/* ── the welcome plate ──────────────────────────────────────────────────── */
.intro-copy { border-left-color: var(--ember); }
.intro-rail button.on::after { background: var(--ember); box-shadow: 0 0 12px rgba(201,84,28,.65); }
.intro-title {
  background: linear-gradient(176deg, var(--ivory) 22%, var(--brass-lit) 70%, var(--rust-deep) 130%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── keep the console sober ─────────────────────────────────────────────── */
.adm-nav button { font-family: var(--stamp); letter-spacing: .14em; }
th { font-family: var(--stamp); }

@media (prefers-reduced-motion: reduce) { body::after { animation: none; } }
