:root {
  --bg: #0f1421;
  --bg-soft: #161d2e;
  --panel: #1b2336;
  --panel-2: #222c44;
  --line: #2c3650;
  --text: #e8edf7;
  --muted: #8a96b2;
  --accent: #f7c548;
  --green: #28d17c;
  --green-2: #1fae66;
  --red: #ff5468;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 70% -10%, #1a2236 0%, transparent 60%), var(--bg);
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* game intro above the demo widget */
.game-intro {
  padding: 52px 0 12px;
  text-align: center;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.game-intro-inner { max-width: 700px; margin: 0 auto; }
.game-intro h1 {
  font-size: clamp(28px, 4.5vw, 40px); font-weight: 900; line-height: 1.15;
  letter-spacing: 0.2px;
}
.game-intro .lead { margin-top: 14px; }

/* page main holds the game, centered */
.page-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px 48px;
  background: var(--bg-soft);
}

.game-stage {
  position: relative;
  width: 100%;
  max-width: 980px;
  padding: 28px 24px;
  border-radius: 24px;
  border: 1px solid rgba(40, 209, 124, 0.22);
  box-shadow:
    0 0 80px rgba(40, 209, 124, 0.07),
    0 24px 60px rgba(0, 0, 0, 0.45);
}
.game-stage-bg {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(40, 209, 124, 0.14), transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(80, 159, 216, 0.08), transparent 60%);
}
.game-stage .app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
}
.game-stage .game {
  border-color: rgba(40, 209, 124, 0.18);
  box-shadow: 0 0 48px rgba(40, 209, 124, 0.05);
}

/* ---------- Site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 20, 33, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
  position: relative;
}
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; flex-shrink: 0; }
.logo-mark { display: block; width: 30px; height: 30px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35)); }
.logo-text { color: var(--text); font-weight: 800; letter-spacing: 3px; font-size: 19px; }

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.lang-switcher {
  position: relative;
  z-index: 60;
  flex-shrink: 0;
}
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 2px;
  background: none;
  border: none;
  border-radius: 6px;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition: color 0.15s ease, opacity 0.15s ease;
}
.lang-trigger:hover,
.lang-switcher.open .lang-trigger {
  color: var(--text);
}
.lang-trigger:focus-visible {
  outline: 2px solid rgba(86, 194, 193, 0.55);
  outline-offset: 3px;
}
.lang-trigger .lang-flag {
  width: 24px;
  height: 17px;
}
.lang-flag {
  display: block;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
}
.lang-chevron {
  opacity: 0.55;
  transition: transform 0.2s ease, opacity 0.15s ease;
  flex-shrink: 0;
}
.lang-trigger:hover .lang-chevron,
.lang-switcher.open .lang-chevron {
  opacity: 0.9;
}
.lang-switcher.open .lang-chevron { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 196px;
  max-height: min(380px, 72vh);
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #121931;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}
.lang-menu[hidden] { display: none; }
.lang-menu li { margin: 0; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 18px;
  border-radius: 0;
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  transition: background 0.12s ease;
  box-sizing: border-box;
}
a.lang-option:hover,
.lang-option--active {
  background: #56c2c1;
  color: #fff;
  cursor: pointer;
}
.lang-option--active { cursor: default; }
.lang-option .lang-name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600;
  letter-spacing: 0.3px; transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--text); }
.site-nav a.active { color: var(--green); }
.site-nav a.active:not(.nav-cta) { box-shadow: inset 0 -2px 0 var(--green); }
.nav-cta {
  background: linear-gradient(180deg, var(--green), var(--green-2));
  color: #04140b !important; padding: 9px 18px; border-radius: 9px; font-weight: 800 !important;
}
.nav-cta:hover { filter: brightness(1.06); }

.nav-toggle {
  display: none; flex-direction: column; gap: 4px; background: none; border: none;
  cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0f1421;
}

/* photographic background + dark overlay for readability */
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(10, 13, 22, 0.92) 0%, rgba(10, 13, 22, 0.72) 38%, rgba(10, 13, 22, 0.45) 70%, rgba(10, 13, 22, 0.62) 100%),
    linear-gradient(180deg, rgba(15, 20, 33, 0.30) 0%, rgba(15, 20, 33, 0.0) 30%, rgba(15, 20, 33, 0.85) 100%),
    url("images/hero-bg.png");
  background-size: cover, cover, cover;
  background-position: center, center, center 30%;
  background-repeat: no-repeat;
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.35;
}
.orb-a { width: 420px; height: 420px; right: -80px; top: -120px;
  background: radial-gradient(circle, rgba(40,209,124,0.35), transparent 70%); }
.orb-b { width: 360px; height: 360px; left: -100px; bottom: -140px;
  background: radial-gradient(circle, rgba(80,159,216,0.30), transparent 70%); }

.float-gem { position: absolute; width: 40px; opacity: 0.16; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.4)); }
.fg1 { top: 16%; left: 6%; animation: floaty 7s ease-in-out infinite; }
.fg2 { top: 64%; left: 16%; width: 28px; animation: floaty 9s ease-in-out infinite 0.6s; }
.fg3 { top: 24%; right: 38%; width: 24px; animation: floaty 8s ease-in-out infinite 1.2s; }
.fg4 { bottom: 14%; right: 8%; width: 34px; animation: floaty 10s ease-in-out infinite 0.3s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50%      { transform: translateY(-22px) rotate(6deg); }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding-top: 36px;
  padding-bottom: 72px;
}

.hero-badge {
  display: inline-block; color: var(--green);
  background: rgba(40, 209, 124, 0.10); border: 1px solid rgba(40, 209, 124, 0.30);
  border-radius: 999px; padding: 7px 16px; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.4px; margin-bottom: 22px;
}
.hero-title {
  font-size: clamp(56px, 9vw, 104px); line-height: 0.92; font-weight: 900;
  letter-spacing: 2px; margin: 0;
  background: linear-gradient(180deg, #7df7c0 0%, #28d17c 55%, #16a062 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 26px rgba(40, 209, 124, 0.35));
}
.hero-sub {
  font-size: clamp(20px, 3vw, 30px); font-weight: 800; color: var(--text);
  margin: 6px 0 18px;
}
.hero-text { color: var(--muted); font-size: 15.5px; line-height: 1.7; max-width: 520px; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 28px; }
.btn-primary {
  background: linear-gradient(180deg, var(--green), var(--green-2)); color: #04140b;
  text-decoration: none; font-weight: 800; font-size: 15px; padding: 14px 28px;
  border-radius: 999px; box-shadow: 0 10px 26px rgba(40, 209, 124, 0.35);
  transition: transform 0.06s ease, filter 0.15s ease;
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  background: linear-gradient(180deg, #6ec8f5, #3d94d9); color: #061525;
  text-decoration: none; font-weight: 800; font-size: 15px; padding: 14px 28px;
  border-radius: 999px; border: none;
  box-shadow: 0 10px 26px rgba(62, 158, 220, 0.42);
  transition: transform 0.06s ease, filter 0.15s ease;
}
.btn-ghost:hover { filter: brightness(1.08); }
.btn-ghost:active { transform: translateY(1px); }
.btn-real {
  background: linear-gradient(180deg, var(--accent), #e0a92e); color: #1a1300;
  text-decoration: none; font-weight: 800; font-size: 15px; padding: 14px 28px;
  border-radius: 999px; box-shadow: 0 10px 26px rgba(247, 197, 72, 0.28);
  transition: transform 0.06s ease, filter 0.15s ease;
}
.btn-real:hover { filter: brightness(1.06); }
.btn-real:active { transform: translateY(1px); }

.hero-stats { list-style: none; display: flex; gap: 28px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; gap: 2px; }
.hero-stats strong { font-size: 20px; font-weight: 800; color: var(--accent); }
.hero-stats span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* hero board preview */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.preview-glow {
  position: absolute; width: 80%; height: 80%; border-radius: 30%;
  background: radial-gradient(circle, rgba(40,209,124,0.30), transparent 70%);
  filter: blur(50px);
}
.preview-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 9px;
  width: min(100%, 380px);
  aspect-ratio: 1;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(27,35,54,0.9), rgba(18,24,38,0.9));
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(0,0,0,0.45);
  transform: perspective(1200px) rotateX(6deg) rotateY(-8deg);
}
.ptile {
  aspect-ratio: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #33446b, #28365a);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.06);
}
.ptile img { width: 64%; height: auto; aspect-ratio: 1; object-fit: contain; }
.ptile.gem { background: linear-gradient(180deg, #5bd6a0, #2fa873); }
.ptile.gem img { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); animation: gemPulse 3s ease-in-out infinite; }
.ptile.bomb { background: linear-gradient(180deg, #f0606f, #cc3346); }
.ptile.pop { animation: tilePop 0.35s ease; }
.ptile.flash { animation: tileFlash 0.5s ease; }
.preview-chip .chip-bust { color: var(--red); font-size: 18px; }
@keyframes gemPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes tilePop {
  0% { transform: scale(0.85); opacity: 0.5; }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes tileFlash {
  0%, 100% { box-shadow: none; }
  40% { box-shadow: 0 0 24px rgba(255, 84, 104, 0.8); transform: scale(1.05); }
}

.preview-chip {
  position: absolute; right: -6px; bottom: 6px;
  background: rgba(15,20,33,0.92); border: 1px solid rgba(40,209,124,0.4);
  color: var(--green); font-weight: 800; font-size: 18px;
  padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow);
}
.preview-chip span { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.5px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-gem, .ptile.gem img, .ptile.pop, .ptile.flash { animation: none; }
}

/* ---------- Long-form content ---------- */
.content { border-top: 1px solid var(--line); }
.content-section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.content-section.alt { background: var(--bg-soft); }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; color: var(--green); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px;
}
.content-section h2 {
  font-size: clamp(26px, 4vw, 38px); font-weight: 900; line-height: 1.15; letter-spacing: 0.3px;
}
.content-section h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.lead { color: var(--muted); font-size: 16.5px; line-height: 1.7; margin-top: 14px; }
.prose { max-width: 760px; }
.prose p { color: var(--muted); font-size: 15.5px; line-height: 1.8; margin-bottom: 16px; }
.prose p strong { color: var(--text); }
.prose a { color: var(--accent); text-decoration: none; }
.prose a:hover { text-decoration: underline; }

/* split layout: text + visual */
.section-split {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 32px;
  align-items: start;
}
.section-split-reverse { direction: rtl; }
.section-split-reverse > * { direction: ltr; }
.visual-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.visual-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 700;
}
.mini-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}
.mb {
  aspect-ratio: 1;
  border-radius: 6px;
  background: linear-gradient(180deg, #33446b, #28365a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.mb.gem { background: linear-gradient(180deg, #5bd6a0, #2fa873); }
.mb.bomb { background: linear-gradient(180deg, #f0606f, #cc3346); }
.mini-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 14px;
  font-size: 11px;
  color: var(--muted);
}
.mini-legend .leg {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: middle;
}
.mini-legend .leg.gem { background: #2fa873; }
.mini-legend .leg.bomb { background: #cc3346; }
.mini-legend .leg.closed { background: #33446b; }

/* mock bet panel (strategy section) */
.panel-mock .mock-field { margin-bottom: 14px; }
.panel-mock .mock-field > span {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 6px;
}
.panel-mock .mock-field b { color: var(--accent); }
.mock-bet-row .mock-box {
  display: block;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
}
.mock-slider {
  height: 6px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.mock-slider i {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 999px;
}
.mock-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 12px;
}
.mock-stats div { display: flex; flex-direction: column; gap: 2px; }
.mock-stats small { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.mock-stats b { font-size: 14px; }
.mock-stats b.pos { color: var(--green); }
.mock-cashout {
  background: linear-gradient(180deg, var(--accent), #e0a92e);
  color: #1a1300;
  text-align: center;
  font-weight: 800;
  font-size: 13px;
  padding: 10px;
  border-radius: 10px;
}

/* RTP card icons */
.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 12px;
}
.card-icon-rtp { background: rgba(247, 197, 72, 0.15); color: var(--accent); }
.card-icon-odds { background: rgba(40, 209, 124, 0.12); color: var(--green); font-size: 13px; }
.card-icon-fair { background: rgba(80, 159, 216, 0.15); color: #6eb5ff; }

/* fact cards */
.fact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px; margin-top: 30px;
}
.fact {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; display: flex; flex-direction: column; gap: 4px;
}
.fact strong { color: var(--accent); font-size: 20px; font-weight: 800; }
.fact span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }

/* numbered steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.step {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 24px 20px 20px;
}
.step-num {
  position: absolute; top: -16px; left: 20px;
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(180deg, var(--green), var(--green-2)); color: #04140b;
  font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center;
}
.step p { color: var(--muted); font-size: 14px; line-height: 1.65; margin-top: 6px; }

/* two-column info cards */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 30px; }
.info-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.info-card p { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.info-card ul { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 9px; }
.info-card li { color: var(--muted); font-size: 14px; line-height: 1.5; padding-left: 24px; position: relative; }
.info-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.info-card.warn li::before { content: "!"; color: var(--accent); }

/* data tables */
.table-wrap { margin-top: 26px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table.data { width: 100%; border-collapse: collapse; min-width: 420px; }
table.data th, table.data td { padding: 12px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line); }
table.data th { background: var(--panel); color: var(--text); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; font-size: 12px; }
table.data td { color: var(--muted); }
table.data td:last-child, table.data th:last-child { text-align: right; }
table.data tr:last-child td { border-bottom: none; }
table.data .pos { color: var(--green); font-weight: 700; }

/* calculator */
.calc-wrap { margin-top: 30px; }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; width: 100%; }
.calc-wrap .table-wrap { margin-top: 18px; }
.calc-controls, .calc-output {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px;
}
.calc-field { margin-bottom: 20px; }
.calc-field:last-child { margin-bottom: 0; }
.calc-field label {
  display: flex; justify-content: space-between; font-size: 12px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px;
}
.calc-field label b { color: var(--accent); font-weight: 800; }
.calc-field input[type="range"] { width: 100%; accent-color: var(--green); cursor: pointer; }
.calc-output { display: flex; flex-direction: column; justify-content: center; gap: 14px; text-align: center; }
.calc-big { font-size: clamp(40px, 8vw, 60px); font-weight: 900; color: var(--green); line-height: 1; }
.calc-big span { font-size: 22px; }
.calc-sub { color: var(--muted); font-size: 13px; }
.calc-row { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; font-size: 14px; }
.calc-row span { color: var(--muted); }
.calc-row b { color: var(--text); }

/* casino / operator list */
.operator-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}
@media (max-width: 720px) {
  .operator-list { grid-template-columns: 1fr; }
}
.operator {
  display: grid;
  grid-template-columns: 68px 1fr 20px;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.operator-logo {
  width: 68px;
  height: 68px;
  border-radius: 11px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.operator-logo img {
  display: block;
}
/* square brand tiles: Stake, BC.Game */
.operator-logo--tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* white-bg studio logos */
.operator-logo--light {
  background: #fff;
  padding: 6px;
  box-sizing: border-box;
}
.operator-logo--light img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* 1win: wide mark on brand navy */
.operator-logo--1win {
  background: #0a1a33;
}
.operator-logo--1win img {
  width: 155%;
  height: 155%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
/* Rainbet: wide script on brand navy */
.operator-logo--rainbet {
  background: #0c1528;
}
.operator-logo--rainbet img {
  width: 170%;
  height: 170%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.operator-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.operator-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.operator-desc {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}
.operator-go {
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
  opacity: 0.45;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.operator:hover {
  border-color: rgba(40, 209, 124, 0.45);
  background: var(--panel-2);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}
.operator:hover .operator-go {
  opacity: 1;
  transform: translateX(2px);
}
.operator:active { transform: scale(0.995); }
.operator:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.note { color: var(--muted); font-size: 12.5px; line-height: 1.6; margin-top: 20px; opacity: 0.9; }

/* FAQ accordion */
.faq { max-width: 820px; margin-top: 30px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: var(--panel); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 700; font-size: 15.5px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-size: 22px; font-weight: 800; flex-shrink: 0; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .faq-body { padding: 16px 20px 20px; color: var(--muted); font-size: 14.5px; line-height: 1.75; }

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 70px 0;
  background: #0f1421;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(10, 13, 22, 0.92) 0%, rgba(10, 13, 22, 0.72) 38%, rgba(10, 13, 22, 0.45) 70%, rgba(10, 13, 22, 0.62) 100%),
    linear-gradient(180deg, rgba(15, 20, 33, 0.30) 0%, rgba(15, 20, 33, 0.0) 30%, rgba(15, 20, 33, 0.85) 100%),
    url("images/hero-bg.png");
  background-size: cover, cover, cover;
  background-position: center, center, center 30%;
  background-repeat: no-repeat;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 22px; }

@media (max-width: 760px) {
  .content-section { padding: 48px 0; }
  .steps { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; }
  .section-split, .section-split-reverse { grid-template-columns: 1fr; direction: ltr; }
  .section-split .visual-card { max-width: 280px; margin: 0 auto; }
  .game-stage { padding: 16px 12px; border-radius: 18px; }
}

/* ---------- Site footer ---------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  padding-top: 40px;
  padding-bottom: 32px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-desc { color: var(--muted); font-size: 13.5px; line-height: 1.6; max-width: 420px; }
.footer-age { color: var(--muted); font-size: 12px; margin-top: 12px; opacity: 0.85; }

.footer-col h3 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom { border-top: 1px solid var(--line); padding: 16px 0; }
.footer-bottom .container {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom span { color: var(--muted); font-size: 12px; }
.footer-note { opacity: 0.8; }

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.brand { display: flex; align-items: baseline; gap: 8px; }
.brand-mark { color: var(--accent); font-size: 22px; }
.brand-name { font-weight: 800; letter-spacing: 3px; font-size: 20px; }
.brand-tag {
  font-size: 11px; color: var(--muted); text-transform: uppercase;
  letter-spacing: 1.5px; border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px;
}

.balance { display: flex; align-items: center; gap: 10px; }
.balance-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.balance-value { font-weight: 800; font-size: 18px; color: var(--accent); }
.reset-btn {
  background: var(--panel); color: var(--muted); border: 1px solid var(--line);
  border-radius: 8px; padding: 5px 10px; font-size: 12px; cursor: pointer;
}
.reset-btn:hover { color: var(--text); border-color: var(--muted); }
.icon-btn {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 4px 9px; font-size: 15px; cursor: pointer; line-height: 1;
}
.icon-btn:hover { border-color: var(--muted); }
.icon-btn.muted { opacity: 0.45; }

/* Layout */
.game {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
}

/* Panel */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field-label {
  font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px;
  display: flex; justify-content: space-between; align-items: center;
}
.mines-count { color: var(--accent); font-weight: 700; }

.bet-row { display: flex; gap: 6px; }
.bet-input {
  flex: 1; background: var(--bg); border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 10px 12px; font-size: 16px; font-weight: 700; text-align: center;
  min-width: 0;
}
.bet-input:focus { outline: none; border-color: var(--accent); }
.step-btn {
  width: 40px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; font-size: 18px; cursor: pointer;
}
.step-btn:hover { border-color: var(--muted); }

.quick-row { display: flex; gap: 6px; }
.quick-btn {
  flex: 1; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
  border-radius: 8px; padding: 8px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.quick-btn:hover { color: var(--text); border-color: var(--muted); }

.slider { width: 100%; accent-color: var(--accent); cursor: pointer; }
.mines-presets { display: flex; gap: 6px; }
.preset-btn {
  flex: 1; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
  border-radius: 8px; padding: 6px; font-size: 13px; cursor: pointer;
}
.preset-btn:hover { color: var(--text); border-color: var(--muted); }
.preset-btn.active { color: var(--bg); background: var(--accent); border-color: var(--accent); font-weight: 700; }

.stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.stat-value { font-size: 16px; font-weight: 700; }

.action-btn {
  background: linear-gradient(180deg, var(--green), var(--green-2));
  color: #04140b; border: none; border-radius: 10px; padding: 14px;
  font-size: 16px; font-weight: 800; letter-spacing: 0.5px; cursor: pointer;
  transition: transform 0.05s ease, filter 0.15s ease;
}
.action-btn:hover { filter: brightness(1.05); }
.action-btn:active { transform: translateY(1px); }
.action-btn.cashout { background: linear-gradient(180deg, var(--accent), #e0a92e); color: #1a1300; }
.action-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.disclaimer { font-size: 10px; color: var(--muted); line-height: 1.4; text-align: center; }

/* Board */
.board-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px;
}
#board { width: 100%; height: auto; max-width: 540px; touch-action: manipulation; }

.toast {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.8);
  background: rgba(15, 20, 33, 0.92); border: 1px solid var(--line);
  padding: 14px 26px; border-radius: 12px; font-size: 22px; font-weight: 800;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease;
  text-align: center; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.toast.win { color: var(--green); }
.toast.lose { color: var(--red); }

@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { overflow-x: hidden; }
  .container { padding: 0 18px; }

  /* ===================== Demo game — mobile layout =====================
     One column: board on top, controls below. The board is allowed to
     shrink horizontally (min-width:0) so the canvas never forces the page
     wider than the screen, and it is capped by the available viewport
     height so the whole widget fits without scrolling. */
  .page-main { padding: 14px 12px 22px; }
  .game-stage { padding: 14px 12px; border-radius: 16px; }
  .topbar { flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }

  .game { display: flex; flex-direction: column; gap: 10px; padding: 10px; }
  .board-wrap { order: -1; padding: 8px; min-width: 0; }
  #board {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: min(100%, calc(100vh - 455px));
    max-width: min(100%, calc(100dvh - 455px));
    margin: 0 auto;
  }

  /* compact controls so the whole demo fits the screen height */
  .panel { padding: 10px; gap: 6px; min-width: 0; }
  .field { gap: 5px; }
  .field-label { font-size: 11px; }
  .bet-input { padding: 8px 10px; font-size: 15px; }
  .step-btn { width: 38px; }
  .quick-btn { padding: 6px; }
  .preset-btn { padding: 5px; }
  .stats { grid-template-columns: 1fr 1fr; padding: 8px 10px; gap: 4px 12px; }
  .stat-label { font-size: 9px; }
  .stat-value { font-size: 14px; }
  .action-btn { padding: 10px; }
  .disclaimer { display: none; }

  .header-right { gap: 8px; }
  .lang-menu { right: 0; min-width: 184px; }
  .lang-option { padding: 12px 16px; font-size: 13px; }

  /* collapsible nav */
  .nav-toggle { display: flex; order: 2; }
  .lang-switcher { order: 1; }
  .site-nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-soft); border-bottom: 1px solid var(--line);
    padding: 8px 18px 16px;
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }
  .site-nav.open { max-height: 360px; opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .site-nav a:last-child { border-bottom: none; }
  .nav-cta { text-align: center; margin-top: 10px; padding: 12px; }

  /* hero stacks */
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding-top: 40px; padding-bottom: 48px; text-align: center; }
  .hero-text { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .preview-board { transform: none; width: min(90%, 320px); }
  .preview-chip { right: 0; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
