:root {
  --bg: #311414;
  --bg-card: #291313;
  --text: #f5f6ff;
  --muted: rgba(245,246,255,.72);
  --muted2: rgba(245,246,255,.58);
  --border: rgba(255,255,255,.10);
  --border-light: rgba(255,255,255,.14);
  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --shadow-card: 0 12px 40px rgba(0,0,0,.35);
  --red: #e31837;
  --red2: #ff3b4d;
  --gold: #ffcc4a;
  --gradient-red: linear-gradient(135deg, var(--red), var(--red2));
  --gradient-gold: linear-gradient(135deg, #ffd700, #ffaa00);

}



.hero {
  position: relative;
  width: 100%;
  padding-bottom: 152.2%; /* ← ваше соотношение сторон */
  background: #401919;
  overflow: hidden;
}

.hero--bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("hero_bg.png");
  background-repeat: no-repeat;
  background-size: cover; /* ← изменено с contain */
  background-position: center top;
  opacity: 1;
  filter: brightness(1.15) contrast(1.05);
  pointer-events: none;
  z-index: 0;
}

.heroContent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 8px;
}

.heroActions {
    width: 100%;
    max-width: 260px;
    position: absolute;
    bottom: 47%; /* подберите от 5% до 15% */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}







* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background:
    radial-gradient(800px 420px at 20% 10%, rgba(227,24,55,.18), transparent 60%),
    radial-gradient(700px 420px at 85% 20%, rgba(255,204,74,.10), transparent 55%),
    linear-gradient(180deg, #3c0d19, var(--bg));
  color: var(--text);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: 100%;
  max-width: 480px;
  padding: 0 16px;
  margin: 0 auto;
}

.page {
  min-height: 100%;
}

/* ===== HERO СЕКЦИЯ ===== */


.hero--bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.15) 85%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
  z-index: 1;
}



.heroIntro {
  text-align: center;
}

.kicker {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(227,24,55,.5);
  background: rgba(227,24,55,.15);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  /* text-transform: uppercase; */
  margin-bottom: 8px;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.02em;
}


/* ===== BUTTONS ===== */
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 10px 20px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .02em;
  transition: transform .15s ease, opacity .15s ease, filter .15s ease, box-shadow .15s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:active {
  transform: translateY(2px) scale(.98);
}

.btn:focus,
.btn:focus-visible {
  outline: none;
  box-shadow: none;
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  filter: saturate(.6);
}

.btnPrimary {
  color: #ffc738;
  background: linear-gradient(180deg, #de0c21 0%, #940117 70%, #d4021a 100%);
  border: 1px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.btnPrimary::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(180deg, #ffdd1e, #ffc636a8, #ffaa00);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.btnPrimary:hover:not(:disabled) {
  background: linear-gradient(180deg, #7d000d 0%, #bb0517 70%, #de0425 100%);
}

.btnGhost {
  background: rgba(255,255,255,.08);
  color: var(--text);
  border: 1px solid var(--border-light);
}

.btnGhost:hover:not(:disabled) {
  background: rgba(255,255,255,.12);
}

.btnHero {
  width: 100%;
  height: 34px;
  padding: 6px 18px !important;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffd66d;
}

.btnBig {
  width: 100%;
  padding: 16px 24px;
  font-size: 18px;
}

.btnIcon {
  font-size: 18px;
}

/* ===== SECTIONS ===== */
.section {
  padding: 20px 0;
}

.section-info {
  padding: 16px 0;
}

/* ===== INFO CARD ===== */
.infoCard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
}

.infoHeader {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.infoIcon {
  font-size: 32px;
}

.infoTitle {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.infoText {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ===== STEPS ===== */
.steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.step:first-child {
  border-top: none;
  padding-top: 4px;
}

.num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--gradient-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  color: #0b0b10;
}

.stepTitle {
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 4px;
}

.stepText {
  color: var(--muted2);
  font-size: 14px;
  line-height: 1.5;
}

/* ===== PLINKO SECTION ===== */
.sectionPlinko {
  padding: 0 0 24px;
  margin-top: -20px;
  position: relative;
  z-index: 5;
}

.plCard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.videoWrap {
  padding: 8px 8px 0;
  margin-bottom: 0;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    rgba(58, 13, 13, 0.06),
    rgba(61, 11, 11, 0.02)
  );
  overflow: hidden;
  /* фиксируем пропорции контейнера, чтобы не было «дырок» */
  position: relative;
  height: 0;
  padding-bottom: 130%; /* подбери под свой слот: 130–145% */
}

.videoPlayer {
  position: absolute;
  top: -10%;          /* двигаем вверх, противоположно translateY(+16%) */
  left: 0;
  width: 100%;
  height: 132%;       /* чуть больше 100%, чтобы низ точно ушёл под рамку */
  display: block;
  border-radius: 18px;
  object-fit: cover;
}



.videoActions {
  padding: 12px 16px 4px;
  display: flex;
  justify-content: center;
}

.videoActions .btnBig {
  max-width: 100%;
}


.plHeader {
  padding: 20px 20px 12px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.plTitle {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 900;
}

.plSubtitle {
  margin: 0;
  color: var(--muted2);
  font-size: 13px;
}

.plTop {
  padding: 8px 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.statRight {
  align-items: flex-end;
}

.statLabel {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #ffd66d;
  font-weight: 700;
}

.statValue {
  font-size: 28px;
  font-weight: 900;
  color: #ffd66d;
}

.dropBtn {
  min-width: 90px;
  height: 56px;
  border-radius: 14px;
  font-size: 15px;
}

.canvasWrap {
  padding: 0 8px;
  margin-bottom: 0;
}

canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(58, 13, 13, 0.06), rgba(61, 11, 11, 0.02));
}

.notes {
  padding: 0 8px 12px;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.note {
  width: 36px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 900;
  color: #3d120a;
  background: linear-gradient(180deg, #a2902c, #cca239, #d49311);
  border: 2px solid #ffd700;
  border-bottom: 4px solid var(--note-accent, rgba(0,0,0,.28));
  user-select: none;
}

.note[data-pressed="true"] {
  animation: press .45s ease;
}

@keyframes press {
  0% { transform: translateY(0) }
  50% { transform: translateY(3px) }
  100% { transform: translateY(0) }
}

.fineprint {
  padding: 8px 20px 16px;
  margin: 0;
  color: rgba(245,246,255,.45);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

/* ===== FEATURES ===== */
.section-features {
  padding: 20px 0;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.featureIcon {
  font-size: 28px;
  flex-shrink: 0;
}

.featureTitle {
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 4px;
}

.featureText {
  color: var(--muted2);
  font-size: 13px;
  line-height: 1.4;
}

/* ===== CTA SECTION ===== */
.section-cta {
  padding: 20px 0 30px;
}

.ctaBtn {
  min-height: 60px;
  font-size: 18px;
}

/* ===== FOOTER ===== */
.footer {
  padding: 30px 0;
  background: linear-gradient(180deg, rgba(55, 10, 10, 0.02), transparent 60%);
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.footBrand {
  display: flex;
  align-items: center;
}

.footTitle {
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: 13px;
  color: rgba(245,246,255,.6);
}

.links {
  display: flex;
  gap: 12px 20px;
  flex-wrap: wrap;
}

.links a {
  color: rgba(245,246,255,.55);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s ease;
}

.links a:hover {
  color: rgba(245,246,255,.85);
}

.footerText {
  margin: 0;
  text-align: center;
  color: rgba(245,246,255,.35);
  font-size: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.05);
}

/* ===== OVERLAY / MODAL ===== */
.overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(12px);
  padding: 20px;
  z-index: 100;
}

.overlay.show {
  display: flex;
  animation: fadeIn .3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  width: min(400px, 92vw);
  border-radius: 24px;
  background: rgba(18,18,26,.98);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  animation: slideUp .3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modalInner {
  padding: 24px;
  position: relative;
  z-index: 2;
}

.ok {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,204,74,.2);
  border: 1px solid rgba(255,204,74,.4);
  color: var(--gold);
  font-size: 24px;
  margin-bottom: 16px;
}

.modal h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.tiny {
  font-size: 12px;
}

.winBox {
  margin: 16px 0;
  padding: 16px;
  border-radius: 18px;
  background: rgba(0,0,0,.3);
  border: 1px solid var(--border);
}

.winLabel {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(245,246,255,.5);
  margin-bottom: 8px;
  font-weight: 700;
}

.winValue {
  font-size: 32px;
  font-weight: 950;
  letter-spacing: .01em;
  color: var(--gold);
}

.codeBox {
  margin: 16px 0;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
}

.codeLabel {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(245,246,255,.5);
  margin-bottom: 10px;
  font-weight: 700;
}

.codeRow {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: .05em;
  word-break: break-all;
}

.copyBtn {
  padding: 10px 14px;
  font-size: 13px;
}

.copyIcon {
  font-size: 14px;
}

/* ===== CONFETTI ===== */
.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.confetti i,
.confetti div {
  position: absolute;
  top: -16px;
  width: 10px;
  height: 14px;
  border-radius: 2px;
  opacity: .95;
  animation: fall 1.5s linear forwards;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.25));
}

@keyframes fall {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 1; }
  100% {
    transform: translateY(120vh) rotate(520deg);
    opacity: 1;
  }
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 380px) {
  h1 {
    font-size: 1.8rem;
  }

  .btnHero {
    font-size: 16px;
    padding: 12px 18px;
  }

  .statValue {
    font-size: 24px;
  }

  .plTitle {
    font-size: 20px;
  }
}

@media (min-height: 780px) {
  .hero {
    min-height: 700px;
  }

  .heroContent {
    min-height: 700px;
  }
}

/* Reduce spacing between sections on small screens */
@media (max-width: 420px) {
  .section {
    padding: 16px 0;
  }

  .step {
    padding: 12px 0;
  }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}
