:root {
  color-scheme: dark;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  font-weight: 400;
  --bg: #030711;
  --bg-panel: rgba(13, 20, 39, 0.85);
  --bg-muted: rgba(255, 255, 255, 0.05);
  --text: #f8fbff;
  --text-muted: rgba(248, 251, 255, 0.7);
  --primary: #ffb347;
  --primary-dark: #ff6b6b;
  --positive: #17f1d1;
  --negative: #f87171;
  --glow: rgba(255, 179, 71, 0.35);
  background-color: var(--bg);
  color: var(--text);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 107, 107, 0.12), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(23, 241, 209, 0.15), transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(255, 179, 71, 0.2), transparent 55%),
    var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg width='240' height='240' viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M120 10l15 45h47l-38 28 14 46-38-27-38 27 15-46-39-28h48z' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E") repeat,
    radial-gradient(circle at 50% -10%, rgba(255, 179, 71, 0.2), transparent 50%);
  z-index: 0;
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: min(10vw, 6rem) clamp(1.5rem, 4vw, 5rem) 2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero__snowflake {
  position: absolute;
  font-size: clamp(2rem, 6vw, 3.5rem);
  opacity: 0.5;
}

.hero__snowflake--left {
  top: 2rem;
  left: clamp(1rem, 4vw, 4rem);
}

.hero__snowflake--right {
  top: 1rem;
  right: clamp(1rem, 4vw, 4rem);
}

.hero__content h1 {
  font-size: clamp(2.75rem, 4vw, 4rem);
  margin-bottom: 1rem;
}

.eyebrow {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 1rem;
  color: var(--text-muted);
}


.lede {
  color: var(--text-muted);
  max-width: 55ch;
  margin-bottom: 1.2rem;
}

.hero__date-note {
  margin: 0 0 1.5rem;
  color: var(--text);
  font-weight: 500;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__watch-note {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero__festive {
  margin: 1.5rem 0 0;
  padding: 1.2rem;
  border-radius: 1.5rem;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  background: linear-gradient(135deg, rgba(255, 179, 71, 0.12), rgba(23, 241, 209, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero__festive li {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero__festive span {
  font-size: 1.4rem;
}

.stat-card {
  padding: 1.25rem;
  background: var(--bg-muted);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-card__label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.stat-card__value {
  font-size: 2rem;
  font-weight: 600;
  margin: 0.25rem 0;
}

.stat-card__delta {
  font-size: 0.95rem;
  margin: 0;
}

.positive {
  color: var(--positive);
}

.negative {
  color: var(--negative);
}

.coin-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(3, 7, 17, 0.65));
  border-radius: 1.75rem;
  padding: 2.5rem;
  display: grid;
  gap: 1.75rem;
  box-shadow: 0 35px 80px rgba(3, 7, 17, 0.9);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.coin-panel__glow {
  position: absolute;
  width: 180%;
  height: 180%;
  background: radial-gradient(circle, var(--glow), transparent 60%);
  top: -40%;
  left: -40%;
  filter: blur(40px);
  opacity: 0.7;
}

.coin-panel__ring {
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  animation: spin 20s linear infinite;
}

.coin-panel__coin {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 12px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  margin: 0 auto 0.5rem;
  background: linear-gradient(135deg, rgba(255, 179, 71, 0.5), rgba(255, 107, 107, 0.65));
  box-shadow:
    inset 0 0 40px rgba(0, 0, 0, 0.4),
    0 30px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  isolation: isolate;
}

.coin-panel__coin::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.35);
  opacity: 0.8;
}

.coin-panel__ticker {
  font-size: 4.5rem;
  font-weight: 700;
}

.coin-panel__text {
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.coin-panel__info {
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
  padding: 1.5rem 1rem;
  border-radius: 1.25rem;
  border: 1px dashed rgba(255, 255, 255, 0.25);
}

.coin-panel__info p {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.coin-panel__info strong {
  display: block;
  font-size: clamp(2rem, 6vw, 3rem);
  margin: 0.75rem 0;
}

.coin-panel__status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--positive);
}

.coin-panel__status::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--positive);
  box-shadow: 0 0 12px rgba(23, 241, 209, 0.7);
}

.coin-panel__footer {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.sections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0 clamp(1.5rem, 4vw, 5rem) clamp(3rem, 6vw, 5rem);
  width: min(1200px, 100%);
  margin: 0 auto;
  flex: 1;
}

.panel {
  background: var(--bg-panel);
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 20px 60px rgba(3, 7, 17, 0.75);
  backdrop-filter: blur(20px);
}

.panel__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--text-muted);
}

.panel--prizes h2 {
  margin-bottom: 0.5rem;
}

.panel--prizes p {
  margin-top: 0;
}

.panel--form select {
  background: var(--bg-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  color: inherit;
  font: inherit;
}

.panel--timeline,
.panel--terms,
.panel--payment {
  width: 100%;
}

.prize-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 1.5rem 0 0;
}

.prize-grid li {
  background: var(--bg-muted);
  border-radius: 1.25rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.prize-tier {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.prize-grid strong {
  display: block;
  font-size: 1.8rem;
  margin: 0.8rem 0 0.5rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 500;
}

.form__field--captcha {
  align-items: center;
  text-align: center;
  align-self: center;
  width: min(320px, 100%);
}

.form__field--captcha > span {
  width: 100%;
}

.captcha-control {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
}

.captcha-control__actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  width: 100%;
}

.captcha-control__actions input {
  max-width: 160px;
  text-align: center;
}

.form__field--options {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1rem;
}


.form__field--options legend {
  font-size: 0.95rem;
  padding: 0 0.5rem;
  color: var(--text-muted);
}

.ticket-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.ticket-type {
  display: block;
  position: relative;
  cursor: pointer;
  height: 100%;
}

.ticket-type input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.ticket-type__body {
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  background: var(--bg-muted);
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
}

.ticket-type__icon {
  width: 72px;
  height: 72px;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  position: relative;
  color: #ffdba5;
}

.ticket-type__icon svg {
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

.ticket-type__icon span {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: white;
  position: absolute;
}

.ticket-type__content > span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ticket-type__content strong {
  display: block;
  font-size: 1.6rem;
  margin: 0.25rem 0;
}

.ticket-type__content p {
  margin: 0;
  color: var(--text-muted);
}

.ticket-type input:checked + .ticket-type__body {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 179, 71, 0.2);
}

.ticket-type--quarter {
  --ticket-accent: #f3b664;
}

.ticket-type--half {
  --ticket-accent: #ff6b6b;
}

.ticket-type--full {
  --ticket-accent: #17f1d1;
}

.ticket-type--quarter .ticket-type__icon {
  background: linear-gradient(135deg, rgba(243, 182, 100, 0.4), rgba(255, 255, 255, 0.08));
  color: rgba(243, 182, 100, 0.8);
}

.ticket-type--half .ticket-type__icon {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.45), rgba(255, 255, 255, 0.08));
  color: rgba(255, 107, 107, 0.85);
}

.ticket-type--full .ticket-type__icon {
  background: linear-gradient(135deg, rgba(23, 241, 209, 0.5), rgba(255, 255, 255, 0.1));
  color: rgba(23, 241, 209, 0.85);
}

.ticket-type--quarter .ticket-type__body {
  border-color: rgba(243, 182, 100, 0.4);
  background: linear-gradient(135deg, rgba(243, 182, 100, 0.15), rgba(3, 7, 17, 0.75));
}

.ticket-type--half .ticket-type__body {
  border-color: rgba(255, 107, 107, 0.4);
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.12), rgba(3, 7, 17, 0.75));
}

.ticket-type--full .ticket-type__body {
  border-color: rgba(23, 241, 209, 0.4);
  background: linear-gradient(135deg, rgba(23, 241, 209, 0.12), rgba(3, 7, 17, 0.75));
}

.form__hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form__field input,
.form__field textarea,
.panel--form select {
  background: var(--bg-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  color: inherit;
  font: inherit;
}

.form__field input:focus,
.form__field textarea:focus,
.panel--form select:focus {
  outline: 2px solid color-mix(in srgb, var(--primary), white 25%);
  border-color: transparent;
}

.form__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
}

.form__summary strong {
  font-size: 1.5rem;
}

.form__submit {
  align-self: center;
  padding: 1rem 2.75rem;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 25px 45px rgba(255, 179, 71, 0.35);
}

.form__loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.form__loader[hidden] {
  display: none;
}

.form__loader-spinner {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--primary);
  animation: spin 0.9s linear infinite;
}

.form__loader-content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form__loader-track {
  width: min(320px, 100%);
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.form__loader-progress {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary), var(--positive));
  transition: width 250ms ease;
}

.form #form-status {
  min-height: 1.2em;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 200ms ease;
}

.form #form-status.visible {
  opacity: 1;
}

.form #form-status.positive {
  color: var(--positive);
}

.form #form-status.negative {
  color: var(--negative);
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.btn:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 15px 35px rgba(255, 179, 71, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.timeline {
  list-style: none;
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
}

.timeline li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.timeline span {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--primary);
}

.timeline strong {
  font-size: 1.2rem;
}

.footer {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
}

.payment {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
  align-items: center;
}

.payment__qr {
  background: var(--bg-muted);
  border-radius: 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.payment__qr img {
  width: 100%;
  border-radius: 0.75rem;
}

.payment__details ul {
  padding-left: 1rem;
  color: var(--text-muted);
}

.payment__label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.payment__address {
  display: block;
  font-size: 1rem;
  word-break: break-all;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
}

.payment__copy {
  margin-bottom: 1rem;
}

.ticket-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms ease;
}

.ticket-modal[aria-hidden="false"] {
  pointer-events: auto;
  opacity: 1;
}

.ticket-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 17, 0.85);
  backdrop-filter: blur(8px);
}

.ticket-modal__card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 179, 71, 0.2), rgba(23, 241, 209, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.5rem;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.55);
  max-width: 420px;
  width: calc(100% - 2rem);
  z-index: 1;
}

.ticket-modal__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 0.25rem;
}

.ticket-modal__numbers {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0;
  max-height: 260px;
  overflow: auto;
  padding-right: 0.25rem;
}

.ticket-modal__number {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(255, 255, 255, 0.35);
  letter-spacing: 0.2em;
}

.ticket-modal__copy {
  margin: 0.5rem auto 1rem;
}

.ticket-modal--error .ticket-modal__card {
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.3), rgba(17, 24, 39, 0.95));
  border: 1px solid rgba(248, 113, 113, 0.4);
}

.ticket-modal__errors {
  list-style: disc;
  text-align: left;
  padding-left: 1.5rem;
  margin: 1rem 0;
  color: var(--negative);
}

.ticket-modal__errors li + li {
  margin-top: 0.35rem;
}
.ticket-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: rgba(0, 0, 0, 0.25);
  color: white;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: 1.4rem;
  cursor: pointer;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .hero__actions {
    justify-content: center;
  }

  .form__submit {
    width: 100%;
  }

  .panel--timeline {
    grid-column: span 1;
  }

  .panel--payment {
    grid-column: span 1;
  }

  .payment {
    grid-template-columns: 1fr;
  }
}
