/* exclusivecasinodeals.com - main stylesheet (hand-written, not generated) */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Noto Sans Thai"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("fonts/noto-sans-thai-thai-wght-normal.woff2") format("woff2");
  unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC;
}

/* ---------- Theme tokens ----------
   Light is the default. Dark is used when
     a) the visitor's phone/computer asks for it (prefers-color-scheme) and they have not
        picked light by hand, or
     b) they picked dark with the header button (data-theme="dark" on <html>, set before
        first paint by the inline script in <head>, toggled by assets/main.js).
   The dark values therefore appear twice below (media query + attribute).
   KEEP THE TWO DARK BLOCKS IDENTICAL when you change a colour. */
:root {
  color-scheme: light;
  --bg: #f3f6fb;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f7fb;
  --pop-bg: #ffffff;
  --pill-bg: rgba(255, 255, 255, 0.86);
  --header-bg: rgba(255, 255, 255, 0.8);
  --footer-bg: #ffffff;
  --ink: #0b1324;
  --ink-2: #36415a;
  --muted: #66728b;
  --line: #e0e6ef;
  --line-2: #edf1f6;
  --line-strong: #cbd5e1;
  --sep: #c3ccd8;
  --brand: #10b981;
  --brand-text: #047857;
  --brand-soft: #e8faf2;
  --brand-soft-2: #f6fdfa;
  --brand-line: #9be5c8;
  --brand-ring: rgba(16, 185, 129, 0.16);
  --accent: #0ea5e9;
  --grad-text: linear-gradient(100deg, #059669 0%, #0d9488 50%, #0284c7 100%);
  --cta-1: #0d9c6b;
  --cta-2: #06784f;
  --cta-shadow: rgba(6, 120, 79, 0.6);
  --gold-soft: #fff4dc;
  --gold-text: #8f5400;
  --coral: #f2583a;
  --coral-ring: #ffe1da;
  --tile-1: #1c2b58;
  --tile-2: #0f1a38;
  --tile-line: rgba(255, 255, 255, 0);
  --tile-light-1: #f7f9fc;
  --tile-light-2: #e6ecf4;
  --tile-light-line: #dbe3ec;
  --badge-bg: #0b1324;
  --badge-ink: #ffffff;
  --badge-ring: #ffffff;
  --count-bg: #0b1324;
  --count-ink: #ffffff;
  --pay-bg: #ffffff;
  --art-bg: #ffffff;
  --art-filter: none;
  --art-blend: multiply;
  --hero-a: rgba(16, 185, 129, 0.2);
  --hero-b: rgba(56, 189, 248, 0.2);
  --hero-c: rgba(251, 191, 36, 0.15);
  --dot: rgba(11, 19, 36, 0.075);
  --glow: rgba(16, 185, 129, 0);
  --shadow-sm: 0 1px 2px rgba(11, 19, 36, 0.05);
  --shadow: 0 1px 2px rgba(11, 19, 36, 0.04), 0 14px 30px -12px rgba(11, 19, 36, 0.13);
  --shadow-lg: 0 2px 4px rgba(11, 19, 36, 0.05), 0 26px 48px -18px rgba(11, 19, 36, 0.22);
  --d-sun: none;
  --d-moon: block;
  --radius: 20px;
  --font: "Plus Jakarta Sans", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* dark, block 1 of 2: the system asks for dark and the visitor has not picked light */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #070b15;
    --bg-2: #0b1222;
    --surface: #0f1729;
    --surface-2: rgba(148, 163, 184, 0.07);
    --pop-bg: #121b30;
    --pill-bg: rgba(18, 27, 48, 0.78);
    --header-bg: rgba(7, 11, 21, 0.78);
    --footer-bg: #090e1b;
    --ink: #eef2fa;
    --ink-2: #c3cbdd;
    --muted: #8b97b0;
    --line: rgba(148, 163, 184, 0.18);
    --line-2: rgba(148, 163, 184, 0.1);
    --line-strong: rgba(148, 163, 184, 0.36);
    --sep: #55617a;
    --brand: #34d399;
    --brand-text: #5ee2b0;
    --brand-soft: rgba(52, 211, 153, 0.11);
    --brand-soft-2: rgba(52, 211, 153, 0.04);
    --brand-line: rgba(52, 211, 153, 0.36);
    --brand-ring: rgba(52, 211, 153, 0.16);
    --accent: #38bdf8;
    --grad-text: linear-gradient(100deg, #6ee7b7 0%, #5eead4 50%, #7dd3fc 100%);
    --cta-1: #10a674;
    --cta-2: #078158;
    --cta-shadow: rgba(16, 185, 129, 0.5);
    --gold-soft: rgba(245, 165, 36, 0.15);
    --gold-text: #fbbf4a;
    --coral-ring: rgba(242, 88, 58, 0.24);
    --tile-1: #18264a;
    --tile-2: #0a1126;
    --tile-line: rgba(148, 163, 184, 0.16);
    --tile-light-1: #f1f4f9;
    --tile-light-2: #dfe6f0;
    --tile-light-line: rgba(255, 255, 255, 0);
    --badge-bg: #e9eef8;
    --badge-ink: #0b1324;
    --badge-ring: #0f1729;
    --count-bg: rgba(148, 163, 184, 0.16);
    --count-ink: #e9eef8;
    --pay-bg: #eef2f8;
    --art-bg: #0a1126;
    --art-filter: invert(1) hue-rotate(180deg);
    --art-blend: screen;
    --hero-a: rgba(16, 185, 129, 0.22);
    --hero-b: rgba(56, 189, 248, 0.17);
    --hero-c: rgba(139, 92, 246, 0.16);
    --dot: rgba(226, 232, 240, 0.075);
    --glow: rgba(16, 185, 129, 0.55);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 34px -14px rgba(0, 0, 0, 0.65);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.45), 0 28px 52px -18px rgba(0, 0, 0, 0.8);
    --d-sun: block;
    --d-moon: none;
  }
}
/* dark, block 2 of 2: picked by hand with the header button (same values as block 1) */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070b15;
  --bg-2: #0b1222;
  --surface: #0f1729;
  --surface-2: rgba(148, 163, 184, 0.07);
  --pop-bg: #121b30;
  --pill-bg: rgba(18, 27, 48, 0.78);
  --header-bg: rgba(7, 11, 21, 0.78);
  --footer-bg: #090e1b;
  --ink: #eef2fa;
  --ink-2: #c3cbdd;
  --muted: #8b97b0;
  --line: rgba(148, 163, 184, 0.18);
  --line-2: rgba(148, 163, 184, 0.1);
  --line-strong: rgba(148, 163, 184, 0.36);
  --sep: #55617a;
  --brand: #34d399;
  --brand-text: #5ee2b0;
  --brand-soft: rgba(52, 211, 153, 0.11);
  --brand-soft-2: rgba(52, 211, 153, 0.04);
  --brand-line: rgba(52, 211, 153, 0.36);
  --brand-ring: rgba(52, 211, 153, 0.16);
  --accent: #38bdf8;
  --grad-text: linear-gradient(100deg, #6ee7b7 0%, #5eead4 50%, #7dd3fc 100%);
  --cta-1: #10a674;
  --cta-2: #078158;
  --cta-shadow: rgba(16, 185, 129, 0.5);
  --gold-soft: rgba(245, 165, 36, 0.15);
  --gold-text: #fbbf4a;
  --coral-ring: rgba(242, 88, 58, 0.24);
  --tile-1: #18264a;
  --tile-2: #0a1126;
  --tile-line: rgba(148, 163, 184, 0.16);
  --tile-light-1: #f1f4f9;
  --tile-light-2: #dfe6f0;
  --tile-light-line: rgba(255, 255, 255, 0);
  --badge-bg: #e9eef8;
  --badge-ink: #0b1324;
  --badge-ring: #0f1729;
  --count-bg: rgba(148, 163, 184, 0.16);
  --count-ink: #e9eef8;
  --pay-bg: #eef2f8;
  --art-bg: #0a1126;
  --art-filter: invert(1) hue-rotate(180deg);
  --art-blend: screen;
  --hero-a: rgba(16, 185, 129, 0.22);
  --hero-b: rgba(56, 189, 248, 0.17);
  --hero-c: rgba(139, 92, 246, 0.16);
  --dot: rgba(226, 232, 240, 0.075);
  --glow: rgba(16, 185, 129, 0.55);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 34px -14px rgba(0, 0, 0, 0.65);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.45), 0 28px 52px -18px rgba(0, 0, 0, 0.8);
  --d-sun: block;
  --d-moon: none;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand-text); }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--brand-ring); }
:focus-visible { outline: 3px solid rgba(16, 185, 129, 0.55); outline-offset: 2px; border-radius: 6px; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:lang(th) body, body:lang(th) { line-height: 1.75; }
/* soft cross-fade while the theme button switches (class set for a moment by main.js) */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, fill 0.3s ease !important;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 66px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-width: 0;
  color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.06rem; letter-spacing: -0.02em;
}
.brand img { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 6px 10px rgba(16, 185, 129, 0.28)); }
.brand-text { white-space: nowrap; }
.brand-text span { color: var(--brand-text); }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }

/* light / dark button (shown only when JS runs, it cannot work without it) */
.theme-toggle {
  display: none; place-items: center; flex: none; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: var(--pill-bg); color: var(--ink-2);
  box-shadow: var(--shadow-sm); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s, box-shadow 0.15s, color 0.15s, transform 0.15s;
}
.js .theme-toggle { display: inline-grid; }
.theme-toggle:hover { border-color: var(--brand); color: var(--brand-text); box-shadow: 0 0 0 4px var(--brand-ring); }
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: var(--d-sun); }
.theme-toggle .moon { display: var(--d-moon); }

.mkt-switch { position: relative; flex: none; }
.mkt-switch summary {
  list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 7px 12px 7px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--pill-bg);
  font-weight: 700; font-size: 0.9rem; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s; user-select: none;
}
.mkt-switch summary::-webkit-details-marker { display: none; }
.mkt-switch summary::marker { content: ""; }
.mkt-switch summary:hover, .mkt-switch[open] summary { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.mkt-switch summary .flag { width: 24px; height: 24px; border-radius: 50%; }
.mkt-switch summary .globe { width: 20px; height: 20px; margin-left: 4px; color: var(--brand-text); }
.mkt-switch summary .chev { width: 14px; height: 14px; color: var(--muted); transition: transform 0.2s; }
.mkt-switch[open] summary .chev { transform: rotate(180deg); }
.mkt-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(340px, calc(100vw - 32px));
  background: var(--pop-bg); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 12px;
  animation: pop 0.16s ease both;
}
.mkt-menu-title { display: block; padding: 4px 8px 8px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.mkt-menu ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mkt-menu a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 11px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.9rem; line-height: 1.2;
}
.mkt-menu a .flag { width: 22px; height: 22px; border-radius: 6px; flex: none; }
.mkt-menu a small { font-weight: 700; font-size: 0.68rem; color: var(--muted); letter-spacing: 0.04em; }
.mkt-menu a:hover { background: var(--line-2); }
.mkt-menu a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-text); }
.mkt-menu .mkt-all { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line-2); border-radius: 0 0 11px 11px; justify-content: center; color: var(--ink-2); font-size: 0.86rem; }
.mkt-menu .mkt-all svg { width: 16px; height: 16px; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 24px 0 14px; }
/* colour wash */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(640px 330px at 6% -14%, var(--hero-a), transparent 70%),
    radial-gradient(560px 310px at 94% -8%, var(--hero-b), transparent 70%),
    radial-gradient(520px 260px at 58% 120%, var(--hero-c), transparent 70%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}
/* fine dot grid that fades out towards the list */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px); background-size: 22px 22px; background-position: 50% 0;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.6) 45%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.6) 45%, transparent 92%);
}
.hero-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 7px;
  background: var(--pill-bg); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 0.84rem; font-weight: 700; color: var(--ink-2);
}
.eyebrow .flag { width: 24px; height: 24px; border-radius: 50%; }
.eyebrow .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--sep); }
.eyebrow .upd { font-weight: 600; color: var(--muted); }
.eyebrow .age-dot { display: none; }
.lang-toggle { display: inline-flex; padding: 3px; background: var(--pill-bg); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); }
.lang-toggle a { padding: 4px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 800; color: var(--muted); text-decoration: none; }
.lang-toggle a.active { background: var(--badge-bg); color: var(--badge-ink); }
.hero h1 {
  margin: 12px 0 8px;
  font-size: clamp(1.75rem, 1.1rem + 2.9vw, 2.9rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.035em;
  text-wrap: balance;
}
/* market name: gradient ink */
.hero h1 .accent {
  color: var(--brand-text);
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: 0 0.04em 0.08em; margin: 0 -0.04em;
}
.hero h1 .nw { white-space: nowrap; }
.hero .lead { max-width: 92ch; font-size: 1.02rem; line-height: 1.65; color: var(--ink-2); }
/* "read more" toggle: only used on phones (see the 640px block), plain paragraph elsewhere */
.lead-toggle, .lead-l2, .lead-less { display: none; }
.hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; }
.hero-chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px;
  background: var(--pill-bg); border: 1px solid var(--line); font-size: 0.84rem; font-weight: 700; color: var(--ink-2);
}
.hero-chips li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.hero-chips li.age::before { background: var(--coral); box-shadow: 0 0 0 3px var(--coral-ring); }
:lang(th) .hero h1 { letter-spacing: 0; line-height: 1.28; }

/* ---------- Deals list ---------- */
.deals { padding: 8px 0 64px; }
.deals-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.list-heading { font-size: clamp(1.18rem, 1rem + 0.8vw, 1.5rem); line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
:lang(th) .list-heading { letter-spacing: 0; line-height: 1.45; }
.deals-count {
  flex: none; padding: 5px 12px; border-radius: 999px; background: var(--count-bg); color: var(--count-ink);
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.01em; white-space: nowrap;
}
.casino-list { display: flex; flex-direction: column; gap: 18px; }

.casino-card {
  position: relative; display: grid; align-items: center; gap: 22px;
  grid-template-columns: 188px minmax(0, 1.25fr) minmax(0, 1fr) 214px;
  grid-template-areas: "thumb info bonus cta";
  padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.casino-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
/* number one: gradient outline + soft ring */
.casino-card:first-child {
  border: 1.5px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%) border-box;
  box-shadow: 0 0 0 4px var(--brand-ring), 0 20px 46px -22px var(--glow), var(--shadow);
}
.casino-card:first-child:hover { box-shadow: 0 0 0 4px var(--brand-ring), 0 20px 46px -22px var(--glow), var(--shadow-lg); }

.rank-badge {
  position: absolute; top: -11px; left: -11px; z-index: 2;
  display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 12px;
  background: var(--badge-bg); color: var(--badge-ink); font-size: 0.95rem; font-weight: 800; line-height: 1;
  box-shadow: 0 8px 16px -6px rgba(11, 19, 36, 0.5); border: 2px solid var(--badge-ring);
}
.casino-card:first-child .rank-badge { background: linear-gradient(160deg, #ffd166, #f5a524); color: #3d2600; box-shadow: 0 8px 16px -6px rgba(245, 165, 36, 0.7); }
.top-pick-badge {
  position: absolute; top: -11px; left: 32px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 11px; border-radius: 999px; white-space: nowrap;
  background: linear-gradient(160deg, #ffd166, #f5a524); color: #3d2600; border: 2px solid var(--badge-ring);
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.07em; line-height: 1; text-transform: uppercase;
  box-shadow: 0 8px 16px -6px rgba(245, 165, 36, 0.7);
}
.top-pick-badge::before { content: "\2605"; font-size: 0.72rem; }

.casino-thumb {
  grid-area: thumb; position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; padding: 14px; border-radius: 14px;
  background: radial-gradient(130% 130% at 18% 0%, var(--tile-1) 0%, var(--tile-2) 62%);
  box-shadow: inset 0 0 0 1px var(--tile-line);
}
.casino-thumb img {
  display: block; margin: auto; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px;
  transition: transform 0.35s ease;
}
.casino-card:hover .casino-thumb img { transform: scale(1.04); }
/* logos drawn in dark ink: flip them so they read on the dark tile */
.casino-thumb img[src*="winolot-logo"] { filter: invert(1) hue-rotate(180deg); }
.casino-thumb img[src*="vipluck-casino-logo"] { filter: brightness(0) invert(1); }
/* German list: the same light tile behind every logo in both themes (two of them are drawn
   in dark ink and disappear on a dark tile, so the whole list stays light instead of mixing) */
.market-de .casino-thumb { background: linear-gradient(145deg, var(--tile-light-1) 0%, var(--tile-light-2) 100%); box-shadow: inset 0 0 0 1px var(--tile-light-line); }
.casino-thumb .new-flag {
  position: absolute; top: 8px; right: 8px; z-index: 3; padding: 3px 8px; border-radius: 999px;
  background: var(--coral); color: #fff; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.07em; line-height: 1.3; text-transform: uppercase;
}

.casino-info { grid-area: info; min-width: 0; }
.casino-info h3 { margin: 0 0 7px; font-size: 1.22rem; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; scroll-margin-top: 90px; }
:lang(th) .casino-info h3 { letter-spacing: 0; line-height: 1.4; }
.rating {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
  background: var(--gold-soft); color: var(--gold-text); font-size: 0.8rem; font-weight: 800; line-height: 1.5;
}
.rating-row { display: flex; align-items: center; gap: 10px; }
.rating-bar { flex: 1; max-width: 130px; height: 6px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.rating-bar span { display: block; width: var(--val, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f5a524, #ffd166); }
.casino-features { list-style: none; margin: 11px 0 0; padding: 0; display: grid; gap: 6px; font-size: 0.92rem; line-height: 1.42; color: var(--ink-2); }
.casino-features li { position: relative; padding-left: 25px; }
.casino-features li::before { content: ""; position: absolute; left: 0; top: 0.16em; width: 17px; height: 17px; border-radius: 50%; background: var(--brand-soft); }
.casino-features li::after {
  content: ""; position: absolute; left: 0; top: 0.16em; width: 17px; height: 17px; background: var(--brand-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.4' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.4' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* bonus: coupon look */
.casino-bonus {
  grid-area: bonus; display: flex; flex-direction: column; justify-content: center; gap: 5px; min-height: 96px;
  padding: 14px 16px; text-align: center; border-radius: 14px;
  background: linear-gradient(180deg, var(--brand-soft), var(--brand-soft-2)); border: 1px dashed var(--brand-line);
}
.bonus-label { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-text); }
.bonus-amount { font-size: 1.07rem; line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.bonus-terms { margin-top: 2px; font-size: 0.74rem; line-height: 1.35; font-weight: 600; color: var(--muted); }
.bonus-terms .sep { margin: 0 0.4em; color: var(--sep); }
:lang(th) .bonus-amount, :lang(th) .bonus-label { letter-spacing: 0; }

.casino-cta { grid-area: cta; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 18px; border: 0; border-radius: 13px;
  font: inherit; font-size: 0.98rem; font-weight: 800; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn-block { width: 100%; }
.btn-primary, .casino-cta .btn-secondary {
  color: #fff; background: linear-gradient(180deg, var(--cta-1) 0%, var(--cta-2) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 12px 22px -10px var(--cta-shadow);
}
/* light sweep across the button on hover */
.btn-primary::before, .casino-cta .btn-secondary::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent); transform: skewX(-18deg);
  transition: left 0.55s ease;
}
.btn-primary:hover::before, .casino-cta .btn-secondary:hover::before { left: 120%; }
.btn-primary::after, .casino-cta .btn-secondary::after {
  content: ""; flex: none; width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9.5M8.5 3.5 13 8l-4.5 4.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.15s ease;
}
.btn-primary:hover, .casino-cta .btn-secondary:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 16px 26px -10px var(--cta-shadow); }
.btn-primary:hover::after, .casino-cta .btn-secondary:hover::after { transform: translateX(3px); }
.btn-primary:active, .casino-cta .btn-secondary:active { transform: translateY(0); }
.payment-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.payment-icons img { width: 31px; height: 22px; padding: 3px 4px; object-fit: contain; background: var(--pay-bg); border: 1px solid var(--line); border-radius: 6px; }

/* entrance animation (CSS only, content is never hidden without it) */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal { animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.reveal:nth-child(2) { animation-delay: 0.06s; }
.reveal:nth-child(3) { animation-delay: 0.12s; }
.reveal:nth-child(4) { animation-delay: 0.18s; }
.reveal:nth-child(n + 5) { animation-delay: 0.24s; }

/* SE style feature cards */
.featured-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feat-card {
  position: relative; display: flex; flex-direction: column; align-items: center; padding: 20px 22px 22px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.feat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.feat-card.is-hot {
  border: 1.5px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%) border-box;
  box-shadow: 0 0 0 4px var(--brand-ring), 0 20px 46px -22px var(--glow), var(--shadow);
}
.feat-flame { position: absolute; top: 16px; right: 18px; font-size: 1.35rem; line-height: 1; }
.feat-thumb { flex: none; width: 108px; height: 108px; margin: 0 auto 12px; overflow: hidden; border-radius: 24px; background: var(--art-bg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: grid; place-items: center; }
/* the artwork has a wide white margin baked in: zoom so the drawing fills the tile.
   It is black line art on white, so the dark theme inverts it instead of showing a white box. */
.feat-thumb img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.34); filter: var(--art-filter); mix-blend-mode: var(--art-blend); }
.feat-card h3 { margin: 0 0 12px; font-size: 1.14rem; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.feat-list { order: 3; list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; font-size: 0.93rem; line-height: 1.4; color: var(--ink-2); text-align: left; }
.feat-list li { display: flex; align-items: center; gap: 10px; }
.feat-list .ico { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--brand-soft); font-size: 0.86rem; }
/* button right under the title so it is on the first screen; bullets follow */
.feat-card .btn { order: 2; align-self: stretch; }

.terms-note { max-width: 86ch; margin-top: 22px; font-size: 0.82rem; line-height: 1.6; color: var(--muted); }

/* ---------- Home (country chooser) ---------- */
.home-hero { padding: 46px 0 34px; }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); gap: 36px; align-items: center; }
.eyebrow .eyebrow-ico { width: 20px; height: 20px; margin-left: 4px; color: var(--brand-text); }
.home-hero .eyebrow .age-dot {
  display: inline-grid; place-items: center; height: 20px; padding: 0 7px; border-radius: 999px;
  border: 1.5px solid var(--coral); color: var(--coral); font-size: 0.64rem; font-weight: 800; line-height: 1;
}
.home-hero h1 { margin: 16px 0 8px; font-size: clamp(2.2rem, 1.1rem + 4.4vw, 4.1rem); line-height: 1.01; letter-spacing: -0.045em; }
.home-tagline { margin-bottom: 12px; font-size: clamp(1.12rem, 0.95rem + 0.9vw, 1.5rem); line-height: 1.25; font-weight: 800; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.home-hero .lead { max-width: 56ch; font-size: 1.05rem; }
.home-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.home-cta .btn { padding: 15px 22px; }
.home-cta .btn .flag { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55); }
.btn-ghost { color: var(--ink); background: var(--pill-bg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-text); box-shadow: 0 0 0 4px var(--brand-ring); }
.btn-light { color: #0b1324; background: #ffffff; box-shadow: 0 14px 26px -12px rgba(0, 0, 0, 0.55); }
.btn-light:hover { transform: translateY(-1px); filter: brightness(0.97); }
.jump { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 24px; }
.jump-label { margin-right: 3px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.jump a {
  display: block; width: 34px; height: 34px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line-strong); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.jump a:hover { transform: translateY(-2px) scale(1.1); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand); }
.jump img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); }
.jump a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.jump a.is-suggested { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand); }

/* small logo tile used for "top pick" teasers */
.logo-tile {
  flex: none; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; overflow: hidden;
  width: 88px; height: 50px; padding: 6px 8px; border-radius: 11px;
  background: radial-gradient(130% 130% at 18% 0%, var(--tile-1) 0%, var(--tile-2) 62%); box-shadow: inset 0 0 0 1px var(--tile-line);
}
.logo-tile img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.logo-tile img[src*="winolot-logo"] { filter: invert(1) hue-rotate(180deg); }
.logo-tile img[src*="vipluck-casino-logo"] { filter: brightness(0) invert(1); }
.logo-tile.is-light { background: linear-gradient(145deg, var(--tile-light-1) 0%, var(--tile-light-2) 100%); box-shadow: inset 0 0 0 1px var(--tile-light-line); }
.logo-tile.is-art { padding: 0; background: var(--art-bg); box-shadow: inset 0 0 0 1px var(--line); }
.logo-tile.is-art img { width: 100%; height: 100%; transform: scale(1.5); filter: var(--art-filter); mix-blend-mode: var(--art-blend); }

/* hero visual: three real top picks, cascading */
.stack { position: relative; height: 392px; }
.stack::before {
  content: ""; position: absolute; inset: 6% 2% 4% 6%; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, var(--hero-a), transparent 72%), radial-gradient(closest-side at 70% 60%, var(--hero-b), transparent 70%);
  filter: blur(18px);
}
.stack-card {
  --r: 0deg; position: absolute; z-index: 1; display: grid; gap: 11px; width: min(300px, 66%); padding: 14px;
  color: var(--ink); text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg);
  transform: rotate(var(--r)); animation: floaty 7s ease-in-out infinite; transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.stack-card:hover { z-index: 5; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring), var(--shadow-lg); animation-play-state: paused; }
.stack-1 { --r: -3deg; left: 0; top: 6px; }
.stack-2 { --r: 2.5deg; right: 0; top: 132px; z-index: 2; animation-delay: -2.3s; }
.stack-3 { --r: -1.5deg; left: 7%; top: 262px; z-index: 3; animation-delay: -4.6s; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-7px) rotate(var(--r)); } }
.stack-head { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; font-weight: 800; letter-spacing: -0.01em; }
.stack-head .flag { width: 22px; height: 22px; border-radius: 50%; }
.stack-tag { margin-left: auto; padding: 3px 9px; border-radius: 999px; background: linear-gradient(160deg, #ffd166, #f5a524); color: #3d2600; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.stack-body { display: flex; align-items: center; gap: 12px; }
.stack-body .logo-tile { width: 96px; height: 56px; }
.stack-text { min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.3; }
.stack-text strong { font-size: 0.98rem; font-weight: 800; letter-spacing: -0.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stack-text span { font-size: 0.8rem; font-weight: 600; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* numbers bar */
.home-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 4px; padding: 18px 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 2px 12px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line-2); }
.stat-num {
  font-size: clamp(1.45rem, 1rem + 1.7vw, 2.15rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.035em;
  color: var(--brand-text); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 0.82rem; font-weight: 600; color: var(--muted); }

.home-section { padding-top: 62px; scroll-margin-top: 20px; }
.section-head { max-width: 62ch; margin-bottom: 24px; }
.kicker { display: inline-block; margin-bottom: 8px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-text); }
.section-head h2 { font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.1rem); line-height: 1.12; font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
.section-head p { margin-top: 8px; font-size: 1rem; line-height: 1.6; color: var(--ink-2); }

/* country cards with the market's top pick */
.mgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mcard {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.mcard:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring), var(--shadow); }
.mcard-top { display: flex; align-items: center; gap: 12px; }
.mcard-top .flag { flex: none; width: 46px; height: 46px; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.mcard-id { min-width: 0; }
.mcard h3 { font-size: 1.1rem; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.mcard-link { color: inherit; text-decoration: none; }
.mcard-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.mcard-link:focus-visible { outline: none; }
.mcard:has(.mcard-link:focus-visible) { outline: 3px solid rgba(16, 185, 129, 0.55); outline-offset: 2px; }
.mcard-lang { margin-top: 2px; font-size: 0.82rem; color: var(--muted); }
.mcard-lang a { position: relative; z-index: 1; color: var(--ink-2); font-weight: 700; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.mcard-lang a:hover { color: var(--brand-text); text-decoration-color: var(--brand); }
.mcard-count { flex: none; margin-left: auto; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); font-size: 0.74rem; font-weight: 800; white-space: nowrap; }
.mcard-pick { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: var(--surface-2); }
.mcard-pick-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.mcard-pick-label { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-text); }
.mcard-pick-text strong { font-size: 0.95rem; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcard-pick-text strong:last-child { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
.mcard-pick-bonus { font-size: 0.8rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcard-go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 0.88rem; font-weight: 800; color: var(--brand-text); }
.mcard-go svg { width: 14px; height: 14px; transition: transform 0.18s ease; }
.mcard:hover .mcard-go svg { transform: translateX(4px); }
/* set by main.js when it recognises the visitor's country or browser language */
.mcard.is-suggested {
  border: 1.5px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%) border-box;
  box-shadow: 0 0 0 4px var(--brand-ring), 0 20px 46px -22px var(--glow), var(--shadow);
}
.mcard-tag {
  position: absolute; top: -11px; left: 18px; z-index: 2; padding: 4px 11px; border-radius: 999px;
  background: linear-gradient(180deg, var(--cta-1), var(--cta-2)); color: #fff; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
  box-shadow: 0 8px 16px -8px var(--cta-shadow);
}
.mnote {
  display: flex; flex-direction: column; justify-content: center; padding: 18px 20px;
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius);
}
.mnote .feature-ico { margin-bottom: 12px; }
.mnote h3 { margin-bottom: 5px; font-size: 1.02rem; line-height: 1.25; font-weight: 800; letter-spacing: -0.015em; }
.mnote p { font-size: 0.9rem; line-height: 1.55; color: var(--ink-2); }

/* how it works */
.home-how {
  margin-top: 62px; padding: 54px 0 58px;
  background: var(--surface); box-shadow: 0 0 0 100vmax var(--surface); clip-path: inset(0 -100vmax);
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.step { position: relative; }
.step-num {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 15px;
  background: linear-gradient(135deg, var(--cta-1) 0%, var(--accent) 130%); color: #fff; font-size: 1.12rem; font-weight: 800;
  box-shadow: 0 0 0 6px var(--brand-soft), 0 12px 22px -10px var(--cta-shadow);
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 23px; left: 66px; right: -12px; height: 0; border-top: 2px dashed var(--line-strong); pointer-events: none;
}
.step h3, .feature h3 { margin-bottom: 6px; font-size: 1.08rem; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; }
.step p, .feature p { font-size: 0.94rem; line-height: 1.6; color: var(--ink-2); }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.feature-ico { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 13px; background: var(--brand-soft); color: var(--brand-text); }
.feature-ico svg { width: 22px; height: 22px; }

/* FAQ */
.home-faq { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.5fr); gap: 20px 48px; align-items: start; }
.home-faq .section-head { margin: 0; position: sticky; top: 92px; }
.faq { display: grid; gap: 10px; }
.faq details { padding: 0 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.faq details[open] { border-color: var(--brand-line); box-shadow: var(--shadow-sm); }
.faq summary { position: relative; list-style: none; padding: 16px 34px 16px 0; font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 14px; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--brand-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); opacity: 0; }
.faq p { padding: 0 0 18px; font-size: 0.95rem; line-height: 1.65; color: var(--ink-2); }

/* closing call to action */
.home-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 28px; margin-top: 62px; padding: 34px 36px; border-radius: 28px;
  color: #fff; border: 1px solid var(--tile-line);
  background:
    radial-gradient(520px 260px at 0% 0%, rgba(16, 185, 129, 0.42), transparent 70%),
    radial-gradient(460px 260px at 100% 100%, rgba(56, 189, 248, 0.3), transparent 70%),
    linear-gradient(135deg, #0f1a38 0%, #0b2233 100%);
  box-shadow: var(--shadow-lg);
}
.home-band h2 { font-size: clamp(1.35rem, 1.05rem + 1.4vw, 2rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; }
.home-band p { margin-top: 6px; color: rgba(255, 255, 255, 0.8); }
.home-band .btn { padding: 15px 24px; }
.page-global .terms-note { margin-top: 30px; }
.page-global main { padding-bottom: 56px; }

/* ---------- 404 ---------- */
.notfound { padding: 90px 0 110px; text-align: center; }
.notfound h1 { font-size: clamp(2rem, 6vw, 3.2rem); letter-spacing: -0.03em; margin-bottom: 12px; }
.notfound p { color: var(--ink-2); margin-bottom: 26px; }
.notfound .btn { display: inline-flex; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 8px; padding: 42px 0 28px; background: var(--footer-bg); border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 44px; }
.footer-brand p { max-width: 50ch; margin-top: 14px; font-size: 0.9rem; line-height: 1.65; color: var(--muted); }
.footer-markets h2 { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.footer-markets ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; }
.footer-markets a { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-2); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.footer-markets a:hover { color: var(--brand-text); }
.footer-markets a .flag { width: 20px; height: 20px; border-radius: 6px; flex: none; }
.footer-markets a small { font-weight: 700; font-size: 0.68rem; color: var(--muted); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 30px; padding-top: 20px;
  border-top: 1px solid var(--line-2); font-size: 0.84rem; color: var(--muted);
}
.age-badge {
  flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--coral); color: var(--coral); font-size: 0.7rem; font-weight: 800; letter-spacing: -0.02em;
}
.footer-bottom .copy { margin-left: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .home-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .stack { display: none; }
  .home-hero .lead { max-width: 62ch; }
  .mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .casino-card {
    grid-template-columns: 200px minmax(0, 1fr);
    grid-template-areas: "thumb info" "bonus cta";
    gap: 18px 22px;
  }
  .casino-bonus { min-height: 0; height: 100%; }
  .casino-cta { align-self: center; }
}
@media (min-width: 861px) {
  /* three cards side by side: reserve two title lines so the buttons line up */
  .feat-card h3 { display: grid; align-items: center; min-height: 2.5em; }
}
@media (max-width: 860px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .step { min-height: 48px; padding-left: 66px; }
  .step-num { position: absolute; left: 0; top: 0; margin: 0; }
  .step:not(:last-child)::after { top: 58px; bottom: -22px; left: 23px; right: auto; width: 0; height: auto; border-top: 0; border-left: 2px dashed var(--line-strong); }
  .home-faq { grid-template-columns: minmax(0, 1fr); }
  .home-faq .section-head { position: static; }
  .featured-cards { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .header-inner { height: 56px; gap: 8px; }
  .brand { font-size: 0.98rem; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .header-actions { gap: 6px; }
  .theme-toggle { width: 38px; height: 38px; }

  /* compact hero so the first offer and its button are on the first screen */
  .hero { padding: 14px 0 10px; }
  .hero-top { gap: 8px; }
  .eyebrow { gap: 7px; padding: 4px 10px 4px 5px; font-size: 0.78rem; white-space: nowrap; }
  .eyebrow .flag { width: 20px; height: 20px; }
  .eyebrow .age-dot {
    display: inline-grid; place-items: center; height: 19px; padding: 0 6px; border-radius: 999px;
    border: 1.5px solid var(--coral); color: var(--coral); font-size: 0.62rem; font-weight: 800; line-height: 1;
  }
  .hero-top:has(.lang-toggle) .eyebrow .sep, .hero-top:has(.lang-toggle) .eyebrow .upd { display: none; }
  .lang-toggle a { padding: 3px 11px; font-size: 0.76rem; }
  .hero h1 { margin: 10px 0 6px; font-size: clamp(1.55rem, 7.3vw, 1.9rem); line-height: 1.1; }
  .hero-chips { display: none; }

  /* intro: two lines with "read more" at the right end of line two (checkbox, no JS).
     Line one is the paragraph itself. Line two is a copy of the same text (data-text) laid out
     at the same width, shown through a window that ends at the label and fades out there,
     so the text always runs right up to "read more" with no blank hole in between. */
  .lead-wrap { --lh: 1.55em; container-type: inline-size; font-size: 0.95rem; line-height: 1.55; color: var(--ink-2); }
  :lang(th) .lead-wrap { --lh: 1.8em; line-height: 1.8; }
  .lead-wrap .lead { max-width: none; font-size: inherit; line-height: inherit; max-height: var(--lh); overflow: hidden; }
  .lead-toggle { display: block; position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
  .lead-l2 { display: flex; align-items: flex-start; height: var(--lh); }
  .l2-win {
    flex: 1 1 auto; min-width: 0; height: var(--lh); overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2.6em), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 2.6em), transparent);
  }
  .l2-text { display: block; width: calc(100vw - 32px); width: 100cqw; margin-top: calc(var(--lh) * -1); }
  .l2-text::before { content: attr(data-text); }
  .lead-more { display: block; flex: none; padding-left: 0.25em; color: var(--brand-text); font-weight: 800; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .lead-less { color: var(--brand-text); font-weight: 800; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .lead-toggle:checked ~ .lead { max-height: none; }
  .lead-toggle:checked ~ .lead .lead-less { display: inline; }
  .lead-toggle:checked ~ .lead-l2 { display: none; }
  .lead-toggle:focus-visible ~ .lead-l2 .lead-more, .lead-toggle:focus-visible ~ .lead .lead-less { outline: 3px solid rgba(16, 185, 129, 0.55); outline-offset: 2px; border-radius: 4px; }
  :lang(th) .hero h1 { line-height: 1.3; }

  .deals { padding: 6px 0 48px; }
  .deals-head { margin-bottom: 16px; }
  .list-heading { font-size: 1.1rem; }
  .deals-count { padding: 4px 10px; font-size: 0.72rem; }
  .casino-list { gap: 18px; }

  /* card: logo + name + rating, then bonus, then the button; feature bullets go last */
  .casino-card {
    grid-template-columns: minmax(0, 0.84fr) minmax(0, 1fr);
    grid-template-areas: "thumb name" "thumb rate" "bonus bonus" "cta cta" "feat feat";
    gap: 0 12px; padding: 12px; align-items: start; border-radius: 18px;
  }
  .casino-info { display: contents; }
  .casino-info h3 { grid-area: name; align-self: end; margin: 0 0 5px; font-size: 1.1rem; }
  .casino-info > .rating { grid-area: rate; align-self: start; justify-self: start; }
  .casino-info > .rating-row { grid-area: rate; align-self: start; }
  .casino-features { grid-area: feat; margin-top: 12px; }
  .casino-thumb { aspect-ratio: 2 / 1; padding: 6px 8px; border-radius: 12px; align-self: center; }
  .casino-thumb img { border-radius: 6px; }
  .casino-thumb .new-flag { top: 4px; right: 4px; padding: 2px 6px; font-size: 0.52rem; }
  .rank-badge { top: -10px; left: -8px; min-width: 30px; height: 30px; font-size: 0.86rem; border-radius: 10px; }
  .top-pick-badge { top: -10px; left: 28px; height: 22px; }
  .casino-bonus { height: auto; min-height: 0; margin-top: 12px; padding: 10px 12px; gap: 3px; }
  .casino-cta { margin-top: 10px; align-self: auto; }
  .btn { padding: 13px 16px; }

  /* SE feature cards: artwork, title, button, then the bullets */
  .featured-cards { gap: 16px; }
  .feat-card { padding: 16px 16px 18px; border-radius: 18px; }
  .feat-thumb { width: 92px; height: 92px; margin-bottom: 10px; border-radius: 22px; }
  .feat-list { margin-top: 16px; }
  .feat-flame { top: 12px; right: 14px; }

  /* homepage */
  .home-hero { padding: 20px 0 18px; }
  .home-hero h1 { margin: 12px 0 6px; font-size: clamp(2rem, 10.5vw, 2.6rem); }
  .home-tagline { margin-bottom: 8px; }
  .home-hero .lead { font-size: 0.97rem; line-height: 1.55; }
  .home-cta { margin-top: 16px; }
  .home-cta .btn { flex: 1 1 100%; padding: 15px 16px; }
  .home-cta .btn-ghost { padding: 12px 16px; }
  /* one-tap country chips in a swipeable row that runs off the right edge */
  .jump {
    flex-wrap: nowrap; gap: 8px; margin: 14px -16px 0; padding: 4px 16px 6px; overflow-x: auto; overscroll-behavior-x: contain;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .jump::-webkit-scrollbar { display: none; }
  .jump-label { display: none; }
  .jump a, .jump a:hover {
    flex: none; display: inline-flex; align-items: center; gap: 7px; width: auto; height: 40px; padding: 0 13px 0 6px; overflow: visible;
    border: 1px solid var(--line); border-radius: 999px; background: var(--pill-bg); box-shadow: var(--shadow-sm); transform: none;
    font-size: 0.86rem; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap;
  }
  .jump a.is-suggested { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
  .jump img { flex: none; width: 26px; height: 26px; border-radius: 50%; transform: none; }
  .jump a span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 0; padding: 16px 6px; border-radius: 18px; }
  .stat:nth-child(3) { border-left: 0; }
  .home-section { padding-top: 44px; }
  .section-head { margin-bottom: 18px; }
  .mgrid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .mcard { gap: 10px; padding: 12px; border-radius: 18px; }
  .mcard:hover { transform: none; }
  .mcard-top { gap: 11px; }
  .mcard-top .flag { width: 40px; height: 40px; border-radius: 12px; }
  .mcard-top::after {
    content: ""; flex: none; width: 16px; height: 16px; margin-left: -4px; background: var(--muted);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3.5 10.5 8 6 12.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3.5 10.5 8 6 12.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .mcard-pick { padding: 8px; border-radius: 12px; }
  .mcard-pick .logo-tile { width: 76px; height: 44px; }
  .mcard-go { display: none; }
  .mcard.is-suggested { margin-top: 8px; padding-top: 20px; }
  .mnote { padding: 16px; }
  .home-how { margin-top: 44px; padding: 40px 0 42px; }
  .features { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .feature { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 14px; padding: 16px; }
  .feature-ico { grid-row: span 2; margin: 0; }
  .home-band { margin-top: 44px; padding: 24px 20px; border-radius: 22px; }
  .home-band .btn { width: 100%; }

  .footer-markets ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom .copy { margin-left: 0; width: 100%; }
}
@media (max-width: 480px) {
  .mkt-switch summary .label { display: none; }
  .mkt-switch summary { padding-right: 9px; gap: 6px; }
}
@media (max-width: 380px) {
  .eyebrow .sep, .eyebrow .upd { display: none; }
}
@media (max-width: 340px) {
  .brand { gap: 6px; }
  .brand img { width: 28px; height: 28px; }
  .brand-text { font-size: 0.86rem; }
  .theme-toggle { width: 34px; height: 34px; }
  .mkt-switch summary { padding: 5px 7px 5px 6px; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .mkt-menu { animation: none; }
  .casino-card, .feat-card, .mcard, .btn, .btn::before, .casino-thumb img, .theme-toggle { transition: none; }
  .stack-card { animation: none; }
  html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: none !important; }
}
