/* =========================================================
   Sweet Bonanza — лендинг
   Визуальная тема в духе Betano: почти чёрный фон, фирменный
   огненно-оранжевый акцент, наклонные жирные заголовки,
   острые угловатые формы вместо мягких скруглений.
   Автомат горизонтальный (рамка 1672×941).
   ========================================================= */

:root {
  --img-w: 1672;
  --img-h: 941;

  --bg-0: #08090b;
  --bg-1: #0f1113;
  --bg-2: #17191c;
  --bg-card: #141618;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --accent: #ff4713;
  --accent-2: #ff7a1a;
  --accent-dark: #c22e0a;
  --accent-soft: rgba(255, 71, 19, 0.14);

  --text: #f7f7f8;
  --text-dim: #a8acb3;
  --text-faint: #6b7078;

  --green: #21c95e;
  --radius: 4px;
  --radius-lg: 8px;

  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

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

h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 14px;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

h1 { font-size: clamp(28px, 4vw, 46px); font-style: italic; }
h2 { font-size: clamp(22px, 3vw, 32px); font-style: italic; }
h3 { font-size: 17px; margin-bottom: 8px; text-transform: none; font-style: normal; }

p { margin: 0 0 14px; color: var(--text-dim); }

/* =========================================================
   Кнопки
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 14.5px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(95deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 4px 0 var(--accent-dark), 0 10px 24px rgba(255, 71, 19, 0.35);
}

.btn--primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn--primary:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--accent-dark), 0 4px 14px rgba(255, 71, 19, 0.3);
}

.btn--secondary {
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
}

.btn--secondary:hover {
  background: #202327;
  border-color: rgba(255, 255, 255, 0.28);
}

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

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}

.btn--sm {
  padding: 10px 18px;
  font-size: 12.5px;
}

.btn--block {
  width: 100%;
}

/* =========================================================
   Шапка сайта
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 9, 11, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header::after {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent) 100%);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 900;
  font-size: 19px;
  font-style: italic;
  text-transform: uppercase;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  font-style: normal;
  transform: skew(-6deg);
}

.brand__name strong {
  color: var(--accent-2);
}

.nav {
  display: flex;
  gap: 28px;
  margin-left: 12px;
  flex: 1;
}

.nav a {
  text-decoration: none;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
  position: relative;
  padding-bottom: 2px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 2px;
  background: var(--accent);
  transition: right 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after {
  right: 0;
}

.nav__cta {
  margin-left: auto;
}

@media (max-width: 860px) {
  .nav { display: none; }
  .header__inner { justify-content: space-between; }
}

@media (max-width: 480px) {
  .header__inner {
    height: auto;
    padding: 10px 0;
    gap: 10px;
  }

  .brand { font-size: 15px; }
  .brand__mark { width: 28px; height: 28px; font-size: 12px; }

  .nav__cta {
    padding: 9px 12px;
    font-size: 11px;
    white-space: normal;
    text-align: center;
  }
}

/* =========================================================
   Главный экран
   ========================================================= */

.hero {
  position: relative;
  padding: 64px 0 56px;
  background:
    radial-gradient(ellipse 65% 55% at 85% 0%, rgba(255, 71, 19, 0.16), transparent 60%),
    radial-gradient(ellipse 55% 45% at 5% 100%, rgba(255, 122, 26, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 60%;
  height: 180%;
  background: linear-gradient(100deg, transparent 40%, rgba(255, 71, 19, 0.06) 50%, transparent 60%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.tag--gold {
  background: var(--accent-soft);
  border-color: rgba(255, 71, 19, 0.4);
  color: var(--accent-2);
}

.hero__lead {
  font-size: 17px;
  max-width: 56ch;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 22px 0 28px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  padding: 12px 20px;
  background: var(--bg-card);
  min-width: 96px;
  flex: 1;
  border-right: 1px solid var(--border);
}

.stat-pill:last-child {
  border-right: none;
}

.stat-pill__value {
  font-weight: 900;
  font-size: 19px;
  color: var(--accent-2);
  font-style: italic;
}

.stat-pill__label {
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__art {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero__art::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle, rgba(255, 71, 19, 0.25), transparent 65%);
  z-index: 0;
}

/* Hero из нескольких сладостей — у слота нет персонажа-талисмана */
.hero__art--candy {
  min-height: 320px;
  align-items: center;
}

.hero__art--candy .candy {
  position: absolute;
  z-index: 1;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.55));
  animation: candyFloat 4s ease-in-out infinite;
}

.hero__art--candy .candy--main {
  position: relative;
  width: 260px;
  max-width: 260px;
}

.hero__art--candy .candy--a { width: 120px; top: 0; left: 8%; animation-delay: -1s; }
.hero__art--candy .candy--b { width: 130px; bottom: 4%; right: 4%; animation-delay: -2s; }
.hero__art--candy .candy--c { width: 90px; top: 6%; right: 12%; animation-delay: -3s; }

@keyframes candyFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(4deg); }
}

@media (max-width: 860px) {
  .hero__art--candy { min-height: 220px; }
  .hero__art--candy .candy--main { width: 170px; }
  .hero__art--candy .candy--a { width: 80px; }
  .hero__art--candy .candy--b { width: 90px; }
  .hero__art--candy .candy--c { width: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__art--candy .candy { animation: none; }
}

.hero__art img {
  position: relative;
  z-index: 1;
  max-width: 340px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .hero__art img { max-width: 220px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }

  .hero { padding: 32px 0 40px; }
  .hero__art img { max-width: 160px; }
  .hero__lead { font-size: 15px; }

  .hero__stats { margin: 18px 0 22px; }
  .stat-pill { min-width: 0; padding: 10px 8px; }
  .stat-pill__value { font-size: 15px; }
  .stat-pill__label { font-size: 9.5px; }

  .hero__actions .btn { width: 100%; }
}

/* =========================================================
   Общие стили секций
   ========================================================= */

.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.section--dark {
  background: var(--bg-1);
}

.section__head {
  max-width: 720px;
  margin-bottom: 36px;
}

.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section__sub {
  font-size: 16px;
}

@media (max-width: 480px) {
  .section { padding: 44px 0; }
  .section__head { margin-bottom: 24px; }
  .section__sub { font-size: 14.5px; }
}

/* =========================================================
   О слоте + демо: текст и характеристики сверху,
   горизонтальный автомат на всю ширину под ними
   ========================================================= */

.demo-intro {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}

.demo-intro__copy h2 {
  margin-bottom: 20px;
}

.demo-intro__copy p {
  font-size: 14.5px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.info-card--compact {
  padding: 14px 18px;
}

.spec-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.spec-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.spec-list > div:last-child {
  border-bottom: none;
}

.spec-list dt {
  color: var(--text-faint);
  font-size: 13.5px;
}

.spec-list dd {
  margin: 0;
  font-weight: 800;
  font-size: 13.5px;
  text-align: right;
}

.spec-list--compact > div {
  padding: 6px 0;
}

.spec-list--compact dt,
.spec-list--compact dd {
  font-size: 12px;
}

@media (max-width: 900px) {
  .demo-intro { grid-template-columns: 1fr; gap: 20px; }
}

/* =========================================================
   Демо слота — горизонтальный автомат
   ========================================================= */

.demo-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: min(96vw, 1240px);
  margin-left: 50%;
  transform: translateX(-50%);
}

.machine-wrap {
  position: relative;
  width: 100%;
}

.machine {
  position: relative;
  width: 100%;
  container-type: inline-size;
  line-height: 1;
  user-select: none;
  -webkit-user-select: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.machine__bg {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.ov {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
}

/* Игровое поле 6×5 — фиолетовый фон и золотые разделители уже на рамке */

.reels-window {
  transition: box-shadow 0.4s ease;
}

.reels-window::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at center, rgba(255, 150, 210, 0.35), rgba(255, 120, 200, 0) 70%);
}

.machine.is-spinning .reels-window {
  animation: spinGlow 0.9s ease-in-out infinite alternate;
}

.reels-window.is-win {
  animation: winGlow 1.5s ease-out;
}

.reels-window.is-win::before {
  animation: winFlash 1.5s ease-out;
}

.reels {
  position: absolute;
  inset: 0;
  display: flex;
}

.reel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
}

.reel__inner {
  position: absolute;
  inset: 0;
}

.reel__inner.is-bouncing {
  animation: reelBounce 0.32s ease-out;
}

.strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.reel.is-blurred .strip {
  filter: blur(0.25cqw) brightness(1.1);
}

/* Ячейка и символ: сладости «парят» на поле без плиток, как в оригинале */

.cell {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  padding: 3%;
}

.tile {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.8cqw;
}

.tile img {
  width: 92%;
  height: 92%;
  object-fit: contain;
  filter: drop-shadow(0 0.25cqw 0.35cqw rgba(90, 20, 70, 0.35));
}

.cell.is-win {
  position: relative;
  z-index: 1;
}

.cell.is-win .tile {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7), rgba(255, 150, 220, 0) 70%);
  animation: winPulse 0.5s ease-in-out 3;
}

.cell.is-win .tile img {
  filter: drop-shadow(0 0 0.8cqw rgba(255, 110, 200, 0.95));
}

/* HUD — размеры в cqw от ширины широкой рамки */

.hud-label {
  display: block;
  color: #eaffc9;
  font-weight: 800;
  font-size: max(6px, 0.85cqw);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hud-value {
  display: block;
  color: #fff;
  font-weight: 900;
  font-size: max(8px, 1.3cqw);
  white-space: nowrap;
  text-shadow: 0 0.1cqw 0 #1f6b0a;
}

/* Зелёная «мармеладная» панель: статус, выигрыш, баланс, ставка сверху вниз */
.side-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  padding: clamp(4px, .65cqw, 8px);
  text-align: center;
}

.side-panel__status {
  display: block;
  width: 100%;
  padding-bottom: clamp(2px, .3cqw, 4px);
  border-bottom: max(1px, 0.12cqw) solid rgba(255, 255, 255, 0.45);
  font-weight: 900;
  font-size: clamp(7px, 1cqw, 12px);
  line-height: 1.12;
  overflow-wrap: break-word;
  text-wrap: balance;
  color: #fff;
  text-shadow: 0 0.12cqw 0 #1f6b0a, 0 0 0.6cqw rgba(0, 80, 0, 0.4);
}

.side-panel__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  width: 100%;
}

.last-win {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  width: 100%;
}

.last-win .hud-value {
  font-size: max(10px, 2cqw);
  color: #fff6a8;
  text-shadow: 0 0.12cqw 0 #1f6b0a, 0 0 0.8cqw rgba(255, 240, 120, 0.7);
}

.last-win.is-updated .hud-value {
  animation: bump 0.6s ease-out;
}

/* Оранжевая плашка «Купить бонус» */
.buy-bonus {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  color: #fff;
  font: inherit;
  font-weight: 900;
  font-size: max(7px, 1.35cqw);
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-shadow: 0 0.14cqw 0 #a24a00, 0 0 0.8cqw rgba(255, 160, 40, 0.6);
  border-radius: 1cqw;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.buy-bonus:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 1.6cqw rgba(255, 140, 220, 0.7);
}

/* Кнопки -/+ поверх нарисованных */


.sweet-controls {
  position: absolute;
  z-index: 8;
  right: 4.2%;
  bottom: .3%;
  width: 36%;
  height: 18.8%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1.1cqw, 14px);
  border-radius: 48% 52% 10% 10% / 62% 65% 18% 18%;
  background:
    radial-gradient(ellipse at 22% 38%, #ffe9ff 0%, #f7b8ec 32%, transparent 64%),
    radial-gradient(ellipse at 76% 35%, #fff1ff 0%, #f7b8ec 31%, transparent 65%),
    linear-gradient(180deg, #f8b8eb, #ef80ce 72%, #ef7dcc);
  box-shadow: 0 -9px 24px rgba(255, 209, 249, .62);
}
.sweet-controls > button {
  position: relative;
  top: clamp(8px, 1.8cqw, 25px);
  display: grid;
  place-items: center;
  flex: none;
  padding: 0;
  border: 2px solid #fff5ff;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #c538b3, #740579 65%, #410150);
  color: #fff;
  box-shadow: 0 3px 0 #610568, 0 5px 12px rgba(79, 0, 95, .55),
              inset 0 2px 4px rgba(255, 255, 255, .42);
  font: inherit;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.sweet-controls__bet {
  width: clamp(32px, 3.5cqw, 50px);
  height: clamp(32px, 3.5cqw, 50px);
  font-size: clamp(22px, 2.6cqw, 32px) !important;
}
.sweet-controls__spin {
  width: clamp(58px, 7.5cqw, 96px);
  height: clamp(58px, 7.5cqw, 96px);
}
.sweet-controls__spin-icon {
  display: inline-block;
  font: 700 clamp(39px, 5.5cqw, 70px)/1 Arial, sans-serif;
}
.sweet-controls > button:hover:not(:disabled),
.sweet-controls > button:focus-visible:not(:disabled) {
  transform: translateY(-2px) scale(1.05);
  filter: brightness(1.15);
  box-shadow: 0 5px 0 #610568, 0 0 18px rgba(255, 255, 255, .88);
}
.sweet-controls > button:active:not(:disabled) { transform: translateY(2px) scale(.96); }
.sweet-controls > button:disabled { cursor: wait; filter: saturate(.5) brightness(.78); }
.sweet-controls__spin.is-intro { animation: sweetSpinPulse 1.25s ease-in-out 3; }
.machine.is-spinning .sweet-controls__spin-icon { animation: sweetSpinRotate .7s linear infinite; }
@keyframes sweetSpinPulse {
  50% { box-shadow: 0 3px 0 #610568, 0 0 25px rgba(255, 255, 255, .95); }
}
@keyframes sweetSpinRotate { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  .sweet-controls { right: 2.5%; width: 38%; }
  .sweet-controls > button { top: 8px; }
  .sweet-controls__bet { width: 28px; height: 28px; font-size: 20px !important; }
  .sweet-controls__spin { width: 46px; height: 46px; }
  .sweet-controls__spin-icon { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .sweet-controls__spin.is-intro,
  .machine.is-spinning .sweet-controls__spin-icon { animation: none; }
}

.win-popup {
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  font-weight: 900;
  font-size: max(18px, 4.5cqw);
  white-space: nowrap;
  color: #fff3c4;
  -webkit-text-stroke: max(1px, 0.12cqw) #7a4a00;
  text-shadow:
    0 0.2cqw 0 #6b3a00,
    0 0 1cqw rgba(255, 210, 80, 0.9),
    0 0 2.5cqw rgba(255, 170, 40, 0.6);
}

.win-popup.is-active {
  animation: popupRise 1.9s ease-out forwards;
}

/* Панель для телефонов */

.mobile-bar {
  display: none;
}

@media (max-width: 760px) {
  .mobile-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
  }

  .mobile-bar__stat {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .mobile-bar__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-faint);
  }

  .mobile-bar__value {
    font-size: 16px;
    font-weight: 900;
    color: var(--text);
    white-space: nowrap;
  }

  .mobile-bar { justify-content: center; }


}

/* Модалка перехода на реальные деньги — поверх автомата,
   на телефоне на весь экран (автомат там слишком низкий) */

.play-modal {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(4, 4, 6, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.play-modal[hidden] {
  display: flex;
  pointer-events: none;
}

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

.play-modal__card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 28px 26px 24px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: scale(0.92);
  transition: transform 0.25s ease;
}

.play-modal.is-visible .play-modal__card {
  transform: scale(1);
}

.play-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.play-modal__close:hover {
  color: var(--text);
  border-color: var(--accent);
}

.play-modal__eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-2);
}

.play-modal__title {
  margin: 0 0 10px;
  font-size: 22px;
  font-style: italic;
  text-transform: uppercase;
}

.play-modal__text {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--text-dim);
}

.play-modal .btn--ghost {
  margin-top: 10px;
  background: transparent;
}

@media (max-width: 760px) {
  .play-modal {
    position: fixed;
    z-index: 100;
    border-radius: 0;
  }

  .play-modal__title { font-size: 19px; }
}

/* =========================================================
   3. Бонусы (раскрывающиеся карточки)
   ========================================================= */

.bonus-list {
  display: grid;
  gap: 14px;
}

.bonus-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-left-color 0.2s ease;
}

.bonus-card[open],
.bonus-card:hover {
  border-left-color: var(--accent);
}

.bonus-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
}

.bonus-card__head::-webkit-details-marker {
  display: none;
}

.bonus-card__title h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 800;
}

.bonus-card__short {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-faint);
}

.bonus-card__chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  position: relative;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.bonus-card__chevron::before,
.bonus-card__chevron::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 2px;
  background: var(--text-dim);
  transform-origin: center;
}

.bonus-card__chevron::before {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: opacity 0.2s ease;
}

.bonus-card__chevron::after {
  transform: translate(-50%, -50%);
}

.bonus-card[open] .bonus-card__chevron {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.bonus-card[open] .bonus-card__chevron::before {
  opacity: 0;
}

.bonus-card[open] .bonus-card__chevron::after {
  background: var(--accent-2);
}

.bonus-card__body {
  padding: 0 26px 26px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  animation: bonusFadeIn 0.25s ease;
}

@keyframes bonusFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bonus-card__body p {
  font-size: 14.5px;
}

.bonus-card__body h4 {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-2);
}

.bonus-card__body h4:not(:first-child) {
  margin-top: 22px;
}

.bonus-steps {
  margin: 0 0 4px;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.bonus-steps > li {
  font-size: 14px;
  color: var(--text);
  padding-left: 4px;
}

.bonus-rules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.bonus-rules > li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--text-dim);
}

.bonus-rules > li::before {
  content: "•";
  position: absolute;
  left: 2px;
  color: var(--accent-2);
}

.bonus-sublist {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.bonus-sublist > li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  color: var(--text-dim);
}

.bonus-sublist > li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--text-faint);
}

.bonus-card__body > a.btn {
  margin-top: 20px;
}

.bonus-more {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.offers__disclaimer {
  margin: 28px 0 0;
  font-size: 12.5px;
  color: var(--text-faint);
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 600px) {
  .bonus-card__head {
    padding: 18px 18px;
  }

  .bonus-card__body {
    padding: 0 18px 20px;
  }
}

@media (max-width: 480px) {
  .bonus-card__head {
    padding: 14px 14px;
    gap: 12px;
  }

  .bonus-card__body {
    padding: 0 14px 18px;
  }

  .bonus-card__title h3 { font-size: 15px; }
  .bonus-card__short { font-size: 12.5px; }

  .bonus-more .btn { width: 100%; }
}

/* =========================================================
   Подвал сайта
   ========================================================= */

.site-footer {
  padding: 40px 0;
  background: var(--bg-1);
  border-top: 3px solid var(--accent);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 17px;
  font-style: italic;
  text-transform: uppercase;
}

.footer__brand .brand__name strong {
  color: var(--accent-2);
}

.footer__legal {
  max-width: 640px;
  font-size: 12.5px;
  color: var(--text-faint);
  margin: 0;
}

/* =========================================================
   Анимации
   ========================================================= */

@keyframes reelBounce {
  0%   { transform: translateY(0); }
  35%  { transform: translateY(4%); }
  70%  { transform: translateY(-1.2%); }
  100% { transform: translateY(0); }
}

@keyframes spinGlow {
  from { box-shadow: inset 0 0 1.5cqw rgba(0, 0, 0, 0.5), 0 0 1cqw 0.1cqw rgba(255, 130, 60, 0.3); }
  to   { box-shadow: inset 0 0 1.5cqw rgba(0, 0, 0, 0.5), 0 0 2.2cqw 0.4cqw rgba(255, 130, 60, 0.55); }
}

@keyframes winGlow {
  0%, 100% { box-shadow: inset 0 0 1.5cqw rgba(0, 0, 0, 0.5); }
  20% { box-shadow: inset 0 0 2.5cqw rgba(255, 140, 70, 0.4), 0 0 3cqw 0.6cqw rgba(255, 120, 60, 0.7); }
}

@keyframes winFlash {
  0%   { opacity: 0; }
  15%  { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes winPulse {
  0%   { transform: scale(1); filter: brightness(1); }
  50%  { transform: scale(1.1); filter: brightness(1.3); }
  100% { transform: scale(1); filter: brightness(1); }
}

@keyframes popupRise {
  0%   { opacity: 0; transform: translateY(25%) scale(0.8); }
  15%  { opacity: 1; transform: translateY(0) scale(1.06); }
  25%  { transform: translateY(-3%) scale(1); }
  75%  { opacity: 1; transform: translateY(-14%) scale(1); }
  100% { opacity: 0; transform: translateY(-40%) scale(1); }
}

@keyframes bump {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .machine.is-spinning .reels-window {
    animation: none;
  }
}


/* Единый нижний контрол демо-слотов: стилизация под классический интерфейс Pragmatic Play. */
.pragmatic-controls {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 28px);
  width: min(100%, 1100px);
  min-height: 76px;
  margin: 0 auto;
  padding: 8px clamp(14px, 2.2vw, 28px);
  border: 2px solid #b78724;
  border-top-color: #ffe8a4;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(74, 45, 16, .72), rgba(20, 12, 5, .94)),
    #1a1008;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), inset 0 -3px 0 rgba(0, 0, 0, .42), 0 5px 15px rgba(0, 0, 0, .45);
  color: #fff7d9;
  font-family: Arial, sans-serif;
}
.pragmatic-controls__stat,
.pragmatic-controls__bet {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.12;
}
.pragmatic-controls__label {
  color: #f8d471;
  font-size: clamp(9px, 1vw, 11px);
  font-weight: 800;
  letter-spacing: .06em;
  text-shadow: 0 1px 1px #221000;
  text-transform: uppercase;
}
.pragmatic-controls__value {
  color: #fffdf2;
  font-size: clamp(15px, 1.55vw, 20px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  text-shadow: 0 2px 2px #190b00;
  white-space: nowrap;
}
.pragmatic-controls__value--win { color: #ffdf6e; }
.pragmatic-controls__bet {
  align-items: center;
  margin-left: auto;
  padding: 0 clamp(8px, 1.4vw, 18px);
  border-right: 1px solid rgba(255, 231, 159, .27);
  border-left: 1px solid rgba(255, 231, 159, .27);
}
.pragmatic-controls__actions {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
}
.pragmatic-controls__round {
  width: clamp(38px, 4.2vw, 48px);
  height: clamp(38px, 4.2vw, 48px);
  display: grid;
  place-items: center;
  padding: 0 0 3px;
  border: 2px solid #fff5ca;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #604725, #1a1009 70%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .35), 0 2px 3px #080400;
  color: #fffdf4;
  cursor: pointer;
  font: 400 clamp(28px, 3vw, 36px)/1 Arial, sans-serif;
  text-shadow: 0 1px 2px #000;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.pragmatic-controls__spin {
  width: clamp(64px, 7vw, 82px);
  height: clamp(64px, 7vw, 82px);
  display: grid;
  place-items: center;
  padding: 0;
  border: 4px solid #fffdf2;
  border-radius: 50%;
  outline: 2px solid rgba(255, 242, 194, .68);
  outline-offset: 4px;
  background: radial-gradient(circle at 34% 28%, #51442d 0%, #1c130a 58%, #090603 100%);
  box-shadow: inset 0 2px 5px rgba(255, 255, 255, .2), 0 3px 6px #080400, 0 0 0 6px rgba(58, 37, 11, .86);
  color: #fffdf4;
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.pragmatic-controls__spin-icon {
  width: 72%;
  height: 72%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
  filter: drop-shadow(0 2px 1px #080400);
}
.pragmatic-controls__round:hover:not(:disabled),
.pragmatic-controls__spin:hover:not(:disabled),
.pragmatic-controls__round:focus-visible:not(:disabled),
.pragmatic-controls__spin:focus-visible:not(:disabled) {
  filter: brightness(1.24);
  transform: translateY(-2px) scale(1.05);
}
.pragmatic-controls__round:active:not(:disabled),
.pragmatic-controls__spin:active:not(:disabled) { transform: translateY(1px) scale(.97); }
.pragmatic-controls__spin:disabled,
.pragmatic-controls__round:disabled { cursor: wait; filter: saturate(.35) brightness(.68); }
.pragmatic-controls__spin.is-intro { animation: pragmaticSpinPulse 1.15s ease-in-out 3; }
.pragmatic-controls__spin.is-spinning .pragmatic-controls__spin-icon { animation: pragmaticSpinRotate .65s linear infinite; }
.last-win.is-updated .pragmatic-controls__value { animation: bump .6s ease-out; }
@keyframes pragmaticSpinPulse {
  50% { box-shadow: inset 0 2px 5px rgba(255,255,255,.3), 0 3px 6px #080400, 0 0 18px 6px rgba(255, 226, 125, .85); }
}
@keyframes pragmaticSpinRotate { to { transform: rotate(360deg); } }
@media (max-width: 620px) {
  .pragmatic-controls { gap: 10px; min-height: 68px; padding: 7px 10px; }
  .pragmatic-controls__bet { padding: 0 9px; }
  .pragmatic-controls__round { width: 36px; height: 36px; font-size: 27px; }
  .pragmatic-controls__spin { width: 56px; height: 56px; border-width: 3px; outline-offset: 3px; }
  .pragmatic-controls__actions { gap: 7px; }
}
@media (max-width: 430px) {
  .pragmatic-controls { gap: 8px; }
  .pragmatic-controls .last-win { display: none; }
  .pragmatic-controls__label { font-size: 8px; }
  .pragmatic-controls__value { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .pragmatic-controls__spin.is-intro,
  .pragmatic-controls__spin.is-spinning .pragmatic-controls__spin-icon { animation: none; }
}



/* Встроенное управление — повторяет панель Sweet Bonanza и живёт внутри рамки автомата. */
.demo-slot-controls {
  position: absolute;
  z-index: 10;
  right: 4.2%;
  bottom: .3%;
  width: 36%;
  height: 18.8%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1.1cqw, 14px);
  border-radius: 48% 52% 10% 10% / 62% 65% 18% 18%;
  background:
    radial-gradient(ellipse at 22% 38%, #ffe9ff 0%, #f7b8ec 32%, transparent 64%),
    radial-gradient(ellipse at 76% 35%, #fff1ff 0%, #f7b8ec 31%, transparent 65%),
    linear-gradient(180deg, #f8b8eb, #ef80ce 72%, #ef7dcc);
  box-shadow: 0 -9px 24px rgba(255, 209, 249, .62);
}
.demo-slot-controls > button {
  position: relative;
  top: clamp(8px, 1.8cqw, 25px);
  display: grid;
  place-items: center;
  flex: none;
  padding: 0;
  border: 2px solid #fff5ff;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #c538b3, #740579 65%, #410150);
  box-shadow: 0 3px 0 #610568, 0 5px 12px rgba(79, 0, 95, .55), inset 0 2px 4px rgba(255, 255, 255, .42);
  color: #fff;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.demo-slot-controls__bet {
  width: clamp(32px, 3.5cqw, 50px);
  height: clamp(32px, 3.5cqw, 50px);
  font-size: clamp(22px, 2.6cqw, 32px) !important;
}
.demo-slot-controls__spin {
  width: clamp(58px, 7.5cqw, 96px);
  height: clamp(58px, 7.5cqw, 96px);
}
.demo-slot-controls__spin-icon {
  display: inline-block;
  font: 700 clamp(39px, 5.5cqw, 70px)/1 Arial, sans-serif;
}
.demo-slot-controls > button:hover:not(:disabled),
.demo-slot-controls > button:focus-visible:not(:disabled) {
  transform: translateY(-2px) scale(1.05);
  filter: brightness(1.15);
  box-shadow: 0 5px 0 #610568, 0 0 18px rgba(255, 255, 255, .88);
}
.demo-slot-controls > button:active:not(:disabled) { transform: translateY(2px) scale(.96); }
.demo-slot-controls > button:disabled { cursor: wait; filter: saturate(.5) brightness(.78); }
.demo-slot-controls__spin.is-intro { animation: demoSlotSpinPulse 1.25s ease-in-out 3; }
.demo-slot-controls__spin.is-spinning .demo-slot-controls__spin-icon { animation: demoSlotSpinRotate .7s linear infinite; }
@keyframes demoSlotSpinPulse {
  50% { box-shadow: 0 3px 0 #610568, 0 0 25px rgba(255, 255, 255, .95); }
}
@keyframes demoSlotSpinRotate { to { transform: rotate(360deg); } }
.embedded-bonus-button {
  position: absolute;
  z-index: 10;
  bottom: 3.5%;
  left: 3%;
  padding: clamp(6px, .9cqw, 12px) clamp(9px, 1.2cqw, 17px);
  border: 2px solid #fff0bd;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8a843, #b94710);
  box-shadow: inset 0 2px 2px rgba(255,255,255,.38), 0 3px 0 #6a2607;
  color: #fff9dc;
  cursor: pointer;
  font: 800 clamp(8px, 1cqw, 13px)/1 Arial, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.embedded-bonus-button:hover { filter: brightness(1.12); transform: translateY(-1px); }
.embedded-bonus-button:disabled { cursor: wait; filter: saturate(.4) brightness(.7); }
@media (max-width: 600px) {
  .demo-slot-controls { right: 2.5%; width: 38%; }
  .demo-slot-controls > button { top: 8px; }
  .demo-slot-controls__bet { width: 28px; height: 28px; font-size: 20px !important; }
  .demo-slot-controls__spin { width: 46px; height: 46px; }
  .demo-slot-controls__spin-icon { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-slot-controls__spin.is-intro,
  .demo-slot-controls__spin.is-spinning .demo-slot-controls__spin-icon { animation: none; }
}



/* Только прозрачные кнопки поверх автомата — без цветной подложки. */
.demo-slot-controls {
  right: 5%;
  bottom: 3%;
  width: auto;
  height: auto;
  gap: clamp(9px, 1.2cqw, 16px);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.demo-slot-controls > button {
  top: 0;
  border-color: rgba(255, 255, 255, .98);
  background: transparent;
  box-shadow: none;
  color: #fff;
  text-shadow: 0 2px 3px rgba(0, 0, 0, .9);
}
.demo-slot-controls__bet {
  width: clamp(32px, 3.8cqw, 48px);
  height: clamp(32px, 3.8cqw, 48px);
  border-width: 2px !important;
  font-size: clamp(22px, 2.6cqw, 32px) !important;
}
.demo-slot-controls__spin {
  width: clamp(60px, 7.7cqw, 96px);
  height: clamp(60px, 7.7cqw, 96px);
  border-width: 4px !important;
  border-color: #fff !important;
}
.demo-slot-controls > button:hover:not(:disabled),
.demo-slot-controls > button:focus-visible:not(:disabled) {
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 0 14px rgba(255, 255, 255, .6);
}
.demo-slot-controls__spin.is-intro { animation: transparentSpinPulse 1.25s ease-in-out 3; }
@keyframes transparentSpinPulse {
  50% { box-shadow: 0 0 20px 4px rgba(255, 255, 255, .72); }
}
@media (max-width: 600px) {
  .demo-slot-controls { right: 3%; bottom: 2%; gap: 7px; }
  .demo-slot-controls__bet { width: 28px; height: 28px; }
  .demo-slot-controls__spin { width: 46px; height: 46px; }
}



/* Только интерактивные и анимационные слои над уже нарисованными кнопками рамки. */
.ready-control {
  z-index: 9;
  padding: 0;
  border: 0;
  border-radius: 50%;
  outline: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}
.ready-control:hover:not(:disabled),
.ready-control:focus-visible:not(:disabled) {
  box-shadow: 0 0 1.35cqw .25cqw var(--ready-glow);
}
.ready-control:disabled { cursor: wait; }
.ready-control--spin.is-intro { animation: readyControlPulse 1.2s ease-in-out 3; }
.ready-control--spin.is-spinning { animation: readyControlSpinPulse .7s ease-in-out infinite; }
.ready-control--spin.is-spinning::after {
  content: "";
  position: absolute;
  inset: 16%;
  border: max(2px, .28cqw) solid rgba(255, 255, 255, .72);
  border-top-color: transparent;
  border-radius: 50%;
  animation: readyControlRotate .65s linear infinite;
}
@keyframes readyControlPulse {
  50% { box-shadow: 0 0 2cqw .45cqw var(--ready-glow); }
}
@keyframes readyControlSpinPulse {
  50% { box-shadow: 0 0 2.2cqw .5cqw var(--ready-glow); }
}
@keyframes readyControlRotate { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .ready-control--spin.is-intro,
  .ready-control--spin.is-spinning,
  .ready-control--spin.is-spinning::after { animation: none; }
}

/* Постоянно показывает, что кнопка вращения готова к нажатию. */
.machine:not(.is-spinning) button[data-spin]:not(:disabled) {
  animation: spinReadyPulse 2.4s ease-in-out infinite;
}

@keyframes spinReadyPulse {
  0%, 100% {
    box-shadow: 0 0 .6cqw .08cqw var(--spin-ready-glow, var(--ready-glow, var(--bass-glow, rgba(255, 210, 74, .45))));
    filter: brightness(1.03);
  }
  50% {
    box-shadow:
      0 0 0 .16cqw rgba(255, 255, 255, .7),
      0 0 1.35cqw .22cqw var(--spin-ready-glow, var(--ready-glow, var(--bass-glow, rgba(255, 210, 74, .7))));
    filter: brightness(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .machine:not(.is-spinning) button[data-spin]:not(:disabled) {
    animation: none;
    box-shadow: 0 0 0 .16cqw rgba(255, 255, 255, .7), 0 0 1cqw .16cqw var(--spin-ready-glow, var(--ready-glow, var(--bass-glow, rgba(255, 210, 74, .6))));
    filter: brightness(1.08);
  }
}
/* Внутренняя вращающаяся полоска мешает считывать кнопку; оставляем только внешнюю подсветку. */
.machine .ready-control--spin.is-spinning::after,
.machine .bass-ready-control--spin.is-spinning::after {
  content: none;
  animation: none;
}
/* Во время прокрутки дублируем фрагмент рамки с кнопкой поверх барабанов. */
.machine button.ready-control--spin.is-spinning {
  z-index: 30;
  isolation: isolate;
  background-image: url(assets/machine-frame.webp);
  background-repeat: no-repeat;
  background-size: 896.8610% 564.9718%;
  background-position: 80.4727% 98.0559%;
}
/* Чистая типографика выигрыша без двойного контура и масштабирования. */
.win-popup {
  font-family: Inter, Arial, sans-serif;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.025em;
  font-variant-numeric: lining-nums tabular-nums;
  -webkit-text-stroke: 0;
  paint-order: normal;
  text-shadow: 0 .08em .14em rgba(0, 0, 0, .78);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  transform: none;
}
.win-popup.is-active { animation: winPopupFade 1.8s ease-out forwards; }
@keyframes winPopupFade {
  0%, 100% { opacity: 0; }
  14%, 78% { opacity: 1; }
}
