/* VoltaBet — mobile-first casino UI. Premium dark casino theme with amber and ember accents. */
:root {
  --bg: #0d0e10;
  --bg-raised: #131519;
  --surface: #181a1f;
  --surface-2: #20232a;
  --surface-3: #292d35;
  --line: #343943;
  --line-soft: #25282f;

  --text: #ffffff;
  --muted: #b9bec8;
  --dim: #858b97;

  --yellow: #ffc83d;
  --yellow-hover: #ffd865;
  --orange: #ff6a2a;
  --orange-deep: #c43b0b;   /* orange fills behind small white text, for AA contrast */
  --red: #ff4b45;
  --green: #34d77a;
  --err: #ff6c63;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-full: 999px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .5);

  --container: 1220px;
  --gutter: 16px;
  --header-h: 60px;
  --nav-h: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --ff: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (min-width: 768px) { :root { --gutter: 24px; } }

/* ---------- base ---------- */
* { box-sizing: border-box; }

/* class rules like .field { display: grid } would otherwise override the hidden attribute */
[hidden] { display: none !important; }

/* anchor jumps land below the sticky header */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0; min-height: 100vh;
  font-family: var(--ff); font-size: 15px; line-height: 1.5;
  background:
    radial-gradient(circle at 18% -10%, rgba(255, 200, 61, .08), transparent 28%),
    radial-gradient(circle at 92% 25%, rgba(255, 106, 42, .06), transparent 25%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* leave room for the fixed bottom nav */
@media (max-width: 1023px) { body { padding-bottom: calc(var(--nav-h) + var(--safe-bottom)); } }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.15; letter-spacing: -.01em; font-weight: 800; }
h1 { font-size: clamp(1.5rem, 1.15rem + 1.8vw, 2.3rem); }
h2 { font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1rem; color: var(--muted); }

.ic {
  width: 1.25em; height: 1.25em; flex: none; vertical-align: middle;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.ic .f { fill: currentColor; stroke: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.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;
}
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.stack { display: grid; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.eyebrow {
  display: inline-block; margin-bottom: 8px;
  font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow);
}
.tone-yellow { color: var(--yellow); }
.tone-orange { color: var(--orange); }
.tone-red { color: var(--red); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 9px 18px; border-radius: var(--r-full); border: 1px solid transparent;
  background: var(--surface-2); color: var(--text);
  font-weight: 800; font-size: .9rem; letter-spacing: .01em; white-space: nowrap; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.btn:active { transform: scale(.98); }
.btn .ic { width: 18px; height: 18px; }
.btn-primary { background: var(--yellow); color: #121212; }
.btn-primary:hover { background: var(--yellow-hover); }
.btn-accent { background: #1f1410; border-color: var(--orange); color: #fff; }
.btn-accent:hover { background: rgba(255, 69, 0, .18); }
.btn-ghost { background: var(--surface-2); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-success { background: var(--green); color: #06210f; }
.btn-sm { min-height: 34px; padding: 6px 14px; font-size: .84rem; }
.btn-lg { min-height: 48px; padding: 12px 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.link-btn { padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  background: rgba(13, 14, 16, .9); backdrop-filter: blur(18px) saturate(120%);
  border-bottom: 1px solid rgba(52, 57, 67, .82);
  box-shadow: 0 1px 0 rgba(255, 200, 61, .03);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 16px; }
/* logo: bolt-V emblem + VOLTABET wordmark, both SVG images */
.brand { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.brand-mark { display: block; width: 32px; height: 32px; filter: drop-shadow(0 4px 12px rgba(255, 200, 61, .3)); }
.brand-word { display: block; width: auto; height: 18px; }
.top-nav { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.balance-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 12px;
  border-radius: var(--r-full); background: linear-gradient(135deg, #252861, #1c1f27); border: 1px solid rgba(255, 200, 61, .26);
  font-weight: 800; font-size: .85rem; color: var(--yellow);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.balance-chip .ic { width: 16px; height: 16px; color: var(--muted); }

/* ---------- category bar ---------- */
.cat-bar { border-bottom: 1px solid var(--line-soft); background: rgba(13, 14, 16, .62); backdrop-filter: blur(12px); }
.cat-bar .container { padding-inline: 0; }
.cat-scroll {
  position: relative; display: flex; gap: 2px; padding-inline: calc(var(--gutter) - 10px);
  overflow-x: auto; scrollbar-width: none;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-tab {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 13px 10px 10px;
  border-bottom: 3px solid transparent; color: var(--muted);
  font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  transition: color .15s ease, border-color .15s ease;
}
.cat-tab .ic { width: 18px; height: 18px; color: var(--dim); }
.cat-tab:hover { color: var(--text); }
.cat-tab[aria-current="page"] { color: var(--yellow); border-bottom-color: var(--yellow); }
.cat-tab[aria-current="page"] .ic { color: var(--yellow); }
/* signature icon colours stay put, even on the active tab */
.cat-home .ic, .cat-home[aria-current="page"] .ic, .cat-mine .ic, .cat-mine[aria-current="page"] .ic { color: var(--red); }
.cat-hot .ic, .cat-hot[aria-current="page"] .ic { color: var(--orange); }

/* ---------- home: promo carousel ---------- */
.hero-carousel {
  position: relative; margin-top: 12px; border-radius: var(--r-lg); overflow: hidden; background: var(--surface);
  border: 1px solid rgba(255, 200, 61, .16); box-shadow: 0 16px 45px rgba(0, 0, 0, .26);
}
.hero-carousel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), inset 0 -60px 80px rgba(0,0,0,.18);
}
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
/* height follows the copy on phones (a fixed ratio clipped it); the bottom padding keeps the CTA clear of the dots */
.slide {
  position: relative; flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; align-items: center; min-height: 168px; padding: 16px 20px 40px; overflow: hidden;
}
.slide-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: 66%; }
.slide-kicker { font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.slide-title { font-size: clamp(1.35rem, .9rem + 3.4vw, 2.9rem); font-weight: 900; line-height: .98; text-transform: uppercase; }
.slide-title span { color: var(--yellow); }
.slide-sub { font-size: .8rem; line-height: 1.35; color: #e8e8e8; max-width: 34ch; }
.slide-copy .btn { margin-top: 4px; }
.slide-art {
  position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
  font-size: clamp(4rem, 19vw, 9.5rem); line-height: 1; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .5));
}
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,12,.82), rgba(10,10,12,.3) 65%, transparent); }
.slide-orange {
  background:
    radial-gradient(70% 120% at 85% 50%, rgba(255, 69, 0, .85), transparent 65%),
    radial-gradient(40% 60% at 70% 5%, rgba(255, 204, 0, .45), transparent 70%),
    linear-gradient(110deg, #1d0d05 35%, #3a1203);
}
.slide-gold {
  background:
    radial-gradient(70% 120% at 85% 45%, rgba(255, 204, 0, .7), transparent 65%),
    radial-gradient(40% 70% at 60% 100%, rgba(255, 69, 0, .35), transparent 70%),
    linear-gradient(110deg, #1a1500 35%, #382b00);
}
.slide-red {
  background:
    radial-gradient(70% 120% at 85% 50%, rgba(214, 0, 40, .75), transparent 65%),
    radial-gradient(45% 70% at 65% 0%, rgba(255, 204, 0, .4), transparent 70%),
    linear-gradient(110deg, #1a0508 35%, #3a0910);
}
.car-arrow, .car-pause {
  position: absolute; z-index: 2; display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff;
}
.car-arrow { display: none; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; }
.car-arrow.prev { left: 12px; }
.car-arrow.next { right: 12px; }
.car-pause { right: 10px; bottom: 8px; width: 26px; height: 26px; }
.car-pause .ic { width: 14px; height: 14px; }
.dots { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 2; display: flex; gap: 6px; }
.dot { position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: var(--r-full); background: rgba(255, 255, 255, .4); cursor: pointer; transition: width .2s ease, background .2s ease; }
.dot::before { content: ""; position: absolute; inset: -10px -4px; }
.dot[aria-current="true"] { width: 20px; background: var(--yellow); }

/* ---------- section headers ---------- */
.block { margin-top: 24px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-title {
  display: flex; align-items: center; gap: 8px; margin: 0;
  font-size: 1.05rem; font-weight: 900; letter-spacing: .03em; text-transform: uppercase;
}
.section-title::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--yellow); }
.section-title.plain { text-transform: none; letter-spacing: 0; }
.section-title .ic { width: 20px; height: 20px; }
.view-all { display: inline-flex; align-items: center; gap: 2px; font-size: .82rem; font-weight: 800; color: var(--yellow); white-space: nowrap; }
.view-all .ic { width: 16px; height: 16px; }
.view-all:hover { text-decoration: underline; }

/* ---------- game artwork ---------- */
/* each game gets a hue (--h) from the catalogue; the artwork is pure CSS around the game's emoji */
.thumb {
  position: relative; isolation: isolate; display: grid; place-items: center; aspect-ratio: 1;
  border-radius: var(--r); overflow: hidden;
  background:
    radial-gradient(90% 70% at 30% 15%, hsl(var(--h, 40) 95% 62% / .7), transparent 62%),
    radial-gradient(80% 70% at 90% 100%, hsl(calc(var(--h, 40) + 45) 95% 55% / .5), transparent 62%),
    linear-gradient(160deg, hsl(var(--h, 40) 60% 24%), hsl(calc(var(--h, 40) + 25) 60% 9%));
}
.thumb::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .045) 0 2px, transparent 2px 10px);
}
/* a game's own picture fills the tile; the striped backdrop is hidden behind it */
.thumb-img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.thumb.has-img::before { display: none; }
.game-link:hover .thumb-img, .mini-card:hover .thumb-img { transform: scale(1.05); }
.thumb-emoji { font-size: clamp(2rem, 9vw, 3rem); line-height: 1; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .5)); transition: transform .2s ease; }

/* ---------- "For You" row ---------- */
/* bleeds to the screen edge; scroll-padding keeps snapped cards aligned with the page gutter, not the edge */
.mini-row {
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
}
.mini-row::-webkit-scrollbar { display: none; }
.mini-card { flex: 0 0 76px; min-width: 0; scroll-snap-align: start; }
.mini-card .thumb-emoji { font-size: 1.9rem; }
.mini-card:hover .thumb-emoji { transform: scale(1.08); }
.mini-title {
  display: block; margin-top: 6px; text-align: center;
  font-size: .64rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- live winner banner ---------- */
.winner-card {
  display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 12px;
  border-radius: var(--r-lg); border: 1px solid rgba(255, 200, 61, .25);
  background: linear-gradient(110deg, rgba(255, 200, 61, .13), #1b1d22 46%, #121419);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.winner-thumb { width: 52px; flex: none; border-radius: 10px; }
.winner-thumb .thumb-emoji { font-size: 1.6rem; }
.winner-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.winner-body.swap { animation: swap .35s ease; }
.winner-game { font-size: .95rem; font-weight: 900; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* may wrap to two lines on phones so the amount is never cut off */
.winner-line {
  font-size: .8rem; line-height: 1.35; color: var(--muted);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.winner-line b { color: var(--text); font-weight: 700; }
.winner-line em { font-style: normal; font-weight: 800; color: var(--yellow); white-space: nowrap; }
.winner-play { flex: none; min-width: 76px; letter-spacing: .06em; }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- game grid + cards ---------- */
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
.game-card { position: relative; min-width: 0; border-radius: var(--r); transition: transform .2s ease; }
.game-card:hover { transform: translateY(-2px); }
.game-link { display: block; border-radius: var(--r); }
.game-link .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .6), transparent 45%); }
.game-link:hover .thumb-emoji { transform: scale(1.08); }
.card-tag {
  position: absolute; top: 6px; left: 6px; z-index: 1; max-width: calc(100% - 44px);
  padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, .65); color: #fff;
  font-size: .56rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-tag.tag-hot { background: var(--orange-deep); }
.card-tag.tag-new { background: var(--yellow); color: #121212; }
.card-tag.tag-live { background: #e0002a; }
.card-tag.tag-live::before {
  content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 4px 1px 0; border-radius: 50%;
  background: #fff; vertical-align: middle; animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .25; } }
.players {
  position: absolute; left: 6px; bottom: 6px; z-index: 1; display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 6px 2px 4px; border-radius: 6px; background: rgba(0, 0, 0, .6);
  font-size: .62rem; font-weight: 800; font-variant-numeric: tabular-nums;
}
.players .ic { width: 11px; height: 11px; color: var(--orange); }
.game-title {
  display: block; margin-top: 7px; font-size: .8rem; font-weight: 800; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fav-btn {
  position: absolute; top: 6px; right: 6px; z-index: 2; width: 26px; height: 26px; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; transition: color .15s ease, transform .15s ease;
}
.fav-btn::before { content: ""; position: absolute; inset: -8px; }
.fav-btn .ic { width: 14px; height: 14px; }
.fav-btn:hover { transform: scale(1.1); }
.fav-btn.on { color: var(--red); }
.fav-btn.on .ic path { fill: currentColor; }

/* ---------- providers + payments strips ---------- */
.strip {
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
}
.strip::-webkit-scrollbar { display: none; }
.provider, .pay-card {
  flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px;
  border-radius: var(--r); background: linear-gradient(145deg, #1b1e24, #16171b); border: 1px solid var(--line-soft);
  box-shadow: 0 8px 20px rgba(0,0,0,.13);
}
a.provider:hover { border-color: var(--yellow); transform: translateY(-1px); }
.provider-logo, .pay-logo {
  flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 900; font-size: .9rem; color: #121212;
}
.pay-logo { font-size: .64rem; color: #fff; }
.provider strong, .pay-card strong { display: block; font-size: .85rem; white-space: nowrap; }
.provider small, .pay-card small { display: block; font-size: .72rem; color: var(--dim); white-space: nowrap; }

/* ---------- bottom nav + floating chat ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  height: calc(var(--nav-h) + var(--safe-bottom)); padding-bottom: var(--safe-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(19, 21, 25, .96); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 28px rgba(0,0,0,.32); backdrop-filter: blur(18px);
}
.bn-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: .68rem; font-weight: 700; color: var(--dim);
}
.bn-item .ic { width: 22px; height: 22px; }
.bn-item[aria-current="page"] { color: var(--yellow); }
.bn-deposit { justify-content: flex-end; padding-bottom: 9px; color: var(--text); }
.bn-fab {
  width: 52px; height: 52px; margin-top: -24px; margin-bottom: 1px; border-radius: 50%;
  display: grid; place-items: center; background: var(--yellow); color: #121212;
  box-shadow: 0 0 0 5px var(--bg-raised), 0 8px 20px rgba(255, 204, 0, .35);
}
.bn-fab .ic { width: 26px; height: 26px; stroke-width: 2.6; }

.chat-fab {
  position: fixed; right: 16px; bottom: calc(var(--nav-h) + var(--safe-bottom) + 16px); z-index: 75;
  width: 52px; height: 52px; padding: 0; display: grid; place-items: center; cursor: pointer;
  border: 0; border-radius: 50%; background: var(--orange); color: #fff;
  box-shadow: 0 8px 22px rgba(255, 69, 0, .4);
  transition: transform .15s ease;
}
.chat-fab:hover { transform: scale(1.06); }
.chat-fab .ic { width: 26px; height: 26px; }
.chat-sheet {
  position: fixed; right: 16px; bottom: calc(var(--nav-h) + var(--safe-bottom) + 80px); z-index: 76;
  width: min(360px, calc(100vw - 32px)); max-height: min(480px, calc(100vh - var(--header-h) - var(--nav-h) - 110px));
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  animation: pop .2s ease;
}
.chat-sheet[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.chat-avatar { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: #fff; }
.chat-avatar .ic { width: 18px; height: 18px; }
.chat-who { flex: 1; min-width: 0; }
.chat-who strong { display: block; font-size: .92rem; }
.chat-who span { font-size: .72rem; color: var(--dim); }
.chat-close { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.chat-close:hover { color: var(--text); background: var(--surface-3); }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: grid; align-content: start; gap: 8px; }
.bubble { margin: 0; max-width: 85%; padding: 9px 12px; border-radius: 14px; font-size: .85rem; line-height: 1.4; }
.bubble.bot { justify-self: start; background: var(--surface-3); color: var(--text); border-bottom-left-radius: 4px; }
.bubble.me { justify-self: end; background: var(--yellow); color: #121212; font-weight: 700; border-bottom-right-radius: 4px; }
.bubble a { color: var(--yellow); text-decoration: underline; }
.chat-replies { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 12px; border-top: 1px solid var(--line-soft); }

/* ---------- lobby ---------- */
.page { padding-top: 4px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin: 18px 0 14px; }
.page-head .section-title { font-size: 1.2rem; }
.result-count { font-size: .82rem; color: var(--dim); }
.lobby-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.lobby-tools .searchbar { grid-column: 1 / -1; }
.searchbar { position: relative; }
.searchbar .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--dim); pointer-events: none; }
.searchbar input {
  width: 100%; min-height: 42px; padding: 10px 14px 10px 42px; border-radius: var(--r-full);
  border: 1px solid var(--line); background: var(--surface);
}
.searchbar input::placeholder { color: var(--dim); }
.searchbar input:focus { outline: none; border-color: var(--yellow); }
.select {
  width: 100%; min-height: 42px; padding: 8px 36px 8px 16px; border-radius: var(--r-full);
  border: 1px solid var(--line); background: var(--surface); appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238c8c8c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.select:focus { outline: none; border-color: var(--yellow); }
.badge {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: var(--r-full); background: var(--yellow); color: #121212; font-size: .72rem; font-weight: 900;
}
.filter-panel {
  display: grid; gap: 14px; margin-bottom: 16px; padding: 14px;
  border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-soft);
}
.filter-group h4 { margin-bottom: 8px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.chip-list { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  min-height: 32px; padding: 5px 12px; border-radius: var(--r-full); cursor: pointer;
  border: 1px solid var(--line); background: var(--surface-2); font-size: .8rem; font-weight: 700;
  transition: border-color .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--muted); }
.chip.on { border-color: var(--yellow); color: var(--yellow); background: rgba(255, 204, 0, .1); }
.empty { padding: 44px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r-lg); }
.empty .ic { display: block; width: 40px; height: 40px; margin: 0 auto 10px; color: var(--dim); }
.empty p { margin-bottom: 14px; }

.production-gate {
  display:grid;
  min-height:calc(100vh - 10rem);
  place-items:center;
  padding:2rem 1rem;
  text-align:center;
}
.production-gate > div { max-width:460px; }
.production-gate h1 { margin:8px 0 12px; font-size:clamp(1.8rem,5vw,2.7rem); }
.production-gate p { margin:0 auto 20px; color:var(--muted); line-height:1.7; }

/* ---------- panels & forms (wallet, register, game) ---------- */
.panel { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 18px; }
.panel-title { margin-bottom: 12px; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 16px; }
.stat strong { display: block; font-size: 1.5rem; letter-spacing: -.02em; color: var(--yellow); }
.stat span { font-size: .8rem; color: var(--dim); }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .82rem; font-weight: 700; color: var(--muted); }
.field input, .field select {
  width: 100%; min-height: 44px; padding: 11px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: #141414; color: var(--text);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 204, 0, .14); }
.field .err { font-size: .78rem; color: var(--err); }
.field.invalid input { border-color: var(--err); }
.hint { font-size: .78rem; color: var(--dim); }

.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--muted); cursor: pointer; }
.checkbox input { margin-top: 3px; accent-color: var(--yellow); }

.alert {
  margin: 0 0 14px; padding: 12px 14px; border-radius: var(--r-sm); font-size: .87rem;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--muted);
}
.alert-ok { border-color: rgba(34, 197, 94, .45); background: rgba(34, 197, 94, .1); color: #a7f3c4; }
.alert-err, .alert-error { border-color: rgba(255, 90, 79, .45); background: rgba(255, 90, 79, .1); color: #ffc4bf; }
.alert-info { border-color: rgba(255, 200, 61, .4); background: rgba(255, 200, 61, .08); color: #ffe6a6; }

.tabs { display: flex; gap: 6px; padding: 5px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-full); }
.tabs button {
  flex: 1; min-height: 38px; padding: 8px 12px; border: 0; border-radius: var(--r-full); background: transparent;
  color: var(--muted); font-weight: 800; cursor: pointer; transition: background .15s ease, color .15s ease;
}
.tabs button.on { background: var(--yellow); color: #121212; }

.amount-input { position: relative; }
.amount-input input { padding-right: 70px; font-size: 1.15rem; font-weight: 800; }
.amount-input span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--dim); font-weight: 800; }
.quick-amounts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

.method-list { display: grid; gap: 10px; }
.method {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer;
  border-radius: var(--r); border: 1px solid var(--line-soft); background: var(--surface-2); transition: border-color .15s ease;
}
.method:hover { border-color: var(--muted); }
.method.on { border-color: var(--yellow); background: rgba(255, 204, 0, .07); }
.method input { accent-color: var(--yellow); }
.method .m-body { flex: 1; min-width: 0; }
.method h4 { margin: 0; font-size: .92rem; }
.method .m-body span { font-size: .76rem; color: var(--dim); }

.summary { background: #141414; border: 1px solid var(--line-soft); border-radius: var(--r); padding: 14px 16px; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .9rem; color: var(--muted); }
.summary .line.total { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 1.05rem; font-weight: 800; color: var(--text); }
.summary .line.total span:last-child { color: var(--yellow); }

.tx-list { display: grid; gap: 8px; }
.tx {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px; font-size: .87rem;
  background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--r-sm);
}
.tx .tx-ico { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: .9rem; }
.tx .tx-body { flex: 1; min-width: 0; }
.tx .tx-body strong { display: block; }
.tx .tx-body span { font-size: .76rem; }
.tx .amt { margin-left: auto; font-weight: 800; white-space: nowrap; }
.tx .amt.in { color: var(--green); }
.tx .amt.out { color: var(--orange); }

.balance-big { font-size: 2.1rem; font-weight: 900; letter-spacing: -.03em; color: var(--yellow); }
.wallet-head { display: grid; gap: 16px; padding: 22px 0 6px; }
.wallet-tabs { margin-top: 18px; }

.reg-grid { display: grid; gap: 28px; align-items: start; padding: 22px 0 8px; }
.reg-panel { padding: 22px; }
.practice-banner {
  display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 0; padding: 12px 14px;
  border-radius: var(--r); border: 1px solid rgba(255, 200, 61, .28); background: rgba(255, 200, 61, .08);
  color: #f4e5bd; font-size: .82rem; line-height: 1.45;
}
.practice-banner .ic { width: 18px; height: 18px; flex: none; color: var(--yellow); }
.practice-banner strong { color: var(--yellow); }

/* ---------- game detail ---------- */
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.back-link:hover { color: var(--yellow); }
.back-link .ic { width: 18px; height: 18px; }
.game-hero {
  display: grid; grid-template-columns: 104px minmax(0, 1fr); grid-template-areas: "poster heading" "main main";
  gap: 18px 14px; align-items: center; padding: 14px 0 8px;
}
.game-poster { grid-area: poster; border-radius: var(--r-lg); }
.game-poster .thumb-emoji { font-size: 3rem; }
.game-heading { grid-area: heading; min-width: 0; }
.game-heading h1 { font-size: clamp(1.3rem, 1rem + 1.6vw, 2.2rem); margin-bottom: 8px; }
.game-heading .eyebrow { margin-bottom: 4px; }
.game-main { grid-area: main; min-width: 0; }
.tag {
  padding: 4px 10px; border-radius: var(--r-full); background: var(--surface-2); border: 1px solid var(--line);
  font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.tag.tag-rtp { color: var(--green); border-color: rgba(34, 197, 94, .5); }
.cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 12px; }
.game-actions { display: flex; gap: 8px; margin-bottom: 20px; }
.fav-toggle.on { color: var(--red); border-color: var(--red); }
.fav-toggle.on .ic path { fill: currentColor; }
.game-panels { display: grid; gap: 14px; }
.info-rows { display: grid; }
.info-rows .line { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: .9rem; }
.info-rows .line:last-child { border: 0; }
.info-rows .line span:first-child { color: var(--dim); }
.info-rows .line span:last-child { font-weight: 700; text-align: right; }
.rtp-bar { height: 8px; margin-top: 8px; border-radius: var(--r-full); background: var(--surface-3); overflow: hidden; }
.rtp-bar i { display: block; height: 100%; border-radius: var(--r-full); background: linear-gradient(90deg, var(--orange), var(--yellow)); }

/* flex + margin:auto centres the modal but lets it scroll when taller than the screen */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; display: none; overflow-y: auto; padding: 16px;
  background: rgba(0, 0, 0, .8); backdrop-filter: blur(6px);
}
.modal-backdrop.open { display: flex; }
.modal { margin: auto; width: 100%; max-width: 640px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.modal-head h3 { margin: 0; font-size: 1rem; }
.modal-body { padding: 16px; }
.modal-close { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.modal-close:hover { border-color: var(--orange); color: var(--orange); }
.modal-close .ic { width: 18px; height: 18px; }
.demo-stage {
  display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 20px; text-align: center; border-radius: var(--r);
  background: radial-gradient(circle at 50% 30%, rgba(255, 204, 0, .14), transparent 60%), #0d0d0d;
}
.demo-stage .big-emoji { margin-bottom: 10px; font-size: 4.2rem; line-height: 1; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 14px; }
.bet-input { width: 92px; min-height: 40px; padding: 8px 10px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #141414; text-align: center; font-weight: 800; }

/* ---------- promotions + sports ---------- */
.promo-list { display: grid; gap: 16px; }
.promo-card { overflow: hidden; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-soft); scroll-margin-top: calc(var(--header-h) + 16px); }
.promo-card .slide { aspect-ratio: auto; min-height: 150px; padding: 20px; }
.promo-body { display: grid; gap: 12px; padding: 16px 18px 18px; }
.promo-body ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .88rem; line-height: 1.7; }
.countdown { display: flex; gap: 8px; }
.cd-box { min-width: 52px; padding: 7px 6px; text-align: center; border-radius: 10px; background: #141414; border: 1px solid var(--line); }
.cd-box b { display: block; font-size: 1.2rem; color: var(--yellow); }
.cd-box span { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.coming-soon {
  margin-top: 18px; padding: 44px 20px; text-align: center; border-radius: var(--r-lg); border: 1px solid var(--line-soft);
  background: radial-gradient(60% 80% at 50% 0%, rgba(255, 204, 0, .14), transparent 70%), var(--surface);
}
.coming-soon .ic { display: block; width: 56px; height: 56px; margin: 0 auto 14px; color: var(--yellow); }
.coming-soon p { max-width: 46ch; margin-inline: auto; }

/* ---------- footer ---------- */
.site-footer { margin-top: 48px; border-top: 1px solid var(--line-soft); background: var(--bg-raised); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; padding: 30px 0 20px; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { margin: 12px 0; max-width: 42ch; font-size: .88rem; }
.footer-grid h4 { margin-bottom: 10px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.footer-grid ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-grid li a, .footer-grid .link-btn { font-size: .88rem; color: var(--muted); }
.footer-grid li a:hover, .footer-grid .link-btn:hover { color: var(--yellow); }
.age-badge { display: inline-flex; padding: 4px 10px; border: 1px solid var(--orange); border-radius: var(--r-sm); font-size: .74rem; font-weight: 800; }
.disclaimer { margin: 0; padding: 16px 0; border-top: 1px dashed var(--line); font-size: .78rem; line-height: 1.6; color: var(--dim); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 14px 0 22px;
  border-top: 1px solid var(--line-soft); font-size: .78rem; color: var(--dim);
}

/* ---------- toasts ---------- */
.toast-host {
  position: fixed; z-index: 200; top: calc(var(--header-h) + 10px); left: 50%; transform: translateX(-50%);
  width: min(420px, calc(100% - 32px)); display: grid; gap: 8px; pointer-events: none;
}
.toast {
  pointer-events: auto; padding: 12px 16px; font-size: .88rem;
  border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); border-left: 4px solid var(--yellow);
  box-shadow: var(--shadow); animation: pop .25s ease;
}
.toast.ok { border-left-color: var(--green); }
.toast.err { border-left-color: var(--orange); }
@keyframes pop { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- responsive ---------- */
/* below 360px the wordmark gives way so Login + Register stay on one line */
@media (max-width: 359px) { .brand-word { display: none; } }

@media (min-width: 768px) {
  .mini-card { flex-basis: 104px; }
  .mini-card .thumb-emoji { font-size: 2.4rem; }
  .mini-title { font-size: .72rem; }
  .slide { aspect-ratio: auto; height: 260px; padding: 32px 72px 40px; }
  .slide-sub { font-size: .95rem; }
  .car-arrow { display: grid; }
  .game-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 14px; }
  .thumb-emoji { font-size: clamp(2.4rem, 4vw, 3.4rem); }
  .card-tag { font-size: .62rem; padding: 3px 7px; }
  .players { font-size: .68rem; }
  .game-title { font-size: .86rem; }
  .lobby-tools { grid-template-columns: 1fr auto 220px; }
  .lobby-tools .searchbar { grid-column: auto; }
  .filter-panel { grid-template-columns: 1fr 1fr auto; align-items: end; }
  .panel { padding: 22px; }
  .wallet-head { grid-template-columns: 1fr minmax(260px, 340px); align-items: end; }
  .promo-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .promo-card .slide { min-height: 230px; padding: 28px; }
  .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); }
  .footer-brand { grid-column: auto; }
}

@media (min-width: 900px) {
  .game-hero { grid-template-columns: 320px minmax(0, 1fr); grid-template-areas: "poster heading" "poster main"; align-items: start; gap: 6px 32px; }
  .game-poster .thumb-emoji { font-size: 6.5rem; }
  .cta-row { display: flex; }
  .reg-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; }
  /* desktop: info on the left, form on the right (the markup puts the form first for phones) */
  .reg-grid .reg-panel { grid-column: 2; grid-row: 1; }
  .reg-grid .reg-info { grid-column: 1; grid-row: 1; }
}

@media (min-width: 1024px) {
  .top-nav { display: flex; gap: 2px; margin-left: 12px; }
  .top-nav a { padding: 8px 14px; border-radius: var(--r-full); font-size: .9rem; font-weight: 700; color: var(--muted); }
  .top-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
  .top-nav a[aria-current="page"] { color: var(--yellow); }
  .bottom-nav { display: none; }
  .chat-fab { right: 24px; bottom: 24px; }
  .chat-sheet { right: 24px; bottom: 88px; max-height: min(520px, calc(100vh - var(--header-h) - 120px)); }
  .strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-inline: 0; padding-inline: 0; overflow: visible; }
}
/* on phones and tablets the bottom nav carries Deposit, so the header only shows the balance */
@media (max-width: 1023px) { .header-actions .btn-deposit { display: none; } }

/* last in the file so it outranks the animation rules above */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- register / log in ---------- */
.reg-head { padding-top: 22px; }
.reg-head p { margin: 0; color: var(--muted); }
/* an input with things inside it: the flag, the network badge, the show-password eye */
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap input { flex: 1; min-width: 0; }
.input-wrap .prefix { position: absolute; left: 12px; font-size: 1rem; pointer-events: none; }
.input-wrap .prefix ~ input { padding-left: 40px; }
.input-wrap .net {
  position: absolute; right: 10px; padding: 2px 8px; border-radius: 999px; font-size: .7rem; font-weight: 800;
  background: rgba(34, 197, 94, .16); color: #4ade80; border: 1px solid rgba(74, 222, 128, .35); pointer-events: none;
}
.input-wrap .eye ~ input, .input-wrap input:has(+ .eye) { padding-right: 46px; }
.input-wrap .eye {
  position: absolute; right: 6px; width: 36px; height: 36px; border: 0; border-radius: 8px; cursor: pointer;
  background: transparent; font-size: 1rem; opacity: .55; filter: grayscale(1);
}
.input-wrap .eye:hover, .input-wrap .eye.on { opacity: 1; filter: none; }
/* password strength: four bars and a word */
.strength { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 4px; align-items: center; min-height: 14px; }
.strength i { height: 4px; border-radius: 2px; background: var(--line-soft, #333); transition: background .2s; }
.strength span { min-width: 90px; text-align: right; font-size: .72rem; font-weight: 700; color: var(--muted); }
.strength[data-level="1"] i:nth-child(-n+1) { background: #ef4444; }
.strength[data-level="2"] i:nth-child(-n+2) { background: #f59e0b; }
.strength[data-level="3"] i:nth-child(-n+3) { background: #84cc16; }
.strength[data-level="4"] i:nth-child(-n+4) { background: #22c55e; }
.strength[data-level="0"] i { background: var(--line-soft, #333); }
.login-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; font-size: .84rem; }
.login-row a, .reg-panel .hint a, #formMsg a { color: var(--yellow); font-weight: 700; }
/* already signed in */
.signed-in { display: grid; justify-items: center; gap: 8px; padding: 10px 0; text-align: center; }
.signed-in h2 { margin: 4px 0 0; }
.signed-in p { margin: 0 0 8px; }
.signed-in-badge {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; font-size: 1.6rem; font-weight: 900; color: #052e16;
  background: radial-gradient(circle at 35% 30%, #86efac, #22c55e 60%, #15803d); box-shadow: 0 0 24px rgba(34, 197, 94, .45);
}
.signed-in .row { justify-content: center; }
.demo-note { margin: 14px 0 0; opacity: .75; }
.btn:disabled { opacity: .7; cursor: progress; }
/* the three info cards stay in one row on phones too, so none is left on its own */
@media (max-width: 560px) {
  .reg-info .stat-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .reg-info .stat { padding: 12px 10px; }
  .reg-info .stat strong { font-size: 1.15rem; }
  .reg-info .stat span { font-size: .72rem; }
}

/* ---------- legal pages: privacy policy and terms of use ---------- */
.legal { max-width: 820px; padding-bottom: 40px; }
.legal-head { padding: 22px 0 14px; }
.legal-meta { margin: 4px 0 0; color: var(--dim); font-size: .88rem; }
.legal-meta a, .legal a { color: var(--yellow); }
.legal h2 { font-size: 1.12rem; margin: 0 0 8px; }
.legal section { padding: 18px 0; border-top: 1px solid var(--line-soft); }
.legal p, .legal li { color: var(--muted); line-height: 1.6; }
.legal b { color: var(--text); }
.legal ul { padding-left: 20px; margin: 8px 0; }
.legal li { margin: 4px 0; }
.legal-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--yellow);
  border-radius: var(--r);
  padding: 16px 18px;
  margin-bottom: 8px;
}
.legal-summary ul { margin: 0; }
.legal-contact { background: var(--surface); border-radius: var(--r-sm); padding: 10px 14px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 6px 0 12px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line-soft); }
.legal-table th { color: var(--dim); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.legal-table td { color: var(--muted); }
.legal-table td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) {
  /* the table becomes stacked cards on phones */
  .legal-table thead { display: none; }
  .legal-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
  .legal-table td { display: block; border: 0; padding: 2px 0; }
  .legal-table td:last-child { color: var(--dim); font-size: .82rem; }
}
.footer-legal { display: flex; gap: 14px; }
.footer-legal a { color: inherit; }

/* ============ Deposit / Withdraw (app-style) ============ */
.pay-topbar {
  position: sticky; top: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 8px; padding: 14px var(--gutter);
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  background: rgba(13, 14, 16, .9); backdrop-filter: blur(18px) saturate(120%);
  border-bottom: 1px solid var(--line); color: var(--text);
}
.pay-topbar .pt-back, .pay-topbar .pt-help {
  display: inline-flex; align-items: center; gap: 4px;
  color: #fff; background: none; border: 0; font: inherit; cursor: pointer;
}
.pay-topbar .pt-help { justify-self: end; }
.pay-topbar .pt-back .ic { width: 22px; height: 22px; }
.pay-topbar .pt-help .ic { width: 24px; height: 24px; }
.pay-topbar .pt-title { font-weight: 700; font-size: 1.08rem; white-space: nowrap; }

.pay-wrap { max-width: 560px; margin: 0 auto; padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 20px); }

.pay-tabs { display: flex; border-bottom: 1px solid var(--line); background: var(--bg-raised); }
.pay-tab {
  flex: 1; padding: 15px 6px; background: none; border: 0; cursor: pointer;
  color: var(--muted); font: inherit; font-weight: 600; font-size: .98rem;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.pay-tab.on { color: var(--yellow); border-bottom-color: var(--yellow); }

.pay-body { padding: 16px var(--gutter); }
.pay-panel[hidden] { display: none; }

.pay-row {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; margin-bottom: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
}
.pay-row .ic { width: 22px; height: 22px; color: var(--muted); flex: none; }
.pay-phone-num { font-size: 1.02rem; letter-spacing: .3px; }

.pay-provider { width: 100%; text-align: left; cursor: pointer; }
.pay-provider .prov-logo {
  width: 40px; height: 30px; border-radius: 6px; flex: none;
  display: grid; place-items: center; font-size: .6rem; font-weight: 800;
  background: var(--yellow); color: #1a1204; overflow: hidden;
}
.pay-provider .prov-name { flex: 1; font-weight: 600; }
.pay-provider .prov-switch { color: var(--muted); font-size: .9rem; display: inline-flex; align-items: center; gap: 2px; }
.pay-provider .prov-switch .ic { width: 16px; height: 16px; }

.pay-menu { margin: -6px 0 14px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pay-menu[hidden] { display: none; }
.pay-menu button {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 13px 16px; background: var(--surface); border: 0; border-top: 1px solid var(--line-soft);
  color: var(--text); font: inherit; cursor: pointer;
}
.pay-menu button:first-child { border-top: 0; }
.pay-menu button:hover { background: var(--surface-2); }
.pay-menu .prov-logo { width: 34px; height: 26px; border-radius: 5px; display: grid; place-items: center; font-size: .55rem; font-weight: 800; color: #1a1204; }

.pay-balance { text-align: right; color: var(--muted); font-size: .9rem; margin: 2px 2px 10px; }
.pay-balance b { color: var(--text); }

.pay-amount {
  display: flex; align-items: center; gap: 10px;
  padding: 16px; margin-bottom: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
}
.pay-amount input {
  flex: 1; min-width: 0; background: none; border: 0; color: var(--text);
  font-size: 1.15rem; font-weight: 600; outline: none;
}
.pay-amount .pay-min { color: var(--dim); font-size: .9rem; white-space: nowrap; }

.pay-incr { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 20px; }
.pay-incr button {
  padding: 15px 4px; background: #0c0d0f; border: 1px solid var(--line);
  border-radius: var(--r-sm); color: var(--text); font: inherit; font-weight: 600; cursor: pointer;
}
.pay-incr button:hover { border-color: var(--muted); }

.btn-topup {
  width: 100%; padding: 17px; border: 0; border-radius: var(--r);
  background: var(--yellow); color: #121212; font: inherit; font-weight: 700; font-size: 1.05rem; cursor: pointer;
}
.btn-topup:hover:not(:disabled) { background: var(--yellow-hover); }
.btn-topup:disabled { background: var(--surface-3); color: var(--dim); cursor: not-allowed; }

.pay-notes { margin: 20px 2px 0; padding-left: 18px; color: var(--muted); font-size: .86rem; line-height: 1.6; }
.pay-notes li { margin-bottom: 4px; }
.pay-note-extra { margin: 12px 2px 0; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.pay-err { color: var(--err); font-size: .85rem; margin: -6px 2px 12px; min-height: 1em; }
.pay-history { margin-top: 28px; }
.pay-history[hidden] { display: none; }
.pay-history-title { font-size: 1rem; margin: 0 2px 12px; }
.pay-history .tx { align-items: flex-start; }
.pay-history .tx-note { display: block; margin-top: 2px; color: var(--err); }
.tx-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: var(--r-full); font-size: .68rem; font-weight: 700; vertical-align: 1px; }
.tx-badge.ok { background: rgba(52, 215, 122, .15); color: var(--green); }
.tx-badge.wait { background: rgba(255, 200, 61, .15); color: var(--yellow); }
.tx-badge.bad { background: rgba(255, 90, 79, .15); color: var(--err); }

/* ============ Payment status sheet (waiting → success / failed) ============ */
.payfx {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px;
  background: rgba(5, 6, 8, .74); -webkit-backdrop-filter: blur(10px) saturate(120%); backdrop-filter: blur(10px) saturate(120%);
  opacity: 0; transition: opacity .22s ease;
}
.payfx.show { opacity: 1; }
.payfx[hidden] { display: none; }
.payfx-coins { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.payfx-card {
  position: relative; z-index: 1; width: min(360px, 100%); padding: 30px 22px 22px; text-align: center;
  background: radial-gradient(120% 70% at 50% 0%, rgba(255, 200, 61, .15), transparent 62%), linear-gradient(180deg, #1c1f25, #14161a);
  border: 1px solid rgba(255, 200, 61, .22); border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.payfx[data-state="fail"] .payfx-card {
  border-color: rgba(255, 90, 79, .3);
  background: radial-gradient(120% 70% at 50% 0%, rgba(255, 90, 79, .13), transparent 62%), linear-gradient(180deg, #1c1f25, #14161a);
}
.payfx-card.pop { animation: payfx-pop .42s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes payfx-pop { from { transform: translateY(16px) scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }

.payfx-icon { position: relative; width: 112px; height: 112px; margin: 0 auto 16px; display: grid; place-items: center; }

/* waiting: a buzzing phone inside pulsing rings */
.payfx-rings span { position: absolute; inset: 14px; border-radius: 50%; border: 2px solid rgba(255, 200, 61, .55); animation: payfx-ring 2.1s ease-out infinite; }
.payfx-rings span:nth-child(2) { animation-delay: .7s; }
.payfx-rings span:nth-child(3) { animation-delay: 1.4s; }
@keyframes payfx-ring { from { transform: scale(.55); opacity: .9; } to { transform: scale(1.4); opacity: 0; } }
.payfx-phone {
  position: relative; width: 58px; height: 58px; fill: none; stroke: var(--yellow); stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 12px rgba(255, 200, 61, .45));
  animation: payfx-shake 2.1s ease-in-out infinite;
}
.payfx-phone rect { fill: rgba(255, 200, 61, .08); }
.payfx-buzz { opacity: 0; animation: payfx-buzz 2.1s ease-in-out infinite; }
@keyframes payfx-shake { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-9deg); } 80% { transform: rotate(9deg); } 85% { transform: rotate(-6deg); } 90% { transform: rotate(6deg); } 95% { transform: rotate(0); } }
@keyframes payfx-buzz { 0%, 70%, 100% { opacity: 0; } 75%, 93% { opacity: 1; } }

/* success / failure / pending marks */
.payfx-mark { width: 112px; height: 112px; overflow: visible; }
.payfx-disc { fill: rgba(255, 200, 61, .1); }
.payfx-ring {
  fill: none; stroke: url(#payfxGold); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 315; stroke-dashoffset: 315; transform: rotate(-90deg); transform-origin: 60px 60px;
  animation: payfx-draw .55s ease-out forwards;
}
.payfx-check {
  fill: none; stroke: url(#payfxGold); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 70; stroke-dashoffset: 70; animation: payfx-draw .36s .44s ease-out forwards;
}
.payfx[data-state="success"] .payfx-mark { filter: drop-shadow(0 0 18px rgba(255, 200, 61, .5)); animation: payfx-glow 2.4s .9s ease-in-out infinite; }
@keyframes payfx-draw { to { stroke-dashoffset: 0; } }
@keyframes payfx-glow { 50% { filter: drop-shadow(0 0 32px rgba(255, 200, 61, .8)); } }

.payfx-mark-fail .payfx-disc { fill: rgba(255, 90, 79, .1); }
.payfx-mark-fail .payfx-ring { stroke: #ff5a4f; }
.payfx-x { fill: none; stroke: #ff6c63; stroke-width: 8; stroke-linecap: round; stroke-dasharray: 46; stroke-dashoffset: 46; animation: payfx-draw .24s .46s ease-out forwards; }
.payfx-x2 { animation-delay: .64s; }
.payfx-mark-fail { animation: payfx-no .42s .9s ease-in-out; }
@keyframes payfx-no { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

.payfx-mark-pending .payfx-spin {
  fill: none; stroke: var(--yellow); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 80 235;
  transform-origin: 60px 60px; animation: payfx-rot 1.2s linear infinite;
}
.payfx-clock { fill: none; stroke: #ffe6a6; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes payfx-rot { to { transform: rotate(360deg); } }

/* words and buttons */
.payfx-title { margin: 0 0 6px; font-size: 1.32rem; }
.payfx-amount {
  font-size: 2.15rem; font-weight: 800; letter-spacing: -.5px; color: var(--yellow);
  text-shadow: 0 2px 18px rgba(255, 200, 61, .35); font-variant-numeric: tabular-nums;
}
.payfx-amount:empty { display: none; }
.payfx[data-state="waiting"] .payfx-amount { font-size: 1.3rem; color: var(--text); text-shadow: none; }
.payfx-text { margin: 10px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.payfx-text:empty { display: none; }
.payfx-text b { color: var(--text); }
.payfx-hint { display: block; margin-top: 8px; color: var(--dim); font-size: .82rem; }
.payfx-reason { display: block; margin-top: 10px; padding: 9px 11px; border-radius: 10px; background: rgba(255, 90, 79, .1); color: #ffc4bf; font-size: .84rem; }
.payfx-actions { display: grid; gap: 10px; margin-top: 22px; }
.payfx[data-state="waiting"] .payfx-actions::before {
  content: ""; display: block; height: 3px; border-radius: 3px; margin-bottom: 6px;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent) no-repeat, rgba(255, 255, 255, .07);
  background-size: 40% 100%, 100% 100%; animation: payfx-bar 1.4s ease-in-out infinite;
}
@keyframes payfx-bar { from { background-position: -60% 0, 0 0; } to { background-position: 160% 0, 0 0; } }
.payfx-btn {
  display: block; width: 100%; padding: 14px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer;
}
.payfx-btn.primary { background: var(--yellow); color: #121212; }
.payfx-btn.primary:hover { background: var(--yellow-hover); }
.payfx-btn.ghost { background: transparent; color: var(--muted); border-color: var(--line); }
.payfx-btn.ghost:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .payfx, .payfx-card.pop, .payfx-rings span, .payfx-phone, .payfx-buzz, .payfx-ring, .payfx-check, .payfx-x,
  .payfx-mark, .payfx-mark-pending .payfx-spin, .payfx[data-state="waiting"] .payfx-actions::before { animation: none !important; transition: none !important; }
  .payfx-ring, .payfx-check, .payfx-x { stroke-dashoffset: 0; }
  .payfx-buzz { opacity: 1; }
}

/* chat: typed questions */
.chat-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(52, 215, 122, .18); vertical-align: 0; }
.chat-form { display: flex; gap: 8px; padding: 0 12px 12px; }
.chat-input {
  flex: 1; min-width: 0; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); font: inherit; font-size: .9rem;
}
.chat-input:focus { outline: none; border-color: var(--yellow); }
.chat-send { width: 44px; flex: none; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--yellow); color: #121212; cursor: pointer; }
.chat-send .ic { width: 20px; height: 20px; }
.bubble.typing { display: inline-flex; gap: 4px; align-items: center; padding: 12px 14px; }
.bubble.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: chat-typing 1s ease-in-out infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .15s; }
.bubble.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chat-typing { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

/* ============ Me (account) page ============ */
.btn-danger { background: var(--err); color: #fff; }
.btn-danger:hover { background: #ff8178; }
.me-page { max-width: 640px; padding-top: 16px; padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 28px); }
.me-page [hidden] { display: none !important; }
.me-hero {
  position: relative; overflow: hidden; padding: 18px; border-radius: 20px;
  background: radial-gradient(130% 90% at 100% 0%, rgba(255, 200, 61, .2), transparent 55%), linear-gradient(160deg, #1f2229, #15171b 70%);
  border: 1px solid rgba(255, 200, 61, .18); box-shadow: 0 18px 40px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.me-hero::after {
  content: ""; position: absolute; right: -70px; top: -70px; width: 220px; height: 220px; border-radius: 50%;
  border: 1px solid rgba(255, 200, 61, .12); box-shadow: 0 0 0 26px rgba(255, 200, 61, .03); pointer-events: none;
}
.me-id { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.me-avatar {
  width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 1.35rem; color: #1a1204;
  background: linear-gradient(145deg, #fff1b8, #ffc83d 45%, #c88a0c);
  box-shadow: 0 0 0 3px rgba(255, 200, 61, .18), 0 6px 18px rgba(255, 200, 61, .25);
}
.me-avatar .ic { width: 26px; height: 26px; }
.me-who { flex: 1; min-width: 0; }
.me-who strong { display: block; font-size: 1.06rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-acct { font-size: .8rem; color: var(--muted); }
.me-acct b { color: var(--text); font-weight: 600; letter-spacing: .6px; }
.me-tier {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: var(--r-full); white-space: nowrap;
  background: rgba(255, 200, 61, .12); border: 1px solid rgba(255, 200, 61, .3); color: var(--yellow); font-size: .74rem; font-weight: 700;
}
.me-tier .ic { width: 14px; height: 14px; }
.me-tier-next { position: relative; z-index: 1; margin: 6px 0 0 64px; font-size: .74rem; color: var(--dim); }
.me-balance { position: relative; z-index: 1; margin-top: 18px; }
.me-bal-label { font-size: .8rem; color: var(--muted); }
.me-bal-amount { margin-top: 2px; font-size: 2.1rem; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.me-bal-amount small { margin-right: 6px; font-size: .95rem; font-weight: 700; color: var(--muted); }
.me-actions { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.me-actions .ic { width: 18px; height: 18px; }
.me-guest { text-align: center; padding: 28px 18px 20px; }
.me-guest .me-avatar { margin: 0 auto 12px; }
.me-guest h1 { margin: 0 0 6px; font-size: 1.3rem; }
.me-guest p { margin: 0; font-size: .9rem; }

.me-rewards {
  display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: 16px; color: var(--text);
  background: linear-gradient(100deg, rgba(255, 106, 42, .22), rgba(255, 200, 61, .12)); border: 1px solid rgba(255, 106, 42, .3);
}
.me-rw-ico {
  width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #ff9a4d, #ff5a1f); box-shadow: 0 6px 16px rgba(255, 90, 31, .35);
}
.me-rw-ico .ic { width: 22px; height: 22px; }
.me-rw-copy { flex: 1; min-width: 0; }
.me-rw-copy strong { display: block; }
.me-rw-copy span { font-size: .8rem; color: var(--muted); }
.me-chev { width: 18px; height: 18px; color: var(--dim); flex: none; }

.me-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.me-quick > * {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px 12px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--line-soft); color: var(--text);
  font: inherit; font-size: .82rem; font-weight: 700; text-align: center; cursor: pointer;
}
.me-quick > *:hover { border-color: var(--line); background: var(--surface-2); }
.me-quick small { font-size: .7rem; font-weight: 500; color: var(--dim); }
.me-q-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 200, 61, .1); color: var(--yellow); }
.me-q-ico .ic { width: 22px; height: 22px; }
.me-badge {
  position: absolute; top: 8px; right: 10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  display: grid; place-items: center; background: var(--red); color: #fff; font-size: .68rem; font-weight: 800;
}

.me-menu { margin-top: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-soft); overflow: hidden; }
.me-row {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px 16px; border: 0; border-top: 1px solid var(--line-soft);
  background: none; color: var(--text); font: inherit; font-size: .93rem; text-align: left; cursor: pointer;
}
.me-row:first-child { border-top: 0; }
.me-row:hover { background: var(--surface-2); }
.me-row > .ic:first-child { width: 22px; height: 22px; flex: none; color: var(--muted); }
.me-row-label { flex: 1; }
.me-row-end { color: var(--dim); font-size: .8rem; }
.me-online {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--r-full);
  background: rgba(52, 215, 122, .12); color: var(--green); font-size: .72rem; font-weight: 700;
}
.me-online::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(52, 215, 122, .2); }
.me-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center;
  background: var(--red); color: #fff; font-size: .72rem; font-weight: 800;
}
.me-row-danger, .me-row-danger > .ic:first-child { color: var(--err); }

.me-compliance { margin-top: 26px; text-align: center; }
.me-compliance h2 { margin: 0 0 12px; font-size: .74rem; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--dim); }
.me-partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.me-partner {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 5px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line-soft); font-size: .74rem; font-weight: 600; color: var(--muted);
}
.me-partner i { min-width: 30px; height: 20px; padding: 0 4px; border-radius: 5px; display: grid; place-items: center; font-style: normal; font-size: .58rem; font-weight: 800; }
.me-rg { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px; border-radius: 14px; text-align: left; background: var(--bg-raised); border: 1px solid var(--line-soft); }
.me-18 { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 2.5px solid var(--err); color: var(--err); font-weight: 800; font-size: .92rem; }
.me-rg p { margin: 0; font-size: .78rem; line-height: 1.5; color: var(--muted); }
.me-legal { margin: 12px 0 0; font-size: .76rem; color: var(--dim); }
.me-legal a { color: var(--muted); }

/* bottom sheet behind each menu row */
.me-sheet { position: fixed; inset: 0; z-index: 140; display: flex; align-items: flex-end; justify-content: center; background: rgba(5, 6, 8, .62); opacity: 0; transition: opacity .2s ease; }
.me-sheet.show { opacity: 1; }
.me-sheet-panel {
  width: min(560px, 100%); max-height: 86vh; overflow-y: auto; padding: 10px 18px calc(20px + var(--safe-bottom));
  border-radius: 22px 22px 0 0; border: 1px solid var(--line); border-bottom: 0;
  background: linear-gradient(180deg, #1c1f25, #15171b); transform: translateY(28px); transition: transform .26s cubic-bezier(.2, 1, .3, 1);
}
.me-sheet.show .me-sheet-panel { transform: none; }
.me-sheet-grip { width: 40px; height: 4px; margin: 0 auto 12px; border-radius: 2px; background: var(--line); }
.me-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.me-sheet-head h2 { margin: 0; font-size: 1.12rem; }
.me-sheet-close { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px; background: var(--surface-2); color: var(--muted); cursor: pointer; }
.me-sheet-close .ic { width: 18px; height: 18px; }
.me-sheet-note { margin: 0 0 14px; font-size: .88rem; color: var(--muted); }
.me-sheet-note b { color: var(--text); }
.me-sheet-sub { margin: 16px 0 8px; font-size: .74rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--dim); }
.me-sheet-status { min-height: 1.2em; margin: 8px 0; font-size: .84rem; color: var(--err); }
.me-games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.me-empty { display: grid; justify-items: center; gap: 12px; padding: 26px 10px; text-align: center; color: var(--muted); }
.me-empty p { margin: 0; }
.me-notes { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.me-note { display: flex; gap: 12px; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-soft); }
.me-note.fresh { border-color: rgba(255, 200, 61, .35); }
.me-note > span:last-child { display: grid; gap: 2px; font-size: .84rem; }
.me-note strong { font-size: .9rem; }
.me-note span span { color: var(--muted); }
.me-note small { font-size: .74rem; color: var(--dim); }
.me-note small a { color: var(--yellow); }
.me-note-dot { width: 10px; height: 10px; flex: none; margin-top: 5px; border-radius: 50%; }
.me-note-dot.ok { background: var(--green); box-shadow: 0 0 0 4px rgba(52, 215, 122, .15); }
.me-note-dot.wait { background: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 200, 61, .15); }
.me-note-dot.bad { background: var(--err); box-shadow: 0 0 0 4px rgba(255, 90, 79, .15); }
.me-note-dot.offer { background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 106, 42, .15); }
.me-streak { display: grid; justify-items: center; gap: 2px; padding: 8px 0 16px; text-align: center; }
.me-streak-flame { width: 78px; height: 78px; display: grid; place-items: center; border-radius: 50%; color: var(--orange); background: radial-gradient(circle, rgba(255, 106, 42, .25), transparent 70%); }
.me-streak-flame .ic { width: 46px; height: 46px; filter: drop-shadow(0 0 14px rgba(255, 106, 42, .55)); }
.me-streak strong { font-size: 1.9rem; }
.me-streak > span:last-child { color: var(--muted); font-size: .88rem; }
.me-week { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 16px; }
.me-day { display: grid; justify-items: center; gap: 6px; font-size: .72rem; color: var(--dim); }
.me-day i { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); }
.me-day.on { color: var(--text); }
.me-day.on i { border-color: var(--orange); background: radial-gradient(circle at 40% 35%, #ffb36b, var(--orange)); box-shadow: 0 0 12px rgba(255, 106, 42, .45); }
.me-steps { display: grid; gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }
.me-steps li { display: flex; gap: 12px; align-items: flex-start; }
.me-steps li > span:last-child { display: grid; gap: 2px; font-size: .86rem; color: var(--muted); }
.me-steps strong { color: var(--text); font-size: .94rem; }
.me-steps a { color: var(--yellow); }
.me-step-ico { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 200, 61, .1); color: var(--yellow); }
.me-step-ico .ic { width: 20px; height: 20px; }
.me-stars { display: flex; justify-content: center; gap: 8px; margin: 6px 0 16px; }
.me-stars button { width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 0; background: none; color: var(--line); cursor: pointer; transition: transform .12s ease, color .12s ease; }
.me-stars button .ic { width: 40px; height: 40px; }
.me-stars button.on { color: var(--yellow); }
.me-stars button.on .ic { fill: currentColor; filter: drop-shadow(0 0 8px rgba(255, 200, 61, .45)); }
.me-stars button:active { transform: scale(.9); }
.me-textarea {
  width: 100%; resize: vertical; padding: 12px 13px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); font: inherit; font-size: .92rem;
}
.me-textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 204, 0, .14); }
.me-counter { margin-top: 4px; text-align: right; font-size: .74rem; color: var(--dim); }
.me-done { display: grid; justify-items: center; gap: 8px; padding: 6px 0 2px; text-align: center; }
.me-done h3 { margin: 4px 0 0; font-size: 1.2rem; }
.me-done p { margin: 0 0 10px; color: var(--muted); font-size: .9rem; }
.me-done-ico { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 200, 61, .12); color: var(--yellow); }
.me-done-ico .ic { width: 30px; height: 30px; }

/* log-out confirmation */
.me-dialog { position: fixed; inset: 0; z-index: 145; display: grid; place-items: center; padding: 20px; background: rgba(5, 6, 8, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.me-dialog-card {
  width: min(340px, 100%); padding: 24px 20px 18px; border-radius: 20px; text-align: center;
  background: linear-gradient(180deg, #1c1f25, #15171b); border: 1px solid var(--line);
  animation: payfx-pop .32s cubic-bezier(.2, 1.3, .4, 1) both;
}
.me-dialog-ico { width: 58px; height: 58px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 90, 79, .12); color: var(--err); }
.me-dialog-ico .ic { width: 26px; height: 26px; }
.me-dialog-card h2 { margin: 0 0 6px; font-size: 1.18rem; }
.me-dialog-card p { margin: 0; font-size: .9rem; color: var(--muted); }
.me-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }

/* ============ Transaction records ============ */
.txr-status { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.txr-count { margin: 0 2px 4px; font-size: .78rem; color: var(--dim); }
.txr-day { margin: 18px 2px 8px; font-size: .74rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--dim); }
.txr-group { border-radius: 14px; background: var(--surface); border: 1px solid var(--line-soft); overflow: hidden; }
.txr-row { display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; border-top: 1px solid var(--line-soft); }
.txr-row:first-child { border-top: 0; }
.txr-ico { width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center; }
.txr-ico .ic { width: 18px; height: 18px; }
.txr-ico.in { background: rgba(52, 215, 122, .13); color: var(--green); }
.txr-ico.out { background: rgba(255, 200, 61, .12); color: var(--yellow); }
.txr-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.txr-main strong { font-size: .92rem; }
.txr-main small { font-size: .75rem; color: var(--dim); overflow-wrap: anywhere; }
.txr-detail { color: var(--muted) !important; }
.txr-detail.bad { color: #ffaaa3 !important; }
.txr-end { display: grid; justify-items: end; gap: 5px; white-space: nowrap; }
.txr-end b { font-size: .95rem; font-variant-numeric: tabular-nums; }
.txr-end b.in { color: var(--green); }
.txr-end b.out { color: var(--text); }
.txr-end .tx-badge { margin-left: 0; }
.txr-loading { display: grid; gap: 10px; margin-top: 16px; }
.txr-loading i { height: 62px; border-radius: 14px; background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%) 0 0 / 200% 100%; animation: txr-shimmer 1.2s linear infinite; }
@keyframes txr-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .me-sheet, .me-sheet-panel, .me-dialog-card, .txr-loading i, .bubble.typing i { transition: none !important; animation: none !important; }
}

/* ============ Log in / register ============ */
.auth-page { max-width: 440px; padding-top: 22px; padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 24px); }
.auth-card {
  padding: 26px 20px 22px; border-radius: 22px; border: 1px solid var(--line);
  background: radial-gradient(120% 55% at 50% 0%, rgba(255, 200, 61, .13), transparent 62%), linear-gradient(180deg, #1c1f25, #15171b);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.auth-logo { display: block; margin: 0 auto 10px; filter: drop-shadow(0 6px 18px rgba(255, 200, 61, .35)); }
.auth-title { margin: 0; text-align: center; font-size: 1.45rem; }
.auth-lead { margin: 4px 0 18px; text-align: center; color: var(--muted); font-size: .92rem; }
.auth-lead:empty { display: none; }
.auth-tabs { margin-bottom: 18px; }
.auth-terms { margin: 2px 0 0; }
.auth-card #termsErr { display: block; min-height: 1.1em; margin: 4px 0 12px; font-size: .78rem; color: var(--err); }
.auth-forgot { display: block; margin: -2px 0 16px; text-align: right; font-size: .86rem; font-weight: 600; color: var(--yellow); }
.auth-switch { display: block; margin-top: 14px; text-align: center; font-size: .88rem; color: var(--muted); }
.auth-card #formMsg:not(:empty) { margin-top: 14px; }
.auth-card .signed-in { gap: 10px; padding-top: 4px; }
.auth-card .signed-in .btn { width: 100%; }
.auth-foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 0; font-size: .8rem; color: var(--dim); }
.auth-foot a { color: var(--muted); }
.auth-foot .me-18 { width: 30px; height: 30px; border-width: 2px; font-size: .66rem; }

/* admin back office */
.adm-actions { display: flex; gap: 6px; margin-top: 4px; }
.adm-actions .btn { min-height: 32px; padding: 5px 12px; }
.adm-reason { margin-top: 12px; }
#admBanner:not(:empty) { margin-bottom: 10px; }
.pay-tabs[hidden] { display: none; }

/* responsible gaming sheet */
.rg-field { display: grid; gap: 5px; margin-bottom: 14px; }
.rg-field label { font-size: .86rem; font-weight: 700; }
.rg-field label small { font-weight: 500; color: var(--dim); }
.rg-input { display: flex; align-items: center; gap: 8px; padding: 0 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.rg-input:focus-within { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 204, 0, .14); }
.rg-input span { color: var(--muted); font-weight: 700; }
.rg-input input { flex: 1; min-width: 0; padding: 12px 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 1rem; outline: none; }
.rg-used { font-size: .76rem; color: var(--dim); }
.rg-pending { font-size: .76rem; color: var(--yellow); }
.rg-breaks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rg-break-on { margin-bottom: 4px; }
.me-sheet-status.ok { color: var(--green); }
.rg-ico { background: rgba(255, 200, 61, .12) !important; color: var(--yellow) !important; }
.promo-soon { display: inline-block; align-self: start; margin-bottom: 4px; padding: 3px 10px; border-radius: var(--r-full); background: rgba(255, 200, 61, .14); color: var(--yellow); font-size: .74rem; font-weight: 800; letter-spacing: .3px; }

/* ---------------- touch responsiveness ---------------- */
/* taps register instantly on phones: no 300 ms click delay, no grey flash box */
a, button, input, select, textarea, label, [role="button"], [data-cta], .tile, .chip {
  touch-action: manipulation;
}
a, button, [role="button"], [data-cta] {
  -webkit-tap-highlight-color: transparent;
}

/* ============ Admin dashboard (admin.html) ============ */
.adm-body .pay-topbar { position: static; }
.adm-tabs {
  position: sticky; top: 0; z-index: 25; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 10px var(--gutter); background: rgba(13, 14, 16, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.adm-tabs::-webkit-scrollbar { display: none; }
.adm-tabs button {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 7px 14px; cursor: pointer;
  border-radius: var(--r-full); border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  font: inherit; font-weight: 700; font-size: .88rem;
}
.adm-tabs button:hover { color: var(--text); }
.adm-tabs button[aria-selected="true"] { border-color: var(--yellow); background: var(--yellow); color: #111; }
.adm-tabs .badge { background: var(--red); color: #fff; }
.adm-tabs button[aria-selected="true"] .badge { background: #111; color: var(--yellow); }
.adm-wrap { max-width: 1100px; margin: 0 auto; padding: 16px var(--gutter) calc(var(--nav-h) + var(--safe-bottom) + 24px); }
.adm-panel[hidden] { display: none; }
.adm-gate { display: grid; justify-items: center; gap: 10px; padding: 56px 20px; text-align: center; color: var(--muted); }
.adm-gate .ic { width: 46px; height: 46px; color: var(--yellow); }
.adm-gate h1 { margin: 0; font-size: 1.4rem; color: var(--text); }
.adm-gate a { color: var(--yellow); }
.adm-h { margin: 22px 2px 10px; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.adm-chips { margin-bottom: 10px; }

.adm-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; }
.adm-kpi { display: grid; gap: 4px; padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-soft); }
.adm-kpi span { font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--dim); }
.adm-kpi strong { font-size: 1.35rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.adm-kpi small { font-size: .76rem; color: var(--muted); }
.adm-kpi.in strong { color: var(--green); }
.adm-kpi.bad strong { color: var(--err); }
.adm-kpi.warn { border-color: rgba(255, 200, 61, .45); }
.adm-kpi.warn strong { color: var(--yellow); }
.adm-kpi.live strong::after {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; vertical-align: middle;
  border-radius: 50%; background: var(--green); animation: adm-pulse 1.6s infinite;
}
@keyframes adm-pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 215, 122, .6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(52, 215, 122, 0); } }

.adm-chart {
  display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; align-items: end; height: 170px; padding: 12px;
  border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-soft);
}
.adm-bar-day { display: grid; grid-template-rows: 1fr auto; gap: 6px; height: 100%; text-align: center; }
.adm-bars { display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 100%; }
.adm-bars i { width: 40%; max-width: 12px; min-height: 2px; border-radius: 3px 3px 0 0; }
.adm-bar-day span { font-size: .68rem; color: var(--dim); }
.adm-chart i.dep, .adm-legend i.dep { background: var(--yellow); }
.adm-chart i.ggr, .adm-legend i.ggr { background: var(--green); }
.adm-chart i.ggr.neg, .adm-legend i.ggr.neg { background: var(--err); }
.adm-legend { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 8px 2px 0; font-size: .76rem; color: var(--muted); }
.adm-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 4px; border-radius: 2px; vertical-align: -1px; }

.adm-table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line-soft); background: var(--surface); }
.adm-table { width: 100%; border-collapse: collapse; font-size: .86rem; font-variant-numeric: tabular-nums; }
.adm-table th { padding: 10px 12px; text-align: left; white-space: nowrap; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); border-bottom: 1px solid var(--line-soft); }
.adm-table td { padding: 10px 12px; border-top: 1px solid var(--line-soft); white-space: nowrap; }
.adm-table tr:first-child td { border-top: 0; }
.adm-table small { color: var(--dim); }
.adm-wrap td.in, .adm-wrap b.in, .adm-sheet td.in, .adm-sheet b.in { color: var(--green); }
.adm-wrap td.bad, .adm-wrap b.bad, .adm-sheet td.bad, .adm-sheet b.bad { color: #ff8a82; }

.adm-toolbar { display: grid; gap: 8px; margin-bottom: 10px; }
@media (min-width: 720px) { .adm-toolbar:has(.select) { grid-template-columns: 1fr 180px 180px; } }
.adm-more { margin-top: 12px; }
.adm-feed-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.adm-feed-head .adm-chips { margin-bottom: 0; }
.adm-live-dot { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: .78rem; font-weight: 800; color: var(--green); }
.adm-live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: adm-pulse 1.6s infinite; }
.adm-move.fresh { animation: adm-fresh 2.4s ease-out; }
@keyframes adm-fresh { from { background: rgba(255, 200, 61, .2); } to { background: transparent; } }

.adm-player, .adm-move[data-user] { cursor: pointer; }
.adm-player:hover, .adm-move[data-user]:hover, .adm-player:focus-visible, .adm-move[data-user]:focus-visible { background: var(--surface-2); outline: none; }
.adm-ava {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--yellow)); color: #111; font-weight: 900;
}
.adm-pills { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.adm-pills-row { justify-content: flex-start; margin: 12px 0 14px; }
.adm-pill { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--r-full); white-space: nowrap; font-size: .7rem; font-weight: 800; background: var(--surface-3); color: var(--muted); }
.adm-pill.ok { background: rgba(52, 215, 122, .14); color: var(--green); }
.adm-pill.warn { background: rgba(255, 200, 61, .14); color: var(--yellow); }
.adm-pill.bad { background: rgba(255, 90, 79, .15); color: #ff8a82; }
.adm-pill.brand { background: rgba(255, 106, 42, .16); color: #ffa27a; }

.adm-sheet-panel { width: min(760px, 100%); max-height: 92vh; }
.adm-who { display: flex; align-items: center; gap: 12px; }
.adm-who strong { display: block; font-size: 1.05rem; }
.adm-who small { display: block; font-size: .78rem; color: var(--dim); }
.adm-who a { color: var(--yellow); }
.adm-who .adm-id { font-family: ui-monospace, Menlo, monospace; font-size: .66rem; overflow-wrap: anywhere; }
.adm-who-bal { margin-left: auto; text-align: right; }
.adm-who-bal span { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.adm-who-bal b { font-size: 1.3rem; color: var(--yellow); font-variant-numeric: tabular-nums; }
.adm-minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.adm-mini { padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line-soft); }
.adm-mini span { display: block; font-size: .72rem; color: var(--dim); }
.adm-mini b { font-size: .98rem; font-variant-numeric: tabular-nums; }
.adm-mini b small { font-size: .72rem; font-weight: 600; color: var(--dim); }
.adm-mini.in b { color: var(--green); }
.adm-mini.bad b { color: #ff8a82; }
.adm-mini.warn b { color: var(--yellow); }
.adm-actions-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.adm-actions-box .btn .ic { width: 16px; height: 16px; margin-right: 6px; }
.adm-inline { display: flex; align-items: center; gap: 8px; }
.adm-inline .select { width: auto; min-height: 34px; font-size: .84rem; }
.adm-adjust, .adm-terms { display: grid; gap: 4px; }
.adm-adjust .field, .adm-terms .field { margin-bottom: 8px; }
.adm-adjust button, .adm-terms button { justify-self: start; }
@media (min-width: 640px) {
  .adm-adjust { grid-template-columns: 200px 1fr; column-gap: 10px; }
  .adm-terms { grid-template-columns: repeat(3, 1fr); column-gap: 10px; }
  .adm-adjust button, .adm-terms button, .adm-terms .adm-wide { grid-column: 1 / -1; }
}
.adm-log { display: grid; gap: 6px; font-size: .82rem; }
.adm-log div { padding: 8px 10px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--muted); overflow-wrap: anywhere; }
.adm-log b { color: var(--text); }
.adm-log small { display: block; color: var(--dim); }
.adm-reason { margin-top: 12px; }
.adm-ask-err { margin: 8px 0 0 !important; font-size: .82rem !important; color: var(--err) !important; }

.adm-studio { margin-bottom: 18px; }
.adm-studio-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 2px 8px; }
.adm-studio-head strong { display: block; font-size: 1rem; }
.adm-studio-head small { font-size: .78rem; color: var(--dim); }
.adm-game { align-items: center; }
.adm-studio.off .adm-game .txr-main, .adm-game.off .txr-main { opacity: .55; }
.adm-switch { position: relative; flex: none; width: 48px; height: 28px; cursor: pointer; }
.adm-switch input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.adm-switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line); transition: background .15s ease, border-color .15s ease; }
.adm-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #c9ced8; transition: transform .18s ease, background .15s ease; }
.adm-switch input:checked + span { background: rgba(52, 215, 122, .32); border-color: rgba(52, 215, 122, .6); }
.adm-switch input:checked + span::after { transform: translateX(20px); background: var(--green); }
.adm-switch input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }
.adm-addr { font-family: ui-monospace, Menlo, monospace; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) {
  .adm-kpi.live strong::after, .adm-live-dot::before, .adm-move.fresh, .adm-switch span, .adm-switch span::after { animation: none !important; transition: none !important; }
}

/* ============ Partner portal (partners.html) ============ */
.prt-body .pay-topbar { position: static; }
.prt-wrap { max-width: 900px; }
.prt-hero { display: grid; justify-items: center; gap: 8px; padding: 26px 8px 18px; text-align: center; }
.prt-hero-ico { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 200, 61, .12); color: var(--yellow); }
.prt-hero-ico .ic { width: 30px; height: 30px; }
.prt-hero h1 { margin: 4px 0 0; font-size: clamp(1.5rem, 4vw, 2rem); }
.prt-hero p { max-width: 560px; margin: 0; color: var(--muted); line-height: 1.6; }
.prt-steps { display: grid; gap: 10px; margin: 6px 0 18px; }
@media (min-width: 720px) { .prt-steps { grid-template-columns: repeat(3, 1fr); } }
.prt-step { display: flex; gap: 12px; padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-soft); }
.prt-step > b { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: #111; font-weight: 900; }
.prt-step strong { display: block; margin-bottom: 2px; }
.prt-step p { margin: 0; font-size: .86rem; color: var(--muted); }
.prt-apply { display: grid; gap: 4px; }
.prt-apply .checkbox { margin: 8px 0 14px; }
.prt-rules { margin: 0 0 6px; padding-left: 18px; display: grid; gap: 6px; font-size: .86rem; color: var(--muted); }
.prt-rules b { color: var(--text); }
.prt-code { display: grid; justify-items: center; gap: 4px; text-align: center; }
.prt-code span, .prt-label { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.prt-code b, .prt-codeval { font-family: ui-monospace, Menlo, monospace; font-size: 1.5rem; letter-spacing: .08em; color: var(--yellow); }
.prt-code small { color: var(--dim); }
.prt-top {
  display: grid; gap: 14px; padding: 18px; border-radius: var(--r-lg);
  background: radial-gradient(120% 140% at 100% 0%, rgba(255, 150, 20, .18), transparent 55%), var(--surface); border: 1px solid rgba(255, 200, 61, .35);
}
@media (min-width: 640px) { .prt-top { grid-template-columns: 1fr auto; align-items: center; } }
.prt-codeval { display: block; margin: 2px 0 6px; }
.prt-terms { margin: 0; font-size: .88rem; color: var(--muted); }
.prt-terms b { color: var(--text); }
.prt-avail { display: grid; gap: 6px; justify-items: start; }
@media (min-width: 640px) { .prt-avail { justify-items: end; text-align: right; } }
.prt-avail > b { font-size: 1.8rem; color: var(--green); font-variant-numeric: tabular-nums; }
.prt-avail small { font-size: .76rem; color: var(--dim); }
.prt-chart { grid-template-columns: repeat(30, 1fr); gap: 3px; height: 130px; margin-top: 12px; }
.prt-chart .adm-bars i { width: 45%; }
.prt-linkbox { display: grid; gap: 10px; }
.prt-linkrow { display: flex; gap: 8px; }
.prt-linkrow input {
  flex: 1; min-width: 0; min-height: 40px; padding: 8px 12px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: #141414; color: var(--yellow); font-family: ui-monospace, Menlo, monospace; font-size: .84rem;
}
.prt-sub { margin-bottom: 0; }
.prt-sub input { max-width: 360px; }
.prt-banners { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.prt-banner { margin: 0; display: grid; grid-template-rows: auto 1fr; border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line-soft); }
.prt-banner-img { display: grid; place-items: center; height: 170px; padding: 10px; background: repeating-conic-gradient(#15171b 0% 25%, #111316 0% 50%) 50% / 16px 16px; }
.prt-banner-img img { max-width: 100%; max-height: 150px; object-fit: contain; border-radius: 4px; box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
.prt-banner figcaption { display: grid; gap: 8px; padding: 12px; }
.prt-banner figcaption strong { font-size: .88rem; }
.prt-banner figcaption span { display: flex; flex-wrap: wrap; gap: 6px; }
.prt-payout { display: grid; gap: 2px; margin-bottom: 12px; }
.prt-payout .chip-list { margin-top: 4px; }
.prt-how p { margin: 0 0 10px; font-size: .9rem; line-height: 1.6; color: var(--muted); }
.prt-how p b { color: var(--text); }
.prt-copytext { display: block; margin-top: 6px; padding: 8px; border-radius: 6px; background: #111; font-size: .78rem; overflow-wrap: anywhere; color: var(--text); }
@media (max-width: 480px) {
  .adm-table { font-size: .78rem; }
  .adm-table th, .adm-table td { padding: 8px 7px; }
  .adm-table th { font-size: .62rem; letter-spacing: .04em; }
}

/* deposit: the paying number is editable */
.pay-phone-edit { margin-bottom: 4px; padding: 6px 8px 6px 16px; }
.pay-phone-edit:focus-within { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 204, 0, .14); }
.pay-phone-edit input {
  flex: 1; min-width: 0; min-height: 44px; padding: 0; border: 0; outline: none; background: none;
  color: var(--text); font: inherit; font-size: 1.05rem; letter-spacing: .4px;
}
.pay-phone-mine {
  flex: none; padding: 7px 11px; border-radius: var(--r-full); border: 1px solid var(--line); cursor: pointer;
  background: var(--surface-2); color: var(--yellow); font: inherit; font-size: .78rem; font-weight: 700;
}
.pay-phone-mine[hidden] { display: none; }
.pay-phone-hint { margin: 2px 4px 14px; font-size: .8rem; line-height: 1.45; color: var(--dim); }
