@font-face { font-family: "Archivo Black"; src: url("archivo-black.woff2") format("woff2"); font-display: swap; }

:root {
  --night: #0b0f24;
  --night-2: #141a3a;
  --gold: #e0b040;
  --gold-2: #f6d98a;
  --ink: #ffffff;
  --muted: #aab0c8;
  --line: rgba(255, 255, 255, .14);
  --danger: #ff8f8f;
  --title: "Archivo Black", "Arial Black", Impact, system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--ink); font: 17px/1.55 var(--body); overflow-x: hidden; }
a { color: var(--gold); }
h1, h2, h3 { font-family: var(--title); font-weight: 400; line-height: 1.08; margin: 0; text-wrap: balance; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 32px, 620px); margin-inline: auto; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: end; overflow: hidden; background: #05070f center/cover no-repeat; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 7, 15, .55) 0%, rgba(5, 7, 15, .05) 30%, rgba(5, 7, 15, .35) 55%, rgba(11, 15, 36, .96) 100%); pointer-events: none; }
.hero-top { position: absolute; z-index: 2; top: max(18px, env(safe-area-inset-top)); left: 0; right: 0; display: flex; justify-content: center; }
.hero-top img { width: min(46vw, 230px); height: auto; filter: drop-shadow(0 2px 14px rgba(0, 0, 0, .7)); }
.hero-body { position: relative; z-index: 2; padding: 0 0 max(76px, calc(env(safe-area-inset-bottom) + 64px)); text-align: center; }
.badge { display: inline-block; background: var(--gold); color: var(--night); font-weight: 800; font-size: 14px; letter-spacing: .04em; padding: 7px 14px; border-radius: 999px; margin-bottom: 16px; text-transform: uppercase; }
.hero h1 { font-size: clamp(34px, 9.4vw, 64px); text-transform: uppercase; text-shadow: 0 2px 24px rgba(0, 0, 0, .65); }
.hero h1 span { color: var(--gold); display: block; }
.hero .where { margin: 14px 0 22px; font-size: clamp(15px, 4.2vw, 19px); font-weight: 600; text-shadow: 0 1px 10px rgba(0, 0, 0, .8); }
.hero .where b { color: var(--gold-2); font-weight: 700; }
.sound { position: absolute; z-index: 3; right: 14px; top: max(14px, env(safe-area-inset-top)); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(5, 7, 15, .55); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); }
.sound svg { width: 22px; height: 22px; }
.sound[aria-pressed="true"] { background: var(--gold); color: var(--night); border-color: var(--gold); }
.sound .on, .sound[aria-pressed="true"] .off { display: none; }
.sound[aria-pressed="true"] .on { display: block; }
.scroll-hint { position: absolute; z-index: 2; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); margin-left: -22px; width: 44px; height: 44px; display: grid; place-items: center; color: #fff; border-radius: 50%; border: 1px solid var(--line); background: rgba(5, 7, 15, .35); backdrop-filter: blur(4px); animation: appear .6s 2.3s both, bob 1.8s 2.9s ease-in-out infinite; }
.scroll-hint svg { width: 22px; height: 22px; }
@keyframes bob { 50% { transform: translateY(7px); } }
@keyframes appear { from { opacity: 0; } }
/* staged entrance of the hero: title, then place and date, then the button, then the arrow */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
.hero .badge { animation: rise .7s .15s cubic-bezier(.2, .7, .2, 1) both; }
.hero h1 { animation: rise .9s .35s cubic-bezier(.2, .7, .2, 1) both; }
.hero .where { animation: rise .8s 1.15s cubic-bezier(.2, .7, .2, 1) both; }
.hero .btn { animation: rise .7s 1.75s cubic-bezier(.2, .7, .2, 1) both; }
.hero-top img { animation: appear 1.2s .05s both; }
/* falling snow, above the page, below the confetti */
canvas.snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 15; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 14px 28px; border: 0; border-radius: 999px; background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--night); font: 800 18px/1.1 var(--body); text-decoration: none; cursor: pointer; box-shadow: 0 10px 30px rgba(224, 176, 64, .35); transition: transform .12s ease, box-shadow .12s ease; -webkit-tap-highlight-color: transparent; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(224, 176, 64, .45); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; font-weight: 700; }
.btn.big { min-height: 76px; font-size: 22px; padding-inline: 34px; }
.link { background: none; border: 0; color: var(--gold); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

/* ---------- sections ---------- */
section { padding: 56px 0; }
.stars { background: radial-gradient(1200px 500px at 50% -10%, #1b2350 0%, transparent 60%), var(--night); }
h2 { font-size: clamp(26px, 6.6vw, 38px); text-transform: uppercase; text-align: center; }
h2 em { font-style: normal; color: var(--gold); }
.lead { text-align: center; color: var(--muted); margin: 14px auto 0; max-width: 34em; }
.prizes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.prize { border: 1px solid var(--line); border-radius: 18px; padding: 18px 14px; text-align: center; background: rgba(255, 255, 255, .04); }
.prize strong { display: block; font-family: var(--title); font-size: clamp(34px, 10vw, 52px); color: var(--gold); line-height: 1; }
.prize span { display: block; margin-top: 6px; font-weight: 700; }
.prize small { display: block; color: var(--muted); margin-top: 4px; font-size: 13px; line-height: 1.35; }
.prize small b { color: var(--gold-2); }
.prize.limited { border-color: rgba(224, 176, 64, .55); }
.lead b { color: var(--gold-2); }
h2 + .sub { font-family: var(--title); text-transform: uppercase; text-align: center; color: var(--gold); font-size: clamp(20px, 5.2vw, 28px); margin: 6px 0 0; letter-spacing: .02em; }
.spamnote { margin: 18px 0 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(224, 176, 64, .6); background: rgba(224, 176, 64, .1); text-align: left; font-size: 15px; line-height: 1.45; }
.spamnote b { display: block; color: var(--gold-2); font-size: 17px; margin-bottom: 2px; }
.spamnote span { color: #dfe3f3; }
.hurry { color: var(--gold-2) !important; font-weight: 700; }
.left { text-align: center; margin: 18px 0 0; font-weight: 700; color: var(--gold-2); }
.steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; }
.steps li::before { content: counter(s); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--night); font-family: var(--title); font-size: 20px; }
.steps b { display: block; }
.steps span { color: var(--muted); font-size: 15px; }

/* ---------- form ---------- */
.card { background: var(--night-2); border: 1px solid var(--line); border-radius: 22px; padding: 24px 20px; margin-top: 30px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.card h3 { font-size: 22px; text-transform: uppercase; margin-bottom: 4px; }
.card > p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { margin-bottom: 14px; }
label.lbl { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
input[type="text"], input[type="email"], select { width: 100%; height: 54px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(5, 7, 15, .55); color: #fff; padding: 0 14px; font: 17px var(--body); appearance: none; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%23e0b040' stroke-width='2'%3E%3Cpath d='M1 1l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
select:invalid { color: var(--muted); }
option { color: #111; }
input:focus-visible, select:focus-visible, .btn:focus-visible, .sound:focus-visible, .check input:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; margin: 14px 0; font-size: 15px; line-height: 1.45; cursor: pointer; }
.check input { width: 26px; height: 26px; margin: 1px 0 0; accent-color: var(--gold); }
.err { color: var(--danger); font-size: 14px; margin-top: 6px; min-height: 0; }
.field.bad input, .field.bad select { border-color: var(--danger); }
.check.bad { color: var(--danger); }
.formerr { color: var(--danger); font-weight: 700; margin: 6px 0 12px; }
.fine { color: var(--muted); font-size: 13px; margin: 14px 0 0; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sent { text-align: center; }
.sent .ico { font-size: 54px; line-height: 1; }
.sent h3 { margin: 10px 0 8px; }
.sent p { color: var(--ink); }
.sent .mailto { color: var(--gold-2); font-weight: 700; overflow-wrap: anywhere; }
.sent .tips { color: var(--muted); font-size: 14px; }

/* ---------- intro / concert info / footer ---------- */
.intro { padding: 52px 0 8px; }
.intro .lead { color: #dfe3f3; }
.moments { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.moments li { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: rgba(255, 255, 255, .04); display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.moments .ico { width: 34px; height: 34px; color: var(--gold); margin-top: 2px; }
.moments b { display: block; }
.moments span { color: var(--muted); font-size: 15px; }
.forall { text-align: center; color: var(--muted); margin: 22px auto 0; max-width: 34em; font-size: 15px; }
.forall b { color: var(--gold-2); }
.info { text-align: center; }
.info p { color: var(--muted); max-width: 32em; margin: 14px auto 22px; }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; text-align: center; color: var(--muted); font-size: 13px; }
footer img { width: 150px; height: auto; opacity: .9; margin-bottom: 10px; filter: brightness(0) invert(1); }
footer a { color: var(--muted); }

/* ---------- game page ---------- */
.stage { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 28px 0 44px; text-align: center; position: relative; }
.stage .logo { width: min(52vw, 240px); height: auto; margin-bottom: 26px; }
.stage h1 { font-size: clamp(30px, 8.4vw, 52px); text-transform: uppercase; }
.stage h1 em { font-style: normal; color: var(--gold); }
.stage p { color: var(--muted); margin: 14px auto 0; max-width: 30em; }
.stage p.ok { color: #8fe3a8; font-weight: 700; }
.stage .btn { margin-top: 28px; }
.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.045); box-shadow: 0 16px 50px rgba(224, 176, 64, .6); } }
.drum { width: 120px; height: 120px; margin: 0 auto 22px; border-radius: 50%; border: 6px solid rgba(255, 255, 255, .12); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.code { margin: 24px auto 0; padding: 18px 16px; border: 2px dashed var(--gold); border-radius: 18px; background: rgba(224, 176, 64, .08); max-width: 420px; }
.code small { display: block; color: var(--gold-2); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.code output { display: block; font: 800 clamp(22px, 6.6vw, 34px) / 1.15 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .03em; margin: 8px 0 12px; color: #fff; overflow-wrap: anywhere; user-select: all; }
.how { text-align: left; max-width: 420px; margin: 24px auto 0; padding: 0 0 0 22px; color: var(--ink); font-size: 16px; }
.how li { margin-bottom: 8px; }
.result-ico { font-size: 68px; line-height: 1; margin-bottom: 8px; }
.pop { animation: pop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
canvas.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 20; }
.testflag { position: fixed; top: 0; left: 0; right: 0; background: #b3261e; color: #fff; font-size: 12px; font-weight: 700; padding: 4px; z-index: 30; text-align: center; }

/* ---------- text pages / admin ---------- */
.prose { padding: 40px 0 60px; }
.prose h1 { font-size: clamp(28px, 7vw, 40px); text-transform: uppercase; margin-bottom: 18px; }
.prose h2 { font-size: 20px; text-align: left; margin: 28px 0 8px; color: var(--gold); }
.prose p, .prose li { color: #dfe3f3; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
.dates { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.dates label { font-size: 13px; font-weight: 700; display: grid; gap: 4px; }
.dates input[type="date"] { height: 44px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(5, 7, 15, .55); color: #fff; padding: 0 10px; font: 15px var(--body); color-scheme: dark; }
.dates .btn { min-height: 44px; padding: 8px 18px; font-size: 15px; }
textarea.caption { width: 100%; min-height: 330px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(5, 7, 15, .55); color: #fff; padding: 12px; font: 14px/1.5 var(--body); }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--gold-2); font-weight: 700; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
.admin { width: min(100% - 24px, 1100px); margin-inline: auto; padding: 24px 0 60px; }
.admin h1 { font-size: 26px; text-transform: uppercase; }
.admin h2 { font-size: 16px; text-align: left; margin: 30px 0 8px; color: var(--gold); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 16px; }
.kpi { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: rgba(255, 255, 255, .04); }
.kpi b { display: block; font-family: var(--title); font-size: 28px; color: var(--gold); line-height: 1.1; }
.kpi span { font-size: 12px; color: var(--muted); }
.kpi i { display: block; font-style: normal; font-size: 12px; color: #8fe3a8; }
.scroll { overflow-x: auto; }

@media (min-width: 760px) {
  .hero-body { padding-bottom: 96px; }
  .moments { grid-template-columns: repeat(3, 1fr); }
  .moments li { grid-template-columns: 1fr; text-align: center; justify-items: center; align-content: start; padding: 22px 16px; }
  .moments .ico { width: 44px; height: 44px; margin: 0 0 4px; }
  .wrap.wide { width: min(100% - 32px, 900px); }
  .card { padding: 34px; }
}
@media (max-width: 420px) { .row { grid-template-columns: 1fr; gap: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; } }
