/* =========================================================
   Wild Joker's Diamonds – style.css
   ========================================================= */

/* ---------- Fonts (self-hosted, latin + latin-ext for ő/ű) ---------- */
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-display: swap;
  font-weight: 200 700;
  src: url("../fonts/oswald-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-display: swap;
  font-weight: 200 700;
  src: url("../fonts/oswald-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0624;
  --bg-2: #110a36;
  --card: #120b3c;
  --line: rgba(140, 170, 255, 0.16);
  --line-soft: rgba(140, 170, 255, 0.09);
  --text: #eceeff;
  --text-2: #d3d6f3;
  --muted: #a3a9d2;

  --gold: #f7c341;
  --gold-hi: #ffe7a0;
  --gold-lo: #c9861a;
  --ice: #8fe0ff;
  --electric: #3aa0ff;
  --red: #ff3d4f;
  --green: #2fd67a;
  --purple: #b46cff;

  --f-head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1180px;
  --prose: 780px;
  --r: 16px;
  --header-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  font: 400 1.0625rem/1.68 var(--f-body);
  color: var(--text-2);
  background:
    radial-gradient(1100px 680px at 85% -8%, rgba(92, 40, 190, 0.42), transparent 62%),
    radial-gradient(900px 620px at -12% 18%, rgba(29, 99, 224, 0.22), transparent 62%),
    var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* faint diamond lattice */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(45deg, rgba(143, 224, 255, 0.035) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(143, 224, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--ice); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
b, strong { color: var(--text); font-weight: 700; }
small { font-size: 0.85em; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: #1d1000; padding: 10px 14px; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.prose { max-width: var(--prose); margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.gold, .ice {
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.gold { background-image: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo)); }
.ice { background-image: linear-gradient(180deg, #f2fdff, var(--ice) 50%, #3a8cff); }
.hl { color: var(--gold); }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--f-head); color: #fff; margin: 0; letter-spacing: 0.01em; }
h1 { font-weight: 600; font-size: clamp(2rem, 4.4vw, 3.35rem); line-height: 1.08; margin-bottom: 20px; text-wrap: balance; }
h2 { font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.15; margin: 2.2em 0 0.6em; text-wrap: balance; }
h3 { font-weight: 500; font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.25; margin: 1.9em 0 0.5em; color: #d8efff; }
.prose > h2:first-child, .section .prose:first-child > h2:first-child, .wrap.prose > h2:first-child { margin-top: 0; }
.prose h2::before {
  content: "";
  display: block;
  width: 46px; height: 3px;
  margin-bottom: 14px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--electric));
}
p { margin: 0 0 1em; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 50px;
  padding: 0.85em 1.5em;
  font: 600 1rem/1 var(--f-head);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn .i { width: 1.05em; height: 1.05em; fill: currentColor; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--gold {
  color: #2a1600;
  background: linear-gradient(180deg, #ffe892 0%, #f7c341 48%, #d4900f 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -2px 0 rgba(120, 70, 0, 0.35), 0 10px 26px -10px rgba(247, 195, 65, 0.75);
}
.btn--gold::after {
  content: "";
  position: absolute; z-index: -1; top: -20%; bottom: -20%; left: -60%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: skewX(-22deg);
  animation: shine 4.2s ease-in-out infinite;
}
.btn--gold:hover { color: #1d0f00; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 -2px 0 rgba(120, 70, 0, 0.35), 0 0 0 3px rgba(247, 195, 65, 0.25), 0 14px 34px -10px rgba(247, 195, 65, 0.9); transform: translateY(-1px); }
.btn--ghost {
  color: var(--ice);
  background: rgba(58, 160, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(143, 224, 255, 0.45);
}
.btn--ghost:hover { color: #fff; background: rgba(58, 160, 255, 0.16); box-shadow: inset 0 0 0 1px var(--ice), 0 0 24px rgba(58, 160, 255, 0.35); }
.btn--sm { min-height: 40px; padding: 0.65em 1.05em; font-size: 0.88rem; border-radius: 10px; }
.btn--lg { min-height: 58px; padding: 1em 2em; font-size: 1.15rem; border-radius: 14px; }

@keyframes shine {
  0%, 55% { left: -60%; }
  85%, 100% { left: 130%; }
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 6, 36, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.header.is-scrolled { border-bottom-color: var(--line); background: rgba(10, 6, 36, 0.88); }
.header__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
}
.brand { position: relative; flex: none; display: block; overflow: hidden; border-radius: 6px; }
.brand img { height: 46px; width: auto; }
.brand::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: shine 7s ease-in-out 1.5s infinite;
  pointer-events: none;
}
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a {
  position: relative;
  font: 500 0.92rem/1 var(--f-head);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  padding: 8px 0;
  transition: color 0.2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--electric));
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s;
}
.nav a:hover { color: #fff; }
.nav a:hover::after { transform: scaleX(1); }
.header__cta { flex: none; }
.header__cta .i { width: 0.9em; height: 0.9em; }
.cta-short { display: none; }
.burger {
  display: none;
  width: 44px; height: 44px; flex: none;
  background: transparent; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; padding: 0;
  position: relative;
}
.burger span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform 0.25s, opacity 0.2s, top 0.25s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.is-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.is-open .burger span:nth-child(2) { opacity: 0; }
.is-open .burger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; position: relative; }
.section--tint {
  background: linear-gradient(180deg, rgba(58, 160, 255, 0.045), rgba(124, 58, 237, 0.06));
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.fineprint { font-size: 0.82rem; color: var(--muted); margin: 18px auto 0; max-width: 820px; text-align: center; }
.section--demo .fineprint { margin: 14px auto 34px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4.5vh, 56px) 0 clamp(28px, 5.5vh, 64px);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  column-gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
}
.hero .eyebrow, .hero h1 { grid-column: 1 / -1; }
.hero .eyebrow { justify-self: start; }
.hero h1 {
  width: 100%;
  font-size: clamp(2rem, min(4.2vw, 6.4vh), 3.6rem);
  margin-bottom: clamp(14px, 3vh, 30px);
  text-wrap: wrap;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  padding: 6px 12px;
  font: 500 0.8rem/1 var(--f-head); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ice);
  border: 1px solid rgba(143, 224, 255, 0.3); border-radius: 999px;
  background: rgba(58, 160, 255, 0.08);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(47, 214, 122, 0.6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(47, 214, 122, 0.6); } 80%, 100% { box-shadow: 0 0 0 9px rgba(47, 214, 122, 0); } }
.hero__copy p { font-size: 1.03rem; }
.hero__copy p.muted { font-size: 0.95rem; }
.hero__copy p:last-of-type { margin-bottom: 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(16px, 3vh, 28px); }
.hero__side {
  justify-self: center;
  width: 100%;
  max-width: clamp(320px, calc((100vh - var(--header-h) - 470px) * 1.66), 580px);
  max-width: clamp(320px, calc((100svh - var(--header-h) - 470px) * 1.66), 580px);
  display: flex; flex-direction: column; gap: 14px;
}
.chips {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.chips li {
  padding: 10px 12px 9px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}
.chips b { display: block; font: 600 1.3rem/1.1 var(--f-head); color: #fff; }
.chips span { display: block; margin-top: 3px; font-size: 0.7rem; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; }

/* desktop: hero fills the first screen */

@media (min-width: 981px) {
  /* H1: first line stretched exactly to the container's right edge */
  .hero__grid { container-type: inline-size; }
  .hero h1 { font-size: calc(100cqw / 17.5); line-height: 1.06; }
  .h1-l1 { display: block; white-space: nowrap; }
  .hero { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; }
  .hero > .wrap { width: 100%; }
}
@media (min-width: 981px) and (max-height: 740px) {
  .hero { padding: 16px 0 22px; }
  .hero h1 { margin-bottom: 14px; }
  .hero__copy p.muted { font-size: 0.85rem; line-height: 1.5; }
  .hero .jp { font-size: 0.66rem; padding: 5px 6px; letter-spacing: 0.06em; }
  .hero .machine__jp { gap: 5px; flex-wrap: nowrap; }
  .hero .chips span { font-size: 0.6rem; letter-spacing: 0.02em; }
}
@media (min-width: 981px) and (max-height: 820px) {
  .eyebrow { margin-bottom: 12px !important; }
  .hero__copy p { font-size: 0.95rem; line-height: 1.55; margin-bottom: 0.75em; }
  .hero__copy p.muted { font-size: 0.88rem; }
  .hero__cta .btn { min-height: 46px; }
  .chips li { padding: 8px 10px 7px; }
  .chips b { font-size: 1.15rem; }
}

/* ---------- Slot machine (hero) ---------- */
.hero__machine { position: relative; }
.hero__machine::before {
  content: ""; position: absolute; inset: -10% -6%; z-index: -1;
  background: radial-gradient(closest-side, rgba(58, 160, 255, 0.28), transparent 75%);
  filter: blur(10px);
}
.machine {
  position: relative;
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, #1c1166, #0d0735);
  box-shadow:
    inset 0 0 0 1px rgba(143, 224, 255, 0.28),
    0 0 0 2px var(--electric),
    0 0 22px rgba(58, 160, 255, 0.55),
    0 0 70px rgba(58, 160, 255, 0.22),
    0 34px 70px -24px rgba(0, 0, 0, 0.8);
  animation: neon 5s ease-in-out infinite;
}
@keyframes neon {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(143, 224, 255, 0.28), 0 0 0 2px var(--electric), 0 0 22px rgba(58, 160, 255, 0.55), 0 0 70px rgba(58, 160, 255, 0.22), 0 34px 70px -24px rgba(0, 0, 0, 0.8); }
  50% { box-shadow: inset 0 0 0 1px rgba(143, 224, 255, 0.4), 0 0 0 2px #6cc0ff, 0 0 30px rgba(58, 160, 255, 0.75), 0 0 100px rgba(58, 160, 255, 0.32), 0 34px 70px -24px rgba(0, 0, 0, 0.8); }
}
.machine__jp { display: flex; justify-content: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.jp {
  --c: var(--purple);
  font: 600 0.8rem/1 var(--f-head); letter-spacing: 0.1em;
  color: var(--c);
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid rgba(180, 108, 255, 0.55);
  background: rgba(180, 108, 255, 0.1);
  white-space: nowrap;
}
.jp b { color: #fff; font-weight: 600; margin-left: 4px; }
.jp--grand { --c: var(--red); border-color: rgba(255, 61, 79, 0.55); background: rgba(255, 61, 79, 0.1); }
.jp--super { --c: var(--green); border-color: rgba(47, 214, 122, 0.55); background: rgba(47, 214, 122, 0.1); }
.jp--major { --c: var(--purple); }
.win--grand .jp--grand { animation: jpflash 0.5s ease-in-out 0.6s 4 alternate; }
@keyframes jpflash { to { background: #ff3d4f; color: #fff; border-color: #ff8a94; box-shadow: 0 0 22px rgba(255, 61, 79, 0.9); } }
.win--grand .jp--grand b { color: #fff; }

.machine__window {
  position: relative;
  aspect-ratio: 5 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 40%, #1d1260, #090523 70%);
  box-shadow: inset 0 0 0 1px rgba(143, 224, 255, 0.2), inset 0 0 40px rgba(0, 0, 0, 0.6);
}
.reels { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.reel {
  position: relative;
  overflow: hidden;
  container-type: size;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(143, 224, 255, 0.07) 50%, rgba(255, 255, 255, 0.015));
}
.reel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 3, 24, 0.75), transparent 16%, transparent 84%, rgba(6, 3, 24, 0.75));
}
.strip { display: flex; flex-direction: column; will-change: transform; }
.strip i { flex: none; display: grid; place-items: center; height: 33.3333cqh; }
.strip svg { width: 80%; height: 80%; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.55)); }
.reel.spinning .strip { filter: blur(1.4px) brightness(1.1); }
.strip i.hit svg { animation: hit 0.55s ease-in-out infinite alternate; }
@keyframes hit {
  from { transform: scale(1); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.55)); }
  to { transform: scale(1.1); filter: drop-shadow(0 0 10px rgba(255, 215, 100, 0.95)); }
}
.win--scatter .strip i.hit svg { animation-name: hitIce; }
@keyframes hitIce {
  from { transform: scale(1); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.55)); }
  to { transform: scale(1.12) rotate(-4deg); filter: drop-shadow(0 0 12px rgba(143, 224, 255, 1)); }
}

.joker-xl {
  position: absolute; top: 0; bottom: 0;
  left: calc((100% - 16px) / 5 * 2 + 8px);
  width: calc((100% - 16px) / 5);
  opacity: 0;
  clip-path: inset(0 0 66.7% 0);
  transition: opacity 0.2s, clip-path 0.2s;
  pointer-events: none;
}
.joker-xl svg { width: 100%; height: 100%; filter: drop-shadow(0 0 14px rgba(247, 195, 65, 0.55)); }
.joker-xl::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(143, 224, 255, 0));
  opacity: 0;
}
.win--grand .joker-xl { opacity: 1; clip-path: inset(0 0 0 0); transition: opacity 0.12s, clip-path 0.6s cubic-bezier(0.2, 0.85, 0.25, 1); }
.win--grand .joker-xl::after { animation: flash 0.7s ease-out; }
@keyframes flash { 0% { opacity: 0.85; } 100% { opacity: 0; } }

.payline { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.payline polyline {
  fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 520; stroke-dashoffset: 520;
  filter: drop-shadow(0 0 6px rgba(247, 195, 65, 0.9));
  opacity: 0;
}
.win--grand .payline polyline { opacity: 0.9; stroke-dashoffset: 0; transition: stroke-dashoffset 0.6s ease-out 0.55s, opacity 0.1s 0.55s; }

.win-badge {
  position: absolute; left: 50%; top: 58%;
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 22px 8px;
  border-radius: 14px;
  background: rgba(10, 5, 34, 0.86);
  border: 1px solid var(--red);
  box-shadow: 0 0 30px rgba(255, 61, 79, 0.5), inset 0 0 20px rgba(255, 61, 79, 0.18);
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  pointer-events: none;
}
.win-badge__t { font: 700 clamp(1.3rem, 3.4vw, 2rem)/1 var(--f-head); letter-spacing: 0.12em; color: var(--red); text-shadow: 0 0 16px rgba(255, 61, 79, 0.8); }
.win-badge__x { font: 600 0.9rem/1.4 var(--f-head); letter-spacing: 0.14em; color: #fff; }
.win .win-badge { animation: pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) 0.9s forwards; }
.win--scatter .win-badge { border-color: var(--ice); box-shadow: 0 0 30px rgba(143, 224, 255, 0.45), inset 0 0 20px rgba(143, 224, 255, 0.15); }
.win--scatter .win-badge__t { color: var(--ice); text-shadow: 0 0 16px rgba(143, 224, 255, 0.8); }
.win--scatter .win-badge { animation-delay: 0.3s; }
@keyframes pop { to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

.bolts { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bolt {
  fill: none; stroke: #d9f4ff; stroke-width: 2; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 4px #5fc0ff) drop-shadow(0 0 10px #3aa0ff);
  opacity: 0;
  animation: bolt 6.5s linear infinite;
}
.bolt.b2 { animation-delay: 3.1s; }
@keyframes bolt {
  0%, 86% { opacity: 0; }
  87% { opacity: 1; }
  88% { opacity: 0.2; }
  89.5% { opacity: 1; }
  92%, 100% { opacity: 0; }
}

.machine__bar {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 12px; padding: 0 4px;
  font: 500 0.78rem/1 var(--f-head); letter-spacing: 0.12em; color: var(--muted);
}
.machine__bar b { color: var(--gold); font-weight: 600; margin-left: 6px; }

/* static (reduced motion) */
.static .joker-xl, .static .payline polyline, .static .win-badge { transition: none !important; animation: none !important; }
.static .win-badge { opacity: 1; transform: translate(-50%, -50%); }

/* ---------- Casino cards ---------- */
.casinos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.casino {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 26px 18px 18px;
  border-radius: 18px;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(58, 160, 255, 0.14), transparent 60%),
    linear-gradient(180deg, #160e48, #0f0935);
  border: 1px solid var(--line);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
}
.casino::before {
  content: ""; position: absolute; left: 22%; right: 22%; top: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.8;
}
.casino:hover {
  transform: translateY(-5px);
  border-color: rgba(247, 195, 65, 0.45);
  box-shadow: 0 0 0 1px rgba(247, 195, 65, 0.15), 0 22px 44px -18px rgba(0, 0, 0, 0.8), 0 0 40px -10px rgba(58, 160, 255, 0.45);
}
.casino__logo {
  position: relative;
  width: 108px; height: 108px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 0 5px rgba(143, 224, 255, 0.06), 0 14px 26px -10px rgba(0, 0, 0, 0.8);
  margin-bottom: 16px;
}
.casino__logo img { width: 100%; height: 100%; object-fit: cover; }
.casino__logo::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
}
.casino:hover .casino__logo::after { left: 130%; }
.casino__name { font: 600 1.35rem/1.1 var(--f-head); letter-spacing: 0.05em; text-transform: uppercase; margin: 0 0 12px; color: #fff; }
.casino__bonus {
  flex: 1;
  width: 100%;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 14px 12px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px dashed rgba(247, 195, 65, 0.28);
}
.casino__label { font: 500 0.72rem/1 var(--f-head); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.casino__main { font: 600 1.18rem/1.25 var(--f-head); color: var(--gold-hi); letter-spacing: 0.01em; }
.casino__extra { font-size: 0.93rem; line-height: 1.4; color: var(--text-2); }
.btn--play { width: 100%; font-size: 1.05rem; animation: glow 2.8s ease-in-out infinite; }
@keyframes glow {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -2px 0 rgba(120, 70, 0, 0.35), 0 8px 22px -10px rgba(247, 195, 65, 0.7); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -2px 0 rgba(120, 70, 0, 0.35), 0 8px 30px -6px rgba(247, 195, 65, 0.95); }
}
.casino__note { margin: 10px 0 0; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.03em; }

/* ---------- Tables ---------- */
.table-wrap {
  max-width: 960px;
  margin: 26px auto 30px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: rgba(15, 9, 50, 0.78);
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.8);
}
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; line-height: 1.45; }
th, td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
tbody tr:last-child > * { border-bottom: 0; }
thead th {
  font: 500 0.82rem/1.3 var(--f-head); letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted);
  background: rgba(58, 160, 255, 0.08);
  vertical-align: bottom;
}
tbody th { font-weight: 700; color: var(--text); }
tbody tr { transition: background-color 0.2s; }
tbody tr:hover { background: rgba(143, 224, 255, 0.04); }
td small, th small { display: block; color: var(--muted); font-size: 0.82em; font-weight: 500; margin-top: 2px; }
td { color: var(--text); font-weight: 600; }
.c-major { color: var(--purple); }
.c-super { color: var(--green); }
.c-grand { color: var(--red); }

.specs { max-width: 100%; }
.specs tbody th { width: 42%; font-weight: 500; color: var(--muted); }
.specs td small { display: inline; margin: 0; }
.tag {
  display: inline-block; padding: 3px 8px; margin: 2px 2px 2px 0;
  font: 600 0.78rem/1.2 var(--f-head); letter-spacing: 0.1em;
  border-radius: 6px; border: 1px solid currentColor;
}
.tag--major { color: var(--purple); }
.tag--super { color: var(--green); }
.tag--grand { color: var(--red); }

.sym { display: inline-flex; align-items: center; gap: 10px; }
.sym svg { width: 34px; height: 34px; flex: none; }
.sym--suits { flex-wrap: wrap; gap: 4px 2px; }
.sym--suits svg { width: 24px; height: 24px; }

/* ---------- Lists / blocks ---------- */
.list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.list li { position: relative; padding: 8px 0 8px 28px; border-bottom: 1px solid var(--line-soft); }
.list li:last-child { border-bottom: 0; }
.list li::before {
  content: ""; position: absolute; left: 4px; top: 17px;
  width: 9px; height: 9px; transform: rotate(45deg);
  background: linear-gradient(135deg, #e9fbff, var(--electric));
  box-shadow: 0 0 8px rgba(58, 160, 255, 0.8);
}
.callout {
  margin: 18px 0 8px;
  padding: 20px 22px 6px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(247, 195, 65, 0.09), rgba(247, 195, 65, 0.02));
  border: 1px solid rgba(247, 195, 65, 0.22);
  border-left: 3px solid var(--gold);
}

.steps { list-style: none; counter-reset: s; padding: 0; margin: 18px 0 22px; }
.steps li {
  counter-increment: s;
  position: relative;
  padding: 10px 0 18px 58px;
  min-height: 44px;
}
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 4px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  font: 600 1.05rem/1 var(--f-head);
  color: #2a1600;
  background: linear-gradient(180deg, #ffe892, #f7c341 50%, #d4900f);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.steps li::after {
  content: ""; position: absolute; left: 18px; top: 50px; bottom: -2px; width: 2px;
  background: linear-gradient(180deg, rgba(247, 195, 65, 0.5), rgba(247, 195, 65, 0));
}
.steps li:last-child::after { display: none; }

.tips { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tips li {
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  font-size: 0.97rem;
}
.tips li b { display: block; font: 500 1.08rem/1.25 var(--f-head); color: var(--ice); margin-bottom: 6px; letter-spacing: 0.02em; }

.checks { list-style: none; padding: 0; margin: 12px 0 20px; }
.checks li { position: relative; padding: 7px 0 7px 34px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 10px; width: 22px; height: 22px; border-radius: 6px;
  background: rgba(47, 214, 122, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232fd67a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat;
  border: 1px solid rgba(47, 214, 122, 0.4);
}

/* ---------- Features ---------- */
.features { list-style: none; padding: 0; margin: 30px 0 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  --c: var(--gold);
  position: relative;
  padding: 26px 22px 20px;
  border-radius: 18px;
  background: radial-gradient(100% 70% at 50% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%), #120b3c;
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  overflow: hidden;
}
.feature--red { --c: var(--red); }
.feature--gold { --c: var(--gold); }
.feature--ice { --c: var(--ice); }
.feature__ic { width: 64px; height: 64px; margin-bottom: 12px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5)); transition: transform 0.4s cubic-bezier(0.2, 1.4, 0.4, 1); }
.feature:hover .feature__ic { transform: translateY(-4px) rotate(-6deg) scale(1.06); }
.feature h3 { margin: 0 0 8px; color: #fff; }
.feature p { margin: 0; font-size: 0.98rem; }

/* ---------- Jackpot calculator ---------- */
.jpcalc {
  max-width: 960px;
  margin: 30px auto 34px;
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, #170e4c, #0e0835);
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(58, 160, 255, 0.08), 0 30px 60px -32px rgba(0, 0, 0, 0.9);
}
.jpcalc__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.jpcalc__label { font: 500 0.82rem/1 var(--f-head); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.jpcalc__bet { font: 600 1.6rem/1 var(--f-head); color: var(--gold); }
.jpcalc__bet small { font: 500 0.85rem var(--f-body); color: var(--muted); }
.jpcalc__range {
  --p: 33%;
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 34px; margin: 0;
  background: transparent; cursor: pointer;
}
.jpcalc__range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 6px;
  background: linear-gradient(90deg, var(--gold) 0 var(--p), rgba(143, 224, 255, 0.18) var(--p) 100%);
}
.jpcalc__range::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(143, 224, 255, 0.18); }
.jpcalc__range::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--gold); }
.jpcalc__range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; margin-top: -9px;
  background: linear-gradient(135deg, #fff6d0, var(--gold) 50%, var(--gold-lo));
  border: 2px solid #2a1600; border-radius: 6px;
  transform: rotate(45deg);
  box-shadow: 0 0 14px rgba(247, 195, 65, 0.7);
}
.jpcalc__range::-moz-range-thumb {
  width: 20px; height: 20px;
  background: linear-gradient(135deg, #fff6d0, var(--gold) 50%, var(--gold-lo));
  border: 2px solid #2a1600; border-radius: 6px;
  transform: rotate(45deg);
  box-shadow: 0 0 14px rgba(247, 195, 65, 0.7);
}
.jpcalc__scale { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--muted); margin: 2px 0 18px; }
.jpcalc__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.jptile {
  --c: var(--purple);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 16px 10px 14px;
  border-radius: 14px;
  background: radial-gradient(100% 80% at 50% 0%, color-mix(in srgb, var(--c) 20%, transparent), transparent 70%), rgba(255, 255, 255, 0.02);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
}
.jptile--major { --c: var(--purple); }
.jptile--super { --c: var(--green); }
.jptile--grand { --c: var(--red); }
.jptile__n { font: 700 1.05rem/1 var(--f-head); letter-spacing: 0.18em; color: var(--c); text-shadow: 0 0 14px color-mix(in srgb, var(--c) 70%, transparent); }
.jptile__m { font-size: 0.78rem; color: var(--muted); margin: 6px 0 8px; }
.jptile__v { font: 600 clamp(1.4rem, 2.6vw, 1.9rem)/1.1 var(--f-head); color: #fff; font-variant-numeric: tabular-nums; }
.jptile__v.tick { animation: tick 0.35s ease-out; }
@keyframes tick { 0% { transform: scale(1.12); color: var(--gold-hi); } 100% { transform: scale(1); } }
.jptile__ft { margin-top: 3px; color: var(--muted); font-size: 0.82rem; }

/* ---------- Joker reel map ---------- */
.reelmap { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; max-width: 460px; margin: 18px 0 22px; }
.reelmap__r {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px;
  aspect-ratio: 3 / 4;
  padding-top: 8px;
  border-radius: 10px;
  font: 500 0.82rem/1 var(--f-head); letter-spacing: 0.08em; color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  border: 1px dashed rgba(140, 170, 255, 0.2);
}
.reelmap__r:not(.is-on)::after {
  content: "×"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -40%);
  font-size: 1.6rem; color: rgba(255, 61, 79, 0.55);
}
.reelmap__r.is-on { color: var(--gold); border: 1px solid rgba(247, 195, 65, 0.45); background: rgba(247, 195, 65, 0.06); }
.reelmap__r svg { width: 72%; }

/* ---------- RTP ---------- */
.rtp { margin: 8px 0 22px; }
.rtp__bar { height: 14px; border-radius: 999px; background: rgba(255, 61, 79, 0.35); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.rtp__fill { display: block; height: 100%; width: 96.08%; background: linear-gradient(90deg, var(--electric), var(--ice) 70%, var(--green)); border-radius: 999px; box-shadow: 0 0 16px rgba(143, 224, 255, 0.5); }
.rtp__legend { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 0.86rem; color: var(--muted); }
.rtp__legend b { font-family: var(--f-head); font-weight: 600; font-size: 1.05rem; color: var(--ice); }
.rtp__legend span:last-child b { color: var(--red); }

/* ---------- Bet levels ---------- */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.level { padding: 18px 18px 6px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); font-size: 0.96rem; }
.level__tag { display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: 999px; font: 600 0.78rem/1.2 var(--f-head); letter-spacing: 0.12em; text-transform: uppercase; }
.level:nth-child(1) .level__tag { color: var(--green); background: rgba(47, 214, 122, 0.12); }
.level:nth-child(2) .level__tag { color: var(--gold); background: rgba(247, 195, 65, 0.12); }
.level:nth-child(3) .level__tag { color: var(--red); background: rgba(255, 61, 79, 0.12); }

/* ---------- Demo ---------- */
.section--demo {
  background:
    radial-gradient(800px 400px at 50% 30%, rgba(58, 160, 255, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(58, 160, 255, 0.04), rgba(124, 58, 237, 0.07));
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.demo {
  max-width: 1000px;
  margin: 30px auto 0;
  padding: 10px;
  border-radius: 20px;
  background: linear-gradient(180deg, #1c1166, #0d0735);
  box-shadow: inset 0 0 0 1px rgba(143, 224, 255, 0.28), 0 0 0 2px var(--electric), 0 0 26px rgba(58, 160, 255, 0.5), 0 40px 80px -30px rgba(0, 0, 0, 0.85);
}
.demo__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 6px 10px; min-height: 46px; }
.demo__title { display: inline-flex; align-items: center; gap: 10px; font: 500 0.88rem/1 var(--f-head); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.is-playing .live { background: var(--green); animation: ping 2s infinite; }
.demo__tools { display: flex; gap: 8px; }
.demo__tool {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04);
  color: var(--text); cursor: pointer; transition: background-color 0.2s, border-color 0.2s;
}
.demo__tool[hidden] { display: none; }
.demo__tool:hover { background: rgba(58, 160, 255, 0.16); border-color: var(--ice); }
.demo__tool svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.demo__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #05030f;
  isolation: isolate;
  contain: layout paint;
}
.demo__stage iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; display: block;
  background: #05030f;
}
.demo__poster {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(60% 70% at 50% 45%, rgba(92, 40, 190, 0.55), transparent 70%),
    repeating-linear-gradient(45deg, rgba(143, 224, 255, 0.04) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(-45deg, rgba(143, 224, 255, 0.04) 0 1px, transparent 1px 26px),
    #0b0630;
}
.demo__glow {
  position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; z-index: -1;
  background: conic-gradient(from 0deg, transparent, rgba(58, 160, 255, 0.35), transparent 30%, rgba(247, 195, 65, 0.25), transparent 60%);
  filter: blur(40px);
  animation: spin 12s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.demo__logo { width: min(72%, 400px); height: auto; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6)); }
.demo__meta { margin: 0; font-size: 0.85rem; color: var(--muted); }
.is-playing .demo__poster { display: none; }

.demo:fullscreen { max-width: none; width: 100%; height: 100%; margin: 0; padding: 0; border-radius: 0; display: flex; flex-direction: column; background: #000; }
.demo:fullscreen .demo__bar { padding: 8px 12px; }
.demo:fullscreen .demo__stage { flex: 1; aspect-ratio: auto; border-radius: 0; }
.demo:-webkit-full-screen { max-width: none; width: 100%; height: 100%; margin: 0; padding: 0; border-radius: 0; display: flex; flex-direction: column; background: #000; }
.demo:-webkit-full-screen .demo__stage { flex: 1; aspect-ratio: auto; border-radius: 0; }

/* ---------- Palette ---------- */
.palette { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 20px; }
.palette span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px;
  font-size: 0.82rem; color: var(--text-2);
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.025);
}
.palette span::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }

/* ---------- Pros / cons ---------- */
.proscons { max-width: 960px; margin: 28px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pc { padding: 24px 24px 14px; border-radius: 18px; background: #120b3c; border: 1px solid var(--line); }
.pc h3 { margin: 0 0 12px; font-size: 1.35rem; }
.pc--pro { border-top: 3px solid var(--green); }
.pc--con { border-top: 3px solid var(--red); }
.pc--pro h3 { color: var(--green); }
.pc--con h3 { color: var(--red); }
.pc ul { list-style: none; margin: 0; padding: 0; }
.pc li { position: relative; padding: 10px 0 10px 32px; border-bottom: 1px solid var(--line-soft); color: var(--text); }
.pc li:last-child { border-bottom: 0; }
.pc li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 20px; height: 20px; border-radius: 50%;
  background-position: center; background-size: 12px; background-repeat: no-repeat;
}
.pc--pro li::before { background-color: rgba(47, 214, 122, 0.16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232fd67a' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.pc--con li::before { background-color: rgba(255, 61, 79, 0.16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff3d4f' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E"); }

/* ---------- Verdict ---------- */
.verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 22px; }
.verdict__item { padding: 18px 20px 6px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.verdict__item h3 { margin: 0 0 8px; font-size: 1.15rem; }
.verdict__item--yes h3 { color: var(--green); }
.verdict__item--no h3 { color: var(--gold); }
.final-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ---------- FAQ ---------- */
.faq { margin-top: 20px; display: grid; gap: 10px; }
.faq details { border-radius: 14px; background: #120b3c; border: 1px solid var(--line); transition: border-color 0.25s; }
.faq details[open] { border-color: rgba(143, 224, 255, 0.4); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px;
  font: 500 1.08rem/1.35 var(--f-head); letter-spacing: 0.02em; color: #fff;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 8px;
  background: rgba(58, 160, 255, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fe0ff' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform 0.25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__a { padding: 0 20px 6px; }

/* ---------- Footer ---------- */
.footer { padding: 44px 0 56px; border-top: 1px solid var(--line); background: rgba(5, 3, 18, 0.5); }
.footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.footer__inner img { height: 48px; width: auto; opacity: 0.95; }
.footer__age { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; font-size: 0.9rem; color: var(--text-2); max-width: 620px; text-align: left; }
.age { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--red); color: var(--red); font: 700 0.9rem/1 var(--f-head); }
.footer__copy { margin: 0; font-size: 0.8rem; color: var(--muted); }

.to-top {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 12px; background: rgba(18, 11, 60, 0.9); border: 1px solid var(--line);
  color: var(--ice);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.casino.reveal:nth-child(4n + 2) { transition-delay: 0.06s; }
.casino.reveal:nth-child(4n + 3) { transition-delay: 0.12s; }
.casino.reveal:nth-child(4n + 4) { transition-delay: 0.18s; }
.casino.reveal.in:hover { transition-delay: 0s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1199px) {
  .cta-long { display: none; }
  .cta-short { display: inline; }
}
@media (max-width: 1080px) {
  .casinos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { gap: 18px; }
}
@media (max-width: 980px) {
  .burger { display: block; }
  .header__cta { margin-left: auto; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: 6px 20px 16px;
    background: rgba(10, 6, 36, 0.97);
    border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .is-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 15px 2px; font-size: 1rem; border-bottom: 1px solid var(--line-soft); }
  .nav a::after { display: none; }
  .hero__grid { display: flex; flex-direction: column; }
  .hero__copy, .hero__side { display: contents; }
  .hero .eyebrow { order: 1; align-self: flex-start; }
  .hero h1 { order: 2; font-size: clamp(1.75rem, 6.6vw, 2.6rem); }
  .hero__machine { order: 3; width: 100%; max-width: 560px; margin: 2px auto 18px; }
  .hero__cta { order: 4; margin: 0 0 14px; width: 100%; }
  .chips { order: 5; width: 100%; max-width: 560px; margin: 0 auto 26px; }
  .hero__copy p { order: 6; width: 100%; }
  .features { grid-template-columns: 1fr; }
  .feature { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; align-items: start; }
  .feature__ic { grid-row: span 2; margin: 0; }
  .levels { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --header-h: 60px; }
  body { font-size: 1rem; }
  .wrap, .header__inner { padding: 0 16px; }
  .header__inner { gap: 10px; }
  .brand img { height: 38px; }
  .section { padding: 52px 0; }
  .hero { padding: 22px 0 44px; }
  .chips { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .chips li { padding: 8px 4px 7px; }
  .chips b { font-size: 1.05rem; }
  .hero .chips span { font-size: 0.6rem; letter-spacing: 0.02em; }
  .tips, .proscons, .verdict { grid-template-columns: 1fr; }
  .jpcalc { padding: 18px 14px; }
  .jpcalc__tiles { grid-template-columns: 1fr; gap: 8px; }
  .jptile { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n v" "m f"; text-align: left; align-items: baseline; gap: 2px 12px; padding: 12px 14px; }
  .jptile__n { grid-area: n; }
  .jptile__m { grid-area: m; margin: 0; }
  .jptile__v { grid-area: v; text-align: right; }
  .jptile__ft { grid-area: f; text-align: right; margin: 0; }
  .hero__cta { gap: 8px; flex-wrap: nowrap; }
  .hero__cta .btn { flex: 1 1 auto; min-width: 0; padding-left: 0.7em; padding-right: 0.7em; font-size: 0.8rem; letter-spacing: 0.04em; white-space: nowrap; text-align: center; }
  .final-cta .btn { flex: 1 1 220px; }

  /* tables → stacked cards */
  .stack thead { display: none; }
  .stack, .stack tbody, .stack tr { display: block; width: 100%; }
  .stack tr { padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
  .stack tbody tr:last-child { border-bottom: 0; }
  .stack tbody tr:hover { background: transparent; }
  .stack th[scope="row"] { display: block; padding: 0 0 8px; border: 0; font: 600 1.1rem/1.3 var(--f-head); color: var(--gold-hi); letter-spacing: 0.02em; }
  .stack th[scope="row"] small { display: inline; margin-left: 4px; font-family: var(--f-body); }
  .stack td { display: block; position: relative; padding: 7px 0 7px 48%; border: 0; border-top: 1px dashed var(--line-soft); text-align: right; }
  .stack td::before {
    content: attr(data-label);
    position: absolute; left: 0; top: 8px; width: 46%;
    text-align: left; font: 500 0.8rem/1.3 var(--f-head); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  }
  .table-wrap { margin: 20px auto 24px; }
  .specs th, .specs td { padding: 12px 14px; }
  .specs tbody th { width: 44%; }
}
@media (max-width: 560px) {
  .casinos { grid-template-columns: 1fr; gap: 14px; }
  .casino { padding: 22px 16px 16px; }
  .header__cta { padding: 0.6em 0.8em; font-size: 0.8rem; }
  .machine { padding: 10px; border-radius: 18px; }
  .machine__jp { gap: 5px; margin-bottom: 10px; }
  .jp { font-size: 0.68rem; padding: 6px 7px; letter-spacing: 0.06em; }
  .machine__bar { font-size: 0.7rem; }
  .reels { gap: 3px; }
  .joker-xl { left: calc((100% - 12px) / 5 * 2 + 6px); width: calc((100% - 12px) / 5); }
  .demo { padding: 6px; border-radius: 16px; }
  .demo__bar { padding: 4px 6px 8px; }
  .demo__title { font-size: 0.78rem; letter-spacing: 0.08em; }
  .steps li { padding-left: 52px; }
}
@media (max-width: 380px) {
  .brand img { height: 32px; }
  .header__cta { padding: 0.55em 0.6em; font-size: 0.72rem; letter-spacing: 0.04em; }
}
/* demo window: portrait phones get a taller window */
@media (max-width: 640px) and (orientation: portrait) {
  .demo__stage { aspect-ratio: 3 / 4; }
}
/* landscape phones: fit the viewport height */
@media (orientation: landscape) and (max-height: 520px) {
  .demo__stage { aspect-ratio: auto; height: calc(100vh - 80px); height: calc(100svh - 80px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .bolt { display: none; }
}

/* ---------- Screenshots from the game ---------- */
.shot { margin: 26px 0 30px; }
.shot img {
  width: 100%; height: auto;
  border-radius: 14px;
  background: #0b1a2a;
  box-shadow: 0 0 0 1px rgba(143, 224, 255, 0.28), 0 0 0 4px rgba(58, 160, 255, 0.08), 0 0 34px rgba(58, 160, 255, 0.22), 0 26px 50px -24px rgba(0, 0, 0, 0.9);
}
.shot figcaption {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 12px; font-size: 0.88rem; line-height: 1.5; color: var(--muted);
}
.shot figcaption::before {
  content: ""; flex: none; width: 8px; height: 8px; margin-top: 6px; transform: rotate(45deg);
  background: linear-gradient(135deg, #e9fbff, var(--electric));
  box-shadow: 0 0 8px rgba(58, 160, 255, 0.8);
}

/* reels styled like the game: dark teal columns, real symbols */
.machine__window { background: linear-gradient(180deg, #0c1d2b, #081520); }
.reel { background: linear-gradient(180deg, rgba(20, 50, 70, 0.35), rgba(20, 50, 70, 0.12)); }
.reels { gap: 3px; background: rgba(160, 180, 210, 0.22); }
.strip svg { width: 88%; height: 88%; }

/* demo poster shows the real game behind the logo */
.demo__poster {
  background:
    radial-gradient(60% 70% at 50% 45%, rgba(40, 20, 120, 0.35), rgba(8, 5, 30, 0.82) 75%),
    linear-gradient(180deg, rgba(10, 6, 40, 0.55), rgba(10, 6, 40, 0.8)),
    url("../img/screens/wjd-jatekter-800.webp") center / cover no-repeat,
    #0b0630;
}
.reel { background: linear-gradient(180deg, #0e2232, #0a1925 55%, #0d1f2e); }
.joker-xl { left: calc((100% - 12px) / 5 * 2 + 6px); width: calc((100% - 12px) / 5); }
