:root { --night:#0b1a2e; --night2:#132a47; --gold:#f2c14e; --red:#b3261e; --cream:#fff6e5; --ink:#1d2433; --ok:#1f7a4d; --warn:#b26a00; }
* { box-sizing:border-box; margin:0; padding:0; }
html { background:var(--night); }
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color:var(--cream);
  background: linear-gradient(var(--night2), var(--night)) fixed; min-height:100vh; -webkit-font-smoothing:antialiased; line-height:1.5; }
a { color:inherit; }
.wrap { max-width: 620px; margin:0 auto; padding: 28px 20px 56px; }
.wrap.wide { max-width: 1100px; }
.top { text-align:center; margin-bottom: 22px; }
.top .kicker { font-size:12px; letter-spacing:.22em; text-transform:uppercase; color:var(--gold); }
.top h1 { font-family:"Playfair Display", Georgia, serif; font-size: clamp(34px, 8vw, 52px); line-height:1.05; margin:6px 0 8px; }
.top p { font-size:14px; opacity:.9; }
.card { background:var(--cream); color:var(--ink); border-radius:16px; padding:24px; margin-top:18px; }
.card h2 { font-family:"Playfair Display", Georgia, serif; font-size:24px; margin-bottom:6px; color:var(--night); }
.card p.lead { margin-bottom:16px; font-size:15px; }
label { display:block; font-size:13px; font-weight:600; margin:14px 0 6px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], select, input[type=file] {
  width:100%; padding:13px 12px; font-size:16px; border:1.5px solid #c9c2b2; border-radius:10px; background:#fff; color:var(--ink); }
input:focus, select:focus { outline:3px solid rgba(242,193,78,.6); border-color:var(--gold); }
.hint { font-size:12.5px; color:#5a6072; margin-top:5px; }
.btn { display:inline-block; width:100%; text-align:center; padding:15px 20px; margin-top:20px; border:0; border-radius:999px;
  background:var(--red); color:#fff; font-size:16px; font-weight:600; text-decoration:none; cursor:pointer; }
.btn.gold { background:var(--gold); color:#2a1a00; }
.btn.ghost { background:transparent; color:var(--night); border:1.5px solid var(--night); }
.btn.small { width:auto; padding:9px 16px; font-size:14px; margin-top:0; }
.choice { display:block; text-decoration:none; background:var(--cream); color:var(--ink); border-radius:16px; padding:22px; margin-top:16px; border:2px solid transparent; }
.choice:hover, .choice:focus-visible { border-color:var(--gold); }
.choice strong { display:block; font-family:"Playfair Display", Georgia, serif; font-size:22px; color:var(--night); }
.choice span { font-size:14px; }
.choice em { display:block; margin-top:10px; font-style:normal; font-weight:600; color:var(--red); }
.msg { border-radius:10px; padding:12px 14px; margin:14px 0 0; font-size:14.5px; }
.msg.err { background:#fde8e6; color:#8a1c14; border:1px solid #f2b8b3; }
.msg.ok { background:#e3f4ea; color:#14532d; border:1px solid #a7d7b9; }
.msg.info { background:#fff1cf; color:#5c4100; border:1px solid #efd48a; }
.total { display:flex; justify-content:space-between; align-items:baseline; margin-top:18px; padding-top:14px; border-top:1px dashed #c9c2b2; font-size:15px; }
.total b { font-size:24px; color:var(--night); }
.back { display:inline-block; margin-top:18px; font-size:14px; opacity:.9; }
/* pass */
.pass { background:var(--cream); color:var(--ink); border-radius:20px; overflow:hidden; margin-top:18px; }
.pass .head { background:var(--red); color:#fff; padding:18px 22px; }
.pass .head small { letter-spacing:.2em; text-transform:uppercase; font-size:11px; opacity:.9; }
.pass .head h2 { font-family:"Playfair Display", Georgia, serif; font-size:28px; line-height:1.1; margin-top:4px; }
.pass .body { padding:20px 22px 24px; text-align:center; }
.pass .qr { background:#fff; display:inline-block; padding:10px; border-radius:12px; border:1px solid #e3dccb; }
.pass .qr svg { display:block; width:min(64vw, 260px); height:auto; }
.pass .admits { font-size:15px; margin-top:14px; }
.pass .admits b { font-size:30px; display:block; color:var(--night); font-family:"Playfair Display", Georgia, serif; }
.pass .code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size:18px; letter-spacing:.12em; margin-top:8px; }
.pass dl { text-align:left; margin-top:18px; border-top:1px dashed #c9c2b2; padding-top:14px; font-size:14px; }
.pass dt { font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--red); margin-top:10px; }
/* tables */
table { width:100%; border-collapse:collapse; font-size:13.5px; }
th, td { text-align:left; padding:8px 10px; border-bottom:1px solid #e3dccb; vertical-align:top; }
th { font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:#5a6072; }
.stats { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px,1fr)); gap:12px; margin-top:14px; }
.stat { background:#fff; border-radius:12px; padding:14px; border:1px solid #e3dccb; }
.stat b { display:block; font-size:26px; color:var(--night); }
.stat span { font-size:12px; color:#5a6072; }
.tag { display:inline-block; padding:2px 8px; border-radius:999px; font-size:11.5px; font-weight:600; }
.tag.ok { background:#e3f4ea; color:#14532d; } .tag.wait { background:#fff1cf; color:#5c4100; } .tag.bad { background:#fde8e6; color:#8a1c14; }
.scroll { overflow-x:auto; }
/* gate */
.result { border-radius:16px; padding:22px; margin-top:16px; text-align:center; color:#fff; }
.result.good { background:var(--ok); } .result.used { background:var(--warn); } .result.bad { background:#8a1c14; }
.card .result h2 { font-size:30px; line-height:1.1; color:#fff; } .result p { margin-top:6px; font-size:17px; }
.result .big { font-size:54px; font-weight:700; line-height:1; margin:10px 0 2px; }
#reader { margin-top:14px; border-radius:12px; overflow:hidden; background:#000; }
@media print { body { background:#fff; } .noprint { display:none !important; } .wrap { padding:0; } }
.checks { list-style:none; font-size:14.5px; } .checks li { padding:7px 0; border-bottom:1px solid #e3dccb; } .checks li:last-child { border-bottom:0; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size:13px; background:#fff; padding:1px 5px; border-radius:5px; border:1px solid #e3dccb; word-break:break-all; }
