/* Halloween Party · Top Agent Realty
   Ground: ink violet. Accent: brand gold. Signal: venom green (scan + raffle only). */
:root {
  --bg: oklch(0.16 0.035 305);
  --bg-2: oklch(0.205 0.04 305);
  --bg-3: oklch(0.265 0.04 305);
  --line: oklch(0.34 0.04 305);
  --line-2: oklch(0.44 0.04 305);
  --ink: oklch(0.965 0.01 90);
  --ink-2: oklch(0.82 0.02 300);
  --ink-3: oklch(0.70 0.025 300);
  --gold: oklch(0.83 0.13 85);
  --gold-deep: oklch(0.72 0.14 78);
  --gold-ink: oklch(0.22 0.05 80);
  --pumpkin: oklch(0.72 0.19 48);
  --venom: oklch(0.87 0.22 138);
  --venom-ink: oklch(0.2 0.08 140);
  --blood: oklch(0.64 0.2 25);
  --blood-soft: oklch(0.3 0.09 25);
  --paper: oklch(0.985 0.004 90);
  --paper-ink: oklch(0.2 0.03 305);
  --paper-ink-2: oklch(0.45 0.03 305);
  --display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --body: 'Libre Franklin', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --r: 12px;
  --z-sticky: 10; --z-overlay: 20; --z-toast: 30;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; min-height: 100dvh;
}
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--gold); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.muted { color: var(--ink-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.25rem; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s var(--ease-out), border-color .18s var(--ease-out), transform .18s var(--ease-out), opacity .18s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: oklch(0.87 0.13 85); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: var(--bg-2); border-color: var(--ink-3); }
.btn-venom { background: var(--venom); color: var(--venom-ink); }
.btn-danger { background: transparent; border-color: var(--blood); color: oklch(0.8 0.15 25); }
.btn-danger:hover { background: var(--blood-soft); }
.btn-sm { min-height: 36px; padding: 0 .8rem; font-size: .875rem; border-radius: 8px; }
.btn-lg { min-height: 58px; padding: 0 1.75rem; font-size: 1.05rem; }
.btn.is-busy { position: relative; color: transparent; }
.btn.is-busy::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--gold-ink) transparent var(--gold-ink) transparent; animation: spin .7s linear infinite; }
.btn-ghost.is-busy::after { border-color: var(--ink) transparent var(--ink) transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- forms ---------- */
.field { display: grid; gap: .4rem; }
.field > label, .field > .lbl { font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: .8rem; color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: .6rem .85rem; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--ink);
  transition: border-color .15s var(--ease-out), background-color .15s var(--ease-out);
}
.input::placeholder { color: var(--ink-3); }
.input:hover, .select:hover { border-color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold); background: var(--bg-3); box-shadow: 0 0 0 3px oklch(0.83 0.13 85 / .22); }
.input[aria-invalid="true"] { border-color: var(--blood); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.4rem; }
.textarea { min-height: 84px; resize: vertical; }
.row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.err { color: oklch(0.82 0.15 25); font-size: .9rem; min-height: 1.4em; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.seg label { flex: 1; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 .5rem; border-radius: 9px; font-size: .9rem; font-weight: 600; color: var(--ink-2); text-align: center; cursor: pointer; transition: background-color .15s var(--ease-out), color .15s var(--ease-out); }
.seg input:checked + span { background: var(--gold); color: var(--gold-ink); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); }
.stepper button { width: 46px; height: 46px; border: 0; background: transparent; color: var(--ink); font-size: 1.4rem; cursor: pointer; border-radius: 10px; }
.stepper button:hover { background: var(--bg-3); }
.stepper output { min-width: 3.5rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.switch { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 99px; background: var(--line-2); position: relative; transition: background-color .15s; margin: 0; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); transition: transform .15s var(--ease-out); }
.switch input:checked { background: var(--venom); }
.switch input:checked::after { transform: translateX(18px); background: var(--venom-ink); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translate(-50%, 8px); z-index: var(--z-toast); background: var(--ink); color: var(--bg); padding: .7rem 1rem; border-radius: 10px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease-out); max-width: min(92vw, 480px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--blood); color: #fff; }

/* =========================================================
   PUBLIC POSTER (index)
   ========================================================= */
.poster { position: relative; min-height: 100dvh; overflow: hidden; isolation: isolate; }
.moon { position: absolute; z-index: -1; right: -6vw; top: -30vw; width: 54vw; max-width: 680px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, oklch(0.93 0.03 90) 0 34%, oklch(0.86 0.03 90) 35% 60%, oklch(0.78 0.03 95) 61% 100%);
  box-shadow: 0 0 120px 40px oklch(0.9 0.05 90 / .12), inset -30px -20px 80px oklch(0.55 0.05 300 / .35);
  opacity: 0; animation: moonrise 1.4s var(--ease-out) .1s forwards; }
.moon::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background:
  radial-gradient(circle at 63% 58%, oklch(0.7 0.03 95 / .5) 0 5%, transparent 6%),
  radial-gradient(circle at 30% 66%, oklch(0.7 0.03 95 / .45) 0 8%, transparent 9%),
  radial-gradient(circle at 58% 24%, oklch(0.7 0.03 95 / .4) 0 4%, transparent 5%),
  radial-gradient(circle at 74% 36%, oklch(0.72 0.03 95 / .35) 0 3%, transparent 4%); }
.fog { position: absolute; z-index: -1; inset: auto -10% -10% -10%; height: 55vh; pointer-events: none;
  background: radial-gradient(60% 50% at 30% 100%, oklch(0.5 0.05 305 / .35), transparent 70%), radial-gradient(50% 45% at 80% 100%, oklch(0.45 0.06 300 / .3), transparent 70%); }
.bats { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.bats svg { position: absolute; width: 34px; fill: oklch(0.1 0.03 305); opacity: 0; animation: bat 1.2s var(--ease-out) forwards; }
/* spooks: cobweb corner, drifting ghosts, jack-o'-lantern patch */
.spooks { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.web { position: absolute; left: 0; top: 0; width: clamp(90px, 10vw, 140px); height: auto; opacity: 0; animation: fadein 1s var(--ease-out) .6s forwards; }
.ghost { position: absolute; width: clamp(56px, 7vw, 96px); height: auto; opacity: 0; filter: drop-shadow(0 0 18px oklch(0.97 0.01 90 / .35)); animation: ghostin 1s var(--ease-out) forwards, float 5.5s ease-in-out 1s infinite; }
.ghost.g1 { left: 34%; top: 74%; animation-delay: .8s, 1.8s; }
.ghost.g2 { right: 3%; bottom: 10%; width: clamp(44px, 5vw, 72px); animation-delay: 1.1s, 2.4s; animation-duration: 1s, 7s; }
.patch { position: absolute; left: clamp(1rem, 4vw, 3rem); bottom: 0; display: flex; align-items: flex-end; gap: -10px; opacity: 0; animation: rise .8s var(--ease-out) .55s forwards; }
.pumpkin { height: auto; filter: drop-shadow(0 -6px 30px oklch(0.8 0.17 60 / .35)); }
.pumpkin .face { animation: flicker 3.2s ease-in-out infinite; }
.pumpkin.p1 { width: clamp(90px, 11vw, 170px); }
.pumpkin.p2 { width: clamp(120px, 14vw, 220px); margin-left: -18px; z-index: 1; }
.pumpkin.p2 .face { animation-delay: -1.4s; }
.pumpkin.p3 { width: clamp(70px, 8vw, 120px); margin-left: -14px; }
.pumpkin.p3 .face { animation-delay: -2.2s; }
.patch-inline { display: none; align-items: flex-end; justify-content: center; margin: 1.75rem 0 .5rem; opacity: 0; animation: rise .6s var(--ease-out) .45s forwards; }
.patch-inline .pumpkin.p1 { width: 26vw; }
.patch-inline .pumpkin.p2 { width: 34vw; margin-left: -4vw; z-index: 1; }
.patch-inline .pumpkin.p3 { width: 20vw; margin-left: -3vw; }
@keyframes fadein { to { opacity: 1; } }
@keyframes ghostin { to { opacity: .92; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-16px) rotate(2deg); } }
@keyframes flicker { 0%, 100% { opacity: 1; } 42% { opacity: .78; } 47% { opacity: 1; } 71% { opacity: .85; } }
@keyframes moonrise { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes bat { from { opacity: 0; transform: translate(40px, 30px) rotate(-12deg); } to { opacity: 1; transform: none; } }

.poster-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 520px); gap: clamp(2rem, 6vw, 6rem); align-items: start;
  width: min(1240px, 100%); margin: 0 auto; padding: clamp(1.5rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem) clamp(11rem, 18vw, 16rem); }
.copy { padding-top: clamp(1rem, 8vh, 6rem); container-type: inline-size; min-width: 0; }
.hosts { display: inline-flex; align-items: center; gap: .75rem; font-weight: 600; color: var(--gold); font-size: clamp(.95rem, 1.2vw, 1.1rem); }
.hosts { flex-wrap: wrap; row-gap: .4rem; }
.hosts .logo { display: block; width: clamp(200px, 26vw, 300px); height: auto; }
.hosts .cohost { font-size: clamp(1rem, 1.4vw, 1.2rem); }
.logo-sm { display: block; height: 22px; width: auto; }
.topbar .brand { display: inline-flex; align-items: center; gap: .6rem; }
.title { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .86; letter-spacing: -0.01em;
  font-size: clamp(3.4rem, 22cqw, 9.5rem); margin-top: 1rem; color: var(--ink); overflow-wrap: anywhere; }
.title .line { display: block; opacity: 0; transform: translateY(.35em); animation: rise .7s var(--ease-out) forwards; }
.title .line:nth-child(2) { animation-delay: .08s; color: var(--pumpkin); text-shadow: 0 0 40px oklch(0.7 0.19 45 / .45); }
.title .line:nth-child(3) { animation-delay: .16s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.tagline { font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--ink-2); margin-top: 1.25rem; max-width: 30ch; opacity: 0; animation: rise .6s var(--ease-out) .25s forwards; }
.facts { margin-top: 2rem; display: grid; gap: .35rem; font-size: clamp(1.05rem, 1.5vw, 1.25rem); opacity: 0; animation: rise .6s var(--ease-out) .32s forwards; }
.facts .when { font-weight: 700; color: var(--ink); }
.facts .where { display: grid; gap: .1rem; }
.facts .where .venue { color: var(--ink); font-weight: 600; }
.facts .where a { color: var(--ink-2); text-decoration-color: var(--line-2); text-underline-offset: 3px; justify-self: start; }
.facts .tba { color: var(--ink-3); font-style: italic; }
.details { margin-top: 1.5rem; max-width: 52ch; color: var(--ink-2); opacity: 0; animation: rise .6s var(--ease-out) .4s forwards; }
.raffle-note { display: flex; gap: .75rem; align-items: flex-start; margin-top: 2rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r); max-width: 46ch; color: var(--ink-2); opacity: 0; animation: rise .6s var(--ease-out) .48s forwards; }
.raffle-note svg { width: 28px; height: 28px; flex: none; color: var(--venom); }
.raffle-note b { color: var(--ink); }

.rsvp { position: sticky; top: 1.5rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 16px; background: oklch(0.16 0.035 305 / .82); backdrop-filter: blur(10px); opacity: 0; animation: rise .7s var(--ease-out) .3s forwards; }
.rsvp h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 2.2rem; line-height: .95; }
.rsvp .lede { color: var(--ink-2); margin-top: .35rem; margin-bottom: 1.4rem; font-size: .95rem; }
.rsvp form { display: grid; gap: 1.1rem; }
.rsvp .hp { position: absolute; left: -9999px; }
.verify { display: grid; gap: 1.1rem; animation: rise .35s var(--ease-out); }
.verify-lede { color: var(--ink-2); }
.verify-lede b { color: var(--ink); white-space: nowrap; }
.code-input { font-family: var(--mono); font-size: 1.8rem; letter-spacing: .5em; text-align: center; padding-left: .5em; min-height: 64px; }
.verify-links { color: var(--ink-3); font-size: .9rem; text-align: center; }
.linkish { background: none; border: 0; padding: 0; color: var(--gold); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkish:disabled { color: var(--ink-3); cursor: default; text-decoration: none; }
.closed { padding: 1rem; border: 1px dashed var(--line-2); border-radius: 10px; color: var(--ink-2); }

@media (max-width: 860px) {
  .poster-grid { grid-template-columns: 1fr; }
  .copy { padding-top: 2rem; }
  .moon { right: -40vw; top: -62vw; width: 88vw; }
  .seg span { font-size: .8rem; padding: 0 .25rem; }
  .rsvp { position: static; backdrop-filter: none; background: var(--bg-2); }
  .ghost { display: none; }
  .patch { display: none; }
  .patch-inline { display: flex; }
  .web { width: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  .moon, .bats svg, .title .line, .tagline, .facts, .details, .raffle-note, .rsvp, .web, .patch, .patch-inline { animation: none; opacity: 1; transform: none; }
  .ghost { animation: none; opacity: .92; }
  .pumpkin .face { animation: none; }
}

/* =========================================================
   TICKET
   ========================================================= */
.ticket-page { display: grid; place-items: start center; padding: clamp(1rem, 4vw, 3rem) 1rem 3rem; }
.ticket-wrap { width: min(100%, 440px); display: grid; gap: 1rem; }
.ticket { background: var(--paper); color: var(--paper-ink); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px -30px oklch(0 0 0 / .8), 0 0 0 1px oklch(1 0 0 / .06); }
.ticket-head { padding: 1.5rem 1.5rem 1.25rem; background: var(--bg-3); color: var(--ink); }
.ticket-hosts { color: var(--gold); font-weight: 600; font-size: .9rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.ticket-hosts .logo-sm { height: 20px; }
.ticket-title { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 2.8rem; line-height: .9; margin-top: .3rem; }
.ticket-when { margin-top: .6rem; font-weight: 600; }
.ticket-where { color: var(--ink-2); font-size: .95rem; }
.ticket-perf { position: relative; height: 0; border-top: 2px dashed oklch(0.75 0.02 305); }
.ticket-perf::before, .ticket-perf::after { content: ''; position: absolute; top: -13px; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); }
.ticket-perf::before { left: -13px; } .ticket-perf::after { right: -13px; }
.ticket-body { padding: 1.5rem 1.5rem 1.4rem; text-align: center; }
.ticket-admit { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-ink-2); font-weight: 600; }
.ticket-name { font-size: 1.5rem; font-weight: 700; line-height: 1.2; margin-top: .15rem; }
.ticket-plus { display: inline-block; margin-left: .25rem; padding: .05em .5em; border-radius: 99px; background: var(--gold); color: var(--gold-ink); font-size: .8rem; vertical-align: middle; }
.ticket-qr { width: min(260px, 70vw); margin: 1.25rem auto 0; }
.ticket-qr svg { display: block; width: 100%; height: auto; }
.ticket-code { margin-top: 1rem; font-family: var(--mono); font-size: 1.7rem; font-weight: 700; letter-spacing: .25em; padding-left: .25em; }
.ticket-hint { margin-top: .6rem; color: var(--paper-ink-2); font-size: .9rem; max-width: 32ch; margin-inline: auto; }
.ticket-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.ticket-actions .btn { flex: 1; }
.ticket-foot { color: var(--ink-3); font-size: .85rem; text-align: center; }

/* =========================================================
   STAFF SHELL (login / door / raffle / admin)
   ========================================================= */
.staff { min-height: 100dvh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: var(--z-sticky); display: flex; align-items: center; gap: .75rem; padding: .6rem max(1rem, env(safe-area-inset-left)); background: oklch(0.16 0.035 305 / .9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar .brand { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 1.35rem; letter-spacing: .01em; color: var(--gold); text-decoration: none; }
.topbar nav { display: flex; gap: .25rem; margin-left: auto; }
.topbar nav a { padding: .4rem .7rem; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 600; }
.topbar nav a[aria-current] { background: var(--bg-3); color: var(--ink); }
.topbar nav a:hover { color: var(--ink); }
@media (max-width: 520px) { .topbar .brand span { display: none; } .topbar nav a { padding: .4rem .55rem; font-size: .85rem; } .topbar { gap: .5rem; } }
.wrap { width: min(1100px, 100%); margin: 0 auto; padding: 1.25rem 1rem 4rem; }
.counts { display: flex; gap: 1.5rem; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.counts div { display: grid; }
.counts b { font-size: 1.6rem; line-height: 1.1; }
.counts span { font-size: .8rem; color: var(--ink-3); }
.counts .pool b { color: var(--venom); }

/* login */
.login { margin: auto; width: min(100%, 380px); padding: 2rem 1rem; display: grid; gap: 1.25rem; }
.login h1 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 2.6rem; line-height: .9; }
.login form { display: grid; gap: 1rem; }
.login .note { padding: .85rem 1rem; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2); font-size: .9rem; }

/* door */
.door { display: grid; gap: 1rem; width: min(100%, 560px); margin: 0 auto; padding: 1rem 1rem 3rem; }
.viewfinder { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.viewfinder video { width: 100%; height: 100%; object-fit: cover; display: block; }
.viewfinder canvas { display: none; }
.reticle { position: absolute; inset: 14%; border-radius: 14px; pointer-events: none;
  background: linear-gradient(var(--gold), var(--gold)) top left / 28px 3px no-repeat, linear-gradient(var(--gold), var(--gold)) top left / 3px 28px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top right / 28px 3px no-repeat, linear-gradient(var(--gold), var(--gold)) top right / 3px 28px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom left / 28px 3px no-repeat, linear-gradient(var(--gold), var(--gold)) bottom left / 3px 28px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 28px 3px no-repeat, linear-gradient(var(--gold), var(--gold)) bottom right / 3px 28px no-repeat; }
.scanline { position: absolute; left: 14%; right: 14%; height: 2px; top: 14%; background: oklch(0.83 0.13 85 / .8); box-shadow: 0 0 12px var(--gold); animation: scan 2.2s ease-in-out infinite alternate; }
@keyframes scan { to { top: 84%; } }
.cam-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1.5rem; color: var(--ink-2); background: var(--bg-2); }
.manual { display: flex; gap: .5rem; }
.manual .input { font-family: var(--mono); letter-spacing: .2em; text-transform: uppercase; font-size: 1.15rem; }
.recent { display: grid; gap: .25rem; }
.recent h2 { font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .3rem; }
.recent li { display: flex; align-items: center; gap: .75rem; padding: .55rem .25rem; border-bottom: 1px solid var(--line); list-style: none; }
.recent ul { margin: 0; padding: 0; }
.recent .who { flex: 1; min-width: 0; }
.recent .who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent .who span { font-size: .8rem; color: var(--ink-3); }
.recent time { font-size: .8rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pill { display: inline-block; padding: .15em .6em; border-radius: 99px; font-size: .75rem; font-weight: 700; }
.pill.checked_in { background: var(--venom); color: var(--venom-ink); }
.pill.duplicate { background: var(--gold); color: var(--gold-ink); }
.pill.unknown, .pill.cancelled { background: var(--blood); color: #fff; }

.verdict { position: fixed; inset: 0; z-index: var(--z-overlay); display: grid; place-items: center; text-align: center; padding: 2rem; opacity: 0; pointer-events: none; transition: opacity .18s var(--ease-out); }
.verdict.show { opacity: 1; pointer-events: auto; }
.verdict.checked_in { background: var(--venom); color: var(--venom-ink); }
.verdict.duplicate { background: var(--gold); color: var(--gold-ink); }
.verdict.unknown, .verdict.cancelled { background: var(--blood); color: #fff; }
.verdict .big { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(3rem, 14vw, 6rem); line-height: .9; transform: scale(.94); transition: transform .22s var(--ease-out); }
.verdict.show .big { transform: none; }
.verdict .name { font-size: clamp(1.4rem, 5vw, 2.2rem); font-weight: 700; margin-top: 1rem; }
.verdict .sub { margin-top: .4rem; font-size: 1.05rem; opacity: .85; }
.verdict .tap { position: absolute; bottom: max(1.5rem, env(safe-area-inset-bottom)); font-size: .85rem; opacity: .7; }

/* raffle */
.raffle-stage { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; width: min(1200px, 100%); margin: 0 auto; padding: 1.5rem 1rem 3rem; min-height: calc(100dvh - 58px); }
.drum { display: grid; align-content: center; justify-items: center; text-align: center; gap: 1.5rem; padding: 2rem 1rem; border: 1px solid var(--line); border-radius: 20px; position: relative; overflow: hidden; }
.drum .prize { font-size: clamp(1rem, 2vw, 1.3rem); color: var(--gold); font-weight: 600; min-height: 1.5em; }
.drum .name { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .9; font-size: clamp(3.5rem, 11vw, 9rem); min-height: 1em; color: var(--ink); }
.drum .name.spinning { color: var(--ink-2); }
.drum .name.win { color: var(--venom); animation: pop .35s var(--ease-out); }
@keyframes pop { from { transform: scale(.9); } to { transform: none; } }
.drum .company { font-size: clamp(1rem, 2vw, 1.4rem); color: var(--ink-2); min-height: 1.5em; }
.drum .controls { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 1rem; }
.drum .controls .input { width: min(320px, 80vw); }
.drum .empty { color: var(--ink-3); max-width: 36ch; }
.drum .glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(60% 60% at 50% 55%, oklch(0.87 0.22 138 / .28), transparent 70%); transition: opacity .3s; }
.drum.win .glow { opacity: 1; }
.winners { display: grid; align-content: start; gap: .5rem; }
.winners h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 1.6rem; }
.winners ol { margin: 0; padding: 0; list-style: none; display: grid; gap: .4rem; }
.winners li { display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: center; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 10px; }
.winners li.void { opacity: .45; text-decoration: line-through; }
.winners li b { display: block; }
.winners li span { font-size: .8rem; color: var(--ink-3); }
@media (max-width: 900px) { .raffle-stage { grid-template-columns: 1fr; } }

/* admin */
.admin { display: grid; gap: 1.5rem; }
.admin-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between; }
.share { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.share code { font-family: var(--mono); background: var(--bg-2); border: 1px solid var(--line); padding: .35rem .6rem; border-radius: 8px; font-size: .9rem; }
.panel { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.panel > summary { list-style: none; cursor: pointer; padding: .9rem 1rem; font-weight: 700; display: flex; align-items: center; gap: .5rem; }
.panel > summary::-webkit-details-marker { display: none; }
.panel > summary::after { content: '+'; margin-left: auto; color: var(--ink-3); font-size: 1.2rem; }
.panel[open] > summary::after { content: '–'; }
.panel .panel-body { padding: 0 1rem 1.25rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.settings-form { display: grid; gap: 1rem; }
.settings-form .actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.tools { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.tools .input { max-width: 260px; }
.tools .select { max-width: 200px; }
.tools .spacer { flex: 1; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
th { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; background: var(--bg-2); position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
tr.cancelled td { opacity: .45; }
td .code { font-family: var(--mono); letter-spacing: .12em; }
td .sub { display: block; font-size: .8rem; color: var(--ink-3); white-space: nowrap; }
td .acts { display: flex; gap: .3rem; }
.tag { display: inline-block; padding: .1em .55em; border-radius: 6px; font-size: .75rem; font-weight: 700; background: var(--bg-3); color: var(--ink-2); }
.tag.tar { background: oklch(0.32 0.08 260); color: oklch(0.9 0.05 260); }
.tag.rm { background: oklch(0.32 0.09 30); color: oklch(0.92 0.05 30); }
.tag.in { background: var(--venom); color: var(--venom-ink); }
.tag.mail-err { background: var(--blood-soft); color: oklch(0.85 0.12 25); }
.empty-state { padding: 2.5rem 1rem; text-align: center; color: var(--ink-3); }
dialog { background: var(--bg-2); color: var(--ink); border: 1px solid var(--line-2); border-radius: 16px; padding: 1.5rem; width: min(92vw, 480px); }
dialog::backdrop { background: oklch(0 0 0 / .6); }
dialog h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 1.8rem; margin-bottom: 1rem; }
dialog form { display: grid; gap: .9rem; }
dialog .actions { display: flex; gap: .6rem; justify-content: flex-end; margin-top: .5rem; }
@media (max-width: 640px) { .btn-lg { width: 100%; } }
