/* ============================================================
   Royal188 Theme — style.css
   Casino theme: deep black-violet base, purple/magenta primary,
   gold accent, green/blue support. Fully responsive, no overflow.
   ============================================================ */
:root {
  --bg: #0d0a1a;
  --bg-2: #151029;
  --bg-3: #1d1638;
  --card: #1a1332;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f3f0ff;
  --text-dim: #b8b0d9;
  --purple: #7c3aed;
  --purple-soft: #9f67ff;
  --pink: #ec4899;
  --gold: #f5b301;
  --gold-2: #ffd34d;
  --green: #22c55e;
  --blue: #3b82f6;
  --red: #ef4444;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --maxw: 1180px;
  --float-h: 84px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  padding-bottom: calc(var(--float-h) + 12px);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-soft); text-decoration: none; }
a:hover { color: var(--gold-2); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--gold); color: #1a1200;
  padding: 10px 18px; z-index: 200; border-radius: 0 0 10px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(13, 10, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { border-radius: 50%; }
.brand-name { font-size: 1.35rem; font-weight: 800; color: #fff; letter-spacing: 0.5px; }
.brand-name em { font-style: normal; color: var(--gold); }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; flex-wrap: wrap; }
.main-nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--text-dim); font-size: 0.94rem; font-weight: 600;
}
.main-nav a:hover { color: #fff; background: rgba(124, 58, 237, 0.25); }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.search-open {
  background: rgba(124, 58, 237, 0.18); border: 1px solid var(--line); color: var(--text);
  width: 38px; height: 38px; border-radius: 10px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.search-open:hover { background: rgba(124, 58, 237, 0.4); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px; margin-left: auto;
}
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: 0.25s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 10px;
  font-weight: 700; font-size: 0.95rem; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  text-align: center;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #d9930a 100%);
  color: #241a00; box-shadow: 0 4px 18px rgba(245, 179, 1, 0.35);
}
.btn-gold:hover { color: #241a00; box-shadow: 0 6px 24px rgba(245, 179, 1, 0.55); transform: translateY(-1px); }
.btn-outline { border-color: var(--purple); color: #fff; background: rgba(124, 58, 237, 0.12); }
.btn-outline:hover { background: rgba(124, 58, 237, 0.35); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-dim); border-color: var(--line); }
.btn-ghost:hover { color: #fff; border-color: var(--purple-soft); }
.btn-sm { padding: 7px 14px; font-size: 0.86rem; }
.btn-lg { padding: 14px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(236, 72, 153, 0.22), transparent 60%),
    radial-gradient(800px 500px at 10% 110%, rgba(124, 58, 237, 0.28), transparent 60%),
    var(--bg);
  padding: 56px 0 30px;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.hero-kicker {
  display: inline-block; font-size: 0.82rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gold);
  background: rgba(245, 179, 1, 0.1); border: 1px solid rgba(245, 179, 1, 0.35);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); line-height: 1.25; margin-bottom: 16px; }
.hero-lead { color: var(--text-dim); font-size: 1.06rem; margin-bottom: 26px; max-width: 56ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 0.86rem; color: var(--text-dim); }
.hero-media img { border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.age-18 {
  display: inline-block; background: var(--red); color: #fff; font-weight: 800;
  border-radius: 6px; padding: 1px 8px; font-size: 0.82rem; margin-right: 4px;
}

/* ---------- Tag cloud ---------- */
.tagcloud { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 26px; padding-bottom: 6px; }
.tagcloud-title { font-size: 0.85rem; color: var(--text-dim); font-weight: 700; margin-right: 4px; }
.tag {
  font-size: 0.8rem; color: var(--text-dim); background: var(--bg-3);
  border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px;
}
.tag:hover { color: #fff; border-color: var(--purple-soft); background: rgba(124, 58, 237, 0.3); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 10px; }
.section-head p { color: var(--text-dim); }
.h2-left { font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin-bottom: 26px; }
.section-more { margin-top: 22px; color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 20px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(124, 58, 237, 0.55); box-shadow: var(--shadow); }
.card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 0.93rem; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center;
  justify-content: center; font-size: 1.5rem; margin-bottom: 16px;
}
.i-purple { background: rgba(124, 58, 237, 0.22); }
.i-gold { background: rgba(245, 179, 1, 0.16); }
.i-green { background: rgba(34, 197, 94, 0.16); }
.i-pink { background: rgba(236, 72, 153, 0.18); }
.card-line { border-top: 3px solid var(--purple); }
.card-check { position: relative; padding-left: 52px; }
.card-check::before {
  content: "✓"; position: absolute; left: 20px; top: 24px;
  width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #04160a;
  font-weight: 800; font-size: 0.85rem; display: flex; align-items: center; justify-content: center;
}

/* Category cards */
.cat-card { display: block; color: var(--text); padding: 0; overflow: hidden; }
.cat-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.cat-card h2 { font-size: 1.15rem; padding: 18px 20px 6px; }
.cat-card p { padding: 0 20px; }
.cat-link {
  display: inline-block; padding: 12px 20px 20px; color: var(--gold);
  font-weight: 700; font-size: 0.9rem;
}
.cat-card:hover .cat-link { color: var(--gold-2); }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.tbl { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--card); }
.tbl th, .tbl td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.tbl thead th {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(236, 72, 153, 0.22));
  color: #fff; font-weight: 700; white-space: nowrap;
}
.tbl tbody tr:hover { background: rgba(124, 58, 237, 0.1); }
.tbl-terms { min-width: 0; }
.tbl-terms th { width: 190px; color: var(--gold); font-weight: 700; vertical-align: top; white-space: normal; }
.tbl-terms td { color: var(--text-dim); }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; position: relative;
}
.step-num {
  display: inline-flex; width: 42px; height: 42px; border-radius: 50%;
  align-items: center; justify-content: center; font-weight: 800; font-size: 1.15rem;
  background: linear-gradient(135deg, var(--purple), var(--pink)); color: #fff;
  margin-bottom: 14px; box-shadow: 0 4px 14px rgba(124, 58, 237, 0.45);
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 0.92rem; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
.split-text h3 { margin: 20px 0 8px; font-size: 1.12rem; color: var(--gold-2); }
.split-text h3:first-child { margin-top: 0; }
.split-text p { color: var(--text-dim); font-size: 0.97rem; }
.split-media img { border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }

/* ---------- Promo ---------- */
.promo-card { display: flex; flex-direction: column; gap: 12px; }
.promo-value { font-size: 1.9rem; font-weight: 800; color: var(--gold); line-height: 1.2; }
.promo-value span { display: block; font-size: 0.85rem; color: var(--text-dim); font-weight: 600; }
.promo-card .btn { margin-top: auto; align-self: flex-start; }
.promo-full .table-scroll { margin: 6px 0 10px; }
.banner-figure img { border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 34px; }

/* ---------- Prose / article ---------- */
.prose { max-width: 800px; }
.prose.center { margin: 0 auto; text-align: center; }
.prose h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin: 34px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; margin: 24px 0 10px; color: var(--gold-2); }
.prose p { color: var(--text-dim); margin-bottom: 16px; }
.article-body { margin: 0 auto; }
.article-head h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.3; margin-bottom: 12px; }
.article-meta { color: var(--text-dim); font-size: 0.86rem; margin-bottom: 24px; }
.article-hero img { border-radius: 16px; border: 1px solid var(--line); margin-bottom: 30px; }
.cta-inline { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 10px; }
.disclaimer-small {
  font-size: 0.82rem; color: var(--text-dim); border: 1px dashed var(--line);
  border-radius: 10px; padding: 12px 16px; margin-top: 26px;
}
.center-cta { justify-content: center; margin-top: 22px; }
.cta-final { background: radial-gradient(700px 300px at 50% 0%, rgba(124, 58, 237, 0.25), transparent 70%), var(--bg-2); }

/* ---------- Page hero & breadcrumbs ---------- */
.page-hero {
  padding: 46px 0 40px;
  background:
    radial-gradient(700px 300px at 80% 0%, rgba(236, 72, 153, 0.16), transparent 60%),
    radial-gradient(600px 300px at 10% 100%, rgba(124, 58, 237, 0.2), transparent 60%),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 12px; }
.page-lead { color: var(--text-dim); max-width: 70ch; }
.page-hero-promo .btn { margin-top: 22px; }
.breadcrumbs { padding: 14px 0 0; }
.breadcrumbs ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px;
  max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
  font-size: 0.84rem; color: var(--text-dim);
}
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--purple-soft); }
.breadcrumbs [aria-current] { color: var(--gold); }

/* ---------- Games grid ---------- */
.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.game-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.2s, border-color 0.2s;
}
.game-card:hover { transform: translateY(-3px); border-color: rgba(245, 179, 1, 0.5); }
.game-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.game-card-top h3 { font-size: 1.02rem; }
.game-tag {
  flex-shrink: 0; font-size: 0.72rem; font-weight: 700; color: var(--purple-soft);
  background: rgba(124, 58, 237, 0.18); border: 1px solid rgba(124, 58, 237, 0.4);
  padding: 3px 9px; border-radius: 999px;
}
.game-card p { color: var(--text-dim); font-size: 0.88rem; flex: 1; }
.game-card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.game-rtp { font-size: 0.8rem; color: var(--green); font-weight: 700; }
.game-rtp.muted { color: var(--text-dim); font-weight: 500; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 16px 20px; list-style: none; position: relative; padding-right: 48px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--gold); font-weight: 700; transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary h3, .faq-item summary h2 { font-size: 0.99rem; font-weight: 700; display: inline; }
.faq-answer { padding: 0 20px 18px; }
.faq-answer p { color: var(--text-dim); font-size: 0.93rem; }

/* ---------- Auth ---------- */
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.auth-form {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 32px 30px; display: grid; gap: 16px;
}
.auth-form h2 { font-size: 1.3rem; }
.auth-note { color: var(--text-dim); font-size: 0.87rem; }
.auth-form label { display: grid; gap: 6px; font-size: 0.9rem; font-weight: 600; color: var(--text); }
.auth-form input, .auth-form select {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; color: #fff; font-size: 0.95rem; width: 100%;
}
.auth-form input:focus, .auth-form select:focus { outline: 2px solid var(--purple); border-color: transparent; }
.auth-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.auth-form .check input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--gold); }
.auth-form .check span { color: var(--text-dim); font-size: 0.85rem; }
.auth-switch { font-size: 0.9rem; color: var(--text-dim); text-align: center; }
.auth-side { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 30px; }

/* ---------- Search modal ---------- */
.search-modal {
  position: fixed; inset: 0; z-index: 120; background: rgba(6, 4, 14, 0.8);
  backdrop-filter: blur(6px); display: flex; align-items: flex-start; justify-content: center;
  padding: 12vh 20px 20px;
}
.search-modal[hidden] { display: none; }
.search-box {
  width: 100%; max-width: 620px; background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 18px; padding: 26px; position: relative; box-shadow: var(--shadow);
}
.search-close {
  position: absolute; top: 12px; right: 14px; background: none; border: 0;
  color: var(--text-dim); font-size: 1.7rem; cursor: pointer; line-height: 1;
}
.search-close:hover { color: #fff; }
.search-label { display: block; font-weight: 700; margin-bottom: 10px; }
#search-input {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px; color: #fff; font-size: 1rem;
}
#search-input:focus { outline: 2px solid var(--purple); border-color: transparent; }
.search-results { margin-top: 14px; display: grid; gap: 8px; max-height: 320px; overflow-y: auto; }
.search-results a {
  display: block; padding: 11px 14px; border-radius: 10px; background: var(--bg-2);
  border: 1px solid var(--line); color: var(--text); font-size: 0.92rem; font-weight: 600;
}
.search-results a:hover { border-color: var(--purple-soft); }
.search-results .no-result { color: var(--text-dim); font-size: 0.9rem; padding: 8px 4px; }
.search-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.search-tags span { font-size: 0.8rem; color: var(--text-dim); }

/* ---------- Footer ---------- */
.site-footer { background: #0a0714; border-top: 1px solid var(--line); margin-top: 20px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px;
  padding-top: 52px; padding-bottom: 34px;
}
.footer-about p { color: var(--text-dim); font-size: 0.9rem; margin-top: 14px; }
.age-badge { display: flex; align-items: center; gap: 8px; }
.footer-col h2 { font-size: 1rem; margin-bottom: 14px; color: var(--gold); }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a { color: var(--text-dim); font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold-2); }
.footer-legal { border-top: 1px solid var(--line); padding-top: 22px; padding-bottom: 30px; }
.footer-legal p { color: var(--text-dim); font-size: 0.8rem; margin-bottom: 10px; }
.footer-contact a { color: var(--purple-soft); font-weight: 700; }
.copyright { color: #6f6792 !important; }

/* ---------- Floating CTA (slot machine + coins) ---------- */
.float-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
  height: var(--float-h);
  background: linear-gradient(180deg, rgba(29, 22, 56, 0.97), rgba(13, 10, 26, 0.99));
  border-top: 2px solid var(--gold);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.6);
}
#coinCanvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.float-inner {
  position: relative; max-width: var(--maxw); margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 18px; padding: 0 20px;
}
.slot-machine {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  background: linear-gradient(180deg, #2a1f4d, #171030);
  border: 1px solid rgba(245, 179, 1, 0.5); border-radius: 12px; padding: 8px 14px;
}
.slot-reels { display: flex; gap: 5px; }
.slot-reels span {
  width: 30px; height: 38px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #fff8e6, #ffe9b0); color: #b45309;
  font-weight: 900; font-size: 1.25rem; border-radius: 6px;
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.15);
  animation: reelPulse 2.4s ease-in-out infinite;
}
.slot-reels span:nth-child(2) { animation-delay: 0.3s; }
.slot-reels span:nth-child(3) { animation-delay: 0.6s; }
@keyframes reelPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.slot-lights { display: flex; gap: 4px; }
.slot-lights i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  animation: lightBlink 1.2s linear infinite;
}
.slot-lights i:nth-child(2n) { background: var(--pink); animation-delay: 0.2s; }
.slot-lights i:nth-child(3n) { background: var(--green); animation-delay: 0.4s; }
@keyframes lightBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.float-buttons { display: flex; gap: 12px; margin-left: auto; }
.btn-float {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 8px 26px; border-radius: 12px; line-height: 1.25; text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-float:active { transform: scale(0.96); }
.btn-float-register {
  background: linear-gradient(135deg, var(--gold) 0%, #e08e00 100%); color: #241a00;
  box-shadow: 0 0 0 2px rgba(255, 211, 77, 0.35), 0 6px 20px rgba(245, 179, 1, 0.45);
  animation: ctaGlow 2s ease-in-out infinite;
}
@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255, 211, 77, 0.35), 0 6px 20px rgba(245, 179, 1, 0.45); }
  50% { box-shadow: 0 0 0 4px rgba(255, 211, 77, 0.55), 0 6px 28px rgba(245, 179, 1, 0.7); }
}
.btn-float-login {
  background: linear-gradient(135deg, var(--purple), var(--pink)); color: #fff;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.45);
}
.bf-title { font-weight: 900; font-size: 1.02rem; letter-spacing: 1px; }
.bf-sub { font-size: 0.68rem; opacity: 0.85; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .steps-4 { grid-template-columns: repeat(2, 1fr); }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero-grid, .split, .auth-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .split-media { order: -1; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .main-nav.open { max-height: 480px; }
  .main-nav ul { flex-direction: column; padding: 12px 20px 18px; gap: 2px; }
  .main-nav a { padding: 11px 14px; }
  .header-actions .btn-ghost { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .section { padding: 46px 0; }
  .cards-3, .cards-2, .steps, .games-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero { padding: 36px 0 24px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .float-inner { gap: 10px; padding: 0 12px; }
  .slot-machine { display: none; }
  .float-buttons { margin-left: 0; width: 100%; }
  .btn-float { flex: 1; padding: 8px 10px; }
  .bf-title { font-size: 0.95rem; }
  .bf-sub { font-size: 0.64rem; }
  .tbl-terms th { width: 128px; }
  .promo-value { font-size: 1.55rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
