/* ==========================================================================
   RainbetSlots.ca — shared stylesheet
   Original visual identity: light base, navy anchors, blue accents.
   ========================================================================== */

:root {
  --white: #ffffff;
  --ice: #f4f8ff;          /* very light blue background */
  --ice-2: #e9f1ff;        /* slightly deeper light blue */
  --line: #dde6f5;         /* hairlines / borders */
  --blue: #2f66d6;         /* medium blue - primary */
  --blue-strong: #204fb0;  /* hover */
  --navy: #101a3a;         /* deep navy */
  --navy-2: #182552;       /* navy panel */
  --ink: #1b2440;          /* headings */
  --grey: #5a6479;         /* secondary text */
  --grey-soft: #8a93a8;
  --accent: #37c2a8;       /* restrained teal used sparingly for success */
  --shadow-sm: 0 1px 2px rgba(16,26,58,.06), 0 2px 6px rgba(16,26,58,.05);
  --shadow-md: 0 8px 24px rgba(16,26,58,.10);
  --shadow-lg: 0 18px 48px rgba(16,26,58,.16);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-strong); text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.15rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.05em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.wrap-narrow { max-width: 820px; margin-left: auto; margin-right: auto; }

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Visible focus states */
a:focus-visible, button:focus-visible, .code-chip:focus-visible, summary:focus-visible {
  outline: 3px solid #7aa5f5; outline-offset: 2px; border-radius: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 650; font-size: 1rem; line-height: 1.1;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, #3a72e6 0%, #244fb3 100%);
  color: #fff; box-shadow: 0 6px 18px rgba(40,86,196,.32);
}
.btn-primary:hover { color: #fff; box-shadow: 0 10px 26px rgba(40,86,196,.42); }
.btn-ghost {
  background: var(--white); color: var(--blue-strong); border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { color: var(--blue-strong); border-color: #b9caea; }
.btn-lg { padding: 15px 28px; font-size: 1.06rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 18px;
  height: 66px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand:hover { text-decoration: none; }
.brand .brand-name { font-weight: 800; color: var(--navy); font-size: 1.05rem; letter-spacing: -0.02em; }
.brand .brand-name span { color: var(--blue); }

.nav-menu { margin-left: auto; margin-right: auto; }
.nav-list {
  list-style: none; display: flex; gap: 4px; margin: 0; padding: 0;
}
.nav-list a {
  display: block; padding: 9px 12px; border-radius: 9px;
  color: var(--ink); font-weight: 550; font-size: .95rem;
}
.nav-list a:hover { background: var(--ice); color: var(--blue-strong); text-decoration: none; }
.nav-list a[aria-current="page"] { color: var(--blue); background: var(--ice-2); }

.nav-cta { flex: 0 0 auto; }
.nav-cta .btn { padding: 10px 18px; font-size: .95rem; }

.mobile-cta { display: none; }

.nav-toggle {
  display: none; flex: 0 0 auto; margin-left: auto;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--navy);
  border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: fixed; inset: 66px 0 auto 0; margin: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 66px); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; padding: 10px 16px 18px; gap: 2px; }
  .nav-list a { padding: 13px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-list li:last-child a { border-bottom: none; }
  .nav-menu .mobile-cta { display: block; margin: 6px 16px 18px; }
  .nav-menu .mobile-cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 380px at 82% -10%, rgba(58,114,230,.14), transparent 60%),
    linear-gradient(180deg, var(--ice) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--line);
  padding: clamp(38px, 6vw, 68px) 0;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero .eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue); background: var(--ice-2);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.hero h1 { margin-bottom: .4em; }
.hero .lead { font-size: 1.12rem; color: var(--grey); max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-note { font-size: .82rem; color: var(--grey-soft); margin-top: 14px; }

.hero-card {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #eaf0ff; border-radius: 20px; padding: 26px; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.hero-card::after {
  content: ""; position: absolute; right: -40px; bottom: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(58,114,230,.5), transparent 70%);
}
.hero-card img.mark { width: 46px; height: 46px; border-radius: 12px; margin-bottom: 14px; }
.hero-card h2 { color: #fff; font-size: 1.2rem; margin-bottom: 6px; }
.hero-card p { color: #b9c6ee; font-size: .95rem; margin-bottom: 18px; }

/* ---------- Sections ---------- */
section { padding: clamp(40px, 6vw, 66px) 0; }
.section-alt { background: var(--ice); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 30px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .kicker {
  color: var(--blue); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  display: block; margin-bottom: 8px;
}
.section-head p { color: var(--grey); margin-bottom: 0; }
.lead-block { color: var(--grey); font-size: 1.06rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { margin-bottom: .35em; font-size: 1.12rem; }
.card p { color: var(--grey); font-size: .96rem; margin-bottom: 0; }
.card .icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--ice-2); color: var(--blue); margin-bottom: 14px; font-size: 1.15rem; font-weight: 800;
}
.card.link-card { display: flex; flex-direction: column; }
.card.link-card .card-link { margin-top: 14px; font-weight: 650; font-size: .95rem; }
.card.link-card .card-link::after { content: " →"; }

/* accent-bar cards */
.card-accent { border-left: 4px solid var(--blue); }

/* Feature row with image */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.feature.reverse .feature-media { order: 2; }
.feature-media img, .figure img {
  border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-md);
  width: 100%;
}
.feature h2 { margin-bottom: .4em; }
.feature p:last-child { margin-bottom: 0; }

/* Figure with caption (screenshots) */
.figure { margin: 0 0 6px; }
.figure figcaption { font-size: .86rem; color: var(--grey-soft); margin-top: 8px; text-align: center; }
.figure.bordered img { background: var(--ice); }
.shot-frame { max-width: 640px; margin: 0 auto; }
.shot-frame.small { max-width: 460px; }

/* Chips list */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.chips li { background: var(--white); border: 1px solid var(--line); color: var(--ink);
  padding: 7px 13px; border-radius: 999px; font-size: .88rem; font-weight: 550; box-shadow: var(--shadow-sm); }

/* ---------- Referral code component ---------- */
.referral-block {
  background: linear-gradient(150deg, var(--navy) 0%, #1c2c60 100%);
  border-radius: 20px; padding: clamp(24px, 4vw, 40px); color: #eaf0ff;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.referral-block::before {
  content: ""; position: absolute; left: -60px; top: -60px; width: 220px; height: 220px;
  border-radius: 50%; background: radial-gradient(circle, rgba(58,114,230,.35), transparent 70%);
}
.referral-block h2, .referral-block h3 { color: #fff; }
.referral-block p { color: #c1cdf0; }
.referral-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; }
.referral-copy .badge {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(120,165,245,.22); color: #cfe0ff; padding: 5px 11px; border-radius: 999px; margin-bottom: 12px;
}

.code-panel { text-align: center; }
.code-chip {
  display: inline-flex; align-items: center; gap: 12px; cursor: pointer;
  background: #fff; color: var(--navy); border: 2px dashed #9db8ec; border-radius: 14px;
  padding: 16px 22px; font-weight: 800; font-size: 1.5rem; letter-spacing: .12em;
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  transition: border-color .15s ease, background .15s ease; width: 100%; justify-content: center;
}
.code-chip:hover { border-color: var(--blue); background: #f7faff; }
.code-chip .copy-ico {
  font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--blue);
  border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; font-family: var(--font);
}
.code-hint { font-size: .82rem; color: #a9b7e0; margin-top: 12px; }
.copy-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 999px;
  box-shadow: var(--shadow-lg); font-weight: 600; font-size: .95rem;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 200;
}
.copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.copy-toast::before { content: "✓ "; color: var(--accent); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li {
  position: relative; padding: 16px 18px 16px 62px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .95rem;
}
.steps li strong { display: block; margin-bottom: 2px; }
.steps li p { margin: 0; color: var(--grey); font-size: .95rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table.data { width: 100%; border-collapse: collapse; min-width: 520px; background: var(--white); }
table.data th, table.data td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
table.data thead th { background: var(--navy); color: #eaf0ff; font-weight: 600; font-size: .88rem; letter-spacing: .02em; }
table.data tbody tr:nth-child(even) { background: var(--ice); }
table.data tbody tr:last-child td { border-bottom: none; }
table.data td.num { font-variant-numeric: tabular-nums; font-weight: 650; color: var(--navy); }

.note {
  background: var(--ice-2); border: 1px solid var(--line); border-left: 4px solid var(--blue);
  padding: 14px 18px; border-radius: 10px; color: var(--grey); font-size: .93rem; margin: 18px 0;
}
.note strong { color: var(--ink); }

/* ---------- Breadcrumbs ---------- */
.crumbs { padding: 16px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; font-size: .85rem; color: var(--grey-soft); }
.crumbs li::after { content: "/"; margin-left: 6px; color: var(--grey-soft); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--grey); }
.crumbs li[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- Page intro heading block ---------- */
.page-head { padding: 8px 0 8px; }
.page-head h1 { margin-bottom: .3em; }
.page-head .lead { color: var(--grey); font-size: 1.1rem; max-width: 60ch; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); margin-bottom: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 18px 52px 18px 20px; font-size: 1.04rem; font-weight: 600; color: var(--ink);
  position: relative; line-height: 1.4;
}
.faq-q::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--blue); transition: transform .2s ease;
}
.faq-q[aria-expanded="true"]::after { content: "–"; }
.faq-q:hover { background: var(--ice); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-a-inner { padding: 0 20px 18px; color: var(--grey); font-size: .98rem; }
.faq-a-inner p:last-child { margin-bottom: 0; }

/* ---------- Callout / CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, #1d2d63 100%); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c1cdf0; max-width: 60ch; margin: 0 auto 22px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #aeb9d8; padding: 52px 0 26px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 32px; height: 32px; border-radius: 8px; }
.footer-brand span { color: #fff; font-weight: 800; font-size: 1.05rem; }
.footer-brand span b { color: #7aa5f5; font-weight: 800; }
.site-footer p { color: #97a3c6; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col a { color: #b7c2e2; }
.footer-col a:hover { color: #fff; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; }
.footer-badge { border: 1px solid #2c3a6b; }
.age-badge {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid #7aa5f5; color: #fff; font-weight: 800; font-size: .82rem; flex: 0 0 auto;
}
.footer-legal { border-top: 1px solid #26315c; margin-top: 34px; padding-top: 22px; color: #8592b8; font-size: .82rem; }
.footer-legal p { color: #8592b8; margin-bottom: .8em; }
.footer-disclosure { display: flex; gap: 14px; align-items: flex-start; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.muted { color: var(--grey); }
.small { font-size: .88rem; }
.inline-cta { display: inline-flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .feature, .referral-inner { grid-template-columns: 1fr; gap: 24px; }
  .feature.reverse .feature-media { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col.footer-about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Interactive game components — light panels, blue controls
   ========================================================================== */

/* ----- Game badges ----- */
.g-badge {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 999px;
  background: var(--ice-2); color: var(--blue-strong);
}
.g-badge.live { background: #e9fbf4; color: #17886e; }
.g-badge.original { background: #eef0ff; color: #4b4fd0; }
.g-badge.table { background: #fff1e8; color: #c76a2c; }

/* ----- Slot / game tiles ----- */
.tile-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.tile-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.tile {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  text-decoration: none; color: inherit; position: relative;
}
.tile:hover, .tile:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #b9caea; text-decoration: none; }
.tile:focus-visible { outline: 3px solid #7aa5f5; outline-offset: 2px; }
.tile-media {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center;
  overflow: hidden;
}
.tile-media svg { width: 100%; height: 100%; display: block; }
.tile-media .g-badge { position: absolute; top: 8px; left: 8px; z-index: 2; box-shadow: var(--shadow-sm); }
.tile-body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.tile-title { font-weight: 700; font-size: .95rem; color: var(--ink); line-height: 1.25; }
.tile-meta { font-size: .78rem; color: var(--grey-soft); }
.tile-play {
  margin-top: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: .82rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #3a72e6 0%, #244fb3 100%);
  padding: 8px 12px; border-radius: 999px; align-self: flex-start;
}
.tile-play::before { content: "▶"; font-size: .6rem; }
.tile:hover .tile-play { box-shadow: 0 6px 16px rgba(40,86,196,.30); }

/* Featured large tile */
.featured-tile {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: 18px; background: var(--white);
  box-shadow: var(--shadow-md); text-decoration: none; color: inherit;
}
.featured-tile:hover { text-decoration: none; box-shadow: var(--shadow-lg); }
.featured-tile .ft-media { position: relative; min-height: 240px; }
.featured-tile .ft-media svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.featured-tile .ft-body { padding: 26px 28px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.featured-tile .ft-body h3 { font-size: 1.5rem; margin: 0; }
.featured-tile .ft-body p { color: var(--grey); margin: 0; }
@media (max-width: 700px) { .featured-tile { grid-template-columns: 1fr; } .featured-tile .ft-media { min-height: 170px; } }

/* ----- Category cards (compact row) ----- */
.cat-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat-chip {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 16px 10px; border: 1px solid var(--line); border-radius: 13px; background: var(--white);
  box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink);
  transition: transform .14s ease, box-shadow .14s ease;
}
.cat-chip:hover, .cat-chip:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; color: var(--blue-strong); }
.cat-chip .cat-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--ice-2); }
.cat-chip .cat-ico svg { width: 22px; height: 22px; }
.cat-chip span { font-weight: 650; font-size: .86rem; }
@media (max-width: 860px) { .cat-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .cat-row { grid-template-columns: repeat(2, 1fr); } }

/* ----- Carousel ----- */
.carousel { position: relative; }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; gap: 16px; will-change: transform; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.carousel-track .tile { flex: 0 0 auto; width: 230px; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,.96); color: var(--navy); cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow-md); font-size: 1.1rem;
  transition: background .12s ease, transform .12s ease;
}
.carousel-btn:hover { background: var(--ice); }
.carousel-btn:disabled { opacity: .4; cursor: default; }
.carousel-btn.prev { left: -10px; }
.carousel-btn.next { right: -10px; }
.carousel-btn:focus-visible { outline: 3px solid #7aa5f5; outline-offset: 2px; }
@media (max-width: 560px) {
  .carousel-track .tile { width: 60vw; max-width: 240px; }
  .carousel-btn { display: none; }
}

/* ----- Demo game panel (shared shell) ----- */
.demo {
  background: linear-gradient(180deg, #ffffff 0%, var(--ice) 100%);
  border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px,3vw,28px);
  box-shadow: var(--shadow-md);
}
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.demo-head h3 { margin: 0; font-size: 1.15rem; }
.demo-head .demo-tag { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); background: var(--ice-2); padding: 5px 11px; border-radius: 999px; }
.demo-controls { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
.btn-demo {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font-weight: 650; font-size: .92rem; padding: 10px 18px; border-radius: 999px;
  border: 1px solid transparent; background: linear-gradient(135deg,#3a72e6,#244fb3); color: #fff;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-demo:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(40,86,196,.3); }
.btn-demo.secondary { background: var(--white); color: var(--blue-strong); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-demo:focus-visible { outline: 3px solid #7aa5f5; outline-offset: 2px; }
.demo-note { font-size: .78rem; color: var(--grey-soft); margin: 12px 0 0; }
.demo-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: start; }
@media (max-width: 820px) { .demo-layout { grid-template-columns: 1fr; } }

/* Slot demo reels */
.reels { display: flex; gap: 10px; justify-content: center; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: inset 0 2px 6px rgba(16,26,58,.05); }
.reel { position: relative; width: 72px; height: 84px; overflow: hidden; border-radius: 10px; background: linear-gradient(180deg,#f7faff,#eef3fd); border: 1px solid #e0e8f6; }
.reel-strip { display: flex; flex-direction: column; }
.reel-cell { height: 84px; display: grid; place-items: center; font-weight: 800; font-size: 2rem; }
.reel-cell.s-seven { color: #e0483d; }
.reel-cell.s-diamond { color: #2f66d6; }
.reel-cell.s-star { color: #e6a817; }
.reel-cell.s-bell { color: #d68a1f; }
.reel-cell.s-club { color: #2b8a63; }
.reel-cell.s-heart { color: #d24d78; }
.reel-cell.s-bar { color: var(--navy); font-size: 1.15rem; letter-spacing: .04em; }
.reel.win { box-shadow: 0 0 0 2px #7aa5f5, 0 0 14px rgba(122,165,245,.5); }
@media (max-width: 560px) {
  .reels { gap: 7px; padding: 8px; }
  .reel { width: 54px; height: 66px; }
  .reel-cell { height: 66px; font-size: 1.55rem; }
}
@media (max-width: 430px) {
  .reels { gap: 4px; padding: 6px; }
  .reel { width: 42px; height: 54px; }
  .reel-cell { height: 54px; font-size: 1.3rem; }
  .reel-cell.s-bar { font-size: .8rem; }
}

.slot-status { text-align: center; margin-top: 12px; font-weight: 650; color: var(--navy); min-height: 1.4em; }
.slot-status.win { color: #17886e; }

/* Latest Wins feed */
.wins { background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); overflow: hidden; }
.wins h3 { margin: 0; padding: 14px 16px; font-size: 1rem; border-bottom: 1px solid var(--line); background: var(--ice); }
.wins-list { list-style: none; margin: 0; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.win-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 11px; border-radius: 10px; background: var(--ice);
  animation: winIn .4s ease;
}
.win-left { display: flex; align-items: center; gap: 9px; min-width: 0; }
.win-dot { width: 9px; height: 9px; border-radius: 50%; background: #37c2a8; flex: 0 0 auto; }
.win-user { font-weight: 650; font-size: .86rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-game { font-size: .74rem; color: var(--grey-soft); }
.win-amt { font-weight: 800; font-size: .9rem; color: var(--blue-strong); font-variant-numeric: tabular-nums; flex: 0 0 auto; }
@keyframes winIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .win-row { animation: none; } }

/* Roulette demo */
.rl-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.rl-result { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; color: #fff; font-size: 2.2rem; font-weight: 800; box-shadow: var(--shadow-md); transition: transform .3s ease; }
.rl-result.red { background: linear-gradient(135deg,#e0483d,#b5312a); }
.rl-result.black { background: linear-gradient(135deg,#26314f,#141c33); }
.rl-result.green { background: linear-gradient(135deg,#2b8a63,#1c6349); }
.rl-result.spin { animation: rlPulse .5s ease; }
@keyframes rlPulse { 0%{transform:scale(.9)} 50%{transform:scale(1.06)} 100%{transform:scale(1)} }
.rl-label { font-weight: 700; color: var(--navy); }
.rl-history { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.rl-chip { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .82rem; }
.rl-chip.red { background: #d8463b; } .rl-chip.black { background: #26314f; } .rl-chip.green { background: #2b8a63; }

/* Card table demos (baccarat / blackjack) */
.hands { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hand { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 14px; text-align: center; box-shadow: var(--shadow-sm); }
.hand h4 { margin: 0 0 10px; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--grey); }
.hand.winner { border-color: #7aa5f5; box-shadow: 0 0 0 2px #cfe0ff, var(--shadow-sm); }
.pcards { display: flex; gap: 6px; justify-content: center; min-height: 62px; flex-wrap: wrap; }
.pcard {
  width: 42px; height: 58px; border-radius: 7px; background: #fff; border: 1px solid #d7e0f0;
  display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; box-shadow: var(--shadow-sm);
  animation: cardIn .3s ease;
}
.pcard.red { color: #d8463b; } .pcard.black { color: var(--navy); }
@keyframes cardIn { from { opacity: 0; transform: translateY(-8px) rotate(-4deg); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pcard { animation: none; } }
.hand-total { margin-top: 9px; font-weight: 700; color: var(--navy); font-size: .9rem; }
.table-outcome { text-align: center; margin-top: 14px; font-weight: 800; font-size: 1.05rem; color: var(--navy); min-height: 1.3em; }
.table-outcome.pos { color: #17886e; }

/* Originals multiplier demo */
.mult-stage { text-align: center; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.mult-value { font-size: clamp(2.4rem, 8vw, 3.4rem); font-weight: 800; color: var(--blue-strong); font-variant-numeric: tabular-nums; transition: color .2s ease; }
.mult-value.high { color: #17886e; }
.mult-bar { height: 10px; border-radius: 999px; background: var(--ice-2); overflow: hidden; margin: 14px auto 6px; max-width: 320px; }
.mult-fill { height: 100%; width: 0; background: linear-gradient(90deg,#3a72e6,#37c2a8); transition: width .5s ease; }
.mult-history { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.mult-tag { font-size: .78rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--ice); color: var(--navy); }

/* Slot teaser (compact, referral page) */
.teaser { display: flex; align-items: center; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-sm); }
.teaser .reels { padding: 6px; gap: 7px; }
.teaser .reel { width: 46px; height: 56px; }
.teaser .reel-cell { height: 56px; font-size: 1.4rem; }
.teaser-copy { flex: 1; min-width: 0; }
.teaser-copy p { margin: 0 0 4px; font-size: .9rem; color: var(--grey); }
@media (max-width: 520px) { .teaser { flex-direction: column; text-align: center; } }
