:root {
  --font: "Geologica", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --bg: #F1F4F9;
  --bg-2: #F2F5F9;
  --surface: #FFFFFF;
  --surface-2: #F7F9FC;
  --line: #E2E7EF;
  --line-strong: #CBD3DF;

  --ink: #0E1A2B;
  --ink-2: #4A5668;
  --ink-3: #7A8698;

  --sea: #0891B2;
  --buoy: #FFC53D;
  --buoy-hover: #FFB71A;
  --buoy-ink: #2B1F00;
  --win: #059669;
  --loss: #E0453F;

  --sea-soft: color-mix(in oklab, var(--sea) 10%, var(--surface));
  --win-soft: color-mix(in oklab, var(--win) 13%, var(--surface));
  --loss-soft: color-mix(in oklab, var(--loss) 13%, var(--surface));

  --sky-1: #BDE5E8; --sky-2: #E3F5F2;
  --sea-1: #2F96A6; --sea-2: #0F6276; --sea-3: #093F50;
  --seabed: #07384A; --fin: #0A2C3B; --orb: #FFE39A;

  --stage-a: #126A7D; --stage-b: #0A4757; --stage-c: #062E3B;

  --scroll: #C6CFDB; --scroll-hover: #A3AFC0;
  --elev: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -14px rgba(15, 23, 42, .14);

  --neon-a: #06A9C4; --neon-b: #3366EE; --neon-c: #7C3AED;
  --aura-1: rgba(6, 182, 212, .13); --aura-2: rgba(124, 58, 237, .08);
  --grad-neon: linear-gradient(120deg, var(--neon-a), var(--neon-b) 55%, var(--neon-c));
  --grad-card: linear-gradient(125deg, #0E9AA0 0%, #2C5FE0 58%, #7A36E6 100%);
  --grad-buoy: linear-gradient(180deg, #FFD754, #FFB627);

  --shadow-pop: 0 2px 4px rgba(15, 23, 42, .04), 0 24px 56px -18px rgba(15, 23, 42, .26);

  --r-panel: 20px;
  --r-card: 16px;
  --r-btn: 12px;
  --r-sm: 10px;

  --sb-w: 284px;
  --tb-h: 80px;
  --pad: 32px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1113; --bg-2: #15181A; --surface: #181B1E; --surface-2: #1F2326;
    --line: #2A2F33; --line-strong: #3A4045;
    --ink: #ECEFEF; --ink-2: #A4ABAE; --ink-3: #7B8387;
    --sea: #4CCBCB; --buoy-hover: #FFD366; --win: #4AD6A2; --loss: #FF8676;
    --sky-1: #0E1518; --sky-2: #131E22; --sea-1: #163A44; --sea-2: #0F252C; --sea-3: #0A1316;
    --seabed: #050809; --fin: #040708; --orb: #DCE3E2;
    --stage-a: #17292D; --stage-b: #111C1F; --stage-c: #0C1214;
    --scroll: #30363A; --scroll-hover: #474F54;
  --neon-a: #2EF2E0; --neon-b: #4D9BFF; --neon-c: #B07CFF;
  --aura-1: rgba(46, 242, 224, .09); --aura-2: rgba(176, 124, 255, .12);
    --shadow-pop: 0 2px 0 rgba(0, 0, 0, .3), 0 28px 60px -18px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1113; --bg-2: #15181A; --surface: #181B1E; --surface-2: #1F2326;
  --line: #2A2F33; --line-strong: #3A4045;
  --ink: #ECEFEF; --ink-2: #A4ABAE; --ink-3: #7B8387;
  --sea: #4CCBCB; --buoy-hover: #FFD366; --win: #4AD6A2; --loss: #FF8676;
  --sky-1: #0E1518; --sky-2: #131E22; --sea-1: #163A44; --sea-2: #0F252C; --sea-3: #0A1316;
  --seabed: #050809; --fin: #040708; --orb: #DCE3E2;
  --stage-a: #17292D; --stage-b: #111C1F; --stage-c: #0C1214;
  --scroll: #30363A; --scroll-hover: #474F54;
  --neon-a: #2EF2E0; --neon-b: #4D9BFF; --neon-c: #B07CFF;
  --aura-1: rgba(46, 242, 224, .09); --aura-2: rgba(176, 124, 255, .12);
  --shadow-pop: 0 2px 0 rgba(0, 0, 0, .3), 0 28px 60px -18px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; touch-action: manipulation; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  background:
    radial-gradient(48% 42% at 18% -6%, var(--aura-1), transparent 70%),
    radial-gradient(42% 40% at 100% 4%, var(--aura-2), transparent 70%),
    radial-gradient(40% 36% at 60% 108%, var(--aura-2), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
  font-variation-settings: "SHRP" 0;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.15; letter-spacing: -.015em; font-variation-settings: "SHRP" 100; }
p { margin: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; border-radius: 8px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 22px; height: 22px; flex: none; fill: currentColor; }
.num, td, .amount input, .wallet-amount { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 14px 22px; border-radius: var(--r-btn); background: var(--buoy); color: var(--buoy-ink); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar { width: 14px; height: 14px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb {
    min-height: 56px; border-radius: 999px;
    background-color: var(--scroll);
    border: 4px solid transparent; background-clip: padding-box;
  }
  ::-webkit-scrollbar-thumb:hover { background-color: var(--scroll-hover); }
  ::-webkit-scrollbar-thumb:active { background-color: var(--sea); }
  ::-webkit-scrollbar-corner { background: transparent; }
  .sb-nav::-webkit-scrollbar, .dropdown-scroll::-webkit-scrollbar { width: 10px; }
  .sb-nav::-webkit-scrollbar-thumb, .dropdown-scroll::-webkit-scrollbar-thumb { border-width: 3px; background-color: transparent; }
  .sb-nav:hover::-webkit-scrollbar-thumb, .dropdown-scroll:hover::-webkit-scrollbar-thumb { background-color: var(--scroll); }
  .tscroll::-webkit-scrollbar, .providers::-webkit-scrollbar { height: 10px; }
  .tscroll::-webkit-scrollbar-thumb, .providers::-webkit-scrollbar-thumb { border-width: 3px; }
  .providers::-webkit-scrollbar-thumb:hover { background-image: linear-gradient(90deg, var(--neon-a), var(--neon-c)); }
}
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-color: var(--scroll) var(--bg); scrollbar-width: thin; }
  .sb-nav, .dropdown-scroll, .tscroll, .providers { scrollbar-color: var(--scroll) transparent; scrollbar-width: thin; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 14px 26px;
  border: 0; border-radius: var(--r-btn);
  font-weight: 600; font-size: 16px; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { cursor: not-allowed; opacity: .55; }
.btn-lg { min-height: 60px; padding: 18px 32px; font-size: 17px; border-radius: 14px; }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn .i { width: 20px; height: 20px; }

.btn-primary { background: var(--grad-buoy); color: var(--buoy-ink); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .1), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-primary:hover:not(:disabled) { background: linear-gradient(180deg, #FFDE6E, #FFBE3A); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .1), 0 10px 26px -10px rgba(255, 182, 39, .7); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-dark { background: #0A2C3B; color: #fff; }
.btn-dark:hover { background: #12394B; }
.btn-glass { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.btn-glass:hover { background: rgba(255, 255, 255, .22); }

.icon-btn {
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: 48px; height: 48px; border: 0; border-radius: var(--r-btn); cursor: pointer;
  background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
}
.icon-btn:hover { background: var(--surface-2); }

.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: var(--bg-2); color: var(--ink-2); font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line); }

.coin { display: inline-block; flex: none; width: 26px; height: 26px; border-radius: 50%; vertical-align: middle; }
.coin--xs { width: 18px; height: 18px; }
.coin--sm { width: 22px; height: 22px; }

.gico { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--g); color: var(--gi); }
.gico .i { width: 19px; height: 19px; stroke-width: 2; }
.gico--sm { width: 28px; height: 28px; border-radius: 8px; }
.gico--sm .i { width: 16px; height: 16px; }

.app { display: grid; grid-template-columns: var(--sb-w) minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .25s ease; }
.app.is-collapsed { --sb-w: 88px; }
.shell { min-width: 0; display: flex; flex-direction: column; }
.view { flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: 28px var(--pad) 0; }
.view:focus { outline: none; }
.view.is-entering { animation: view-in .22s ease; }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name {
  font-size: 26px; font-weight: 800; letter-spacing: -.055em; line-height: 1; padding-bottom: 3px;
  font-variation-settings: "SHRP" 100, "CRSV" 0;
}

.sidebar {
  position: sticky; top: 0; height: 100vh; z-index: 35;
  display: flex; flex-direction: column;
  background: var(--surface); border-right: 1px solid var(--line);
}
.sb-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: var(--tb-h); padding: 0 14px 0 22px; flex: none; border-bottom: 1px solid var(--line); }
.sb-collapse { width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--ink-3); display: grid; place-items: center; cursor: pointer; }
.sb-collapse:hover { background: var(--surface-2); color: var(--ink); }
.sb-collapse .i { width: 20px; height: 20px; transition: transform .25s ease; }
.sb-close { display: none; }

.sb-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 10px 14px; display: flex; flex-direction: column; gap: 1px; }
.sb-heading { margin: 10px 12px 3px; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.sb-heading:first-child { margin-top: 4px; }
.sb-sep { height: 1px; margin: 8px 12px; border: 0; background: var(--line); flex: none; }
.sb-link {
  position: relative; display: flex; align-items: center; gap: 12px;
  min-height: 42px; padding: 4px 10px 4px 12px; border-radius: var(--r-btn);
  color: var(--ink-2); font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.sb-link:hover { background: var(--surface-2); color: var(--ink); }
.sb-link.is-active {
  color: var(--ink); font-weight: 600;
  background: linear-gradient(90deg, color-mix(in oklab, var(--neon-a) 18%, transparent), color-mix(in oklab, var(--neon-c) 7%, transparent));
}
.sb-link.is-active::before {
  content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--neon-a), var(--neon-c));
  box-shadow: 0 0 14px 1px color-mix(in oklab, var(--neon-a) 60%, transparent);
}
.sb-ico { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 9px; }
.sb-link .sb-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sb-ico .i { width: 21px; height: 21px; }
.sb-link.is-active .sb-ico:not(.gico) { color: var(--sea); }
.sb-badge { margin-left: auto; display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 8px; background: var(--buoy); color: var(--buoy-ink); font-size: 13px; font-weight: 700; }
.sb-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--win); }
.sb-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px var(--win-soft); }

.sb-bottom { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }
.theme-switch { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: var(--r-btn); background: var(--bg-2); }
.theme-switch button {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 38px; min-height: 38px; padding: 0; border: 0; border-radius: 9px; cursor: pointer;
  background: transparent; color: var(--ink-2); font-size: 14px; font-weight: 500;
}
.theme-switch .sb-label { display: none; }
.theme-switch button .i { width: 18px; height: 18px; }
.theme-switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(10, 44, 59, .12), inset 0 0 0 1px var(--line); }

.support { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 12px; border-radius: var(--r-btn); background: var(--bg-2); }
.sb-bottom .support-ico { display: none; }
.support-text b::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--win); vertical-align: 1px; }
.support-ico { position: relative; display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--sea-soft); color: var(--sea); }
.support-ico .i { width: 20px; height: 20px; }
.support-ico::after { content: ""; position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--win); border: 2px solid var(--bg-2); }
.support-text { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.support-text b { font-size: 13.5px; font-weight: 600; }
.support-text small { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.support-btn { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 0; border-radius: 10px; cursor: pointer; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.support-btn:hover { background: var(--surface-2); }
.support-btn .i { width: 19px; height: 19px; }

@media (min-width: 1101px) {
  .app.is-collapsed .sb-label,
  .app.is-collapsed .brand-name,
  .app.is-collapsed .sb-badge,
  .app.is-collapsed .sb-tag,
  .app.is-collapsed .rake,
  .app.is-collapsed .support-ico,
  .app.is-collapsed .support-text { display: none; }
  .app.is-collapsed .sb-top { flex-direction: column; justify-content: center; gap: 6px; padding: 0; }
  .app.is-collapsed .sb-top .brand-mark { width: 36px; height: 36px; }
  .app.is-collapsed .sb-collapse { width: 30px; height: 26px; }
  .app.is-collapsed .sb-collapse .i { transform: rotate(180deg); }
  .app.is-collapsed .sb-heading { height: 1px; margin: 14px 10px; background: var(--line); font-size: 0; }
  .app.is-collapsed .sb-link { justify-content: center; padding: 8px; }
  .app.is-collapsed .theme-switch { grid-template-columns: 1fr; }
  .app.is-collapsed .support { flex: none; justify-content: center; padding: 0; background: transparent; }
  .app.is-collapsed .sb-bottom { flex-direction: column; }
}

.scrim { position: fixed; inset: 0; z-index: 34; background: rgba(2, 20, 28, .5); }

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  height: var(--tb-h); padding: 0 var(--pad);
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.tb-left { display: flex; align-items: center; gap: 12px; justify-self: stretch; min-width: 0; }
.tb-right { display: flex; align-items: center; gap: 10px; justify-self: end; }
.menu-btn, .brand--compact { display: none; }

.dd-wrap { position: relative; }

.wallet { position: relative; }
.wallet-bar { display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.wallet-btn { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 12px 6px 7px; border: 0; border-radius: var(--r-btn); background: transparent; cursor: pointer; text-align: left; }
.wallet-btn:hover { background: var(--surface-2); }
.wallet-amount { min-width: 0; overflow: hidden; font-size: 16px; font-weight: 650; white-space: nowrap; }
.wallet, .wallet-bar, .wallet-btn { min-width: 0; }
.wallet-bar { max-width: 100%; }
.wallet-cur { color: var(--ink-3); font-weight: 500; }
.wallet-btn .chev { width: 18px; height: 18px; color: var(--ink-3); transition: transform .2s ease; }
.wallet-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.wallet-amount.is-up { animation: flash-up .9s ease; }
.wallet-amount.is-down { animation: flash-down .6s ease; }
@keyframes flash-up { 25% { color: var(--win); } }
@keyframes flash-down { 25% { color: var(--ink-3); } }
.wallet-deposit { min-height: 46px; padding: 10px 20px 10px 16px; }

.avatar {
  --p: 0;
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 50%; padding: 3px;
  background: conic-gradient(var(--neon-a) 0, var(--neon-b) calc(var(--p) * .5%), var(--neon-c) calc(var(--p) * 1%), var(--line) 0);
  filter: drop-shadow(0 0 6px color-mix(in oklab, var(--neon-b) 35%, transparent));
}
.avatar-in {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
  background: var(--grad-card); color: #fff;
  font-weight: 700; font-size: 17px; border: 2px solid var(--surface);
}
.avatar--lg { width: 60px; height: 60px; }
.avatar--lg .avatar-in { font-size: 22px; }
.profile-btn { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 4px 12px 4px 4px; border: 0; border-radius: 16px; background: transparent; cursor: pointer; text-align: left; }
.profile-btn:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.profile-btn[aria-expanded="true"] { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.profile-text { display: grid; line-height: 1.25; }
.profile-text b { font-weight: 600; font-size: 15px; }
.profile-text small { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.profile-btn .chev { width: 18px; height: 18px; color: var(--ink-3); }
.is-booting :is(#userName, #userLevel, #avatarIn, .wallet-amount) { color: transparent; border-radius: 6px; background: var(--line); animation: blink 1.2s ease-in-out infinite; }
.is-booting #userName { min-width: 96px; }
.is-booting #userLevel { min-width: 120px; margin-top: 3px; }
.is-booting #avatarIn { border-radius: 50%; }
.is-booting .profile-btn { pointer-events: none; }

.bell-dot { position: absolute; top: 11px; right: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--loss); border: 2px solid var(--surface); }

.dropdown {
  position: absolute; top: calc(100% + 10px); z-index: 50;
  padding: 8px; border-radius: var(--r-card);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-pop);
  animation: dd-in .16s ease;
}
@keyframes dd-in { from { opacity: 0; translate: 0 -4px; } to { opacity: 1; translate: 0 0; } }
.wallet-menu { left: 50%; transform: translateX(-50%); width: 360px; }
.notif-menu { right: 0; width: 360px; }
.profile-menu { right: 0; width: 300px; }
.dd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 12px; font-weight: 600; }
.dd-link { border: 0; background: none; padding: 0; color: var(--sea); font-size: 14px; font-weight: 500; cursor: pointer; }
.dd-sep { height: 1px; margin: 6px 4px; background: var(--line); }
.dd-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 46px; padding: 10px 12px; border: 0; border-radius: var(--r-sm);
  background: transparent; color: var(--ink); text-decoration: none; font-weight: 500; text-align: left; cursor: pointer;
}
.dd-item:hover { background: var(--surface-2); }
.dd-item .i { width: 20px; height: 20px; color: var(--ink-3); }
.dd-item--danger { color: var(--loss); }
.dd-item--danger .i { color: currentColor; }

.wallet-filter { display: inline-flex; gap: 3px; padding: 3px; border-radius: var(--r-btn); background: var(--bg-2); }
.wallet-filter button {
  min-height: 30px; padding: 0 11px; border: 0; border-radius: 9px; cursor: pointer;
  background: transparent; color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 550; white-space: nowrap;
}
.wallet-filter button:hover { color: var(--ink); }
.wallet-filter button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(10, 44, 59, .12), inset 0 0 0 1px var(--line); }
.wallet-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 12px; border: 0; border-radius: var(--r-sm); background: transparent; cursor: pointer; text-align: left; }
.wallet-row:hover { background: var(--surface-2); }
.wallet-row[aria-current="true"] { background: var(--sea-soft); }
.wallet-bonus { position: relative; display: flex; align-items: center; gap: 4px; margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.wallet-bonus .wallet-row { flex: 1; min-width: 0; }
.wallet-swap { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink-2); cursor: pointer; }
.wallet-swap:hover { background: var(--sea-soft); color: var(--ink); }
.wallet-swap .i { width: 20px; height: 20px; }
.wr-name, .wr-amt { display: grid; line-height: 1.3; }
.wr-name small, .wr-amt small { font-size: 13px; color: var(--ink-3); }
.wr-amt { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.wallet-total { display: flex; justify-content: space-between; margin-top: 6px; padding: 12px 12px 6px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.wallet-total b { color: var(--ink); }

.notif { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 12px; border-radius: var(--r-sm); }
.notif:hover { background: var(--surface-2); }
.notif-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--bg-2); color: var(--sea); }
.notif-ico .i { width: 19px; height: 19px; }
.notif b { display: block; font-weight: 600; font-size: 15px; }
.notif p { font-size: 14px; color: var(--ink-2); }
.notif time { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-3); }
.notif.is-unread b::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: var(--loss); vertical-align: middle; }

.pm-head { display: flex; align-items: center; gap: 14px; padding: 10px 10px 14px; }
.pm-head b { display: block; font-size: 17px; font-weight: 650; }
.pm-head small { color: var(--ink-3); font-size: 13px; }
.level { margin: 0 6px 8px; padding: 14px; border-radius: var(--r-btn); background: var(--bg-2); }
.level-row { display: flex; justify-content: space-between; font-size: 14px; }
.level-row b { font-weight: 600; }
.level-row span { color: var(--ink-3); }
.level-bar { height: 8px; margin: 10px 0 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.level-bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad-neon); box-shadow: 0 0 10px color-mix(in oklab, var(--neon-b) 55%, transparent); }
.level small { font-size: 13px; color: var(--ink-2); }

.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-bottom: 22px; }
.ph-main { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ph-main .gico { width: 44px; height: 44px; border-radius: 12px; }
.ph-main .gico .i { width: 24px; height: 24px; }
.page-title { font-size: 30px; font-weight: 750; letter-spacing: -.02em; }
.page-sub { margin-top: 6px; color: var(--ink-2); }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 40px 0 16px; }
.sec-head h2 { font-size: 22px; }
.sec-link { color: var(--ink-2); font-weight: 500; text-decoration: none; font-size: 15px; }
.sec-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.promos { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; }
.promo { position: relative; isolation: isolate; overflow: hidden; min-height: 268px; padding: 30px 34px; border-radius: var(--r-panel); display: flex; flex-direction: column; justify-content: flex-end; }

.promo--sea {
  --sky-h: 70px;
  padding-top: calc(var(--sky-h) + 36px);
  color: #fff;
  background: linear-gradient(180deg,
    var(--sky-1) 0, var(--sky-2) var(--sky-h),
    var(--sea-1) var(--sky-h), var(--sea-1) calc(var(--sky-h) + 30px),
    var(--sea-2) 72%, var(--sea-3) 100%);
}
.scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orb { position: absolute; right: 9%; top: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--orb); box-shadow: 0 0 0 10px color-mix(in oklab, var(--orb) 28%, transparent), 0 0 46px 14px color-mix(in oklab, var(--orb) 30%, transparent); }
.stars { display: none; position: absolute; left: 0; top: 0; width: 2px; height: 2px; border-radius: 50%; }
:root[data-theme="dark"] .stars { display: block; box-shadow: 60px 14px 0 rgba(255,255,255,.7), 170px 40px 0 rgba(255,255,255,.4), 290px 20px 0 rgba(255,255,255,.6), 420px 48px 0 rgba(255,255,255,.35), 540px 12px 0 rgba(255,255,255,.55), 640px 36px 0 rgba(255,255,255,.4), 760px 18px 0 rgba(255,255,255,.5); }
.waves { position: absolute; left: 0; right: 0; top: calc(var(--sky-h) - 22px); height: 36px; overflow: hidden; }
.wave { display: flex; width: 200%; height: 100%; animation: drift 22s linear infinite; }
.wave svg { display: block; width: 50%; height: 100%; flex: none; }
.wave path { fill: var(--sea-1); }
.waves--back { top: calc(var(--sky-h) - 29px); opacity: .5; }
.waves--back .wave { animation-duration: 34s; animation-direction: reverse; }
@keyframes drift { to { transform: translateX(-50%); } }
.fin { position: absolute; top: calc(var(--sky-h) - 52px); left: -120px; width: 78px; height: 56px; animation: swim 44s linear -14s infinite; }
.fin svg { display: block; width: 100%; height: 100%; animation: bob 3.2s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.fin-body { fill: var(--fin); }
@keyframes swim { from { left: -120px; } to { left: calc(100% + 30px); } }
@keyframes bob { from { transform: translateY(0) rotate(-1.5deg); } to { transform: translateY(4px) rotate(1.5deg); } }
.rays { position: absolute; left: 0; right: 0; top: var(--sky-h); bottom: 0; background: repeating-linear-gradient(104deg, rgba(255,255,255,.07) 0 40px, transparent 40px 104px); -webkit-mask-image: linear-gradient(#000, transparent 80%); mask-image: linear-gradient(#000, transparent 80%); }
:root[data-theme="dark"] .rays { opacity: .45; }
.seabed { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 56px; }
.seabed path { fill: var(--seabed); opacity: .7; }

.promo-title { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; max-width: 17ch; }
.promo-text { margin-top: 8px; max-width: 42ch; color: rgba(255, 255, 255, .86); }
.promo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 20px; }
.promo-fine { font-size: 13px; color: rgba(255, 255, 255, .7); }

.promo--cash { background: linear-gradient(150deg, #FFD452, #FFB41F); color: #2B1F00; justify-content: space-between; gap: 20px; }
.promo--cash .promo-text { color: rgba(43, 31, 0, .75); }
.promo-deco { position: absolute; z-index: -1; right: -46px; top: -40px; width: 230px; height: 230px; opacity: .3; transform: rotate(18deg); }
.promo-label { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px; background: rgba(43, 31, 0, .1); font-size: 14px; font-weight: 600; }
.promo-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #0E7F57; box-shadow: 0 0 0 3px rgba(14, 127, 87, .2); }
.promo-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.cash-progress { flex: 1 1 180px; max-width: 260px; }
.cash-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: rgba(43, 31, 0, .75); }
.cash-row b { color: #2B1F00; font-weight: 700; font-variant-numeric: tabular-nums; }
.cash-bar { height: 8px; margin-top: 8px; border-radius: 999px; background: rgba(43, 31, 0, .12); overflow: hidden; }
.cash-bar i { display: block; height: 100%; border-radius: inherit; background: #2B1F00; }

.posters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.poster { display: block; color: inherit; text-decoration: none; border-radius: var(--r-card); }
.poster-art { display: block; position: relative; overflow: hidden; aspect-ratio: 16 / 10.5; border-radius: var(--r-card); background: var(--pbg); transition: transform .2s ease, box-shadow .2s ease; }
.poster:hover .poster-art { transform: translateY(-3px); box-shadow: 0 18px 32px -20px rgba(10, 44, 59, .55); }
.poster-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.poster-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 4px 0; font-size: 14px; color: var(--ink-2); }

.howto {
  display: grid; grid-template-columns: 200px repeat(3, minmax(0, 1fr)) auto; align-items: center; gap: 24px;
  margin-top: 40px; padding: 24px 28px; border-radius: var(--r-panel);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.howto h2 { font-size: 20px; }
.hstep { display: flex; gap: 14px; align-items: flex-start; }
.hstep-n { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--sea-soft); font-weight: 700; font-size: 15px; }
.hstep b { display: block; font-weight: 600; }
.hstep span { font-size: 14px; color: var(--ink-2); }

.tcard { margin-top: 28px; border-radius: var(--r-panel); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.tcard-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 20px 16px 24px; border-bottom: 1px solid var(--line); }
.tcard-head h2 { font-size: 20px; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-btn); background: var(--bg-2); overflow-x: auto; }
.tab { min-height: 40px; padding: 8px 16px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 14px; white-space: nowrap; cursor: pointer; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(10, 44, 59, .12), inset 0 0 0 1px var(--line); }
.tscroll { overflow-x: auto; }
.bets { width: 100%; min-width: 640px; font-size: 15px; }
.bets th { padding: 12px 24px; text-align: left; font-size: 13px; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.bets td { padding: 13px 24px; border-top: 1px solid var(--line); white-space: nowrap; }
.bets .r { text-align: right; }
.bets tr.is-fresh td { animation: row-in .5s ease; }
.bets tr.is-you td { background: color-mix(in oklab, var(--buoy) 9%, transparent); }
@keyframes row-in { from { background: var(--sea-soft); } }
.cell-game { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; color: var(--ink); }
.cell-game:hover { text-decoration: underline; text-underline-offset: 3px; }
.cell-player { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); }
.cell-player i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-2); color: var(--ink); font-style: normal; font-weight: 700; font-size: 13px; }
.cell-player.is-hidden { color: var(--ink-3); }
.cell-amt { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.mult { color: var(--ink-2); }
.mult.is-w { color: var(--ink); font-weight: 600; }
.pay-w { color: var(--win); font-weight: 650; }
.pay-l { color: var(--ink-3); }
.tempty { padding: 40px 24px; text-align: center; color: var(--ink-2); }
.tempty .btn { margin-top: 16px; }

.game {
  display: grid; grid-template-columns: 340px minmax(0, 1fr);
  border-radius: var(--r-panel); overflow: hidden;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(125deg, color-mix(in oklab, var(--neon-a) 75%, transparent), color-mix(in oklab, var(--neon-b) 30%, transparent) 50%, color-mix(in oklab, var(--neon-c) 75%, transparent)) border-box;
  box-shadow: 0 24px 60px -34px color-mix(in oklab, var(--neon-b) 70%, transparent);
}
.controls { display: flex; flex-direction: column; gap: 22px; padding: 26px 24px; border-right: 1px solid var(--line); }
.field { display: flex; flex-direction: column; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.field-label { font-weight: 600; font-size: 15px; }
.field-aside { font-size: 14px; color: var(--ink-3); }
.fieldset-label { margin-bottom: 10px; font-weight: 600; font-size: 15px; }
.field-hint { margin-top: 9px; font-size: 14px; color: var(--ink-2); }
.amount {
  display: flex; align-items: center; gap: 5px;
  min-height: 58px; padding: 7px 7px 7px 12px; border-radius: 14px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line);
  transition: box-shadow .15s ease;
}
.amount:focus-within { box-shadow: inset 0 0 0 2px var(--sea); }
.amount input { flex: 1; align-self: stretch; min-width: 0; padding: 0 4px; border: 0; background: transparent; outline: none; font-size: 19px; font-weight: 650; }
.amount input:disabled { opacity: .55; }
.qbtn { min-width: 40px; height: 42px; padding: 0 10px; flex: none; border: 0; border-radius: var(--r-sm); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 14px; cursor: pointer; }
.qbtn:hover:not(:disabled) { background: var(--bg-2); }
.qbtn:disabled { opacity: .5; cursor: not-allowed; }
.payout { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-btn); background: var(--bg-2); font-size: 15px; }
.payout span { color: var(--ink-2); }
.payout b { font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.controls-note { font-size: 14px; color: var(--ink-2); text-align: center; }
.controls-note b { color: var(--ink); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-grid; place-items: center; min-width: 54px; min-height: 48px; padding: 10px 16px; border-radius: var(--r-btn); background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; transition: background-color .15s ease, box-shadow .15s ease; }
.chips label:hover span { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.chips input:checked + span { background: var(--sea-soft); box-shadow: inset 0 0 0 2px var(--sea); }
.chips input:focus-visible + span { outline: 3px solid var(--sea); outline-offset: 2px; }
.chips input:disabled + span { opacity: .5; cursor: not-allowed; }

.stage {
  --st-ink: #E6F4F2; --st-ink-2: rgba(230, 244, 242, .66);
  --st-line: rgba(255, 255, 255, .13); --st-fill: rgba(255, 255, 255, .06);
  position: relative; min-width: 0; display: flex; flex-direction: column; gap: 22px;
  min-height: 600px; padding: 22px 26px 26px; color: var(--st-ink);
  background:
    radial-gradient(55% 45% at 88% 0%, rgba(176, 124, 255, .22), transparent 70%),
    radial-gradient(50% 45% at 6% 100%, rgba(46, 242, 224, .16), transparent 70%),
    radial-gradient(90% 60% at 50% 38%, rgba(255, 255, 255, .05), transparent 70%),
    linear-gradient(180deg, var(--stage-a), var(--stage-b) 55%, var(--stage-c));
}
.stage-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; }
.stage-hint { font-size: 14px; color: var(--st-ink-2); white-space: nowrap; }
.recent { display: flex; gap: 6px; overflow: hidden; min-width: 0; }
.recent span { flex: none; padding: 5px 10px; border-radius: 8px; background: var(--st-fill); font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.recent .is-w { background: rgba(74, 214, 162, .18); color: #85EBC4; }
.recent .is-l { background: rgba(255, 134, 118, .14); color: #FFAB9E; }
.recent-empty { font-size: 14px; color: var(--st-ink-2); }

.verdict { display: block; min-height: 50px; padding: 13px 18px; line-height: 1.5; border-radius: var(--r-btn); text-align: center; font-weight: 600; color: var(--st-ink-2); background: var(--st-fill); }
.verdict.is-win { background: rgba(74, 214, 162, .16); color: #93F1CD; }
.verdict.is-loss { background: rgba(255, 134, 118, .14); color: #FFB6AA; }
.verdict b { color: #fff; }

.stage :focus-visible { outline-color: var(--buoy); }

.gframe {
  border-radius: var(--r-panel); overflow: hidden;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(125deg, color-mix(in oklab, var(--neon-a) 75%, transparent), color-mix(in oklab, var(--neon-b) 30%, transparent) 50%, color-mix(in oklab, var(--neon-c) 75%, transparent)) border-box;
  box-shadow: 0 24px 60px -34px color-mix(in oklab, var(--neon-b) 70%, transparent);
}
.gframe-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.gframe-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.gframe-title .gico { width: 40px; height: 40px; border-radius: 12px; }
.gframe-title .gico .i { width: 22px; height: 22px; }
.gframe-name { display: flex; align-items: center; gap: 10px; }
.gframe-name b { font-size: 17px; font-weight: 700; }
.gframe-title small { display: block; font-size: 13px; color: var(--ink-3); }
.gframe-body { padding: 24px; }

.dice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  grid-template-areas: "inputs play";
  gap: 24px 40px; align-items: center;
}

.dice-inputs { grid-area: inputs; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; min-width: 0; }
.dfield { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dfield.is-disabled { opacity: .6; }
.dfield__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 2px; font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.dfield__head > :first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dfield__hint { font-size: 14px; font-weight: 400; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dfield__box {
  position: relative; display: flex; align-items: center; height: 58px;
  border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg-2);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.dfield__box:hover { border-color: var(--line-strong); }
.dfield__box:focus-within { border-color: var(--neon-b); box-shadow: 0 0 0 4px color-mix(in oklab, var(--neon-b) 14%, transparent); }
.dfield__box input { flex: 1; width: 0; min-width: 0; height: 100%; padding: 0 40px; border: 0; background: transparent; outline: none; text-align: center; font-size: 19px; font-weight: 650; font-variant-numeric: tabular-nums; }
.dfield__suffix { position: absolute; top: 0; bottom: 0; right: 14px; display: inline-flex; align-items: center; font-size: 15px; font-weight: 700; color: var(--ink-3); pointer-events: none; }
.dfield__quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dfield__quick button {
  height: 44px; padding: 0 6px; border: 0; border-radius: var(--r-sm); cursor: pointer;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
  transition: background-color .14s ease, color .14s ease, transform .14s ease;
}
.dfield__quick button:hover:not(:disabled) { background: var(--bg-2); color: var(--ink); }
.dfield__quick button:active:not(:disabled) { transform: scale(.96); }
.dfield__quick button:disabled { cursor: not-allowed; }

.dice-play { grid-area: play; display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.dice-board {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  height: 168px; padding-top: 6px; container-type: inline-size;
  border-radius: var(--r-card); color: #E6F4F2;
  background:
    radial-gradient(60% 95% at 50% 105%, color-mix(in oklab, var(--neon-c) 45%, transparent), transparent 70%),
    radial-gradient(40% 70% at 12% 0%, rgba(46, 242, 224, .18), transparent 70%),
    linear-gradient(180deg, var(--stage-a), var(--stage-c));
}
.dice-board::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000 20%, transparent 75%);
}
.dice-board__label { font-size: 15px; font-weight: 500; color: rgba(230, 244, 242, .66); }
.dice-board__x {
  position: absolute; top: 12px; right: 14px; display: inline-flex; align-items: center; height: 28px; padding: 0 11px;
  border-radius: 999px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  font-size: 13px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums;
}
.dice-board__value { display: flex; align-items: center; gap: 14px; height: 84px; filter: drop-shadow(0 8px 26px color-mix(in oklab, var(--neon-b) 55%, transparent)); }
.countnum { display: inline-flex; align-items: center; height: 100%; overflow: hidden; font-variant-numeric: tabular-nums; }
.countnum > span {
  display: block; white-space: nowrap;
  font-size: min(clamp(46px, 5vw, 76px), calc((100cqi - 90px) / (var(--len, 6) * .62))); font-weight: 800; line-height: 1.05; letter-spacing: -.01em; font-variation-settings: "SHRP" 100;
  background: linear-gradient(120deg, #6FF5E6, #7DB2FF 55%, #C79BFF); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.countnum > .cn-up { animation: cn-up .16s ease; }
.countnum > .cn-down { animation: cn-down .16s ease; }
@keyframes cn-up { from { transform: translateY(100%); opacity: 0; } }
@keyframes cn-down { from { transform: translateY(-100%); opacity: 0; } }
.dice-board__value .coin { width: clamp(28px, 2.6vw, 38px); height: clamp(28px, 2.6vw, 38px); }

.dice-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dside { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dside__range { font-size: 14px; font-weight: 500; color: var(--ink-3); text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dbtn {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 60px; padding: 0 20px; border-radius: var(--r-card); cursor: pointer;
  border: 2px solid var(--line); background: var(--bg-2); color: var(--ink);
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease, color .16s ease;
}
.dbtn__title { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; }
.dbtn__title .i { width: 20px; height: 20px; }
.dbtn--lo:hover:not(:disabled), .dbtn--lo.is-loading { border-color: transparent; color: #03242C; background: linear-gradient(135deg, #3FF0DE, #1FB0E8); box-shadow: 0 14px 32px -14px rgba(46, 242, 224, .8); }
.dbtn--hi:hover:not(:disabled), .dbtn--hi.is-loading { border-color: transparent; color: var(--buoy-ink); background: linear-gradient(135deg, #FFDC5A, #FF9F2E); box-shadow: 0 14px 32px -14px rgba(255, 170, 40, .8); }
.dbtn:active:not(:disabled) { transform: scale(.98); }
.dbtn:disabled { cursor: wait; }
.dbtn:disabled:not(.is-loading) { opacity: .55; }
.dbtn.is-loading .dbtn__title { visibility: hidden; }
.spinner { position: absolute; inset: 0; margin: auto; width: 28px; height: 28px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; opacity: 0; pointer-events: none; }
.dbtn.is-loading .spinner { opacity: .9; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.dres {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 10px 16px; border-radius: var(--r-card);
  font-size: 16px; font-weight: 500; text-align: center;
  animation: dres-in .22s cubic-bezier(.3, .7, .3, 1);
}
@keyframes dres-in { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.dres b { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dres .i { width: 22px; height: 22px; }
.dres.is-idle { border: 2px dashed var(--line-strong); font-size: 14px; color: var(--ink-3); animation: none; }
.dres.is-win { background: linear-gradient(135deg, #4AE3AE, #2FD3C8); color: #04281C; box-shadow: 0 12px 28px -12px rgba(46, 220, 170, .85); }
.dres.is-lose { background: linear-gradient(135deg, #FF6B8B, #F0567A); color: #fff; box-shadow: 0 12px 28px -12px rgba(255, 92, 138, .75); }
.dres.is-error { background: color-mix(in oklab, var(--buoy) 18%, transparent); color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--buoy) 50%, transparent); }

@media (max-width: 1180px) {
  .dice { gap: 20px 28px; }
  .dice-inputs { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 1023px) {
  .dice { grid-template-columns: minmax(0, 1fr); grid-template-areas: "play" "inputs"; }
  .dice-inputs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 640px) {
  .gframe-bar { padding: 12px; }
  .gframe-rules { width: 44px; padding: 0; }
  .gframe-rules span { display: none; }
  .gframe-body { padding: 12px; }
  .dice { gap: 16px; }
  .dice-play { gap: 12px; }
  .dice-board { height: 136px; }
  .dice-board__value { height: 62px; }
  .dice-board__label { font-size: 14px; }
  .dice-inputs, .dice-buttons { gap: 10px; }
  .dfield__hint { display: none; }
  .dfield__box input { padding: 0 36px; }
  .dfield__suffix { right: 10px; }
  .dfield__quick { gap: 6px; }
  .dfield__quick button { padding: 0 4px; font-size: 13px; }
  .dside__range { font-size: 13px; }
  .dbtn { padding: 0 10px; }
  .dbtn__title { font-size: 17px; }
  .dbtn__title .i { width: 18px; height: 18px; }
  .dres { min-height: 52px; font-size: 15px; }
}

.amount-ico { width: 22px; height: 22px; margin-left: 2px; color: var(--ink-3); }
.mpresets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.mpresets button {
  height: 44px; border: 0; border-radius: var(--r-sm); cursor: pointer;
  background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line);
  font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums;
  transition: box-shadow .14s ease, transform .14s ease;
}
.mpresets button:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.mpresets button:active:not(:disabled) { transform: scale(.96); }
.mpresets button.is-active { background: var(--sea-soft); box-shadow: inset 0 0 0 2px var(--neon-b); }
.mpresets button:disabled { opacity: .5; cursor: not-allowed; }
.boom-stack { display: grid; place-items: center; width: 80%; aspect-ratio: 1; }
.cell .boom-stack svg { grid-area: 1 / 1; width: 100%; height: 100%; }
.cell .boom-stack svg:first-child { scale: 1.25; }
.cell .boom-stack svg:last-child { scale: .82; }

.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.calc div { padding: 12px 14px; border-radius: var(--r-btn); background: var(--bg-2); }
.calc span { display: block; font-size: 13px; color: var(--ink-2); }
.calc b { display: block; margin-top: 2px; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.stage-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.sst { padding: 6px 12px; border-radius: 8px; background: var(--st-fill); font-size: 14px; color: var(--st-ink-2); white-space: nowrap; }
.sst b { color: #fff; font-weight: 650; margin-left: 4px; font-variant-numeric: tabular-nums; }
.mines-steps { min-width: 0; }
.mines-steps-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 9px; }
.mines-steps-head h2 { font-size: 15px; font-weight: 650; }
.mines-steps-head > span { font-size: 13px; color: var(--st-ink-2); white-space: nowrap; }
.mines-steps-list {
  --ms-lit: #5EF0C8; --ms-node-y: 47px;
  display: flex; overflow-x: auto; padding: 4px 0 10px; margin: 0 -6px;
  overscroll-behavior-x: contain;
}
@supports selector(::-webkit-scrollbar) {
  .mines-steps-list::-webkit-scrollbar { height: 10px; }
  .mines-steps-list::-webkit-scrollbar-track { margin: 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 3px solid transparent; background-clip: padding-box; }
  .mines-steps-list::-webkit-scrollbar-thumb { min-width: 48px; border-width: 3px; background-color: rgba(255, 255, 255, .22); }
  .mines-steps-list::-webkit-scrollbar-thumb:hover,
  .mines-steps-list::-webkit-scrollbar-thumb:active { background-color: transparent; background-image: linear-gradient(90deg, var(--neon-a), var(--neon-c)); }
}
@supports not selector(::-webkit-scrollbar) {
  .mines-steps-list { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) rgba(255, 255, 255, .05); }
}
.mines-steps-list li {
  position: relative; flex: 0 0 auto; min-width: 78px; padding: 0 6px;
  display: grid; justify-items: center; grid-template-rows: 34px 26px auto; align-items: center;
  font-variant-numeric: tabular-nums;
}
.mines-steps-list li::before {
  content: ""; position: absolute; left: 0; right: 0; top: var(--ms-node-y); height: 2px; margin-top: -1px;
  background: rgba(255, 255, 255, .14);
}
.mines-steps-list li:first-child::before { left: 50%; }
.mines-steps-list li:last-child::before { right: 50%; }
.mines-steps-list li.is-done::before { background: var(--ms-lit); box-shadow: 0 0 10px rgba(94, 240, 200, .45); }
.mines-steps-list li.is-done:has(+ :not(.is-done))::before,
.mines-steps-list li.is-done:last-child::before { background: linear-gradient(90deg, var(--ms-lit) 50%, rgba(255, 255, 255, .14) 50%); box-shadow: none; }

.mines-steps-list b {
  padding: 5px 10px; border-radius: 8px; white-space: nowrap;
  font-size: 15px; font-weight: 700; line-height: 1.25; color: var(--st-ink-2);
  transition: background-color .2s ease, color .2s ease;
}
.ms-node {
  position: relative; z-index: 1; width: 12px; height: 12px; border-radius: 50%;
  background: var(--stage-b); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3);
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.mines-steps-list li > span { font-size: 12px; font-weight: 500; color: rgba(230, 244, 242, .45); }

.mines-steps-list .is-done b { color: #A6F5DD; }
.mines-steps-list .is-done .ms-node { background: var(--ms-lit); box-shadow: none; }
.mines-steps-list .is-current b { background: rgba(94, 240, 200, .16); color: #fff; }
.mines-steps-list .is-current .ms-node { transform: scale(1.25); box-shadow: 0 0 0 5px rgba(94, 240, 200, .2), 0 0 16px rgba(94, 240, 200, .7); }
.mines-steps-list .is-current > span { color: var(--ms-lit); }
.mines-steps-list .is-next b { background: var(--grad-buoy); color: var(--buoy-ink); box-shadow: 0 6px 18px -8px rgba(255, 197, 61, .8); }
.mines-steps-list .is-next .ms-node { box-shadow: inset 0 0 0 2px var(--buoy), 0 0 0 4px rgba(255, 197, 61, .16); }
.mines-steps-list .is-next > span { color: var(--buoy); }
@media (prefers-reduced-motion: reduce) { .mines-steps-list b, .ms-node { transition: none; } }
.mines-wrap { flex: 1; display: grid; place-items: center; }
.mines-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; width: min(100%, 460px); }
.cell {
  position: relative; aspect-ratio: 1; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 14px; cursor: pointer;
  background: rgba(255, 255, 255, .09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), inset 0 -4px 0 rgba(0, 0, 0, .18);
  transition: background-color .15s ease, transform .12s ease;
}
.cell:hover:not(:disabled) { background: rgba(255, 255, 255, .16); transform: translateY(-2px); }
.cell:disabled { cursor: default; }
.mines-grid.is-idle .cell { opacity: .55; }
.cell svg { width: 68%; height: 68%; }
.cell.is-pearl { background: rgba(76, 203, 203, .2); box-shadow: inset 0 0 0 1.5px rgba(76, 203, 203, .5); }
.cell.is-mine { background: rgba(255, 107, 90, .2); box-shadow: inset 0 0 0 1.5px rgba(255, 107, 90, .45); }
.cell.is-boom { background: rgba(255, 107, 90, .5); }
.cell.is-ghost svg { opacity: .38; }
.cell.is-pop svg { animation: pop .28s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.cell.is-pop::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
}
.cell.is-pearl.is-pop svg { animation: star-in .62s cubic-bezier(.25, 1.4, .5, 1) both; }
.cell.is-pearl.is-pop { animation: pearl-glow .7s ease-out; }
.cell.is-pearl.is-pop::after { box-shadow: 0 0 0 2px rgba(94, 240, 200, .9); animation: ring-out .6s ease-out forwards; }
@keyframes star-in {
  0% { transform: scale(.15) rotate(-160deg); opacity: 0; }
  55% { transform: scale(1.18) rotate(14deg); opacity: 1; }
  78% { transform: scale(.95) rotate(-5deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes pearl-glow {
  0% { background-color: rgba(94, 240, 200, .55); }
  100% { background-color: rgba(76, 203, 203, .2); }
}
@keyframes ring-out {
  from { transform: scale(.85); opacity: 1; }
  to { transform: scale(1.22); opacity: 0; }
}

.cell.is-boom.is-pop { animation: cell-shake .5s cubic-bezier(.36, .07, .19, .97); z-index: 1; }
.cell.is-boom.is-pop::after { box-shadow: 0 0 0 3px rgba(255, 120, 90, .95), 0 0 24px rgba(255, 90, 70, .8); animation: ring-out .55s ease-out forwards; }
.cell.is-boom.is-pop .boom-stack svg:first-child { animation: boom-burst .6s cubic-bezier(.2, 1.3, .4, 1) both, boom-glow 1.6s ease-in-out .6s infinite; }
.cell.is-boom.is-pop .boom-stack svg:last-child { animation: mine-hit .55s ease-out both; }
.cell.is-boom .boom-stack svg:first-child { animation: boom-glow 1.6s ease-in-out .6s infinite; }
@keyframes cell-shake {
  0%, 100% { transform: translate(0, 0); }
  15% { transform: translate(-4px, 1px) rotate(-3deg); }
  30% { transform: translate(4px, -1px) rotate(3deg); }
  45% { transform: translate(-3px, 0) rotate(-2deg); }
  60% { transform: translate(2px, 1px) rotate(1deg); }
  80% { transform: translate(-1px, 0); }
}
@keyframes boom-burst {
  0% { transform: scale(0) rotate(-40deg); opacity: 0; }
  45% { transform: scale(1.35) rotate(8deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes mine-hit {
  0% { transform: scale(1.5); opacity: 0; filter: brightness(3); }
  35% { transform: scale(.85); opacity: 1; filter: brightness(1.8); }
  100% { transform: scale(1); filter: brightness(1); }
}
.cell.is-ghost svg { animation: ghost-in .45s ease-out both; }
@keyframes ghost-in { from { transform: scale(.6); opacity: 0; } }
@keyframes boom-glow {
  0%, 100% { transform: scale(1) rotate(0); opacity: 1; }
  50% { transform: scale(1.08) rotate(6deg); opacity: .8; }
}
@media (prefers-reduced-motion: reduce) {
  .cell.is-pop, .cell.is-pop svg, .cell.is-pop::after, .cell.is-boom .boom-stack svg, .cell.is-ghost svg { animation: none; }
}

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kpi { padding: 18px 20px; border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.kpi span { font-size: 14px; color: var(--ink-2); }
.kpi b { display: block; margin-top: 4px; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi .pos { color: var(--win); }
.kpi .neg { color: var(--loss); }

.empty { display: grid; justify-items: center; gap: 8px; padding: 56px 24px; text-align: center; }
.empty svg { width: 96px; height: 96px; margin-bottom: 8px; }
.empty b { font-size: 18px; font-weight: 650; }
.empty p { max-width: 42ch; color: var(--ink-2); }
.empty .btn { margin-top: 12px; }

.bonus-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bonus { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--r-panel); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.bonus-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--g); color: var(--gi); }
.bonus-ico .i { width: 26px; height: 26px; }
.bonus h2 { font-size: 20px; }
.bonus p { color: var(--ink-2); }
.bonus-progress { margin-top: auto; }
.bp-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); }
.bp-row b { color: var(--ink); font-weight: 600; }
.bp-bar { height: 8px; margin-top: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.bp-bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad-neon) !important; }
.bonus .btn { margin-top: 6px; }

.rules-list { display: grid; gap: 10px; margin-top: 4px; padding-left: 20px; list-style: disc; color: var(--ink-2); }
.panel { padding: 24px 28px; border-radius: var(--r-panel); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.panel h2 { font-size: 20px; margin-bottom: 8px; }

.notfound { display: grid; justify-items: center; gap: 10px; padding: 80px 24px; text-align: center; }
.notfound h1 { font-size: 72px; font-weight: 800; letter-spacing: -.04em; }
.notfound p { color: var(--ink-2); max-width: 40ch; }
.notfound .btn { margin-top: 14px; }

.footer { margin-top: 72px; padding: 48px var(--pad) 36px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-in { max-width: 1256px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr); gap: 32px; }
.footer-brand p { margin: 16px 0 20px; max-width: 38ch; color: var(--ink-2); }
.coins-row { display: flex; flex-wrap: wrap; gap: 8px; }
.coins-row li { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--bg-2); font-size: 14px; font-weight: 600; }
.footer-col { display: flex; flex-direction: column; gap: 2px; }
.footer-title { margin-bottom: 8px; font-weight: 650; }
.footer-col a { padding: 6px 0; color: var(--ink-2); text-decoration: none; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.footer-bottom p:not(.copyright) { flex: 1 1 360px; max-width: 72ch; }
.copyright { margin-left: auto; }
.lang-switch { display: inline-flex; align-items: center; gap: 3px; padding: 3px 3px 3px 10px; border-radius: var(--r-btn); background: var(--bg-2); }
.lang-switch .i { width: 18px; height: 18px; margin-right: 4px; color: var(--ink-3); }
.lang-switch button {
  min-height: 34px; padding: 0 12px; border: 0; border-radius: 9px; cursor: pointer;
  background: transparent; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 550;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(10, 44, 59, .12), inset 0 0 0 1px var(--line); }
.age-badge { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ink); color: var(--ink); font-weight: 700; font-size: 14px; }

.tabbar { display: none; }

.modal { width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: var(--r-panel); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-pop); }
.modal::backdrop { background: rgba(2, 20, 28, .55); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .22s cubic-bezier(.3, .7, .3, 1); }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-inner { display: grid; gap: 22px; padding: 26px 30px 30px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-head h2 { font-size: 24px; }
.modal-body { display: grid; gap: 12px; color: var(--ink-2); }
.modal-body b { color: var(--ink); }
.modal-body ol { display: grid; gap: 10px; padding-left: 22px; list-style: decimal; }
.chips--coins span { display: inline-flex; gap: 9px; padding: 7px 14px 7px 7px; }
.deposit-body { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; align-items: center; }
.qr { width: 150px; height: 150px; padding: 10px; border-radius: var(--r-card); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.qr svg { display: block; width: 100%; height: 100%; }
.addr { display: flex; align-items: center; gap: 8px; padding: 7px 7px 7px 14px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.addr input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 14px; font-weight: 500; text-overflow: ellipsis; }
.addr .qbtn { display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; }
.addr .qbtn .i { width: 17px; height: 17px; }
.modal-warning { padding: 12px 16px; border-radius: var(--r-btn); background: color-mix(in oklab, var(--buoy) 22%, var(--surface)); font-size: 14px; }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

.toasts { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: grid; gap: 10px; justify-items: end; pointer-events: none; }
.toast { max-width: 360px; padding: 14px 18px; border-radius: var(--r-btn); background: var(--ink); color: var(--bg); font-weight: 500; box-shadow: var(--shadow-pop); animation: toast-in .22s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent 4%, color-mix(in oklab, var(--neon-a) 70%, transparent) 30%, color-mix(in oklab, var(--neon-c) 70%, transparent) 70%, transparent 96%);
}
.sidebar::after {
  content: ""; position: absolute; top: 0; right: -1px; width: 1px; height: 46%; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in oklab, var(--neon-a) 65%, transparent), transparent);
}

.search {
  position: relative; display: flex; align-items: center; gap: 10px;
  width: min(380px, 100%); min-width: 0; height: 48px; padding: 0 8px 0 14px;
  border-radius: var(--r-btn); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .15s ease;
}
.search:focus-within { box-shadow: inset 0 0 0 1.5px var(--neon-b), 0 0 0 4px color-mix(in oklab, var(--neon-b) 16%, transparent), 0 0 24px -6px color-mix(in oklab, var(--neon-a) 50%, transparent); }
.search-ico { width: 20px; height: 20px; color: var(--ink-3); }
.search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; outline: none; font-size: 15px; }
.search input::placeholder { color: var(--ink-3); opacity: 1; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-kbd {
  display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; flex: none;
  border-radius: 7px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-3); font: 600 13px/1 var(--font);
}
.search:focus-within .search-kbd { display: none; }
.search-close { display: none; place-items: center; width: 36px; height: 36px; flex: none; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); cursor: pointer; }
.search-close:hover { background: var(--surface-2); }
.search-btn { display: none; }
.search-menu { left: 0; width: max(100%, 420px); max-height: min(72vh, 540px); overflow-y: auto; }
.sr-group { padding: 10px 12px 6px; font-size: 13px; color: var(--ink-3); }
.sr-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none;
}
.sr-item:hover, .sr-item.is-active { background: var(--surface-2); }
.sr-item.is-active { box-shadow: inset 3px 0 0 var(--neon-a); }
.sr-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--bg-2); color: var(--ink-2); }
.sr-ico .i { width: 19px; height: 19px; }
.sr-text { display: grid; min-width: 0; line-height: 1.3; }
.sr-text b { font-weight: 600; }
.sr-text small { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-item mark { padding: 0 1px; border-radius: 3px; background: color-mix(in oklab, var(--neon-a) 35%, transparent); color: inherit; }
.sr-empty { padding: 18px 12px 14px; color: var(--ink-2); }
.sr-empty b { color: var(--ink); }

.rake {
  position: relative; isolation: isolate; overflow: hidden; flex: none;
  margin: 2px 0 8px; padding: 11px 12px 12px 14px; border-radius: var(--r-card);
  background: var(--grad-card); color: #fff;
  box-shadow: 0 16px 34px -18px rgba(76, 80, 255, .75), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.rake::before { content: ""; position: absolute; z-index: -1; right: -34px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(46, 242, 224, .55), transparent 70%); }
.rake::after { content: ""; position: absolute; z-index: -1; left: -10px; right: -10px; bottom: -14px; height: 34px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 20'%3E%3Cpath d='M0 10q15-9 30 0t30 0 30 0 30 0V20H0Z' fill='%23ffffff' fill-opacity='.08'/%3E%3C/svg%3E") repeat-x 0 0 / 120px 20px; }
.rake-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12.5px; color: rgba(255, 255, 255, .78); }
.rake-label { font-size: 14px; font-weight: 600; color: #fff; }
.rake-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 5px; }
.rake-amount { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.rake-btn { flex: none; min-height: 34px; padding: 6px 12px; border: 0; border-radius: 10px; background: var(--grad-buoy); color: var(--buoy-ink); font-size: 14px; font-weight: 650; cursor: pointer; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .1); }
.rake-btn:hover:not(:disabled) { box-shadow: 0 8px 20px -8px rgba(255, 182, 39, .8); }
.rake-btn:disabled { background: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .7); box-shadow: none; cursor: not-allowed; }

.sb-timer { color: var(--ink-2); font-weight: 600; }
.sb-tag {
  margin-left: auto; flex: none; padding: 3px 6px; border-radius: 7px; font-size: 11.5px; font-weight: 700; color: #fff;
  background: var(--grad-neon); box-shadow: 0 0 12px -2px color-mix(in oklab, var(--neon-b) 60%, transparent);
}

.promo--sea::after {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(42% 70% at 88% 105%, color-mix(in oklab, var(--neon-a) 40%, transparent), transparent 70%),
              radial-gradient(30% 50% at 60% 110%, color-mix(in oklab, var(--neon-c) 30%, transparent), transparent 70%);
}
.poster:hover .poster-art { box-shadow: 0 18px 40px -18px color-mix(in oklab, var(--neon-b) 70%, transparent), 0 0 0 1.5px color-mix(in oklab, var(--neon-a) 60%, transparent); }
.tab[aria-selected="true"] { box-shadow: 0 1px 2px rgba(10, 44, 59, .12), inset 0 0 0 1px var(--line), inset 0 -2px 0 var(--neon-a); }

@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar-thumb:hover { background-image: linear-gradient(180deg, var(--neon-a), var(--neon-c)); }
}

@media (max-width: 1100px) {
  .search { flex: 1 1 200px; width: auto; max-width: 320px; }
  .sidebar::after { display: none; }
}
@media (max-width: 760px) {
  .search { display: none; }
  .search-btn { display: inline-grid; width: 42px; height: 42px; }
  .topbar.is-searching .search {
    display: flex; position: absolute; z-index: 5; max-width: none; width: auto;
    left: var(--pad); right: var(--pad); top: calc((var(--tb-h) - 48px) / 2);
  }
  .topbar.is-searching .search-close { display: grid; }
  .search-kbd { display: none; }
  .search-menu { position: fixed; left: 12px; right: 12px; top: calc(var(--tb-h) + 8px); width: auto; }
}

.fiat { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px 6px; font-size: 13.5px; color: var(--ink-2); }
.fiat-pick { display: flex; gap: 3px; flex-wrap: wrap; justify-content: flex-end; }
.fiat-pick button { min-width: 34px; height: 30px; padding: 0 7px; border: 0; border-radius: 8px; background: var(--bg-2); color: var(--ink); font-weight: 700; font-size: 14px; cursor: pointer; }
.fiat-pick small { display: none; }
.fiat-pick button:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.fiat-pick button[aria-pressed="true"] { background: var(--grad-neon); color: #fff; }

.gtitle { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gtitle--page { margin: -6px 0 14px; }
.gframe-bar.gtitle { padding: 10px 22px 10px 14px; }
.gtitle-main { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ghex { position: relative; display: grid; place-items: center; width: 66px; height: 72px; flex: none; filter: drop-shadow(0 6px 12px var(--hg)); }
.ghex-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ghex-ghost { position: absolute; width: 46px; height: 46px; color: rgba(255, 255, 255, .17); transform: translate(3px, -4px) rotate(-10deg); fill: currentColor; }
.ghex-ico { position: relative; width: 28px; height: 28px; color: #fff; fill: currentColor; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .18)); }
.gtitle-text { display: grid; gap: 1px; min-width: 0; }
.gtitle-name { position: relative; justify-self: start; margin: 0; padding: 0 4px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.bub { position: absolute; border-radius: 50%; border: 2px solid color-mix(in oklab, var(--neon-a) 50%, transparent); pointer-events: none; }
.bub--a { width: 13px; height: 13px; left: -9px; top: -7px; }
.bub--a::after { content: ""; position: absolute; left: -9px; top: 10px; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid color-mix(in oklab, var(--neon-a) 40%, transparent); }
.bub--b { width: 9px; height: 9px; right: -11px; bottom: 3px; border-color: color-mix(in oklab, var(--neon-c) 45%, transparent); }
.gtitle-text small { display: flex; align-items: center; gap: 8px; padding-left: 4px; font-size: 13px; color: var(--ink-3); }
.gtitle-help {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  padding: 5px 14px 5px 5px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: 14px;
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 0 rgba(10, 44, 59, .06);
}
.gtitle-help:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.gtitle-q { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--bg-2); color: var(--ink-2); font-weight: 800; }

.modal--wallet { width: min(940px, calc(100% - 32px)); height: min(720px, calc(100% - 32px)); max-height: none; }
.wl { display: flex; flex-direction: column; height: 100%; }
.wl-head { display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line); }
.wl-title { display: flex; align-items: center; gap: 12px; margin-right: auto; min-width: 0; }
.wl-title-ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--grad-card); color: #fff; }
.wl-title h2 { font-size: 20px; }
.wl-title small { font-size: 13px; color: var(--ink-3); }
.wl-tabs .tab { display: inline-flex; align-items: center; gap: 7px; }
.wl-tabs .i { width: 18px; height: 18px; }
.wl-close { width: 40px; height: 40px; }
.wl-body { flex: 1; min-height: 0; overflow: auto; }
.wl-split { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: 100%; }
.wl-methods { padding: 8px 10px 14px; border-right: 1px solid var(--line); background: var(--bg-2); }
.wl-group { margin: 10px 8px 4px; font-size: 12.5px; color: var(--ink-3); }
.wl-method {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
  width: 100%; padding: 8px 10px; border: 0; border-radius: var(--r-btn); cursor: pointer;
  background: transparent; color: var(--ink); text-align: left;
}
.wl-method:hover { background: var(--surface); }
.wl-method[aria-pressed="true"] { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--neon-b); }
.wl-mico { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; color: #fff; }
.wl-mico .i { width: 18px; height: 18px; }
.wl-mico b { font-size: 15px; font-weight: 800; }
.wl-mico.is-lg, .coin.is-lg { width: 44px; height: 44px; }
.wl-mico.is-lg { border-radius: 13px; }
.wl-mico.is-lg .i { width: 24px; height: 24px; }
.wl-mico.is-xs, .coin.is-xs { width: 22px; height: 22px; }
.wl-mico.is-xs { border-radius: 7px; }
.wl-mico.is-xs .i { width: 13px; height: 13px; }
.wl-mtext { display: grid; min-width: 0; line-height: 1.25; }
.wl-mtext b { font-size: 14.5px; font-weight: 600; }
.wl-mtext small { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-mright { font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wl-mright small { margin: 0 3px; font-weight: 400; color: var(--ink-3); }
.wl-panel { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 20px 24px 24px; }
.wl-ph { display: flex; align-items: center; gap: 14px; }
.wl-ph h3 { font-size: 18px; font-weight: 700; }
.wl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.amount-unit { margin-right: 8px; font-weight: 600; color: var(--ink-3); }
.wl-presets { display: flex; gap: 6px; margin-top: 8px; }
.wl-presets button { flex: 1; height: 38px; border: 0; border-radius: var(--r-sm); cursor: pointer; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-weight: 650; font-size: 14px; font-variant-numeric: tabular-nums; }
.wl-presets button:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.wl-presets button.is-active { background: var(--sea-soft); box-shadow: inset 0 0 0 1.5px var(--neon-b); }
.wl-err { margin-top: 6px; font-size: 13.5px; color: var(--loss); }
.wl-err:empty { display: none; }
.wl-bonus {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 12px 14px; border-radius: var(--r-btn); cursor: pointer;
  background: color-mix(in oklab, var(--buoy) 13%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--buoy) 45%, transparent);
}
.wl-bonus input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wl-check { display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-strong); color: transparent; }
.wl-check .i { width: 16px; height: 16px; }
.wl-bonus input:checked + .wl-check { background: var(--buoy); color: var(--buoy-ink); box-shadow: none; }
.wl-bonus input:focus-visible + .wl-check { outline: 3px solid var(--sea); outline-offset: 2px; }
.wl-bonus b { display: block; font-weight: 600; }
.wl-bonus small { font-size: 13px; color: var(--ink-2); }
.wl-sum { display: grid; gap: 6px; margin: 0; padding: 12px 14px; border-radius: var(--r-btn); background: var(--bg-2); }
.wl-sum div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.wl-sum dt { color: var(--ink-2); }
.wl-sum dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.wl-sum .is-total { margin-top: 2px; padding-top: 8px; border-top: 1px dashed var(--line-strong); font-size: 16px; }
.wl-sum .is-total dd { font-weight: 750; }
.wl-note { font-size: 13px; color: var(--ink-3); }
.wl-wager { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-radius: var(--r-btn); background: color-mix(in oklab, var(--buoy) 14%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--buoy) 45%, transparent); }
.wl-wager-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--buoy); color: #2B1F00; }
.wl-wager-ico .i { width: 19px; height: 19px; }
.wl-wager > div > b { display: block; font-weight: 650; }
.wl-wager p { margin-top: 3px; font-size: 14px; color: var(--ink-2); }
.wl-wager p b { color: var(--ink); font-variant-numeric: tabular-nums; }
.wl-wager .bp-bar { margin-top: 10px; }
.wl-nets { display: flex; gap: 6px; flex-wrap: wrap; }
.wl-nets button { min-height: 40px; padding: 8px 16px; border: 0; border-radius: var(--r-sm); cursor: pointer; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-weight: 650; }
.wl-nets button[aria-pressed="true"] { background: var(--sea-soft); box-shadow: inset 0 0 0 1.5px var(--neon-b); }
.wl-addrbox { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 18px; align-items: start; }
.wl-addrbox .qr { width: 140px; height: 140px; }
.wl-addrinfo .addr { margin-top: 8px; }
.wl-facts { display: grid; gap: 4px; margin-top: 10px; font-size: 13.5px; }
.wl-facts li { display: flex; justify-content: space-between; gap: 12px; }
.wl-facts span { color: var(--ink-2); }
.wl-warn { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--r-btn); background: color-mix(in oklab, var(--loss) 10%, transparent); font-size: 14px; }
.wl-warn .i { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--loss); }
.wl-avail { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; border-radius: var(--r-btn); background: var(--bg-2); }
.wl-avail span { color: var(--ink-2); font-size: 14px; }
.wl-avail b { font-size: 18px; font-variant-numeric: tabular-nums; }
.wl-done { display: grid; justify-items: center; gap: 10px; max-width: 420px; margin: auto; padding: 36px 0; text-align: center; }
.wl-done-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--win-soft); color: var(--win); }
.wl-done-ico.is-pending { background: color-mix(in oklab, var(--buoy) 20%, transparent); color: color-mix(in oklab, var(--buoy) 55%, var(--ink)); }
.wl-done-ico .i { width: 34px; height: 34px; }
.wl-done h3 { font-size: 22px; }
.wl-done p { color: var(--ink-2); }
.wl-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.wl-hist { padding: 14px 20px 20px; }
.wl-hist-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.wl-table th, .wl-table td { padding: 11px 12px; }
.wl-table th:first-child, .wl-table td:first-child { padding-left: 4px; }
.wl-op { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.wl-op .i { width: 20px; height: 20px; }
.wl-op.is-in .i { color: var(--win); }
.wl-op.is-out .i { color: var(--neon-b); }
.wl-via { display: inline-flex; align-items: center; gap: 8px; }
.wl-via small { display: block; font-size: 12px; color: var(--ink-3); }

.st { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.st--done { background: var(--win-soft); color: var(--win); }
.st--pending { background: color-mix(in oklab, var(--buoy) 22%, transparent); color: color-mix(in oklab, var(--buoy) 50%, var(--ink)); }
.st--pending::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.2s ease-in-out infinite; }
.st--rejected { background: var(--loss-soft); color: var(--loss); }
@keyframes blink { 50% { opacity: .25; } }

.slots-search { display: flex; align-items: center; gap: 10px; width: min(340px, 100%); height: 46px; padding: 0 14px; border-radius: var(--r-btn); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.slots-search:focus-within { box-shadow: inset 0 0 0 1.5px var(--neon-b); }
.slots-search .i { width: 19px; height: 19px; color: var(--ink-3); }
.slots-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 15px; }
.slots-bar { display: flex; margin-bottom: 10px; }
.tab--ico { display: inline-flex; align-items: center; gap: 7px; }
.tab--ico .i { width: 17px; height: 17px; }
.providers { display: flex; gap: 8px; margin-bottom: 14px; padding: 2px 2px 10px; overflow-x: auto; }
.prov { display: flex; align-items: center; gap: 10px; flex: none; padding: 6px 14px 6px 6px; border: 0; border-radius: var(--r-btn); cursor: pointer; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-align: left; }
.prov:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.prov[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--neon-b), 0 8px 20px -12px color-mix(in oklab, var(--neon-b) 80%, transparent); }
.prov-logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: -.02em; }
.prov-logo--all { background: var(--bg-2); color: var(--ink-2); }
.prov-logo .i { width: 18px; height: 18px; }
.prov-text { display: grid; line-height: 1.2; }
.prov-text b { font-size: 14px; font-weight: 600; white-space: nowrap; }
.prov-text small { font-size: 12px; color: var(--ink-3); }
.slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 14px 12px; }
.slots-grid--row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.slot { display: block; min-width: 0; color: inherit; text-decoration: none; border-radius: 12px; }
.slot-art { position: relative; display: block; height: 0; padding-top: 133.3333%; border-radius: 12px; overflow: hidden; transition: transform .16s ease, box-shadow .16s ease; }
.slot:hover .slot-art { transform: translateY(-2px); box-shadow: 0 14px 28px -16px color-mix(in oklab, var(--neon-b) 70%, transparent); }
.cover {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 10px;
  color: #fff; overflow: hidden;
  background: radial-gradient(70% 55% at var(--gx) var(--gy), rgba(255, 255, 255, .38), transparent 62%), linear-gradient(var(--a), var(--c1), var(--c2));
}
.cover::before { content: ""; position: absolute; inset: 0; background: inherit; filter: hue-rotate(var(--hue, 0deg)); }
.cover::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 10px); }
.cover-prov { position: relative; z-index: 1; font-size: 10.5px; font-weight: 700; opacity: .85; }
.cover-title { position: relative; z-index: 1; font-size: 17px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); font-variation-settings: "SHRP" 100; overflow-wrap: anywhere; }
.cover-img { position: absolute; top: 0; left: 0; z-index: 2; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
.cover--big { padding: 40px; }
.cover--big .cover-title { font-size: 64px; }
.slot-badge { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 3px 7px; border-radius: 6px; background: rgba(0, 0, 0, .5); color: #fff; font-size: 11px; font-weight: 600; backdrop-filter: blur(4px); }
.slot-badge.is-new { background: #4AD6A2; color: #04281C; }
.slot-play { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: rgba(5, 15, 20, .45); opacity: 0; transition: opacity .15s ease; }
.slot-play .i { width: 46px; height: 46px; color: #fff; }
.slot:hover .slot-play, .slot:focus-visible .slot-play { opacity: 1; }
.slot-name { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-prov { display: block; font-size: 12.5px; color: var(--ink-3); }
.slots-more { display: flex; justify-content: center; margin-top: 18px; }
.slots-more:empty { display: none; }
.slots-empty { grid-column: 1 / -1; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 14px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs b { color: var(--ink); font-weight: 600; }
.slot-thumb { position: relative; display: block; width: 42px; height: 56px; flex: none; border-radius: 9px; overflow: hidden; }
.slot-thumb .cover-title, .slot-thumb .cover-prov, .slot-stage__bg .cover-prov, .slot-stage__bg .cover-title { display: none; }
.gframe-actions { display: flex; gap: 8px; }
.slot-stage { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; max-height: 600px; width: 100%; overflow: hidden; background: #05090B; }
.slot-stage__bg { position: absolute; inset: -40px; opacity: .6; filter: blur(22px) saturate(1.15); }
.slot-stub { position: relative; display: grid; justify-items: center; gap: 12px; max-width: 480px; padding: 28px; text-align: center; color: #fff; }
.slot-stub__ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.slot-stub__ico .i { width: 30px; height: 30px; }
.slot-stub h2 { font-size: 26px; }
.slot-stub p { color: rgba(255, 255, 255, .8); }
.slot-stub small { font-size: 12.5px; color: rgba(255, 255, 255, .5); }
.slot-stub__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }
.slot-stub__actions .btn .i { width: 18px; height: 18px; margin-right: 6px; }
.slot-stub[hidden] { display: none; }
.slot-stage.is-playing .slot-stage__bg { display: none; }
.slot-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.slot-fs { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 10px 10px 14px; border-radius: 14px; text-align: left;
  background: linear-gradient(135deg, rgba(255, 212, 82, .2), rgba(255, 159, 46, .12)); box-shadow: inset 0 0 0 1px rgba(255, 212, 82, .45); }
.slot-fs[hidden] { display: none; }
.slot-fs > .i { flex: none; width: 24px; height: 24px; color: #FFD452; }
.slot-fs > span { display: grid; flex: 1; min-width: 0; }
.slot-fs small { font-size: 12.5px; color: rgba(255, 255, 255, .65); }
.slot-msg { margin: 0; padding: 8px 12px; border-radius: 10px; background: rgba(226, 81, 63, .22); color: #FFD9D3 !important; font-size: 14px; }
.slot-msg[hidden] { display: none; }
.fs-list[hidden] { display: none; }
.fs-list { margin-top: 16px; }
.brow-ico.fs-cover { position: relative; overflow: hidden; width: 40px; height: 52px; padding: 0; background: var(--line); }
.fs-cover .cover { display: block; width: 100%; height: 100%; }
.fs-cover .cover-title, .fs-cover .cover-prov { display: none; }
.slot-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.slot-facts > div { padding: 13px 20px; border-left: 1px solid var(--line); }
.slot-facts > div:first-child { border-left: 0; }
.slot-facts dt { font-size: 12.5px; color: var(--ink-3); }
.slot-facts dd { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; font-weight: 600; }
.vol {
  display: inline-block; width: 34px; height: 12px;
  background: linear-gradient(90deg, var(--neon-a) calc(var(--v) * 20%), var(--line-strong) 0);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 5px, transparent 5px 7px);
          mask: repeating-linear-gradient(90deg, #000 0 5px, transparent 5px 7px);
}
.vol i { display: none; }

.wheel {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr;
  grid-template-areas: "info stage" "act stage";
  margin-top: 16px; overflow: hidden; border-radius: var(--r-panel); color: #fff;
  background:
    radial-gradient(48% 70% at 75% 54%, color-mix(in oklab, var(--neon-c) 36%, transparent), transparent 72%),
    radial-gradient(34% 46% at 66% 26%, color-mix(in oklab, var(--neon-a) 24%, transparent), transparent 72%),
    linear-gradient(160deg, var(--sea-2), var(--sea-3) 72%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.wheel::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(104deg, rgba(255, 255, 255, .05) 0 30px, transparent 30px 84px); -webkit-mask-image: linear-gradient(#000, transparent 62%); mask-image: linear-gradient(#000, transparent 62%); }
.wheel-info { grid-area: info; display: flex; flex-direction: column; gap: 14px; padding: 30px 32px 0; }
.wheel-kicker { align-self: flex-start; padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, .12); color: #A8F4FF; font-size: 13px; font-weight: 600; }
.wheel-info h2 { margin-top: -2px; font-size: 32px; line-height: 1.08; letter-spacing: -.015em; }
.wheel-info > p { max-width: 42ch; color: rgba(255, 255, 255, .74); }
.wheel-info > p b { color: #fff; font-weight: 700; }
.wheel-pay { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; }
.wheel-pay li { position: relative; display: grid; gap: 2px; padding: 13px 4px 10px; overflow: hidden; border-radius: 12px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); text-align: center; transition: background .35s ease, box-shadow .35s ease; }
.wheel-pay li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--lo), var(--hi)); }
.wheel-pay b { font-size: 17px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wheel-pay span { font-size: 12.5px; color: rgba(255, 255, 255, .58); font-variant-numeric: tabular-nums; }
.wheel-pay li.is-win { background: color-mix(in oklab, var(--hi) 24%, transparent); box-shadow: inset 0 0 0 1.5px var(--hi), 0 0 24px -6px var(--hi); }
.wheel-pay li.is-win span { color: #fff; }
.wheel-act { grid-area: act; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px 32px 30px; }
.wheel-act .btn { min-width: 260px; }
.wheel-act .btn:disabled { opacity: 1; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.wheel-msg { font-weight: 600; color: #7CF5C8; }
.wheel-msg.is-err { color: #FFB4A8; }
.wheel-msg:empty { display: none; }

.wheel-stage { grid-area: stage; display: grid; place-items: center; padding: 44px 32px 34px; }
.wheel-box { position: relative; width: min(100%, 410px); aspect-ratio: 1; }
.wheel-box::before { content: ""; position: absolute; inset: -9%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in oklab, var(--neon-a) 50%, transparent), color-mix(in oklab, var(--neon-c) 30%, transparent) 72%, transparent); filter: blur(20px); opacity: .85; }
.wheel-box.is-won::before { animation: halo 1.6s ease-out; }
@keyframes halo { 25% { opacity: 1; transform: scale(1.14); filter: blur(12px) brightness(1.7); } }
.wheel-svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 26px 34px rgba(0, 0, 0, .45)); }
.wring { fill: none; stroke: url(#whg-gold); }
.wbulbs { filter: drop-shadow(0 0 3px rgba(255, 196, 70, .95)); }
.wbulb { fill: url(#whg-bulb); }
.wheel-box.is-spinning .wbulb { animation: bulb .34s steps(1) infinite; }
.wheel-box.is-spinning .wbulb:nth-child(odd) { animation-delay: -.17s; }
@keyframes bulb { 50% { opacity: .22; } }
.wspin { transform-box: fill-box; transform-origin: 50% 50%; }
.wdiv line { stroke: #FFE7A3; stroke-opacity: .7; stroke-width: 1.2; }
.wstud { fill: url(#whg-gold); }
.wnum, .wcur { fill: var(--ink, #fff); text-anchor: middle; dominant-baseline: middle; transition: opacity .45s ease; }
.wnum { font-size: 26px; font-weight: 800; letter-spacing: -.02em; paint-order: stroke; stroke: rgba(0, 0, 0, .25); stroke-width: 3px; }
.wcur { font-size: 12px; font-weight: 700; fill-opacity: .85; }
.wsec[style*="--ink"] .wnum { stroke: rgba(255, 255, 255, .35); }
.wsec > path { transition: opacity .45s ease, filter .45s ease; }
.wspin.has-win .wsec:not(.is-win) :is(path, text) { opacity: .42; }
.wsec.is-win > path { filter: brightness(1.15) saturate(1.1); }
.wgloss { fill: #fff; opacity: .1; }
.whub { fill: #0E1A22; }
.wheel-pointer { position: absolute; left: 50%; top: -6%; width: 12%; min-width: 34px; transform: translateX(-50%); overflow: visible; filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .45)); }

.bcoin { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 10px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.bcoin:empty { display: none; }
.bcoin > .coin { width: 32px; height: 32px; flex: none; }
.bcoin-text { display: grid; line-height: 1.25; min-width: 0; }
.bcoin-text b { font-variant-numeric: tabular-nums; }
.bcoin-text small { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcoin-q { flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); font-weight: 700; cursor: pointer; }
.bcoin-q:hover { color: var(--ink); background: var(--sea-soft); }
.bcoin .btn { min-height: 40px; padding: 8px 16px; border-radius: 999px; gap: 7px; }
.bcoin .btn .i { width: 18px; height: 18px; }
@media (max-width: 560px) {
  .bonus-head .bcoin { width: 100%; }
  .bcoin .btn { margin-left: auto; }
}

.pcode {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 6px 24px;
  padding: 16px 20px; border-radius: var(--r-panel);
  border: 1.5px dashed color-mix(in oklab, var(--neon-b) 45%, var(--line)); background: color-mix(in oklab, var(--neon-b) 5%, var(--surface));
}
.pcode h2 { font-size: 18px; }
.pcode-text p { font-size: 14px; color: var(--ink-2); }
.pcode-form { display: flex; gap: 10px; }
.pcode-input { flex: 1; min-height: 50px; }
.pcode-input .i { width: 20px; height: 20px; margin-left: 2px; color: var(--neon-b); }
.pcode-input input { font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }
.pcode-input input::placeholder { letter-spacing: 0; text-transform: none; }
.pcode-msg { grid-column: 2; font-size: 14px; font-weight: 500; }
.pcode-msg:empty { display: none; }
.pcode-msg.is-ok { color: var(--win); }
.pcode-msg.is-err { color: var(--loss); }

.bonus-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 16px; }
.blist { padding: 4px 0; border-radius: var(--r-panel); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.blist h2 { padding: 14px 20px 6px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.brow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--line); }
.blist h2 + .brow { border-top: 0; }
.brow-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--g); color: var(--gi, #fff); }
.brow-ico .i { width: 21px; height: 21px; }
.vk-mark { font-size: 13px; font-weight: 800; letter-spacing: -.02em; }
.brow-main b { display: block; font-weight: 600; }
.brow-main p { margin-top: 2px; font-size: 14px; color: var(--ink-2); }
.brow-val { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 8px; }
.brow-val b { font-size: 18px; font-weight: 750; }
.brow-val span { font-size: 13px; color: var(--ink-3); }
.brow-dl { display: flex; gap: 22px; margin: 8px 0 0; }
.brow-dl div { display: grid; }
.brow-dl dt { font-size: 12.5px; color: var(--ink-3); }
.brow-dl dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.brow .bp-bar { margin-top: 10px; }
.brow-act { align-self: center; }
.brow-act .btn + .btn, .brow-act .st + .btn { margin-left: 8px; }
.brow-main small { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-3); }

.vip { margin-top: 16px; border-radius: var(--r-panel); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.vip-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px 28px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.vip-me { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; }
.vip-badge, .vip-rk i {
  display: grid; place-items: center; color: #fff; font-style: normal;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, color-mix(in oklab, var(--rc) 62%, #fff), var(--rc) 55%, color-mix(in oklab, var(--rc) 78%, #000));
}
.vip-badge { width: 56px; height: 62px; }
.vip-badge b { font-size: 22px; font-weight: 800; text-shadow: 0 1px 2px rgb(0 0 0 / .28); }
.vip-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.vip-name h2 { font-size: 22px; }
.vip-of { font-size: 14px; color: var(--ink-3); }
.vip-main .bp-bar { max-width: 560px; margin-top: 10px; }
.vip-main .bp-bar i { background: linear-gradient(90deg, var(--rc), var(--nc, var(--rc))) !important; }
.vip-next { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.vip-next b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.vip-perks { display: flex; margin: 0; border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.vip-perks div { padding: 10px 18px; border-left: 1px solid var(--line); }
.vip-perks div:first-child { border-left: 0; }
.vip-perks dt { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.vip-perks dd { margin: 0; font-size: 18px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vip-off { padding: 14px 24px; font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.vip-table { min-width: 700px; }
.vip-table th, .vip-table td { padding-left: 20px; padding-right: 20px; }
.vip-table td.r { font-variant-numeric: tabular-nums; }
.vip-rk { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.vip-rk i { width: 24px; height: 27px; font-size: 12px; font-weight: 800; }
.vip-table tr.is-cur td { background: color-mix(in oklab, var(--rc) 11%, transparent); }
.vip-table tr.is-cur .st { margin-left: 10px; }
.vip-table tr.is-done td { color: var(--ink-3); }
.vip-table tr.is-done .vip-rk i { opacity: .72; }
.vip-table .vip-up { color: var(--win); font-weight: 650; }
.vip-note { padding: 12px 24px 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }

.ref-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "main rc" "facts facts";
  align-items: center; gap: 0 48px; padding: 30px 32px 0;
  border-radius: var(--r-panel); background: var(--grad-card); color: #fff;
  box-shadow: 0 24px 50px -30px rgba(76, 80, 255, .8);
}
.ref-hero::before { content: ""; position: absolute; z-index: -1; right: 40px; top: -140px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(46, 242, 224, .42), transparent 68%); }
.ref-hero-main { grid-area: main; min-width: 0; }
.ref-hero h2 { max-width: 16ch; font-size: 32px; font-weight: 750; letter-spacing: -.025em; line-height: 1.08; text-wrap: balance; }
.ref-hero p { margin-top: 12px; max-width: 54ch; font-size: 15.5px; color: rgba(255, 255, 255, .84); }
.ref-share { margin-top: 22px; max-width: 580px; }
.ref-addr { padding: 7px 7px 7px 16px; background: #fff; box-shadow: 0 10px 24px -14px rgba(8, 20, 60, .6); color: #0A2C3B; }
.ref-addr input { color: #0A2C3B; font-size: 15px; font-weight: 600; }
.ref-addr .i { width: 18px; height: 18px; color: #6D8990; }
.ref-addr .qbtn { height: 44px; padding: 0 18px; background: #0A2C3B; color: #fff; box-shadow: none; }
.ref-addr .qbtn:hover:not(:disabled) { background: #14394A; }
.ref-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ref-code, .ref-soc {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px;
  border: 0; border-radius: var(--r-btn); cursor: pointer; text-decoration: none;
  background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); color: #fff;
  font-size: 14.5px; font-weight: 600; transition: background-color .15s ease;
}
.ref-code:hover, .ref-soc:hover { background: rgba(255, 255, 255, .22); }
.ref-code span { opacity: .75; font-weight: 500; }
.ref-code b { font-size: 15.5px; font-weight: 750; letter-spacing: .07em; font-variant-numeric: tabular-nums; }
.ref-code .i, .ref-soc .i { width: 17px; height: 17px; }
.ref-vk { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #fff; color: #0077FF; font-size: 10px; font-weight: 800; letter-spacing: -.02em; }
.ref-guest { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.ref-hero .ref-guest p { margin: 0; font-weight: 600; color: #fff; }

.ref-rc { grid-area: rc; position: relative; margin: 18px 0 0; padding: 0 0 24px; }
.ref-rc::before, .ref-rc::after { content: ""; position: absolute; left: 18px; right: 18px; top: -9px; height: 60px; border-radius: 16px; background: rgba(255, 255, 255, .3); }
.ref-rc::after { left: 36px; right: 36px; top: -18px; background: rgba(255, 255, 255, .16); }
.ref-rc-paper {
  position: relative; z-index: 1; padding: 16px 20px 36px; border-radius: 18px;
  background: #fff; color: #0A2C3B;
  box-shadow: 0 0 0 7px rgba(255, 255, 255, .2), 0 26px 40px -22px rgba(8, 16, 60, .75);
}
.ref-rc-paper > * { transition: opacity .25s ease, transform .25s ease; }
.ref-rc-paper.is-out > * { opacity: 0; transform: translateY(-8px); }
.ref-rc-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: #6D8990; }
.ref-rc-top time { font-variant-numeric: tabular-nums; }
.ref-rc-who { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 15px; font-weight: 600; }
.ref-rc-who i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #E3EEF2; font-style: normal; font-size: 13px; font-weight: 750; }
.ref-rc-sum { margin-top: 6px; font-size: 36px; font-weight: 750; letter-spacing: -.025em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.ref-rc-cut { position: relative; display: flex; justify-content: center; margin-top: 16px; }
.ref-rc-cut::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px dashed #C9D6DC; }
.ref-rc-cut span { position: relative; padding: 3px 12px; border-radius: 999px; background: var(--grad-neon); color: #fff; font-size: 13px; font-weight: 750; box-shadow: 0 0 0 5px #fff; }
.ref-rc-pay {
  position: absolute; z-index: 2; left: 50%; bottom: 0; transform: translateX(-50%);
  display: inline-flex; align-items: baseline; gap: 10px; padding: 11px 20px; border-radius: 14px; white-space: nowrap;
  background: var(--grad-buoy); color: var(--buoy-ink);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .1), inset 0 1px 0 rgba(255, 255, 255, .4), 0 12px 26px -8px rgba(255, 170, 30, .75);
}
.ref-rc-pay small { font-size: 13px; font-weight: 600; opacity: .7; }
.ref-rc-pay b { font-size: 22px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ref-rc-pay.is-pop { animation: ref-pop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes ref-pop { from { transform: translateX(-50%) scale(.84); } to { transform: translateX(-50%) scale(1); } }

.ref-facts { grid-area: facts; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 28px -32px 0; background: rgba(8, 14, 50, .16); border-top: 1px solid rgba(255, 255, 255, .16); }
.ref-facts div { padding: 14px 24px 16px; border-left: 1px solid rgba(255, 255, 255, .14); }
.ref-facts div:first-child { padding-left: 32px; }
.ref-facts div:first-child { border-left: 0; }
.ref-facts dt { font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.ref-facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 650; }

.ref-stats { margin-top: 20px; }
.kpis--line { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-radius: var(--r-panel); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.kpis--line > div { padding: 13px 18px; border-left: 1px solid var(--line); }
.kpis--line > div:first-child { border-left: 0; }
.kpis--line span { display: block; font-size: 12.5px; color: var(--ink-3); }
.kpis--line b { font-size: 20px; font-weight: 750; font-variant-numeric: tabular-nums; }
.kpis--line small { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.kpis--line .pos { color: var(--win); }
.kpis--line .neg { color: var(--loss); }
.tcard .kpis--line { border-radius: 0; background: transparent; box-shadow: none; border-bottom: 1px solid var(--line); }
.ref-chart-wrap { padding: 18px 24px 8px; }
.ref-chart-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 12px; font-size: 13.5px; color: var(--ink-3); }
.ref-chart-head b { font-size: 15px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.ref-chart { display: grid; grid-template-columns: repeat(var(--n, 14), minmax(0, 1fr)); align-items: end; gap: 6px; height: 150px; }
.ref-chart.is-dense { gap: 3px; }
.bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; height: 100%; min-width: 0; }
.bar i { display: block; width: 100%; max-width: 30px; border-radius: 6px 6px 2px 2px; background: var(--grad-neon); opacity: .82; transition: opacity .15s ease; }
.ref-chart.is-dense .bar i { border-radius: 3px 3px 1px 1px; }
.bar.is-zero i { height: 2px !important; background: var(--line-strong); }
.bar:hover i { opacity: 1; }
.bar span { min-height: 15px; font-size: 11px; line-height: 15px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ref-payout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 24px; border-top: 1px solid var(--line); }
.ref-payout span { display: block; font-size: 13px; color: var(--ink-3); }
.ref-payout b { font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; }
.ref-table { min-width: 720px; }
.ref-fresh { color: var(--win); font-weight: 600; }

.set-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; align-items: start; }
.set-nav { position: sticky; top: calc(var(--tb-h) + 20px); display: grid; gap: 2px; }
.set-nav a { padding: 9px 12px; border-radius: var(--r-sm); color: var(--ink-2); font-weight: 500; text-decoration: none; }
.set-nav a:hover { background: var(--surface); color: var(--ink); }
.set-main { display: grid; gap: 14px; }
.set-sec { padding: 20px 24px; border-radius: var(--r-panel); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); scroll-margin-top: calc(var(--tb-h) + 16px); }
.set-sec h2 { margin-bottom: 4px; font-size: 18px; }
.set-sub { margin-bottom: 12px; font-size: 14px; color: var(--ink-2); }
.set-sub b { color: var(--ink); }
.set-profile { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 12px 0 16px; }
.set-dl { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
.set-dl dt { font-size: 12.5px; color: var(--ink-3); }
.set-dl dd { margin: 0; font-weight: 600; }
.set-copy { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--ink); font-weight: 600; cursor: pointer; }
.set-copy .i { width: 15px; height: 15px; color: var(--ink-3); }
.set-row { display: grid; gap: 8px; }
.set-inline { display: flex; gap: 10px; max-width: 520px; }
.set-inline .amount { flex: 1; min-height: 50px; }
.soc-list { display: grid; }
.soc-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.soc-row:first-child { border-top: 0; }
.soc-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--bg); color: var(--fg); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.soc-mark b { font-size: 15px; font-weight: 800; }
.soc-mark .i { width: 20px; height: 20px; }
.soc-text { display: grid; line-height: 1.3; min-width: 0; }
.soc-text small { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.email-ok { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 8px 0; }
.code-box input { font-size: 20px; font-weight: 700; letter-spacing: .4em; }
.link-btn { padding: 0; border: 0; background: none; color: var(--neon-b); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.set-pwd { display: grid; gap: 14px; max-width: 520px; margin-top: 4px; }
.pwd-box { padding-right: 6px; }
.pwd-eye { flex: none; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); font-size: 13px; font-weight: 600; cursor: pointer; }
.pwd-eye:hover { background: var(--bg-2); color: var(--ink); }
.pwd-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
.pwd-meter i { height: 5px; border-radius: 3px; background: var(--line); transition: background-color .2s ease; }
.pwd-meter[data-s="0"] i:nth-child(1), .pwd-meter[data-s="1"] i:nth-child(1) { background: var(--loss); }
.pwd-meter[data-s="2"] i:nth-child(-n+2) { background: #E8A317; }
.pwd-meter[data-s="3"] i:nth-child(-n+3) { background: var(--neon-b); }
.pwd-meter[data-s="4"] i { background: var(--win); }
.pwd-rules { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.pwd-rules li::before { content: "○ "; }
.pwd-rules li.is-ok { color: var(--win); }
.pwd-rules li.is-ok::before { content: "✓ "; }
.set-actions { display: flex; }

@media (max-width: 1100px) {
  .slots-grid--row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpis--line { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis--line > div:nth-child(4) { border-left: 0; }
  .kpis--line > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .wheel { grid-template-columns: minmax(0, 1fr); grid-template-areas: "info" "stage" "act"; }
  .wheel-info { padding-bottom: 0; }
  .wheel-stage { padding: 48px 24px 8px; }
  .wheel-box { width: min(100%, 380px); }
  .bonus-cols { grid-template-columns: minmax(0, 1fr); }
  .set-layout { grid-template-columns: minmax(0, 1fr); }
  .set-nav { position: static; display: flex; overflow-x: auto; }
}
@media (max-width: 440px) {
  .modal--wallet .wl-tabs .tab { padding-inline: 4px; font-size: 13px; }
  .modal--wallet .wl-tabs .tab .i { display: none; }
}
@media (max-width: 760px) {
  .modal--wallet { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border-radius: 0; }
  .wl-head { flex-wrap: wrap; padding: 12px 12px 12px 16px; gap: 10px; }
  .wl-tabs { order: 3; width: 100%; }
  .wl-tabs .tab { flex: 1; justify-content: center; padding-inline: 8px; }
  .wl-split { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-content: start; }
  .wl-methods { display: flex; align-items: center; gap: 6px; overflow-x: auto; overflow-y: hidden; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .wl-methods::-webkit-scrollbar { display: none; }
  .wl-group { display: none; }
  .wl-method { width: auto; flex: none; grid-template-columns: auto auto; height: 48px; padding: 0 12px 0 8px; white-space: nowrap; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
  .wl-mtext b { white-space: nowrap; }
  .wl-mright, .wl-mtext small { display: none; }
  .wl-panel { padding: 16px; }
  .wl-addrbox { grid-template-columns: minmax(0, 1fr); }
  .wl-addrbox .qr { margin: 0 auto; }
  .wl-hist { padding: 12px; }
  .gframe-bar.gtitle { padding: 8px 12px 8px 6px; }
  .ghex { width: 54px; height: 59px; }
  .ghex-ico { width: 23px; height: 23px; }
  .ghex-ghost { width: 38px; height: 38px; }
  .gtitle-name { font-size: 20px; }
  .gtitle-help { padding: 5px; }
  .gtitle-help-text { display: none; }
  .page-head .slots-search { width: 100%; }
  .slots-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px 8px; }
  .slots-grid--row { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 40%; overflow-x: auto; }
  .cover-title { font-size: 14px; }
  .cover--big .cover-title { font-size: 34px; }
  .slot-stage { aspect-ratio: 4 / 5; }
  .slot-stub h2 { font-size: 21px; }
  .slot-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slot-facts > div:nth-child(odd) { border-left: 0; }
  .slot-facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .kpis--line { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis--line > div:nth-child(odd) { border-left: 0; }
  .kpis--line > div:nth-child(4) { border-left: 1px solid var(--line); }
  .kpis--line > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .wheel-info { padding: 22px 18px 0; }
  .wheel-info h2 { font-size: 26px; }
  .wheel-pay { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wheel-stage { padding: 40px 14px 4px; }
  .wheel-box { width: min(100%, 330px); }
  .wheel-act { padding: 16px 18px 18px; }
  .wheel-act .btn { width: 100%; min-width: 0; }
  .pcode { grid-template-columns: minmax(0, 1fr); }
  .pcode-msg { grid-column: 1; }
  .pcode-form { flex-direction: column; }
  .brow { grid-template-columns: auto minmax(0, 1fr); padding: 14px 16px; }
  .brow > .btn, .brow-act { grid-column: 2; justify-self: start; }
  .vip-head { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .vip-badge { width: 48px; height: 53px; }
  .vip-name h2 { font-size: 20px; }
  .vip-perks div { flex: 1; padding: 9px 12px; }
  .vip-perks dd { font-size: 16px; }
  .vip-off { padding: 12px 16px; }
  .vip-table th, .vip-table td { padding-left: 14px; padding-right: 14px; }
  .ref-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "rc" "facts"; padding: 22px 18px 0; }
  .ref-hero h2 { font-size: 26px; }
  .ref-hero p { font-size: 15px; }
  .ref-addr .qbtn span { display: none; }
  .ref-addr .qbtn { padding: 0 13px; }
  .ref-code { flex: 1 1 100%; justify-content: center; }
  .ref-soc { flex: 1; justify-content: center; }
  .ref-rc { justify-self: center; width: min(100%, 320px); margin-top: 34px; }
  .ref-facts { grid-template-columns: minmax(0, 1fr); margin: 26px -18px 0; }
  .ref-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 18px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
  .ref-facts div:first-child { border-top: 0; padding-left: 18px; }
  .ref-facts dd { margin: 0; text-align: right; }
  .ref-chart-wrap { padding: 16px 16px 6px; }
  .ref-chart { gap: 3px; height: 130px; }
  .ref-chart.is-dense { gap: 2px; }
  .ref-payout { padding: 14px 16px; }
  .ref-payout .btn { width: 100%; }
  .set-sec { padding: 16px; }
  .set-inline { flex-direction: column; }
  .soc-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .soc-row .st { display: none; }
}

@media (max-width: 1240px) {
  .game { grid-template-columns: 316px minmax(0, 1fr); }
  .howto { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .howto h2 { grid-column: 1 / -1; }
  .howto .btn { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 1100px) {
  :root { --pad: 24px; }
  .app, .app.is-collapsed { grid-template-columns: minmax(0, 1fr); --sb-w: 288px; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); transform: translateX(-102%); transition: transform .28s cubic-bezier(.3, .7, .3, 1); box-shadow: var(--shadow-pop); z-index: 60; }
  .sidebar.is-open { transform: none; }
  .scrim { z-index: 55; }
  .sb-collapse { display: none; }
  .sb-close { display: inline-grid; width: 40px; height: 40px; }
  .menu-btn, .brand--compact { display: inline-flex; }
  .game { grid-template-columns: minmax(0, 1fr); }
  .stage { order: -1; min-height: 0; }
  .controls { border-right: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .controls > .btn, .controls > .controls-note { grid-column: 1 / -1; }
  .footer-top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .promos { grid-template-columns: minmax(0, 1fr); }
  .bonus-list { grid-template-columns: minmax(0, 1fr); }
  .profile-text { display: none; }
  .profile-btn { padding-right: 6px; gap: 6px; }
}

@media (max-width: 760px) {
  :root { --pad: 16px; --tb-h: 68px; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .topbar { grid-template-columns: auto 1fr auto; gap: 8px; }
  .menu-btn, .bell-wrap, .profile-btn .chev { display: none; }
  .brand--compact .brand-name { display: none; }
  .wallet { justify-self: center; }
  .wallet-bar { padding: 4px; gap: 2px; }
  .wallet-btn { min-height: 42px; padding: 4px 8px 4px 4px; gap: 7px; }
  .wallet-btn .coin { width: 22px; height: 22px; }
  .wallet-cur { display: none; }
  .wallet-amount { font-size: 15px; }
  .wallet-deposit { width: 42px; min-height: 42px; padding: 0; }
  .wallet-deposit span { display: none; }
  .avatar { width: 42px; height: 42px; }
  .profile-btn { min-height: 48px; padding: 3px; }
  .wallet-menu, .profile-menu, .notif-menu { position: fixed; top: calc(var(--tb-h) + 8px); left: 12px; right: 12px; width: auto; transform: none; }

  .view { padding-top: 20px; }
  .page-title { font-size: 26px; }
  .promo { min-height: 236px; padding: 24px 22px; }
  .promo--sea { --sky-h: 60px; padding-top: calc(var(--sky-h) + 30px); }
  .promo-title { font-size: 26px; }
  .promo-foot { flex-direction: column; align-items: stretch; }
  .promo-foot .btn, .promo-actions .btn { width: 100%; }

  .home { display: flex; flex-direction: column; }
  .home-games { order: -1; }
  .home-games .sec-head { margin-top: 0; margin-bottom: 12px; }
  .home .tasks { margin-top: 28px; }
  .posters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .posters .poster:last-child { grid-column: 1 / -1; order: -1; }
  .posters .poster:not(:last-child) .poster-art > .cover { padding: 5.5cqw 7cqw; gap: 0; }
  .posters .poster:not(:last-child) .poster-art > .cover .cover-title { font-size: 9.6cqw; }
  .posters .poster:not(:last-child) .poster-art > .cover .cover-prov { font-size: 6.4cqw; }
  .poster-meta { padding-top: 8px; font-size: 13px; }

  .howto { grid-template-columns: minmax(0, 1fr); padding: 22px; gap: 18px; }

  .stage { padding: 16px 14px 18px; gap: 18px; }
  .stage-hint { display: none; }
  .mines-grid { gap: 7px; }
  .cell { border-radius: 11px; }
  .controls { display: flex; align-items: stretch; padding: 20px 16px; }

  .tcard-head { padding: 14px 16px; }
  .bets { min-width: 0; }
  .bets th, .bets td { padding: 12px 10px; }
  .bets th:first-child, .bets td:first-child { padding-left: 16px; }
  .bets th:last-child, .bets td:last-child { padding-right: 16px; }
  .bets .h-sm { display: none; }
  .cell-game .gname { display: none; }

  .kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kpis .kpi:last-child { grid-column: 1 / -1; }

  .footer { padding-top: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .copyright { margin-left: 0; }

  .tabbar {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in oklab, var(--surface) 94%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .tab-item { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 56px; padding: 7px 2px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink-2); font-size: 12px; font-weight: 500; text-decoration: none; cursor: pointer; }
  .tab-item .i { width: 22px; height: 22px; }
  .tab-item.is-active { color: var(--ink); font-weight: 600; }
  .tab-item.is-active .i { color: var(--sea); }
  .toasts { left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); justify-items: stretch; }
  .toast { max-width: none; }

  .modal-inner { padding: 22px 18px 22px; gap: 18px; }
  .deposit-body { grid-template-columns: minmax(0, 1fr); }
  .qr { margin: 0 auto; }
  .modal-actions .btn { flex: 1 1 100%; }
}

@media (max-width: 480px) {
  .bets .h-xs { display: none; }
}

@media (max-width: 400px) {
  .wallet-amount { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .wave, .fin, .fin svg { animation: none !important; }
  .fin { left: 62%; }
}

:root[data-theme="light"] :is(.tcard, .panel, .blist, .set-sec, .howto, .wheel, .kpis--line, .pcode, .wl-done) {
  box-shadow: inset 0 0 0 1px var(--line), var(--elev);
}
:root[data-theme="light"] :is(.wallet-bar, .search, .icon-btn, .gtitle-help, .btn-ghost, .slots-search) {
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(15, 23, 42, .05);
}
:root[data-theme="light"] .search:focus-within,
:root[data-theme="light"] .slots-search:focus-within {
  box-shadow: inset 0 0 0 1.5px var(--neon-b), 0 0 0 4px color-mix(in oklab, var(--neon-b) 14%, transparent);
}
:root[data-theme="light"] .topbar { background: color-mix(in oklab, var(--surface) 80%, transparent); border-bottom-color: var(--line); }
:root[data-theme="light"] .sidebar { border-right-color: var(--line); box-shadow: 1px 0 0 var(--line), 8px 0 30px -24px rgba(15, 23, 42, .25); }
:root[data-theme="light"] .sidebar::after { opacity: .6; }
:root[data-theme="light"] .tcard-head { background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
:root[data-theme="light"] .bets th { background: var(--surface-2); }
:root[data-theme="light"] .tabs { background: #EBEFF5; }
:root[data-theme="light"] .tab[aria-selected="true"] { box-shadow: 0 1px 3px rgba(15, 23, 42, .1), inset 0 -2px 0 var(--neon-a); }
:root[data-theme="light"] :is(.gframe, .game) {
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 24px 50px -30px color-mix(in oklab, var(--neon-b) 55%, transparent);
}
:root[data-theme="light"] .footer { background: var(--surface); }

.tasks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.task {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px;
  min-height: 132px; padding: 22px 24px; border-radius: var(--r-panel); color: #fff;
}
.task--tg { background: linear-gradient(125deg, #35B4F0 0%, #1E8BD8 55%, #1769C4 100%); box-shadow: 0 20px 40px -26px rgba(30, 139, 216, .9); }
.task--vk { background: linear-gradient(125deg, #3D8BFF 0%, #0A66F0 55%, #3B3FD8 100%); box-shadow: 0 20px 40px -26px rgba(10, 102, 240, .9); }
.task::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 0% 0%, rgba(255, 255, 255, .22), transparent 60%); }
.task-deco { position: absolute; z-index: -1; right: -18px; bottom: -34px; width: 170px; height: 170px; display: grid; place-items: center; color: rgba(255, 255, 255, .12); transform: rotate(-12deg); }
.task-deco .i { width: 100%; height: 100%; }
.task-deco .vk-mark { font-size: 110px; letter-spacing: -.06em; }
.task-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.task-ico .i { width: 26px; height: 26px; }
.task-ico .vk-mark { font-size: 17px; }
.task-body h2 { font-size: 20px; font-weight: 750; letter-spacing: -.015em; }
.task-body p { margin-top: 4px; font-size: 14.5px; color: rgba(255, 255, 255, .85); }
.task-side { display: grid; justify-items: end; gap: 10px; }
.task-reward { padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, .18); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.task .st--done { background: rgba(255, 255, 255, .92); color: #047857; }
.btn-white { background: #fff; color: #0E1A2B; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .4); }
.btn-white:hover { background: #F1F5FF; }
@media (max-width: 960px) {
  .tasks { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .task { grid-template-columns: auto minmax(0, 1fr); padding: 18px; gap: 14px; }
  .task-side { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .task-ico { width: 44px; height: 44px; }
}

.poster-art { container-type: inline-size; }
.poster-art .pa svg { position: static; inset: auto; }
.poster-art > .cover { padding: 16px 20px; gap: 2px; }
.poster-art > .cover .cover-prov { font-size: 12.5px; }
.poster-art > .cover .cover-title { font-size: 28px; letter-spacing: -.03em; }
.pa { position: absolute; inset: 0; overflow: hidden; }

.pa-die {
  position: absolute; width: 13cqw; height: 13cqw; border-radius: 3.2cqw; background-color: #fff;
  box-shadow: inset 0 0 0 .6cqw rgba(43, 31, 0, .9), 0 2cqw 3cqw -1.5cqw rgba(90, 40, 0, .45);
}
.pa-die--a {
  left: 7cqw; top: 9cqw; transform: rotate(-16deg); animation: pa-float 5s ease-in-out infinite;
  background-image: radial-gradient(circle at 28% 28%, #2B1F00 8.5%, transparent 9.5%), radial-gradient(circle at 50% 50%, #D2453A 8.5%, transparent 9.5%), radial-gradient(circle at 72% 72%, #2B1F00 8.5%, transparent 9.5%);
}
.pa-die--b {
  left: 19cqw; top: 23cqw; width: 10cqw; height: 10cqw; border-radius: 2.6cqw; transform: rotate(12deg); animation: pa-float 6s ease-in-out -2s infinite;
  background-image: radial-gradient(circle at 30% 30%, #2B1F00 9%, transparent 10%), radial-gradient(circle at 70% 30%, #2B1F00 9%, transparent 10%), radial-gradient(circle at 30% 70%, #2B1F00 9%, transparent 10%), radial-gradient(circle at 70% 70%, #2B1F00 9%, transparent 10%);
}
@keyframes pa-float { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -1.6cqw; rotate: 8deg; } }

.dm {
  position: absolute; z-index: 1; right: 5cqw; top: 7.5cqw; width: 61cqw; padding: 2.2cqw;
  border-radius: 4.4cqw; background: linear-gradient(#F0902A, #D2660E 85%);
  box-shadow: inset 0 .4cqw 0 rgba(255, 255, 255, .16), inset 0 -.7cqw 0 rgba(0, 0, 0, .28), 0 4.5cqw 7cqw -3.5cqw rgba(150, 60, 0, .55);
}
.dm-screen {
  position: relative; display: flex; justify-content: center; padding: 1.5cqw 0 1.3cqw; overflow: hidden;
  border-radius: 2.4cqw; background: linear-gradient(#FFFBF0, #FFEFC6);
  box-shadow: 0 0 0 .45cqw #FFE08A, 0 0 0 1cqw rgba(140, 60, 0, .18), inset 0 .6cqw 1.2cqw rgba(170, 90, 0, .18);
}
.dm-screen::after { content: ""; position: absolute; inset: 0 0 55%; background: linear-gradient(rgba(255, 255, 255, .5), transparent); pointer-events: none; }
.odo {
  display: flex; align-items: center; gap: .05em;
  font: 800 10.5cqw/1 var(--font); color: #3A2400; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; font-variation-settings: "SHRP" 100;
}
.odo-gap { width: .16em; }
.odo-d { display: block; height: 1em; overflow: hidden; }
.odo-strip { display: flex; flex-direction: column; animation: pa-odo 6s cubic-bezier(.65, 0, .25, 1) var(--delay) infinite; }
.odo-strip span { display: block; height: 1em; text-align: center; }
@keyframes pa-odo {
  0%, 10%  { transform: translateY(0); }
  28%, 44% { transform: translateY(calc(var(--a) * -1em)); }
  62%, 78% { transform: translateY(calc(var(--b) * -1em)); }
  94%, 100% { transform: translateY(-10em); }
}
.dm-track { position: relative; display: block; height: 1.2cqw; margin: 3cqw 1.2cqw 2.8cqw; border-radius: 1cqw; background: rgba(255, 255, 255, .3); }
.dm-track::before { content: ""; position: absolute; left: 50%; top: -.9cqw; bottom: -.9cqw; width: .45cqw; margin-left: -.22cqw; border-radius: .3cqw; background: #fff; }
.dm-mark {
  position: absolute; top: 50%; left: 48.27%; width: 2.8cqw; height: 2.8cqw; margin: -1.4cqw 0 0 -1.4cqw;
  border-radius: 50%; background: #fff; box-shadow: 0 0 0 .55cqw #12B886, 0 0 2.6cqw .4cqw rgba(18, 184, 134, .8);
  opacity: 0; animation: dm-mark 6s ease infinite;
}
@keyframes dm-mark {
  0%, 26% { left: 48.27%; opacity: 0; scale: .4; }
  30%, 46% { left: 48.27%; opacity: 1; scale: 1; }
  62%, 79% { left: 82.92%; opacity: 1; scale: 1; }
  85%, 100% { left: 82.92%; opacity: 0; scale: .4; }
}
.pa-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8cqw; }
.pa-btn {
  display: grid; gap: .4cqw; padding: 2cqw 2.4cqw; border-radius: 2.6cqw;
  background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 .3cqw rgba(255, 255, 255, .28);
  color: #fff; line-height: 1.1;
}
.pa-btn b { font-size: 3.6cqw; font-weight: 800; }
.pa-btn small { font-size: 2.5cqw; font-weight: 600; opacity: .8; white-space: nowrap; }
.pa-btn--lo { animation: pa-win-lo 6s ease infinite; }
.pa-btn--hi { animation: pa-win-hi 6s ease infinite; }
@keyframes pa-win-lo { 0%, 29%, 46%, 100% { background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 .3cqw rgba(255, 255, 255, .28); } 32%, 43% { background: #12B886; box-shadow: inset 0 0 0 .3cqw rgba(255, 255, 255, .25), 0 1.6cqw 3.6cqw -1.4cqw rgba(18, 184, 134, .9); } }
@keyframes pa-win-hi { 0%, 63%, 80%, 100% { background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 .3cqw rgba(255, 255, 255, .28); } 66%, 77% { background: #12B886; box-shadow: inset 0 0 0 .3cqw rgba(255, 255, 255, .25), 0 1.6cqw 3.6cqw -1.4cqw rgba(18, 184, 134, .9); } }
.dm-pay {
  position: absolute; left: 50%; bottom: -3.2cqw; translate: -50% 0; z-index: 5;
  padding: 1cqw 3cqw; border-radius: 2.4cqw; background: #12B886; color: #fff;
  font: 800 4.8cqw/1.1 var(--font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; font-variation-settings: "SHRP" 100;
  box-shadow: inset 0 -.5cqw 0 rgba(0, 70, 50, .35), 0 2cqw 4cqw -1.5cqw rgba(150, 60, 0, .6);
  opacity: 0; animation: dm-pay 6s cubic-bezier(.3, .7, .3, 1.3) infinite;
}
@keyframes dm-pay {
  0%, 29% { left: 26%; opacity: 0; scale: .4; } 33% { left: 26%; opacity: 1; scale: 1.08; } 36%, 44% { left: 26%; opacity: 1; scale: 1; } 48% { left: 26%; opacity: 0; scale: .85; }
  52%, 63% { left: 74%; opacity: 0; scale: .4; } 67% { left: 74%; opacity: 1; scale: 1.08; } 70%, 78% { left: 74%; opacity: 1; scale: 1; } 82%, 100% { left: 74%; opacity: 0; scale: .85; }
}

.pa-bubble { position: absolute; left: var(--x); bottom: -4cqw; width: calc(2.6cqw * var(--s)); height: calc(2.6cqw * var(--s)); border-radius: 50%; border: .3cqw solid rgba(255, 255, 255, .5); background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .45), transparent 60%); animation: pa-rise 6.5s linear var(--d) infinite; opacity: 0; }
@keyframes pa-rise { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: .9; } 85% { opacity: .6; } 100% { transform: translate(2cqw, -60cqw); opacity: 0; } }

.mb {
  position: absolute; right: 5cqw; top: 5cqw; width: 58cqw; padding: 2cqw;
  border-radius: 4.4cqw; background: linear-gradient(#22A3B3, #13798A 85%);
  box-shadow: inset 0 .4cqw 0 rgba(255, 255, 255, .14), inset 0 -.7cqw 0 rgba(0, 0, 0, .3), 0 4.5cqw 7cqw -3.5cqw rgba(0, 30, 40, .6);
}
.mgrid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.1cqw; padding: 1.2cqw;
  border-radius: 2.4cqw; background: #0F6371; perspective: 70cqw;
  box-shadow: 0 0 0 .45cqw #A6F2EC, 0 0 0 1cqw rgba(0, 40, 50, .2), inset 0 .6cqw 1.2cqw rgba(0, 40, 50, .3);
}
.mc { position: relative; aspect-ratio: 1; transform-style: preserve-3d; animation: none 7s cubic-bezier(.3, .7, .3, 1.15) infinite; }
.mc i { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 1.8cqw; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.mc .f { background: linear-gradient(rgba(200, 255, 250, .3), rgba(170, 245, 240, .16)); box-shadow: inset 0 0 0 .25cqw rgba(255, 255, 255, .22), inset 0 -.8cqw 0 rgba(0, 50, 60, .25); }
.mc .b { transform: rotateY(180deg); background: radial-gradient(closest-side, #E4FFFC, #9FEAE4); box-shadow: inset 0 0 0 .3cqw #fff; }
.mc .b svg { width: 84%; height: 84%; }
.mc.is-mine .b { background: rgba(255, 150, 140, .45); box-shadow: inset 0 0 0 .3cqw rgba(255, 200, 190, .7); }
.mc.is-mine .b svg { opacity: .7; }
.mc.p1 { animation-name: mb-p1; }
.mc.p2 { animation-name: mb-p2; }
.mc.p3 { animation-name: mb-p3; }
.mc.p4 { animation-name: mb-p4; }
.mc.is-mine { animation-name: mb-mine; }
@keyframes mb-p1 { 0%, 8% { transform: rotateY(0); } 12%, 88% { transform: rotateY(180deg); } 94%, 100% { transform: rotateY(0); } }
@keyframes mb-p2 { 0%, 19% { transform: rotateY(0); } 23%, 88% { transform: rotateY(180deg); } 94%, 100% { transform: rotateY(0); } }
@keyframes mb-p3 { 0%, 30% { transform: rotateY(0); } 34%, 88% { transform: rotateY(180deg); } 94%, 100% { transform: rotateY(0); } }
@keyframes mb-p4 { 0%, 41% { transform: rotateY(0); } 45%, 88% { transform: rotateY(180deg); } 94%, 100% { transform: rotateY(0); } }
@keyframes mb-mine { 0%, 56% { transform: rotateY(0); } 60%, 88% { transform: rotateY(180deg); } 94%, 100% { transform: rotateY(0); } }
.mb-pay {
  position: absolute; left: 50%; bottom: -3.2cqw; translate: -50% 0; z-index: 5;
  padding: 1cqw 3cqw; border-radius: 2.4cqw; background: #E9FFFC; color: #0B5866;
  font: 800 4.8cqw/1.1 var(--font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; font-variation-settings: "SHRP" 100;
  box-shadow: inset 0 -.5cqw 0 rgba(0, 90, 100, .18), 0 2cqw 4cqw -1.5cqw rgba(0, 30, 40, .6);
  opacity: 0; animation: mb-pay 7s ease infinite;
}
@keyframes mb-pay {
  0%, 8% { opacity: 0; scale: .6; }
  12%, 50% { opacity: 1; scale: 1; background: #E9FFFC; color: #0B5866; box-shadow: inset 0 -.5cqw 0 rgba(0, 90, 100, .18), 0 2cqw 4cqw -1.5cqw rgba(0, 30, 40, .6); }
  54% { scale: 1.12; background: #FFC53D; color: #2B1F00; box-shadow: inset 0 -.5cqw 0 rgba(160, 90, 0, .35), 0 2cqw 4cqw -1.5cqw rgba(0, 30, 40, .6); }
  58%, 88% { opacity: 1; scale: 1; background: #FFC53D; color: #2B1F00; box-shadow: inset 0 -.5cqw 0 rgba(160, 90, 0, .35), 0 2cqw 4cqw -1.5cqw rgba(0, 30, 40, .6); }
  93%, 100% { opacity: 0; scale: .85; background: #FFC53D; color: #2B1F00; }
}
.mb-xs { display: block; height: 1.1em; overflow: hidden; }
.mb-xs b { display: block; height: 1.1em; font-weight: inherit; animation: mb-x 7s ease infinite; }
@keyframes mb-x { 0%, 20% { translate: 0 0; } 22%, 31% { translate: 0 -100%; } 33%, 42% { translate: 0 -200%; } 44%, 100% { translate: 0 -300%; } }
.pa-mines::before { content: ""; position: absolute; inset: 0; background: radial-gradient(45% 60% at 63% 45%, rgba(255, 214, 110, .4), transparent 70%); opacity: 0; animation: mb-glow 7s ease infinite; }
@keyframes mb-glow { 0%, 51% { opacity: 0; } 56%, 84% { opacity: 1; } 92%, 100% { opacity: 0; } }

.sm {
  position: absolute; right: 5cqw; top: 6cqw; width: 61cqw; padding: 1.4cqw 2cqw 2.2cqw;
  border-radius: 4.4cqw; background: linear-gradient(#6E1B2E, #3F0B1B 85%);
  box-shadow: inset 0 .4cqw 0 rgba(255, 255, 255, .16), inset 0 -.7cqw 0 rgba(0, 0, 0, .28), 0 4.5cqw 7cqw -3.5cqw rgba(80, 6, 10, .75);
}
.sm-bulbs { display: flex; justify-content: space-between; align-items: center; height: 3cqw; padding: 0 2.6cqw; margin-bottom: 1.2cqw; }
.sm-bulbs i { width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: #FFE6A6; box-shadow: 0 0 1.4cqw .2cqw rgba(255, 196, 80, .9); opacity: .3; animation: pa-bulb 1.54s ease-in-out calc(var(--i) * .14s) infinite; }
@keyframes pa-bulb { 0%, 55%, 100% { opacity: .3; } 22% { opacity: 1; } }

.sm-win {
  position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden; border-radius: 2.2cqw; background: #FFF5EA;
  box-shadow: 0 0 0 .45cqw #F7B83F, 0 0 0 1cqw rgba(30, 0, 8, .3);
}
.sm-reel { position: relative; z-index: 1; aspect-ratio: 1 / 3; overflow: hidden; }
.sm-reel + .sm-reel::before { content: ""; position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; width: .3cqw; background: rgba(110, 27, 46, .22); }
.sm-strip { display: block; animation: pa-reel 5s var(--d) infinite; }
.sm-strip i { display: block; aspect-ratio: 1; padding: 13%; }
.sm-strip svg { display: block; width: 100%; height: 100%; }
@keyframes pa-reel {
  0%, 6% { transform: translateY(0); animation-timing-function: ease-in-out; }
  9% { transform: translateY(1.4%); animation-timing-function: cubic-bezier(.4, 0, .25, 1); }
  14% { filter: blur(.28cqw); }
  34% { filter: blur(.12cqw); }
  40% { transform: translateY(-82.3%); filter: none; animation-timing-function: ease-out; }
  45%, 100% { transform: translateY(-81.25%); }
}
.sm-glass {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(rgba(80, 10, 28, .3), transparent 26%, transparent 74%, rgba(80, 10, 28, .3)),
              linear-gradient(115deg, rgba(255, 255, 255, .35), transparent 30%);
}
.sm-hit {
  position: absolute; z-index: 0; left: calc(var(--c) * 20%); top: calc(var(--r) * 100% / 3); width: 20%; height: calc(100% / 3);
  border-radius: 1.8cqw; background: radial-gradient(closest-side, rgba(255, 205, 80, .7), rgba(255, 220, 140, .25));
  box-shadow: inset 0 0 0 .45cqw #FFC53D; opacity: 0;
  animation: pa-hit 5s ease calc(var(--c) * .09s) infinite;
}
@keyframes pa-hit { 0%, 58% { opacity: 0; } 61%, 90% { opacity: 1; } 95%, 100% { opacity: 0; } }
.sm-strip .is-win svg { animation: pa-pop 5s ease calc(var(--d) * .6) infinite; }
@keyframes pa-pop { 0%, 58% { scale: 1; } 62% { scale: 1.22; } 66%, 100% { scale: 1; } }
.poster-art .pa .sm-line { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.sm-line polyline {
  fill: none; stroke: #FFD25A; stroke-width: .9; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 .8px rgba(255, 170, 40, .95));
  animation: pa-draw 5s ease infinite;
}
@keyframes pa-draw { 0%, 58% { stroke-dashoffset: 1; opacity: 1; } 68%, 90% { stroke-dashoffset: 0; opacity: 1; } 95%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.sm-pay {
  position: absolute; left: 50%; bottom: -3.2cqw; translate: -50% 0; z-index: 5;
  padding: 1cqw 3cqw; border-radius: 2.4cqw; background: #FFC53D; color: #2B1F00;
  font: 800 4.8cqw/1.1 var(--font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; font-variation-settings: "SHRP" 100;
  box-shadow: inset 0 -.5cqw 0 rgba(160, 90, 0, .35), 0 2cqw 4cqw -1.5cqw rgba(80, 6, 10, .8);
  opacity: 0; animation: pa-pay 5s cubic-bezier(.3, .7, .3, 1.3) infinite;
}
@keyframes pa-pay { 0%, 64% { opacity: 0; scale: .4; } 69% { opacity: 1; scale: 1.08; } 73%, 90% { opacity: 1; scale: 1; } 96%, 100% { opacity: 0; scale: .85; } }
.pa-spark { position: absolute; width: 4cqw; height: 4cqw; background: #FFF6D6; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); opacity: 0; animation: pa-spark 5s ease-out .1s infinite; }
.pa-spark--a { right: 2.4cqw; top: 3cqw; }
.pa-spark--b { right: 64cqw; top: 9cqw; width: 3cqw; height: 3cqw; animation-delay: .3s; }
.pa-spark--c { right: 66cqw; top: 38cqw; width: 2.6cqw; height: 2.6cqw; animation-delay: .45s; }
@keyframes pa-spark { 0%, 62% { opacity: 0; transform: scale(.2) rotate(0); } 68% { opacity: 1; transform: scale(1.2) rotate(45deg); } 84%, 100% { opacity: 0; transform: scale(.4) rotate(90deg); } }

@media (prefers-reduced-motion: reduce) {
  .pa *, .pa::after { animation: none !important; }
  .sm-hit, .sm-pay, .sm-bulbs i, .dm-pay, .dm-mark, .mb-pay { opacity: 1; }
  .mc.p1, .mc.p2, .mc.p3, .mc.p4 { transform: rotateY(180deg); }
  .mb-xs b { translate: 0 -300%; }
  .sm-line polyline { stroke-dashoffset: 0; }
}

.mines-wrap { position: relative; }
.mines-wrap.has-win .mines-grid { filter: brightness(.72) saturate(.85); transition: filter .3s ease; }
.mwin {
  position: absolute; left: 50%; top: 50%; z-index: 5; transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: 6px; min-width: 230px; max-width: calc(100% - 16px); padding: 18px 30px 20px;
  border-radius: 22px; text-align: center; color: #fff; pointer-events: none;
  background: linear-gradient(160deg, rgba(12, 70, 82, .94), rgba(5, 28, 36, .96));
  box-shadow: inset 0 0 0 1.5px rgba(74, 214, 162, .65), 0 24px 60px -16px rgba(0, 0, 0, .7), 0 0 50px -6px rgba(74, 214, 162, .45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.mwin.is-pop { animation: mwin-in .42s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes mwin-in { from { opacity: 0; transform: translate(-50%, -50%) scale(.6); } }
.mwin-ico { display: block; width: 54px; height: 54px; margin-top: -48px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45)); }
.mwin-ico svg { width: 100%; height: 100%; }
.mwin-title { font-size: 14px; font-weight: 600; color: rgba(230, 244, 242, .75); }
.mwin-x { padding: 3px 12px; border-radius: 999px; background: rgba(74, 214, 162, .16); color: #7CF0C5; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mwin-amt { display: flex; align-items: center; gap: 8px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: #8FF5CF; text-shadow: 0 0 24px rgba(74, 214, 162, .45); }
.mwin-amt .coin { width: 26px; height: 26px; }
.mwin-sub { font-size: 13px; color: rgba(230, 244, 242, .65); }
@media (max-width: 640px) {
  .mwin { min-width: 190px; padding: 14px 20px 16px; }
  .mwin-amt { font-size: 24px; }
  .mwin-ico { width: 44px; height: 44px; margin-top: -40px; }
}

.controls--mines .mines-auto { margin-top: -10px; }
.mines-auto .i { width: 20px; height: 20px; }

@media (max-width: 760px) {
  .controls--mines [data-main], .controls--mines .mines-auto { order: -1; }
  .stage--mines .stage-top { order: -2; }
  .stage--mines .mines-steps { order: -1; }
}

.sp {
  --sp-me: color-mix(in oklab, var(--neon-b) 80%, #000);
  --sp-band: linear-gradient(rgba(0, 0, 0, .14), rgba(0, 0, 0, .14)), var(--grad-card);
  position: fixed; right: 24px; bottom: 24px; z-index: 50;
  display: grid; justify-items: end; gap: 14px;
  pointer-events: none;
}
.sp > * { pointer-events: auto; }

.sp-ava {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad-neon); color: #fff; font-weight: 700; font-size: 18px;
}

.sp-panel {
  display: flex; flex-direction: column;
  width: 384px; height: min(620px, calc(100vh - 48px)); overflow: hidden;
  border-radius: var(--r-panel); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-pop);
  transform-origin: 100% 100%; animation: sp-in .24s cubic-bezier(.3, .7, .3, 1);
}
@keyframes sp-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }

.sp-head { display: flex; align-items: center; gap: 12px; padding: 18px 14px 18px 18px; background: var(--sp-band); color: #fff; }
.sp-head .sp-ava { background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.sp-who { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.sp-who b { font-size: 16px; font-weight: 650; }
.sp-who small { display: flex; align-items: center; gap: 7px; font-size: 13px; color: rgba(255, 255, 255, .86); }
.sp-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #5EF0C8; box-shadow: 0 0 0 3px rgba(94, 240, 200, .25); }
.sp-hbtn { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: var(--r-sm); cursor: pointer; background: rgba(255, 255, 255, .14); color: #fff; }
.sp-hbtn:hover { background: rgba(255, 255, 255, .24); }
.sp-hbtn:focus-visible { outline-color: #fff; box-shadow: 0 0 0 5px var(--sea); }

.sp-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 12px; }
.sp-day { align-self: center; padding: 3px 10px; border-radius: 8px; background: var(--bg-2); color: var(--ink-3); font-size: 12.5px; font-weight: 500; }
.sp-msg { display: grid; gap: 4px; max-width: 84%; }
.sp-msg p { padding: 11px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.sp-msg time { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--ink-3); }
.sp-msg time .i { width: 15px; height: 15px; color: var(--sea); }
.sp-msg--agent { align-self: flex-start; }
.sp-msg--agent p { border-bottom-left-radius: 6px; background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.sp-msg--me { align-self: flex-end; justify-items: end; }
.sp-msg--me p { border-bottom-right-radius: 6px; background: var(--sp-me); color: #fff; }
.sp-file { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.sp-file .i { width: 18px; height: 18px; }

.sp-typing { align-self: flex-start; display: flex; gap: 5px; padding: 14px 16px; border-radius: 16px 16px 16px 6px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.sp-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: sp-dot 1.1s infinite ease-in-out; }
.sp-typing i:nth-child(2) { animation-delay: .15s; }
.sp-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes sp-dot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

.sp-topics { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 14px; }
.sp-topics button {
  padding: 9px 14px; border: 0; border-radius: var(--r-sm); cursor: pointer;
  background: var(--surface); color: var(--ink); font-size: 13.5px; font-weight: 600; line-height: 1.25;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.sp-topics button:hover { color: var(--sp-me); box-shadow: inset 0 0 0 1.5px var(--neon-b); }

.sp-form { display: flex; align-items: flex-end; gap: 6px; padding: 10px; border-top: 1px solid var(--line); }
.sp-form textarea {
  flex: 1; min-width: 0; min-height: 46px; max-height: 120px; margin: 0; padding: 12px 14px;
  border: 0; border-radius: var(--r-btn); resize: none; outline: none;
  background: var(--surface-2); color: var(--ink); font: 400 15px/1.45 var(--font);
  box-shadow: inset 0 0 0 1px var(--line);
}
.sp-form textarea::placeholder { color: var(--ink-3); }
.sp-form textarea:focus { box-shadow: inset 0 0 0 1.5px var(--sea); }
.sp-attach, .sp-send { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border: 0; border-radius: var(--r-btn); cursor: pointer; }
.sp-attach { color: var(--ink-2); }
.sp-attach:hover { background: var(--surface-2); color: var(--ink); }
.sp-attach:focus-within { outline: 3px solid var(--sea); outline-offset: -3px; }
.sp-send { background: var(--grad-buoy); color: var(--buoy-ink); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .1); }
.sp-send:disabled { background: var(--surface-2); color: var(--ink-3); box-shadow: none; cursor: default; }
.sp-attach .i, .sp-send .i { width: 22px; height: 22px; }

@supports selector(::-webkit-scrollbar) {
  .sp-log::-webkit-scrollbar, .sp-form textarea::-webkit-scrollbar { width: 10px; }
  .sp-log::-webkit-scrollbar-thumb, .sp-form textarea::-webkit-scrollbar-thumb { border-width: 3px; }
}
@supports not selector(::-webkit-scrollbar) {
  .sp-log, .sp-form textarea { scrollbar-color: var(--scroll) transparent; scrollbar-width: thin; }
}

@media (max-width: 760px) {
  .sp.is-open { inset: 0; z-index: 70; display: block; }
  .sp-panel { width: 100%; height: 100%; border-radius: 0; animation-name: sp-sheet; }
  .sp-head { padding-top: calc(14px + env(safe-area-inset-top)); padding-bottom: 14px; }
  .sp-form { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .sp-form textarea { font-size: 16px; }
}
@keyframes sp-sheet { from { transform: translateY(24px); opacity: 0; } }

.tb-auth { display: none; align-items: center; gap: 8px; }
.tb-auth .btn { min-height: 46px; padding: 10px 22px; }
.is-guest .tb-auth { display: flex; }
.is-guest .wallet, .is-guest .bell-wrap, .is-guest .profile-wrap { display: none; }
.is-guest .tb-right { grid-column: 3; }

.modal--auth { width: min(460px, calc(100% - 24px)); overflow: hidden; }
.auth-top { position: relative; display: flex; align-items: center; gap: 16px; padding: 26px 64px 26px 28px; background: var(--grad-card); color: #fff; overflow: hidden; }
.auth-top::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 130% at 100% 0%, rgba(255, 255, 255, .24), transparent 62%); pointer-events: none; }
.auth-top .brand-mark { width: 50px; height: 50px; border-radius: 14px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
.auth-top h2 { font-size: 24px; color: #fff; }
.auth-top p { margin-top: 4px; font-size: 14px; color: rgba(255, 255, 255, .85); }
.auth-close { position: absolute; top: 12px; right: 12px; z-index: 1; color: #fff; background: transparent; }
.auth-close:hover { background: rgba(255, 255, 255, .16); }
.auth-body { display: grid; gap: 20px; padding: 22px 28px 28px; }
.auth-tabs .tab { flex: 1; }
.auth-form { display: grid; gap: 16px; }
.auth-input { min-height: 54px; }
.auth-input input { font-size: 16px; font-weight: 500; }
.auth-eye { display: grid; place-items: center; min-width: 42px; padding: 0; color: var(--ink-3); }
.auth-eye .i { width: 20px; height: 20px; }
.auth-eye[aria-pressed="true"] { color: var(--sea); }
.auth-err { font-size: 14px; font-weight: 500; color: var(--loss); }
.auth-err:empty { display: none; }
.auth-note { font-size: 13px; color: var(--ink-3); text-align: center; }
#authSubmit, .auth-quick-btn { position: relative; }
:is(#authSubmit, .auth-quick-btn).is-loading [data-label] { visibility: hidden; }
:is(#authSubmit, .auth-quick-btn).is-loading .spinner { opacity: .9; animation: spin .7s linear infinite; }

.auth-quick { display: grid; gap: 16px; }
.auth-quick-btn { background: var(--grad-neon); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 12px 28px -14px color-mix(in oklab, var(--neon-b) 80%, transparent); }
.auth-quick-btn:hover:not(:disabled) { filter: brightness(1.08); }
.auth-quick-btn [data-label] { display: inline-flex; align-items: center; gap: 10px; }
.auth-or { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-3); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-done { display: grid; gap: 12px; }
.auth-done-lead { padding: 12px 14px; border-radius: var(--r-btn); background: color-mix(in oklab, var(--buoy) 18%, var(--surface)); font-size: 14px; color: var(--ink); }
.auth-cred { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 58px; padding: 7px 7px 7px 16px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.auth-cred span { font-size: 14px; color: var(--ink-3); }
.auth-cred b { overflow-wrap: anywhere; font-size: 19px; font-weight: 650; letter-spacing: .03em; font-variant-numeric: tabular-nums; user-select: all; }
.auth-cred .qbtn { display: grid; place-items: center; }
.auth-cred .qbtn .i { width: 20px; height: 20px; }
.auth-done .btn-ghost .i { width: 20px; height: 20px; }

@media (max-width: 760px) {
  .tb-auth { gap: 6px; }
  .tb-auth .btn { min-height: 42px; padding: 8px 14px; font-size: 14px; }
  .auth-top { padding: 22px 58px 22px 20px; }
  .auth-body { padding: 18px 20px 22px; }
}

.avatar-in.has-img { background-size: cover; background-position: center; background-color: var(--bg-2); color: transparent; }
.avatar--xl { width: 84px; height: 84px; padding: 4px; }
.avatar--xl .avatar-in { font-size: 30px; border-width: 3px; }
.set-ava { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 16px; }
.set-ava .wl-err { grid-column: 1 / -1; margin: 0; }
.set-ava-act { display: flex; flex-wrap: wrap; gap: 8px; }
.set-ava-up { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.set-ava-up:focus-within { outline: 2px solid var(--neon-b); outline-offset: 2px; }
.cell-player i.has-img { background-size: cover; background-position: center; color: transparent; }

.wl-method.is-off { opacity: .55; }
.wl-method.is-off:hover { opacity: .8; }
.wl-soon { padding: 3px 9px; border-radius: 999px; background: var(--bg-2); font-size: 12px; color: var(--ink-3); }
.wl-nets button { display: inline-flex; align-items: center; gap: 7px; }
.wl-nets .coin { width: 18px; height: 18px; }
.qr img { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.wl-star { font-size: 18px; line-height: 1; }
.wl-offbox { padding: 28px 12px; }
.wl-reqs { text-align: left; align-items: stretch; }
.wl-reqs h3, .wl-reqs > p { text-align: center; }
.wl-req { display: flex; align-items: flex-start; gap: 10px; padding: 14px 14px 14px 18px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.wl-req pre { flex: 1; min-width: 0; margin: 0; font: 600 15px/1.5 inherit; font-family: inherit; white-space: pre-wrap; word-break: break-word; color: var(--ink); }
.wl-req .qbtn { display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; flex: none; }
.wl-x { margin-left: 6px; width: 26px; height: 26px; border: 0; border-radius: 8px; background: var(--bg-2); color: var(--ink-3); cursor: pointer; font-size: 12px; }
.wl-x:hover { color: var(--loss); background: var(--loss-soft); }

.ref-fhead { row-gap: 10px; }
.ref-fhead .tag { margin-right: auto; }
.ref-ftools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: 100%; }
.ref-search { flex: 1 1 220px; min-height: 46px; max-width: 340px; }
.ref-search .i { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.ref-search input { font-size: 15px; font-weight: 500; }
.ref-pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 12px 16px 16px; font-size: 14px; color: var(--ink-3); }
.ref-pager:empty { display: none; }
.ref-blocked { margin-left: 6px; font-size: 11.5px; padding: 2px 8px; color: var(--ink-3); }
.ref-avail-list { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ref-avail-list:empty { display: none; }
@media (max-width: 640px) {
  .ref-search { max-width: none; }
  .ref-ftools .tabs { width: 100%; }
  .avatar--xl { width: 72px; height: 72px; }
}

.ws-badge { position: fixed; left: 50%; bottom: 20px; z-index: 90; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 12px; transform: translateX(-50%); background: var(--surface); box-shadow: 0 8px 28px rgba(0, 0, 0, .18), inset 0 0 0 1px var(--line); color: var(--ink); font-size: 14px; font-weight: 600; }
.ws-badge[hidden] { display: none; }
.ws-badge i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--buoy); animation: blink 1.2s ease-in-out infinite; }

.auth-social { display: grid; gap: 14px; }
.auth-soc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.auth-soc { justify-content: flex-start; gap: 10px; height: 52px; padding: 0 12px 0 8px; font-weight: 600; }
.auth-soc .soc-mark { width: 34px; height: 34px; border-radius: 10px; }
.auth-soc .soc-mark .i { width: 18px; height: 18px; }
.auth-soc .soc-mark b { font-size: 13px; }

.notif-list { display: grid; max-height: min(460px, calc(100vh - 140px)); overflow-y: auto; overscroll-behavior: contain; }
.notif-list::-webkit-scrollbar { width: 10px; }
.notif-list::-webkit-scrollbar-thumb { border-width: 3px; }
@supports not selector(::-webkit-scrollbar) { .notif-list { scrollbar-color: var(--scroll) transparent; scrollbar-width: thin; } }
button.notif { width: 100%; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.notif-sum { display: block; margin-top: 2px; font-size: 14px; font-weight: 650; }
.notif-empty { padding: 18px 14px 20px; font-size: 14px; color: var(--ink-3); text-align: center; }

.sp-ava .i { width: 22px; height: 22px; }
.sp-dot.is-off { background: #FFD27A; box-shadow: 0 0 0 3px rgba(255, 210, 122, .25); }
.sp-name { font-size: 12.5px; font-weight: 600; color: var(--ink-3); padding-left: 4px; }
.sp-sys { align-self: center; max-width: 92%; padding: 6px 12px; border-radius: 10px; background: var(--bg-2); color: var(--ink-2); font-size: 13px; line-height: 1.4; text-align: center; }
.sp-msg.is-pending { opacity: .65; }
.sp-msg .sp-file { padding: 11px 14px; border-radius: 14px; background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; }
.sp-msg--me .sp-file { background: var(--sp-me); color: #fff; box-shadow: none; }
.sp-img { display: block; max-width: 240px; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.sp-img img { display: block; width: 100%; height: auto; max-height: 260px; object-fit: cover; }
.sp-rate { align-self: center; display: grid; justify-items: center; gap: 6px; padding: 10px 14px; border-radius: 14px; background: var(--bg-2); font-size: 13.5px; color: var(--ink-2); }
.sp-rate div { display: flex; gap: 4px; }
.sp-rate button { width: 34px; height: 34px; border: 0; border-radius: 10px; background: var(--surface); color: var(--ink-3); font-size: 19px; line-height: 1; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.sp-rate div:hover button { color: #F5B400; }
.sp-rate button:hover ~ button { color: var(--ink-3); }
.sp-guest { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 10px 8px; }
.sp-guest input { min-width: 0; height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--surface-2); color: var(--ink); font: inherit; font-size: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.sp-guest input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--sea); }
.sp-err { margin: 0 12px 8px; padding: 8px 12px; border-radius: 10px; background: color-mix(in oklab, var(--loss) 14%, var(--surface)); color: var(--ink); font-size: 13.5px; }
.support-btn, .footer a[data-support] { position: relative; }
.sp-badge { position: absolute; top: -5px; right: -5px; display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--loss); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1; box-shadow: 0 0 0 2px var(--bg); }
.footer a[data-support] .sp-badge { position: static; margin-left: 6px; box-shadow: none; }
@media (max-width: 760px) { .sp-guest input { font-size: 16px; } }

.sp-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-back .i { width: 22px; height: 22px; }
.sp-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px; }
.sp-list-top { display: grid; gap: 10px; margin-bottom: 18px; }
.sp-new { width: 100%; min-height: 54px; }
.sp-new .i { width: 20px; height: 20px; }
.sp-h { margin: 0 0 8px 4px; font-size: 12.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.sp-tickets { display: grid; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.sp-t {
  display: grid; gap: 5px; width: 100%; padding: 13px 14px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--surface); color: var(--ink); font: inherit; text-align: left;
  box-shadow: inset 0 0 0 1px var(--line);
}
.sp-t:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.sp-t.is-unread { box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--neon-b) 55%, transparent); background: color-mix(in oklab, var(--neon-b) 6%, var(--surface)); }
.sp-t.is-closed { background: transparent; }
.sp-t.is-closed .sp-t-top b { color: var(--ink-2); font-weight: 600; }
.sp-t-top { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.sp-t-top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 650; }
.sp-t-top time { flex: none; font-size: 12.5px; color: var(--ink-3); }
.sp-t-prev { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; color: var(--ink-2); }
.sp-t-prev i { font-style: normal; color: var(--ink-3); }
.sp-t.is-unread .sp-t-prev { color: var(--ink); font-weight: 550; }
.sp-t-meta { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; color: var(--ink-3); }
.sp-t-id { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-t-n { margin-left: auto; display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--loss); color: #fff; font-size: 11.5px; font-weight: 700; }
.sp-st { flex: none; padding: 2px 8px; border-radius: 7px; font-size: 11.5px; font-weight: 650; }
.sp-st--open { background: color-mix(in oklab, #F5B400 18%, var(--surface)); color: color-mix(in oklab, #B57F00 85%, var(--ink)); }
.sp-st--answer { background: var(--win-soft); color: var(--win); }
.sp-st--closed { background: var(--bg-2); color: var(--ink-3); }

.sp-new-form { display: grid; gap: 16px; }
.sp-lead { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.sp-fs { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.sp-fl { padding: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.sp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-chip { position: relative; cursor: pointer; }
.sp-chip input { position: absolute; opacity: 0; pointer-events: none; }
.sp-chip span {
  display: block; padding: 9px 14px; border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); font-size: 13.5px; font-weight: 600; line-height: 1.25;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.sp-chip:hover span { box-shadow: inset 0 0 0 1.5px var(--neon-b); }
.sp-chip input:checked + span { background: color-mix(in oklab, var(--neon-b) 12%, var(--surface)); color: var(--sp-me); box-shadow: inset 0 0 0 2px var(--neon-b); }
.sp-chip input:focus-visible + span { outline: 3px solid var(--sea); outline-offset: 2px; }
.sp-new-form textarea {
  width: 100%; min-height: 128px; max-height: 260px; margin: 0; padding: 12px 14px;
  border: 0; border-radius: 14px; resize: vertical; outline: none;
  background: var(--surface-2); color: var(--ink); font: 400 15px/1.45 var(--font);
  box-shadow: inset 0 0 0 1px var(--line);
}
.sp-new-form textarea::placeholder { color: var(--ink-3); }
.sp-new-form textarea:focus { box-shadow: inset 0 0 0 1.5px var(--sea); }
.sp-newfile { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sp-addfile { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 9px 14px; border-radius: var(--r-sm); cursor: pointer; color: var(--ink-2); font-size: 14px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line-strong); }
.sp-addfile:hover { color: var(--ink); background: var(--surface-2); }
.sp-addfile:focus-within { outline: 3px solid var(--sea); outline-offset: 2px; }
.sp-addfile .i { width: 18px; height: 18px; }
.sp-newfile-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; color: var(--ink-2); }
.sp-x { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border: 0; border-radius: 10px; background: none; color: var(--ink-3); cursor: pointer; }
.sp-x:hover { background: var(--surface-2); color: var(--ink); }
.sp-x .i { width: 16px; height: 16px; }
.sp-new-form .sp-guest { padding: 0; }
.sp-submit { width: 100%; min-height: 56px; }
.sp-note { display: flex; align-items: baseline; gap: 9px; margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.sp-note .sp-dot { position: relative; top: -1px; }

.sp-solve { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px 8px 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.sp-solve button { padding: 8px 14px; border: 0; border-radius: var(--r-sm); cursor: pointer; background: var(--win-soft); color: var(--win); font: inherit; font-weight: 650; }
.sp-solve button:hover { box-shadow: inset 0 0 0 1.5px var(--win); }
.sp-solve button:disabled { opacity: .6; cursor: default; }
.sp-bot { display: grid; gap: 8px; padding: 10px 12px 10px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.sp-bot[hidden] { display: none; }
.sp-bot-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-bot-opts button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 0; border-radius: 999px; cursor: pointer; background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-size: 13.5px; font-weight: 600; transition: box-shadow .15s, background .15s; }
.sp-bot-opts button .i { width: 16px; height: 16px; color: var(--ink-3); }
.sp-bot-opts button:hover { box-shadow: inset 0 0 0 1.5px var(--sp-me); }
.sp-bot-opts button:disabled { opacity: .6; cursor: default; box-shadow: inset 0 0 0 1px var(--line); }
.sp-msg--bot p { background: var(--bg-2); }

@supports selector(::-webkit-scrollbar) {
  .sp-body::-webkit-scrollbar, .sp-new-form textarea::-webkit-scrollbar { width: 10px; }
  .sp-body::-webkit-scrollbar-thumb, .sp-new-form textarea::-webkit-scrollbar-thumb { border-width: 3px; }
}
@supports not selector(::-webkit-scrollbar) {
  .sp-body, .sp-new-form textarea { scrollbar-color: var(--scroll) transparent; scrollbar-width: thin; }
}
@media (max-width: 760px) {
  .sp-new-form textarea { font-size: 16px; }
  .sp-solve { padding-bottom: 8px; }
}

.auth-note a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.auth-note a:hover { color: var(--ink); }

.rt { font-size: 15.5px; line-height: 1.62; color: var(--ink-2); }
.rt > * + * { margin-top: 12px; }
.rt p, .rt li { max-width: 68ch; }
.rt b { color: var(--ink); font-weight: 650; }
.rt a { color: var(--sea); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rt a:hover { color: var(--ink); }
.rt ul, .rt ol { display: grid; gap: 6px; padding-left: 0; list-style: none; }
.rt ol { counter-reset: rt; }
.rt li { position: relative; padding-left: 22px; }
.rt ul > li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px; border-radius: 2px; background: var(--line-strong); }
.rt ol > li { counter-increment: rt; padding-left: 28px; }
.rt ol > li::before { content: counter(rt) "."; position: absolute; left: 0; color: var(--ink-3); font-weight: 650; font-variant-numeric: tabular-nums; }
.rt h2 { margin-top: 34px; color: var(--ink); font-size: 21px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; scroll-margin-top: calc(var(--tb-h) + 20px); }
.rt h3 { margin-top: 22px; color: var(--ink); font-size: 17px; font-weight: 650; }
.rt h2 + *, .rt h3 + * { margin-top: 10px; }
.rt > h2:first-child { margin-top: 0; }
.rt-live { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; padding-bottom: 1px; background: linear-gradient(90deg, var(--neon-a), var(--neon-b) 55%, var(--neon-c)) left 100% / 100% 1.5px no-repeat; }
.rt a .rt-live { background: none; }
.rt-unknown { padding: 1px 6px; border-radius: 6px; background: var(--loss-soft); color: var(--loss); font: 600 13px/1.4 var(--font); }
.rt-empty { padding: 12px 16px; border-radius: 12px; background: var(--bg-2); color: var(--ink-3); font-size: 14px; }
.rt-note { font-size: 13.5px; color: var(--ink-3); }
.rt .rt-tablewrap { overflow-x: auto; max-width: 100%; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.rt-table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.4; color: var(--ink); white-space: nowrap; }
.rt-table th, .rt-table td { padding: 11px 16px; text-align: left; }
.rt-table thead th { padding-top: 10px; padding-bottom: 10px; background: var(--surface-2); color: var(--ink-3); font-size: 13px; font-weight: 600; }
.rt-table tbody tr { border-top: 1px solid var(--line); }
.rt-table tbody th { font-weight: 600; }
.rt-table .r { text-align: right; font-variant-numeric: tabular-nums; }
.rt-cell { display: inline-flex; align-items: center; gap: 8px; }
.rt-cell .coin { width: 18px; height: 18px; }
.rt-dot { width: 10px; height: 10px; flex: none; border-radius: 3px; }

.hp-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; margin-bottom: 20px; }
.hp-search { width: min(440px, 100%); min-height: 58px; }
.hp-search input { font-size: 16px; font-weight: 500; }
.hp-search input::-webkit-search-cancel-button { cursor: pointer; }
.hp-chips { display: flex; gap: 8px; margin-bottom: 8px; padding-bottom: 6px; overflow-x: auto; }
.hp-chips[hidden] { display: none; }
.hp-chip { flex: none; min-height: 42px; padding: 9px 16px; border: 0; border-radius: var(--r-sm); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.hp-chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.hp-chip:focus-visible, .hp-q summary:focus-visible, .hp-toc button:focus-visible, .hp-docs a:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; }
.hp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 316px; align-items: start; gap: 32px; }
.hp-main { min-width: 0; }
.hp-found { margin: 8px 0 -8px; font-size: 14px; color: var(--ink-3); }
.hp-sec { margin-top: 28px; scroll-margin-top: calc(var(--tb-h) + 16px); }
.hp-sec h2 { margin: 0 0 12px 4px; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.hp-list { border-radius: var(--r-panel); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.hp-q + .hp-q { border-top: 1px solid var(--line); }
.hp-q { scroll-margin-top: calc(var(--tb-h) + 16px); }
.hp-q summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px 18px 24px; border-radius: var(--r-panel); color: var(--ink); font-size: 16.5px; font-weight: 600; line-height: 1.35; cursor: pointer; list-style: none; }
.hp-q summary::-webkit-details-marker { display: none; }
.hp-q summary:hover { color: var(--sea); }
.hp-q summary .i { width: 20px; height: 20px; flex: none; color: var(--ink-3); transition: transform .18s ease; }
.hp-q[open] summary .i { transform: rotate(180deg); color: var(--ink); }
.hp-q[open] summary { padding-bottom: 8px; }
.hp-q mark { padding: 0 2px; border-radius: 4px; background: color-mix(in oklab, var(--buoy) 45%, transparent); color: inherit; }
.hp-a { padding: 0 24px 22px; }
.hp-q[open] .hp-a { animation: hp-open .2s ease; }
@keyframes hp-open { from { opacity: 0; transform: translateY(-4px); } }
.hp-none, .hp-fail { display: grid; justify-items: start; gap: 14px; margin-top: 28px; padding: 28px; border-radius: var(--r-panel); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.hp-none .page-title { color: var(--ink); }

.hp-side { position: sticky; top: calc(var(--tb-h) + 20px); display: grid; gap: 16px; margin-top: 28px; }
.hp-side:empty { display: none; }
.hp-side > * { padding: 18px 20px; border-radius: var(--r-panel); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.hp-side-h { margin-bottom: 8px; font-size: 16px; font-weight: 700; }
.hp-docs ul, .hp-toc ol { display: grid; margin: 0 -10px; padding: 0; list-style: none; }
.hp-docs a { display: grid; gap: 1px; padding: 9px 10px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; }
.hp-docs a span { font-size: 15px; font-weight: 600; }
.hp-docs a small { font-size: 12.5px; color: var(--ink-3); }
.hp-docs a:hover { background: var(--surface-2); }
.hp-docs a[aria-current="page"] { background: color-mix(in oklab, var(--sea) 10%, var(--surface)); }
.hp-docs a[aria-current="page"] span { color: var(--sea); }
.hp-toc button { display: block; width: 100%; padding: 7px 10px; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-2); font: inherit; font-size: 14px; line-height: 1.35; text-align: left; cursor: pointer; }
.hp-toc button:hover { background: var(--surface-2); color: var(--ink); }
.hp-toc button.is-on { color: var(--ink); font-weight: 650; box-shadow: inset 3px 0 0 var(--neon-b); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.hp-ask { display: grid; gap: 14px; }
.hp-ask p { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.hp-ask b { display: block; margin-bottom: 2px; color: var(--ink); font-size: 16px; }

.hp-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--ink-2); font-weight: 600; text-decoration: none; }
.hp-back:hover { color: var(--ink); }
.hp-back .i { width: 20px; height: 20px; }
.hp-doc { min-width: 0; padding: 32px 40px 40px; border-radius: var(--r-panel); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.hp--doc .hp-side { margin-top: 0; }
.hp-doc-head { margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.hp-doc-head .page-title { max-width: 22ch; line-height: 1.15; }
.hp-ed { margin-top: 10px; font-size: 14px; color: var(--ink-3); }
.rt--doc { font-size: 16px; line-height: 1.68; }

@supports selector(::-webkit-scrollbar) {
  .rt-tablewrap::-webkit-scrollbar, .hp-chips::-webkit-scrollbar { height: 10px; }
  .rt-tablewrap::-webkit-scrollbar-thumb, .hp-chips::-webkit-scrollbar-thumb { border-width: 3px; }
}
@supports not selector(::-webkit-scrollbar) {
  .rt-tablewrap, .hp-chips { scrollbar-color: var(--scroll) transparent; scrollbar-width: thin; }
}
@media (max-width: 1100px) {
  .hp-grid { grid-template-columns: minmax(0, 1fr); }
  .hp-side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
  .hp-toc { display: none; }
}
@media (max-width: 640px) {
  .hp-search input { font-size: 16px; }
  .hp-q summary { padding: 16px 16px 16px 18px; font-size: 16px; }
  .hp-q[open] summary { padding-bottom: 6px; }
  .hp-a { padding: 0 18px 18px; }
  .hp-doc { padding: 22px 18px 26px; }
  .rt-table th, .rt-table td { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hp-q[open] .hp-a { animation: none; }
  .hp-q summary .i { transition: none; }
}
