/* ==========================================================================
   SlizerBet — design system
   ========================================================================== */
:root {
  --bg: #0b0612;
  --bg2: #110a1b;
  --surface: #181022;
  --surface2: #21162f;
  --surface3: #2b1d3d;
  --surface4: #36264c;
  --line: rgba(255, 255, 255, 0.07);
  --line2: rgba(255, 255, 255, 0.12);
  --text: #f5f1ff;
  --muted: #a898c2;
  --dim: #6e6187;
  --primary: #7c5cff;
  --primary2: #a855f7;
  --pink: #ff4fd8;
  --grad: linear-gradient(135deg, #6d5dfc 0%, #9b5cff 55%, #c04dff 100%);
  --grad-soft: linear-gradient(135deg, rgba(109, 93, 252, 0.22), rgba(192, 77, 255, 0.18));
  --green: #2ee59d;
  --green2: #14b874;
  --red: #ff4d6d;
  --gold: #ffc53d;
  --blue: #3aa0ff;
  --radius: 16px;
  --radius-lg: 22px;
  --header-h: 76px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --glow: 0 10px 30px rgba(124, 92, 255, 0.45);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 0% -10%, rgba(168, 85, 247, 0.20), transparent 60%),
    radial-gradient(900px 520px at 100% -5%, rgba(109, 93, 252, 0.16), transparent 60%),
    radial-gradient(800px 600px at 50% 120%, rgba(255, 79, 216, 0.07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img, svg { display: block; }
::selection { background: rgba(124, 92, 255, 0.45); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.green { color: var(--green); }
.red { color: var(--red); }
.gold { color: var(--gold); }
.mono { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 0.92em; word-break: break-all; }
.display { font-family: var(--font-display); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--surface4); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- icons ---------- */
.ic { width: 20px; height: 20px; flex: none; }
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 24px; height: 24px; }
.coin { width: 28px; height: 28px; flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 18px; border-radius: 14px;
  background: var(--surface2); border: 1px solid var(--line);
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: background 0.18s, transform 0.12s, box-shadow 0.2s, border-color 0.2s, opacity 0.2s;
  user-select: none;
}
.btn:hover { background: var(--surface3); border-color: var(--line2); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.btn-sm { height: 36px; padding: 0 12px; border-radius: 11px; font-size: 13px; }
.btn-xs { height: 30px; padding: 0 10px; border-radius: 9px; font-size: 12px; }
.btn-lg { height: 56px; padding: 0 28px; border-radius: 16px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-icon { width: 46px; padding: 0; }
.btn-primary {
  background: var(--grad); border: 0; color: #fff;
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  position: relative; overflow: hidden;
}
.btn-primary:hover { background: var(--grad); box-shadow: 0 10px 32px rgba(124, 92, 255, 0.60), inset 0 1px 0 rgba(255, 255, 255, 0.3); filter: brightness(1.08); }
.btn-primary::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transition: transform 0.7s;
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-green { background: linear-gradient(135deg, #22d68e, #10b981); border: 0; color: #04150d; box-shadow: 0 8px 24px rgba(46, 229, 157, 0.3); }
.btn-green:hover { background: linear-gradient(135deg, #2ee59d, #12c48a); }
.btn-red { background: rgba(255, 77, 109, 0.14); border-color: rgba(255, 77, 109, 0.35); color: #ff8da1; }
.btn-red:hover { background: rgba(255, 77, 109, 0.24); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface2); }

/* Big play button with a moving shine */
.btn-play {
  position: relative; overflow: hidden; width: 100%; height: 60px; border-radius: 16px;
  font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: #fff; background: var(--grad);
  box-shadow: 0 12px 32px rgba(124, 92, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.12s, filter 0.2s, box-shadow 0.2s;
}
.btn-play::before {
  content: ''; position: absolute; top: 0; bottom: 0; width: 60%; left: -80%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: shine 3.2s ease-in-out infinite;
}
.btn-play:hover { filter: brightness(1.1); box-shadow: 0 14px 40px rgba(124, 92, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-play:active { transform: scale(0.985); }
.btn-play[disabled] { filter: grayscale(0.4) brightness(0.8); pointer-events: none; }
.btn-play[disabled]::before { animation: none; }
@keyframes shine { 0% { left: -80%; } 55%, 100% { left: 130%; } }

/* ---------- inputs ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 13px;
  background: var(--bg2); border: 1px solid var(--line2); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.18); background: #140c20; }
.input::placeholder { color: var(--dim); }
textarea.input { height: auto; padding: 12px 14px; resize: vertical; min-height: 80px; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .input { padding-left: 38px; }
.input-wrap .prefix { position: absolute; left: 14px; color: var(--muted); font-weight: 700; pointer-events: none; display: flex; }
.input-wrap .suffix { position: absolute; right: 6px; display: flex; gap: 4px; }
.input-error { color: var(--red); font-size: 13px; min-height: 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); margin: 1px 0 0; flex: none; }
.check a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }

/* range slider */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 10px; outline: none;
  background: linear-gradient(90deg, var(--green) 0%, var(--green) var(--p, 50%), var(--red) var(--p, 50%), var(--red) 100%); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 5px solid var(--primary); box-shadow: 0 4px 14px rgba(0,0,0,.5); cursor: grab; transition: transform .15s; }
.range::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 5px solid var(--primary); cursor: grab; }

/* ---------- chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; background: var(--surface3); color: var(--muted); white-space: nowrap;
}
.chip-green { background: rgba(46, 229, 157, 0.12); color: var(--green); }
.chip-red { background: rgba(255, 77, 109, 0.12); color: #ff8da1; }
.chip-gold { background: rgba(255, 197, 61, 0.14); color: var(--gold); }
.chip-violet { background: rgba(124, 92, 255, 0.18); color: #c3b4ff; }
.chip-blue { background: rgba(58, 160, 255, 0.14); color: #8cc8ff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.dot-pulse { animation: dotpulse 1.6s infinite; }
@keyframes dotpulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: linear-gradient(90deg, rgba(14, 8, 22, 0.88), rgba(28, 10, 34, 0.88) 60%, rgba(40, 10, 40, 0.88));
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; max-width: 1480px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 12px; }
.logo { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-right: 10px; flex: none; }
.logo-word { display: flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: 0.02em; line-height: 1; }
.logo-word .claw { width: 22px; height: 22px; }
.logo-word span b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-tag {
  font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #fff;
  padding: 3px 8px; border-radius: 6px; background: var(--grad); box-shadow: 0 4px 14px rgba(124, 92, 255, 0.45);
}
.nav { display: flex; gap: 8px; }
.nav-link {
  display: flex; align-items: center; gap: 9px; height: 46px; padding: 0 16px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.045); border: 1px solid transparent; font-weight: 700; color: #e8e0f7;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.nav-link:hover { background: rgba(255, 255, 255, 0.08); }
.nav-link.active { background: var(--grad-soft); border-color: rgba(124, 92, 255, 0.45); color: #fff; }
.nav-link .ic { color: #c9bbff; }
.search {
  position: relative; width: 210px; flex: none;
}
.search .input { height: 46px; padding-left: 40px; padding-right: 36px; background: rgba(255, 255, 255, 0.045); border-color: transparent; }
.search .ic { position: absolute; left: 13px; top: 13px; color: var(--muted); }
.search kbd {
  position: absolute; right: 10px; top: 12px; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  font: 600 12px var(--font); color: var(--muted); border: 1px solid var(--line2);
}
.search-results {
  position: absolute; top: 54px; left: 0; width: 280px; padding: 6px; border-radius: 14px; background: var(--surface2);
  border: 1px solid var(--line2); box-shadow: var(--shadow); z-index: 60;
}
.search-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; font-weight: 600; }
.search-item:hover, .search-item.sel { background: var(--surface3); }
.search-item .thumb { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; flex: none; }
.spacer { flex: 1; }
.header-right { display: flex; align-items: center; gap: 8px; }
.balance-pill {
  display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px 0 8px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); font-family: var(--font-display); font-weight: 700; font-size: 15px;
  transition: background 0.2s;
}
.balance-pill:hover { background: rgba(255, 255, 255, 0.08); }
.balance-pill .coin { width: 30px; height: 30px; }
.balance-pill.flash-up { animation: flashup 0.9s; }
.balance-pill.flash-down { animation: flashdown 0.6s; }
@keyframes flashup { 0% { box-shadow: 0 0 0 0 rgba(46, 229, 157, 0.7); border-color: var(--green); } 100% { box-shadow: 0 0 0 14px transparent; } }
@keyframes flashdown { 0% { border-color: rgba(255, 77, 109, 0.6); } 100% { border-color: var(--line); } }
.icon-btn {
  position: relative; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); transition: background 0.2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.09); }
.icon-btn .badge {
  position: absolute; top: 9px; right: 10px; min-width: 9px; height: 9px; border-radius: 9px; background: var(--pink);
  box-shadow: 0 0 0 3px var(--bg2), 0 0 12px var(--pink);
}
.avatar {
  width: 46px; height: 46px; border-radius: 14px; overflow: hidden; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 17px; color: #fff; border: 1px solid var(--line2);
}
.flag { width: 24px; height: 24px; border-radius: 50%; overflow: hidden; }

/* dropdown menus */
.dropdown {
  position: fixed; z-index: 120; min-width: 220px; padding: 6px; border-radius: 16px; background: rgba(33, 22, 47, 0.98);
  border: 1px solid var(--line2); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  animation: dropin 0.16s ease-out; transform-origin: top right;
}
@keyframes dropin { from { opacity: 0; transform: translateY(-6px) scale(0.97); } }
.dropdown-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; font-weight: 600; text-align: left;
  transition: background 0.15s;
}
.dropdown-item:hover { background: var(--surface3); }
.dropdown-item .ic { color: var(--muted); }
.dropdown-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.dropdown-head { padding: 10px 12px 8px; }
.notif-list { width: 340px; max-height: 420px; overflow: auto; }
.notif { display: flex; gap: 12px; padding: 12px; border-radius: 12px; }
.notif.unread { background: rgba(124, 92, 255, 0.08); }
.notif-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.notif-title { font-weight: 700; font-size: 14px; }
.notif-time { font-size: 12px; color: var(--dim); }

/* ---------- layout ---------- */
.main { max-width: 1480px; margin: 0 auto; padding: 24px 20px 60px; min-height: calc(100vh - var(--header-h) - 200px); }
.page { animation: pagein 0.35s ease-out; }
@keyframes pagein { from { opacity: 0; transform: translateY(10px); } }
.section-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 20px; font-weight: 700; margin: 34px 0 16px; }
.section-title .ic { color: var(--primary2); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.card-pad { padding: 20px; }
.grid { display: grid; gap: 16px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 28px; min-height: 300px; padding: 44px 48px;
  background:
    radial-gradient(600px 300px at 85% 30%, rgba(255, 79, 216, 0.35), transparent 60%),
    radial-gradient(500px 400px at 60% 120%, rgba(58, 160, 255, 0.25), transparent 60%),
    linear-gradient(120deg, #2a1452 0%, #3b1468 45%, #5a1670 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(80, 30, 140, 0.35);
  display: flex; align-items: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0; opacity: 0.25;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000 60%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.hero-content { position: relative; z-index: 2; max-width: 660px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #e3d6ff; background: rgba(255,255,255,.1); padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); }
.hero h1 { font-family: var(--font-display); font-size: 44px; line-height: 1.08; margin: 18px 0 14px; font-weight: 800; letter-spacing: -0.01em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #fff, #ffb3f0 40%, #b9a6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: #d9ccf2; font-size: 16px; margin: 0 0 26px; max-width: 470px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-coins { display: flex; gap: 8px; margin-top: 26px; align-items: center; color: #cbbde6; font-size: 13px; font-weight: 600; }
.hero-art { position: absolute; right: 0; top: 0; bottom: 0; width: 48%; z-index: 1; pointer-events: none; }
.float { position: absolute; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45)); animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-16px) rotate(calc(var(--r, 0deg) + 6deg)); } }

/* ---------- game cards ---------- */
.games-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.game-card {
  position: relative; aspect-ratio: 3 / 3.7; border-radius: 22px; overflow: hidden; isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.09); cursor: pointer;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s, border-color 0.3s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.game-card:hover { transform: translateY(-8px); border-color: rgba(255, 255, 255, 0.22); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), 0 0 40px var(--card-glow, rgba(124, 92, 255, 0.35)); }
.game-card .art { position: absolute; inset: 0; z-index: -1; transition: transform 0.6s cubic-bezier(.2,.8,.2,1); }
.game-card:hover .art { transform: scale(1.07); }
.game-card .shade { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, transparent 45%, rgba(8, 4, 14, 0.92) 100%); }
.game-card .info { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1; }
.game-card .title { font-family: var(--font-display); font-weight: 800; font-size: 20px; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.game-card .meta { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.game-card .meta .chip { background: rgba(0, 0, 0, 0.45); color: #fff; backdrop-filter: blur(6px); }
.game-card .play-hover {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; opacity: 0; transition: opacity 0.25s;
}
.game-card:hover .play-hover { opacity: 1; }
.play-circle {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, 0.95); color: #2b1450; display: grid; place-items: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); transform: scale(0.7); transition: transform 0.3s cubic-bezier(.2,1.4,.4,1);
}
.game-card:hover .play-circle { transform: scale(1); }
.game-card.locked { cursor: default; }
.game-card.locked .art { filter: grayscale(0.6) blur(1.5px) brightness(0.6); }
.game-card.locked:hover { transform: none; }
.lock-overlay { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 16px; }
.lock-overlay .lock-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(6px); }
.lock-overlay .lock-ic .ic { width: 28px; height: 28px; animation: wrench 2.4s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes wrench { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-25deg); } 40% { transform: rotate(15deg); } 60% { transform: rotate(0); } }
.lock-overlay b { font-family: var(--font-display); font-size: 14px; }
.lock-overlay span { font-size: 12px; color: #cfc2e6; }
.tape {
  position: absolute; top: 20px; right: -38px; z-index: 3; transform: rotate(35deg); width: 150px; text-align: center;
  background: repeating-linear-gradient(45deg, #ffc53d 0 12px, #1a1125 12px 24px); color: transparent; height: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
}

/* ---------- features strip ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
.feature { display: flex; gap: 14px; align-items: center; padding: 18px; }
.feature-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid rgba(124, 92, 255, 0.3); color: #cbbcff; flex: none; }
.feature b { display: block; font-size: 15px; }
.feature span { font-size: 13px; color: var(--muted); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; padding: 12px 14px; white-space: nowrap; }
.table td { padding: 12px 14px; border-top: 1px solid var(--line); white-space: nowrap; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: rgba(255, 255, 255, 0.025); }
.table .num { font-variant-numeric: tabular-nums; font-weight: 700; }
.table .right { text-align: right; }
.cell-game { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.cell-game .thumb { width: 30px; height: 30px; border-radius: 9px; overflow: hidden; flex: none; }
.feed-row { animation: feedin 0.5s ease-out; }
@keyframes feedin { from { opacity: 0; transform: translateX(-10px); background: rgba(124, 92, 255, 0.15); } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: rgba(10, 5, 16, 0.7); margin-top: 40px; }
.footer-inner { max-width: 1480px; margin: 0 auto; padding: 36px 20px 90px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer h4 { margin: 0 0 12px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.footer a { display: block; color: var(--muted); padding: 4px 0; font-weight: 600; font-size: 14px; }
.footer a.logo { display: inline-flex; padding: 0; color: var(--text); }
.footer a:hover { color: var(--text); }
.footer p { color: var(--dim); font-size: 13px; margin: 12px 0 0; }
.age-badge { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--red); color: var(--red); font-weight: 800; font-size: 13px; }

/* ---------- modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200; background: rgba(5, 2, 10, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 16px; animation: fadein 0.2s;
}
@keyframes fadein { from { opacity: 0; } }
.modal {
  position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto;
  background: linear-gradient(180deg, #22163a 0%, #1a1126 40%); border: 1px solid var(--line2); border-radius: 26px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(124, 92, 255, 0.08);
  animation: modalin 0.32s cubic-bezier(.2, 1.2, .3, 1);
}
.modal-wide { max-width: 640px; }
.modal-xl { max-width: 900px; }
@keyframes modalin { from { opacity: 0; transform: translateY(24px) scale(0.96); } }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 22px 24px 6px; }
.modal-head h3 { margin: 0; font-family: var(--font-display); font-size: 19px; font-weight: 700; flex: 1; }
.modal-close { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface3); transition: background .2s, transform .2s; }
.modal-close:hover { background: var(--surface4); transform: rotate(90deg); }
.modal-body { padding: 16px 24px 24px; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); }
.tab { flex: 1; height: 40px; border-radius: 11px; font-weight: 700; color: var(--muted); transition: background 0.2s, color 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--surface3); color: var(--text); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 10px; align-items: center; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }

/* auth modal brand */
.auth-brand { text-align: center; padding: 26px 24px 0; }
.auth-brand .claw-big { width: 56px; height: 56px; margin: 0 auto 10px; filter: drop-shadow(0 8px 20px rgba(124, 92, 255, 0.6)); }
.auth-brand h3 { font-family: var(--font-display); margin: 0; font-size: 22px; }
.auth-brand p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 46px; }
.pw-toggle { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.pw-toggle:hover { background: var(--surface3); }

/* wallet modal */
.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.method {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--bg2); border: 1.5px solid var(--line);
  text-align: left; transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.method:hover { border-color: var(--line2); background: #160d22; }
.method.active { border-color: var(--primary); background: rgba(124, 92, 255, 0.1); box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.12); }
.method[disabled] { opacity: 0.4; pointer-events: none; }
.method .coin-stack { position: relative; width: 38px; height: 38px; flex: none; }
.method .coin-stack .coin { width: 38px; height: 38px; }
.method .coin-stack .net { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 2px var(--bg2); }
.method b { display: block; font-size: 15px; }
.method span { font-size: 12px; color: var(--muted); }
.pay-box { border-radius: 18px; background: var(--bg2); border: 1px solid var(--line); padding: 16px; }
.pay-grid { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; }
.qr { width: 150px; height: 150px; border-radius: 14px; background: #fff; padding: 8px; display: grid; place-items: center; }
.qr img { width: 100%; height: 100%; }
.copy-field { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 14px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); }
.copy-field .val { flex: 1; min-width: 0; font-weight: 700; word-break: break-all; font-size: 14px; }
.copy-btn { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface3); flex: none; transition: background .2s, color .2s; }
.copy-btn:hover { background: var(--surface4); }
.copy-btn.done { color: var(--green); }
.memo-big {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 197, 61, 0.15), rgba(255, 140, 50, 0.08)); border: 1.5px dashed rgba(255, 197, 61, 0.55);
}
.memo-big .memo-val { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: 0.18em; color: var(--gold); }
.warn { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 197, 61, 0.08); border: 1px solid rgba(255, 197, 61, 0.25); color: #ffe2a0; font-size: 13px; }
.warn .ic { color: var(--gold); margin-top: 1px; }
.info-box { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(124, 92, 255, 0.08); border: 1px solid rgba(124, 92, 255, 0.25); color: #d6ccff; font-size: 13px; }
.success-state { text-align: center; padding: 10px 0; }
.success-icon { width: 84px; height: 84px; margin: 4px auto 16px; border-radius: 50%; display: grid; place-items: center; background: rgba(46, 229, 157, 0.12); color: var(--green); position: relative; }
.success-icon::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(46, 229, 157, 0.35); animation: ring 1.6s ease-out infinite; }
@keyframes ring { from { transform: scale(0.85); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.success-icon .ic { width: 40px; height: 40px; }
.check-draw path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.6s 0.15s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { font-weight: 700; text-align: right; }

/* ---------- toasts ---------- */
.toasts { position: fixed; top: calc(var(--header-h) + 12px); right: 16px; z-index: 300; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; width: 340px; max-width: calc(100vw - 32px); padding: 14px 16px;
  border-radius: 16px; background: rgba(36, 24, 52, 0.97); border: 1px solid var(--line2); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  animation: toastin 0.4s cubic-bezier(.2, 1.3, .3, 1); position: relative; overflow: hidden;
}
.toast.out { animation: toastout 0.3s forwards; }
@keyframes toastin { from { opacity: 0; transform: translateX(40px) scale(0.95); } }
@keyframes toastout { to { opacity: 0; transform: translateX(40px); } }
.toast .t-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.toast.success .t-ic { background: rgba(46, 229, 157, 0.15); color: var(--green); }
.toast.error .t-ic { background: rgba(255, 77, 109, 0.15); color: var(--red); }
.toast.info .t-ic { background: rgba(124, 92, 255, 0.18); color: #c3b4ff; }
.toast b { display: block; font-size: 14px; }
.toast span { font-size: 13px; color: var(--muted); }
.toast .bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--primary); animation: bar linear forwards; }
.toast.success .bar { background: var(--green); }
.toast.error .bar { background: var(--red); }
@keyframes bar { from { width: 100%; } to { width: 0; } }

/* ---------- support widget ---------- */
.support-btn {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--grad); color: #fff; box-shadow: 0 12px 30px rgba(124, 92, 255, 0.55); transition: transform 0.2s, box-shadow 0.2s;
}
.support-btn:hover { transform: translateY(-3px) rotate(-4deg); box-shadow: 0 16px 40px rgba(124, 92, 255, 0.7); }
.support-btn .ic { width: 24px; height: 24px; }
.support-panel {
  position: fixed; right: 20px; bottom: 86px; z-index: 90; width: 300px; border-radius: 20px; overflow: hidden;
  background: var(--surface2); border: 1px solid var(--line2); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); animation: modalin 0.3s cubic-bezier(.2,1.2,.3,1);
}
.support-head { padding: 18px; background: var(--grad); }
.support-head b { display: block; font-family: var(--font-display); font-size: 16px; }
.support-head span { font-size: 13px; opacity: 0.85; }
.support-body { padding: 18px; }

/* ---------- game page ---------- */
.game-layout { display: grid; grid-template-columns: 340px 1fr; gap: 16px; align-items: start; }
.game-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.game-top h1 { font-family: var(--font-display); font-size: 24px; margin: 0; }
.back-btn { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--surface2); border: 1px solid var(--line); }
.back-btn:hover { background: var(--surface3); }
.panel { padding: 18px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--header-h) + 16px); }
.bet-input .input { height: 54px; font-family: var(--font-display); font-weight: 700; font-size: 17px; padding-left: 40px; padding-right: 110px; }
.bet-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.bet-quick button { height: 36px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--line); font-weight: 700; font-size: 13px; color: var(--muted); transition: background .15s, color .15s; }
.bet-quick button:hover { background: var(--surface3); color: var(--text); }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat { padding: 12px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); }
.stat span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.stat b { font-family: var(--font-display); font-size: 17px; }
.stage {
  position: relative; overflow: hidden; border-radius: 26px; min-height: 560px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(124, 92, 255, 0.18), transparent 70%),
    radial-gradient(500px 300px at 50% 110%, rgba(255, 79, 216, 0.10), transparent 70%),
    linear-gradient(180deg, #1b1129, #130b1d);
  border: 1px solid var(--line);
}
.stage-toolbar { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; z-index: 5; }
.stage-toolbar .icon-btn { width: 40px; height: 40px; border-radius: 12px; background: rgba(0,0,0,.25); }
.stage-footer { width: 100%; padding: 0 20px 20px; }
.paytable { display: grid; gap: 8px; }
.paytable-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.pt-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); font-weight: 700; }
.pt-item .x { font-family: var(--font-display); font-size: 14px; color: var(--gold); }
.pt-item.hit { border-color: var(--gold); box-shadow: 0 0 20px rgba(255, 197, 61, 0.35); animation: pthit 1s ease-out; }
@keyframes pthit { 0% { transform: scale(1.12); } 100% { transform: scale(1); } }
.result-banner {
  position: absolute; left: 50%; top: 50%; z-index: 20; transform: translate(-50%, -50%); text-align: center; pointer-events: none;
}
.result-banner .rb-inner {
  padding: 18px 34px; border-radius: 22px; background: rgba(12, 6, 20, 0.85); border: 1.5px solid rgba(46, 229, 157, 0.5);
  box-shadow: 0 0 60px rgba(46, 229, 157, 0.35); backdrop-filter: blur(8px); animation: bannerin 0.5s cubic-bezier(.2, 1.6, .4, 1);
}
.result-banner.lose .rb-inner { border-color: rgba(255, 77, 109, 0.4); box-shadow: 0 0 40px rgba(255, 77, 109, 0.2); }
.result-banner .rb-mult { font-family: var(--font-display); font-size: 40px; font-weight: 800; color: var(--green); line-height: 1.1; }
.result-banner.lose .rb-mult { color: var(--red); font-size: 26px; }
.result-banner .rb-amount { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-top: 4px; }
.result-banner.out .rb-inner { animation: bannerout 0.35s forwards; }
@keyframes bannerin { from { opacity: 0; transform: scale(0.5); } }
@keyframes bannerout { to { opacity: 0; transform: scale(0.85); } }

/* big win overlay */
.bigwin {
  position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 50%, rgba(60, 20, 90, 0.85), rgba(8, 3, 14, 0.92)); animation: fadein 0.3s; cursor: pointer;
}
.bigwin .rays {
  position: absolute; width: 900px; height: 900px; left: 50%; top: 50%; margin: -450px 0 0 -450px; opacity: 0.35;
  background: repeating-conic-gradient(from 0deg, rgba(255, 197, 61, 0.5) 0deg 8deg, transparent 8deg 22deg);
  mask-image: radial-gradient(circle, #000 0%, transparent 65%); -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 65%);
  animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.bigwin .bw-title {
  position: relative; font-family: var(--font-display); font-weight: 900; font-size: 54px; letter-spacing: 0.04em; text-transform: uppercase;
  background: linear-gradient(180deg, #fff6d6 0%, #ffd056 45%, #ff9a1f 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 0 #7a3a00) drop-shadow(0 0 30px rgba(255, 180, 40, 0.6)); animation: bwtitle 0.7s cubic-bezier(.2, 1.6, .4, 1);
}
@keyframes bwtitle { from { transform: scale(0.2) rotate(-8deg); opacity: 0; } }
.bigwin .bw-amount { position: relative; font-family: var(--font-display); font-weight: 800; font-size: 44px; margin-top: 10px; text-shadow: 0 0 30px rgba(255, 197, 61, 0.5); }
.bigwin .bw-mult { position: relative; margin-top: 6px; color: var(--gold); font-weight: 800; font-size: 18px; }
.bigwin .bw-hint { position: relative; margin-top: 20px; font-size: 13px; color: var(--muted); }

/* particles */
.particles { position: absolute; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.particle { position: absolute; will-change: transform, opacity; }

/* ---------- NUMBERS game ---------- */
.num-machine {
  position: relative; padding: 26px; border-radius: 30px;
  background: linear-gradient(180deg, #2a1c40, #1a1028); border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 80px rgba(124, 92, 255, 0.15);
}
.num-machine::before {
  content: ''; position: absolute; inset: -2px; border-radius: 32px; z-index: -1;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.7), rgba(255, 79, 216, 0.4), rgba(58, 160, 255, 0.5));
  filter: blur(1px); opacity: 0.6;
}
.num-reels { display: flex; gap: 14px; }
.num-reel {
  position: relative; width: 130px; height: 300px; overflow: hidden; border-radius: 20px;
  background: linear-gradient(180deg, #0e0817, #170f24 50%, #0e0817);
  border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
}
.num-reel::before, .num-reel::after { content: ''; position: absolute; left: 0; right: 0; height: 90px; z-index: 2; pointer-events: none; }
.num-reel::before { top: 0; background: linear-gradient(180deg, #0e0817, transparent); }
.num-reel::after { bottom: 0; background: linear-gradient(0deg, #0e0817, transparent); }
.num-strip { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.num-cell { height: 100px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 64px; color: #e9e1ff; }
.num-strip.blur .num-cell { filter: blur(2.5px); }
.num-reel .center-line { position: absolute; left: 8px; right: 8px; top: 100px; height: 100px; border-radius: 16px; border: 1.5px solid rgba(124, 92, 255, 0.35); z-index: 3; pointer-events: none; transition: border-color .3s, box-shadow .3s; }
.num-reel.win .center-line { border-color: var(--gold); box-shadow: 0 0 30px rgba(255, 197, 61, 0.5), inset 0 0 30px rgba(255, 197, 61, 0.25); }
.num-reel.win .num-cell.final { color: var(--gold); text-shadow: 0 0 24px rgba(255, 197, 61, 0.8); animation: numpop 0.6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes numpop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
.num-cell[data-n="1"] { color: #b9a6ff; }
.num-cell[data-n="2"] { color: #7cc4ff; }
.num-cell[data-n="3"] { color: #5ef0b5; }
.num-cell[data-n="4"] { color: #ffb86b; }
.num-cell[data-n="5"] { color: #ff6fae; }
.machine-lights { display: flex; justify-content: space-between; padding: 0 6px 14px; }
.machine-lights i { width: 8px; height: 8px; border-radius: 50%; background: #3a2a55; transition: background 0.2s, box-shadow 0.2s; }
.machine-lights.on i { animation: bulb 0.8s infinite; }
.machine-lights.on i:nth-child(even) { animation-delay: 0.4s; }
@keyframes bulb { 0%, 49% { background: #ffd56b; box-shadow: 0 0 10px #ffc53d; } 50%, 100% { background: #3a2a55; box-shadow: none; } }

/* ---------- WHEEL game ---------- */
.wheel-wrap { position: relative; width: min(520px, 86vw); aspect-ratio: 1; margin: 30px auto 10px; }
.wheel-glow { position: absolute; inset: -8%; border-radius: 50%; background: radial-gradient(circle, rgba(124, 92, 255, 0.35), transparent 65%); filter: blur(10px); transition: background 0.6s; }
.wheel-wrap.win .wheel-glow { background: radial-gradient(circle, rgba(46, 229, 157, 0.45), transparent 65%); }
.wheel-wrap.lose .wheel-glow { background: radial-gradient(circle, rgba(255, 77, 109, 0.30), transparent 65%); }
.wheel-rim {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, #3b2760, #6b4bb8, #3b2760, #8a5be0, #3b2760, #6b4bb8, #3b2760);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 2px rgba(255, 255, 255, 0.12), 0 0 0 6px rgba(20, 10, 32, 0.9);
}
.wheel-bulbs { position: absolute; inset: 0; }
.wheel-bulbs i { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff3c4; box-shadow: 0 0 8px #ffd56b, 0 0 2px #fff; opacity: 0.35; transition: opacity 0.15s; }
.wheel-wrap.spinning .wheel-bulbs i { animation: bulbs 0.5s infinite; }
.wheel-wrap.spinning .wheel-bulbs i:nth-child(odd) { animation-delay: 0.25s; }
.wheel-wrap.win .wheel-bulbs i { opacity: 1; background: #b6ffe0; box-shadow: 0 0 12px var(--green); animation: bulbs 0.3s infinite; }
@keyframes bulbs { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0.25; } }
.wheel-canvas { position: absolute; inset: 5.5%; border-radius: 50%; will-change: transform; }
.wheel-canvas canvas { width: 100%; height: 100%; border-radius: 50%; }
.wheel-hub {
  position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; z-index: 4;
  background: radial-gradient(circle at 35% 30%, #3d2a5e, #1a1028 70%); border: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(124, 92, 255, 0.3), 0 0 0 8px rgba(0, 0, 0, 0.25);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.wheel-hub .hub-mult { font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 4.6vw, 34px); line-height: 1; transition: color 0.3s, transform 0.3s; }
.wheel-hub .hub-sub { font-size: 12px; color: var(--muted); font-weight: 700; margin-top: 6px; text-transform: uppercase; letter-spacing: 0.08em; }
.wheel-wrap.win .hub-mult { color: var(--green); transform: scale(1.12); }
.wheel-wrap.lose .hub-mult { color: var(--red); }
.wheel-pointer { position: absolute; left: 50%; top: -3%; width: 13%; transform: translateX(-50%); z-index: 6; transform-origin: 50% 20%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.6)); }
.wheel-pointer.kick { animation: kick 0.12s ease-out; }
@keyframes kick { 0% { transform: translateX(-50%) rotate(0); } 40% { transform: translateX(-50%) rotate(-14deg); } 100% { transform: translateX(-50%) rotate(0); } }
.chance-presets { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.chance-presets button { height: 34px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--line); font-weight: 700; font-size: 12px; color: var(--muted); }
.chance-presets button.active, .chance-presets button:hover { color: var(--text); border-color: rgba(124, 92, 255, 0.5); background: rgba(124, 92, 255, 0.12); }
.chance-box { padding: 14px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--line); }
.chance-val { font-family: var(--font-display); font-size: 26px; font-weight: 800; }
.wheel-history { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; min-height: 30px; }
.wheel-history .chip { animation: feedin 0.4s; }

/* ---------- FRUITS game ---------- */
.fruit-machine {
  position: relative; padding: 20px; border-radius: 32px;
  background: linear-gradient(180deg, #33204f 0%, #20142f 100%);
  border: 2px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 90px rgba(255, 79, 216, 0.12);
}
/* Bonus mode: animated rainbow frame drawn as a border-box gradient (no pseudo-element stacking issues). */
.fruit-machine.bonus-mode {
  border: 2px solid transparent;
  background:
    linear-gradient(180deg, #4a1f5e 0%, #2a1236 100%) padding-box,
    conic-gradient(from var(--a, 0deg), #ffc53d, #ff4fd8, #7c5cff, #3aa0ff, #ffc53d) border-box;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 120px rgba(255, 197, 61, 0.3);
  animation: rot 3s linear infinite;
}
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes rot { to { --a: 360deg; } }
.fruit-title { display: flex; justify-content: center; align-items: center; gap: 10px; margin: -4px 0 14px; font-family: var(--font-display); font-weight: 800; letter-spacing: 0.06em; font-size: 15px; color: #e8dcff; text-transform: uppercase; }
.fruit-grid-wrap { position: relative; }
.fruit-grid { display: grid; grid-template-columns: repeat(3, var(--cell)); gap: 10px; --cell: clamp(86px, 12vw, 130px); }
.fruit-col { position: relative; height: calc(var(--cell) * 3); overflow: hidden; border-radius: 18px; background: linear-gradient(180deg, #120a1d, #1b1229 50%, #120a1d); box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.7); border: 1px solid rgba(255, 255, 255, 0.06); }
.fruit-col.anticipate { box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.7), 0 0 0 2px var(--gold), 0 0 30px rgba(255, 197, 61, 0.6); animation: antic 0.4s infinite alternate; }
@keyframes antic { to { box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.7), 0 0 0 2px #ff9a1f, 0 0 50px rgba(255, 197, 61, 0.9); } }
.fruit-strip { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.fruit-strip.blur .sym svg { filter: blur(3px); }
.sym { position: relative; height: var(--cell); display: grid; place-items: center; }
.sym svg { width: 76%; height: 76%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45)); transition: transform 0.3s; }
.sym.win svg { animation: symwin 0.9s ease-in-out infinite; }
@keyframes symwin { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); filter: drop-shadow(0 0 16px rgba(255, 220, 120, 0.9)); } }
.sym.win::before { content: ''; position: absolute; inset: 8%; border-radius: 18px; background: radial-gradient(circle, rgba(255, 197, 61, 0.35), transparent 70%); animation: fadein 0.3s; }
.sym.paw-hit::before { content: ''; position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 197, 61, 0.55), transparent 70%); animation: pawglow 0.8s ease-in-out infinite alternate; }
@keyframes pawglow { to { transform: scale(1.15); opacity: 0.6; } }
.sym.paw-hit svg { animation: symwin 0.8s ease-in-out infinite; }
.sym.dim svg { opacity: 0.35; filter: grayscale(0.5); transition: opacity 0.3s; }
.cat-mark {
  position: absolute; right: 4%; top: 4%; z-index: 3; width: 46%; aspect-ratio: 1; animation: markin 0.5s cubic-bezier(.2, 1.8, .4, 1) both;
}
.cat-mark svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6)); }
.cat-mark b {
  position: absolute; left: 0; right: 0; top: 46%; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: clamp(10px, 1.4vw, 14px); color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
.cat-mark.m-25 svg, .cat-mark.m-100 svg { filter: drop-shadow(0 0 10px rgba(255, 197, 61, 0.9)); }
.cat-mark.active { animation: markactive 0.7s ease-in-out infinite; }
@keyframes markin { from { transform: scale(0) rotate(-40deg); opacity: 0; } }
@keyframes markactive { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25) rotate(6deg); } }
.lines-svg { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: visible; }
.lines-svg polyline { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: linedraw 0.5s ease-out forwards; }
@keyframes linedraw { to { stroke-dashoffset: 0; } }
.line-win-label {
  position: absolute; z-index: 6; transform: translate(-50%, -50%); padding: 6px 12px; border-radius: 12px; background: rgba(10, 5, 18, 0.9); border: 1.5px solid var(--gold);
  font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--gold); white-space: nowrap; animation: bannerin 0.4s cubic-bezier(.2, 1.6, .4, 1);
  box-shadow: 0 6px 20px rgba(0,0,0,.5);
}
.bonus-hud { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; padding: 10px 14px; border-radius: 16px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 197, 61, 0.3); }
.bonus-hud .bh-item span { display: block; font-size: 11px; font-weight: 700; color: #f3cf86; text-transform: uppercase; letter-spacing: 0.08em; }
.bonus-hud .bh-item b { font-family: var(--font-display); font-size: 20px; color: #fff; }
.bonus-intro {
  position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px;
  background: radial-gradient(circle at 50% 45%, rgba(90, 30, 110, 0.92), rgba(10, 4, 16, 0.96)); animation: fadein 0.3s;
}
.bonus-intro .cat-big { width: 150px; height: 150px; animation: catbounce 1s cubic-bezier(.2, 1.6, .4, 1); filter: drop-shadow(0 10px 40px rgba(255, 197, 61, 0.6)); }
@keyframes catbounce { from { transform: scale(0) rotate(-30deg); } }
.bonus-intro h2 { font-family: var(--font-display); font-weight: 900; font-size: 42px; margin: 14px 0 6px; background: linear-gradient(180deg, #fff6d6, #ffc53d 60%, #ff8a1f); -webkit-background-clip: text; background-clip: text; color: transparent; animation: bwtitle 0.7s 0.2s cubic-bezier(.2, 1.6, .4, 1) both; }
.bonus-intro p { margin: 0 0 6px; color: #e6d8ff; font-size: 16px; font-weight: 600; max-width: 420px; }
.fruit-paytable { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fruit-pt { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); }
.fruit-pt svg { width: 30px; height: 30px; }
.fruit-pt .x3 { font-size: 12px; color: var(--muted); font-weight: 700; }
.fruit-pt .x { margin-left: auto; font-family: var(--font-display); font-weight: 800; color: var(--gold); font-size: 14px; }
.fruit-pt.hit { border-color: var(--gold); box-shadow: 0 0 18px rgba(255, 197, 61, 0.35); }

/* ---------- history ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card { padding: 18px; display: flex; gap: 14px; align-items: center; }
.stat-card .s-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.stat-card span { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.stat-card b { font-family: var(--font-display); font-size: 21px; }
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 22px 0 14px; }
.filter-tabs button { height: 40px; padding: 0 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; color: var(--muted); transition: all 0.2s; }
.filter-tabs button:hover { color: var(--text); }
.filter-tabs button.active { background: var(--grad-soft); border-color: rgba(124, 92, 255, 0.5); color: #fff; }
.h-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty .ic { width: 44px; height: 44px; margin: 0 auto 12px; color: var(--dim); }
.skeleton { background: linear-gradient(90deg, var(--surface2), var(--surface3), var(--surface2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- terms ---------- */
.terms-layout { display: grid; grid-template-columns: 280px 1fr; gap: 16px; align-items: start; }
.terms-nav { padding: 10px; position: sticky; top: calc(var(--header-h) + 16px); }
.terms-nav a { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 12px; font-weight: 700; color: var(--muted); transition: all 0.15s; }
.terms-nav a:hover { color: var(--text); background: var(--surface2); }
.terms-nav a.active { color: #fff; background: var(--grad-soft); }
.terms-doc { padding: 34px 40px; }
.terms-doc h1 { font-family: var(--font-display); font-size: 26px; margin: 0 0 6px; }
.terms-doc .updated { color: var(--dim); font-size: 13px; margin-bottom: 26px; }
.terms-doc h2 { font-size: 18px; margin: 28px 0 10px; color: #e4d9ff; }
.terms-doc p, .terms-doc li { color: #c9bddf; font-size: 15px; line-height: 1.7; }
.terms-doc ul { padding-left: 20px; }
.terms-doc .callout { padding: 16px 18px; border-radius: 16px; background: rgba(255, 77, 109, 0.08); border: 1px solid rgba(255, 77, 109, 0.25); color: #ffd0d8; margin: 16px 0; }

/* ---------- admin ---------- */
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-tabs button { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; color: var(--muted); }
.admin-tabs button.active { background: var(--grad-soft); border-color: rgba(124, 92, 255, 0.5); color: #fff; }
.admin-tabs .count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--pink); color: #fff; font-size: 12px; display: grid; place-items: center; }
.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.req-card { padding: 16px; display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.req-card + .req-card { margin-top: 10px; }
.req-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.req-meta b { color: var(--text); font-weight: 700; }
.req-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.req-actions .input { height: 38px; width: 110px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 150; background: rgba(5, 2, 10, 0.6); animation: fadein 0.2s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 151; width: min(720px, 100vw); overflow: auto; background: #170f22; border-left: 1px solid var(--line2); animation: drawerin 0.3s cubic-bezier(.2, .9, .3, 1); }
@keyframes drawerin { from { transform: translateX(100%); } }

/* ---------- mobile nav ---------- */
.mobile-nav { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .search { display: none; }
}
@media (max-width: 1100px) {
  .nav-link span { display: none; }
  .nav-link { padding: 0 14px; }
  .game-layout { grid-template-columns: 1fr; }
  .panel { position: static; order: 2; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .admin-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  :root { --header-h: 64px; }
  .header-inner { padding: 0 12px; gap: 8px; }
  .nav { display: none; }
  .logo-tag { display: none; }
  .logo-word { font-size: 16px; }
  .icon-btn.lang, .icon-btn.notif-btn { display: none; }
  .avatar, .icon-btn { width: 42px; height: 42px; }
  .balance-pill { height: 42px; font-size: 14px; padding: 0 10px 0 6px; }
  .header .btn-deposit { height: 42px; padding: 0 14px; }
  .header .btn-deposit span { display: none; }
  .main { padding: 16px 12px 100px; }
  .hero { padding: 30px 22px; min-height: 0; border-radius: 22px; }
  .hero h1 { font-size: 30px; }
  .hero-art { opacity: 0.18; width: 62%; }
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .game-card .title { font-size: 16px; }
  .features { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .terms-layout { grid-template-columns: 1fr; }
  .terms-nav { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .terms-nav a { white-space: nowrap; }
  .terms-doc { padding: 22px 18px; }
  .footer-inner { grid-template-columns: 1fr; }
  .stage { min-height: 0; padding: 50px 0 10px; border-radius: 22px; }
  .num-machine { padding: 14px; border-radius: 24px; }
  .num-reels { gap: 8px; }
  .num-reel { width: 28vw; max-width: 110px; }
  .fruit-machine { padding: 12px; border-radius: 24px; }
  .fruit-grid { gap: 6px; --cell: 26vw; }
  .fruit-paytable { grid-template-columns: repeat(2, 1fr); }
  .pay-grid { grid-template-columns: 1fr; justify-items: center; }
  .methods { grid-template-columns: 1fr 1fr; }
  .method { padding: 10px; gap: 8px; }
  .settings-grid { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr 1fr; }
  .req-card { grid-template-columns: 1fr; }
  .req-actions { justify-content: flex-start; }
  .bigwin .bw-title { font-size: 34px; }
  .bigwin .bw-amount { font-size: 30px; }
  .bonus-intro h2 { font-size: 30px; }
  .support-btn { bottom: 84px; right: 14px; width: 48px; height: 48px; }
  .support-panel { right: 14px; bottom: 142px; width: calc(100vw - 28px); max-width: 320px; }
  .toasts { left: 12px; right: 12px; top: calc(var(--header-h) + 8px); }
  .toast { width: auto; }
  .mobile-nav {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; height: 68px;
    background: rgba(16, 9, 24, 0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-nav a, .mobile-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--muted); }
  .mobile-nav .active { color: #fff; }
  .mobile-nav .active .ic { color: var(--primary2); }
  .modal { border-radius: 22px; }
  .modal-head { padding: 18px 18px 4px; }
  .modal-body { padding: 14px 18px 20px; }
}
@media (max-width: 480px) {
  .header .logo-word span { display: none; }
  .header .logo-word .claw { width: 34px; height: 34px; }
  .header .btn-deposit { width: 42px; padding: 0; }
  .header-right { gap: 6px; }
  .header-right .btn { padding: 0 12px; }
}
@media (max-width: 360px) {
  .balance-pill .coin { display: none; }
  .balance-pill { padding: 0 10px; }
}
/* Reduced motion: stop only the endless decorative loops; game animations stay (they carry the result). */
@media (prefers-reduced-motion: reduce) {
  .float, .bigwin .rays, .btn-play::before, .fruit-machine.bonus-mode::before { animation: none !important; }
}
