/* Triple Gifts — два цвета: почти чёрный и фиолетовый.
   Всё остальное — оттенки этих двух цветов и белый текст. */
:root {
  --bg: #0A0A0D;
  --surface: #15141A;
  --surface-2: #1C1B22;
  --surface-3: #26252E;
  --line: rgba(245, 185, 60, .14);
  --text: #FFFFFF;
  --muted: #9A968A;
  --accent: #F5B93C;
  --accent-soft: #FFD166;
  --accent-pale: #FFF4DC;
  --accent-deep: #C98512;
  --on-accent: #1A1305;
  --accent-glow: rgba(245, 185, 60, .45);
  --grad: linear-gradient(135deg, #FFD166 0%, #F5B93C 45%, #C98512 100%);
  --radius: 20px;
  --font-head: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 600 15px/1.4 var(--font); }
body { min-height: 100vh; padding-bottom: calc(24px + env(safe-area-inset-bottom)); overflow-x: hidden; }
button { font: inherit; color: inherit; border: 0; cursor: pointer; background: none; }
input { font: 700 16px var(--font); color: var(--text); background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 14px; width: 100%; outline: none; transition: border-color .15s; }
input:focus { border-color: var(--accent); }
input::placeholder { color: #6A665C; font-weight: 600; }
input[type=range] { -webkit-appearance: none; appearance: none; height: 6px; padding: 0; border: 0;
  background: var(--surface-3); border-radius: 3px; margin: 16px 0 6px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 5px rgba(245, 185, 60, .25); }
.hidden { display: none !important; }

.bg-glow { position: fixed; inset: -25% -40% auto; height: 70vh; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side at 50% 40%, rgba(245, 185, 60, .22), transparent 70%); }

/* ---------- шапка ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: rgba(10, 10, 13, .82); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; padding: 0; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.wordmark { font-family: var(--font-head); font-size: 16px; letter-spacing: .5px; display: flex; gap: 5px; }
.wordmark b { font-weight: 900; }
.wordmark i { font-style: normal; font-weight: 800; color: var(--accent-soft); }
.screen-title { flex: 1; font-family: var(--font-head); font-weight: 800; font-size: 16px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.back { width: 38px; height: 38px; border-radius: 12px; background: var(--surface-2); font-size: 24px; line-height: 1; }
.balance { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); font-weight: 800; font-size: 15px; }
.balance .star, .big-star { color: var(--accent-soft); }
.balance .plus { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); display: grid;
  place-items: center; font-size: 18px; line-height: 1; }

main { padding: 0 16px; max-width: 520px; margin: 0 auto; }
.screen { display: none; animation: rise .25s ease; }
.screen.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- главная ---------- */
.hero { position: relative; display: flex; align-items: center; margin-top: 14px; padding: 18px; border-radius: 24px;
  background: var(--grad); overflow: hidden; box-shadow: 0 18px 40px -18px var(--accent-glow); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .28), transparent 45%); }
.hero-text { flex: 1; position: relative; z-index: 1; }
.hero-kicker { font-size: 13px; opacity: .9; }
.hero-title { font-family: var(--font-head); font-weight: 900; font-size: 24px; line-height: 1.1; margin: 6px 0 12px; }
.hero-title .x { color: var(--bg); background: #fff; padding: 0 6px; border-radius: 8px; }
.hero-art { width: 92px; height: 92px; border-radius: 22px; position: relative; z-index: 1;
  box-shadow: 0 12px 30px rgba(10, 10, 13, .5); animation: float 3s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px) rotate(-4deg); } }

.ticker { margin: 14px -16px 4px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; gap: 8px; width: max-content; animation: marquee 40s linear infinite; padding: 2px 16px; }
.ticker-track:empty { display: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tk { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); font-size: 13px; white-space: nowrap; }
.tk .xx { color: var(--accent-soft); font-weight: 800; } .tk b { color: #fff; }

.games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 12px 0; }
.game { position: relative; height: 112px; border-radius: var(--radius); padding: 12px; text-align: left; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid var(--line);
  background: radial-gradient(120% 100% at 100% 0%, rgba(245, 185, 60, .28), transparent 55%), var(--surface);
  transition: transform .12s, border-color .15s; }
.game:active { transform: scale(.97); border-color: var(--accent); }
.game .gi { position: absolute; right: 10px; top: 10px; width: 48px; height: 48px; fill: none; stroke: var(--accent-soft);
  stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 10px var(--accent-glow)); }
.game .gn { font-family: var(--font-head); font-weight: 800; font-size: 16px; position: relative; }
.game .gx { position: relative; align-self: flex-start; margin-bottom: 4px; font-size: 11px; font-weight: 800;
  padding: 3px 8px; border-radius: 999px; background: rgba(245, 185, 60, .18); color: var(--accent-pale); }
.game.wide { grid-column: span 2; height: 88px; }
.game.accent { background: var(--grad); border-color: transparent; }
.game.accent .gi { stroke: #fff; filter: none; }
.game.accent .gx { background: rgba(10, 10, 13, .3); color: var(--on-accent); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 12px 0; }
.panel.center { text-align: center; }
.panel-title { font-family: var(--font-head); font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.controls { background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.row { display: flex; gap: 8px; align-items: center; margin: 10px 0; }
.lbl { white-space: nowrap; color: var(--muted); min-width: 110px; }
.note { color: var(--muted); font-size: 12px; font-weight: 500; text-align: center; margin: 14px 8px; }
.note.left { text-align: left; margin: 0 0 12px; }
.big-star { font-size: 52px; margin: 0 0 6px; text-shadow: 0 0 24px var(--accent-glow); }

.btn { background: var(--accent); color: var(--on-accent); font-weight: 800; padding: 12px 18px; border-radius: 14px; white-space: nowrap;
  box-shadow: 0 10px 24px -12px var(--accent-glow); transition: transform .1s, filter .15s; }
.btn:active { transform: scale(.97); }
.btn.big { width: 100%; padding: 17px; font-size: 17px; font-family: var(--font-head); font-weight: 800; letter-spacing: .3px; }
.btn.small { padding: 9px 16px; font-size: 14px; background: #fff; color: var(--accent-deep); box-shadow: none; }
.btn.cash { background: #fff; color: var(--accent-deep); box-shadow: 0 0 0 2px var(--accent), 0 10px 30px -10px var(--accent-glow); }
.btn:disabled { filter: saturate(.3) brightness(.7); }

.betbox { display: flex; gap: 6px; }
.betbox input { flex: 1; min-width: 0; text-align: center; font-size: 18px; font-weight: 800; }
.betbox button { flex: none; background: var(--surface-3); border-radius: 12px; padding: 0 11px; font-weight: 800; min-width: 44px; }
.controls .betbox { margin-bottom: 10px; }

.seg { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 10px; }
.seg.two { grid-template-columns: 1fr 1fr; }
.seg.tabs { margin-top: 14px; }
.seg button { background: var(--surface-3); border-radius: 12px; padding: 10px 0; font-weight: 800; color: var(--muted); }
.seg button.sel { background: var(--accent); color: var(--on-accent); }

.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.presets button { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 0; font-weight: 800; }

.gifts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gift { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 12px 6px; text-align: center; }
.gift .em { display: block; font-size: 34px; }
.gift b { display: block; margin-top: 4px; }
.gift:disabled { opacity: .35; }
.wager { background: rgba(245, 185, 60, .12); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px;
  margin-bottom: 12px; font-size: 13px; color: var(--accent-pale); }

.history { display: flex; flex-direction: column; gap: 8px; }
.history .h { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.history .h b.win { color: var(--accent-soft); } .history .h b.lose { color: #6A665C; }

.result { text-align: center; font-family: var(--font-head); font-size: 17px; font-weight: 800; min-height: 26px; margin: 12px 0; }
.result.win { color: var(--accent-soft); text-shadow: 0 0 18px var(--accent-glow); }
.result.lose { color: var(--muted); }

.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.stats3 > div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px; text-align: center; }
.stats3 small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.stats3 b { font-family: var(--font-head); font-size: 16px; }
.stats3 input { padding: 4px; text-align: center; font-family: var(--font-head); font-size: 16px; background: transparent; border: 0; }

.chips { display: flex; gap: 6px; overflow-x: auto; margin: 12px 0 0; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--surface-2); color: var(--muted); }
.chip.mid { color: var(--accent-soft); } .chip.hi { color: var(--on-accent); background: var(--accent); }

/* ---------- слоты ---------- */
.slot-machine { position: relative; margin-top: 16px; padding: 16px 12px; border-radius: 26px;
  background: linear-gradient(180deg, #1F1A33, #120F1C); border: 2px solid rgba(245, 185, 60, .5);
  box-shadow: 0 20px 50px -20px var(--accent-glow), inset 0 0 30px rgba(0, 0, 0, .5); }
.reels { display: flex; gap: 8px; justify-content: center; position: relative; }
.reel { flex: 1; max-width: 104px; height: 104px; overflow: hidden; border-radius: 16px;
  background: linear-gradient(180deg, #0A0A0D, #19152A 50%, #0A0A0D); box-shadow: inset 0 0 0 1px var(--line); }
.strip { display: flex; flex-direction: column; }
.strip div { height: 104px; display: flex; align-items: center; justify-content: center; font-size: 56px; }
.payline { position: absolute; left: 10px; right: 10px; top: 50%; height: 2px; background: var(--accent-soft); opacity: 0; transition: opacity .2s; }
.slot-machine.won .payline { opacity: .9; box-shadow: 0 0 14px var(--accent); }
.slot-machine.won { animation: pulse .6s ease 3; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(245, 185, 60, .35), 0 20px 60px -10px var(--accent-glow); } }
.paytable { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.paytable div { display: flex; justify-content: space-between; background: var(--surface-2); border-radius: 12px; padding: 8px 10px; font-size: 14px; }
.paytable b { color: var(--accent-soft); }

/* ---------- краш ---------- */
.crash-box { position: relative; height: 240px; margin-top: 10px; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(120% 100% at 0% 100%, rgba(245, 185, 60, .22), transparent 60%), var(--surface);
  border: 1px solid var(--line); }
#crash-canvas { width: 100%; height: 100%; display: block; }
.crash-mult { position: absolute; left: 0; right: 0; top: 34%; text-align: center; font-family: var(--font-head);
  font-size: 52px; font-weight: 900; text-shadow: 0 6px 30px rgba(0, 0, 0, .6); }
.crash-sub { position: absolute; left: 0; right: 0; top: 62%; text-align: center; color: var(--muted); font-weight: 700; }
.crash-mult.win { color: var(--accent-soft); } .crash-mult.lose { color: #6A665C; }

/* ---------- мины ---------- */
.mines-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.mines-grid button { aspect-ratio: 1; border-radius: 14px; font-size: 26px; background: var(--surface-3);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .35), 0 0 0 1px var(--line); transition: transform .12s; }
.mines-grid button:active { transform: scale(.93); }
.mines-grid button.safe { background: var(--accent); box-shadow: 0 0 16px var(--accent-glow); animation: pop .25s; }
.mines-grid button.boom { background: #fff; animation: shake .35s; }
.mines-grid button.dim { opacity: .35; }
@keyframes pop { from { transform: scale(.6); } }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* ---------- ролик ---------- */
.roller { position: relative; height: 100px; overflow: hidden; border-radius: var(--radius); margin-top: 14px;
  background: var(--surface); border: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.roller.tall { height: 118px; }
.roller-track { display: flex; height: 100%; align-items: center; will-change: transform; }
.roller-track .it { flex: 0 0 84px; height: 80px; margin: 0 4px; border-radius: 14px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; font-size: 20px;
  background: var(--surface-3); overflow: hidden; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .3); }
.roller.tall .it { height: 96px; }
.roller-track .it .em { font-size: 34px; line-height: 1.1; }
.roller-track .it small { font-family: var(--font); font-size: 12px; font-weight: 800; opacity: .95; max-width: 78px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roller-track .it.red { background: var(--accent); }
.roller-track .it.black { background: #0A0A0D; box-shadow: inset 0 0 0 1px var(--line); }
.roller-track .it.green { background: #fff; color: var(--bg); }
.roller-pointer { position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px; background: #fff;
  box-shadow: 0 0 16px var(--accent); border-radius: 2px; }
.roller-pointer::before { content: ""; position: absolute; top: -2px; left: -7px; border: 9px solid transparent; border-top-color: #fff; }

/* ---------- кейсы ---------- */
.cases-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.case-card { position: relative; border-radius: var(--radius); padding: 18px 10px 14px; text-align: center; overflow: hidden;
  background: radial-gradient(100% 70% at 50% 30%, rgba(245, 185, 60, .3), transparent 70%), var(--surface); border: 1px solid var(--line); }
.case-card .e { position: relative; font-size: 56px; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .5)); }
.case-card .n { position: relative; font-family: var(--font-head); font-weight: 800; margin-top: 6px; }
.case-card .p { position: relative; display: inline-block; margin-top: 8px; padding: 5px 12px; border-radius: 999px;
  background: var(--accent); font-weight: 800; }
.case-card .j { position: relative; color: var(--accent-soft); font-size: 12px; margin-top: 6px; }
.case-hero { text-align: center; margin-top: 10px; }
.case-emoji { font-size: 84px; filter: drop-shadow(0 12px 24px var(--accent-glow)); animation: float 3s ease-in-out infinite; }
.prizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.prizes div { background: var(--surface-2); border-radius: 12px; padding: 8px 4px; text-align: center; font-weight: 800; font-size: 13px; }
.prizes .em { display: block; font-size: 26px; }
.prizes small { display: block; color: var(--muted); font-weight: 600; font-size: 11px; }

/* ---------- PvP ---------- */
.pvp-top { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.pot small { display: block; color: var(--muted); font-size: 12px; }
.pot b { font-family: var(--font-head); font-size: 26px; font-weight: 900; }
.timer { font-family: var(--font-head); font-weight: 800; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); }
.pvp-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--surface-2); margin: 12px 0 0; gap: 2px; }
.pvp-bar span { height: 100%; transition: width .4s; }
.pvp-players { display: flex; flex-direction: column; gap: 6px; }
.pl { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 9px 12px; }
.pl .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.pl .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl .am { font-weight: 800; } .pl .ch { color: var(--muted); width: 58px; text-align: right; font-size: 13px; }
.pl.me { border-color: var(--accent); }

/* ---------- большой выигрыш ---------- */
.bigwin { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(10, 10, 13, .8);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadein .2s; }
@keyframes fadein { from { opacity: 0; } }
.bigwin-card { position: relative; z-index: 2; text-align: center; padding: 28px 30px; border-radius: 28px; min-width: 260px;
  background: linear-gradient(180deg, #1F1A33, #15141A); border: 2px solid var(--accent);
  box-shadow: 0 0 70px var(--accent-glow); animation: zoom .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes zoom { from { transform: scale(.5); opacity: 0; } }
.bigwin-label { font-family: var(--font-head); font-weight: 900; letter-spacing: 3px; font-size: 16px; color: var(--accent-soft); }
.bigwin-x { font-family: var(--font-head); font-weight: 900; font-size: 64px; color: #fff; text-shadow: 0 0 30px var(--accent); }
.bigwin-sum { font-family: var(--font-head); font-weight: 800; font-size: 24px; color: var(--accent-soft); margin-bottom: 16px; }
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; top: -20px; width: 8px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

.toast { position: fixed; left: 16px; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); max-width: 480px; margin: 0 auto;
  background: var(--surface-3); border: 1px solid var(--accent); padding: 13px 16px; border-radius: 16px; text-align: center;
  font-weight: 700; opacity: 0; transform: translateY(20px); transition: all .25s; pointer-events: none; z-index: 70; }
.toast.show { opacity: 1; transform: none; }
.toast.err { border-color: #6A665C; color: var(--muted); }

/* ---------- эффекты и новые элементы ---------- */
.fx { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 80; }
.muted { color: var(--muted); font-weight: 600; font-family: var(--font); }

.av { position: relative; overflow: hidden; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.it .av-big { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  font-weight: 800; font-size: 15px; position: relative; box-shadow: 0 0 0 2px rgba(255, 255, 255, .6); margin-bottom: 3px; }
.it .av-big img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.plist { display: flex; flex-direction: column; gap: 6px; }
.plist .pl .st { min-width: 86px; text-align: right; font-weight: 800; font-size: 13px; }
.plist .pl .st.win { color: var(--accent-soft); } .plist .pl .st.lose { color: #6A665C; }
.plist .pl.cashed { border-color: var(--accent); background: linear-gradient(90deg, rgba(245, 185, 60, .18), var(--surface)); }
.plist .pl.just { animation: pop .3s; }

.phase-bar { position: absolute; left: 14px; right: 14px; bottom: 12px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.phase-bar i { display: block; height: 100%; width: 0; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.rink { margin-top: 12px; border-radius: 26px; overflow: hidden; border: 2px solid rgba(245, 185, 60, .5);
  box-shadow: 0 20px 50px -20px var(--accent-glow); background: #0F0E12; }
#hockey-canvas { display: block; width: 100%; aspect-ratio: 100 / 160; max-height: 62vh; margin: 0 auto; }

.strip.spin { filter: blur(2.5px); }
.reel { transition: box-shadow .2s; }
.reel.stop { animation: reelstop .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes reelstop { 0% { transform: translateY(-6px); } 100% { transform: none; } }

.mines-grid button.safe, .mines-grid button.boom { animation: flip .4s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes flip { from { transform: rotateY(90deg) scale(.8); } to { transform: none; } }

@keyframes numpop { from { transform: scale(.7); } }

.prizes .nft { grid-column: span 2; background: linear-gradient(135deg, rgba(245, 185, 60, .35), var(--surface-2));
  box-shadow: inset 0 0 0 1px var(--accent); }
.prizes .nft .ttl { display: block; font-size: 12px; } .prizes .nft small { color: var(--accent-pale); }
.case-card.nft { background: var(--grad); border-color: transparent; }
.case-card.nft .j { color: var(--on-accent); } .case-card.nft .p { background: #fff; color: var(--accent-deep); }
.result.reveal { animation: numpop .5s cubic-bezier(.3, 1.6, .5, 1); }
.balance.bump { animation: bump .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 50% { transform: scale(1.08); } }

/* символы слотов как в 🎰 Telegram */
.sym { display: inline-grid; place-items: center; font-size: 52px; line-height: 1; }
.sym.bar { font-family: var(--font-head); font-weight: 900; font-size: 22px; letter-spacing: 1px; color: var(--bg);
  background: #fff; border-radius: 8px; padding: 8px 8px; box-shadow: 0 0 0 3px var(--accent), 0 6px 16px rgba(0, 0, 0, .4); }
.sym.seven { font-family: var(--font-head); font-weight: 900; font-size: 64px; color: var(--accent-soft);
  -webkit-text-stroke: 2px #fff; text-shadow: 0 0 18px var(--accent-glow); }
.paytable .combo { display: flex; align-items: center; gap: 4px; }
.paytable .combo .sym { font-size: 18px; }
.paytable .combo .sym.bar { font-size: 9px; padding: 3px 4px; box-shadow: 0 0 0 1.5px var(--accent); }
.paytable .combo .sym.seven { font-size: 22px; -webkit-text-stroke: 1px #fff; }
.paytable .combo small { color: var(--muted); font-size: 11px; margin-left: 4px; }
.paytable { grid-template-columns: 1fr; }

/* ---------- подарки игроков ---------- */
.seg.three { grid-template-columns: repeat(3, 1fr); }
.mygifts { display: flex; flex-direction: column; gap: 8px; }
.mg { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: center; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 14px; padding: 10px; text-align: left; width: 100%; color: inherit; }
.mg .em { font-size: 30px; text-align: center; }
.mg .t { font-weight: 800; font-size: 14px; }
.mg .s { color: var(--muted); font-size: 12px; margin-top: 2px; }
.mg .v { font-weight: 800; color: var(--accent-soft); white-space: nowrap; }
.mg .acts { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mg .acts .btn { padding: 9px; font-size: 13px; }
.mg.sel { border-color: var(--accent); background: linear-gradient(90deg, rgba(245, 185, 60, .22), var(--surface-2)); }
.mg.off { opacity: .45; }
.row .gift-btn { flex: 0 0 auto; width: 64px; font-size: 24px; padding: 0; background: #fff; }
.pl .gl { font-size: 13px; margin-left: 4px; }
.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(5, 4, 10, .7); display: flex; align-items: flex-end; }
.sheet.hidden { display: none; }
.sheet-box { width: 100%; max-height: 80vh; overflow-y: auto; background: var(--surface); border-radius: 22px 22px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); animation: sheetUp .25s ease-out; }
.sheet-box .row { margin-top: 12px; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- страницы: нижнее меню, игры, друзья, профиль ---------- */
body.has-tabbar { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(10, 10, 13, .9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.tabbar.hidden { display: none; }
.tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; color: var(--muted);
  font-size: 11px; font-weight: 800; transition: color .2s; }
.tabbar svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round;
  stroke-linejoin: round; transition: transform .2s; }
.tabbar button.sel { color: #fff; }
.tabbar button.sel svg { stroke: var(--accent-soft); transform: translateY(-2px); }

.sec-head { display: flex; justify-content: space-between; align-items: center; margin: 18px 2px 0;
  font-family: var(--font-head); font-weight: 800; font-size: 15px; }
.sec-head button { color: var(--accent-soft); font-weight: 800; font-size: 13px; }
.page-head { margin: 16px 2px 0; }
.page-head h1 { font-family: var(--font-head); font-weight: 900; font-size: 26px; margin: 0; }
.page-head p { color: var(--muted); font-size: 13px; margin: 6px 0 0; }

.promo { display: flex; align-items: center; gap: 14px; width: 100%; margin: 12px 0; padding: 14px; text-align: left;
  border-radius: var(--radius); border: 1px solid var(--accent);
  background: linear-gradient(110deg, rgba(245, 185, 60, .35), rgba(245, 185, 60, .06) 70%), var(--surface); }
.promo-x { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: #fff;
  color: var(--accent-deep); font-family: var(--font-head); font-weight: 900; font-size: 18px; }
.promo.slim .promo-x { background: var(--surface-3); font-size: 28px; }
.promo-t { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.promo-t b { font-family: var(--font-head); font-size: 15px; }
.promo-t small { color: var(--muted); font-size: 12px; font-weight: 600; }
.promo-go { font-size: 26px; color: var(--accent-soft); }

.ref-hero { margin-top: 16px; padding: 22px 18px; border-radius: 24px; text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, var(--accent) 0%, var(--accent-deep) 55%, #1B1030 100%); }
.ref-x { font-family: var(--font-head); font-weight: 900; font-size: 64px; line-height: 1; text-shadow: 0 6px 30px rgba(0, 0, 0, .35); }
.ref-t { margin-top: 8px; font-weight: 700; font-size: 14px; opacity: .92; }
.ref-link { font: 700 13px var(--font); color: var(--accent-soft); background: var(--surface-2); border: 1px dashed var(--accent);
  border-radius: 12px; padding: 12px; word-break: break-all; text-align: center; }
.ref-link + .row .btn:first-child { flex: none; background: #fff; color: var(--accent-deep); }
.steps { margin: 0 0 12px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.steps li::marker { color: var(--accent-soft); font-weight: 900; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.stats.two { grid-template-columns: 1fr 1fr; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; min-width: 0; }
.stat small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; }
.stat b { display: block; margin-top: 4px; font-family: var(--font-head); font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.prof-head { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.prof-av { width: 72px; height: 72px; flex: none; }
.prof-av .av { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 24px; box-shadow: 0 0 0 3px var(--accent), 0 10px 30px -8px var(--accent-glow); }
.prof-id { min-width: 0; }
.prof-name { font-family: var(--font-head); font-weight: 900; font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prof-sub { color: var(--muted); font-size: 12px; font-weight: 600; margin-top: 4px; }
.prof-bal { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 0; padding: 14px;
  border-radius: var(--radius); background: linear-gradient(120deg, var(--accent-deep), var(--accent)); }
.prof-bal small { display: block; font-size: 12px; opacity: .85; font-weight: 700; }
.prof-bal b { font-family: var(--font-head); font-size: 24px; font-weight: 900; }
.prof-acts { display: flex; gap: 6px; }
.prof-acts .btn { padding: 10px 12px; font-size: 13px; background: #fff; color: var(--accent-deep); box-shadow: none; }
.prof-acts .btn.small { background: rgba(255, 255, 255, .16); color: #fff; }
.best { display: flex; align-items: center; justify-content: space-between; }
.best small { color: var(--muted); font-weight: 700; font-size: 12px; display: block; }
.best b { font-family: var(--font-head); font-size: 18px; color: var(--accent-soft); }
.ref-link + .row .btn.big { flex: 1; width: auto; min-width: 0; padding: 14px 10px; font-size: 15px; }

/* ---------- апгрейд NFT ---------- */
.upg-wheel { position: relative; width: 240px; height: 240px; margin: 18px auto 8px; }
.upg-wheel svg { width: 100%; height: 100%; transform: rotate(-90deg); filter: drop-shadow(0 0 22px var(--accent-glow)); }
.upg-track { fill: none; stroke: var(--surface-3); stroke-width: 18; }
.upg-arc { fill: none; stroke: var(--accent); stroke-width: 18; stroke-linecap: butt; transition: stroke-dashoffset .35s ease; }
.upg-needle { position: absolute; inset: 0; transform: rotate(0deg); pointer-events: none; }
.upg-needle i { position: absolute; left: 50%; top: 4px; width: 6px; height: 40px; margin-left: -3px; border-radius: 3px;
  background: #fff; box-shadow: 0 0 12px rgba(255, 255, 255, .7); }
.upg-needle i::after { content: ""; position: absolute; left: -5px; bottom: -8px; border: 8px solid transparent; border-top-color: #fff; }
.upg-center { position: absolute; inset: 50px; border-radius: 50%; background: var(--surface); display: flex; flex-direction: column;
  align-items: center; justify-content: center; border: 1px solid var(--line); }
.upg-center b { font-family: var(--font-head); font-size: 30px; font-weight: 900; }
.upg-center small { color: var(--muted); font-weight: 700; }
.upg-pair { display: grid; grid-template-columns: 1fr 28px 1fr; align-items: center; gap: 6px; margin: 10px 0; }
.upg-side { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px; text-align: center; min-width: 0; }
.upg-side.to { border-color: var(--accent); }
.upg-side small { color: var(--muted); font-size: 11px; font-weight: 700; }
.upg-em { font-size: 30px; line-height: 1.3; white-space: nowrap; overflow: hidden; }
.upg-side b { font-size: 14px; }
.upg-arrow { text-align: center; font-size: 30px; color: var(--accent-soft); font-weight: 900; }
.upg-targets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.upt { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 10px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 2px; color: inherit; min-width: 0; }
.upt .em { font-size: 32px; }
.upt b { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upt small { color: var(--muted); font-size: 11px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upt .pr { margin-top: 4px; font-weight: 800; color: var(--accent-soft); }
.upt.sel { border-color: var(--accent); background: linear-gradient(180deg, rgba(245, 185, 60, .3), var(--surface-2)); }
.upt.off { opacity: .35; }

/* ---------- несколько кейсов сразу ---------- */
.seg.five { grid-template-columns: repeat(5, 1fr); margin-top: 12px; }
.case-rollers { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.case-rollers .roller { margin-top: 0; }
.case-rollers.multi .roller { height: 76px; }
.case-rollers.multi .roller-track .it { height: 64px; flex-basis: 84px; }
.case-rollers.multi .roller-track .it .em { font-size: 26px; }
.case-rollers.multi .roller-track .it small { font-size: 11px; }
.case-drops { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: -4px 0 4px; }
.case-drops span { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px;
  font-weight: 800; font-size: 13px; animation: pop .3s; }
.case-drops span.good { border-color: var(--accent); color: var(--accent-soft); }
.mg .acts-note { grid-column: 1 / -1; color: var(--accent-soft); }

/* ---------- валюты: звёзды и TON ---------- */
body.cur-ton .only-stars { display: none !important; }
body:not(.cur-ton) .only-ton { display: none !important; }
.cur-switch { display: flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin-right: 6px; }
.cur-switch button { width: 34px; height: 30px; border-radius: 999px; font-size: 15px; color: var(--muted); font-weight: 900; }
.cur-switch button.sel { background: var(--accent); color: var(--on-accent); }
.kv { text-align: left; margin: 10px 0; }
.kv small { display: block; color: var(--muted); font-weight: 700; font-size: 12px; margin-bottom: 4px; }
.kv .btn.small { margin-top: 6px; width: 100%; }
#tab-out input#ton-address { width: 100%; margin: 6px 0; }

/* ---------- картинки NFT ---------- */
.nft-ic { display: inline-grid; place-items: center; }
.nft-ic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mg .em.nft-ic { width: 46px; height: 46px; }
.mg .em.nft-ic.has-img img { border-radius: 12px; }
.nft-inline { width: 30px; height: 30px; vertical-align: middle; font-size: 26px; }
.nft-inline.big { width: 56px; height: 56px; font-size: 40px; }
.upg-em .nft-inline { width: 40px; height: 40px; }
.roller-track .it .em.nft-ic { width: 54px; height: 54px; }
.pl .gl .nft-inline { width: 18px; height: 18px; font-size: 14px; }
.upt .em { display: block; height: 58px; }

/* ---------- апгрейд v2 ---------- */
.upg-stage { margin-top: 14px; padding: 8px 12px 14px; border-radius: 26px; border: 1px solid var(--line);
  background: radial-gradient(90% 70% at 50% 30%, rgba(245, 185, 60, .28), transparent 70%), var(--surface); }
.upg-wheel { width: 250px; height: 250px; margin: 6px auto 4px; transition: transform .3s; }
.upg-wheel svg { filter: drop-shadow(0 0 26px var(--accent-glow)); }
.upg-track { stroke: rgba(255, 255, 255, .06); stroke-width: 20; }
.upg-ticks { fill: none; stroke: rgba(255, 209, 102, .35); stroke-width: 2; stroke-dasharray: 1.5 9; }
.upg-arc { stroke: url(#upg-grad); stroke-width: 20; transition: stroke-dashoffset .45s cubic-bezier(.3, .8, .3, 1); }
.upg-center { inset: 54px; background: radial-gradient(circle at 50% 35%, var(--surface-3), var(--surface) 70%);
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px -12px #000; gap: 1px; }
.upg-center b { font-size: 34px; letter-spacing: -.5px; }
.upg-x { margin-top: 4px; padding: 2px 10px; border-radius: 999px; background: rgba(245, 185, 60, .22); color: var(--accent-soft);
  font-weight: 900; font-size: 13px; }
.upg-wheel.won .upg-center { box-shadow: inset 0 0 0 2px var(--accent-soft), 0 0 40px var(--accent-glow); }
.upg-wheel.won .upg-center b { color: #fff; text-shadow: 0 0 18px var(--accent-soft); }
.upg-wheel.lost { animation: upg-shake .45s; }
.upg-wheel.lost .upg-center b { color: var(--muted); }
@keyframes upg-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.upg-pair { grid-template-columns: 1fr 26px 1fr; margin: 4px 0 0; }
.upg-side { padding: 10px 8px; border-radius: 18px; background: var(--surface-2); transition: border-color .2s, box-shadow .2s; }
.upg-side.filled { border-color: var(--accent); box-shadow: 0 8px 24px -14px var(--accent-glow); }
.upg-side.to { border-color: var(--line); }
.upg-side.to.filled { border-color: var(--accent-soft); background: linear-gradient(180deg, rgba(245, 185, 60, .22), var(--surface-2)); }
.upg-side b { display: block; font-size: 12px; line-height: 1.3; min-height: 32px; }
.upg-em { height: 48px; display: flex; align-items: center; justify-content: center; gap: 2px; }
.upg-em .nft-inline { width: 44px; height: 44px; }
.upg-em .more { font-size: 13px; font-weight: 900; color: var(--accent-soft); margin-left: 2px; }
.upg-arrow { font-size: 20px; }
.upg-mults { display: grid; grid-template-columns: auto repeat(4, 1fr); gap: 6px; align-items: center; margin: 12px 0 2px; }
.upg-mults-l { color: var(--muted); font-size: 12px; font-weight: 800; padding-right: 2px; }
.upg-mults button { height: 40px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 900;
  color: var(--accent-soft); transition: transform .15s, background .2s; }
.upg-mults button.sel { background: var(--accent); color: var(--on-accent); border-color: var(--accent); box-shadow: 0 8px 22px -10px var(--accent-glow); }
.upg-mults button:active { transform: scale(.94); }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.panel-head .panel-title { margin: 0; }
.link-btn { color: var(--accent-soft); font-weight: 800; font-size: 13px; }
input.search { width: 100%; margin-bottom: 10px; }
.upt { position: relative; padding-top: 22px; transition: transform .15s, border-color .2s; }
.upt .x { position: absolute; top: 7px; left: 7px; right: 7px; font-size: 10.5px; font-weight: 900; color: var(--accent-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upt:active, .mg:active { transform: scale(.97); }
.upt.sel .x { color: #fff; }

/* ---------- общая полировка ---------- */
button { -webkit-user-select: none; user-select: none; }
.btn:disabled, button:disabled { opacity: .5; }
.btn.big:disabled { box-shadow: none; }
.mg { transition: transform .15s, border-color .2s, background .2s; }
.panel { box-shadow: 0 12px 30px -24px #000; }
.tabbar button { position: relative; }
.tabbar button.sel::after { content: ""; position: absolute; bottom: -2px; width: 18px; height: 3px; border-radius: 2px;
  background: var(--accent-soft); box-shadow: 0 0 10px var(--accent-glow); }
.result.reveal { animation: pop .35s; }
.screen.active { animation: rise .28s cubic-bezier(.2, .8, .3, 1); }
::-webkit-scrollbar { width: 0; height: 0; }
.controls .row .btn.big { flex: 1; width: auto; min-width: 0; }

/* ---------- Plinko ---------- */
.plinko-box { margin-top: 14px; padding: 10px 6px 4px; border-radius: 24px; border: 1px solid var(--line);
  background: radial-gradient(80% 60% at 50% 0%, rgba(245, 185, 60, .28), transparent 70%), var(--surface); }
#plinko-canvas { width: 100%; display: block; }

/* ---------- бонус, VIP, лидеры ---------- */
.bonus-card { display: flex; align-items: center; gap: 12px; margin: 12px 0; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--line); background: linear-gradient(110deg, rgba(245, 185, 60, .22), var(--surface) 70%); }
.bonus-card.ready { border-color: var(--accent); box-shadow: 0 10px 30px -18px var(--accent-glow); }
.bonus-ic { font-size: 32px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-3); }
.bonus-card.ready .bonus-ic { animation: wiggle 1.6s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(-12deg); } 20% { transform: rotate(10deg); } 30% { transform: rotate(0); } }
.bonus-t { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.bonus-t b { font-family: var(--font-head); font-size: 14px; }
.bonus-t small { color: var(--muted); font-size: 12px; font-weight: 700; }
.bonus-ic.spin { animation: bonus-spin .12s linear infinite; }
@keyframes bonus-spin { from { transform: scale(.9); } to { transform: scale(1.1); } }
.vip-card { margin: 12px 0; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line);
  background: radial-gradient(90% 120% at 0% 0%, rgba(245, 185, 60, .3), transparent 60%), var(--surface); }
.vip-top { display: flex; align-items: center; gap: 12px; }
.vip-em { font-size: 34px; }
.vip-t { flex: 1; display: flex; flex-direction: column; }
.vip-t b { font-family: var(--font-head); font-size: 17px; }
.vip-t small { color: var(--muted); font-size: 12px; font-weight: 700; }
.vip-bar { height: 8px; border-radius: 4px; background: var(--surface-3); margin: 12px 0 6px; overflow: hidden; }
.vip-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--grad); box-shadow: 0 0 10px var(--accent-glow);
  transition: width .6s cubic-bezier(.2, .8, .3, 1); }
.vip-next { color: var(--muted); font-size: 12px; font-weight: 700; }
.vip-levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 10px; }
.vip-levels div { text-align: center; padding: 6px 2px; border-radius: 10px; background: var(--surface-2); font-size: 10px;
  font-weight: 800; color: var(--muted); }
.vip-levels div span { display: block; font-size: 18px; }
.vip-levels div.cur { background: rgba(245, 185, 60, .25); color: #fff; box-shadow: inset 0 0 0 1px var(--accent); }
.pl .place { width: 22px; text-align: center; font-weight: 900; color: var(--accent-soft); }

/* ---------- кейсы v2: live-лента, фильтр, иконки NFT, редкость ---------- */
.live-drops { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.live-dot { flex: none; font-size: 10px; font-weight: 900; letter-spacing: .8px; color: #fff; background: #E0245E;
  border-radius: 6px; padding: 3px 6px; animation: pulse-dot 1.6s ease-in-out infinite; }
@keyframes pulse-dot { 50% { opacity: .55; } }
.live-track { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.live-track::-webkit-scrollbar { display: none; }
.live-track .note { margin: 0; font-size: 12px; }
.ld { flex: none; display: flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line); max-width: 150px; }
.ld.good { border-color: var(--accent); }
.ld.nft { background: linear-gradient(135deg, rgba(245, 185, 60, .45), var(--surface-2)); }
.ld.new { animation: zoom .35s ease-out; }
.ld-ic { flex: none; width: 30px; height: 30px; font-size: 22px; display: inline-grid; place-items: center; }
.ld-t { min-width: 0; line-height: 1.15; }
.ld-t b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-t small { display: block; font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cases-filter { grid-template-columns: repeat(3, 1fr); margin: 12px 0 0; }
.cases-list { margin-top: 10px; }
.case-card .e { height: 64px; display: grid; place-items: center; }
.case-ic { width: 64px; height: 64px; font-size: 56px; display: inline-grid; place-items: center; }
.case-ic.big { width: 96px; height: 96px; font-size: 84px; }
.case-ic img { width: 100%; height: 100%; object-fit: contain; }
.case-emoji { display: inline-grid; place-items: center; min-height: 100px; }
.case-badge { position: absolute; top: 8px; right: 8px; font-size: 10px; font-weight: 900; padding: 3px 7px;
  border-radius: 999px; background: rgba(0, 0, 0, .35); color: #fff; }
.case-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.case-meta span { font-size: 11px; font-weight: 800; color: var(--muted); background: var(--surface-2);
  border-radius: 999px; padding: 4px 9px; }
.case-tools { display: flex; justify-content: center; gap: 8px; margin: 10px 0 4px; }
.case-tools .chip { padding: 8px 12px; }
.case-tools .chip:disabled { opacity: .5; }
.case-drops span { display: inline-flex; align-items: center; gap: 4px; }
.case-drops .nft-inline { width: 22px; height: 22px; font-size: 18px; }
.prizes > div { position: relative; border: 1px solid transparent; }
.prizes > div.t-leg { border-color: rgba(255, 255, 255, .7); box-shadow: 0 0 14px -4px rgba(255, 255, 255, .5); }
.prizes > div.t-epic { border-color: #FFD166; }
.prizes > div.t-rare { border-color: #F5B93C; }
.prizes > div.t-unc { border-color: #C98512; }
.roller-track .it.t-leg { box-shadow: inset 0 0 0 2px #fff, 0 0 18px -2px rgba(255, 255, 255, .6); }
.roller-track .it .em.nft-ic { background: none; }

/* ---------- чеки игрока ---------- */
#checks-panel .row input { flex: 1; min-width: 0; }
#chk-create { margin-top: 8px; }
.chk-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.chk { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
.chk-t { flex: 1; min-width: 0; }
.chk-t b { display: block; font-size: 14px; }
.chk-t small { color: var(--muted); font-size: 11px; }
.chk-a { display: flex; gap: 4px; flex: none; }
.chk-a .btn.small { padding: 7px 10px; font-size: 13px; }
.chk-a .btn.small.ghost { background: var(--surface-3); color: var(--text, #fff); }
.chk-activate { margin-top: 10px; }
.chk-activate input { flex: 1; min-width: 0; }

/* ---------- Triple Gifts: золото на тёмном — на золотых поверхностях тёмный текст ---------- */
.balance .plus, .hero, .game.accent, .roller-track .it.red, .case-card .p, .case-card.nft,
.case-card.nft .n, .mines-grid button.safe { color: var(--on-accent); }
.hero-kicker { opacity: .75; }
.hero-title .x { color: var(--accent); background: var(--bg); }
.game.accent .gi { stroke: var(--on-accent); }
.game.accent .gx { background: rgba(255, 255, 255, .35); color: var(--on-accent); }
.case-card.nft .p { background: var(--bg); color: var(--accent); }
.case-card.nft .case-badge { background: rgba(0, 0, 0, .55); }
.wordmark b { color: var(--accent); }
.bg-glow { background: radial-gradient(closest-side at 50% 40%, rgba(245, 185, 60, .16), transparent 70%); }
.topbar { border-bottom: 1px solid rgba(245, 185, 60, .10); }
.btn { box-shadow: 0 10px 26px -12px var(--accent-glow); }
.wordmark { font-size: 13px; letter-spacing: .3px; flex-direction: column; gap: 0; line-height: 1.05; }
.wordmark i { color: #fff; font-size: 11px; letter-spacing: 2.6px; }

/* ---------- бесплатный кейс ---------- */
.free-card { display: flex; align-items: center; gap: 12px; width: 100%; margin: 14px 0 0; padding: 12px 14px;
  border-radius: var(--radius); text-align: left; border: 1px solid var(--line);
  background: radial-gradient(120% 140% at 0% 0%, rgba(245, 185, 60, .22), transparent 60%), var(--surface); }
.free-card.ready { border-color: var(--accent); box-shadow: 0 10px 30px -18px var(--accent-glow); }
.free-ic { flex: none; width: 48px; height: 48px; display: grid; place-items: center; font-size: 30px;
  border-radius: 14px; background: var(--surface-2); }
.free-card.ready .free-ic { animation: wiggle 1.6s ease-in-out infinite; }
.free-t { flex: 1; min-width: 0; }
.free-t b { display: block; font-family: var(--font-head); font-size: 15px; }
.free-t small { display: block; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.free-go { flex: none; padding: 9px 14px; border-radius: 12px; font-weight: 800; font-size: 14px;
  background: var(--surface-3); color: var(--muted); }
.free-card.ready .free-go { background: var(--accent); color: var(--on-accent); }
#free-roller { margin-top: 14px; }
#free-btn:disabled { opacity: .55; font-variant-numeric: tabular-nums; }

/* ---------- подписка на канал ---------- */
.gate { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px;
  background: rgba(6, 6, 8, .92); backdrop-filter: blur(10px); animation: fadein .25s; }
.gate-box { width: 100%; max-width: 360px; text-align: center; padding: 26px 20px 20px; border-radius: 26px;
  background: radial-gradient(120% 80% at 50% 0%, rgba(245, 185, 60, .18), transparent 60%), var(--surface);
  border: 1px solid var(--line); }
.gate-logo { width: 86px; height: 86px; border-radius: 24px; box-shadow: 0 16px 40px -14px var(--accent-glow); }
.gate h2 { font-family: var(--font-head); font-size: 21px; margin: 16px 0 8px; }
.gate p { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.gate p b { color: var(--accent); }
.gate .btn { width: 100%; }
.gate .btn + .btn { margin-top: 8px; }
.btn.ghost { background: var(--surface-3); color: var(--text); box-shadow: none; }

/* рулетки: картинка + подпись всегда помещаются в карточку */
.roller-track .it { justify-content: center; gap: 3px; padding: 4px 2px 6px; box-sizing: border-box; overflow: hidden; }
.roller-track .it .em { flex: none; line-height: 1; }
.roller-track .it .em.nft-ic { width: 46px; height: 46px; }
.roller-track .it small { flex: none; line-height: 1.15; }
.case-rollers.multi .roller { height: 84px; }
.case-rollers.multi .roller-track .it { height: 72px; gap: 2px; padding: 3px 2px 5px; }
.case-rollers.multi .roller-track .it .em.nft-ic { width: 34px; height: 34px; }
