@font-face { font-family: 'Lilita One'; src: url('assets/fonts/lilita-one-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Karla'; src: url('assets/fonts/karla-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Karla'; src: url('assets/fonts/karla-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
html { background: #050d33; }
:root {
  --red: #e0457b;
  --red-dark: #8a1c4e;
  --green: #f2c230;
  --green-deep: #050d33;
  --green-mid: #0e2a7a;
  --gold: #f2c230;
  --gold-soft: #ffe08a;
  --cream: #fff8e6;
  --muted: #c3d0f0;
  --wood: #14338f;
  --wood-dark: #f2c230;
  --display: 'Lilita One', 'Trebuchet MS', Arial Rounded MT Bold, sans-serif;
  --body: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; position: relative;
  font-family: var(--body); color: var(--cream); line-height: 1.5;
  background:
    radial-gradient(circle at 12% 8%, rgba(255,200,60,0.30) 0 3px, transparent 60px),
    radial-gradient(circle at 88% 14%, rgba(255,90,170,0.28) 0 3px, transparent 70px),
    radial-gradient(circle at 20% 55%, rgba(255,214,120,0.18) 0 3px, transparent 80px),
    radial-gradient(circle at 85% 70%, rgba(255,214,120,0.20) 0 3px, transparent 70px),
    radial-gradient(circle at 50% -10%, #1f3fb0, var(--green-deep) 65%);
  background-attachment: fixed;
}
/* falling confetti */
body::before, body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: url('assets/pattern-confetti.svg'); background-repeat: repeat;
}
body::before { background-size: 160px 160px; opacity: 0.30; animation: snow1 28s linear infinite; }
body::after  { background-size: 90px 90px;  opacity: 0.18; animation: snow2 17s linear infinite; }
@keyframes snow1 { to { background-position: 60px 320px; } }
@keyframes snow2 { to { background-position: -40px 270px; } }
@media (prefers-reduced-motion: reduce) { body::before, body::after { animation: none; } }

.wrap { max-width: 480px; margin: 0 auto; padding: 0 0 60px; position: relative; z-index: 1; }

header { text-align: center; padding: 28px 16px 18px; position: relative; }
header img.badge { width: 84px; height: 84px; margin-bottom: 8px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5)); }
.presents { font-weight: 700; color: var(--gold-soft); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 10px; }

/* gold-framed title plaque, like the poster */
.sign {
  position: relative; margin: 14px 6px 0; padding: 20px 14px 16px; border-radius: 18px;
  background: linear-gradient(180deg, #1a3cae, #0b1f66 70%, #081650);
  border: 4px solid var(--gold);
  box-shadow: 0 0 0 3px #0b1f66, 0 0 22px rgba(255,210,70,0.55), 0 12px 22px rgba(0,0,0,0.5);
}

.sign::before { content: '★  ★  ★'; position: absolute; left: 0; right: 0; top: -15px; text-align: center; color: var(--gold); font-size: 1.1rem; letter-spacing: 0.5em; text-shadow: 0 0 8px rgba(255,210,70,0.9); }
.sign::after { content: ''; }
h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 2.35rem; line-height: 1.02; text-transform: uppercase; letter-spacing: 0.01em; }
h1 span { -webkit-text-stroke: 5px #0a1650; paint-order: stroke fill; text-shadow: 0 3px 0 rgba(0,0,0,0.35); }
h1 .w0 { color: #ffd43b; }
h1 .w1 { color: #ffffff; }
.sign h1 { display: block; }

.ribbon {
  display: inline-block; margin: 16px 0 0; padding: 8px 22px; font-family: var(--display); font-size: 1.02rem;
  letter-spacing: 0.04em; color: #0a1650; background: linear-gradient(180deg, #ffe58a, var(--gold));
  border: 2px solid #fff3c0; border-radius: 6px; box-shadow: 0 3px 0 #8a6a08;
}
.ribbon:empty { display: none; }

.hero-illustration { display: block; width: 100%; max-width: 360px; margin: 18px auto 0; border-radius: 16px; box-shadow: 0 6px 20px rgba(0,0,0,0.5); }
.hero-illustration.hero-small { max-width: 200px; margin-top: 10px; }
.muted { color: var(--muted); }
header p.muted { font-size: 0.9rem; margin: 0; }
.small { font-size: 0.78rem; text-align: center; margin: 20px 16px 0; }

/* cards */
.card {
  position: relative; overflow: hidden; margin: 18px 16px 0; padding: 18px 18px 20px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,243,214,0.30); box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}
.card::before { content: ''; display: block; height: 8px; margin: -18px -18px 16px; background: repeating-linear-gradient(90deg, #ffd43b 0 10px, #ff5da2 10px 20px, #4dd0ff 20px 30px, #fff 30px 40px); }
.card h2 { margin: 0 0 14px; padding-bottom: 10px; font-family: var(--display); font-weight: 400; font-size: 1.15rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold-soft); border-bottom: 1px solid rgba(255,243,214,0.25); }

/* what's on */
.info-card { text-align: center; }
.meet { margin: 0 0 14px; padding: 8px 10px; font-family: var(--display); font-size: 1.25rem; color: #0a1650; background: linear-gradient(180deg, #fff6df, #f3dca4); border-radius: 10px; border: 2px solid var(--gold); }
.meet .r { color: #c2185b; }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 14px; font-size: 0.82rem; line-height: 1.25; }
.perks > div { padding: 10px 4px; border-radius: 10px; background: rgba(255,255,255,0.08); }
.perks .ico { display: block; font-size: 1.7rem; margin-bottom: 4px; }
.perks b { color: var(--gold-soft); }
.times { margin: 0; padding: 10px 8px; font-family: var(--display); font-size: 1.02rem; color: #0a1650; border-radius: 8px; background: linear-gradient(180deg, #ffe58a, var(--gold)); border: 2px solid #fff3c0; }
.times b { color: #8a1c4e; font-weight: 400; } .times .star { color: #8a1c4e; margin: 0 4px; }

/* tickets */
.ticket-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.10); }
.ticket-row:last-child { border-bottom: none; }
.ticket-info { flex: 1; }
.ticket-name { font-weight: 700; color: var(--cream); font-size: 1.02rem; }
.ticket-price { display: inline-block; margin-top: 3px; padding: 1px 10px; font-family: var(--display); font-size: 1.1rem; color: #0a1650; background: linear-gradient(180deg, #ffe58a, var(--gold)); border-radius: 6px; border: 1px solid #b08a10; }
.ticket-remaining { color: var(--muted); font-size: 0.78rem; margin-top: 4px; font-style: italic; }
.qty-controls { display: flex; align-items: center; gap: 12px; }
.qty-controls button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--gold); background: transparent; color: var(--gold-soft); font-size: 1.2rem; cursor: pointer; font-family: inherit; display: flex; align-items: center; justify-content: center; }
.qty-controls button:disabled { opacity: 0.35; cursor: not-allowed; }
.qty-controls span { min-width: 16px; text-align: center; font-weight: 700; font-size: 1.05rem; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--gold); }
.total-row span { color: var(--muted); font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase; }
.total-row strong { color: var(--gold-soft); font-family: var(--display); font-weight: 400; font-size: 1.6rem; }

label { display: block; margin-bottom: 14px; font-size: 0.8rem; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; font-weight: 700; }
input { width: 100%; margin-top: 7px; padding: 12px; border-radius: 10px; border: 2px solid rgba(255,243,214,0.35); background: rgba(0,0,0,0.30); color: var(--cream); font-size: 1rem; font-family: var(--body); }
input::placeholder { color: rgba(255,243,214,0.40); }
input:focus { outline: none; border-color: var(--gold); }

button#pay-btn, button.pay-btn {
  width: 100%; padding: 15px; border: none; border-radius: 12px; margin-top: 6px; cursor: pointer;
  background: linear-gradient(180deg, #e0303c, var(--red)); color: #fff; font-family: var(--display); font-size: 1.15rem;
  letter-spacing: 0.05em; text-transform: uppercase; box-shadow: 0 4px 0 var(--red-dark), 0 8px 16px rgba(0,0,0,0.4);
}
button#pay-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--red-dark); }
button#pay-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.error { color: #ffb4a8; font-size: 0.85rem; min-height: 1em; margin-top: 8px; }
.sumup-note, .footer-note { text-align: center; font-size: 0.74rem; color: var(--muted); margin-top: 10px; }
.sponsor-footer { text-align: center; padding: 20px 24px 10px; }
.sponsor-label { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 8px; }
.sponsor-logo { width: 90px; height: auto; opacity: 0.92; }

/* gate scanner */
#reader { border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,243,214,0.35); }
#result { margin-top: 14px; font-size: 1.15rem; text-align: center; font-weight: 700; min-height: 1.4em; }

.timeline { list-style: none; margin: 0 0 14px; padding: 0; text-align: left; }
.timeline li { display: flex; gap: 12px; align-items: baseline; padding: 9px 4px; border-bottom: 1px dashed rgba(255,248,230,0.25); font-size: 0.92rem; line-height: 1.3; }
.timeline li:last-child { border-bottom: none; }
.timeline b { flex: 0 0 92px; font-family: var(--display); font-weight: 400; font-size: 0.98rem; color: var(--gold-soft); }
.timeline li:nth-child(2) b { color: #7fe3ff; } .timeline li:nth-child(3) b { color: #ff8fc4; }
