:root {
  --bg: #090e16;
  --card: #141c2a;
  --card-2: #1b2638;
  --ink: #e7eef6;
  --muted: #93a4b8;
  --line: rgba(226, 177, 90, 0.28);
  --brass: #e2b15a;
  --active: #8ee0b4;
  --inactive: #f0a0a0;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: "Source Sans 3", sans-serif;
}
.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(520px 280px at 12% -8%, rgba(226, 177, 90, 0.18), transparent 70%),
    radial-gradient(640px 360px at 100% 0%, rgba(58, 92, 150, 0.35), transparent 68%),
    radial-gradient(480px 320px at 80% 100%, rgba(226, 177, 90, 0.08), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}
.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(rgba(255, 255, 255, 0.35) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}
h1, h2 { font-family: Syne, sans-serif; letter-spacing: -0.03em; }
.digits { font-family: "IBM Plex Mono", ui-monospace, monospace; letter-spacing: 0.08em; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}
.eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 700;
  color: var(--brass);
}
.lede { color: var(--muted); }
.gate {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.ticket {
  width: min(480px, 100%);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 28px;
  position: relative;
  overflow: hidden;
  animation: rise 0.55s ease both;
}
.ticket::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  background: linear-gradient(100deg, transparent, rgba(226, 177, 90, 0.16), transparent);
  transform: translateX(-120%);
  animation: sheen 4.8s ease-in-out infinite;
}
.ticket > * { position: relative; }
label { display: grid; gap: 6px; font-weight: 600; margin: 14px 0; }
input, textarea, select {
  border: 1px solid rgba(147, 164, 184, 0.28);
  border-radius: 10px;
  padding: 10px 12px;
  background: #0d1420;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 4px rgba(226, 177, 90, 0.12);
}
button.primary, form button[type="submit"] {
  background: linear-gradient(180deg, #f0c56e, #c8922e);
  color: #1a1206;
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(226, 177, 90, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
button.primary:hover, form button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(226, 177, 90, 0.4);
}
button.ghost {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(147, 164, 184, 0.35);
  border-radius: 999px;
  padding: 10px 16px;
  transition: border-color 0.18s ease, background 0.18s ease;
}
button.ghost:hover { border-color: var(--brass); background: rgba(226, 177, 90, 0.08); }
.error { color: var(--inactive); min-height: 1.2em; }
.desk {
  position: relative;
  padding: 28px clamp(16px, 4vw, 48px) 64px;
  animation: rise 0.45s ease both;
}
.top, .top-actions, .code-row, .form-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.top { justify-content: space-between; flex-wrap: wrap; }
.top h1 { margin: 0; font-size: clamp(32px, 4vw, 48px); }
.stats { display: flex; gap: 12px; margin: 22px 0; flex-wrap: wrap; }
.stat {
  background: var(--card);
  border: 1px solid rgba(147, 164, 184, 0.16);
  border-radius: 14px;
  padding: 12px 16px;
  min-width: 120px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  animation: rise 0.5s ease both;
}
.stat:nth-child(2) { animation-delay: 70ms; }
.stat:nth-child(3) { animation-delay: 140ms; }
.stat b {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}
.stat span { color: var(--muted); }
.sheet {
  background: rgba(20, 28, 42, 0.92);
  border: 1px solid rgba(147, 164, 184, 0.16);
  border-radius: 18px;
  overflow: auto;
  box-shadow: var(--shadow);
}
.sheet-head, .row {
  display: grid;
  grid-template-columns: 1.4fr 90px 1.4fr 120px 120px 110px;
  gap: 12px;
  padding: 14px 18px;
  align-items: center;
  min-width: 820px;
}
.sheet-head {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px dashed var(--brass);
}
.row {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  animation: row-in 0.4s ease both;
  transition: background 0.18s ease;
}
.row:hover { background: rgba(226, 177, 90, 0.07); }
.row button.link {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  font-weight: 700;
  color: var(--ink);
}
.row button.link:hover { color: var(--brass); }
.digits { font-size: 20px; color: var(--brass); text-shadow: 0 0 18px rgba(226, 177, 90, 0.35); }
.digits.flash { animation: flash 0.45s ease; }
.pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
}
.pill.active {
  color: #062117;
  background: var(--active);
  box-shadow: 0 0 16px rgba(142, 224, 180, 0.35);
}
.pill.inactive { color: #3a1212; background: var(--inactive); }
dialog {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(520px, calc(100% - 24px));
}
dialog::backdrop {
  background: rgba(4, 7, 12, 0.72);
  backdrop-filter: blur(6px);
}
dialog[open] .ticket { animation: pop 0.28s ease both; }
.code-row {
  justify-content: space-between;
  border-top: 1px dashed var(--brass);
  border-bottom: 1px dashed var(--brass);
  margin: 12px 0 8px;
  padding: 12px 0;
}
.micro { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions { justify-content: flex-end; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, 18px, 0); }
}
@keyframes sheen {
  0%, 55% { transform: translateX(-130%); }
  80%, 100% { transform: translateX(280%); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes row-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes pop {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes flash {
  from { color: #fff; text-shadow: 0 0 22px #fff; }
  to { color: var(--brass); }
}
@media (max-width: 720px) {
  .dates { grid-template-columns: 1fr; }
  .code-row { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
