:root {
  --bg: #000000;
  --panel: #0a0605;
  --line: #2a1410;
  --line-strong: #4a120c;
  --input-line: #3a1c16;
  --red: #e3241a;
  --red-button: #d81e15;
  --red-text: #f0352a;
  --ember: #5a1a12;
  --gold: #f2b233;
  --amber: #ffc46b;
  --text: #ffffff;
  --text-soft: #e6dcd6;
  --text-dim: #d2c6bf;
  --muted: #b5a9a2;
  --placeholder: #8f837d;
  --error: #ff8a80;
  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Montserrat', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--text); }
a:hover { color: var(--amber); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-nav {
  max-width: 1280px; margin: 0 auto; padding: 12px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap;
}
.site-nav__home { display: flex; align-items: center; min-height: 44px; }
.site-nav__home img { height: 36px; width: auto; display: block; }
.site-nav__links { display: flex; align-items: center; gap: 8px clamp(16px, 2.6vw, 36px); flex-wrap: wrap; }
.site-nav__link {
  padding: 12px 0; text-decoration: none;
  font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: 0.12em;
}
.site-nav__link[aria-current='page'] { padding-bottom: 10px; border-bottom: 2px solid var(--red); color: var(--amber); }
.btn-ticket {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 4px;
  background: var(--red-button); color: var(--text); font-weight: 700; font-size: 14px; text-decoration: none;
  box-shadow: 0 0 20px rgba(227, 36, 26, 0.45);
}
.btn-ticket:hover { color: var(--text); background: var(--red); }

/* Compact header on phones, as in the mobile design. */
.mobile-bar { display: none; }
@media (max-width: 640px) {
  .site-nav { display: none; }
  .mobile-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px;
  }
  .mobile-bar__back {
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    border-radius: 4px; border: 1px solid var(--input-line);
  }
  .mobile-bar__title { font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: 0.12em; }
  .mobile-bar__spacer { width: 44px; }
}

/* ---------- Shared bits ---------- */
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.16em; color: var(--red-text); }
.panel { border-radius: 8px; background: var(--panel); border: 1px solid var(--line); }
.panel--glow {
  border-color: var(--red);
  box-shadow: 0 0 36px rgba(227, 36, 26, 0.22), inset 0 0 24px rgba(227, 36, 26, 0.1);
}
.h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 20px; }

.timeline { margin: 0 0 0 4px; padding: 0; list-style: none; display: flex; flex-direction: column; border-left: 1px solid var(--line-strong); }
.timeline li { position: relative; padding: 0 0 22px 24px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ''; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px;
  background: var(--ember); transform: rotate(45deg);
}
.timeline li.is-active::before { background: var(--red); }
.timeline li.is-done::before { left: -6px; top: 5px; width: 11px; height: 11px; background: var(--gold); }
.timeline__title { display: block; font-weight: 700; font-size: 16px; }
.timeline li.is-done .timeline__title { color: var(--gold); }
.timeline__text { display: block; font-size: 14px; color: var(--muted); }

/* ---------- Costume page ---------- */
.costume {
  max-width: 1280px; margin: 0 auto; padding: clamp(40px, 5vw, 72px) var(--gutter) 96px;
  display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start;
}
.costume__intro { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.costume__title { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.8vw, 54px); line-height: 1.08; overflow-wrap: anywhere; }
.costume__lead { margin: 0; max-width: 520px; font-size: 17px; color: var(--text-dim); }
.prize {
  display: flex; flex-direction: column; gap: 6px; padding: 28px; border-radius: 6px;
  border: 1px solid var(--red); background: var(--panel);
  box-shadow: 0 0 40px rgba(227, 36, 26, 0.28), inset 0 0 28px rgba(227, 36, 26, 0.12);
}
.prize__label { font-size: 12px; font-weight: 700; letter-spacing: 0.24em; color: var(--gold); }
.prize__name { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.15; }
.prize__detail { font-size: 16px; font-weight: 600; color: var(--amber); }

.costume__card { flex: 1 1 440px; min-width: 0; padding: clamp(20px, 3vw, 36px); }

.form { display: flex; flex-direction: column; gap: 18px; }
.form__title { margin: 0 0 4px; font-family: var(--display); font-weight: 800; font-size: 24px; }
.form__row { display: flex; flex-wrap: wrap; gap: 18px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.form__row .field { flex: 1 1 200px; }
.field__label { font-size: 14px; font-weight: 600; }
.field__hint { font-size: 12px; color: var(--muted); }
.field__error { font-size: 13px; color: var(--error); }
.field__error:empty { display: none; }
.input {
  min-height: 48px; padding: 0 14px; border-radius: 4px; border: 1px solid var(--input-line);
  background: var(--bg); color: var(--text); font: inherit; font-size: 16px; width: 100%;
}
textarea.input { padding: 12px 14px; resize: vertical; min-height: 96px; }
.input::placeholder { color: var(--placeholder); }
.input:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.input[aria-invalid='true'] { border-color: var(--error); }

.dropzone { position: relative; display: block; cursor: pointer; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.dropzone__box {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 140px; padding: 18px; border-radius: 6px; border: 1.5px dashed var(--ember);
  background: var(--bg); text-align: center;
}
.dropzone:hover .dropzone__box { border-color: var(--red); }
.dropzone input:focus-visible + .dropzone__box { outline: 2px solid var(--red); outline-offset: 2px; }
.dropzone[aria-invalid='true'] .dropzone__box { border-color: var(--error); }
.dropzone__name { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.dropzone__hint { font-size: 12px; color: var(--muted); }
.dropzone__preview { max-height: 180px; max-width: 100%; border-radius: 4px; object-fit: contain; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-dim); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--red); }

.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px;
  border: 0; border-radius: 4px; background: var(--red-button); color: var(--text);
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  box-shadow: 0 0 24px rgba(227, 36, 26, 0.45);
}
.btn-primary:hover { background: var(--red); color: var(--text); }
.btn-primary:disabled { opacity: 0.6; cursor: progress; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form__footnote { font-size: 13px; color: var(--muted); text-align: center; }
.alert {
  padding: 14px 16px; border-radius: 6px; border: 1px solid var(--line-strong);
  background: #140806; font-size: 14px; color: var(--text-soft);
}
.alert--error { border-color: var(--error); color: var(--error); }
.alert a { color: var(--amber); }
.notice { display: flex; flex-direction: column; gap: 14px; text-align: center; align-items: center; padding: 24px 8px; }
.notice p { margin: 0; color: var(--text-dim); }

/* ---------- Thanks page ---------- */
.hero { position: relative; overflow: hidden; }
.hero__bg {
  position: absolute; left: 50%; top: -60px; width: 760px; max-width: 130%; height: auto;
  transform: translateX(-50%); opacity: 0.3; pointer-events: none;
}
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.75) 55%, #000 92%);
}
.hero__inner {
  position: relative; max-width: 780px; margin: 0 auto; padding: clamp(40px, 7vw, 96px) var(--gutter) 56px;
  display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
}
.hero__check {
  width: 96px; height: 96px; border-radius: 999px; border: 2px solid var(--red); background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 48px rgba(227, 36, 26, 0.55), inset 0 0 22px rgba(227, 36, 26, 0.25);
}
.hero__title { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(27px, 4.4vw, 60px); line-height: 1.06; }
.hero__text { margin: 0; max-width: 560px; font-size: 18px; color: var(--text-soft); }
.regno {
  display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 6px; padding: 14px 28px;
  border-radius: 6px; border: 1px solid var(--line-strong); background: var(--panel);
}
.regno__label { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; color: var(--muted); }
.regno__value { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: 0.06em; color: var(--amber); }

.thanks {
  max-width: 1100px; margin: 0 auto; padding: 8px var(--gutter) 40px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch;
}
.thanks__col { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.card { display: flex; flex-direction: column; gap: 22px; padding: 28px; }
.card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.badge {
  padding: 3px 10px; border-radius: 3px; border: 1px solid var(--gold); color: var(--gold);
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em; white-space: nowrap;
}
.entry { display: flex; flex-wrap: wrap; gap: 22px; }
.entry__photo {
  width: 144px; flex-shrink: 0; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden;
  border: 1.5px dashed var(--ember); background: var(--bg);
}
.entry__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.entry__photo.has-photo { border-style: solid; border-color: var(--line-strong); }
.entry__details { flex: 1 1 200px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.entry__details div { display: flex; flex-direction: column; gap: 2px; }
.entry__details dt { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; color: var(--red-text); }
.entry__details dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.entry__details dd.is-strong { font-weight: 700; font-size: 17px; }
.card__foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px;
  padding-top: 16px; border-top: 1px solid var(--line);
}
.card__foot span { font-size: 14px; color: var(--muted); }
.link-amber { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 14px; color: var(--amber); }
.follow p { margin: 0; font-size: 15px; color: var(--text-dim); }
.follow__links { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-outline {
  flex: 1 1 140px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 4px; border: 1px solid var(--amber);
  color: var(--amber); font-weight: 700; font-size: 15px; text-decoration: none;
}
.btn-outline:hover { background: rgba(255, 196, 107, 0.08); }

.skeleton { background: linear-gradient(90deg, #120a08 0%, #1d0f0b 50%, #120a08 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 4px; color: transparent !important; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 640px) {
  .hero__check { width: 76px; height: 76px; }
  .hero__check svg { width: 34px; height: 34px; }
  .hero__text { font-size: 15px; }
  .regno__value { font-size: 22px; }
  .card { padding: 18px; gap: 16px; }
  .entry { flex-wrap: nowrap; gap: 14px; }
  .entry__photo { width: 92px; }
  .entry__details { gap: 10px; }
  .entry__details dd { font-size: 14px; }
  .entry__details dd.is-strong { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .spinner, .skeleton { animation: none; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner {
  max-width: 1280px; margin: 0 auto; padding: 40px var(--gutter) 48px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px;
}
.site-footer__brand { display: flex; align-items: center; gap: 22px; }
.site-footer__brand img { height: 96px; width: auto; display: block; }
.site-footer__meta { display: flex; flex-direction: column; gap: 12px; }
.site-footer__presented { font-family: var(--display); font-size: 12px; letter-spacing: 0.3em; color: #f4ede6; }
.site-footer__social { display: flex; flex-wrap: wrap; gap: 20px; font-weight: 600; font-size: 14px; }
.site-footer__social a { text-decoration: none; }
.site-footer__copy { font-size: 13px; color: var(--muted); }
.site-footer__sponsor { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.site-footer__sponsor span { font-size: 11px; font-weight: 600; letter-spacing: 0.24em; color: var(--gold); }
.site-footer__sponsor img { height: 72px; width: auto; display: block; }
