/* ==========================================================================
   Prizmplay Gaming — gold theme
   ========================================================================== */

:root {
  --bg: #0c0805;
  --bg-2: #140d07;
  --surface: #1b130b;
  --surface-2: #241a0f;
  --line: rgba(255, 205, 90, 0.16);
  --line-strong: rgba(255, 205, 90, 0.35);

  --gold-1: #fff3c4;
  --gold-2: #ffd66b;
  --gold-3: #f5b82e;
  --gold-4: #c98a12;
  --gold-5: #8a5a06;
  --gold-grad: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 35%, var(--gold-3) 65%, var(--gold-4) 100%);
  --gold-btn: linear-gradient(180deg, #ffe48f 0%, #f7c33c 45%, #e2a41c 100%);

  --magenta: #e2399b;
  --text: #f6eedf;
  --muted: #b9a98c;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  --glow: 0 0 0 1px var(--line-strong), 0 10px 40px -10px rgba(245, 184, 46, 0.45);

  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: var(--gold-1); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold-2); color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 12px rgba(245, 184, 46, 0.35));
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 700 15px/1 var(--font-display);
  padding: 14px 22px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 17px 30px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-gold {
  background: var(--gold-btn); color: #2a1800;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 -2px 0 rgba(0,0,0,.15) inset, 0 8px 24px -8px rgba(245, 184, 46, .7);
}
.btn-gold:hover { color: #1a0f00; box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 12px 32px -8px rgba(245, 184, 46, .9); }
.btn-ghost { background: rgba(255, 214, 107, .06); color: var(--gold-1); box-shadow: 0 0 0 1.5px var(--line-strong) inset; }
.btn-ghost:hover { background: rgba(255, 214, 107, .14); color: #fff; }
.btn-dark { background: #1a1006; color: var(--gold-2); }
.btn-dark:hover { background: #000; color: var(--gold-1); }
.btn-outline-dark { background: transparent; color: #2a1800; box-shadow: 0 0 0 2px rgba(42, 24, 0, .55) inset; }
.btn-outline-dark:hover { background: rgba(42, 24, 0, .1); color: #1a0f00; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 8, 5, .78);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { width: 150px; height: auto; border-radius: 10px; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) {
  color: var(--text); font: 600 15px var(--font-display); padding: 10px 14px; border-radius: 999px;
  transition: color .2s, background .2s;
}
.site-nav a:not(.btn):hover { color: var(--gold-2); background: rgba(255, 214, 107, .06); }
.site-nav a[aria-current="page"] { color: var(--gold-2); }
.site-nav .btn { margin-left: 8px; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--gold-2); border-radius: 2px; margin: 5px 0; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .brand img { width: 124px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px; background: #0e0905; border-bottom: 1px solid var(--line-strong); box-shadow: 0 30px 60px -10px rgba(0, 0, 0, .85);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s ease;
  }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; }
  .site-nav a:not(.btn) { padding: 14px 16px; font-size: 17px; }
  .site-nav .btn { margin: 8px 0 0; padding: 15px; }
}

/* ---------- Hero ---------- */
.hero, .page-hero { position: relative; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 120%; pointer-events: none;
  background:
    radial-gradient(40% 50% at 75% 40%, rgba(245, 184, 46, .22), transparent 70%),
    radial-gradient(30% 40% at 15% 20%, rgba(226, 57, 155, .12), transparent 70%),
    radial-gradient(50% 50% at 50% 100%, rgba(201, 138, 18, .12), transparent 70%);
}
.hero::after, .page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 214, 107, .5) 1px, transparent 1.5px);
  background-size: 34px 34px;
  mask-image: radial-gradient(60% 60% at 70% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 60% at 70% 40%, #000, transparent 75%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding-block: 72px 88px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 13px var(--font-display); letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold-2); padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 214, 107, .07); box-shadow: 0 0 0 1px var(--line) inset;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); } }

.hero h1 { font-size: clamp(38px, 5.6vw, 66px); font-weight: 800; margin: 22px 0 20px; }
.hero h1 .gold-text { font-style: italic; font-weight: 900; padding-right: .08em; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 560px; }
.lead strong { color: var(--text); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.hero-ticks { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-weight: 500; }
.hero-ticks li { display: flex; align-items: center; gap: 8px; }
.hero-ticks li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  box-shadow: 0 0 10px rgba(245, 184, 46, .5);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a1800' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat, var(--gold-btn);
}

.hero-art { position: relative; }
.hero-frame {
  position: relative; border-radius: 28px; padding: 3px;
  background: linear-gradient(140deg, var(--gold-1), var(--gold-4) 40%, var(--gold-5) 60%, var(--gold-2));
  box-shadow: 0 30px 80px -20px rgba(245, 184, 46, .45), 0 0 120px -30px rgba(226, 57, 155, .4);
  transform: rotate(1.5deg);
  animation: float 7s ease-in-out infinite;
}
.hero-frame img { border-radius: 25px; width: 100%; }
@keyframes float { 50% { transform: rotate(1.5deg) translateY(-10px); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-block: 44px 64px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-cta, .hero-ticks { justify-content: center; }
  .hero-art { max-width: 460px; margin: 0 auto; width: 100%; }
}
@media (max-width: 480px) {
  .hero-cta { width: 100%; flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}

/* ---------- Hero "We accept" row ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.accept { margin: 6px 0 4px; }
.accept-label { font: 700 13px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-3); margin: 0 0 10px; }
.accept-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: 520px; }
.pay-badge.pay-mini {
  width: 58px; height: 38px; margin: 0; border-radius: 9px; gap: 3px; padding: 0 6px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 6px 14px -8px rgba(0, 0, 0, .9);
  transition: transform .2s ease;
}
.accept-row li:hover .pay-mini, .accept-link:focus-visible .pay-mini { transform: translateY(-3px); }
.accept-link { display: block; border-radius: 9px; }
.pay-mini .pay-logo svg { height: 20px; }
.pay-mini .pay-logo-applepay svg { height: 26px; }
.pay-mini .pay-logo-googlepay svg { height: 17px; }
.pay-mini .pay-logo-bitcoin svg, .pay-mini .pay-logo-tether svg { height: 17px; }
.pay-mini .pay-logo-text { display: none; }
.pay-mini .pay-wordmark { font-size: 15px; }
.pay-mini .line-icon { width: 22px; height: 22px; }
@media (max-width: 900px) { .accept { display: flex; flex-direction: column; align-items: center; } .accept-row { justify-content: center; } }

/* ---------- Stats ---------- */
.stats {
  position: relative;
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 36px 12px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num { font: italic 900 clamp(36px, 4.6vw, 54px)/1 var(--font-display); }
.stat-label { margin-top: 10px; color: var(--muted); font-weight: 500; font-size: 15px; }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat { padding: 26px 8px; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-alt { background: radial-gradient(70% 60% at 50% 0%, rgba(245, 184, 46, .08), transparent 70%), var(--bg-2); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.section-head h2 .gold-text { font-style: italic; font-weight: 900; padding-right: .06em; }
.section-head p:last-child { color: var(--muted); font-size: 17px; margin: 0; }
.kicker { font: 700 13px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-3); margin-bottom: 12px; }
@media (max-width: 640px) { .section { padding: 68px 0; } .section-head { margin-bottom: 36px; } }

/* ---------- Announcement bar ---------- */
.announce {
  position: relative; overflow: hidden; color: #2a1800; font-size: 14px; text-align: center;
  background: linear-gradient(90deg, #d7930f, #ffe48f 30%, #f5b82e 60%, #d7930f);
  background-size: 200% 100%; animation: announce-slide 8s linear infinite;
}
@keyframes announce-slide { to { background-position: -200% 0; } }
.announce-inner { display: flex; align-items: center; justify-content: center; gap: 12px; padding-block: 9px; }
.announce strong { font-family: var(--font-display); font-weight: 800; }
.announce-spark { font-size: 12px; animation: spark 1.6s ease-in-out infinite; }
@keyframes spark { 50% { transform: scale(1.4) rotate(45deg); } }
@media (max-width: 560px) { .announce-sub { display: none; } .announce { font-size: 13px; } }

/* ---------- Rebrand (old -> new) in hero ---------- */
.rb-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%); z-index: 2; white-space: nowrap;
  font: 700 12px var(--font-display); letter-spacing: .16em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; background: #2a2118; color: var(--muted); box-shadow: 0 0 0 1px var(--line-strong);
}
.rb-tag-new { background: var(--gold-btn); color: #2a1800; box-shadow: 0 6px 18px -6px rgba(245, 184, 46, .8); }
.hero-new-tag { top: -14px; font-size: 13px; padding: 7px 18px; }

.hero-old {
  position: absolute; left: -54px; bottom: 34px; z-index: 3; margin: 0; width: 168px;
  transform: rotate(-7deg);
}
.hero-old img {
  width: 100%; border-radius: 18px; border: 3px solid #3a2e22;
  filter: saturate(.6) brightness(.85);
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .9);
}
.hero-old .rb-arrow {
  position: absolute; left: calc(100% - 6px); top: 50%; transform: translateY(-50%) rotate(7deg);
  padding: 9px 10px 9px 6px; border-radius: 999px; background: rgba(12, 8, 5, .88);
  box-shadow: 0 0 0 1px var(--line-strong), 0 8px 20px -6px rgba(0, 0, 0, .8);
}

.rb-arrow { display: flex; gap: 2px; }
.rb-arrow span {
  width: 18px; height: 18px; border: solid var(--gold-2); border-width: 0 4px 4px 0; border-radius: 3px;
  transform: rotate(-45deg); opacity: .2; animation: rb-chev 1.4s ease-in-out infinite;
}
.rb-arrow span:nth-child(2) { animation-delay: .2s; }
.rb-arrow span:nth-child(3) { animation-delay: .4s; }
@keyframes rb-chev { 40% { opacity: 1; filter: drop-shadow(0 0 8px rgba(245, 184, 46, .9)); } }

@media (max-width: 900px) {
  .hero-art { padding-left: 34px; }
  .hero-old { left: 0; bottom: 18px; width: 120px; }
  .eyebrow { font-size: 11px; letter-spacing: .04em; }
  .rb-arrow span { width: 14px; height: 14px; border-width: 0 3px 3px 0; }
}
@media (max-width: 420px) {
  .hero-old { width: 96px; left: 0; }
  .hero-old .rb-tag { font-size: 10px; padding: 5px 10px; }
}

/* ---------- Payments ---------- */
.pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pay-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.pay-card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--glow); }
.pay-badge {
  height: 72px; border-radius: 14px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 10px 26px -12px rgba(0, 0, 0, .8);
  transition: transform .25s ease;
}
.pay-card:hover .pay-badge { transform: scale(1.03); }
.pay-logo svg { display: block; height: 44px; width: auto; }
.pay-logo-applepay svg { height: 46px; }
.pay-logo-googlepay svg { height: 34px; }
.pay-logo-cashapp svg, .pay-logo-paypal svg { height: 30px; }
.pay-logo-bitcoin svg, .pay-logo-tether svg { height: 36px; }
.pay-logo-text { font: 800 22px/1 var(--font-display); letter-spacing: -.01em; }
.pay-wordmark { font: 800 34px/1 var(--font-display); letter-spacing: -.03em; }
.pay-badge .line-icon { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pay-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--gold-btn); box-shadow: 0 8px 24px -8px rgba(245, 184, 46, .7);
}
.pay-icon svg { width: 28px; height: 28px; fill: none; stroke: #2a1800; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pay-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.pay-card p { color: var(--muted); margin: 0; font-size: 15px; }

.perks {
  margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 214, 107, .03);
}
.perk { display: flex; gap: 14px; align-items: flex-start; padding: 22px 24px; }
.perk + .perk { border-left: 1px solid var(--line); }
.perk svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--gold-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.perk strong { display: block; font-family: var(--font-display); font-size: 17px; }
.perk span { color: var(--muted); font-size: 15px; }

@media (max-width: 760px) {
  .perks { grid-template-columns: 1fr; }
  .perk + .perk { border-left: 0; border-top: 1px solid var(--line); }
}

/* Compact icon tiles on every screen size (8 across on desktop, 4 on tablets/phones).
   Click/tap a tile to see its description in the box below. */
.pay-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; max-width: 1040px; margin: 0 auto; }
.pay-card { min-width: 0; padding: 10px 8px 12px; border-radius: 14px; text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pay-card:hover { transform: translateY(-3px); }
.pay-card .pay-badge { height: 52px; margin-bottom: 10px; border-radius: 10px; gap: 4px; padding: 0 6px; overflow: hidden; }
.pay-card .pay-logo svg { height: 24px; max-width: 100%; }
.pay-card .pay-logo-applepay svg { height: 32px; }
.pay-card .pay-logo-googlepay svg { height: 22px; }
.pay-card .pay-logo-bitcoin svg, .pay-card .pay-logo-tether svg { height: 20px; }
.pay-card .pay-logo-text { display: none; }
.pay-card .pay-wordmark { font-size: 19px; }
.pay-card .line-icon { width: 26px; height: 26px; }
.pay-card h3 { font-size: 13.5px; font-weight: 600; margin: 0; line-height: 1.25; }
.pay-card p { display: none; }
/* Selected tile (from a click, or from the hero 'We accept' icons) */
.pay-card.is-active { border-color: var(--gold-2); box-shadow: var(--glow); }
.pay-info {
  display: block; max-width: 1040px; margin: 16px auto 0; padding: 14px 16px; min-height: 52px; border-radius: 14px;
  border: 1px solid var(--line-strong); background: rgba(255, 214, 107, .06); color: var(--muted); font-size: 15px; text-align: center;
}
.pay-info strong { color: var(--gold-1); }
.pay-info-hint { opacity: .8; }
.perks { max-width: 1040px; margin-left: auto; margin-right: auto; }
@media (max-width: 900px) {
  .pay-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pay-grid { gap: 10px; }
  .pay-card { padding: 8px 6px 10px; }
  .pay-card .pay-badge { height: 44px; margin-bottom: 8px; padding: 0 4px; }
  .pay-card .pay-logo svg { height: 22px; }
  .pay-card .pay-logo-applepay svg { height: 28px; }
  .pay-card .pay-logo-googlepay svg { height: 20px; }
  .pay-card .pay-logo-bitcoin svg, .pay-card .pay-logo-tether svg { height: 18px; }
  .pay-card .pay-wordmark { font-size: 17px; }
  .pay-card .line-icon { width: 24px; height: 24px; }
  .pay-card h3 { font-size: 12px; }
}
@media (max-width: 340px) {
  .pay-grid { gap: 7px; }
  .pay-card h3 { font-size: 11px; }
}

/* ---------- Games ---------- */
.games-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.game-card {
  --accent: hsl(var(--hue) 85% 55%);
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 18px 18px 20px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.game-card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--glow); }
.game-art {
  position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 12px; margin-bottom: 16px;
  display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(60% 70% at 50% 45%, hsl(var(--hue) 85% 55% / .55), transparent 70%),
    radial-gradient(120% 90% at 50% 120%, rgba(245, 184, 46, .35), transparent 60%),
    linear-gradient(160deg, #2a1d0e, #120b05);
  box-shadow: 0 0 0 1px rgba(255, 214, 107, .22) inset;
}
.game-art::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-conic-gradient(from 0deg at 50% 45%, rgba(255, 230, 160, .07) 0 10deg, transparent 10deg 20deg);
  transition: transform 1.2s ease;
}
.game-card:hover .game-art::before { transform: rotate(30deg) scale(1.2); }
.game-emoji { position: relative; font-size: clamp(44px, 5vw, 58px); line-height: 1; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .55)); transition: transform .3s ease; }
.game-card:hover .game-emoji { transform: scale(1.12) rotate(-4deg); }
.game-card h3 { font-size: 19px; font-weight: 800; letter-spacing: .01em; margin-bottom: 14px; }
.game-card .btn { margin-top: auto; padding: 12px 18px; }

@media (max-width: 960px) { .games-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .games-grid { grid-template-columns: 1fr 1fr; gap: 12px; } .game-card { padding: 12px 12px 14px; } .game-card h3 { font-size: 16px; } .game-card .btn { font-size: 14px; padding: 11px 10px; } }
.game-card { min-width: 0; }
@media (max-width: 360px) { .games-grid { gap: 10px; } .game-card { padding: 10px 10px 12px; } .game-card h3 { font-size: 15px; } .game-card .btn { font-size: 13px; padding: 10px 6px; gap: .35em; } .game-card .btn svg { width: 15px; height: 15px; } }

/* ---------- Broken-link help ---------- */
.link-help {
  margin-top: 28px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px 22px; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: linear-gradient(120deg, rgba(255, 214, 107, .1), rgba(255, 214, 107, .02));
}
.link-help svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--gold-2); stroke-width: 2; stroke-linecap: round; }
.link-help p { margin: 0; flex: 1; min-width: 220px; color: var(--muted); }
.link-help strong { color: var(--gold-1); }
@media (max-width: 560px) { .link-help { flex-direction: column; text-align: center; } .link-help .btn { width: 100%; } }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step {
  position: relative; padding: 34px 28px 30px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
}
.step-num {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; margin-bottom: 18px;
  font: italic 900 24px var(--font-display); color: #2a1800; background: var(--gold-btn);
  box-shadow: 0 0 0 6px rgba(245, 184, 46, .12), 0 8px 24px -6px rgba(245, 184, 46, .7);
}
.step h3 { font-size: 21px; font-weight: 700; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 96px; }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  border-radius: 26px; padding: 44px 48px; color: #2a1800;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(255, 255, 255, .45), transparent 60%),
    linear-gradient(120deg, #ffe48f, #f5b82e 55%, #d7930f);
  box-shadow: 0 30px 70px -25px rgba(245, 184, 46, .6);
}
.wrap.cta-inner { max-width: calc(1200px - 56px); }
.cta-inner h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 900; font-style: italic; margin-bottom: 6px; }
.cta-inner p { margin: 0; font-weight: 500; font-size: 17px; opacity: .85; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .cta-band { padding-bottom: 68px; }
  .cta-inner { margin: 0 16px; width: auto; padding: 32px 22px; text-align: center; justify-content: center; }
  .cta-actions { width: 100%; flex-direction: column; }
  .cta-actions .btn { width: 100%; white-space: normal; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #080503; padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand img { width: 180px; border-radius: 12px; margin-bottom: 16px; }
.footer-brand p { color: var(--muted); max-width: 340px; }
.site-footer h3 { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-3); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--muted); }
.site-footer ul a { color: var(--text); }
.site-footer ul a:hover { color: var(--gold-2); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 24px 32px; display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.footer-bottom p { margin: 0; }
.age { display: flex; align-items: center; gap: 10px; max-width: 720px; }
.badge-18 { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--gold-3); color: var(--gold-2); font: 800 13px var(--font-display); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Rules page ---------- */
.page-hero { border-bottom: 1px solid var(--line); }
.page-hero .wrap { position: relative; z-index: 1; padding-block: 72px 60px; text-align: center; }
.page-hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; }
.page-hero h1 .gold-text { font-style: italic; font-weight: 900; padding-right: .06em; }
.page-hero .lead { margin: 0 auto 14px; }
.updated { color: var(--gold-3); font-size: 14px; font-weight: 600; margin: 0; }

.rules-section { padding-top: 56px; }
.rules-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); }
.toc-title { font: 700 12px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-3); }
.toc nav { display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { color: var(--muted); padding: 8px 0 8px 16px; margin-left: -1px; border-left: 2px solid transparent; font-weight: 500; font-size: 15px; transition: color .2s, border-color .2s; }
.toc a:hover, .toc a.active { color: var(--gold-2); border-left-color: var(--gold-2); }

.rules-body { min-width: 0; display: grid; gap: 22px; }
.rule-block {
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: 30px 32px;
}
.rule-block h2 { display: flex; align-items: center; gap: 14px; font-size: 24px; font-weight: 700; margin-bottom: 18px; }
.rule-icon { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--gold-btn); }
.rule-icon svg { width: 22px; height: 22px; fill: none; stroke: #2a1800; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rule-note {
  background: rgba(226, 57, 155, .08); border: 1px solid rgba(226, 57, 155, .3);
  border-radius: var(--radius-sm); padding: 14px 18px; font-size: 15px; color: #f3d9e8;
}
.rule-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rule-list li { position: relative; padding-left: 30px; color: #e3d6bf; }
.rule-list li::before {
  content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; transform: rotate(45deg);
  background: var(--gold-btn); box-shadow: 0 0 8px rgba(245, 184, 46, .6);
}
.rule-list strong { color: var(--gold-1); font-weight: 600; }

.callout {
  display: flex; gap: 16px; align-items: flex-start;
  border-radius: var(--radius); padding: 24px 26px;
  background: rgba(255, 214, 107, .05); border: 1px solid var(--line-strong);
}
.callout > svg { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--gold-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.callout strong { font-family: var(--font-display); font-size: 18px; display: block; margin-bottom: 6px; color: var(--gold-1); }
.callout p { margin: 0; color: var(--muted); }
.callout ul { margin: 0; padding-left: 18px; color: #e3d6bf; display: grid; gap: 4px; }
.callout ul strong { display: inline; font-family: inherit; font-size: inherit; margin: 0; }
.callout-key { background: linear-gradient(120deg, rgba(255, 214, 107, .12), rgba(255, 214, 107, .03)); }

@media (max-width: 900px) {
  .rules-layout { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
  .toc nav { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
  .toc a { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; margin: 0; font-size: 14px; }
  .toc a:hover { border-color: var(--gold-2); }
}
@media (max-width: 560px) {
  .rule-block { padding: 22px 18px; }
  .rule-block h2 { font-size: 20px; }
  .callout { padding: 20px 18px; }
  .page-hero .wrap { padding-block: 52px 44px; }
}

/* ---------- Promo banners (rules page) ---------- */
.promos { display: grid; gap: 18px; }
.promo {
  --c1: #f5b82e; --c2: #e2399b;
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; min-height: 300px;
  padding: 34px 40px; border-radius: 22px; color: var(--text);
  background: #07080f;
  box-shadow: 0 20px 60px -20px rgba(245, 184, 46, .55);
  transition: transform .25s ease, box-shadow .25s ease;
}
.promo-alt { --c1: #e2399b; --c2: #f5b82e; box-shadow: 0 20px 60px -20px rgba(255, 120, 40, .55); }
.promo:hover { transform: translateY(-4px); color: var(--text); }
.promo-art { position: absolute; inset: 0 0 0 auto; width: 62%; z-index: -2; }
.promo-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .6s ease; }
.promo:hover .promo-art img { transform: scale(1.05); }
.promo-art::after { /* fade art into the dark left side */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #07080f 0%, rgba(7, 8, 15, .7) 25%, transparent 60%);
}
.promo-body { position: relative; display: flex; flex-direction: column; align-items: flex-start; max-width: 440px; }
/* animated gold border */
.promo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--ang, 0deg), var(--c1), #fff3c4, var(--c2), var(--c1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin-border 4s linear infinite;
}
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin-border { to { --ang: 360deg; } }
/* sweeping shine */
.promo-shine {
  position: absolute; inset: -50% auto -50% -60%; width: 40%; z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255, 243, 196, .22), transparent);
  transform: rotate(20deg); animation: shine 3.6s ease-in-out infinite;
}
.promo-alt .promo-shine { animation-delay: 1.8s; }
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }

.promo-tag {
  font: 700 12px var(--font-display); letter-spacing: .16em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; color: #2a1800; background: var(--gold-btn);
  box-shadow: 0 6px 18px -6px rgba(245, 184, 46, .8);
}
.promo-num {
  display: flex; flex-direction: column; align-items: flex-start;
  font: italic 900 clamp(64px, 9vw, 104px)/.95 var(--font-display); margin: 16px 0 4px; padding-right: .08em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 22px rgba(245, 184, 46, .55));
  animation: pop 2.4s ease-in-out infinite;
}
.promo-num small { font-size: 18px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 2px; }
@keyframes pop { 50% { transform: scale(1.05); filter: drop-shadow(0 4px 32px rgba(245, 184, 46, .85)); } }
.promo-title { font: 800 26px/1.15 var(--font-display); }
.promo-sub { color: var(--muted); margin: 4px 0 22px; }
.promo .btn { pointer-events: none; }
.promo-terms { text-align: center; color: var(--muted); font-size: 14px; margin: 0; }
@media (max-width: 640px) {
  .promo { flex-direction: column; justify-content: flex-end; min-height: 520px; padding: 24px 22px 26px; }
  .promo-art { inset: 0 0 auto 0; width: 100%; height: 62%; }
  .promo-art::after { background: linear-gradient(0deg, #07080f 0%, rgba(7, 8, 15, .5) 30%, transparent 65%); }
  .promo-body { align-items: center; text-align: center; max-width: none; width: 100%; }
  .promo-num { align-items: center; }
}

/* ---------- Auth pages (signup / login / account) ---------- */
.auth { position: relative; overflow: hidden; min-height: calc(100vh - var(--header-h) - 40px); }
.auth-wrap { position: relative; z-index: 1; display: flex; justify-content: center; padding-block: 56px 80px; }
.auth-card {
  width: 100%; max-width: 480px; padding: 36px 34px 32px; border-radius: 24px;
  background: linear-gradient(180deg, rgba(36, 26, 15, .92), rgba(27, 19, 11, .92));
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 80px -40px rgba(245, 184, 46, .5);
}
.auth-head { text-align: center; margin-bottom: 24px; }
.auth-head .promo-tag { display: inline-block; margin-bottom: 14px; }
.auth-head h1 { font-size: clamp(30px, 4vw, 38px); font-weight: 800; margin-bottom: 8px; }
.auth-head h1 .gold-text { font-style: italic; font-weight: 900; padding-right: .06em; }
.auth-head p { color: var(--muted); margin: 0; }
.auth-form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > span:first-child { font: 600 14px var(--font-display); color: var(--text); }
.field small { color: var(--muted); font-size: 13px; }
.req { color: var(--gold-3); font-style: normal; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; gap: 16px; } }
.auth-form input::placeholder { color: #6f6250; }
.auth-form input[type="text"], .auth-form input[type="email"], .auth-form input[type="tel"], .auth-form input[type="password"] {
  width: 100%; font: 500 16px var(--font-body); color: var(--text);
  background: #100a05; border: 1px solid var(--line-strong); border-radius: 12px; padding: 13px 15px;
  transition: border-color .2s, box-shadow .2s;
}
.auth-form input:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 4px rgba(245, 184, 46, .18); }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 70px !important; }
.pw-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: 0; background: rgba(255, 214, 107, .1); color: var(--gold-2); cursor: pointer;
  font: 600 13px var(--font-display); padding: 6px 10px; border-radius: 8px;
}
.pw-toggle:hover { background: rgba(255, 214, 107, .2); }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 15px; cursor: pointer; }
.check input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--gold-3); flex: none; }
.check strong { color: var(--text); }
.field-error { color: #ff8a8a; font-size: 13.5px; margin: -4px 0 0; }
.check + .field-error { margin-top: -10px; }
.alert { border-radius: 12px; padding: 13px 16px; margin-bottom: 18px; font-size: 15px; }
.alert-error { background: rgba(255, 80, 80, .1); border: 1px solid rgba(255, 110, 110, .4); color: #ffc2c2; }
.alert-ok { background: rgba(74, 222, 128, .1); border: 1px solid rgba(74, 222, 128, .4); color: #c6f6d5; }
.auth-form .btn-block { margin-top: 6px; }
.auth-foot { text-align: center; color: var(--muted); font-size: 14px; margin: 0; }
@media (max-width: 480px) { .auth-card { padding: 28px 20px 24px; } .auth-wrap { padding-block: 32px 56px; } }

.account-wrap { position: relative; z-index: 1; padding-block: 56px 80px; max-width: 960px; }
.account-head { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.account-head h1 { font-size: clamp(30px, 4.5vw, 44px); font-weight: 800; margin: 0 0 6px; }
.account-head h1 .gold-text { font-style: italic; font-weight: 900; padding-right: .06em; }
.account-head p { margin: 0; color: var(--muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.avatar {
  width: 72px; height: 72px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font: italic 900 26px var(--font-display); color: #2a1800; background: var(--gold-btn);
  box-shadow: 0 0 0 5px rgba(245, 184, 46, .15), 0 10px 30px -8px rgba(245, 184, 46, .7);
}
.role-badge { font: 700 11px var(--font-display); letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.role-user { background: rgba(255, 214, 107, .12); color: var(--gold-2); box-shadow: 0 0 0 1px var(--line-strong) inset; }
.role-admin { background: linear-gradient(90deg, var(--magenta), #9b4dff); color: #fff; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.account-card {
  padding: 28px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.account-card h2 { font-size: 21px; font-weight: 700; margin-bottom: 16px; }
.details { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0 0 22px; }
.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 600; word-break: break-word; }
.account-cta { border-color: var(--line-strong); background: linear-gradient(140deg, rgba(255, 214, 107, .12), rgba(27, 19, 11, 1) 60%); }
.account-cta p { color: var(--muted); }
.account-cta strong { color: var(--gold-1); }
.cta-stack { display: grid; gap: 10px; margin-top: 18px; }
.account-wrap > .alert { margin-bottom: 24px; }
@media (max-width: 720px) { .account-grid { grid-template-columns: 1fr; } .avatar { width: 58px; height: 58px; font-size: 26px; } }

.nav-account { gap: 8px; padding-left: 6px; }
.nav-avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #2a1800; color: var(--gold-2); font: italic 900 13px var(--font-display); }

/* ---------- Manager panel ---------- */
.role-manager { background: linear-gradient(90deg, #ffe48f, #f5b82e); color: #2a1800; box-shadow: 0 0 0 1px rgba(255,255,255,.3) inset, 0 4px 14px -4px rgba(245,184,46,.8); }
.nav-manage { color: var(--gold-2) !important; }
.manage-link { margin-bottom: 12px; }
.manage { padding-block: 44px 80px; }
.manage-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.manage-head h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin: 0; }
.manage-head h1 .gold-text { font-style: italic; font-weight: 900; padding-right: .06em; }
.manage-head h1 .muted { font-size: .5em; font-weight: 600; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.mback { display: inline-block; margin-bottom: 14px; font-weight: 600; }
.mstats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 22px; }
.mstat { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.mstat b { display: block; font: italic 900 28px/1 var(--font-display); color: var(--gold-2); }
.mstat span { color: var(--muted); font-size: 13.5px; }
.mfilter { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.mfilter input[type="search"], .mfilter select, .medit-grid select, .medit-grid input[disabled] {
  font: 500 15px var(--font-body); color: var(--text); background: #100a05;
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px;
}
.mfilter input[type="search"] { flex: 1; min-width: 220px; }
.mfilter input:focus, .mfilter select:focus, .medit-grid select:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(245,184,46,.18); }
.mclear { font-size: 14px; }
.mcount { color: var(--muted); font-size: 14px; margin: 6px 0 10px; }
.mtable-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.mtable { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 900px; }
.mtime { font-size: 12.5px; opacity: .8; }
.mtable th { text-align: left; font: 700 12px var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-3); padding: 13px 12px; border-bottom: 1px solid var(--line-strong); background: var(--surface-2); }
.mtable td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.mtable tr:last-child td { border-bottom: 0; }
.mtable tbody tr:hover { background: rgba(255,214,107,.04); }
.mempty { text-align: center; color: var(--muted); padding: 40px !important; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.status-active { background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.18); }
.status-suspended { background: #ff6b6b; box-shadow: 0 0 0 3px rgba(255,107,107,.18); }
.mpager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; margin-top: 20px; }
.pg {
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: 600 14px var(--font-display); color: var(--text); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s, color .2s, background .2s;
}
a.pg:hover { border-color: var(--gold-2); color: var(--gold-2); }
.pg.is-current { background: var(--gold-btn); color: #2a1800; border-color: transparent; box-shadow: 0 6px 16px -6px rgba(245,184,46,.7); }
.pg.is-disabled { opacity: .4; }
.pg-gap { background: none; border: 0; min-width: 20px; padding: 0; color: var(--muted); }

/* Manager list on phones & tablets: each user becomes a card */
@media (max-width: 1000px) {
  .mtable-wrap { overflow: visible; border: 0; background: none; }
  .mtable { min-width: 0; display: block; }
  .mtable thead { display: none; }
  .mtable tbody { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .mtable tr { display: grid; grid-template-columns: 1fr auto; align-content: start; gap: 9px 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
  .mtable tbody tr:hover { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border-color: var(--line-strong); }
  .mtable td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0; border: 0; grid-column: 1 / -1; min-width: 0; }
  .mtable td::before { content: attr(data-label); color: var(--muted); font-size: 12.5px; flex: none; }
  .mtable td .mv { text-align: right; min-width: 0; }
  .mtable td.mc-user { grid-column: 1; grid-row: 1; display: block; font-size: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .mtable td.mc-user .mv { text-align: left; }
  .mtable td.mc-id { grid-column: 2; grid-row: 1; display: block; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .mtable td.mc-id::before { content: none; }
  .mtable td.mc-break .mv { overflow-wrap: anywhere; }
  .mtable td.mc-date br { display: none; }
  .mtable td.mc-date .mtime::before { content: " · "; }
  .mtable td.mc-edit { margin-top: 4px; }
  .mtable td.mc-edit::before { content: none; }
  .mtable td.mc-edit .btn { width: 100%; }
  .mempty { display: block !important; grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .mtable tbody { grid-template-columns: 1fr; }
  .mstats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .mstat { padding: 12px; }
  .mstat b { font-size: 22px; }
  .mstat span { font-size: 12px; }
  .mfilter { gap: 8px; }
  .mfilter input[type="search"] { flex: 1 1 100%; min-width: 0; }
  .mfilter select { flex: 1 1 0; min-width: 0; padding: 10px 6px; font-size: 14px; }
  .mfilter .btn { flex: 1 1 100%; }
}
@media (max-width: 520px) { .pg-nav span { display: none; } .pg { min-width: 36px; height: 36px; padding: 0 10px; } }
.medit-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: start; }
.medit-grid select, .medit-grid input[disabled] { width: 100%; padding: 13px 15px; border-radius: 12px; }
.medit-grid input[disabled] { opacity: .6; }
.mside { display: grid; gap: 18px; }
.mpass { border: 1px dashed var(--line-strong); border-radius: 14px; padding: 14px 16px 16px; margin: 4px 0 0; display: grid; gap: 12px; }
.mpass legend { font: 600 14px var(--font-display); padding: 0 6px; }
.mlog { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 14px; }
.mlog li { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line); word-break: break-word; }
.mlog li:last-child { border-bottom: 0; padding-bottom: 0; }
.mlog .muted { font-size: 12.5px; }
@media (max-width: 900px) { .mstats { grid-template-columns: repeat(3, 1fr); } .medit-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: 120px 0; }
.not-found h1 { font-size: clamp(72px, 14vw, 140px); font-style: italic; font-weight: 900; margin: 0; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Live chat — player widget
   ========================================================================== */
.ppc { position: fixed; right: 20px; bottom: 20px; z-index: 80; font-family: var(--font-body); }
.ppc-launch {
  position: relative; width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #2a1800; background: var(--gold-btn);
  box-shadow: 0 0 0 1px rgba(255,255,255,.4) inset, 0 12px 30px -8px rgba(245,184,46,.85), 0 4px 14px rgba(0,0,0,.5);
  transition: transform .2s ease;
}
.ppc-launch:hover { transform: scale(1.06); }
.ppc-launch svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; grid-area: 1 / 1; transition: opacity .2s, transform .2s; }
.ppc-ico-close { opacity: 0; transform: rotate(-90deg); }
.ppc.is-open .ppc-ico-chat { opacity: 0; transform: rotate(90deg); }
.ppc.is-open .ppc-ico-close { opacity: 1; transform: none; }
.ppc-launch::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(245,184,46,.5); animation: ppc-ring 2.6s ease-out infinite; }
.ppc.is-open .ppc-launch::after { display: none; }
@keyframes ppc-ring { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.ppc-badge {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: #ff3b3b; color: #fff; font: 700 12px/22px var(--font-display); box-shadow: 0 0 0 2px var(--bg);
}

.ppc-panel {
  position: absolute; right: 0; bottom: 76px; width: 380px; height: min(620px, calc(100vh - 120px));
  display: flex; flex-direction: column; overflow: hidden; border-radius: 22px;
  background: #120c06; border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.9), 0 0 60px -30px rgba(245,184,46,.6);
  animation: ppc-in .22s ease;
}
.ppc-panel[hidden] { display: none; }
@keyframes ppc-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.ppc-head {
  display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; flex: none;
  background: linear-gradient(120deg, #2b1c0a, #1a1108); border-bottom: 1px solid var(--line);
}
.ppc-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: italic 900 18px var(--font-display); color: #2a1800; background: var(--gold-btn); flex: none; }
.ppc-title { flex: 1; min-width: 0; display: grid; }
.ppc-title strong { font-family: var(--font-display); font-size: 16px; }
.ppc-title span { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.ppc-online { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.2); }
.ppc-close { width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(255,214,107,.08); color: var(--gold-2); cursor: pointer; display: grid; place-items: center; }
.ppc-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.ppc-view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ppc-loading { align-items: center; justify-content: center; }
.ppc-spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(245,184,46,.2); border-top-color: var(--gold-2); animation: ppc-spin .8s linear infinite; }
@keyframes ppc-spin { to { transform: rotate(360deg); } }

.ppc-start { padding: 26px 22px; overflow-y: auto; gap: 12px; }
.ppc-start h3 { font-size: 22px; font-weight: 800; margin: 0; }
.ppc-hello { font-size: 30px; margin: 0; }
.ppc-sub { color: var(--muted); margin: 0 0 6px; }
.ppc-choices { display: grid; gap: 10px; margin-top: 6px; }
.ppc-choice {
  text-align: left; cursor: pointer; padding: 16px 18px; border-radius: 14px; color: var(--text);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-strong);
  display: grid; gap: 2px; font: inherit; transition: border-color .2s, transform .2s;
}
.ppc-choice:hover { border-color: var(--gold-2); transform: translateY(-2px); }
.ppc-choice b { font-family: var(--font-display); font-size: 16px; color: var(--gold-1); }
.ppc-choice span { color: var(--muted); font-size: 14px; }
.ppc-link { background: none; border: 0; color: var(--gold-2); cursor: pointer; font: inherit; padding: 4px 0; align-self: flex-start; }
.ppc-small .ppc-link { padding: 0; }
.ppc-form label { display: grid; gap: 6px; font: 600 13.5px var(--font-display); }
.ppc-form input {
  font: 500 16px var(--font-body); color: var(--text); background: #0b0703; border: 1px solid var(--line-strong);
  border-radius: 11px; padding: 12px 13px; width: 100%;
}
.ppc-form input:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(245,184,46,.18); }
.ppc-form input.is-bad { border-color: #ff7b7b; }
.ppc-form input::placeholder { color: #6f6250; }
.ppc-err { color: #ffb3b3; font-size: 14px; margin: 0; }
.ppc-err[hidden] { display: none; }
.ppc-small { color: var(--muted); font-size: 13.5px; margin: 2px 0 0; text-align: center; }

.ppc-chat { overflow: hidden; }
.ppc-msgs, .sup-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 4px; overscroll-behavior: contain; }
.ppc-older { display: flex; justify-content: center; padding: 6px 0 10px; }
.ppc-older[hidden] { display: none; }
.ppc-day { align-self: center; margin: 10px 0 6px; font: 600 11.5px var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: rgba(255,214,107,.06); padding: 4px 10px; border-radius: 999px; }
.ppc-m { display: flex; flex-direction: column; max-width: 82%; flex: none; }
.ppc-m + .ppc-m { margin-top: 4px; }
.ppc-staff { align-self: flex-start; align-items: flex-start; }
.ppc-player { align-self: flex-end; align-items: flex-end; }
.ppc-system { align-self: center; max-width: 92%; }
.ppc-who { font-size: 11.5px; color: var(--gold-3); margin: 0 0 3px 4px; font-weight: 600; }
.ppc-player .ppc-who { margin: 0 4px 3px 0; }
.ppc-bubble { padding: 10px 13px; border-radius: 18px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.ppc-staff .ppc-bubble { background: #251a0e; border: 1px solid var(--line); border-bottom-left-radius: 6px; color: var(--text); }
.ppc-player .ppc-bubble { background: var(--gold-btn); color: #2a1800; border-bottom-right-radius: 6px; }
.ppc-text { white-space: pre-wrap; }
.ppc-text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.ppc-staff .ppc-text a { color: var(--gold-2); }
.ppc-img { display: block; margin: -4px -7px 6px; border-radius: 13px; overflow: hidden; background: rgba(0,0,0,.25); }
.ppc-bubble > .ppc-img:last-child { margin-bottom: -4px; }
.ppc-img img { display: block; width: 100%; max-width: 260px; height: auto; max-height: 320px; object-fit: cover; }
.ppc-time { font-size: 11px; color: var(--muted); margin: 3px 6px 0; }
.ppc-sys { text-align: center; font-size: 12.5px; color: var(--muted); padding: 4px 10px; }
.ppc-pending .ppc-bubble { opacity: .6; }
.ppc-compose {
  flex: none; display: flex; align-items: flex-end; gap: 8px; padding: 10px 10px 12px; border-top: 1px solid var(--line); background: #150e07;
}
.ppc-compose textarea {
  flex: 1; resize: none; height: 44px; min-height: 44px; max-height: 120px; font: 400 16px/20px var(--font-body); color: var(--text);
  background: #0b0703; border: 1px solid var(--line-strong); border-radius: 14px; padding: 11px 13px;
  overflow-y: hidden;
}
.ppc-compose textarea.is-scroll { overflow-y: auto; }
.ppc-compose textarea:focus { outline: none; border-color: var(--gold-2); }
.ppc-attach, .ppc-send { width: 44px; height: 44px; flex: none; border-radius: 12px; border: 0; cursor: pointer; display: grid; place-items: center; }
.ppc-attach { background: rgba(255,214,107,.08); color: var(--gold-2); }
.ppc-send { background: var(--gold-btn); color: #2a1800; }
.ppc-send:disabled { opacity: .5; }
.ppc-attach svg, .ppc-send svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ppc-send svg { fill: currentColor; stroke-width: 1.5; }
.ppc-toast {
  position: absolute; left: 50%; bottom: 82px; transform: translateX(-50%); z-index: 2; max-width: 90%;
  background: #3a1d1d; color: #ffd6d6; border: 1px solid rgba(255,120,120,.5); padding: 9px 14px; border-radius: 12px; font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.6);
}

@media (max-width: 640px) {
  .ppc { right: 14px; bottom: 14px; }
  .ppc-launch { width: 58px; height: 58px; }
  .ppc-panel { position: fixed; inset: 0; width: auto; height: 100%; height: 100dvh; border-radius: 0; border: 0; }
  .ppc.is-open .ppc-launch { display: none; }
  html.ppc-lock, html.ppc-lock body { overflow: hidden; }
}

/* ==========================================================================
   Live chat — staff support inbox
   ========================================================================== */
.sup { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100vh - var(--header-h) - 40px); min-height: 520px; border-bottom: 1px solid var(--line); }
.sup-list { display: flex; flex-direction: column; min-height: 0; min-width: 0; border-right: 1px solid var(--line); background: #0f0905; }
.sup-list-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 10px; }
.sup-list-head h1 { font-size: 24px; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 10px; }
.sup-total { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: #ff3b3b; color: #fff; font: 700 13px/26px var(--font-display); text-align: center; }
.sup-total[hidden] { display: none; }
.sup-sound { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 10px; width: 38px; height: 38px; cursor: pointer; font-size: 17px; }
.sup-search { margin: 0 16px 10px; font: 500 15px var(--font-body); color: var(--text); background: #0b0703; border: 1px solid var(--line-strong); border-radius: 11px; padding: 10px 12px; }
.sup-search:focus { outline: none; border-color: var(--gold-2); }
.sup-filters { display: flex; gap: 6px; padding: 0 16px 12px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.sup-filters button { flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 6px 12px; font: 600 13px var(--font-display); cursor: pointer; }
.sup-filters button.is-on { background: var(--gold-btn); color: #2a1800; border-color: transparent; }
.sup-threads { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; min-height: 0; }
.sup-empty { color: var(--muted); text-align: center; padding: 30px 10px; }
.sup-thread { display: flex; gap: 12px; padding: 12px 10px; border-radius: 12px; cursor: pointer; align-items: flex-start; }
.sup-thread:hover { background: rgba(255,214,107,.05); }
.sup-thread.has-unread { background: rgba(255,214,107,.08); }
.sup-av, .sup-info-av { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 800 15px var(--font-display); color: #2a1800; background: var(--gold-btn); }
.sup-tmain { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sup-trow { display: flex; justify-content: space-between; gap: 8px; align-items: center; min-width: 0; }
.sup-trow b { font-family: var(--font-display); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sup-trow time { font-size: 12px; color: var(--muted); flex: none; }
.sup-prev { color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.has-unread .sup-prev { color: var(--text); font-weight: 600; }
.sup-un { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #ff3b3b; color: #fff; font: 700 11.5px/20px var(--font-display); text-align: center; flex: none; }
.sup-meta { font-size: 11.5px; color: var(--gold-3); }

.sup-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.sup-tabs { display: flex; gap: 6px; padding: 10px 12px 0; overflow-x: auto; flex: none; border-bottom: 1px solid var(--line); background: #0f0905; }
.sup-tabs:empty { display: none; }
.sup-tab {
  flex: none; display: flex; align-items: center; gap: 8px; max-width: 220px; padding: 9px 10px 9px 14px; cursor: pointer;
  border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; background: var(--surface); color: var(--muted);
  font: 600 14px var(--font-display);
}
.sup-tab.is-active { background: #1a1108; color: var(--gold-1); border-color: var(--line-strong); box-shadow: inset 0 2px 0 var(--gold-2); }
.sup-tab-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sup-tab-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3b3b; flex: none; }
.sup-tab-dot[hidden] { display: none; }
.sup-tab-x { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 17px; line-height: 1; color: var(--muted); }
.sup-tab-x:hover { background: rgba(255,255,255,.08); color: var(--text); }
.sup-stage { flex: 1; min-height: 0; position: relative; display: flex; }
.sup-placeholder { margin: auto; text-align: center; max-width: 360px; color: var(--muted); padding: 30px; }
.sup-placeholder[hidden] { display: none; }
.sup-ph-icon { font-size: 44px; }
.sup-placeholder h2 { color: var(--text); font-size: 22px; margin: 10px 0 6px; }
.sup-conv { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; }
.sup-conv[hidden] { display: none; }
.sup-conv-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #1a1108; flex: none; flex-wrap: wrap; }
.sup-back { display: none; border: 0; background: rgba(255,214,107,.08); color: var(--gold-2); border-radius: 10px; width: 38px; height: 38px; font-size: 18px; cursor: pointer; }
.sup-conv-title { flex: 1; min-width: 160px; display: grid; }
.sup-conv-title b { font-family: var(--font-display); font-size: 17px; }
.sup-conv-sub { font-size: 13px; color: var(--muted); }
.sup-conv-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sup-conv-actions [hidden] { display: none; }
.sup-info-btn[aria-pressed="true"] { border-color: var(--gold-2); color: var(--gold-2); }
.sup-conv-body { flex: 1; min-height: 0; display: flex; position: relative; }
.sup-chat { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sup-info { width: 290px; flex: none; border-left: 1px solid var(--line); padding: 22px 18px; overflow-y: auto; background: #0f0905; text-align: center; }
.sup-info[hidden] { display: none; }
.sup-info-av { width: 64px; height: 64px; font-size: 22px; margin: 0 auto 10px; }
.sup-info h3 { font-size: 19px; margin: 0 0 4px; }
.sup-info-tag { color: var(--gold-3); font-size: 13px; margin-bottom: 16px; }
.sup-info .details { text-align: left; grid-template-columns: auto 1fr; font-size: 14px; margin-bottom: 16px; }
.sup-info .btn { margin-top: 8px; }
.sup-compose { background: #150e07; }
.sup .ppc-m { max-width: 70%; }
.sup .ppc-toast { bottom: 90px; }

@media (max-width: 1100px) {
  .sup-info { position: absolute; right: 0; top: 0; bottom: 0; z-index: 3; box-shadow: -20px 0 40px rgba(0,0,0,.6); }
}
@media (max-width: 760px) {
  .sup { grid-template-columns: minmax(0, 1fr); height: calc(100vh - var(--header-h) - 40px); height: calc(100dvh - var(--header-h) - 40px); }
  .sup-main { display: none; }
  .sup.show-conv .sup-list { display: none; }
  .sup.show-conv .sup-main { display: flex; }
  .sup-back { display: grid; place-items: center; }
  .sup-conv-head { padding: 10px 12px; }
  .sup-conv-actions { width: 100%; }
  .sup-conv-actions .btn { flex: 1; }
  .sup .ppc-m { max-width: 85%; }
  .sup-info { width: 100%; }
}

/* ---------- Rules: deposit & cashout limits ---------- */
.limits {
  border-radius: var(--radius); padding: 28px 30px; border: 1px solid var(--line-strong);
  background: radial-gradient(70% 90% at 0% 0%, rgba(245,184,46,.14), transparent 60%), linear-gradient(180deg, var(--surface-2), var(--surface));
}
.limits h2 { display: flex; align-items: center; gap: 14px; font-size: 24px; font-weight: 700; margin-bottom: 18px; }
.limits-min {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; margin-bottom: 14px;
  border-radius: 14px; background: rgba(255,214,107,.08); border: 1px solid var(--line);
}
.limits-min span { font: 600 16px var(--font-display); }
.limits-min strong, .limit-row strong { font: italic 900 30px/1 var(--font-display); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.limits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.limit-tier { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.18); }
.limit-label { margin: 0 0 10px; color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.limit-label b { color: var(--gold-1); }
.limit-row { display: flex; align-items: baseline; gap: 8px; padding: 8px 0; border-top: 1px dashed var(--line); }
.limit-row span { flex: 1; color: #e3d6bf; }
.limit-row strong { font-size: 24px; }
.limit-row em { font-style: normal; color: var(--muted); font-size: 13px; }
.limit-eg { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }
.limits-note { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(226,57,155,.08); border: 1px solid rgba(226,57,155,.3); color: #f3d9e8; font-size: 15px; }
.limits-note svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; margin-top: 1px; }
@media (max-width: 640px) {
  .limits { padding: 22px 18px; }
  .limits h2 { font-size: 20px; }
  .limits-grid { grid-template-columns: 1fr; }
}

/* ---------- Slim gold scrollbars (no arrow buttons) for chat & panels ---------- */
:is(.ppc-msgs, .sup-msgs, .sup-threads, .sup-info, .sup-tabs, .ppc-compose textarea, .qr-list, .qr-form textarea, .mtable-wrap, .ppc-start)::-webkit-scrollbar { width: 8px; height: 8px; }
:is(.ppc-msgs, .sup-msgs, .sup-threads, .sup-info, .sup-tabs, .ppc-compose textarea, .qr-list, .qr-form textarea, .mtable-wrap, .ppc-start)::-webkit-scrollbar-track { background: transparent; }
:is(.ppc-msgs, .sup-msgs, .sup-threads, .sup-info, .sup-tabs, .ppc-compose textarea, .qr-list, .qr-form textarea, .mtable-wrap, .ppc-start)::-webkit-scrollbar-thumb { background: rgba(245,184,46,.32); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
:is(.ppc-msgs, .sup-msgs, .sup-threads, .sup-info, .sup-tabs, .ppc-compose textarea, .qr-list, .qr-form textarea, .mtable-wrap, .ppc-start)::-webkit-scrollbar-thumb:hover { background-color: rgba(245,184,46,.55); }
:is(.ppc-msgs, .sup-msgs, .sup-threads, .sup-info, .sup-tabs, .ppc-compose textarea, .qr-list, .qr-form textarea, .mtable-wrap, .ppc-start)::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
:is(.ppc-msgs, .sup-msgs, .sup-threads, .sup-info, .sup-tabs, .ppc-compose textarea, .qr-list, .qr-form textarea, .mtable-wrap, .ppc-start)::-webkit-scrollbar-corner { background: transparent; }
@supports not selector(::-webkit-scrollbar) {
  .ppc-msgs, .sup-msgs, .sup-threads, .sup-info, .sup-tabs, .ppc-compose textarea, .qr-list, .qr-form textarea, .mtable-wrap, .ppc-start { scrollbar-width: thin; scrollbar-color: rgba(245,184,46,.35) transparent; }
}

/* ---------- Support inbox: a normal-size window on big screens ---------- */
@media (min-width: 761px) {
  .sup {
    max-width: 1320px; margin: 24px auto 40px; width: calc(100% - 48px);
    height: min(840px, calc(100vh - var(--header-h) - 110px)); min-height: 560px;
    border: 1px solid var(--line-strong); border-radius: 18px; overflow: hidden;
    box-shadow: 0 30px 80px -30px rgba(0,0,0,.9), 0 0 60px -40px rgba(245,184,46,.5);
  }
}

/* ---------- Quick replies ---------- */
.qr-btn {
  width: 44px; height: 44px; flex: none; border-radius: 12px; border: 1px solid var(--line-strong); cursor: pointer;
  display: grid; place-items: center; background: rgba(255,214,107,.08); color: var(--gold-2); transition: background .2s, color .2s;
}
.qr-btn:hover, .qr-btn[aria-expanded="true"] { background: var(--gold-btn); color: #2a1800; border-color: transparent; }
.qr-btn svg { width: 20px; height: 20px; fill: currentColor; }
.sup-chat { position: relative; }
.qr-pop {
  position: absolute; right: 12px; bottom: 74px; z-index: 5; width: min(420px, calc(100% - 24px)); max-height: min(460px, calc(100% - 100px));
  display: flex; flex-direction: column; border-radius: 16px; background: #150e07; border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px -10px rgba(0,0,0,.9); overflow: hidden; animation: ppc-in .16s ease;
}
.qr-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.qr-head b { font-family: var(--font-display); font-size: 15px; color: var(--gold-1); }
.qr-x { border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; width: 30px; height: 30px; border-radius: 8px; }
.qr-x:hover { background: rgba(255,255,255,.06); color: var(--text); }
.qr-search { margin: 10px 12px 6px; font: 500 14px var(--font-body); color: var(--text); background: #0b0703; border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 11px; }
.qr-search:focus, .qr-form input:focus, .qr-form textarea:focus { outline: none; border-color: var(--gold-2); }
.qr-list { list-style: none; margin: 0; padding: 4px 8px; overflow-y: auto; flex: 1; min-height: 0; }
.qr-item { display: flex; align-items: stretch; gap: 4px; border-radius: 10px; }
.qr-item:hover { background: rgba(255,214,107,.07); }
.qr-pick { flex: 1; min-width: 0; text-align: left; border: 0; background: none; color: var(--text); cursor: pointer; padding: 9px 8px; display: grid; gap: 2px; font: inherit; border-radius: 10px; }
.qr-pick b { font-family: var(--font-display); font-size: 14px; }
.qr-pick span { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qr-edit { flex: none; width: 34px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; display: grid; place-items: center; }
.qr-edit:hover { color: var(--gold-2); background: rgba(255,214,107,.1); }
.qr-edit svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.qr-empty { color: var(--muted); text-align: center; padding: 18px 8px; font-size: 14px; }
.qr-add { border: 0; border-top: 1px solid var(--line); background: rgba(255,214,107,.06); color: var(--gold-2); font: 700 14px var(--font-display); padding: 12px; cursor: pointer; }
.qr-add:hover { background: rgba(255,214,107,.12); }
.qr-form { padding: 12px 14px 14px; display: grid; gap: 10px; overflow-y: auto; }
.qr-form label { display: grid; gap: 5px; font: 600 13px var(--font-display); }
.qr-form input, .qr-form textarea { font: 400 14.5px/1.45 var(--font-body); color: var(--text); background: #0b0703; border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 11px; width: 100%; resize: vertical; }
.qr-hint, .qr-meta { margin: 0; color: var(--muted); font-size: 12.5px; }
.qr-hint code { color: var(--gold-2); background: rgba(255,214,107,.1); padding: 1px 5px; border-radius: 5px; }
.qr-err { margin: 0; color: #ffb3b3; font-size: 13.5px; }
.qr-err[hidden] { display: none; }
.qr-actions { display: flex; gap: 8px; align-items: center; }
.qr-spacer { flex: 1; }
.qr-del { color: #ffb3b3 !important; box-shadow: 0 0 0 1.5px rgba(255,120,120,.45) inset !important; }
@media (max-width: 760px) {
  .qr-pop { left: 8px; right: 8px; width: auto; bottom: 70px; }
  .sup-compose { gap: 6px; }
  .sup-compose .qr-btn, .sup-compose .ppc-attach, .sup-compose .ppc-send { width: 40px; height: 40px; }
}

/* ---------- Chat launcher: big "Message Us" pill + teaser bubble ---------- */
.ppc { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.ppc-launch {
  width: auto; height: 62px; padding: 0 24px 0 18px; border-radius: 999px; display: flex; align-items: center; gap: 10px;
  font: 800 17px/1 var(--font-display); letter-spacing: .01em;
}
.ppc-launch-ico { display: grid; width: 30px; height: 30px; }
.ppc-launch-ico svg { width: 30px; height: 30px; }
.ppc-launch-txt { white-space: nowrap; }
.ppc-launch:hover { transform: translateY(-2px) scale(1.03); }
.ppc-launch::after { border-radius: 999px; }
.ppc.is-open .ppc-launch { width: 62px; padding: 0; justify-content: center; }
.ppc.is-open .ppc-launch-txt { display: none; }
.ppc-badge { top: -6px; right: -4px; }

.ppc-teaser {
  position: relative; max-width: 270px; padding: 12px 34px 12px 16px; border-radius: 18px 18px 6px 18px;
  background: #1c1309; border: 1px solid var(--line-strong); color: var(--text);
  box-shadow: 0 14px 40px -10px rgba(0,0,0,.85), 0 0 30px -12px rgba(245,184,46,.6);
  opacity: 0; transform: translateY(8px) scale(.96); transform-origin: bottom right; transition: opacity .25s ease, transform .25s ease;
}
.ppc-teaser.is-in { opacity: 1; transform: none; }
.ppc-teaser[hidden] { display: none; }
.ppc-teaser::after {
  content: ""; position: absolute; right: 26px; bottom: -7px; width: 12px; height: 12px; transform: rotate(45deg);
  background: #1c1309; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
}
.ppc-teaser-txt { all: unset; cursor: pointer; display: block; font: 600 15px/1.35 var(--font-body); }
.ppc-teaser-txt:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 4px; border-radius: 4px; }
.ppc-teaser-x {
  position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.06); color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1;
}
.ppc-teaser-x:hover { background: rgba(255,255,255,.14); color: var(--text); }
.ppc.is-open .ppc-teaser { display: none; }
@media (max-width: 640px) {
  .ppc-launch { height: 56px; padding: 0 18px 0 14px; font-size: 16px; }
  .ppc-launch-ico, .ppc-launch-ico svg { width: 26px; height: 26px; }
  .ppc-teaser { max-width: min(250px, calc(100vw - 40px)); padding: 10px 32px 10px 14px; }
  .ppc-teaser-txt { font-size: 14px; }
}

/* ---------- Messenger button ---------- */
.btn-messenger {
  color: #fff; background: linear-gradient(45deg, #0a7cff 0%, #a033ff 55%, #ff5c87 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 8px 24px -8px rgba(160,51,255,.7);
}
.btn-messenger:hover { color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 12px 30px -8px rgba(160,51,255,.9); }
.msgr-ico { display: inline-grid; width: 20px; height: 20px; flex: none; }
.msgr-ico svg { width: 100%; height: 100%; }
.btn svg[aria-hidden] { width: 19px; height: 19px; }
.footer-msgr { display: inline-flex; align-items: center; gap: 8px; }
.footer-msgr .msgr-ico { width: 18px; height: 18px; color: #4ea1ff; }
.cta-inner .btn-messenger { box-shadow: 0 8px 20px -8px rgba(60, 20, 120, .6); }
.account-cta .btn-messenger { margin-top: 0; }

/* Hero: keep the three CTA buttons on one row on desktop */
@media (min-width: 901px) { .hero-cta { gap: 10px; flex-wrap: nowrap; } .hero-cta .btn-lg { padding: 16px 20px; font-size: 15.5px; } }
