:root {
  color-scheme: dark;
  --ink: #f1e4cb;
  --muted: #b6a98e;
  --paper: #211810;
  --panel: #2b2118;
  --line: #5b4934;
  --gold: #d8b15c;
  --good: #78c891;
  --warn: #e1b45f;
  --bad: #e47c70;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(circle at 50% -20%, #4a3520 0, #17110b 48rem);
}
button { font: inherit; }
header, main { width: min(100% - 24px, 760px); margin-inline: auto; }
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(18px, env(safe-area-inset-top)) 2px 14px;
}
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-family: Georgia, serif; font-size: clamp(1.7rem, 8vw, 2.5rem); }
.eyebrow { margin-bottom: 2px; color: var(--gold); font-size: .72rem; letter-spacing: .18em; }
.quiet, button {
  min-height: 44px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 9px 14px;
  color: var(--ink);
  background: #3a2b1c;
}
button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
button:disabled { opacity: .5; }
.panel {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  box-shadow: 0 12px 30px #0005;
}
.status-row {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 11px;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #211810;
}
.seat-mark { width: 12px; height: 48px; border-radius: 10px; background: var(--gold); }
.seat-copy h2 { margin: 0 0 2px; font-size: 1.15rem; }
.seat-copy p { margin: 0; color: var(--muted); font-size: .85rem; }
.freshness { max-width: 12rem; text-align: right; font-size: .82rem; font-weight: 700; }
.freshness.current { color: var(--good); }
.freshness.connecting { color: var(--warn); }
.freshness.missing { color: var(--bad); }
.resources-panel h3, .decision h3 { margin-bottom: 10px; }
.resources { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.resource {
  min-width: 0;
  padding: 9px 3px;
  border: 1px solid #6d583c;
  border-radius: 8px;
  text-align: center;
  background: #18110b;
}
.resource img { display: block; width: 38px; height: 38px; margin: 0 auto 3px; object-fit: contain; }
.resource b { display: block; font-size: 1.35rem; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 21px 3px 8px; }
.section-title h3 { margin: 0; font-size: 1rem; }
.section-title span { color: var(--muted); }
.cards { display: grid; gap: 9px; }
.card {
  display: grid;
  grid-template-columns: 82px 1fr;
  min-height: 82px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #2a2017;
}
.card img { width: 82px; height: 82px; object-fit: cover; background: #17110b; }
.card-copy { padding: 9px 10px; }
.ip-range { margin-bottom: 3px; color: var(--gold); font-size: .72rem; font-weight: 800; }
.card-copy strong { display: block; margin-bottom: 4px; }
.card-copy p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.32; }
.card.unavailable .card-copy strong, .card.unavailable .card-copy p { color: #81786a; }
.card.unavailable .ip-range { color: var(--bad); }
.empty { padding: 14px; border: 1px dashed var(--line); border-radius: 9px; color: var(--muted); text-align: center; }
.decision { border-color: var(--gold); }
.decision p { margin-bottom: 0; }
.decision-card { margin-top: 12px; }
.private-data { transition: filter .18s, opacity .18s; }
.private-data.stale { filter: saturate(.5); opacity: .44; }
.private-data.obscured { visibility: hidden; }
.hand { position: relative; min-height: 16rem; }
.shield {
  position: absolute;
  inset: 78px 0 0;
  display: grid;
  place-content: center;
  gap: 5px;
  min-height: 14rem;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  background: repeating-linear-gradient(135deg, #211810, #211810 12px, #261c12 12px, #261c12 24px);
}
.shield[hidden], [hidden] { display: none !important; }
.seat-list { display: grid; gap: 8px; }
.seat-choice { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; }
.seat-choice small { color: var(--muted); }
.error { min-height: 1.2em; margin: 12px 0 0; color: var(--bad); }
.wake-panel { margin-top: 20px; }
.wake-panel button { width: 100%; }
.wake-panel p { margin: 9px 0 0; color: var(--muted); font-size: .78rem; }
noscript { display: block; padding: 30px; color: white; text-align: center; }
@media (min-width: 640px) {
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
