:root {
  --bg: #FFF9F0; --paper: #FFFDF7; --edge: #E6DCC8; --perf: #C9BCA3;
  --ink: #171A35; --ink-2: #4A4D68; --muted: #6E7088;
  --primary: #6E5CE6; --gold: #FFD166; --navy: #171A35; --warn: #A15C00;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101226; --paper: #1D2044; --edge: #343869; --perf: #4A4E80;
    --ink: #F5F1EA; --ink-2: #C4C2D6; --muted: #9496AE; --primary: #9D90F8; --warn: #FFC56B;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink-2);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }
header.hero {
  background: linear-gradient(180deg, #171A35, #3B2F7A 70%, #8B6BC4);
  color: #FFF9F0; border-radius: 0 0 24px 24px; padding: 40px 16px 32px; text-align: center;
}
header.hero img { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
header.hero h1 { font-family: "New York", "Iowan Old Style", Georgia, serif; font-size: 34px; margin: 16px 0 4px; color: #FFF9F0; }
header.hero p { margin: 0; color: #D9D4F2; }
.board {
  display: inline-block; margin-top: 16px; padding: 6px 12px; border-radius: 6px;
  background: rgba(0,0,0,.28); border: 1px solid rgba(255,249,240,.15);
  font: 700 12px/1.4 ui-monospace, Menlo, monospace; letter-spacing: .08em; color: #D9D4F2;
}
.board b { color: var(--gold); font-weight: 700; }
.sign {
  display: flex; align-items: center; gap: 12px; margin: 36px 0 12px;
}
.sign span {
  background: var(--navy); color: #FFF9F0; border-radius: 6px; padding: 6px 12px;
  font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  box-shadow: inset 0 0 0 2.5px var(--navy), inset 0 0 0 3.3px rgba(255,249,240,.35);
}
.sign::after { content: ""; flex: 1; border-top: 1.5px dashed var(--perf); }
.ticket {
  background: var(--paper); border: 1px solid var(--edge); border-radius: 14px;
  padding: 18px 20px; box-shadow: 0 3px 10px rgba(23,26,53,.06);
}
.ticket + .ticket { margin-top: 12px; }
h2, h3 { font-family: "New York", "Iowan Old Style", Georgia, serif; color: var(--ink); line-height: 1.3; }
h2 { font-size: 22px; margin: 0 0 8px; }
h3 { font-size: 18px; margin: 18px 0 6px; }
p, li { margin: 0 0 10px; }
ul { padding-left: 20px; margin: 0 0 10px; }
strong { color: var(--ink); }
a { color: var(--primary); }
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.stamp {
  background: var(--paper); border: 2px dashed var(--perf); border-radius: 6px; padding: 14px;
}
.stamp b { display: block; color: var(--ink); font-family: "New York", Georgia, serif; font-size: 17px; margin-bottom: 4px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-top: 1px dashed var(--perf); }
th { color: var(--ink); font-weight: 600; white-space: nowrap; }
.muted { color: var(--muted); font-size: 14px; }
footer { margin-top: 40px; text-align: center; color: var(--muted); font-size: 14px; }
footer a { margin: 0 8px; }
@media (max-width: 520px) { th { white-space: normal; } header.hero h1 { font-size: 28px; } }
