/* ============================================================
   Golden Spin — candy / neon casino skin
   (matches the visual language of slotsgame.ink: neon purple city,
    glossy jelly buttons, chunky outlined text, icon hall)
   ============================================================ */

:root {
  --bg-0: #12042a;
  --bg-1: #25064d;
  --bg-2: #4a0f7a;
  --violet: #8e2de2;
  --magenta: #ff2d95;
  --gold: #ffd54a;
  --gold-2: #ff9d00;

  --green-a: #b6ff4d;
  --green-b: #6fd400;
  --green-c: #3d9a00;
  --green-shadow: #1d4d00;

  --orange-a: #ffd76a;
  --orange-b: #ffa22b;
  --orange-c: #f2740a;
  --orange-shadow: #8a3d00;

  --panel: rgba(46, 12, 82, 0.78);
  --panel-2: rgba(76, 22, 128, 0.72);
  --panel-3: rgba(104, 32, 168, 0.55);
  --stroke: rgba(255, 255, 255, 0.16);
  --stroke-strong: rgba(255, 255, 255, 0.34);

  --text: #ffffff;
  --text-2: #d7c6f2;
  --text-3: #a58bc9;

  --ok: #6fe36b;
  --bad: #ff5a72;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --tile: 82px;
  --shell: 1120px;
  --font: "Trebuchet MS", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "SF Mono", "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
  background: var(--bg-0);
}

/* neon city backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 620px at 50% -8%, rgba(255, 45, 149, .42), transparent 62%),
    radial-gradient(760px 520px at 8% 18%, rgba(142, 45, 226, .55), transparent 66%),
    radial-gradient(820px 560px at 96% 32%, rgba(74, 15, 122, .8), transparent 68%),
    radial-gradient(700px 700px at 50% 108%, rgba(0, 214, 255, .18), transparent 70%),
    linear-gradient(180deg, #1d0640 0%, #2b0757 42%, #170530 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, rgba(6, 2, 16, .8), transparent 34%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.028) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 1px, transparent 1px 46px);
  mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 30%, transparent 82%);
  pointer-events: none;
}

body { overflow-x: hidden; padding-bottom: 92px; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.22; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }
::selection { background: var(--gold); color: #2a1200; }

*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 20px; }
*::-webkit-scrollbar-track { background: transparent; }

/* chunky outlined text used across the hall */
.outlined, .hero h1, .section-head h2, .bigwin .title, .profile-meta h3 {
  text-shadow:
    0 2px 0 rgba(60, 0, 90, .9),
    0 4px 8px rgba(0, 0, 0, .55);
}

/* ============================================================
   shell
   ============================================================ */

.aurora { display: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 9px clamp(10px, 3vw, 24px);
  background: linear-gradient(180deg, rgba(28, 6, 56, .96), rgba(28, 6, 56, .55));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; min-width: 0; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 11px;
  font-size: 17px;
  background: linear-gradient(160deg, #ff9be0, #a12bff 60%, #5b17a8);
  border: 2px solid rgba(255, 255, 255, .5);
  box-shadow: 0 4px 0 #4a0f7a, 0 8px 18px rgba(161, 43, 255, .55);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-text strong {
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fffdf0 20%, #ffd54a 70%, #ff9d00);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(70, 20, 0, .6));
}
.brand-text em {
  font-style: normal;
  font-size: 8.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #ffb3e6;
}

.nav { display: none; }
.topbar-right { display: flex; align-items: center; gap: 7px; margin-left: auto; min-width: 0; }

.balance-chip {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 10px 5px 5px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(30, 8, 60, .95), rgba(60, 16, 104, .9));
  border: 2px solid rgba(255, 213, 74, .5);
  box-shadow: 0 3px 0 rgba(40, 10, 70, .9), inset 0 1px 0 rgba(255,255,255,.18);
  font-variant-numeric: tabular-nums;
}
.balance-ico {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 28%, #fff3b0, #ffc217 45%, #c47f00 100%);
  border: 2px solid rgba(255, 255, 255, .55);
  color: #6b3d00; font-size: 12px; font-weight: 900;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .45);
}
.balance-label { display: flex; flex-direction: column; line-height: 1.1; }
.balance-label i { font-style: normal; font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: #d9b6ff; }
.balance-chip strong { font-size: 14px; font-family: var(--mono); color: #fff8d6; }
.balance-cur { font-size: 8.5px; color: var(--gold); letter-spacing: .06em; }

.user-menu { position: relative; }
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .55);
  background: linear-gradient(160deg, #ff9be0, #a12bff 65%, #5b17a8);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  display: grid; place-items: center;
  box-shadow: 0 3px 0 #4a0f7a;
}

.dropdown {
  position: absolute;
  right: 0; top: calc(100% + 8px);
  min-width: 210px;
  padding: 8px;
  border-radius: 16px;
  background: linear-gradient(180deg, #3b0f6b, #24074a);
  border: 2px solid rgba(255,255,255,.2);
  box-shadow: 0 18px 40px rgba(0,0,0,.6);
  animation: pop .16s ease-out;
  z-index: 80;
}
.dropdown-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 8px 9px; border-bottom: 1px solid rgba(255,255,255,.14); margin-bottom: 5px; }
.dropdown-head strong { font-size: 13px; }
.dropdown a, .dropdown button {
  display: block; width: 100%;
  text-align: left;
  padding: 9px 10px;
  border: 0; border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
}
.dropdown a:hover, .dropdown button:hover { background: rgba(255,255,255,.12); color: #fff; }
#btnLogout:hover { color: var(--bad); }

.app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px clamp(10px, 3vw, 24px) 26px;
  min-height: calc(100vh - 200px);
}

.footer { display: none; }

/* ============================================================
   jelly buttons
   ============================================================ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, .35);
  background: linear-gradient(180deg, #8a4fc9, #5a1e97 55%, #3f1171);
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .02em;
  text-shadow: 0 2px 2px rgba(0, 0, 0, .45);
  box-shadow: 0 4px 0 #2b0750, 0 8px 18px rgba(0, 0, 0, .4), inset 0 2px 0 rgba(255,255,255,.28);
  transition: transform .1s, filter .16s;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #2b0750, inset 0 2px 0 rgba(255,255,255,.2); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-gold, .btn-accent {
  background: linear-gradient(180deg, var(--orange-a), var(--orange-b) 48%, var(--orange-c));
  border-color: rgba(255, 255, 255, .6);
  box-shadow: 0 4px 0 var(--orange-shadow), 0 10px 22px rgba(255, 138, 0, .4), inset 0 2px 0 rgba(255,255,255,.55);
  color: #fff;
  text-shadow: 0 2px 2px rgba(120, 50, 0, .6);
}
.btn-gold:hover { filter: brightness(1.06); }

.btn-green, .btn-go {
  background: linear-gradient(180deg, var(--green-a), var(--green-b) 48%, var(--green-c));
  border-color: rgba(255, 255, 255, .65);
  box-shadow: 0 4px 0 var(--green-shadow), 0 10px 22px rgba(111, 212, 0, .4), inset 0 2px 0 rgba(255,255,255,.55);
  color: #fff;
  text-shadow: 0 2px 2px rgba(30, 80, 0, .7);
}

.btn-ghost { background: rgba(255,255,255,.1); box-shadow: 0 3px 0 rgba(0,0,0,.35); }
.btn-red { background: linear-gradient(180deg, #ff8a9a, #e0324a 55%, #a8122a); border-color: rgba(255,255,255,.45); box-shadow: 0 4px 0 #6d0018; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 11px; border-width: 2px; box-shadow: 0 3px 0 rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-block { width: 100%; }
.btn-lg { padding: 13px 24px; font-size: 15.5px; border-radius: 16px; }

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px;
  border-radius: 7px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
  color: #fff;
  white-space: nowrap;      /* 角色/状态标签永不竖排 */
  flex-shrink: 0;
}
.pill.gold { color: #3a1d00; background: linear-gradient(180deg, #ffe27a, var(--gold)); border-color: rgba(255,255,255,.6); }
.pill.green { color: #103f00; background: linear-gradient(180deg, #c8ff70, #7bdc1e); border-color: rgba(255,255,255,.55); }
.pill.red { color: #fff; background: linear-gradient(180deg, #ff8a9a, #e0324a); border-color: rgba(255,255,255,.5); }
.pill.blue { color: #062a45; background: linear-gradient(180deg, #a6ecff, #47c4ff); border-color: rgba(255,255,255,.5); }

/* inputs — pill, neon outline */
.input, .select, textarea.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 999px;
  border: 2px solid rgba(150, 90, 255, .8);
  background: rgba(20, 4, 40, .78);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  box-shadow: inset 0 2px 8px rgba(0,0,0,.5), 0 0 0 2px rgba(120, 60, 220, .18);
  transition: .16s;
}
.select { border-radius: 14px; }
textarea.input { border-radius: 16px; }
.input:focus, .select:focus, textarea.input:focus { border-color: #ffd54a; box-shadow: 0 0 0 3px rgba(255, 213, 74, .22), inset 0 2px 8px rgba(0,0,0,.5); }
.input::placeholder { color: #8e73b0; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 13px; }
.field label { font-size: 11px; color: #e0cdff; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.hint { font-size: 11.5px; color: var(--text-3); }
.err { color: #ff9bb0; font-size: 12.5px; min-height: 16px; }

/* ============================================================
   panels
   ============================================================ */

.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 2px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255,255,255,.14);
}
.card-pad-lg { padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-head h3 { font-size: 14.5px; }
.card-head .sub { font-size: 11.5px; color: var(--text-3); }

.section { margin-top: 22px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.section-head h2 {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.section-head h2::before {
  content: "";
  width: 14px; height: 14px;
  background: linear-gradient(150deg, #fff0a8, var(--gold) 55%, var(--gold-2));
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  filter: drop-shadow(0 0 8px rgba(255, 213, 74, .8));
}
.section-head p { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.section-head .more {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; color: #ffe9a8;
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
}
.section-head .more:hover { background: rgba(255,255,255,.16); }
.sec-arrows { display: flex; gap: 6px; }
.sec-arrows button {
  width: 28px; height: 28px; border-radius: 9px;
  border: 2px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08);
  color: #fff; font-size: 12px;
  display: grid; place-items: center;
}

/* ============================================================
   hero
   ============================================================ */

.hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .2);
  min-height: 186px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  isolation: isolate;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255,255,255,.25);
}
.hero-art-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(28, 2, 54, .94) 6%, rgba(40, 6, 80, .62) 52%, rgba(60, 10, 110, .18) 100%),
    linear-gradient(0deg, rgba(20, 2, 40, .9), transparent 62%);
}
.hero-body { max-width: 64%; min-width: 0; }
.hero-eyebrow { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.hero h1 {
  font-size: clamp(22px, 5vw, 34px);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.hero h1 .grad {
  background: linear-gradient(180deg, #fff8d8 12%, #ffd54a 58%, #ff9d00);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 3px 0 rgba(90, 40, 0, .65)) drop-shadow(0 8px 18px rgba(0,0,0,.5));
}
.hero p.lead { color: #e6d5ff; font-size: 12px; margin-top: 6px; max-width: 36ch; }
.hero-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.hero-glyph {
  position: absolute; right: 12px; top: 50%;
  font-size: clamp(64px, 12vw, 104px);
  filter: drop-shadow(0 16px 28px rgba(0,0,0,.65));
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes float { 0%,100% { transform: translateY(-50%) rotate(-4deg) scale(1); } 50% { transform: translateY(-58%) rotate(4deg) scale(1.04); } }

.hero-ticker {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(30, 6, 60, .72);
  border: 1px solid rgba(255,255,255,.16);
  font-size: 11.5px;
  color: #e3d3ff;
}
.hero-ticker .tk { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1; }

/* ============================================================
   quick categories
   ============================================================ */

.cat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}
.cat-tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 11px 6px 9px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(70, 20, 120, .8), rgba(36, 8, 66, .86));
  border: 2px solid rgba(255, 255, 255, .14);
  box-shadow: 0 4px 0 rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.14);
  transition: transform .14s, filter .14s;
}
.cat-tile:hover { transform: translateY(-2px); filter: brightness(1.1); }
.cat-tile .ic {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px;
  background: radial-gradient(circle at 34% 26%, #ff9be0, #a12bff 62%, #6119ad);
  border: 2px solid rgba(255,255,255,.5);
  box-shadow: 0 3px 0 rgba(60, 10, 100, .9);
}
.cat-tile span { font-size: 10.5px; color: #e8dcff; font-weight: 700; text-align: center; }
.cat-tile.active {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(255, 213, 74, .3), rgba(120, 60, 0, .5));
  box-shadow: 0 4px 0 rgba(0,0,0,.32), 0 0 0 2px rgba(255,213,74,.35), inset 0 1px 0 rgba(255,255,255,.3);
}
.cat-tile.active span { color: #fff; }
.cat-tile.active .ic { background: radial-gradient(circle at 34% 26%, #fff3b0, var(--gold) 55%, var(--gold-2)); }

/* ============================================================
   provider / filter tabs
   ============================================================ */

.providers {
  display: flex; gap: 7px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  margin-bottom: 2px;
  scrollbar-width: none;
}
.providers::-webkit-scrollbar { display: none; }
.provider {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(30, 6, 60, .78);
  border: 2px solid rgba(255,255,255,.16);
  color: #dcc8ff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 3px 0 rgba(0,0,0,.3);
}
.provider .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.provider:hover { color: #fff; }
.provider.active {
  background: linear-gradient(180deg, #ffe27a, var(--gold) 55%, var(--gold-2));
  border-color: rgba(255,255,255,.7);
  color: #3a1d00;
  text-shadow: 0 1px 0 rgba(255,255,255,.4);
  box-shadow: 0 3px 0 #a86600, 0 8px 18px rgba(255,157,0,.4);
}

/* ============================================================
   game tiles
   ============================================================ */

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}

.game-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .18);
  background: #1b0538;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(0,0,0,.32), 0 12px 24px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.16);
  transition: transform .16s, border-color .16s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.game-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 10px 0 rgba(0,0,0,.32), 0 18px 30px rgba(0,0,0,.4); }
.game-card:hover .game-art .glyph { transform: scale(1.12) rotate(-3deg); }

.game-art {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.game-art .glyph {
  font-size: 50px;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.6));
  transition: transform .28s cubic-bezier(.2,.7,.3,1);
}
.game-art::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(255,255,255,.28), transparent 46%),
    repeating-linear-gradient(120deg, rgba(255,255,255,.06) 0 2px, transparent 2px 22px);
  mix-blend-mode: overlay;
}
.game-art::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(16, 2, 32, .95) 2%, rgba(16, 2, 32, .28) 36%, transparent 64%);
}
.game-art .ribbon {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  font-size: 9px; font-weight: 900; letter-spacing: .1em;
  padding: 3px 7px; border-radius: 7px;
  background: linear-gradient(180deg, #ff5b8f, #e0145a);
  border: 1.5px solid rgba(255,255,255,.7);
  color: #fff;
  box-shadow: 0 2px 0 rgba(120,0,40,.8);
}
.game-art .rtp-badge {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  font-size: 9.5px; font-family: var(--mono); font-weight: 800;
  padding: 3px 6px; border-radius: 6px;
  background: rgba(10, 2, 22, .82);
  border: 1px solid rgba(120, 255, 160, .55);
  color: #8dffb8;
}
.game-art .card-play {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
  font-size: 11.5px; font-weight: 900; color: #ffe9a8;
  opacity: 0; transform: translateY(6px);
  transition: .2s;
}
.game-card:hover .card-play { opacity: 1; transform: none; }

.game-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 6px 9px 8px;
  display: flex; flex-direction: column; gap: 2px;
}
.game-info h4 {
  font-size: 11.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 2px 3px rgba(0,0,0,.9);
}
.game-info .meta { display: flex; align-items: center; gap: 4px; font-size: 9.5px; color: #c3a9e8; overflow: hidden; }
.game-info .meta span { white-space: nowrap; }
.game-info .meta .plays { display: inline-flex; align-items: center; gap: 4px; }
.section-head h2 .small { text-transform: none; letter-spacing: 0; }
.game-info .meta .dot { width: 2.5px; height: 2.5px; border-radius: 50%; background: currentColor; opacity: .6; flex-shrink: 0; }

.vol-high { color: #ff9ab0; }
.vol-medium { color: #ffd76a; }
.vol-low { color: #8dffb8; }

.row-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 132px;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
}
.row-scroll .game-card { scroll-snap-align: start; }

/* ============================================================
   jackpot strip
   ============================================================ */

.jackpot-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.jackpot {
  position: relative;
  padding: 13px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(80, 24, 140, .8), rgba(30, 6, 60, .92));
  border: 2px solid rgba(255, 255, 255, .16);
  box-shadow: 0 5px 0 rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.14);
  overflow: hidden;
}
.jackpot::after {
  content: "";
  position: absolute; right: -26px; top: -26px;
  width: 96px; height: 96px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 213, 74, .3), transparent 70%);
}
.jackpot .cap { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #d4bcff; font-weight: 700; }
.jackpot .val {
  font-family: var(--mono); font-size: 20px; font-weight: 800; margin: 3px 0 8px;
  color: #ffe9a8;
  text-shadow: 0 2px 0 rgba(90, 40, 0, .7);
}
.jackpot .track { height: 8px; border-radius: 99px; background: rgba(0,0,0,.45); overflow: hidden; border: 1px solid rgba(255,255,255,.12); }
.jackpot .fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ffd54a, #ff2d95); box-shadow: 0 0 12px rgba(255,45,149,.6); }
.jackpot .sub { font-size: 10px; color: var(--text-3); margin-top: 6px; }

/* ============================================================
   live feed
   ============================================================ */

.live-feed {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(24, 4, 48, .72);
  overflow: hidden;
}
.feed-mark { font-size: 12px; flex-shrink: 0; opacity: .85; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: .35; } 100% { opacity: 1; } }
.live-track { display: flex; gap: 20px; overflow: hidden; flex: 1; }
.live-item { display: flex; align-items: center; gap: 6px; font-size: 11.5px; white-space: nowrap; animation: slide-in .4s ease-out; }
.live-item b { color: var(--gold); font-family: var(--mono); }
.live-item .u { color: var(--text-3); }
@keyframes slide-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }

/* ============================================================
   game stage
   ============================================================ */

.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.game-layout > * { min-width: 0; }
@media (max-width: 1080px) { .game-layout { grid-template-columns: minmax(0, 1fr); } }

.stage {
  position: relative;
  border-radius: 22px;
  border: 2px solid rgba(255, 255, 255, .18);
  background:
    radial-gradient(520px 260px at 50% -12%, rgba(255, 45, 149, .22), transparent 60%),
    linear-gradient(180deg, rgba(52, 12, 96, .95), rgba(18, 2, 36, .98));
  padding: 14px;
  overflow: hidden;
  box-shadow: 0 10px 0 rgba(0,0,0,.28), 0 18px 40px rgba(0,0,0,.44), inset 0 1px 0 rgba(255,255,255,.18);
}
.stage-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.stage-head > * { min-width: 0; }
.stage-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.stage-title .badge {
  width: 36px; height: 36px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 18px;
  background: linear-gradient(160deg, #ff9be0, #a12bff 65%, #5b17a8);
  border: 2px solid rgba(255,255,255,.5);
  box-shadow: 0 3px 0 rgba(60,10,100,.9);
}
.stage-title h2 { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; }
.stage-title .sub { font-size: 10.5px; color: #cdb3f2; }

.back-link { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: #d3bcf5; margin-bottom: 10px; }
.back-link:hover { color: var(--gold); }

.machine {
  position: relative;
  max-width: 100%;
  border-radius: 18px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(24, 4, 46, .95), rgba(10, 1, 22, .98));
  border: 2px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 2px 12px rgba(0,0,0,.6);
}
.machine-frame {
  position: relative;
  border-radius: 14px;
  padding: 8px;
  background: linear-gradient(180deg, #2b0a52, #150327);
  border: 1px solid rgba(255,255,255,.1);
  overflow: hidden;
}

.reels { display: flex; gap: 6px; justify-content: center; }
.reel {
  position: relative;
  width: var(--tile);
  height: calc(var(--tile) * var(--rows, 3));
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, #170430, #25094a);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 12px 22px -12px rgba(0,0,0,.95), inset 0 -12px 22px -12px rgba(0,0,0,.95);
}
.reel-strip { will-change: transform; }
.reel::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 0, 18, .85), transparent 16%, transparent 84%, rgba(8, 0, 18, .85));
  border-radius: 10px;
}

.tile {
  width: 100%;
  height: var(--tile);
  display: grid;
  place-items: center;
  font-size: calc(var(--tile) * .42);
  font-weight: 800;
  position: relative;
  transition: filter .18s, transform .18s;
  user-select: none;
}
.tile .glyph { line-height: 1; filter: drop-shadow(0 4px 8px rgba(0,0,0,.55)); }
.tile[data-tier="1"] .glyph { font-size: .78em; color: #cdb6ee; }
.tile[data-tier="2"] .glyph { font-size: .84em; color: #e2d3ff; }
.tile[data-tier="3"] .glyph { font-size: .92em; }
.tile[data-tier="4"] .glyph { font-size: .98em; }
.tile[data-tier="5"] .glyph { font-size: 1.06em; }
.tile[data-kind="wild"] { background: radial-gradient(circle at 50% 40%, rgba(255, 213, 74, .26), transparent 70%); }
.tile[data-kind="scatter"] { background: radial-gradient(circle at 50% 40%, rgba(255, 45, 149, .26), transparent 70%); }
.tile[data-long] .glyph { font-size: .3em; letter-spacing: .06em; font-weight: 900; }
.tile.win { animation: tile-win .5s ease-in-out infinite alternate; filter: brightness(1.35) saturate(1.2); z-index: 2; }
.tile.win::before {
  content: "";
  position: absolute; inset: 2px;
  border-radius: 8px;
  border: 2px solid var(--gold);
  box-shadow: 0 0 16px rgba(255, 213, 74, .85), inset 0 0 18px rgba(255, 213, 74, .3);
}
@keyframes tile-win { from { transform: scale(1); } to { transform: scale(1.07); } }

.stage-controls { display: flex; align-items: stretch; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.bet-box {
  display: flex; align-items: center; gap: 3px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(20, 4, 42, .9);
  border: 2px solid rgba(255,255,255,.16);
  box-shadow: 0 4px 0 rgba(0,0,0,.34);
}
.bet-box button {
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,.3);
  background: linear-gradient(180deg, #8a4fc9, #5a1e97);
  color: #fff;
  font-size: 16px; font-weight: 800; line-height: 1;
  box-shadow: 0 3px 0 #2b0750;
}
.bet-box button:active { transform: translateY(2px); box-shadow: 0 1px 0 #2b0750; }
.bet-display { display: flex; flex-direction: column; align-items: center; padding: 0 10px; min-width: 86px; }
.bet-display span { font-size: 8.5px; letter-spacing: .12em; color: #b79bd8; text-transform: uppercase; font-weight: 700; }
.bet-display strong { font-family: var(--mono); font-size: 14px; color: #fff3c4; }

.spin-btn {
  flex: 1;
  min-width: 130px;
  min-height: 54px;
  border-radius: 18px;
  border: 3px solid rgba(255, 255, 255, .72);
  background: linear-gradient(180deg, var(--orange-a), var(--orange-b) 46%, var(--orange-c));
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-shadow: 0 2px 3px rgba(120, 50, 0, .7);
  box-shadow: 0 6px 0 var(--orange-shadow), 0 14px 26px rgba(255, 138, 0, .45), inset 0 3px 0 rgba(255,255,255,.6);
  transition: transform .1s, filter .16s;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
}
.spin-btn:hover:not(:disabled) { filter: brightness(1.06); }
.spin-btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 var(--orange-shadow), inset 0 2px 0 rgba(255,255,255,.5); }
.spin-btn:disabled { opacity: .55; cursor: not-allowed; }

.icon-btn {
  width: 50px;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,.22);
  background: linear-gradient(180deg, rgba(80,24,140,.9), rgba(36,8,66,.95));
  color: #e6d5ff;
  display: grid; place-items: center; gap: 1px;
  font-size: 9px; font-weight: 800;
  box-shadow: 0 4px 0 rgba(0,0,0,.34);
}
.icon-btn .ico { font-size: 14px; line-height: 1; }
.icon-btn.on {
  color: #3a1d00;
  border-color: #fff;
  background: linear-gradient(180deg, #ffe27a, var(--gold));
  box-shadow: 0 4px 0 #a86600;
}

.win-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 10px;
  padding: 9px 14px;
  border-radius: 14px;
  border: 2px solid rgba(255, 213, 74, .45);
  background: linear-gradient(90deg, rgba(255, 213, 74, .22), rgba(255, 45, 149, .12));
  min-height: 46px;
}
.win-banner .label { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: #ffe9a8; font-weight: 800; }
.win-banner .amount { font-family: var(--mono); font-size: 18px; font-weight: 800; color: #fff6d0; text-shadow: 0 2px 4px rgba(0,0,0,.6); }
.win-banner.zero { opacity: .6; border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.04); }
.win-banner.zero .amount { color: #b79bd8; }

.side-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.stat-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,.12); font-size: 12.5px; }
.stat-row:last-child { border-bottom: 0; }
.stat-row span { color: #c3a9e8; }
.stat-row strong { font-family: var(--mono); font-size: 12.5px; }

.paytable { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; padding-right: 3px; }
.pay-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: rgba(255,255,255,.055); }
.pay-row .g { font-size: 18px; width: 24px; text-align: center; }
.pay-row .vals { display: flex; gap: 9px; margin-left: auto; font-family: var(--mono); font-size: 11px; color: #ffe9a8; }

.history-list { display: flex; flex-direction: column; gap: 5px; max-height: 250px; overflow-y: auto; }
.history-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 9px; border-radius: 10px; background: rgba(255,255,255,.055); font-size: 11.5px; }
.history-row .win { font-family: var(--mono); color: #8dffb8; }
.history-row .lose { font-family: var(--mono); color: #a58bc9; }

/* ============================================================
   overlays
   ============================================================ */

.overlay {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: rgba(8, 0, 20, .86);
  backdrop-filter: blur(6px);
  animation: fade .2s ease-out;
  padding: 18px;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.bigwin {
  position: relative;
  text-align: center;
  padding: 38px clamp(24px, 6vw, 60px);
  border-radius: 28px;
  border: 3px solid rgba(255, 213, 74, .7);
  background:
    radial-gradient(520px 260px at 50% 0%, rgba(255, 45, 149, .5), transparent 66%),
    linear-gradient(180deg, #4a0f7a, #1a0433);
  box-shadow: 0 14px 0 rgba(0,0,0,.3), 0 40px 90px -24px rgba(0,0,0,.85), inset 0 2px 0 rgba(255,255,255,.3);
  animation: bigwin-in .45s cubic-bezier(.2,1.2,.3,1);
  max-width: 92vw;
}
@keyframes bigwin-in { from { transform: scale(.72) rotate(-2deg); opacity: 0; } to { transform: none; opacity: 1; } }
.bigwin .title {
  font-size: clamp(26px, 5.4vw, 44px);
  letter-spacing: .05em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fffbe0 10%, #ffd54a 55%, #ff9d00);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(90, 30, 0, .7));
}
.bigwin .amount { font-family: var(--mono); font-size: clamp(36px, 8vw, 72px); font-weight: 900; color: #fff6d0; margin: 8px 0 2px; letter-spacing: -.03em; text-shadow: 0 4px 0 rgba(90, 40, 0, .7); }
.bigwin .mult { font-size: 13px; color: #ffb3e6; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; }
.bigwin .game { margin-top: 14px; font-size: 12px; color: #cbb6e6; }
.bigwin .actions { margin-top: 20px; display: flex; gap: 9px; justify-content: center; }

.fx-canvas { position: fixed; inset: 0; z-index: 190; pointer-events: none; }

.freespin-banner {
  position: absolute;
  left: 50%; top: 10px; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff6fb5, #d5128a);
  border: 2px solid rgba(255,255,255,.6);
  color: #fff;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 4px 0 #8a0055, 0 12px 26px rgba(213, 18, 138, .6);
  z-index: 5;
  animation: pop .25s ease-out;
  white-space: nowrap;
}
@keyframes pop { from { transform: translateX(-50%) scale(.85); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }

/* ============================================================
   modal / toast
   ============================================================ */

.modal {
  position: relative;
  width: min(440px, 94vw);
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, .22);
  background:
    radial-gradient(420px 200px at 50% -10%, rgba(255, 45, 149, .3), transparent 62%),
    linear-gradient(180deg, #460e78, #1d0439);
  box-shadow: 0 14px 0 rgba(0,0,0,.25), 0 40px 80px -20px rgba(0,0,0,.8), inset 0 2px 0 rgba(255,255,255,.24);
  padding: 22px;
  animation: modal-in .22s cubic-bezier(.2,.9,.3,1);
}
.modal.wide { width: min(740px, 94vw); }
@keyframes modal-in { from { transform: translateY(12px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.modal-head h3 { font-size: 18px; text-transform: uppercase; letter-spacing: .02em; }
.modal-head p { font-size: 11.5px; color: #cbb6e6; margin-top: 3px; }
.modal-x {
  border: 2px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.12);
  width: 30px; height: 30px; border-radius: 10px;
  color: #fff; font-size: 14px; line-height: 1;
  display: grid; place-items: center;
}
.modal-x:hover { background: rgba(255,255,255,.22); }

.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(10, 0, 24, .6); border: 1px solid rgba(255,255,255,.16); margin-bottom: 16px; }
.tabs button { flex: 1; padding: 8px; border: 0; border-radius: 999px; background: transparent; color: #d3bcf5; font-size: 12.5px; font-weight: 800; }
.tabs button.active { background: linear-gradient(180deg, #ffe27a, var(--gold) 55%, var(--gold-2)); color: #3a1d00; box-shadow: 0 3px 0 #a86600; }

.toast-root { position: fixed; right: 14px; bottom: calc(104px + env(safe-area-inset-bottom)); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #41106f, #23074a);
  border: 2px solid rgba(255,255,255,.28);
  box-shadow: 0 6px 0 rgba(0,0,0,.3), 0 16px 32px rgba(0,0,0,.5);
  font-size: 12.5px; font-weight: 700;
  animation: toast-in .25s cubic-bezier(.2,.9,.3,1);
  max-width: 320px;
}
.toast.out { animation: toast-out .2s ease-in forwards; }
.toast.ok { border-color: rgba(141, 255, 184, .7); }
.toast.ok .ico { color: #8dffb8; }
.toast.err { border-color: rgba(255, 154, 176, .8); }
.toast.err .ico { color: #ff9bb0; }
@keyframes toast-in { from { transform: translateX(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toast-out { to { transform: translateX(16px); opacity: 0; } }

/* ============================================================
   tables
   ============================================================ */

.table-wrap { overflow-x: auto; border-radius: 14px; border: 2px solid rgba(255,255,255,.14); background: rgba(20, 4, 42, .6); }
.table-wrap.wide table { min-width: 860px; }
.table-wrap td .btn { white-space: nowrap; }
/* 后台用户表：单元格紧凑一点，给文字按钮留位置 */
.table-wrap.wide thead th, .table-wrap.wide tbody td { padding: 9px 8px; }
.table-wrap.wide tbody td { white-space: nowrap; }
.cell-actions { display: grid; grid-template-columns: auto auto; gap: 5px; justify-content: start; }
.cell-actions .btn { padding: 5px 9px; font-size: 11.5px; line-height: 1.2; justify-content: center; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 540px; }
thead th {
  text-align: left;
  padding: 10px 12px;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #cbb6e6;
  background: rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.14);
  white-space: nowrap;
  font-weight: 800;
}
tbody td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.07); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255,255,255,.05); }
td.num, th.num { text-align: right; font-family: var(--mono); }
.pos { color: #8dffb8; }
.neg { color: #ff9bb0; }
.mono { font-family: var(--mono); }
.truncate { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.empty { padding: 28px; text-align: center; color: #b79bd8; font-size: 12.5px; }

/* ============================================================
   wallet / account
   ============================================================ */

.wallet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.wallet-top { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 760px) { .wallet-top { grid-template-columns: minmax(0, 1fr); } }

.balance-hero {
  position: relative;
  padding: 20px;
  border-radius: 20px;
  border: 2px solid rgba(141, 255, 184, .4);
  background:
    radial-gradient(360px 200px at 92% 6%, rgba(111, 212, 0, .35), transparent 62%),
    linear-gradient(160deg, #16331f, #0c1a12);
  overflow: hidden;
  box-shadow: 0 6px 0 rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.16);
}
.balance-hero .cap { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #b6ff4d; font-weight: 800; }
.balance-hero .num { font-family: var(--mono); font-size: clamp(28px, 4vw, 42px); font-weight: 900; letter-spacing: -.03em; margin: 6px 0 1px; color: #fff; text-shadow: 0 3px 0 rgba(0, 60, 20, .8); }
.balance-hero .cur { font-size: 12px; color: #9fd0ad; }
.balance-hero .row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.kpi {
  padding: 13px;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(70, 20, 120, .7), rgba(30, 6, 60, .85));
  box-shadow: 0 4px 0 rgba(0,0,0,.28);
}
.kpi span { font-size: 10px; color: #cbb6e6; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.kpi strong { display: block; font-family: var(--mono); font-size: 18px; margin-top: 4px; color: #fff3c4; }

.amount-input { position: relative; }
.amount-input .suffix { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 10px; color: #b79bd8; }
.amount-input input { padding-right: 50px; font-family: var(--mono); }

.profile-head {
  display: flex; align-items: center; gap: 14px;
  padding: 18px;
  border-radius: 20px;
  border: 2px solid rgba(255,255,255,.18);
  background: linear-gradient(160deg, rgba(90, 28, 158, .85), rgba(28, 6, 58, .95));
  box-shadow: 0 6px 0 rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.18);
}
.profile-avatar {
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 23px; font-weight: 900;
  background: radial-gradient(circle at 34% 26%, #fff3b0, var(--gold) 55%, var(--gold-2));
  color: #4a2400;
  border: 3px solid rgba(255,255,255,.6);
  box-shadow: 0 4px 0 #a86600;
}
.profile-meta { min-width: 0; }
.profile-meta h3 { font-size: 18px; }
.profile-meta .sub { font-size: 11.5px; color: #cbb6e6; }

.vip-bar { height: 10px; border-radius: 99px; background: rgba(0,0,0,.45); overflow: hidden; border: 1px solid rgba(255,255,255,.14); }
.vip-bar .fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ffd54a, #ff2d95); box-shadow: 0 0 12px rgba(255,45,149,.7); }

.list-menu { display: flex; flex-direction: column; border-radius: 18px; border: 2px solid rgba(255,255,255,.14); background: rgba(28, 6, 58, .7); overflow: hidden; }
.list-menu a, .list-menu button {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 14px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: transparent;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  text-align: left;
  width: 100%;
}
.list-menu > *:last-child { border-bottom: 0; }
.list-menu a:hover, .list-menu button:hover { background: rgba(255,255,255,.08); }
.list-menu .ico { width: 24px; text-align: center; font-size: 16px; }
.list-menu .chev { margin-left: auto; color: #b79bd8; font-size: 15px; }

/* ============================================================
   admin
   ============================================================ */

.admin-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 900px) { .admin-layout { grid-template-columns: 1fr; } }

.side-nav {
  display: flex; flex-direction: column; gap: 3px; padding: 7px;
  border-radius: 18px; border: 2px solid rgba(255,255,255,.14);
  background: rgba(28, 6, 58, .72);
  position: sticky; top: 66px;
}
@media (max-width: 900px) {
  .side-nav { position: static; flex-direction: row; overflow-x: auto; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav button { flex: 0 0 auto; }
}
.side-nav button {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 11px; border: 0; border-radius: 11px;
  background: transparent; color: #d3bcf5; font-size: 13px; font-weight: 700; text-align: left;
  white-space: nowrap;
}
.side-nav button:hover { background: rgba(255,255,255,.08); color: #fff; }
.side-nav button.active {
  background: linear-gradient(180deg, #ffe27a, var(--gold) 55%, var(--gold-2));
  color: #3a1d00;
  box-shadow: 0 3px 0 #a86600;
}

.admin-toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.admin-toolbar .search { flex: 1; min-width: 200px; }

.bars { display: flex; flex-direction: column; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 74px; align-items: center; gap: 10px; font-size: 12px; }
.bar-row .track { height: 8px; border-radius: 99px; background: rgba(0,0,0,.45); overflow: hidden; border: 1px solid rgba(255,255,255,.1); }
.bar-row .fill { height: 100%; border-radius: 99px; }

/* ============================================================
   fair page
   ============================================================ */

.fair-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.fair-grid > * { min-width: 0; }
@media (max-width: 900px) { .fair-grid { grid-template-columns: 1fr; } }

.hash-box {
  font-family: var(--mono);
  font-size: 11.5px;
  word-break: break-all;
  padding: 11px;
  border-radius: 12px;
  background: rgba(6, 0, 16, .7);
  border: 1px solid rgba(255,255,255,.16);
  color: #8dffb8;
  line-height: 1.6;
}

.reel-mini { display: flex; gap: 4px; flex-wrap: wrap; }.reel-mini .c { display: flex; flex-direction: column; gap: 3px; }
.reel-mini .cell {
  width: 32px; height: 28px; border-radius: 7px;
  display: grid; place-items: center; font-size: 14px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
}
.reel-mini .cell.w { border-color: var(--gold); background: rgba(255, 213, 74, .22); }

/* ============================================================
   misc
   ============================================================ */

.search { position: relative; min-width: 180px; }
.search input { padding-left: 34px; }
.search::before { content: "🔍"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 11px; opacity: .75; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.16);
  background: rgba(26, 5, 52, .8);
  color: #d3bcf5;
  font-size: 12px; font-weight: 700;
}
.chip.active {
  background: linear-gradient(180deg, #ffe27a, var(--gold) 55%, var(--gold-2));
  border-color: rgba(255,255,255,.65);
  color: #3a1d00;
  box-shadow: 0 3px 0 #a86600;
}

.loading { display: grid; place-items: center; min-height: 300px; color: #cbb6e6; font-size: 12.5px; gap: 10px; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.gap-sm { gap: 8px; }
.muted { color: #b79bd8; }
.small { font-size: 12px; }
.center { text-align: center; }
.hidden { display: none !important; }

.promo-card {
  position: relative;
  padding: 16px;
  border-radius: 18px;
  border: 2px solid rgba(255,255,255,.16);
  background: linear-gradient(150deg, rgba(96, 28, 168, .8), rgba(30, 6, 60, .92));
  overflow: hidden;
  box-shadow: 0 5px 0 rgba(0,0,0,.28);
}
.promo-card::before {
  content: "";
  position: absolute; right: -30px; top: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 213, 74, .3), transparent 70%);
}
.promo-card h3 { font-size: 14.5px; }
.promo-card p { font-size: 11.5px; color: #cbb6e6; margin-top: 4px; }
.promo-emoji { font-size: 28px; }

/* bottom tab bar — jelly */

.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  padding: 0 clamp(10px, 3vw, 24px) env(safe-area-inset-bottom);
  background: linear-gradient(0deg, #1a0433 58%, rgba(26, 4, 51, .88));
  border-top: 2px solid rgba(255, 255, 255, .18);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .5);
  backdrop-filter: blur(14px);
}
.tabbar-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 7px 0 6px;
}
.tabbar a {
  position: relative;
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 5px 2px;
  font-size: 10px;
  font-weight: 800;
  color: #a888cf;
  transition: color .16s;
}
.tabbar a .ico { font-size: 18px; line-height: 1; filter: grayscale(.45); opacity: .8; transition: .18s; }
.tabbar a.active { color: #ffd54a; }
.tabbar a.active .ico { filter: none; opacity: 1; transform: translateY(-1px) scale(1.08); }

.tabbar a.tab-center { flex: 0 0 70px; }
.tabbar a.tab-center .ico {
  display: grid; place-items: center;
  width: 54px; height: 54px;
  margin-top: -24px;
  border-radius: 50%;
  font-size: 23px;
  background: linear-gradient(180deg, #ffe27a, var(--gold) 50%, #ef8f00);
  border: 3px solid rgba(255, 255, 255, .85);
  box-shadow: 0 6px 0 #a86600, 0 14px 26px rgba(255, 157, 0, .55);
  filter: none; opacity: 1;
}
.tabbar a.tab-center.active .ico { transform: translateY(-3px) scale(1.04); }
.tabbar a.tab-center span:last-child { margin-top: 3px; color: #ffd54a; }

.fab {
  position: fixed;
  right: 14px;
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 65;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4);
  background: linear-gradient(180deg, #ff9be0, #a12bff 65%, #5b17a8);
  color: #fff;
  font-size: 18px;
  display: grid; place-items: center;
  box-shadow: 0 4px 0 #4a0f7a, 0 10px 22px rgba(161, 43, 255, .5);
}

/* ============================================================
   responsive
   ============================================================ */

@media (min-width: 720px) {
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
  .row-scroll { grid-auto-columns: 158px; }
}

@media (max-width: 720px) {
  .hero { min-height: 158px; padding: 14px; }
  .hero-body { max-width: 74%; }
  .hero p.lead { display: none; }
  .cat-row { gap: 7px; }
  .cat-tile { padding: 9px 4px 8px; border-radius: 13px; }
  .cat-tile .ic { width: 36px; height: 36px; font-size: 17px; }
  .cat-tile span { font-size: 9.5px; }
}

@media (max-width: 620px) {
  :root { --tile: 62px; }
  .app { padding: 12px 10px 26px; }
  .stage { padding: 10px; }
  .reels { gap: 4px; }
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .balance-label i { display: none; }
  .icon-btn { width: 44px; }

  .topbar { padding: 8px 10px; gap: 8px; flex-wrap: nowrap; }
  .topbar-right { gap: 6px; min-width: 0; }
  .brand { min-width: 0; }
  .brand-text strong { font-size: 13px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
  .brand-mark { width: 30px; height: 30px; font-size: 15px; border-radius: 10px; }
  .brand-text em { display: none; }
  #btnDeposit { padding: 7px 10px; font-size: 12px; }
  .balance-chip { padding: 4px 8px 4px 4px; gap: 5px; border-radius: 12px; }
  .balance-ico { width: 22px; height: 22px; font-size: 10px; }
  .balance-chip strong { font-size: 12.5px; }
  .balance-cur { font-size: 10px; }
  .avatar { width: 32px; height: 32px; }

  .section-head { flex-wrap: wrap; align-items: flex-start; }
  .section-head h2 { font-size: 14.5px; }
  .section-head > div:last-child { width: 100%; }
  .section-head > .search { width: 100%; flex: 1 1 100%; }
  .section-head .search { min-width: 0; }
  .search { min-width: 0; }

  .game-info h4 { font-size: 10.5px; }
  .game-info .meta { font-size: 9px; gap: 3px; }
  .game-info .meta .hide-sm { display: none; }
  .game-info .meta .plays { display: none; }
  .game-art .glyph { font-size: 42px; }
  .hero-eyebrow .pill:nth-child(2) { display: none; }

  .stage-head { gap: 8px; }
  .stage-title h2 { font-size: 14px; }
  .stage-controls { gap: 7px; }
  .spin-btn { flex-basis: 100%; order: -1; min-width: 0; min-height: 50px; }
  .bet-box { flex: 1; }
}

/* ---------------------- payment authorisation ---------------------- */

.pay-body { display: flex; flex-direction: column; gap: 10px; }
.pay-amt { font-size: 26px; font-weight: 800; text-align: center; color: var(--gold); }
.pay-card { text-align: center; margin-top: -4px; }

.pay-progress {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(6, 0, 16, .8);
  border: 1px solid rgba(255,255,255,.14);
  overflow: hidden;
}
.pay-progress > i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #b6ff4d, #3d9a00);
  box-shadow: 0 0 12px rgba(140, 255, 90, .6);
  transition: width .11s linear;
}

.pay-steps { display: flex; flex-direction: column; gap: 7px; margin-top: 6px; }
.pay-step { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--text-3); transition: color .2s; }
.pay-step-dot {
  width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  flex: 0 0 auto;
}
.pay-step.active { color: var(--gold); }
.pay-step.active .pay-step-dot { border-color: var(--gold); background: rgba(255,213,74,.18); animation: payPulse 1s infinite; }
.pay-step.done { color: #b7ffb0; }
.pay-step.done .pay-step-dot { background: linear-gradient(180deg, #c8ff70, #7bdc1e); border-color: rgba(255,255,255,.6); color: #103f00; }
@keyframes payPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); } }

.pay-result { text-align: center; display: flex; flex-direction: column; gap: 8px; }
.pay-result-icon {
  font-size: 40px; width: 74px; height: 74px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
}
.pay-result.ok .pay-result-icon { background: rgba(123, 220, 30, .18); border: 2px solid #7bdc1e; }
.pay-result.bad .pay-result-icon { background: rgba(224, 50, 74, .18); border: 2px solid #e0324a; color: #ff8a9a; font-size: 34px; font-weight: 800; }
.pay-result-title { font-size: 15px; font-weight: 800; letter-spacing: .08em; }
.pay-result.ok .pay-result-title { color: #8dffb8; }
.pay-result.bad .pay-result-title { color: #ff8a9a; }
.pay-result-amt { font-size: 26px; font-weight: 800; color: var(--gold); }

/* 提现地址列：长地址要能折行，不能跟着全表格 nowrap */
.table-wrap.wide tbody td.wrap,
.table-wrap.wide tbody td.wrap * { white-space: normal; }
.table-wrap.wide tbody td.wrap { min-width: 210px; }

/* ---------------------- 通知铃铛 / 通知列表 ---------------------- */

.icon-btn.notif-btn {
  position: relative;
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.icon-btn.notif-btn:hover { border-color: var(--gold); }
.notif-btn .badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff8a9a, #e0324a);
  color: #fff; font-size: 9.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.5);
}

.notif-list { display: flex; flex-direction: column; gap: 8px; max-height: 52vh; overflow-y: auto; }
.notif {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 9px 11px;
  background: rgba(255,255,255,.03);
}
.notif.unread { border-color: rgba(255,213,74,.5); background: rgba(255,213,74,.08); }
.notif-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.notif-head strong { font-size: 12.5px; }
.notif p { margin-top: 4px; line-height: 1.45; }

@media (max-width: 620px) {
  .icon-btn.notif-btn { width: 30px; height: 30px; font-size: 13px; }
}

/* 小屏：铃铛占位后余额不要折行 */
.balance-chip strong { white-space: nowrap; }
@media (max-width: 620px) {
  .balance-chip { padding: 5px 9px; gap: 6px; }
  .balance-chip strong { font-size: 12px; letter-spacing: 0; }
  .balance-cur { font-size: 9.5px; }
  .topbar-right { gap: 6px; }
  .btn#btnDeposit { padding: 6px 10px; font-size: 10.5px; }
}

/* 小屏顶栏紧凑化：铃铛加入后不许横向溢出 */
@media (max-width: 620px) {
  .brand-name { font-size: 12px; letter-spacing: .02em; }
  .brand-sub { display: none; }
  .balance-chip { padding: 4px 7px; gap: 4px; }
  .balance-ico { width: 20px; height: 20px; font-size: 9px; }
  .balance-chip strong { font-size: 11.5px; }
  .balance-label i { display: none; }
  .btn#btnDeposit { padding: 6px 8px; font-size: 10px; }
  .icon-btn.notif-btn { width: 28px; height: 28px; font-size: 12px; }
  .avatar { width: 30px; height: 30px; font-size: 12px; }
  .topbar-right { gap: 5px; }
}

/* ---------------------- VISA 卡生成器（后台） ---------------------- */

.visa-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.visa-stat {
  flex: 1 1 120px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 9px 12px;
  background: rgba(255,255,255,.03);
  display: flex; flex-direction: column; gap: 2px;
}
.visa-stat span { font-size: 10.5px; color: var(--text-3); letter-spacing: .06em; }
.visa-stat strong { font-size: 18px; font-family: var(--mono); color: var(--gold); }


/* 待审核分组有积压时高亮，避免错过 */
.chip-attention {
  border-color: var(--gold) !important;
  color: var(--gold) !important;
  box-shadow: 0 0 0 2px rgba(255, 213, 74, .18);
}

/* ================= 后台是独立工作台：去掉玩家端外壳 ================= */
body.is-admin { padding-bottom: 24px; }
body.is-admin .tabbar { display: none !important; }
body.is-admin .balance-chip,
body.is-admin #btnDeposit { display: none !important; }
body.is-admin .fab { bottom: 22px; }
body.is-admin .app { padding-bottom: 8px; }

@media (max-width: 620px) {
  body.is-admin { padding-bottom: 18px; }
}

/* ---------------------- 近 7 日走势图 ---------------------- */

.trend-legend { display: flex; gap: 12px; font-size: 10.5px; color: var(--text-3); }
.trend-legend .lg { display: inline-flex; align-items: center; gap: 4px; }
.trend-legend .lg::before { content: ''; width: 8px; height: 8px; border-radius: 2px; }
.trend-legend .lg-w::before { background: #ffd76a; }
.trend-legend .lg-p::before { background: #7bdc1e; }
.trend-wrap { width: 100%; overflow: hidden; }
.trend-svg { width: 100%; height: 190px; display: block; }

@media (max-width: 620px) {
  .trend-svg { height: 150px; }
  .trend-legend { gap: 8px; font-size: 9.5px; }
}

.trend-sum {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.trend-sum > div { display: flex; flex-direction: column; gap: 2px; }
.trend-sum span { font-size: 10px; color: var(--text-3); letter-spacing: .05em; }
.trend-sum strong { font-family: var(--mono); font-size: 14px; color: var(--gold); }
.trend-sum strong.pos { color: var(--green); }
.trend-sum strong.neg { color: var(--bad); }

@media (max-width: 620px) {
  .trend-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 后台宽表：收紧内边距，避免操作列被挤出可视区（1174px 窗口下曾溢出 24px） */
.table-wrap.wide table { min-width: 820px; }
.table-wrap.wide thead th,
.table-wrap.wide tbody td { padding: 9px 6px; }
.table-wrap.wide th:first-child,
.table-wrap.wide td:first-child { padding-left: 10px; }
.table-wrap.wide th:last-child,
.table-wrap.wide td:last-child { padding-right: 10px; width: 152px; }
.cell-actions { grid-template-columns: auto auto; gap: 5px; justify-content: end; }
.cell-actions .btn { padding: 5px 8px; font-size: 11.5px; }
.table-wrap.wide tbody td:nth-child(5) { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1024px) {
  /* 窄屏不堆成一列（否则每行三四个按钮会把行高撑到 250px） */
  .table-wrap.wide table { min-width: 780px; }
  .cell-actions { grid-template-columns: auto auto; justify-content: start; gap: 4px; }
  .cell-actions .btn { padding: 5px 7px; font-size: 11px; }
  .table-wrap.wide th:last-child,
  .table-wrap.wide td:last-child { width: 126px; }
}

/* 操作列固定在右侧：表格比容器宽时，按钮也始终可见（无需横向拖动找按钮） */
.table-wrap.wide thead th:last-child,
.table-wrap.wide tbody td:last-child {
  position: sticky;
  right: 0;
  z-index: 2;
  background: #1c0733;
  box-shadow: -10px 0 14px -6px rgba(0, 0, 0, .55);
}
.table-wrap.wide thead th:last-child { z-index: 3; background: #220a3d; }
.table-wrap.wide tbody tr:hover td:last-child { background: #241040; }

/* 账变里的提现地址：完整显示，不截断 */
.addr-cell {
  display: inline;
  white-space: nowrap;
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--text-2);
}
/* 窄屏允许折行，保证整串可见（而不是被省略号吃掉） */
@media (max-width: 620px) {
  .addr-cell { white-space: normal; word-break: break-all; }
}
