/* PestaDuel! site pages (mode picker, pricing, my plan): each page carries both looks itself,
   tokens per theme and one layout. Loaded after /assets/theme/theme.css. */
:root {
  --bg-1: #1a0f3d; --bg-2: #2b1660; --text: #fff4dc; --muted: #d6c6f0;
  --a1: #ffc93c; --a1-deep: #f29e02; --a2: #ff5d8f; --a3: #2ec4b6; --ink: #2a1846; --bad: #ff7a85; --good: #5bd16b;
  --card: rgba(52, 26, 108, .74); --line: rgba(255, 244, 220, .2);
  --font-display: 'Lilita One', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 22px; --lift: 0 6px 0 rgba(0, 0, 0, .25), 0 18px 40px rgba(0, 0, 0, .3);
  color-scheme: dark;
}
:root[data-theme="space"] {
  --bg-1: #04050d; --bg-2: #0a0f2b; --text: #e8f1ff; --muted: #9aaad0;
  --a1: #3ef2ff; --a1-deep: #0a9fb3; --a2: #ff3ec8; --a3: #b6ff3e; --ink: #04050d; --bad: #ff4d6d; --good: #3dffa8;
  --card: rgba(14, 20, 56, .62); --line: rgba(120, 220, 255, .3);
  --font-display: 'Orbitron', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Exo 2', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --lift: 0 0 0 1px rgba(255, 255, 255, .03) inset, 0 20px 50px rgba(0, 0, 0, .35);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font-body); color: var(--text); -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse at 20% 120%, color-mix(in srgb, var(--a2) 35%, transparent), transparent 55%),
    radial-gradient(ellipse at 85% -10%, color-mix(in srgb, var(--a1) 22%, transparent), transparent 55%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
  background-color: var(--bg-1);
  background-attachment: fixed;
  transition: color .3s;
}
#sky { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.wrap { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 18px 16px 40px; }

/* Big-top stripe (carnival) or glowing hull edge (space). */
.edge { position: fixed; left: 0; right: 0; top: 0; height: 8px; z-index: 2; background: repeating-linear-gradient(90deg, #e63946 0 28px, #fff4dc 28px 56px); }
[data-theme="space"] .edge { height: 2px; background: linear-gradient(90deg, transparent, var(--a1) 20%, var(--a2) 80%, transparent); box-shadow: 0 0 18px var(--a1); }

.nav { display: flex; align-items: center; gap: 12px; padding: 10px 0 0; flex-wrap: wrap; }
.nav .spacer { flex: 1; }
.nav > a { color: var(--muted); font-weight: 800; text-decoration: none; font-size: 14px; }
.nav > a:hover { color: var(--text); }

.page-head { text-align: center; padding: clamp(24px, 5vh, 52px) 0 clamp(16px, 3vh, 28px); }
.kicker { margin: 0 0 10px; font: 900 13px var(--font-body); letter-spacing: .3em; text-transform: uppercase; color: var(--a1); }
.title { margin: 0; font: 400 clamp(36px, 6vw, 68px)/1.05 var(--font-display); color: var(--text); }
[data-theme="space"] .title { font-weight: 900; letter-spacing: .03em; font-size: clamp(30px, 5vw, 56px); text-shadow: 0 0 26px color-mix(in srgb, var(--a1) 35%, transparent); }
.lead { max-width: 680px; margin: 16px auto 0; font-size: clamp(16px, 2vw, 19px); line-height: 1.5; color: var(--muted); }
.lead b { color: var(--text); }

.card {
  padding: 20px 22px; border-radius: var(--radius); background: var(--card); border: 2px solid var(--line);
  box-shadow: var(--lift); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.card h2 { margin: 0 0 6px; font: 400 22px/1.15 var(--font-display); color: var(--a1); }
[data-theme="space"] .card h2 { font-weight: 800; font-size: 18px; letter-spacing: .03em; }
.muted { color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 14px; border: 0; cursor: pointer;
  font: 400 17px/1 var(--font-display); color: var(--ink); background: var(--a1); text-decoration: none;
  box-shadow: 0 5px 0 color-mix(in srgb, var(--a1) 60%, #000); transition: transform .15s, filter .15s;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 color-mix(in srgb, var(--a1) 60%, #000); }
.btn:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn.alt { background: var(--a2); box-shadow: 0 5px 0 color-mix(in srgb, var(--a2) 60%, #000); }
.btn.ghost { background: transparent; color: var(--text); border: 2px solid var(--line); box-shadow: none; }
.btn.small { padding: 9px 14px; font-size: 14px; }
[data-theme="space"] .btn { border-radius: 999px; font: 700 13px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 0 22px color-mix(in srgb, var(--a1) 45%, transparent); }
[data-theme="space"] .btn.alt { box-shadow: 0 0 22px color-mix(in srgb, var(--a2) 45%, transparent); }
[data-theme="space"] .btn.ghost { box-shadow: none; }

.field { display: grid; gap: 6px; font-weight: 800; font-size: 14px; color: var(--muted); }
.field input, .field select {
  font: 700 16px var(--font-body); color: var(--ink); background: #fff4dc; border: 2px solid transparent; border-radius: 12px; padding: 11px 13px; width: 100%;
}
[data-theme="space"] .field input, [data-theme="space"] .field select { color: var(--text); background: rgba(4, 6, 20, .7); border-color: var(--line); }
.field input:focus, .field select:focus { outline: none; border-color: var(--a1); }

.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 900 11px var(--font-body); letter-spacing: .1em; text-transform: uppercase; border: 1.5px solid currentColor; }
.chip.on { color: var(--good); } .chip.ready { color: var(--a1); } .chip.off { color: var(--muted); } .chip.bad { color: var(--bad); }

table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
table.grid th, table.grid td { text-align: left; padding: 9px 10px; border-top: 1px solid var(--line); vertical-align: top; }
table.grid thead th { border-top: 0; color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.table-wrap { overflow-x: auto; }

.notice { padding: 12px 16px; border-radius: 14px; border: 2px solid var(--a1); background: color-mix(in srgb, var(--a1) 14%, transparent); font-weight: 700; }
.err { color: var(--bad); font-weight: 800; margin: 0; }
.ok { color: var(--good); font-weight: 800; margin: 0; }

footer { text-align: center; color: var(--muted); font-size: 13px; padding-top: 26px; }
footer a { color: var(--a1); }

@media (prefers-reduced-motion: reduce) { *, *::before { transition: none !important; } }

/* Camera QR scanner overlay (MD.scanQR in /assets/js/scan.js), e.g. on the claim desk. */
.qr-scan { position: fixed; inset: 0; z-index: 50; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 14px; padding: 0 16px max(24px, env(safe-area-inset-bottom)); }
.qr-scan video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qr-frame-box { position: absolute; left: 50%; top: 45%; width: min(70vw, 300px); aspect-ratio: 1; transform: translate(-50%, -50%); box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45); border-radius: 18px; }
.qr-frame-box i { position: absolute; width: 36px; height: 36px; border: 4px solid var(--a1); }
.qr-frame-box i:nth-child(1) { top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-radius: 16px 0 0 0; }
.qr-frame-box i:nth-child(2) { top: -2px; right: -2px; border-left: 0; border-bottom: 0; border-radius: 0 16px 0 0; }
.qr-frame-box i:nth-child(3) { bottom: -2px; left: -2px; border-right: 0; border-top: 0; border-radius: 0 0 0 16px; }
.qr-frame-box i:nth-child(4) { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-radius: 0 0 16px 0; }
.qr-scan.hit .qr-frame-box i { border-color: var(--good); }
.qr-hint { position: relative; margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(4, 5, 13, .75); font-weight: 700; text-align: center; }
.qr-scan .btn { position: relative; }
.qr-hint { color: #fff; }
