/* =========================================================
   Landing casino & poker — mobile first
   ========================================================= */
@font-face { font-family: "Shoulders"; src: url("/fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Shoulders"; src: url("/fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("/fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("/fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("/fonts/instrument-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

@property --live { syntax: "<color>"; inherits: true; initial-value: #b04dff; }

:root,
[data-theme="nuit"] {
  --bg: #140b26; --bg-2: #1f1239; --bg-3: #2b1a4c;
  --text: #f6f0ff; --muted: #ab9dcc; --line: rgba(222, 205, 255, .13);
  --brass: #f2c14e; --brass-ink: #2b1d00; --live: #b04dff;
}
[data-theme="tapis"] {
  --bg: #0b2018; --bg-2: #11301f; --bg-3: #184029;
  --text: #eef6ef; --muted: #9dbca8; --line: rgba(210, 240, 220, .13);
  --brass: #e9c46a; --brass-ink: #2a1f05; --live: #2fbf71;
}
[data-theme="or"] {
  --bg: #15100a; --bg-2: #221a10; --bg-3: #302416;
  --text: #fbf3e3; --muted: #bba98a; --line: rgba(255, 230, 180, .13);
  --brass: #ffcf5a; --brass-ink: #2a1d00; --live: #ffb020;
}
[data-theme="glace"] {
  --bg: #071628; --bg-2: #0d2240; --bg-3: #133055;
  --text: #eaf6ff; --muted: #92b2cd; --line: rgba(200, 230, 255, .13);
  --brass: #52e5ff; --brass-ink: #00222c; --live: #2f8cff;
}

:root {
  --display: "Shoulders", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Instrument", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: max(16px, env(safe-area-inset-left));
  --cw: min(80vw, 380px, calc(86svh * .5625));
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}
/* felt grain, very subtle */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .top, .foot { position: relative; z-index: 1; }
main { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 900; line-height: .92; letter-spacing: .005em; text-wrap: balance; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--brass); color: var(--brass-ink); padding: 10px 14px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top)) var(--gutter) 6px;
  max-width: 1180px; margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 15px; letter-spacing: .01em; }
.chip-mark { width: 28px; height: 28px; color: var(--brass); flex: none; }
.brand-logo { height: 34px; width: auto; max-width: min(200px, 52vw); object-fit: contain; object-position: left center; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.chip-mark .cm-body { fill: currentColor; }
.chip-mark .cm-ring { stroke: var(--bg); }
.chip-mark .cm-hole { fill: var(--bg); }
.age {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--line);
  font: 800 14px/1 var(--display); letter-spacing: .02em; color: var(--muted);
}

/* ---------- Layout ---------- */
.stage { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

.intro { padding: 14px 0 6px; }
.intro h1 { font-size: clamp(2.15rem, 8.6vw + .1rem, 4.75rem); max-width: 14ch; }
.lede { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.45; max-width: 40ch; }

.chips { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: transparent;
  font-weight: 600; font-size: 14px; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip .suit { font-size: 15px; line-height: 1; }
.chip-n { font-size: 12px; opacity: .6; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- The table (deck of offers) ---------- */
.table { position: relative; padding: 22px 0 8px; isolation: isolate; }
.table::before {
  content: "";
  position: absolute; z-index: -1;
  left: 50%; top: 46%;
  width: min(150vw, 900px); aspect-ratio: 1.15;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--live) 46%, transparent), color-mix(in srgb, var(--live) 12%, transparent) 55%, transparent 100%);
  transition: --live .6s ease;
  pointer-events: none;
}

/* Without JavaScript: a simple swipeable row */
.deck {
  display: flex; gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter));
  padding: 14px calc((100vw - var(--cw)) / 2) 22px;
}
.deck::-webkit-scrollbar { display: none; }
.card {
  position: relative; flex: 0 0 var(--cw);
  scroll-snap-align: center;
  border-radius: 22px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.card img {
  width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: 22px;
  background: var(--bg-2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 28px 50px -18px rgba(0, 0, 0, .75);
  pointer-events: none;
}
.card::after { /* offer-coloured halo */
  content: ""; position: absolute; inset: 6% 4% 2%; z-index: -1;
  border-radius: 30px;
  box-shadow: 0 0 70px 4px var(--accent, var(--live));
  opacity: .55;
}
.rank {
  position: absolute; left: -10px; top: -10px;
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background:
    radial-gradient(circle, var(--brass) 0 56%, var(--brass-ink) 57% 60%, transparent 61%),
    repeating-conic-gradient(var(--brass) 0 36deg, #fff7e2 36deg 54deg);
  color: var(--brass-ink);
  font: 900 19px/1 var(--display);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .45);
}
.tag {
  position: absolute; left: 50%; top: -12px; transform: translateX(-50%);
  padding: 4px 11px; border-radius: 999px;
  background: var(--bg); color: var(--accent, var(--brass));
  border: 1.5px solid var(--accent, var(--brass));
  font-weight: 700; font-size: 12px; letter-spacing: .02em; white-space: nowrap;
}

/* With JavaScript: a stacked deck you swipe through */
.js .deck {
  display: block; position: relative; overflow: visible;
  width: var(--cw); height: calc(var(--cw) * 16 / 9 + 26px);
  margin: 0 auto; padding: 0;
  touch-action: pan-y;
}
.js .card {
  position: absolute; left: 0; top: 0; width: 100%;
  transform-origin: 50% 85%;
  transition: transform .5s var(--ease), filter .5s var(--ease), opacity .35s ease;
  will-change: transform;
  touch-action: pan-y;
  cursor: grab;
}
.js .card.is-dragging { transition: none; cursor: grabbing; }
.js .card.is-out { display: none; }
.js .card:not(.is-top)::after,
.js .card:not(.is-top) .tag,
.js .card:not(.is-top) .rank { opacity: 0; }
.js .card::after, .js .card .tag, .js .card .rank { transition: opacity .35s ease; }

.deck-nav {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  margin-top: 8px;
}
.deck-nav[hidden] { display: none; }
.nav {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 70%, transparent);
  cursor: pointer;
}
.nav svg { width: 22px; height: 22px; }
.nav:active { transform: scale(.94); }
.deck-count { font: 800 22px/1 var(--display); font-variant-numeric: tabular-nums; min-width: 56px; text-align: center; letter-spacing: .04em; }
.deck-count span { color: var(--muted); }
.deck-count span:first-of-type { margin: 0 3px; }
.table .deck-cta { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  border: 0; cursor: pointer;
  transition: transform .15s ease, filter .2s;
}
.btn:active { transform: scale(.97); }
.btn-main { background: var(--brass); color: var(--brass-ink); box-shadow: 0 10px 26px -10px color-mix(in srgb, var(--brass) 70%, transparent); }
.btn-main:hover { filter: brightness(1.07); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }

/* ---------- All offers ---------- */
.all { max-width: 1180px; margin: 0 auto; padding: 54px var(--gutter) 10px; }
.all h2 { font-size: clamp(2rem, 7vw, 3rem); margin-bottom: 18px; }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.row[hidden], .row.is-out { display: none; }
.row a {
  display: grid; grid-template-columns: 22px 56px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 12px 12px 12px 10px; border-radius: 18px;
  background: color-mix(in srgb, var(--bg-2) 82%, transparent);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color .2s, background-color .2s;
}
.row a:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.row-pos { font: 900 22px/1 var(--display); color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.row-thumb { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; box-shadow: 0 0 0 2px var(--accent); }
.row-text { display: grid; gap: 2px; min-width: 0; }
.row-name { font-weight: 700; font-size: 16px; line-height: 1.25; }
.row-tag { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); font-size: 11px; font-weight: 700; vertical-align: 2px; }
.row-bonus { color: var(--text); opacity: .86; font-size: 14px; line-height: 1.35; }
.row-cats { display: flex; flex-wrap: wrap; gap: 2px 10px; color: var(--muted); font-size: 12px; }
.row-cats > span { white-space: nowrap; }
.row-cta {
  padding: 9px 14px; border-radius: 999px; font-weight: 700; font-size: 13px;
  border: 1.5px solid var(--brass); color: var(--brass); white-space: nowrap;
}
.row a:hover .row-cta { background: var(--brass); color: var(--brass-ink); }
.row-cta svg { display: none; width: 18px; height: 18px; }
@media (max-width: 559px) {
  .row a { grid-template-columns: 18px 56px minmax(0, 1fr) 40px; gap: 10px; }
  .row-cta { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; background: var(--brass); color: var(--brass-ink); }
  .row-cta-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .row-cta svg { display: block; }
}

.empty { text-align: center; color: var(--muted); padding: 40px 0; width: 100%; }

/* ---------- Footer ---------- */
.foot { max-width: 1180px; margin: 0 auto; padding: 46px var(--gutter) 30px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.foot p { max-width: 70ch; }

/* ---------- Sticky bottom bar (mobile) ---------- */
.dock {
  position: fixed; z-index: 20;
  left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 8px 8px 8px 8px; border-radius: 22px;
  background: color-mix(in srgb, var(--bg-2) 88%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7);
  transform: translateY(0); transition: transform .45s var(--ease), opacity .3s;
}
.dock[hidden] { display: none; }
.dock.is-hidden { transform: translateY(140%); opacity: 0; }
.dock-thumb { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 0 2px var(--accent, var(--brass)); }
.dock-text { display: grid; min-width: 0; line-height: 1.25; }
.dock-name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-bonus { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-cta { min-height: 44px; padding: 0 16px; font-size: 14px; }

/* ---------- Age gate ---------- */
.gate {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center; padding: 20px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.gate[hidden] { display: none; }
.gate-box { max-width: 380px; text-align: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px; padding: 28px 22px; }
.gate-badge { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--brass); color: var(--brass); font: 900 26px/1 var(--display); }
.gate-box h2 { font-size: 30px; margin-top: 16px; }
.gate-box p { color: var(--muted); margin-top: 10px; }
.gate-actions { display: grid; gap: 10px; margin-top: 20px; }

/* ---------- Deal-in (one orchestrated moment on load) ---------- */
.js .deck.is-dealing .card { transition: none; }
@keyframes deal {
  from { transform: translate(-30vw, -70vh) rotate(-28deg) scale(.9); opacity: 0; }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  :root { --cw: min(400px, calc(78svh * .5625)); }
  body { padding-bottom: 0; }
  .brand-logo { height: 40px; max-width: 260px; }
  .stage {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "intro table";
    column-gap: 72px; align-items: center;
    padding-top: 24px;
  }
  .intro { grid-area: intro; padding: 0 0 40px; }
  .table { grid-area: table; width: calc(var(--cw) + 80px); padding-top: 34px; }
  .lede { font-size: 17px; }
  .table .deck-cta:not([hidden]) { display: flex; width: var(--cw); margin: 16px auto 0; min-height: 54px; font-size: 16px; }
  .dock { display: none; }
  .rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
