/* =====================================================================
   BEST CASINO FOR MAHJONG WAYS 2 MALAYSIA 2026 — STYLESHEET
   Table of contents:
   1.  Fonts & CSS Variables
   2.  Reset & Base
   3.  Typography
   4.  Layout Utilities / Containers
   5.  Buttons
   6.  Accessibility helpers (skip link, sr-only, focus)
   7.  Modal base (used by cookie settings)
   8.  Notice Bar
   9.  Header & Navigation
   10. Hero
   11. Trust Strip
   12. Section generic + dividers
   13. Welcome + Quick Guide card
   14. Data tables (generic, specs, comparison, payments, game comparison)
   15. Why Popular cards
   16. Editorial notice
   17. Casino review cards
   18. Comparison table filters
   19. Features (alternating rows + decorative visuals)
   20. How to Choose checklist + safety box
   21. Strategies cards + Bankroll calculator
   22. FAQ accordion
   23. About / Author card
   24. Methodology
   25. Policies accordion
   26. Responsible Gaming section
   27. Conclusion
   28. Footer
   29. Back to top button
   30. Cookie banner + settings modal
   31. Toast notifications
   32. Decorative motifs (coins, tiles, clouds, dragon, particles)
   33. Animations & scroll-reveal
   34. Media queries
   35. Reduced motion
   ===================================================================== */

/* ============================= 1. FONTS & VARIABLES ============================= */
@font-face{
  font-family:'Inter';
  font-style:normal;
  font-weight:100 900;
  font-display:optional;
  src:url('fonts/inter-var.woff2') format('woff2');
}
@font-face{
  font-family:'Cinzel';
  font-style:normal;
  font-weight:400 900;
  font-display:optional;
  src:url('fonts/cinzel-var.woff2') format('woff2');
}
:root{
  /* Palette */
  --emerald-950:#021e1b;
  --emerald-900:#063f38;
  --emerald-800:#075a4e;
  --emerald-700:#087d68;
  --jade-500:#12c995;
  --jade-300:#4de4b1;
  --gold-600:#b87518;
  --gold-500:#d89a25;
  --gold-300:#ffd66b;
  --cream:#fff1c8;
  --white:#ffffff;
  --muted:#b7d6ce;
  --danger:#ffcf7a;

  /* Derived / functional */
  --ink:#04211d;
  --surface-solid:var(--emerald-900);
  --surface-glass:rgba(6,63,56,0.6);
  --surface-glass-light:rgba(255,255,255,0.05);
  --border-gold:rgba(216,154,37,0.55);
  --border-jade:rgba(18,201,149,0.35);
  --shadow-soft:0 18px 40px -18px rgba(0,0,0,0.55);
  --shadow-gold:0 0 0 1px rgba(216,154,37,0.35), 0 12px 30px -10px rgba(184,117,24,0.45);

  /* Type */
  --font-display:'Cinzel', 'Georgia', serif;
  --font-body:'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container-width:1240px;
  --radius-sm:8px;
  --radius-md:14px;
  --radius-lg:22px;
  --radius-pill:999px;
  --header-h:104px;
  --header-h-scrolled:76px;
  --notice-h:40px;

  /* Motion */
  --ease:cubic-bezier(.22,.9,.32,1);
  --speed-fast:180ms;
  --speed-med:320ms;
  --speed-slow:600ms;

  color-scheme: dark;
}

/* ============================= 2. RESET & BASE ============================= */
*, *::before, *::after{ box-sizing:border-box; }
html{
  scroll-behavior:smooth;
  scroll-padding-top:calc(var(--header-h-scrolled) + var(--notice-h) + 12px);
  overflow-x:hidden;
}
body{
  margin:0;
  min-width:320px;
  overflow-x:clip;
  background:
    radial-gradient(ellipse 900px 600px at 15% -10%, rgba(18,201,149,0.16), transparent 60%),
    radial-gradient(ellipse 800px 700px at 90% 10%, rgba(216,154,37,0.10), transparent 55%),
    linear-gradient(180deg, var(--emerald-950) 0%, #03231f 45%, var(--emerald-950) 100%);
  color:var(--muted);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
body.nav-open, body.modal-open{ overflow:hidden; }
img, svg{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; }
ul, ol{ margin:0; padding:0; list-style:none; }
p{ margin:0 0 1em; }
table{ border-collapse:collapse; width:100%; }
input{ font:inherit; }
h1,h2,h3,h4{ font-family:var(--font-display); color:var(--cream); line-height:1.22; margin:0 0 0.5em; font-weight:700; }

/* ============================= 3. TYPOGRAPHY ============================= */
h2{ font-size:clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem); }
h3{ font-size:clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); }
h4{ font-size:1.05rem; color:var(--gold-300); font-family:var(--font-body); font-weight:700; }
.eyebrow{
  display:inline-block;
  font-family:var(--font-body);
  font-weight:700;
  letter-spacing:0.14em;
  text-transform:uppercase;
  font-size:0.78rem;
  color:var(--gold-300);
  margin:0 0 0.6em;
}
.section-lead{ max-width:74ch; font-size:1.05rem; color:var(--muted); }
.hl{
  color:var(--gold-300);
  font-weight:700;
  font-style:normal;
  background:linear-gradient(180deg, transparent 62%, rgba(216,154,37,0.28) 62%);
  padding:0 0.05em;
}
.fine-note{ font-size:0.88rem; color:var(--muted); opacity:0.9; }
.editorial-note{
  font-size:0.9rem;
  color:var(--muted);
  border-left:3px solid var(--gold-600);
  padding-left:0.9em;
  margin-top:1.4em;
  max-width:74ch;
}
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ============================= 4. LAYOUT UTILITIES ============================= */
.container{
  width:100%;
  max-width:var(--container-width);
  margin:0 auto;
  padding:0 24px;
}
.section{ position:relative; padding:88px 0; }
.section-alt{ background:linear-gradient(180deg, rgba(7,90,78,0.28), rgba(7,90,78,0.06)); }
.section-grid{
  display:grid;
  grid-template-columns:1.7fr 1fr;
  gap:48px;
  align-items:start;
}
.section-main h2, .section-main h3{ margin-top:1.1em; }
.section-main h3:first-of-type{ margin-top:0.4em; }
.card-grid{ display:grid; gap:24px; margin-top:36px; }
.card-grid-3{ grid-template-columns:repeat(3, 1fr); }
.card-grid-4{ grid-template-columns:repeat(4, 1fr); }

/* Invisible link wrapper around images */
.affiliate-link{ display:block; cursor:pointer; }
.affiliate-link:hover .section-image,
.affiliate-link:hover .casino-card-logo,
.affiliate-link:hover .feature-visual-img{
  transform:scale(1.015);
}
.section-image, .casino-card-logo, .feature-visual-img{
  transition:transform var(--speed-fast) var(--ease);
}
.casino-card-actions .affiliate-link{ display:block; flex:0 0 auto; height:80px; }
.casino-card-actions .affiliate-link .casino-card-logo{ height:100%; width:auto; max-width:100%; }

/* ============================= 5. BUTTONS ============================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:0.5em;
  min-height:48px; padding:0.85em 1.6em;
  border-radius:var(--radius-pill);
  font-weight:700; font-size:0.98rem;
  transition:transform var(--speed-fast) var(--ease), box-shadow var(--speed-fast) var(--ease), background var(--speed-fast) var(--ease);
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-2px); }
.btn:active{ transform:translateY(0); }
.btn-primary{
  background:linear-gradient(180deg, var(--gold-300), var(--gold-500) 55%, var(--gold-600));
  color:var(--emerald-950);
  box-shadow:var(--shadow-gold);
}
.btn-primary:hover{ box-shadow:0 0 0 1px rgba(216,154,37,0.5), 0 16px 34px -10px rgba(184,117,24,0.6); }
.btn-secondary{
  background:rgba(255,255,255,0.04);
  border:1.5px solid var(--border-gold);
  color:var(--gold-300);
}
.btn-secondary:hover{ background:rgba(216,154,37,0.12); }
.btn-ghost{
  background:transparent; border:1.5px solid rgba(183,214,206,0.4); color:var(--muted);
}
.btn-ghost:hover{ border-color:var(--jade-300); color:var(--jade-300); }
.btn-lg{ padding:1em 2em; font-size:1.05rem; }
.btn-compact{ min-height:40px; padding:0.6em 1.2em; font-size:0.88rem; }
.btn-operator{
  background:linear-gradient(180deg, var(--jade-300), var(--jade-500));
  color:var(--emerald-950);
  box-shadow:0 10px 24px -10px rgba(18,201,149,0.55);
}
.btn-operator:hover{ box-shadow:0 14px 30px -8px rgba(18,201,149,0.7); }

/* ============================= 6. ACCESSIBILITY HELPERS ============================= */
.skip-link{
  position:absolute; top:-60px; left:12px; z-index:1000;
  background:var(--gold-500); color:var(--emerald-950); font-weight:700;
  padding:12px 18px; border-radius:var(--radius-sm); transition:top var(--speed-fast) var(--ease);
}
.skip-link:focus{ top:12px; }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible{
  outline:3px solid var(--jade-300);
  outline-offset:3px;
  border-radius:4px;
}

/* ============================= 7. MODAL BASE (used by cookie settings) ============================= */
.modal-overlay{
  position:fixed; inset:0; z-index:900;
  background:rgba(2,10,9,0.82);
  backdrop-filter:blur(6px);
  display:flex; align-items:center; justify-content:center;
  padding:20px;
}
.modal-overlay[hidden]{ display:none; }
.modal-panel{
  position:relative;
  width:100%; max-width:460px;
  background:linear-gradient(160deg, var(--emerald-800), var(--emerald-900));
  border:1px solid var(--border-gold);
  border-radius:var(--radius-lg);
  padding:36px 30px;
  box-shadow:var(--shadow-soft);
  max-height:88vh; overflow-y:auto;
}
.modal-close{
  position:absolute; top:16px; right:16px;
  width:36px; height:36px; display:flex; align-items:center; justify-content:center;
  border-radius:50%; color:var(--muted); background:rgba(255,255,255,0.06);
}
.modal-close:hover{ color:var(--gold-300); background:rgba(255,255,255,0.12); }

/* ============================= 8. NOTICE BAR ============================= */
.notice-bar{
  background:var(--emerald-950);
  border-bottom:1px solid rgba(216,154,37,0.25);
  padding:8px 16px;
  text-align:center;
  font-size:0.78rem;
  color:var(--muted);
  position:relative; z-index:60;
}
.notice-bar p{ margin:0; }
.notice-link{
  color:var(--gold-300); font-weight:700; text-decoration:underline;
  margin-left:0.5em; text-underline-offset:2px;
}

/* ============================= 9. HEADER & NAVIGATION ============================= */
#site-header{
  position:sticky; top:0; z-index:80;
  background:transparent;
  border-bottom:1px solid transparent;
  transition:background var(--speed-med) var(--ease), border-color var(--speed-med) var(--ease), box-shadow var(--speed-med) var(--ease);
}
#site-header.is-scrolled{
  background:rgba(2,30,27,0.92);
  backdrop-filter:blur(10px);
  border-bottom-color:rgba(216,154,37,0.22);
  box-shadow:0 10px 30px -18px rgba(0,0,0,0.6);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  min-height:var(--header-h);
  transition:min-height var(--speed-med) var(--ease);
}
#site-header.is-scrolled .header-inner{ min-height:var(--header-h-scrolled); }

.logo{ display:flex; align-items:center; }
.logo-img{
  display:block; width:auto; height:56px;
  filter:drop-shadow(0 2px 10px rgba(0,0,0,0.35));
  transition:height var(--speed-med) var(--ease);
}
#site-header.is-scrolled .logo-img{ height:44px; }
.footer-brand .logo-img{ height:46px; }

.primary-nav{ display:flex; align-items:center; gap:28px; }
.primary-nav ul{ display:flex; align-items:center; gap:22px; }
.nav-link{
  font-size:0.92rem; font-weight:600; color:var(--muted);
  padding:6px 2px; position:relative;
  transition:color var(--speed-fast) var(--ease);
}
.nav-link::after{
  content:''; position:absolute; left:0; right:0; bottom:-2px; height:2px;
  background:var(--gold-400, var(--gold-500)); transform:scaleX(0); transform-origin:left;
  transition:transform var(--speed-fast) var(--ease);
}
.nav-link:hover{ color:var(--cream); }
.nav-link.is-active{ color:var(--gold-300); }
.nav-link.is-active::after{ transform:scaleX(1); }
.nav-ctas{ display:flex; align-items:center; gap:10px; margin-left:6px; }
.nav-cta{ white-space:nowrap; }

.nav-toggle{
  display:none; position:relative; width:44px; height:44px;
  align-items:center; justify-content:center; color:var(--cream);
  border-radius:var(--radius-sm);
}
.nav-toggle .icon-close{ display:none; }
.nav-toggle[aria-expanded="true"] .icon-open{ display:none; }
.nav-toggle[aria-expanded="true"] .icon-close{ display:block; }

.nav-scrim{
  position:fixed; inset:0; z-index:70;
  background:rgba(2,10,9,0.6);
}
.nav-scrim[hidden]{ display:none; }

/* ============================= 10. HERO ============================= */
.hero{
  position:relative; overflow:hidden;
  padding:88px 0 64px;
  background:
    radial-gradient(ellipse 1200px 760px at 50% -8%, rgba(18,201,149,0.38), transparent 64%),
    radial-gradient(ellipse 800px 560px at 85% 88%, rgba(216,154,37,0.16), transparent 60%),
    radial-gradient(ellipse 900px 500px at 12% 30%, rgba(18,201,149,0.14), transparent 58%),
    linear-gradient(180deg, var(--emerald-800) 0%, var(--emerald-900) 38%, var(--emerald-950) 82%);
}
.hero-bg{ position:absolute; inset:0; overflow:hidden; pointer-events:none; }
.hero-glow{ position:absolute; border-radius:50%; filter:blur(60px); opacity:0.55; }
.hero-glow-1{ width:520px; height:520px; top:-160px; left:-120px; background:radial-gradient(circle, rgba(18,201,149,0.55), transparent 70%); }
.hero-glow-2{ width:460px; height:460px; bottom:-180px; right:-100px; background:radial-gradient(circle, rgba(216,154,37,0.4), transparent 70%); }

.hero-cloud{ position:absolute; width:220px; color:rgba(255,241,200,0.1); }
.hero-cloud-1{ top:6%; left:4%; width:260px; }
.hero-cloud-2{ top:62%; left:-4%; width:200px; }
.hero-cloud-3{ top:10%; right:4%; width:200px; color:rgba(255,241,200,0.09); }

.particle{
  position:absolute; bottom:-10px; width:4px; height:4px; border-radius:50%;
  background:var(--gold-300); opacity:0; animation:rise 9s linear infinite;
  box-shadow:0 0 8px rgba(255,214,107,0.8);
}
.p1{ left:12%; animation-delay:0s; }
.p2{ left:28%; animation-delay:1.6s; }
.p3{ left:44%; animation-delay:3.2s; }
.p4{ left:60%; animation-delay:0.9s; }
.p5{ left:76%; animation-delay:2.4s; }
.p6{ left:90%; animation-delay:4.1s; }

.hero-inner{
  position:relative; z-index:2;
  display:grid; grid-template-columns:1.1fr 0.9fr; align-items:center; gap:40px;
  max-width:1180px; margin:0 auto; text-align:left;
}
.hero-visual{ display:flex; align-items:center; justify-content:center; }
.hero-visual-img{
  width:100%; max-width:460px; height:auto;
  filter:drop-shadow(0 24px 50px rgba(0,0,0,0.5)) drop-shadow(0 0 60px rgba(216,154,37,0.25));
  animation:float 7s ease-in-out infinite;
}
.hero-title{
  font-family:var(--font-display);
  font-weight:800;
  font-size:clamp(2.1rem, 1.5rem + 3.6vw, 3.9rem);
  line-height:1.08;
  margin:0 0 0.4em;
  letter-spacing:0.01em;
  background:linear-gradient(180deg, var(--jade-300) 0%, var(--jade-500) 45%, var(--emerald-700) 100%);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
  -webkit-text-stroke:1.5px rgba(216,154,37,0.85);
  text-shadow:
    0 1px 0 rgba(255,214,107,0.5),
    0 3px 0 rgba(3,25,22,0.5),
    0 10px 26px rgba(0,0,0,0.55);
}
.hero-subhead{
  font-family:var(--font-body); font-weight:600;
  font-size:clamp(1.05rem, 0.95rem + 0.6vw, 1.35rem);
  color:var(--cream); margin:0 0 0.9em;
}
.hero-text{ max-width:60ch; margin:0 0 1.6em; color:var(--muted); font-size:1.02rem; }
.hero-actions{ display:flex; gap:16px; justify-content:flex-start; flex-wrap:wrap; margin-bottom:14px; }
.hero-disclaimer{ font-size:0.8rem; color:var(--muted); opacity:0.8; margin-bottom:34px; }

.hero-panel{
  display:grid; grid-template-columns:repeat(4, 1fr); gap:0;
  background:rgba(2,30,27,0.55);
  border:1px solid var(--border-gold);
  border-radius:var(--radius-lg);
  backdrop-filter:blur(8px);
  overflow:hidden;
  box-shadow:var(--shadow-soft);
}
.hero-stat{ padding:20px 12px; text-align:center; border-right:1px solid rgba(216,154,37,0.18); }
.hero-stat:last-child{ border-right:0; }
.hero-stat-value{ display:block; font-family:var(--font-display); font-weight:700; font-size:clamp(1.2rem, 1rem + 1vw, 1.7rem); color:var(--gold-300); }
.hero-stat-label{ display:block; font-size:0.72rem; text-transform:uppercase; letter-spacing:0.08em; color:var(--muted); margin-top:4px; }

/* ============================= 11. TRUST STRIP ============================= */
.trust-strip{ background:var(--emerald-950); border-top:1px solid rgba(255,255,255,0.05); border-bottom:1px solid rgba(255,255,255,0.05); padding:22px 0; }
.trust-strip-inner{ display:flex; flex-direction:column; gap:12px; align-items:center; text-align:center; }
.trust-list{ display:flex; flex-wrap:wrap; gap:10px 22px; justify-content:center; font-size:0.85rem; color:var(--muted); }
.trust-list li{ display:flex; align-items:center; gap:8px; }
.trust-list .icon{ width:16px; height:16px; color:var(--jade-300); flex-shrink:0; }
.trust-disclosure{ font-size:0.78rem; color:var(--muted); opacity:0.75; max-width:64ch; margin:0; }

/* ============================= 12. SECTION DIVIDERS ============================= */
.section::before{
  content:''; position:absolute; top:0; left:50%; transform:translateX(-50%);
  width:min(70%, 480px); height:1px;
  background:linear-gradient(90deg, transparent, rgba(216,154,37,0.35), transparent);
}
#hero::before, #trust-strip::before, #welcome::before{ content:none; }

/* ============================= 13. WELCOME + QUICK GUIDE ============================= */
.section-image{
  display:block; width:100%; height:auto;
  margin:28px 0 0;
  border-radius:var(--radius-lg);
  border:1px solid var(--border-gold);
  box-shadow:var(--shadow-soft);
}
.quick-guide{
  background:linear-gradient(160deg, rgba(7,90,78,0.55), rgba(2,30,27,0.75));
  border:1px solid var(--border-gold);
  border-radius:var(--radius-lg);
  padding:28px 24px;
  box-shadow:var(--shadow-soft);
  position:sticky; top:calc(var(--header-h-scrolled) + 24px);
}
.quick-guide h3{ color:var(--gold-300); border-bottom:1px solid rgba(216,154,37,0.25); padding-bottom:12px; margin-bottom:14px; }
.quick-guide-row{ display:flex; justify-content:space-between; gap:12px; padding:8px 0; border-bottom:1px dashed rgba(183,214,206,0.15); font-size:0.88rem; }
.quick-guide-row:last-child{ border-bottom:0; }
.quick-guide-row dt{ color:var(--muted); font-weight:600; }
.quick-guide-row dd{ margin:0; color:var(--cream); font-weight:700; text-align:right; }

/* ============================= 14. DATA TABLES ============================= */
.table-scroll{
  overflow-x:auto; -webkit-overflow-scrolling:touch;
  border-radius:var(--radius-md);
  border:1px solid var(--border-jade);
  margin-top:20px;
}
.data-table{ min-width:640px; background:rgba(2,30,27,0.5); }
.data-table th, .data-table td{
  padding:14px 18px; text-align:left; font-size:0.92rem;
  border-bottom:1px solid rgba(183,214,206,0.12);
  white-space:nowrap;
}
.data-table thead th{
  background:linear-gradient(180deg, var(--emerald-800), var(--emerald-900));
  color:var(--gold-300); font-family:var(--font-display); font-weight:700;
  font-size:0.85rem; letter-spacing:0.03em; text-transform:uppercase;
  position:sticky; top:0;
}
.data-table tbody tr:nth-child(odd){ background:rgba(255,255,255,0.02); }
.data-table tbody tr:hover{ background:rgba(18,201,149,0.08); }
.data-table tbody th{ color:var(--cream); font-weight:700; }
.data-table td{ color:var(--muted); }
.specs-table td, .specs-table th{ white-space:normal; }

.game-guide-cta{ text-align:center; padding:8px 24px 64px; }

/* ============================= 15. WHY POPULAR CARDS ============================= */
.feature-tile{
  background:linear-gradient(160deg, rgba(7,90,78,0.5), rgba(2,30,27,0.7));
  border:1px solid var(--border-jade);
  border-radius:var(--radius-lg);
  padding:26px 22px;
  transition:transform var(--speed-fast) var(--ease), border-color var(--speed-fast) var(--ease), box-shadow var(--speed-fast) var(--ease);
}
.feature-tile:hover{ transform:translateY(-4px); border-color:var(--border-gold); box-shadow:var(--shadow-soft); }
.feature-tile-icon{ width:34px; height:34px; color:var(--gold-300); margin-bottom:14px; filter:drop-shadow(0 0 10px rgba(216,154,37,0.35)); }
.feature-tile h3{ margin-bottom:0.4em; }
.feature-tile p{ font-size:0.92rem; margin-bottom:0.6em; }

/* ============================= 16. EDITORIAL NOTICE ============================= */
.editorial-notice{
  display:flex; align-items:flex-start; gap:14px;
  background:linear-gradient(90deg, rgba(216,154,37,0.14), rgba(216,154,37,0.04));
  border:1px solid var(--border-gold);
  border-left:4px solid var(--gold-500);
  border-radius:var(--radius-md);
  padding:16px 20px; margin:20px 0 30px;
}
.editorial-notice .icon{ width:22px; height:22px; color:var(--gold-300); flex-shrink:0; margin-top:2px; }
.editorial-notice p{ margin:0; font-size:0.92rem; color:var(--cream); }

/* ============================= 17. CASINO REVIEW CARDS ============================= */
.casino-list{ display:flex; flex-direction:column; gap:22px; }
.casino-card{
  background:linear-gradient(160deg, rgba(7,90,78,0.5), rgba(2,30,27,0.78));
  border:1px solid var(--border-jade);
  border-radius:var(--radius-lg);
  padding:28px;
  box-shadow:var(--shadow-soft);
}
.casino-card-head{ display:flex; align-items:center; gap:16px; margin-bottom:14px; }
.rank-badge{
  flex-shrink:0; width:46px; height:46px; display:flex; align-items:center; justify-content:center;
  border-radius:50%; font-family:var(--font-display); font-weight:800; font-size:1.15rem;
  background:linear-gradient(180deg, var(--gold-300), var(--gold-600));
  color:var(--emerald-950);
  box-shadow:0 0 0 3px rgba(216,154,37,0.2);
}
.casino-card-heading h3{ margin:0; }
.trust-tag{ margin:2px 0 0; font-size:0.82rem; color:var(--jade-300); font-weight:600; }
.casino-facts{ display:grid; grid-template-columns:repeat(2, 1fr); gap:8px 24px; margin:14px 0; }
.casino-facts li{ font-size:0.9rem; color:var(--muted); }
.casino-facts strong{ color:var(--cream); }
.review-toggle{
  display:inline-flex; align-items:center; gap:8px; color:var(--gold-300); font-weight:700; font-size:0.9rem;
  padding:6px 0; min-height:44px;
}
.review-toggle .chevron{ width:16px; height:16px; transition:transform var(--speed-fast) var(--ease); }
.review-toggle[aria-expanded="true"] .chevron{ transform:rotate(180deg); }
.review-panel{
  display:grid; grid-template-rows:0fr; opacity:0; transition:grid-template-rows var(--speed-med) var(--ease), opacity var(--speed-med) var(--ease);
}
.review-panel > p{ overflow:hidden; margin:0; }
.review-panel.is-open{ grid-template-rows:1fr; opacity:1; margin-top:8px; }
.review-panel{ display:grid; }
.review-panel > p{ min-height:0; }
.casino-card-actions{
  display:flex; align-items:center; justify-content:space-between; gap:18px;
  margin-top:18px;
}
.casino-card-logo{ display:block; border-radius:var(--radius-md); }
.casino-card-actions .btn-operator{ flex-shrink:0; }

/* ============================= 18. FILTER BAR ============================= */
.filter-bar{ display:flex; flex-wrap:wrap; gap:10px; margin:22px 0 4px; }
.filter-btn{
  padding:9px 18px; min-height:40px; border-radius:var(--radius-pill);
  border:1px solid rgba(183,214,206,0.3); color:var(--muted); font-size:0.85rem; font-weight:600;
  transition:all var(--speed-fast) var(--ease);
}
.filter-btn:hover{ border-color:var(--jade-300); color:var(--jade-300); }
.filter-btn.is-active{
  background:linear-gradient(180deg, var(--jade-300), var(--jade-500));
  border-color:transparent; color:var(--emerald-950);
}
.no-results{ margin-top:18px; color:var(--muted); font-style:italic; }

/* Sticky first column on small screens */
@media (max-width:768px){
  .comparison-table th:first-child, .comparison-table td:first-child{
    position:sticky; left:0; z-index:2;
    background:var(--emerald-900);
    box-shadow:2px 0 6px rgba(0,0,0,0.35);
  }
}

/* ============================= 19. FEATURES SECTION ============================= */
.feature-row{
  display:grid; grid-template-columns:1.2fr 1fr; gap:44px; align-items:center;
  padding:34px 0; border-bottom:1px solid rgba(255,255,255,0.06);
}
.feature-row:last-child{ border-bottom:0; }
.feature-row-reverse{ direction:rtl; }
.feature-row-reverse > *{ direction:ltr; }
.feature-copy h3{ display:flex; align-items:center; gap:10px; }
.feature-copy .icon{ width:24px; height:24px; color:var(--gold-300); }
.feature-visual{ display:flex; align-items:center; }
.feature-visual-img{
  display:block; width:100%; height:auto;
  border-radius:var(--radius-lg);
  border:1px solid var(--border-gold);
  box-shadow:var(--shadow-soft);
}

/* ============================= 20. CHECKLIST + SAFETY BOX ============================= */
.checklist{ counter-reset:step; display:grid; gap:18px; margin-top:30px; }
.checklist li{
  counter-increment:step; position:relative;
  padding:20px 24px 20px 68px;
  background:rgba(255,255,255,0.03); border:1px solid rgba(183,214,206,0.15);
  border-radius:var(--radius-md);
}
.checklist li::before{
  content:counter(step);
  position:absolute; left:20px; top:50%; transform:translateY(-50%);
  width:34px; height:34px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(180deg, var(--gold-300), var(--gold-600));
  color:var(--emerald-950); font-family:var(--font-display); font-weight:800;
}
.checklist h3{ margin-bottom:0.3em; font-size:1.05rem; }
.checklist p{ margin:0; font-size:0.92rem; }
.safety-box{
  display:flex; gap:14px; align-items:flex-start; margin-top:32px;
  background:linear-gradient(90deg, rgba(255,207,122,0.12), rgba(255,207,122,0.03));
  border:1px solid rgba(255,207,122,0.4); border-left:4px solid var(--danger);
  border-radius:var(--radius-md); padding:18px 22px;
}
.safety-box .icon{ width:24px; height:24px; color:var(--danger); flex-shrink:0; margin-top:2px; }
.safety-box p{ margin:0; color:var(--cream); font-size:0.92rem; }

/* ============================= 21. STRATEGIES + CALCULATOR ============================= */
.strategy-card{
  background:rgba(255,255,255,0.03); border:1px solid rgba(183,214,206,0.15);
  border-radius:var(--radius-lg); padding:24px;
}
.strategy-card h3{ color:var(--gold-300); font-size:1.05rem; }
.strategy-card p{ font-size:0.92rem; margin:0; }

.calculator-card{
  margin-top:48px; max-width:640px;
  background:linear-gradient(160deg, rgba(7,90,78,0.55), rgba(2,30,27,0.8));
  border:1px solid var(--border-gold); border-radius:var(--radius-lg);
  padding:30px 28px; box-shadow:var(--shadow-soft);
}
.calculator-form{ display:grid; gap:16px; margin:18px 0; }
.form-field{ display:flex; flex-direction:column; gap:6px; }
.form-field label{ font-size:0.85rem; font-weight:600; color:var(--cream); }
.form-field input{
  min-height:48px; padding:0 16px; border-radius:var(--radius-sm);
  border:1px solid rgba(183,214,206,0.3); background:rgba(2,30,27,0.6); color:var(--white);
}
.form-field input:focus-visible{ border-color:var(--jade-300); }
.calculator-result{
  min-height:1.4em; font-size:1.05rem; font-weight:700; color:var(--jade-300);
}
.calculator-notice{ font-size:0.82rem; color:var(--muted); opacity:0.85; margin:0; }

/* ============================= 22. ACCORDIONS (FAQ + POLICIES) ============================= */
.accordion{ display:flex; flex-direction:column; gap:12px; margin-top:28px; }
.accordion-item{
  border:1px solid rgba(183,214,206,0.18); border-radius:var(--radius-md);
  background:rgba(255,255,255,0.025); overflow:hidden;
}
.accordion-item h3{ margin:0; font-family:var(--font-body); }
.accordion-trigger{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:18px 22px; text-align:left; font-weight:700; font-size:0.98rem; color:var(--cream);
  min-height:56px;
}
.accordion-trigger:hover{ color:var(--gold-300); }
.accordion-trigger .chevron{ width:18px; height:18px; flex-shrink:0; color:var(--gold-300); transition:transform var(--speed-fast) var(--ease); }
.accordion-trigger[aria-expanded="true"] .chevron{ transform:rotate(180deg); }
.accordion-panel{ padding:0 22px; max-height:none; overflow:hidden; }
.accordion-panel p{ font-size:0.94rem; }
.accordion-panel p:last-child{ margin-bottom:0; }
/* Progressive enhancement: only collapse panels once JS confirms it is running */
body.js-enabled .accordion-panel{
  max-height:0; padding-top:0; padding-bottom:0;
  transition:max-height var(--speed-med) var(--ease), padding var(--speed-med) var(--ease);
}
body.js-enabled .accordion-panel.is-open{ max-height:1200px; padding-top:0; padding-bottom:22px; }

/* ============================= 23. ABOUT / AUTHOR CARD ============================= */
.mission-list{ display:grid; gap:10px; margin:12px 0 0; }
.mission-list li{
  padding-left:26px; position:relative; font-size:0.95rem;
}
.mission-list li::before{
  content:''; position:absolute; left:0; top:0.55em; width:8px; height:8px; border-radius:50%;
  background:var(--jade-300);
}
.author-card{
  background:linear-gradient(160deg, rgba(7,90,78,0.55), rgba(2,30,27,0.8));
  border:1px solid var(--border-gold); border-radius:var(--radius-lg);
  padding:30px 26px; text-align:center;
  position:sticky; top:calc(var(--header-h-scrolled) + 24px);
}
.author-avatar{
  width:88px; height:88px; margin:0 auto 16px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(160deg, var(--jade-300), var(--emerald-700));
  color:var(--emerald-950); font-family:var(--font-display); font-weight:800; font-size:1.6rem;
  box-shadow:0 0 0 4px rgba(216,154,37,0.25);
}
.author-role{ color:var(--gold-300); font-weight:700; font-size:0.92rem; margin:0 0 6px; }
.author-focus{ font-size:0.86rem; margin:0 0 16px; }
.author-specialties{ text-align:left; display:grid; gap:10px; }
.author-specialties li{ font-size:0.85rem; padding-left:18px; position:relative; }
.author-specialties li::before{
  content:''; position:absolute; left:0; top:0.5em; width:6px; height:6px; border-radius:50%; background:var(--gold-300);
}

/* ============================= 24. METHODOLOGY ============================= */
.methodology-grid{
  display:grid; grid-template-columns:repeat(5, 1fr); gap:12px; margin:26px 0;
}
.methodology-grid li{
  padding:16px 14px; text-align:center; font-size:0.86rem; font-weight:600; color:var(--cream);
  background:rgba(255,255,255,0.03); border:1px solid rgba(183,214,206,0.15); border-radius:var(--radius-md);
}

/* ============================= 25. POLICIES ============================= */
.policy-accordion .accordion-panel h4{ margin-top:1.1em; }
.policy-accordion .accordion-panel h4:first-of-type{ margin-top:0.4em; }
.policy-updated{ font-size:0.8rem; color:var(--gold-300); font-weight:700; text-transform:uppercase; letter-spacing:0.05em; margin-bottom:1em; }

/* ============================= 26. RESPONSIBLE GAMING ============================= */
.rg-section{
  background:linear-gradient(180deg, rgba(216,154,37,0.08), transparent 40%);
}
.rg-grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:16px; margin:30px 0; }
.rg-point{
  display:flex; gap:10px; align-items:flex-start; padding:16px;
  background:rgba(255,255,255,0.03); border:1px solid rgba(18,201,149,0.25); border-radius:var(--radius-md);
}
.rg-point .icon{ width:20px; height:20px; color:var(--jade-300); flex-shrink:0; margin-top:2px; }
.rg-point p{ margin:0; font-size:0.9rem; color:var(--cream); }
.rg-support{
  margin-top:36px; max-width:70ch; background:rgba(255,255,255,0.03);
  border:1px solid var(--border-gold); border-radius:var(--radius-lg); padding:26px;
}
.support-list{ display:flex; flex-wrap:wrap; gap:10px; margin:14px 0; }
.support-list li{
  padding:8px 16px; background:rgba(216,154,37,0.12); border:1px solid var(--border-gold);
  border-radius:var(--radius-pill); font-size:0.85rem; font-weight:600; color:var(--gold-300);
}

/* ============================= 27. CONCLUSION ============================= */
.conclusion-list{ display:grid; gap:10px; margin:20px 0; max-width:64ch; }
.conclusion-list li{ padding-left:26px; position:relative; font-size:0.96rem; }
.conclusion-list li::before{
  content:''; position:absolute; left:0; top:0.55em; width:9px; height:9px; border-radius:2px;
  background:var(--gold-500); transform:rotate(45deg);
}

/* ============================= 28. FOOTER ============================= */
#site-footer{ background:var(--emerald-950); border-top:1px solid rgba(216,154,37,0.2); padding:64px 0 0; }
.footer-grid{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1.2fr; gap:36px; padding-bottom:48px; }
.footer-brand p{ font-size:0.88rem; margin:14px 0 6px; max-width:38ch; }
.footer-author{ color:var(--gold-300); font-weight:600; font-size:0.86rem; }
.footer-nav h3, .footer-notices h3{ font-family:var(--font-body); color:var(--cream); font-size:0.85rem; text-transform:uppercase; letter-spacing:0.06em; margin-bottom:14px; }
.footer-nav ul{ display:grid; gap:10px; }
.footer-nav a{ font-size:0.9rem; color:var(--muted); }
.footer-nav a:hover{ color:var(--gold-300); }
.footer-notices p{ font-size:0.8rem; margin-bottom:10px; opacity:0.85; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,0.08); padding:20px 0; text-align:center; font-size:0.82rem; opacity:0.7; }

/* ============================= 29. BACK TO TOP ============================= */
.back-to-top{
  position:fixed; right:20px; bottom:24px; z-index:60;
  width:48px; height:48px; border-radius:50%;
  background:linear-gradient(180deg, var(--gold-300), var(--gold-600));
  color:var(--emerald-950);
  display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow-gold);
  opacity:0; visibility:hidden; transform:translateY(12px);
  transition:opacity var(--speed-fast) var(--ease), transform var(--speed-fast) var(--ease), visibility var(--speed-fast);
}
.back-to-top.is-visible{ opacity:1; visibility:visible; transform:translateY(0); }
.back-to-top:hover{ transform:translateY(-3px); }

/* ============================= 30. COOKIE BANNER & MODAL ============================= */
.cookie-banner{
  position:fixed; left:0; right:0; bottom:0; z-index:200;
  background:rgba(2,30,27,0.97); border-top:1px solid var(--border-gold);
  backdrop-filter:blur(10px);
  padding:18px 20px;
}
.cookie-banner[hidden]{ display:none; }
.cookie-banner-inner{
  max-width:var(--container-width); margin:0 auto;
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
}
.cookie-banner-text p{ margin:0; font-size:0.88rem; color:var(--muted); max-width:70ch; }
.cookie-banner-text a{ color:var(--gold-300); text-decoration:underline; }
.cookie-banner-actions{ display:flex; gap:10px; flex-wrap:wrap; }

.cookie-category{ padding:16px 0; border-bottom:1px solid rgba(183,214,206,0.15); }
.cookie-category:last-of-type{ border-bottom:0; }
.cookie-category-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:6px; }
.cookie-category-head label{ font-weight:700; color:var(--cream); }
.cookie-category-head input[type="checkbox"]{ width:20px; height:20px; accent-color:var(--jade-500); }
.cookie-category p{ margin:0; font-size:0.85rem; }
.cookie-settings-actions{ display:flex; gap:12px; justify-content:flex-end; margin-top:22px; flex-wrap:wrap; }

/* ============================= 31. TOAST ============================= */
.toast-region{
  position:fixed; left:50%; bottom:24px; transform:translateX(-50%); z-index:300;
  display:flex; flex-direction:column; gap:10px; align-items:center;
  pointer-events:none; width:min(92vw, 420px);
}
.toast{
  pointer-events:none;
  background:linear-gradient(160deg, var(--emerald-800), var(--emerald-900));
  border:1px solid var(--border-gold); border-radius:var(--radius-md);
  padding:14px 20px; color:var(--cream); font-size:0.88rem; text-align:center;
  box-shadow:var(--shadow-soft);
  animation:toast-in var(--speed-med) var(--ease);
}
.toast.is-leaving{ animation:toast-out var(--speed-med) var(--ease) forwards; }

/* ============================= 32. DECORATIVE MOTIFS ============================= */
.icon{ width:20px; height:20px; }

/* ============================= 33. ANIMATIONS & SCROLL REVEAL ============================= */
@keyframes float{
  0%, 100%{ transform:translateY(0) rotate(0deg); }
  50%{ transform:translateY(-14px) rotate(3deg); }
}
@keyframes rise{
  0%{ transform:translateY(0); opacity:0; }
  10%{ opacity:0.9; }
  90%{ opacity:0.4; }
  100%{ transform:translateY(-520px); opacity:0; }
}
@keyframes toast-in{
  from{ opacity:0; transform:translateY(12px); }
  to{ opacity:1; transform:translateY(0); }
}
@keyframes toast-out{
  from{ opacity:1; transform:translateY(0); }
  to{ opacity:0; transform:translateY(12px); }
}

.reveal{ opacity:1; transform:none; }
body.js-enabled .reveal{
  opacity:0; transform:translateY(18px);
  transition:opacity var(--speed-slow) var(--ease), transform var(--speed-slow) var(--ease);
}
body.js-enabled .reveal.is-visible{ opacity:1; transform:none; }

/* ============================= 34. MEDIA QUERIES ============================= */
@media (max-width:1280px){
  .footer-grid{ grid-template-columns:1.4fr 1fr 1fr; }
  .footer-notices{ grid-column:1 / -1; }
}

@media (max-width:1180px){
  .primary-nav{
    position:fixed; top:0; right:0; height:100dvh; width:min(84vw, 360px);
    background:linear-gradient(180deg, var(--emerald-900), var(--emerald-950));
    border-left:1px solid var(--border-gold);
    flex-direction:column; align-items:stretch; justify-content:flex-start;
    padding:calc(var(--notice-h) + 90px) 28px 40px;
    transform:translateX(100%);
    transition:transform var(--speed-med) var(--ease);
    overflow-y:auto;
    gap:0;
  }
  .primary-nav.is-open{ transform:translateX(0); }
  .primary-nav ul{ flex-direction:column; align-items:stretch; gap:4px; }
  .nav-link{ display:block; padding:14px 4px; font-size:1.05rem; border-bottom:1px solid rgba(255,255,255,0.06); }
  .nav-link::after{ display:none; }
  .nav-ctas{ flex-direction:column; align-items:stretch; gap:10px; margin:20px 0 0; }
  .nav-cta{ width:100%; }
  .nav-toggle{ display:flex; }
}

@media (max-width:1024px){
  .hero-inner{ grid-template-columns:1fr; text-align:center; gap:20px; }
  .hero-visual{ order:-1; }
  .hero-visual-img{ max-width:340px; margin:0 auto; }
  .hero-text{ margin-left:auto; margin-right:auto; }
  .hero-actions{ justify-content:center; }
  .section-grid{ grid-template-columns:1fr; }
  .quick-guide, .author-card{ position:static; }
  .card-grid-3{ grid-template-columns:repeat(2, 1fr); }
  .card-grid-4{ grid-template-columns:repeat(2, 1fr); }
  .rg-grid{ grid-template-columns:repeat(2, 1fr); }
  .methodology-grid{ grid-template-columns:repeat(3, 1fr); }
  .feature-row{ grid-template-columns:1fr; }
  .feature-row-reverse{ direction:ltr; }
  .feature-visual{ order:-1; }
}

@media (max-width:768px){
  :root{ --header-h:84px; --header-h-scrolled:68px; }
  .section{ padding:60px 0; }
  .hero{ padding:64px 0 44px; }
  .hero-panel{ grid-template-columns:repeat(2, 1fr); }
  .hero-stat{ border-bottom:1px solid rgba(216,154,37,0.18); }
  .hero-stat:nth-child(2n){ border-right:0; }
  .card-grid-3, .card-grid-4{ grid-template-columns:1fr; }
  .casino-facts{ grid-template-columns:1fr; }
  .casino-card-actions{ flex-direction:column; align-items:stretch; }
  .casino-card-actions .affiliate-link{ height:auto; }
  .casino-card-logo{ height:auto; width:100%; max-width:none; }
  .casino-card-actions .btn-operator{ width:100%; }
  .footer-grid{ grid-template-columns:1fr; gap:32px; }
  .rg-grid{ grid-template-columns:1fr; }
  .methodology-grid{ grid-template-columns:repeat(2, 1fr); }
  .hero-visual-img{ max-width:280px; }

  /* Game specs table -> stacked cards on mobile */
  .specs-table thead{ display:none; }
  .specs-table, .specs-table tbody, .specs-table tr, .specs-table th, .specs-table td{ display:block; width:100%; }
  .specs-table tr{ padding:14px 16px; border-bottom:1px solid rgba(183,214,206,0.15); }
  .specs-table th, .specs-table td{ border:0; padding:4px 0; white-space:normal; }
  .specs-table th[data-label]::before, .specs-table td[data-label]::before{
    content:attr(data-label); display:block; font-size:0.72rem; text-transform:uppercase;
    letter-spacing:0.06em; color:var(--gold-300); font-weight:700; margin-bottom:2px;
  }
}

@media (max-width:430px){
  .container{ padding:0 18px; }
  .hero-panel{ grid-template-columns:1fr 1fr; }
  .hero-actions{ flex-direction:column; align-items:stretch; }
  .hero-actions .btn{ width:100%; }
  .filter-bar{ gap:8px; }
  .cookie-banner-inner{ flex-direction:column; align-items:stretch; }
  .cookie-banner-actions{ justify-content:stretch; }
  .cookie-banner-actions .btn{ flex:1; }
  .conclusion-section .hero-actions .btn{ width:100%; }
  .methodology-grid{ grid-template-columns:1fr 1fr; }
  .hero-visual-img{ max-width:230px; }
}

@media (max-width:375px){
  .hero-title{ letter-spacing:0; }
  .rank-badge{ width:38px; height:38px; font-size:1rem; }
}

/* ============================= 35. REDUCED MOTION ============================= */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration:0.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.001ms !important;
    scroll-behavior:auto !important;
  }
  body.js-enabled .reveal{ opacity:1; transform:none; }
  .hero-visual-img, .particle{ animation:none !important; }
}
