@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: #0a2a18; }
:root {
  --red: #c8202b;
  --red-dark: #8f1019;
  --green: #1e7a3c;
  --green-deep: #0a2a18;
  --green-mid: #124a2a;
  --gold: #f2b630;
  --gold-soft: #ffd978;
  --cream: #fff3d6;
  --muted: #cfe3d3;
  --wood: #9a6430;
  --wood-dark: #5e3a18;
  --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,196,80,0.28) 0 3px, transparent 60px),
    radial-gradient(circle at 88% 14%, rgba(255,90,70,0.25) 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%, #1d6b3c, var(--green-deep) 65%);
  background-attachment: fixed;
}
/* falling snow */
body::before, body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: url('assets/pattern-snow.svg'); background-repeat: repeat;
}
body::before { background-size: 160px 160px; opacity: 0.20; animation: snow1 28s linear infinite; }
body::after  { background-size: 90px 90px;  opacity: 0.13; 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; }

/* wooden sign title, like the poster */
.sign {
  position: relative; margin: 14px 6px 0; padding: 26px 14px 14px; border-radius: 22px;
  background:
    repeating-linear-gradient(92deg, rgba(0,0,0,0.07) 0 3px, transparent 3px 11px),
    linear-gradient(180deg, #b27a3f, var(--wood) 55%, #7d4e22);
  border: 4px solid var(--wood-dark);
  box-shadow: 0 6px 0 #3e2510, 0 12px 22px rgba(0,0,0,0.5);
}
.sign::before { /* snow on top of the sign */
  content: ''; position: absolute; left: 6%; right: 6%; top: -16px; height: 28px; border-radius: 30px 30px 14px 14px;
  background: #fff; box-shadow: 0 2px 0 #cfd9e6;
}
.sign::after { /* holly */
  content: '🌿🍒'; position: absolute; left: -8px; top: -14px; font-size: 1.5rem; transform: rotate(-14deg); filter: drop-shadow(0 2px 2px rgba(0,0,0,0.4));
}
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: 6px #fff3d6; paint-order: stroke fill; text-shadow: 0 3px 0 rgba(0,0,0,0.25); }
h1 .w0 { color: var(--red); }
h1 .w1 { color: var(--green); }
.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: #fff; background: linear-gradient(180deg, #d92a35, var(--red-dark));
  border: 2px solid var(--gold); border-radius: 6px; box-shadow: 0 3px 0 #5a0a10;
}
.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(-45deg, var(--red) 0 10px, #fff 10px 20px); }
.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: var(--red-dark); background: linear-gradient(180deg, #fff6df, #f3dca4); border-radius: 10px; border: 2px solid var(--gold); }
.meet .r { color: var(--red); } .meet .g { color: var(--green); }
.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: #fff; border-radius: 8px; background: linear-gradient(180deg, #d92a35, var(--red-dark)); border: 2px solid var(--gold); }
.times b { color: var(--gold-soft); font-weight: 400; } .times .star { color: var(--gold); 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: #7a1f0a; background: linear-gradient(180deg, #ffd978, var(--gold)); border-radius: 6px; border: 1px solid #b27a14; }
.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; }
