/* Components. Colours and fonts come from theme.css. */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--cream); font: 500 15.5px/1.55 var(--font-body); background: var(--night-950);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
body::before { /* the night-sky artwork, fixed behind everything and darkened so text stays readable */
  content: ''; position: fixed; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(5, 10, 30, 0.25), rgba(5, 10, 30, 0.78) 48%, var(--night-950) 100%),
    var(--bg-art) center top / cover no-repeat,
    linear-gradient(180deg, var(--night-800), var(--night-950));
}
body::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 38% at 85% 0%, rgba(47, 91, 255, 0.3), transparent 70%); }
body.plain::before { background: linear-gradient(180deg, var(--night-800), var(--night-950) 70%); }
a { color: var(--gold-300); }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; line-height: 1.05; letter-spacing: 0.2px; }
.muted { color: rgba(255, 246, 227, 0.62); }
.snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; max-width: 1120px; margin: 0 auto; padding: 12px max(14px, env(safe-area-inset-right, 0px)) 0 max(14px, env(safe-area-inset-left, 0px)); }
.topbar-in { display: flex; align-items: center; gap: 8px; padding: 7px 8px 7px 8px; border-radius: 999px; background: rgba(10, 18, 54, 0.62); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--glass-line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); margin-right: auto; min-width: 0; }
.brand img { width: 44px; height: 44px; flex: none; display: block; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.5)); }
.brand b { font: 700 italic 24px/1 var(--font-display); letter-spacing: 0.3px; background: linear-gradient(180deg, var(--gold-100), var(--gold-500)); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.topbar .nav-link { color: var(--cream); text-decoration: none; font-size: 14px; font-weight: 600; padding: 9px 14px; border-radius: 999px; }
.topbar .nav-link:hover { background: var(--glass-2); }
.icon-btn, .lang { height: 40px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass); color: var(--cream); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn { width: 40px; font-size: 18px; color: var(--gold-300); }
.icon-btn.off { opacity: 0.45; text-decoration: line-through; }
.lang { padding: 3px; }
.lang span { padding: 6px 11px; font-size: 12px; font-weight: 700; border-radius: 999px; color: rgba(255, 246, 227, 0.65); }
.lang span.on { background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); color: #241500; }
@media (max-width: 560px) { .brand b { font-size: 20px; } .topbar .nav-link { display: none; } }

/* ---------- layout ---------- */
.shell { max-width: 1120px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); position: relative; z-index: 6; }
.narrow { max-width: 640px; }
.panel { position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)); border: 1px solid var(--glass-line); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: var(--radius-xl); padding: clamp(18px, 3.4vw, 34px); box-shadow: var(--shadow); }
.panel > h2, .sec-title { font-size: clamp(34px, 6vw, 52px); }
.sec-sub { margin: 8px 0 0; color: rgba(255, 246, 227, 0.7); max-width: 56ch; }
.chip-glass { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-weight: 600; font-size: 14px; color: var(--cream); }
.hero-chips .chip-glass { background: rgba(7, 12, 40, 0.8); backdrop-filter: blur(26px) saturate(1.3); -webkit-backdrop-filter: blur(26px) saturate(1.3); border-color: rgba(255, 255, 255, 0.28); }
.chip-glass.red { background: linear-gradient(180deg, #e8405a, #9a1b31); border-color: rgba(255, 175, 185, 0.55); color: #fff; box-shadow: 0 8px 20px rgba(196, 40, 63, 0.35); }
.chip-glass.gold { background: linear-gradient(180deg, rgba(255, 217, 120, 0.22), rgba(242, 184, 75, 0.1)); border-color: rgba(255, 217, 120, 0.5); color: var(--gold-100); }
.chip-glass .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(47, 197, 138, 0.2); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; font: 700 16px/1 var(--font-body); color: #241500;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); box-shadow: 0 12px 30px rgba(242, 184, 75, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.7); transition: transform 0.15s, filter 0.15s, box-shadow 0.15s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn.go { justify-content: space-between; padding: 0 7px 0 26px; height: 60px; font-size: 17px; color: #fff; background: linear-gradient(180deg, #ee4a63, #b02339 55%, #7e1527); border: 1px solid rgba(255, 190, 200, 0.4); box-shadow: 0 14px 32px rgba(196, 40, 63, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn.go .arrow { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, var(--gold-100), var(--gold-500)); color: #6a0f1f; font-size: 20px; transition: transform 0.2s; }
.btn.go:hover .arrow { transform: translateX(3px) rotate(-8deg); }
.btn.red { color: #fff; background: linear-gradient(180deg, #e0364e, var(--red-800)); box-shadow: 0 12px 28px rgba(196, 40, 63, 0.35); }
.btn.green { color: #05281a; background: linear-gradient(180deg, #5fe3b0, var(--ok)); box-shadow: 0 10px 24px rgba(47, 197, 138, 0.3); }
.btn.ghost { color: var(--cream); background: var(--glass); border: 1px solid var(--glass-line); box-shadow: none; backdrop-filter: blur(10px); }
.card .btn.ghost { color: var(--ink); background: transparent; border-color: rgba(16, 20, 51, 0.28); backdrop-filter: none; }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn.block { width: 100%; }

/* ---------- forms ---------- */
.field { display: block; }
.field + .field, .field + .row2, .row2 + .field { margin-top: 14px; }
.row2 > .field { margin-top: 0; } /* both fields of a row start on the same line */
.field > span { display: block; margin-bottom: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-300); }
.field small { display: block; margin-top: 6px; font-size: 13px; color: rgba(255, 246, 227, 0.6); }
.input { width: 100%; height: 56px; padding: 0 18px; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.08); border: 1px solid var(--glass-line); color: var(--cream); font-size: 16px; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.input::placeholder { color: rgba(255, 246, 227, 0.38); }
.input:focus { outline: none; border-color: var(--gold-300); background: rgba(255, 255, 255, 0.12); box-shadow: 0 0 0 4px rgba(255, 217, 120, 0.2); }
.input.bad { border-color: var(--bad); box-shadow: 0 0 0 4px rgba(255, 90, 110, 0.18); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.alert { padding: 13px 16px; border-radius: var(--radius-md); font-size: 14.5px; margin-top: 14px; border: 1px solid transparent; }
.alert.bad { background: rgba(255, 90, 110, 0.14); color: #ffd3d9; border-color: rgba(255, 90, 110, 0.45); }
.alert.info { background: rgba(47, 197, 138, 0.14); color: #c8f7e3; border-color: rgba(47, 197, 138, 0.45); }
.alert.warn { background: rgba(242, 184, 75, 0.14); color: var(--gold-100); border-color: rgba(242, 184, 75, 0.45); }
.spin { width: 18px; height: 18px; border: 3px solid rgba(255, 217, 120, 0.3); border-top-color: var(--gold-300); border-radius: 50%; animation: spin 0.9s linear infinite; display: inline-block; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 25%, rgba(255, 255, 255, 0.14) 50%, rgba(255, 255, 255, 0.06) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--radius-md); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: clamp(560px, 52vw, 640px); margin: 8px 0 90px; isolation: isolate; }
.hero-copy { position: relative; z-index: 6; max-width: 600px; padding: clamp(104px, 10.5vw, 128px) 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.hero-word { width: min(560px, 100%); height: auto; display: block; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5)); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chips .ic { color: var(--gold-300); font-size: 15px; }
.fx { position: absolute; pointer-events: none; will-change: transform; transform: translate3d(calc(var(--mx, 0) * var(--d, 10) * 1px), calc(var(--my, 0) * var(--d, 10) * 1px), 0); transition: transform 0.25s ease-out; }
.fx img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.55)); }
.fx.train { right: 0; bottom: -34px; width: 62%; z-index: 2; --d: 8; }
.fx.train img { filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6)); }
.fx.swirl { left: 38%; bottom: -20px; width: 40%; z-index: 1; opacity: 0.9; --d: 14; }
.fx.mascot { right: 24%; bottom: -100px; width: min(27%, 330px); z-index: 12; --d: 22; }
.fx.mascot img { animation: bob 5.5s ease-in-out infinite; }
.fx.envelope { right: 3%; top: 2%; width: min(15%, 170px); z-index: 12; --d: 34; }
.fx.envelope img { animation: floaty 6.5s ease-in-out infinite; }
.fx.gifts { right: 0; bottom: -100px; width: min(21%, 260px); z-index: 12; --d: 12; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(0.8deg); } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
.rise { animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: var(--delay, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.fx.rise { animation-name: fade; } @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 880px) {
  .hero { min-height: 980px; margin-bottom: 120px; }
  .hero-copy { align-items: center; text-align: center; max-width: none; padding-top: 92px; }
  .hero-chips { justify-content: center; }
  .fx.train { width: 100%; right: 0; bottom: 40px; }
  .fx.swirl { display: none; }
  .fx.mascot { width: 50%; right: 25%; bottom: -96px; }
  .fx.envelope { width: 21%; right: 3%; top: auto; bottom: 330px; }
  .fx.gifts { width: 34%; left: auto; right: 0; bottom: -92px; }
}
@media (min-width: 560px) and (max-width: 880px) { .hero { min-height: 1040px; } .fx.train { width: 80%; right: 4%; } .fx.mascot { width: 36%; right: 32%; } .fx.envelope { bottom: 380px; width: 15%; } .fx.gifts { width: 26%; } }
@media (prefers-reduced-motion: reduce) { .fx img { animation: none !important; } .rise { animation: none; } }

/* ---------- ticket cards (the notches are cut out of the card) ---------- */
.tix { display: grid; gap: 22px; margin-top: 26px; }
.tk { --nx: calc(100% - 168px); position: relative; display: grid; grid-template-columns: 1fr 168px; border-radius: 26px; color: var(--ink); background: linear-gradient(180deg, var(--parch-1), var(--parch-2));
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.38); transition: transform 0.2s, box-shadow 0.2s;
  -webkit-mask: radial-gradient(circle 13px at var(--nx) 0, #0000 97%, #000) , radial-gradient(circle 13px at var(--nx) 100%, #0000 97%, #000); -webkit-mask-composite: source-in;
  mask: radial-gradient(circle 13px at var(--nx) 0, #0000 97%, #000), radial-gradient(circle 13px at var(--nx) 100%, #0000 97%, #000); mask-composite: intersect; }
.tk.has { box-shadow: 0 0 0 3px var(--red-600), 0 0 28px rgba(232, 64, 90, 0.45), 0 20px 44px rgba(0, 0, 0, 0.38); transform: translateY(-2px); }
.tk-main { position: relative; padding: 20px 20px 20px 116px; min-height: 124px; display: flex; flex-direction: column; justify-content: center; }
.tk-ic { position: absolute; left: 14px; top: 50%; width: 92px; transform: translateY(-52%); filter: drop-shadow(0 12px 14px rgba(40, 24, 0, 0.35)); }
.tk-name { font: 700 26px/1.05 var(--font-display); color: var(--ink); }
.tk-desc { margin-top: 5px; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.tk-stub { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; border-left: 2px dashed rgba(16, 20, 51, 0.24); }
.tk-price { font: 800 21px/1 var(--font-body); color: var(--ink); text-align: center; }
.tk-price small { display: block; margin-top: 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--ink-2); text-transform: uppercase; }
.stp { display: inline-flex; align-items: center; gap: 10px; }
.stp button { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; font-size: 22px; line-height: 1; display: grid; place-items: center; transition: transform 0.12s, opacity 0.12s; }
.stp button:active { transform: scale(0.9); }
.stp button[data-d='-1'] { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px rgba(16, 20, 51, 0.3); }
.stp button[data-d='1'] { background: linear-gradient(180deg, #e8405a, #9a1b31); color: #fff; box-shadow: 0 6px 14px rgba(10, 18, 54, 0.4); }
.stp button[disabled] { opacity: 0.3; cursor: not-allowed; }
.stp output { min-width: 26px; text-align: center; font: 700 28px/1 var(--font-display); color: var(--ink); }
@media (max-width: 620px) {
  .tk { --nx: 0px; grid-template-columns: 1fr; --cut: calc(100% - 74px);
    -webkit-mask: radial-gradient(circle 13px at 0 var(--cut), #0000 97%, #000), radial-gradient(circle 13px at 100% var(--cut), #0000 97%, #000); -webkit-mask-composite: source-in;
    mask: radial-gradient(circle 13px at 0 var(--cut), #0000 97%, #000), radial-gradient(circle 13px at 100% var(--cut), #0000 97%, #000); mask-composite: intersect; }
  .tk-main { padding: 18px 16px 18px 104px; min-height: 112px; }
  .tk-ic { width: 82px; left: 10px; }
  .tk-name { font-size: 24px; }
  .tk-stub { height: 74px; flex-direction: row; justify-content: space-between; padding: 0 18px; border-left: 0; border-top: 2px dashed rgba(16, 20, 51, 0.24); }
  .tk-price small { display: inline; margin-left: 6px; }
}
.phase-line { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hint { margin: 14px 4px 0; font-size: 13.5px; color: rgba(255, 246, 227, 0.66); }
.sum-line { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }

/* ---------- bottom bar ---------- */
.dock::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(90deg, rgba(232, 64, 90, 0.7), rgba(255, 217, 120, 0.5), rgba(232, 64, 90, 0.2)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.dock { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(14px, env(safe-area-inset-bottom, 0px)); z-index: 60; width: min(640px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 24px; border-radius: 999px;
  background: rgba(10, 18, 54, 0.78); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-line); box-shadow: var(--shadow); }
.dock .lbl { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 246, 227, 0.62); font-weight: 700; }
.dock .tot { font: 800 24px/1.1 var(--font-body); color: var(--gold-100); font-variant-numeric: tabular-nums; }
.dock .btn { margin-left: auto; }
.has-dock { padding-bottom: 120px; }
@media (max-width: 420px) { .dock { padding-left: 18px; } .dock .tot { font-size: 20px; } .btn.go { padding-left: 20px; font-size: 15px; } }

/* ---------- poster + footer ---------- */
.poster { margin: 56px 0 0; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--glass-line); box-shadow: var(--shadow); }
.poster img { display: block; width: 100%; height: auto; }
.agenda { margin-top: 22px; display: grid; gap: 10px; }
.agenda .row { display: flex; gap: 12px; align-items: baseline; padding: 12px 16px; border-radius: var(--radius-md); background: var(--glass); border: 1px solid var(--glass-line); }
.site-footer { text-align: center; padding: 40px 16px 50px; color: rgba(255, 246, 227, 0.62); font-size: 14px; }
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--gold-300); }
.closed-box { text-align: center; padding: 34px 10px; }
.closed-box h2 { font-size: 40px; }
.closed-box img { width: 150px; margin: 0 auto 8px; display: block; }

/* ---------- payment ---------- */
.stepper-row { display: flex; justify-content: center; gap: 8px; margin: 18px 0 22px; flex-wrap: wrap; }
.step { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); font-size: 13px; font-weight: 600; color: rgba(255, 246, 227, 0.6); }
.step i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--glass-2); }
.step.on { color: #241500; background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); border-color: transparent; }
.step.on i { background: rgba(36, 21, 0, 0.18); }
.step.done { color: var(--cream); }
.step.done i { background: var(--ok); color: #05281a; }
@media (max-width: 520px) { .step span { display: none; } .step.on span { display: inline; } }
.pay-grid { display: grid; grid-template-columns: 330px 1fr; gap: 26px; align-items: start; margin-top: 22px; }
@media (max-width: 800px) { .pay-grid { grid-template-columns: 1fr; } }
.amount-card { border-radius: var(--radius-lg); padding: 22px 24px; color: var(--ink); background: linear-gradient(180deg, var(--parch-1), var(--parch-2)); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.amount-card .k { font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.amount-card .big { font: 700 clamp(46px, 9vw, 64px)/1 var(--font-display); color: var(--ink); margin-top: 4px; }
.amount-card .ref { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 8px 8px 16px; border-radius: 999px; background: rgba(16, 20, 51, 0.08); font: 700 17px/1 'SF Mono', Menlo, Consolas, monospace; letter-spacing: 0.1em; color: var(--red-800); }
.qr-box { background: #fff; border-radius: var(--radius-lg); padding: 14px; text-align: center; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.qr-box img { width: 100%; height: auto; display: block; border-radius: 12px; min-height: 240px; }
.qr-box .skeleton { aspect-ratio: 1; background: linear-gradient(90deg, #eee 25%, #f7f7f7 50%, #eee 75%); background-size: 200% 100%; }
.qr-note { font-size: 12.5px; color: rgba(255, 246, 227, 0.62); text-align: center; margin: 10px 0 0; }
.rows { display: grid; gap: 10px; }
.crow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 18px; border-radius: var(--radius-md); background: var(--glass); border: 1px solid var(--glass-line); }
.crow .k { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 246, 227, 0.58); font-weight: 700; }
.crow .v { font-weight: 700; font-size: 16px; word-break: break-all; }
.mini { flex: none; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass-2); color: var(--cream); font-weight: 700; font-size: 13px; cursor: pointer; }
.amount-card .mini { background: var(--night-900); color: var(--gold-100); border: 0; height: 32px; }
.mini.done { background: var(--ok); color: #05281a; border-color: transparent; }
.status { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 16px 18px; border-radius: var(--radius-lg); background: rgba(242, 184, 75, 0.14); border: 1px solid rgba(242, 184, 75, 0.45); color: var(--gold-100); }
.status b { display: block; color: var(--cream); }
.status.bad { background: rgba(255, 90, 110, 0.14); border-color: rgba(255, 90, 110, 0.45); color: #ffd3d9; }
.success { position: relative; text-align: center; padding: 8px 0 6px; }
.success .mascot { width: min(300px, 70%); margin: 0 auto -6px; display: block; animation: bob 5.5s ease-in-out infinite; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.5)); }
.success h2 { font-size: clamp(40px, 8vw, 58px); }
.success p { margin: 10px auto 22px; max-width: 46ch; color: rgba(255, 246, 227, 0.74); }
.items { width: 100%; border-collapse: collapse; margin-top: 16px; }
.items td { padding: 9px 0; border-bottom: 1px dashed var(--glass-line); }
.items td:last-child { text-align: right; font-weight: 700; }

/* ---------- the ticket: KV art on top, dashed tear lines, details, QR, floating action bar ---------- */
#view { position: relative; max-width: 440px; margin: 64px auto 0; padding-bottom: 20px; }
.pass { --c1: 0px; --c2: 0px; position: relative; border-radius: 30px; color: var(--ink); background: #fffaf0; padding: 12px 12px 0; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.5);
  -webkit-mask: radial-gradient(circle 15px at 0 var(--c1), #0000 97%, #000), radial-gradient(circle 15px at 100% var(--c1), #0000 97%, #000), radial-gradient(circle 15px at 0 var(--c2), #0000 97%, #000), radial-gradient(circle 15px at 100% var(--c2), #0000 97%, #000);
  -webkit-mask-composite: source-in, source-in, source-in;
  mask: radial-gradient(circle 15px at 0 var(--c1), #0000 97%, #000), radial-gradient(circle 15px at 100% var(--c1), #0000 97%, #000), radial-gradient(circle 15px at 0 var(--c2), #0000 97%, #000), radial-gradient(circle 15px at 100% var(--c2), #0000 97%, #000);
  mask-composite: intersect; }
.t-art { border-radius: 22px; overflow: hidden; background: var(--night-900); box-shadow: inset 0 0 0 3px #fff; padding: 3px; }
.t-art img { display: block; width: 100%; height: auto; border-radius: 19px; }
.t-title { padding: 18px 14px 18px; }
.t-title h1 { font: 700 34px/1.02 var(--font-display); color: var(--ink); }
.t-title p { margin: 7px 0 0; font-size: 13.5px; font-weight: 700; color: var(--red-600); letter-spacing: 0.02em; }
.t-rule { border-top: 2px dashed var(--red-600); margin: 0 22px; opacity: 0.85; }
.t-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; padding: 20px 14px 22px; }
.t-grid .k { font-size: 11px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; color: #7d82a8; }
.t-grid .v { margin-top: 4px; font-size: 15.5px; font-weight: 800; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.t-grid .v.mono { font-family: 'SF Mono', Menlo, Consolas, monospace; letter-spacing: 0.1em; color: var(--red-600); }
.t-grid .full { grid-column: 1 / -1; }
.t-qr { padding: 24px 14px 26px; text-align: center; }
.t-qr .qr { display: inline-block; padding: 14px; background: #fff; border-radius: 22px; box-shadow: 0 10px 28px rgba(16, 20, 51, 0.16), 0 0 0 1px #eadfc4; }
.t-qr .qr svg { width: 196px; height: 196px; display: block; }
.t-qr .code { margin-top: 14px; font: 700 26px/1 'SF Mono', Menlo, Consolas, monospace; letter-spacing: 0.12em; color: var(--red-600); }
.t-qr .tip { margin-top: 6px; font-size: 13px; color: #7d82a8; }
.t-state { padding: 22px 14px 26px; text-align: center; }
.t-state h2 { font-size: 34px; color: var(--ink); }
.t-chip { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; background: rgba(47, 197, 138, 0.2); color: #0b6b47; }
.t-note { margin: 4px 14px 16px; padding: 11px 14px; border-radius: 14px; background: #fff0cc; color: #6b4a06; font-size: 13px; }
.t-agenda { margin: 0 14px 20px; padding: 13px 15px; border-radius: 16px; background: rgba(16, 20, 51, 0.06); font-size: 14px; }
.t-agenda b { display: block; margin-bottom: 4px; }
/* floating action bar, like the reference: round save button + pill with the QR icon */
.t-actions { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 8px; border-radius: 999px; background: rgba(10, 18, 54, 0.78); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-line); box-shadow: var(--shadow); }
.t-round { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: #05081c; color: var(--gold-300); font-size: 22px; }
.t-pill { flex: 1; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 18px 0 6px; border: 0; border-radius: 999px; cursor: pointer; color: #fff; font: 700 16px var(--font-body); background: linear-gradient(180deg, #ee4a63, #a81f37 60%, #7e1527); box-shadow: 0 10px 24px rgba(196, 40, 63, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.t-pill .qi { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, var(--gold-100), var(--gold-500)); }
.t-pill .qi svg { width: 26px; height: 26px; display: block; }
.t-pill .chev { margin-left: auto; letter-spacing: -2px; opacity: 0.75; }
.fx.perch { right: -34px; top: -112px; width: 190px; z-index: 20; --d: 12; }
@media (max-width: 520px) { .fx.perch { width: 140px; right: -8px; top: -84px; } .t-title h1 { font-size: 30px; } }
.qr-full { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 18px; background: rgba(5, 10, 30, 0.94); text-align: center; }
.qr-full .big { background: #fff; border-radius: 26px; padding: 18px; display: inline-block; }
.qr-full .big svg { width: min(78vw, 440px); height: min(78vw, 440px); display: block; }
.qr-full .code { margin-top: 18px; font: 700 30px/1 'SF Mono', Menlo, Consolas, monospace; letter-spacing: 0.14em; color: var(--gold-100); }
.qr-full p { margin: 8px 0 20px; color: rgba(255, 246, 227, 0.7); }
@media print { .snow, .topbar, .site-footer, .t-actions, #toasts, .fx, .dm-bar, .dm-btn { display: none !important; } body, body::before, body::after { background: #fff !important; } .pass { box-shadow: none; border: 1px solid #999; -webkit-mask: none; mask: none; } }

/* ---------- staff + door scanner (utility screens, same look) ---------- */
.card { position: relative; border-radius: var(--radius-lg); color: var(--ink); background: linear-gradient(180deg, var(--parch-1), var(--parch-2)); box-shadow: var(--shadow); }
.card-pad { padding: clamp(18px, 3vw, 28px); }
.card h2, .card h3 { color: var(--ink); }
.card h2 { font-size: 34px; }
.card .sub { color: var(--ink-2); margin: 6px 0 0; }
.card .field > span { color: var(--red-800); }
.card .field small, .card .muted { color: var(--ink-2); }
.card .input { background: #fff; color: var(--ink); border: 1.5px solid #e0d1ab; }
.card .input::placeholder { color: #9a98ad; }
.card .input:focus { border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(242, 184, 75, 0.3); }
.card .alert.bad { background: #ffe3e7; color: #7a1020; border-color: #f3b6bf; }
.card .alert.info { background: #def5ea; color: #0b4631; border-color: #aedcc5; }
.card .alert.warn { background: #fff0cc; color: #6b4a06; border-color: #f0d58d; }
.divider { height: 1px; background: rgba(16, 20, 51, 0.15); margin: 22px 0; }
.stack > * + * { margin-top: 16px; }
.login-card { max-width: 400px; margin: 40px auto; }
.sum { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.sum .big { font: 700 36px/1 var(--font-display); color: var(--red-800); }
.sum .lbl { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; }
.tabs { display: flex; gap: 8px; margin: 0 0 16px; flex-wrap: wrap; }
.tab { height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass); color: var(--cream); cursor: pointer; font-weight: 700; font-size: 14px; backdrop-filter: blur(10px); }
.tab.on { background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); color: #241500; border-color: transparent; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.fchip { height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid rgba(16, 20, 51, 0.18); background: #fff; color: var(--ink); cursor: pointer; font-weight: 700; font-size: 13.5px; }
.fchip b { margin-left: 5px; color: var(--red-800); }
.fchip.on { background: var(--night-900); color: #fff; border-color: var(--night-900); } .fchip.on b { color: var(--gold-300); }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.chip.PAID { background: #d7f4e6; color: #0b5a3b; } .chip.PENDING { background: #ffefc2; color: #6b4a06; }
.chip.REVIEW { background: #ffdcc4; color: #7a3406; } .chip.CANCELLED { background: #e6e6ee; color: #55556a; }
.orders { display: grid; gap: 10px; margin-top: 10px; }
.ord { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--radius-md); background: #fff; border: 1.5px solid rgba(16, 20, 51, 0.1); }
.ord.PENDING { border-left: 5px solid var(--warn); } .ord.REVIEW { border-left: 5px solid #ff8a4c; } .ord.PAID { border-left: 5px solid var(--ok); } .ord.CANCELLED { opacity: 0.6; }
.ord-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.ord .ref { font: 700 15px 'SF Mono', Menlo, Consolas, monospace; color: var(--red-800); letter-spacing: 0.08em; }
.ord .nm { font-weight: 700; } .ord .meta { font-size: 13px; color: var(--ink-2); }
.ord .amt { font: 700 22px var(--font-display); color: var(--red-800); }
.ord-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ord .note { font-size: 12.5px; color: var(--ink-2); background: #f6efdb; padding: 6px 10px; border-radius: 10px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat { background: #fff; border: 1.5px solid rgba(16, 20, 51, 0.1); border-radius: var(--radius-md); padding: 14px; }
.stat .n { font: 700 34px/1 var(--font-display); color: var(--red-800); }
.stat .l { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th, .tbl td { text-align: left; padding: 9px 6px; border-bottom: 1px solid rgba(16, 20, 51, 0.12); }
.tbl td:last-child, .tbl th:last-child { text-align: right; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toolbar .input { flex: 1; min-width: 200px; }
.modal-bg { position: fixed; inset: 0; background: rgba(5, 10, 30, 0.72); backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 80; padding: 16px; }
.modal { background: linear-gradient(180deg, var(--parch-1), var(--parch-2)); color: var(--ink); border-radius: var(--radius-lg); padding: 24px; max-width: 420px; width: 100%; box-shadow: var(--shadow); }
.modal h3 { font-size: 28px; margin-bottom: 8px; } .modal .btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.seg { display: flex; gap: 8px; margin-top: 12px; } .seg label { flex: 1; } .seg input { display: none; }
.seg span { display: block; text-align: center; padding: 11px; border: 1.5px solid rgba(16, 20, 51, 0.2); border-radius: 14px; cursor: pointer; font-weight: 700; font-size: 14px; }
.seg input:checked + span { background: var(--night-900); color: var(--gold-100); border-color: var(--night-900); }
.scan-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.pillbar { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass); color: var(--cream); font-weight: 700; font-size: 13.5px; cursor: pointer; backdrop-filter: blur(10px); }
.pill.on { background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); color: #241500; border-color: transparent; }
.pill.static { cursor: default; display: inline-flex; align-items: center; }
.pill.warn { background: rgba(242, 184, 75, 0.2); color: var(--gold-100); border-color: rgba(242, 184, 75, 0.5); }
.viewport { position: relative; background: #03060f; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--glass-line); aspect-ratio: 1; max-width: 420px; margin: 0 auto; box-shadow: var(--shadow); }
.viewport video { object-fit: cover; }
.viewport .placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: rgba(255, 246, 227, 0.7); }
#result:not(:empty) { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 28px 12px calc(12px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(180deg, transparent, rgba(5, 10, 30, 0.85) 35%); }
.result { margin: 0 auto; max-width: 420px; border-radius: var(--radius-xl); padding: 24px 18px; text-align: center; color: #fff; box-shadow: var(--shadow); animation: rise 0.25s ease-out; }
.result.ok { background: linear-gradient(160deg, #27b783, #0b5a3b); } .result.warn { background: linear-gradient(160deg, #e9a62b, #8a5a05); } .result.bad { background: linear-gradient(160deg, #e0364e, #6d1020); }
.result .big { font: 700 40px/1 var(--font-display); letter-spacing: 0.5px; }
.result .nm { font-size: 22px; font-weight: 700; margin: 8px 0 2px; } .result .sub2 { opacity: 0.92; font-size: 15px; }
.result .acts { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.result .stp output { color: #fff; } .result .stp button[data-d='-1'] { color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6); } .result .stp button[data-d='1'] { background: #fff; color: #0b5a3b; }
.result .btn { min-width: 150px; }
.manual { max-width: 420px; margin: 14px auto 0; }
.matches { max-width: 420px; margin: 10px auto 0; display: grid; gap: 8px; }
.match { text-align: left; background: var(--parch-1); color: var(--ink); border: 0; border-radius: 14px; padding: 12px 16px; cursor: pointer; }
.match b { display: block; } .match small { color: var(--ink-2); }
.switch { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255, 246, 227, 0.85); margin-top: 14px; justify-content: center; }
#toasts { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(92vw, 420px); }
.toast { background: var(--night-900); color: #fff; padding: 13px 18px; border-radius: 16px; border: 1px solid var(--glass-line); box-shadow: var(--shadow); font-size: 14.5px; transition: opacity 0.4s; }
.toast.ok { background: #0b5a3b; } .toast.bad { background: var(--red-800); } .toast.out { opacity: 0; }
body.demo #print { display: none; }
.sep { border: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--red-600), var(--gold-300) 45%, transparent); margin: 32px 0; opacity: 0.8; }

/* ---------- the train light: a beam from the lantern to the cursor (or to the title on a phone) ---------- */
.spot-dim, .spot-glow, .spot-beam, .spot-lamp, .spot-shine { position: absolute; pointer-events: none; opacity: 0; transition: opacity 0.7s ease; }
.spot.on.ready .spot-dim, .spot.on.ready .spot-glow, .spot.on.ready .spot-beam, .spot.on.ready .spot-lamp, .spot.on.ready .spot-shine { opacity: 1; }
/* the dimming sits BELOW the text layer and is capped at ~45 %, so everything stays readable */
.spot-dim { inset: 0 -50vw; z-index: 3; background: radial-gradient(circle at calc(var(--sx, 0px) + 50vw) var(--sy, 50%), rgba(2, 5, 18, 0) 0, rgba(2, 5, 18, 0) 150px, rgba(2, 5, 18, 0.32) 500px, rgba(2, 5, 18, 0.38) 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 82%, transparent 100%); }
.spot-glow { inset: 0 -50vw; z-index: 5; mix-blend-mode: screen; background: radial-gradient(circle at calc(var(--sx, 0px) + 50vw) var(--sy, 50%), rgba(255, 204, 120, 0.34) 0, rgba(255, 188, 98, 0.15) 110px, rgba(255, 178, 90, 0) 260px); }
.spot-beam { left: 0; top: 0; z-index: 4; width: var(--bw, 300px); height: var(--bh, 140px); margin-top: calc(var(--bh, 140px) / -2); transform-origin: 0 50%; transform: translate(var(--lx, 0px), var(--ly, 0px)) rotate(var(--ba, 0rad));
  filter: blur(16px); mix-blend-mode: screen; }
/* the cone is cut on the inner element and the blur is applied to its parent, so the edges are soft; the far end fades out completely */
.spot-beam i { display: block; width: 100%; height: 100%; clip-path: polygon(0 47%, 100% 6%, 100% 94%, 0 53%); background: linear-gradient(90deg, rgba(255, 232, 170, 0.6) 0, rgba(255, 208, 130, 0.26) 50%, rgba(255, 200, 120, 0) 100%); }
.spot-lamp { left: 0; top: 0; z-index: 8; width: 190px; height: 190px; margin: -95px 0 0 -95px; transform: translate(var(--lx, 0px), var(--ly, 0px)); mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255, 236, 170, 0.85) 0, rgba(255, 200, 110, 0.35) 35%, rgba(255, 190, 100, 0) 70%); animation: flicker 3.2s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { filter: brightness(1); } 45% { filter: brightness(1.18); } 60% { filter: brightness(0.92); } }
.lantern { position: absolute; z-index: 30; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: radial-gradient(circle, rgba(255, 226, 150, 0.95) 0, rgba(255, 200, 110, 0.45) 45%, rgba(255, 190, 100, 0) 72%); }
.lantern::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(255, 226, 150, 0.7); animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { transform: scale(0.7); opacity: 0.9; } 100% { transform: scale(1.55); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .spot-lamp, .lantern::after { animation: none; } }

/* the light falls ON the gold letters: a highlight clipped to the shape of the wordmark itself, so the title is lit, not covered */
.spot-shine { z-index: 7; mix-blend-mode: soft-light; -webkit-mask: url('../assets/art/wordmark.webp') center / 100% 100% no-repeat; mask: url('../assets/art/wordmark.webp') center / 100% 100% no-repeat;
  background: radial-gradient(circle 150px at var(--wx, 50%) var(--wy, 50%), rgba(255, 238, 180, 0.9) 0, rgba(255, 220, 140, 0.45) 45%, rgba(255, 210, 130, 0) 100%); }
/* a glint that sweeps across the lettering every few seconds (only the letters and the ribbon: same mask as the title) */
.word-glint { position: absolute; z-index: 8; pointer-events: none; mix-blend-mode: screen; -webkit-mask: url('../assets/art/wordmark.webp') center / 100% 100% no-repeat; mask: url('../assets/art/wordmark.webp') center / 100% 100% no-repeat;
  background: linear-gradient(105deg, rgba(255, 248, 215, 0) 0, rgba(255, 248, 215, 0) 45%, rgba(255, 246, 205, 0.6) 50%, rgba(255, 248, 215, 0) 55%, rgba(255, 248, 215, 0) 100%) no-repeat; background-size: 260% 100%; animation: glint 7s ease-in-out infinite 1.5s; }
@keyframes glint { 0% { background-position: 100% 0; } 38%, 100% { background-position: 0 0; } }
/* the title itself takes a warm halo while the light is on */
.hero-word { filter: drop-shadow(0 0 0 rgba(255, 196, 110, 0)) drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5)); transition: filter 0.9s ease; }
.hero.lit .hero-word { filter: drop-shadow(0 0 14px rgba(255, 190, 100, 0.42)) drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5)); }
@media (prefers-reduced-motion: reduce) { .word-glint { display: none; } }

/* the bottom bar slides and fades in instead of popping */
.dock { opacity: 0; transform: translate(-50%, 26px); pointer-events: none; transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.dock.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

/* ticket code instead of a QR */
.t-codelbl { font-size: 12px; letter-spacing: 1.6px; font-weight: 800; text-transform: uppercase; color: #7d82a8; }
.t-qr .codebox { display: inline-block; margin-top: 10px; padding: 14px 22px; background: #fff; border: 2px dashed var(--red, #d6283f); border-radius: 16px; font-size: clamp(24px, 8vw, 34px); letter-spacing: .14em; color: var(--red, #d6283f); user-select: all; }
.qr-full .big { background: #fff; border-radius: 26px; padding: 26px 22px; font: 700 clamp(28px, 9vw, 52px)/1 'SF Mono', Menlo, Consolas, monospace; letter-spacing: .12em; color: #d6283f; }
.qr-full .tip2 { margin-top: 14px; color: rgba(255, 246, 227, 0.7); font-size: 15px; letter-spacing: .1em; }
.match .mcode { font-family: 'SF Mono', Menlo, Consolas, monospace; font-weight: 800; color: var(--red, #d6283f); letter-spacing: .08em; }
