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

:root {
  /* Ночная палитра. #081747 остаётся в крупных пятнах: на чёрном он слишком тёмный для текста. */
  --ink: #16130f;
  --paper: #f4efe6;
  --paper-2: #fffdf8;
  --red: #0867f9;
  --red-deep: #0647b0;
  --gold: #d9a43b;
  --gold-deep: #081747;
  --muted: #b7c3d6;
  --line: rgba(183, 195, 214, 0.28);
  --focus: #0867f9;
  --night: #05060c;
  --panel: #111a2d;
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(720px 520px at 50% 280px, rgba(8, 103, 249, 0.24), transparent 68%),
    radial-gradient(820px 420px at 100% -10%, rgba(8, 23, 71, 0.95), transparent 62%),
    radial-gradient(640px 360px at -8% 20%, rgba(8, 23, 71, 0.8), transparent 58%),
    var(--night);
  color: #f7f9fc;
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 5;
}

.skip:focus {
  top: 12px;
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 72px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding: 22px 0 16px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.brand,
.season {
  margin: 0;
  font-family: Unbounded, "Arial Narrow", sans-serif;
}

.brand {
  color: #f7f9fc;
  text-decoration: none;
  font-size: 15px;
}

.season {
  color: #d5deec;
  font-size: 13px;
}

.eyebrow {
  margin: 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 8px 0 12px;
  max-width: 11ch;
  font-family: Unbounded, "Arial Narrow", sans-serif;
  font-size: clamp(40px, 8vw, 78px);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.03em;
}

/* Плашка над заголовком убрана, поэтому на промостранице заголовок начинается сразу. */
.page > main > h1 {
  margin-top: 0;
}

.lede {
  max-width: 38ch;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.when,
.banner {
  max-width: 46ch;
}

.when {
  color: #f7f9fc;
  margin: 14px 0 0;
}

.banner {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(183, 195, 214, 0.4);
  color: #f7f9fc;
}

.noscript {
  width: min(1120px, calc(100% - 32px));
  margin: 16px auto;
}

.stage {
  display: grid;
  gap: 40px;
  align-items: center;
  margin-top: 48px;
}

.wheel-stage {
  display: grid;
  justify-items: center;
}

.wheel-ring {
  position: relative;
  width: min(100%, 540px);
  aspect-ratio: 1;
  padding: 14px;
  border-radius: 50%;
  /* Обод Чёрной пятницы: центр закрыт диском, видна только золотая полоса. */
  background:
    linear-gradient(160deg, #f6e2a8 0%, var(--gold) 38%, #8d6b2e 72%, #f0d48a 100%);
  box-shadow:
    0 0 72px rgba(217, 164, 59, 0.45),
    0 28px 60px rgba(0, 0, 0, 0.45),
    inset 0 0 0 2px rgba(246, 226, 168, 0.9);
}

.wheel-hit {
  position: absolute;
  z-index: 5;
  inset: 14px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  appearance: none;
}

.wheel-hit:disabled {
  cursor: wait;
}

.pointer {
  position: absolute;
  z-index: 4;
  top: 4px;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-right: 13px solid transparent;
  border-left: 13px solid transparent;
  border-top: 26px solid var(--red);
  filter: drop-shadow(0 0 8px rgba(8, 103, 249, 0.85));
}

.wheel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  background: #081747;
  transform: rotate(0deg);
  will-change: transform;
}

.disc,
.labels {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

/* Цвет сектора плоский, объём только по радиусу: свет у центра, темнее к ободу.
   closest-side совпадает с кругом диска, углового перепада нет.
   Оба градиента статичные, колесо крутится только transform у .wheel.
   0 — золото, 2/5/8 — синий акцент, остальные чередуют #081747 и #111A2D. */
.disc {
  background:
    radial-gradient(
      closest-side circle at 50% 50%,
      rgba(255, 255, 255, 0.32) 0%,
      rgba(255, 255, 255, 0.14) 30%,
      rgba(255, 255, 255, 0) 58%,
      rgba(0, 0, 0, 0.2) 100%
    ),
    conic-gradient(
      from 0deg,
      #d9a43b 0deg 36deg,
      #081747 36deg 72deg,
      #0867f9 72deg 108deg,
      #081747 108deg 144deg,
      #111a2d 144deg 180deg,
      #0867f9 180deg 216deg,
      #111a2d 216deg 252deg,
      #081747 252deg 288deg,
      #0867f9 288deg 324deg,
      #081747 324deg 360deg
    );
}

.labels {
  margin: 0;
  padding: 0;
  list-style: none;
}

.spoke {
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 50%;
  transform-origin: bottom center;
}

.spoke span {
  position: absolute;
  top: 18%;
  left: 0;
  width: max-content;
  transform: translateX(-50%);
  font-family: Unbounded, "Arial Narrow", sans-serif;
  font-size: 72px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.hub {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 23%;
  aspect-ratio: 1;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 4px solid rgba(8, 103, 249, 0.75);
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, #16356f, #081747 70%);
  color: #f7f9fc;
  font-family: Unbounded, sans-serif;
  font-size: clamp(11px, 2vw, 14px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticket {
  position: relative;
  padding: 32px 26px 28px;
  background: var(--panel);
  color: #f7f9fc;
  border: 1px solid rgba(8, 103, 249, 0.4);
}

.ticket h2,
.result-kicker {
  margin: 0;
}

.ticket h2,
.result-title {
  font-family: Unbounded, "Arial Narrow", sans-serif;
  font-weight: 700;
  line-height: 1.05;
}

.ticket h2 {
  margin-bottom: 16px;
  font-size: 28px;
}

.field,
.check {
  display: grid;
}

.field {
  gap: 6px;
  margin-bottom: 14px;
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 16px;
}

.field textarea {
  resize: vertical;
}

.check {
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  margin: 0 0 12px;
  font-weight: 560;
}

.check input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--red);
}

.check a {
  color: var(--red);
}

.ticket .field input,
.ticket .field textarea,
.ticket .field select {
  border-color: #c5d0e4;
  background: #f4f7fb;
  color: #10203a;
}

.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

.form-status {
  min-height: 1.4em;
  margin: 4px 0 10px;
  color: var(--red-deep);
  font-weight: 700;
}

.ticket .form-status {
  color: #ffb4a8;
}

.spin-button,
.cta,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 18px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

.spin-button,
.cta {
  width: 100%;
  font-family: Unbounded, "Arial Narrow", sans-serif;
  font-size: 16px;
}

.spin-button {
  background: var(--red);
  color: #fff;
  box-shadow: inset 0 -4px 0 var(--red-deep);
}

.spin-button:disabled {
  background: #3d4d6a;
  color: #f7f9fc;
  box-shadow: none;
  cursor: wait;
}

.cta {
  margin-top: 8px;
  background: var(--red);
  color: #fff;
}

.result-kicker {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.result-title {
  margin: 8px 0;
  color: var(--gold);
  font-size: clamp(28px, 5vw, 40px);
}

.result-desc,
.result-claim,
.result-note {
  margin: 0 0 10px;
}

.result-note:empty {
  display: none;
}

.result-claim {
  font-weight: 700;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
  color: var(--muted);
  font-size: 14px;
}

.foot a {
  width: fit-content;
  color: var(--red);
}

.sheet-page {
  padding-top: 32px;
}

.sheet {
  max-width: 760px;
  padding: 36px 28px 48px;
  background: var(--panel);
  color: #f7f9fc;
  border: 1px solid rgba(8, 103, 249, 0.28);
}

.sheet h1 {
  max-width: none;
  font-size: clamp(34px, 6vw, 56px);
}

.back {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
}

.prose p {
  margin: 0 0 14px;
  font-size: 17px;
}

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

@media (min-width: 980px) {
  .stage {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 64px;
  }

  .spoke span {
    font-size: 78px;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .wheel {
    transition: none !important;
  }
}
