:root {
  --color-bg: #0f0f0f;
  --color-bg-alt: #231818;
  --color-card: #662f44;
  --color-card-hover: #ffc107;
  --color-frame: #5a2a3c;
  --color-accent: #f89202;
  --color-accent-light: #ffc107;
  --color-charcoal: #3f3f3f;
  --color-hot: #e12b36;
  --color-success: #75a823;
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.65);
  --color-danger: #e12b36;
  --shadow-lift: 0 20px 50px rgba(15, 15, 15, 0.6);
  --shadow-soft: 0 10px 24px rgba(15, 15, 15, 0.45);
  --hero-inline-padding: 24px;
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --ease-standard: cubic-bezier(0.22, 0.9, 0.32, 1);
  --duration-fast: 150ms;
  --duration-base: 200ms;
  --duration-modal: 250ms;
  --duration-entrance: 500ms;
  --font-display: 'Exo 2', system-ui, -apple-system, sans-serif;
  --font-body: 'Exo', system-ui, -apple-system, sans-serif;
  --font-accent: 'M PLUS 1', system-ui, -apple-system, sans-serif;
  --button-gradient: linear-gradient(95deg, #7c4216 -45.2%, #ff9600 100.94%);
  --color-button-base: #875218;
  --z-behind: -1;
  --z-deco: 2;
  --z-skip-link: 20;
  --z-modal: 100;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .modal-overlay,
  .modal-card,
  .step-card,
  .skip-link,
  .cta-button,
  .copy-code-button,
  .form-submit,
  .lang-switcher select,
  .trust-badge,
  .payment-icon,
  .provider-icon,
  .footer-links a,
  .modal-close {
    transition-duration: 0.2s !important;
  }

  .step-card {
    opacity: 1;
    transform: none;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: radial-gradient(circle at top, var(--color-bg-alt), var(--color-bg) 65%);
  color: var(--color-text);
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(380px, 60vw, 620px);
  background-image: url('../img/bg-hero.jpg');
  background-size: cover;
  background-position: top center;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 100%);
  z-index: var(--z-behind);
  pointer-events: none;
}

.skip-link {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--color-accent-light);
  color: var(--color-bg-alt);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  z-index: var(--z-skip-link);
  transform: translateY(-150%);
  transition: transform var(--duration-base) var(--ease-standard);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--color-accent-light);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.brand-logo {
  display: block;
  height: 72px;
  width: auto;
}

.lang-switcher select {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  /* The native chevron renders hard against the border, so it is replaced by a
     drawn one and the right padding reserves the room it needs. */
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--color-bg-alt);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.75 6 6.25 11 1.75' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 12px 8px;
  color: var(--color-text);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 8px 35px 8px 14px;
  cursor: pointer;
  transition: border-color var(--duration-base) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
}

/* Windows and Linux render the popup list with the page background otherwise. */
.lang-switcher select option {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.lang-switcher select:active {
  transform: scale(0.97);
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px var(--hero-inline-padding) 10px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 26px;
  align-items: center;
}

.hero-copy h1 {
  display: block;
  font-size: clamp(2.25rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--color-text);
  text-wrap: balance;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy h1 span + span {
  margin-top: 6px;
}

/* Continues the sentence begun by the line above, so it reads as a wrap, not a new line. */
.hero-copy h1 span + .hero-title-outro {
  margin-top: 0;
}

.text-highlight {
  color: var(--color-accent);
  text-shadow: 0 4px 24px rgba(248, 146, 2, 0.35);
}

.hero-copy p {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  margin: 0 0 28px;
  max-width: 42ch;
  text-wrap: pretty;
}

.wheel-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.wheel-pointer {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 41px;
  background: linear-gradient(160deg, #ffe9a8, var(--color-accent-light) 45%, #c98a00 100%);
  clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
  z-index: var(--z-deco);
  filter: drop-shadow(0 4px 6px rgba(15, 15, 15, 0.55));
}

.wheel-frame {
  position: relative;
  width: min(480px, 100vw - var(--hero-inline-padding) * 2);
  height: min(480px, 100vw - var(--hero-inline-padding) * 2);
  border-radius: 50%;
  padding: 14px;
  background: conic-gradient(from -50deg, #fff4d6, #ffe9a8 10%, var(--color-accent) 30%, #5c2f0e 50%, var(--color-accent) 70%, #ffe9a8 90%, #fff4d6 100%);
  box-shadow: inset 0 3px 6px rgba(255, 255, 255, 0.35), inset 0 -5px 10px rgba(0, 0, 0, 0.5), var(--shadow-lift);
}

.wheel-svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: block;
}

#wheel-wedges {
  transform-box: view-box;
  transform-origin: 50% 50%;
}

.wheel-label {
  font-family: var(--font-accent);
  font-size: calc(11px * var(--label-scale, 1));
  font-weight: 700;
  letter-spacing: -0.01em;
  pointer-events: none;
}

.wheel-label-big {
  font-size: calc(20px * var(--label-scale, 1));
  font-weight: 800;
}

.wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 117px;
  height: 117px;
  border: none;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 16%), radial-gradient(circle at 35% 30%, #fff6d8, var(--color-accent-light) 45%, #c98a00 100%);
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.65), inset 0 -4px 7px rgba(0, 0, 0, 0.35), 0 0 0 6px var(--color-bg), 0 6px 14px rgba(15, 15, 15, 0.6);
  z-index: var(--z-deco);
  padding: 0 6px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 800;
  /* Loose enough that a descender (Q) never crowds a diacritic (Ö, Ä, Å) on the
     word below; the JS fitter trades a little type size back for the clearance. */
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--color-charcoal);
  transition: transform var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}

/* The mascot stands in for the label during cooldown, when the hub is not
   clickable and "CLICK TO SPIN" would be a lie. */
.wheel-hub::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: url('../img/hugo.png') no-repeat center 56% / 92%;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-standard);
}

.wheel-hub:disabled:not(.is-spinning)::before {
  opacity: 1;
}

.wheel-hub:disabled:not(.is-spinning) #wheel-hub-label {
  opacity: 0;
}

/* min-content puts each word on its own line, which lets the type run much
   larger inside the disc than a naturally wrapped two-line block would. */
#wheel-hub-label {
  position: relative;
  display: block;
  max-width: min-content;
  transition: opacity var(--duration-base) var(--ease-standard);
}

.wheel-hub:active:not(:disabled) {
  transform: translate(-50%, -50%) scale(0.94);
}

.wheel-hub:disabled {
  cursor: not-allowed;
  color: rgba(63, 63, 63, 0.55);
}

.cta-button {
  position: relative;
  display: block;
  width: 100%;
  max-width: 320px;
  height: 52px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
  border-radius: 999px;
  cursor: pointer;
}

.cta-button::before,
.cta-button::after {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  pointer-events: none;
}

.cta-button::before {
  background: var(--color-button-base);
}

.cta-button::after {
  top: 0;
  z-index: 1;
  background: var(--button-gradient);
  box-shadow: 0 4px 24px rgba(248, 146, 2, 0.45);
  transition: top var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}

.cta-button-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  transition: margin-top var(--duration-fast) var(--ease-standard);
}

.cta-button:active::after {
  top: 5px;
  box-shadow: 0 2px 12px rgba(248, 146, 2, 0.45);
}

.cta-button:active .cta-button-inner {
  margin-top: 5px;
}

/* A failed spin reports in the same slot as the cooldown notice, in red so it
   does not read as a normal waiting message. */
.cooldown-message.is-error {
  color: var(--color-danger);
}

.cooldown-message:empty {
  margin-top: 0;
}

.cooldown-message {
  margin-top: 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-align: center;
}

.steps-section,
.trust-section,
.payment-section,
.providers-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 26px 24px;
}

.providers-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px 32px;
}

.providers-grid + .providers-grid {
  margin-top: 28px;
}

.provider-icon {
  width: auto;
  opacity: 0.7;
  transition: opacity var(--duration-base) ease;
}

.provider-icon--lg {
  height: 42px;
}

.provider-icon--pragmatic {
  height: 54px;
}

.provider-icon--evolution {
  height: 34px;
}

.provider-icon--md {
  height: 30px;
}

.provider-icon--sm {
  height: 22px;
}

.payment-label {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.payment-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px 32px;
}

.payment-icon {
  height: 28px;
  width: auto;
  opacity: 0.75;
  transition: opacity var(--duration-base) ease;
}

.payment-icon--square {
  height: 36px;
}

.steps-section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--color-accent);
  margin: 0 0 26px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  display: flex;
  padding: 10px;
  background: var(--color-frame);
  /* Bevels stay a fixed 22px and notch depth a fixed 9px at any card height;
     only the notch positions along the edges scale with the card. */
  clip-path: polygon(
    22px 0, calc(100% - 22px) 0, 100% 22px,
    100% 18%, calc(100% - 9px) 18%, calc(100% - 9px) 32%, 100% 32%,
    100% 68%, calc(100% - 9px) 68%, calc(100% - 9px) 82%, 100% 82%,
    100% calc(100% - 22px), calc(100% - 22px) 100%,
    22px 100%, 0 calc(100% - 22px),
    0 82%, 9px 82%, 9px 68%, 0 68%,
    0 32%, 9px 32%, 9px 18%, 0 18%,
    0 22px
  );
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-entrance) var(--ease-standard), transform var(--duration-entrance) var(--ease-standard), background-color var(--duration-base) ease;
}

.step-card.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.step-card-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 18px;
  border-radius: 6px;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 5px), linear-gradient(180deg, #2b1d22 0%, #241a1d 40%, #1b1315 100%);
}

.step-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.step-icon-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #2e2024;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-number {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-accent);
}

.step-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
  color: var(--color-accent);
  text-wrap: balance;
}

.step-card p {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
  text-wrap: pretty;
}

.trust-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(248, 146, 2, 0.3);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: border-color var(--duration-base) ease, background var(--duration-base) ease;
}

.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 60px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer p {
  margin: 0 0 10px;
}

.footer-links {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.footer-links a {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--duration-base) ease;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: var(--z-modal);
  opacity: 0;
  transition: opacity var(--duration-modal) var(--ease-standard);
}

@media (prefers-reduced-transparency: reduce) {
  .modal-overlay {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: none;
  }
}

.modal-overlay.is-visible {
  opacity: 1;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-card {
  background: var(--color-card);
  border: 1px solid rgba(255, 193, 7, 0.35);
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-lift);
  transform: scale(0.94) translateY(8px);
  transition: transform var(--duration-modal) var(--ease-standard);
}

.modal-overlay.is-visible .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--duration-base) ease, transform var(--duration-fast) ease;
}

.modal-close:active {
  transform: scale(0.96);
}

.prize-highlight {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--color-accent-light);
  text-align: center;
  text-wrap: balance;
  margin: 8px 0 8px;
}

.prize-description {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text-muted);
  text-align: center;
  text-wrap: pretty;
  margin: 0 0 20px;
}

.promo-code-box {
  border: 1px dashed rgba(248, 146, 2, 0.5);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  text-align: center;
}

.promo-code-label {
  display: block;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

.promo-code-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.promo-code-value {
  flex: 1;
  font-family: var(--font-accent);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-accent-light);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-code-button {
  padding: 0 18px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--button-gradient);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--duration-fast) var(--ease-standard), filter var(--duration-fast) var(--ease-standard);
}

.copy-code-button:active {
  transform: scale(0.96);
}

.copy-code-button.is-copied {
  background: var(--color-success);
  color: #ffffff;
}

.copy-error {
  color: var(--color-danger);
  font-size: 0.82rem;
  margin: 10px 0 0;
}

.form-submit {
  width: 100%;
  height: 48px;
  padding: 0 24px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--button-gradient);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-standard), filter var(--duration-fast) var(--ease-standard);
}

.form-submit:active:not(:disabled) {
  transform: scale(0.98);
}

.form-submit:disabled {
  background: var(--color-charcoal);
  color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
}

@media (hover: hover) and (pointer: fine) {
  .lang-switcher select:hover {
    border-color: var(--color-accent-light);
  }

  .wheel-hub:hover:not(:disabled) {
    box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.65), inset 0 -4px 7px rgba(0, 0, 0, 0.35), 0 0 0 6px var(--color-bg), 0 8px 18px rgba(15, 15, 15, 0.7);
  }

  .cta-button:hover::after {
    top: 5px;
    box-shadow: 0 2px 12px rgba(248, 146, 2, 0.45);
  }

  .cta-button:hover .cta-button-inner {
    margin-top: 5px;
  }

  .step-card:hover {
    background: #6e3549;
  }

  .trust-badge:hover {
    border-color: var(--color-card-hover);
    background: rgba(255, 255, 255, 0.08);
  }

  .payment-icon:hover {
    opacity: 1;
  }

  .provider-icon:hover {
    opacity: 1;
  }

  .footer-links a:hover {
    color: var(--color-accent);
  }

  .modal-close:hover {
    color: var(--color-accent-light);
  }

  .copy-code-button:hover:not(.is-copied) {
    filter: brightness(1.08);
    transform: translateY(-1px);
  }

  .form-submit:hover:not(:disabled) {
    filter: brightness(1.08);
    transform: translateY(-1px);
  }
}

.confirm-icon {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 12px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    /* Spacing between the stacked blocks comes from their own margins below, so
       that reordering them does not double up on the grid gap. */
    row-gap: 0;
  }

  /* The register button sits inside .hero-copy in the markup but belongs under
     the wheel on mobile. Promoting the copy's children to grid items lets the
     button be ordered past the wheel without duplicating it. */
  .hero-copy {
    display: contents;
  }

  .hero-copy h1 {
    order: 1;
  }

  .hero-copy p {
    order: 2;
    max-width: none;
    margin-inline: auto;
  }

  .wheel-stage {
    order: 3;
    margin-top: 0;
  }

  .cta-button {
    order: 4;
    margin: 22px auto 0;
  }

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

  .step-card {
    max-width: 380px;
    margin-inline: auto;
    width: 100%;
  }
}
