/* Колесо фортуны Zerocoder — dark cinematic restyle in the style of the "ДОД сентябрь 2026" landing.
   Drop-in replacement for the original style.css. Markup and app.js are untouched. */
:root {
  --red: #e3001b;
  --red-dark: #a80014;
  --red-deep: #5a000c;
  --red-glow: rgba(227, 0, 27, .55);
  --black: #0a0a0a;
  --bg: #0a0a0a;
  --card: #141414;
  --card-2: #1c1c1c;
  --ink: #1a1a1a;
  --white: #ffffff;
  --grey: #f3f3f3;
  --muted: #9a9a9a;
  --muted-2: #6b6b6b;
  --line: rgba(255, 255, 255, .12);
  --radius: 18px;
  --card-h: 168px;
  --font-head: "Onest", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Onest", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--white);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--red); }
h1, h2, h3 { font-family: var(--font-head); margin: 0 0 12px; line-height: 1.15; letter-spacing: -.01em; }
h2 { font-size: 22px; font-weight: 600; }
h3 { font-size: 24px; font-weight: 600; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); font-size: 14px; }
.big { font-family: var(--font-head); font-size: 20px; font-weight: 600; }
[hidden] { display: none !important; }

/* Background: black stage, spotlight from the top, red glow rising from the bottom (as in the DOD hero). */
.bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 55% 40% at 50% -5%, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 70%),
    radial-gradient(ellipse 70% 45% at 85% 105%, rgba(227,0,27,.55) 0%, rgba(227,0,27,0) 70%),
    radial-gradient(ellipse 60% 40% at 5% 100%, rgba(120,0,14,.6) 0%, rgba(120,0,14,0) 70%),
    var(--bg);
}

.page { max-width: 1120px; margin: 0 auto; padding: 36px 20px 64px; }

/* Header */
.hero { text-align: left; margin-bottom: 32px; }
.hero__tag {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--white); background: var(--red); padding: 5px 12px; border-radius: 6px; margin-bottom: 20px;
}
.hero__title { font-size: clamp(36px, 6vw, 68px); font-weight: 600; color: var(--white); letter-spacing: -.02em; line-height: 1.02; text-transform: uppercase; }
.hero__title span { color: var(--red); }
.hero__sub { max-width: 620px; margin: 16px 0 0; font-size: 17px; color: rgba(255,255,255,.78); }

/* Grid */
.grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); gap: 32px; align-items: start; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } .hero { text-align: center; } .hero__sub { margin-left: auto; margin-right: auto; } }

/* Reel */
.reel-col { display: flex; justify-content: center; }
.machine { width: min(100%, 460px); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.reel-window {
  position: relative; width: 100%; height: calc(var(--card-h) * 3.2); overflow: hidden; border-radius: 22px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 50%, rgba(227,0,27,.18) 0%, rgba(227,0,27,0) 70%),
    linear-gradient(180deg, #161616 0%, #0c0c0c 100%);
  border: 1.5px solid var(--red);
  box-shadow: 0 0 0 1px rgba(227,0,27,.25), 0 0 40px -6px var(--red-glow), inset 0 0 60px rgba(0,0,0,.6);
}
.reel { position: absolute; left: 0; right: 0; top: 0; will-change: transform; transition: none; }
.reel.is-spinning { transition: transform 6.2s cubic-bezier(.08, .75, .1, 1); }
.reel-fade { position: absolute; left: 0; right: 0; height: 34%; z-index: 2; pointer-events: none; }
.reel-fade--top { top: 0; background: linear-gradient(to bottom, rgba(10,10,10,.95), rgba(10,10,10,0)); }
.reel-fade--bottom { bottom: 0; background: linear-gradient(to top, rgba(10,10,10,.95), rgba(10,10,10,0)); }
.reel-marker { position: absolute; left: 0; right: 0; top: 50%; height: 0; z-index: 3; pointer-events: none; }
.reel-marker::before, .reel-marker::after {
  content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px; background: rgba(227,0,27,.45);
}
.reel-marker::before { transform: translateY(calc(var(--card-h) / -2)); }
.reel-marker::after { transform: translateY(calc(var(--card-h) / 2)); }
.reel-marker i { position: absolute; top: -10px; width: 0; height: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; filter: drop-shadow(0 0 8px var(--red-glow)); }
.reel-marker__l { left: 8px; border-left: 16px solid var(--red); }
.reel-marker__r { right: 8px; border-right: 16px solid var(--red); }

/* Prize cards: three tones come from app.js — black / white / red (by prize color in JSON).
   Black → brushed dark sector, white → outlined dark with red frame, red → solid red neon. */
.prize-card {
  height: var(--card-h); display: flex; align-items: center; justify-content: center; gap: 14px; padding: 10px 56px;
}
.prize-card__img {
  width: 96px; height: 96px; flex: none; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(0,0,0,.5));
}
.prize-card__img[hidden] { display: none; }
.prize-card__body { display: flex; flex-direction: column; align-items: center; text-align: center; }
.prize-card__tag {
  font-family: var(--font-head); font-weight: 700; font-size: 32px; line-height: 1; letter-spacing: -.02em;
  color: var(--white); background: linear-gradient(160deg, #2a2a2a 0%, #151515 55%, #202020 100%);
  padding: 14px 22px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 14px 30px -14px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.08);
  white-space: nowrap; position: relative;
}
.prize-card--white .prize-card__tag { background: var(--card); color: var(--white); border-color: var(--red); box-shadow: 0 0 24px -6px var(--red-glow), 0 14px 30px -14px rgba(0,0,0,.9); }
.prize-card--red .prize-card__tag { background: linear-gradient(160deg, #ff1f38 0%, var(--red) 50%, var(--red-dark) 100%); color: var(--white); border-color: rgba(255,255,255,.22); box-shadow: 0 0 34px -4px var(--red-glow), 0 14px 30px -14px rgba(0,0,0,.9); }
.prize-card__sub { margin-top: 10px; font-weight: 500; font-size: 14px; color: rgba(255,255,255,.72); max-width: 240px; line-height: 1.25; }
.prize-card.is-win .prize-card__body, .prize-card.is-win .prize-card__img { animation: winpulse 1s ease-in-out 2; }
@keyframes winpulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* Big red CTA with a square arrow chip on the right, as "Крутить колесо" in the DOD mockup. */
.spin-btn {
  position: relative; width: 100%; padding: 18px 64px 18px 20px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--red); color: var(--white); font-family: var(--font-head); font-weight: 600; font-size: 18px; letter-spacing: 0; text-transform: none;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  box-shadow: 0 0 34px -6px var(--red-glow), 0 12px 30px -14px rgba(0,0,0,.9); transition: transform .12s, background .2s, box-shadow .2s;
}
.spin-btn::after {
  content: ""; position: absolute; right: 8px; top: 8px; bottom: 8px; width: 40px; border-radius: 6px; background: var(--black);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M3 12V7a2 2 0 0 1 2-2h7'/><path d='M9 2l3 3-3 3'/></svg>");
  background-repeat: no-repeat; background-position: center;
}
.spin-btn:hover:not(:disabled) { background: #ff1f38; transform: translateY(-1px); box-shadow: 0 0 44px -4px var(--red-glow), 0 14px 30px -14px rgba(0,0,0,.9); }
.spin-btn:disabled { opacity: .5; cursor: default; }
.spin-btn__count { font-size: 13px; font-weight: 600; background: rgba(0,0,0,.35); padding: 4px 10px; border-radius: 999px; }

.spins { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.spins__dots { display: flex; gap: 8px; }
.spins__dots i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); background: transparent; }
.spins__dots i.on { background: var(--red); border-color: var(--red); box-shadow: 0 0 10px var(--red-glow); }
.spins__dots i.used { background: #2a2a2a; border-color: #2a2a2a; }
.spins__text { font-size: 12px; color: var(--muted); text-align: center; }

/* Panel: dark card with a thin red neon frame (DOD event cards). */
.card {
  background: var(--card); color: var(--white); border: 1.5px solid var(--red); border-radius: var(--radius); padding: 26px;
  box-shadow: 0 0 0 1px rgba(227,0,27,.2), 0 0 40px -10px var(--red-glow), 0 30px 60px -30px rgba(0,0,0,.9);
}
.card h2 { color: var(--white); }
.card label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin: 14px 0 0; }
.card input[type="text"], .card input[type="tel"], .card input[type="email"] {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-size: 15px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card-2); outline: none; color: var(--white);
}
.card input::placeholder { color: var(--muted-2); }
.card input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(227,0,27,.18); }
fieldset.contact { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 14px; margin: 18px 0 0; }
fieldset.contact legend { font-size: 13px; font-weight: 600; color: var(--white); padding: 0 6px; }
.radio { display: inline-flex !important; align-items: center; gap: 8px; margin: 6px 18px 0 0 !important; font-weight: 500 !important; color: var(--white) !important; }
.radio input { accent-color: var(--red); width: 18px; height: 18px; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; font-size: 13px !important; margin-top: 14px !important; color: rgba(255,255,255,.8) !important; }
.check input { accent-color: var(--red); width: 18px; height: 18px; flex: none; margin-top: 2px; }
.check a { color: #ff5f70; }
.btn {
  display: inline-block; width: 100%; margin-top: 20px; padding: 14px 18px; font-family: var(--font-head); font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: .04em; border-radius: 10px; border: 1.5px solid transparent; cursor: pointer; transition: transform .12s, background .2s, border-color .2s, box-shadow .2s;
}
.btn--primary { background: var(--red); color: var(--white); border-color: var(--red); box-shadow: 0 0 28px -8px var(--red-glow); }
.btn--primary:hover:not(:disabled) { background: #ff1f38; border-color: #ff1f38; transform: translateY(-1px); }
.btn--primary:disabled { background: #2a2a2a; border-color: #2a2a2a; color: var(--muted-2); cursor: default; box-shadow: none; }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.btn--small { width: auto; padding: 10px 14px; font-size: 12px; margin-top: 12px; background: var(--white); color: var(--black); border-color: var(--white); }
.switch { margin: 16px 0 0; font-size: 14px; text-align: center; color: var(--muted); }
.switch a { color: var(--white); text-decoration-color: var(--red); }
.error { color: #ff5f70; font-weight: 600; font-size: 14px; margin: 12px 0 0; }

.prizes { margin-top: 20px; }
.prizes__title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.prize { padding: 10px 12px; border-left: 3px solid var(--red); background: var(--card-2); border-radius: 8px; margin-bottom: 8px; font-size: 14px; }
.prize b { display: block; }
.prize small { color: var(--muted); }
.prize .countdown { color: #ff5f70; font-weight: 700; font-variant-numeric: tabular-nums; }

.contact-box { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.contact-box__label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.contact-box__value { font-weight: 600; margin: 4px 0; }
.contact-box a { color: var(--muted); }

/* Rules: like the "Количество попыток ограничено" box in the DOD mockup. */
.rules { margin-top: 48px; padding: 28px; background: var(--card); color: var(--white); border-radius: var(--radius); border: 1.5px solid var(--red); box-shadow: 0 0 0 1px rgba(227,0,27,.2), 0 0 40px -14px var(--red-glow); }
.rules h2 { color: var(--red); font-size: 18px; font-weight: 600; }
.rules ul { padding-left: 20px; margin: 0 0 16px; }
.rules li { margin-bottom: 8px; font-size: 14px; color: rgba(255,255,255,.88); }
.rules li::marker { color: var(--red); }
.rules .muted { color: var(--muted); }
.rules a { color: #ff5f70; }

/* Modals */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.82); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal__box {
  position: relative; background: var(--card); color: var(--white); border-radius: 22px; padding: 32px; max-width: 480px; width: 100%; text-align: center;
  border: 1.5px solid var(--red); box-shadow: 0 0 0 1px rgba(227,0,27,.25), 0 0 60px -10px var(--red-glow), 0 30px 80px -30px rgba(0,0,0,.9); animation: pop .35s cubic-bezier(.2, 1.4, .4, 1);
}
.modal__box h3 { color: var(--white); }
.modal__box--result { background: radial-gradient(ellipse at 50% 15%, #3a0008, var(--card) 65%); overflow: hidden; }
.modal__box--result .muted { color: var(--muted); }
.modal__box--text { text-align: left; max-width: 640px; max-height: 85vh; overflow: auto; font-size: 14px; color: rgba(255,255,255,.88); }
.result-card { display: flex; justify-content: center; padding: 8px 0 4px; }
.result-card .prize-card { height: auto; padding: 8px 0; }
.result-card .prize-card__tag { font-size: 40px; }
.timer { display: inline-flex; flex-direction: column; align-items: center; margin: 10px auto 14px; padding: 8px 18px; border-radius: 10px; background: rgba(0,0,0,.4); border: 1px solid rgba(227,0,27,.5); }
.timer__label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.timer__value { font-family: var(--font-head); font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; color: var(--white); }
.modal__contact { margin: 14px 0; padding: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.modal__actions { display: flex; gap: 10px; }
.modal__actions .btn { margin-top: 12px; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Sparks: red-hot instead of gold. */
.sparks { position: absolute; inset: 0; pointer-events: none; }
.sparks i { position: absolute; width: 14px; height: 14px; background: #ff5f70; filter: drop-shadow(0 0 6px var(--red-glow)); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: twinkle 1.6s ease-in-out infinite; }
.sparks i:nth-child(1) { left: 12%; top: 14%; animation-delay: 0s; }
.sparks i:nth-child(2) { left: 84%; top: 18%; width: 20px; height: 20px; animation-delay: .3s; }
.sparks i:nth-child(3) { left: 8%; top: 46%; width: 10px; height: 10px; animation-delay: .6s; }
.sparks i:nth-child(4) { left: 90%; top: 42%; animation-delay: .9s; }
.sparks i:nth-child(5) { left: 22%; top: 30%; width: 8px; height: 8px; animation-delay: 1.2s; }
.sparks i:nth-child(6) { left: 74%; top: 8%; width: 10px; height: 10px; animation-delay: .45s; }
@keyframes twinkle { 0%, 100% { transform: scale(.4) rotate(0); opacity: .3; } 50% { transform: scale(1.2) rotate(20deg); opacity: 1; } }

@media (max-width: 480px) {
  :root { --card-h: 150px; }
  .page { padding: 24px 14px 40px; }
  .card { padding: 18px; }
  .prize-card { padding: 10px 40px; gap: 10px; }
  .prize-card__img { width: 80px; height: 80px; }
  .prize-card__tag { font-size: 26px; padding: 12px 18px; }
  .modal__box { padding: 24px 18px; }
  .modal__actions { flex-direction: column; }
}
