@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

/* =========================================================
   PUDDLE — design system (per Brand Guidelines v1.0)
   Monochrome void · single cold accent (Puddle Ice)
   Space Grotesk / Inter / Geist Mono
   ========================================================= */

:root {
    /* core palette */
    --void: #000000;
    --surface: #0c0c0e;
    --raised: #1c1c21;
    --white: #ffffff;
    --muted: #9ba1a8;
    --faint: #5b6066;
    --ice: #64d2ff;
    --win: #30d158;
    --loss: #ff1841;

    /* working aliases */
    --bg: var(--void);
    --bg-soft: var(--surface);
    --panel: rgba(255, 255, 255, 0.035);
    --panel-hover: rgba(255, 255, 255, 0.06);
    --text: var(--white);
    --text-muted: var(--muted);
    --text-faint: var(--faint);
    --accent: var(--ice);
    --accent-2: var(--ice);

    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);

    --font-main: Inter, Arial, Helvetica, sans-serif;
    --font-display: "Space Grotesk", Inter, sans-serif;
    --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;

    --sidebar-w: 256px;
    --sidebar-collapsed: 74px;
    --content-max: 1120px;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 26px;

    --speed: 0.28s;

    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    --glass-hi: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background:
        radial-gradient(circle at 50% -10%, rgba(100, 210, 255, 0.05), transparent 45%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

::selection {
    background: var(--ice);
    color: #000;
}

h1,
h2,
h3,
.section-title,
.modal h3,
.feature h3,
.wordmark {
    font-family: var(--font-display);
}

/* mono for numerals + technical labels */
.chip span,
.stat-ico,
.feature-number,
.account-val,
.visual-label {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

.nav-section-label,
.section-kicker,
.eyebrow,
.game-tag,
.sidebar-note,
.hero-note,
.field label,
.account-key,
.nav-badge {
    font-family: var(--font-mono);
}

/* =========================================================
   APP LAYOUT (sidebar + main)
   ========================================================= */

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    background: var(--surface);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    padding: 22px 16px;
    z-index: 120;
    transition: transform var(--speed) ease, width var(--speed) ease,
        padding var(--speed) ease;
}

.main {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    transition: margin-left var(--speed) ease;
}

.main-inner {
    width: min(92%, var(--content-max));
    margin: 0 auto;
    padding: 46px 0 90px;
}

/* ---- collapsed state (desktop): clean icon rail ---- */
html.nav-collapsed .sidebar {
    width: var(--sidebar-collapsed);
    padding-left: 12px;
    padding-right: 12px;
}

html.nav-collapsed .main {
    margin-left: var(--sidebar-collapsed);
}

html.nav-collapsed .sidebar-head {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 6px 0 20px;
}

html.nav-collapsed .collapse-btn {
    position: static;
}

html.nav-collapsed .wordmark,
html.nav-collapsed .nav-label,
html.nav-collapsed .nav-section-label,
html.nav-collapsed .nav-badge,
html.nav-collapsed .sidebar-note,
html.nav-collapsed .auth-login-btn,
html.nav-collapsed .auth-register-btn {
    display: none;
}

html.nav-collapsed .logout-btn {
    padding: 0;
}

html.nav-collapsed .nav-item {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

html.nav-collapsed .nav-item.active::before {
    display: none;
}

html.nav-collapsed .deposit-btn {
    padding: 0;
}

/* =========================================================
   BRAND — wordmark + monogram tile
   ========================================================= */

.sidebar-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 42px 20px 10px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wordmark {
    font-size: 20px;
}

.logo-tile {
    display: none;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 11px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--line);
    backdrop-filter: blur(6px);
    place-items: center;
    position: relative;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--white);
}

html.nav-collapsed .logo-tile {
    display: grid;
}

.logo-dot {
    position: absolute;
    right: 8px;
    bottom: 10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ice);
}

.wordmark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 19px;
    letter-spacing: -0.03em;
    color: var(--white);
    line-height: 1;
}

.wm-dot {
    color: var(--ice);
}

/* =========================================================
   SIDEBAR — nav
   ========================================================= */

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nav-section-label {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-faint);
    padding: 18px 12px 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    position: relative;
    transition: background var(--speed), color var(--speed);
}

.nav-item:hover {
    background: var(--panel);
    color: var(--text);
}

.nav-item.active {
    background: var(--panel);
    color: var(--text);
}

.nav-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    border-radius: 0 3px 3px 0;
    background: var(--ice);
}

.nav-ico {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-badge {
    margin-left: auto;
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ice);
    border: 1px solid rgba(100, 210, 255, 0.35);
    border-radius: 999px;
    padding: 2px 7px;
}

/* nav items rendered as <button> */
button.nav-item {
    background: transparent;
    border: none;
    width: 100%;
    cursor: pointer;
    font: inherit;
    font-weight: 500;
}

/* =========================================================
   SIDEBAR — footer
   ========================================================= */

.sidebar-footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-note {
    font-size: 11px;
    color: var(--text-faint);
    text-align: center;
    margin-top: 2px;
}

/* =========================================================
   BUTTONS
   Primary = cyan outline (no fill). Neutral = glass.
   Filled color is reserved for money moments only.
   ========================================================= */

.btn {
    min-height: 44px;
    padding: 0 18px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: transform var(--speed), background var(--speed),
        border-color var(--speed), color var(--speed);
}

.btn-block {
    width: 100%;
}

.btn-ico {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    flex-shrink: 0;
}

.btn-primary {
    background: transparent;
    border-color: var(--ice);
    color: var(--ice);
}

.btn-primary:hover {
    background: rgba(100, 210, 255, 0.1);
    border-color: var(--ice);
}

.btn-secondary {
    background: var(--panel);
    border-color: var(--line);
    color: var(--text);
    backdrop-filter: blur(20px);
}

.btn-secondary:hover {
    background: var(--panel-hover);
    border-color: var(--line-strong);
}

/* =========================================================
   MOBILE menu toggle + backdrop
   ========================================================= */

.menu-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 140;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(12, 12, 14, 0.85);
    backdrop-filter: blur(12px);
    color: var(--text);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.menu-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--speed);
    z-index: 110;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    padding: 34px 0 70px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ice);
    box-shadow: 0 0 18px rgba(100, 210, 255, 0.55);
}

h1 {
    font-size: clamp(48px, 5.4vw, 88px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.045em;
    max-width: 640px;
}

.gold {
    color: var(--ice);
}

.hero-copy {
    max-width: 540px;
    margin-top: 26px;
    color: var(--text-muted);
    font-size: 17px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero-note {
    margin-top: 18px;
    font-size: 12px;
    color: var(--text-faint);
}

/* =========================================================
   HERO VISUAL
   ========================================================= */

.visual-shell {
    min-height: 460px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
    box-shadow: var(--shadow), var(--glass-hi);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.visual-shell::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(100, 210, 255, 0.12);
    filter: blur(80px);
    top: -80px;
    right: -70px;
}

.table-ring {
    position: absolute;
    width: 290px;
    height: 290px;
    border-radius: 50%;
    border: 1px solid rgba(100, 210, 255, 0.3);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.table-ring::before,
.table-ring::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    inset: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.table-ring::after {
    inset: 56px;
    border-color: rgba(100, 210, 255, 0.18);
}

.chip {
    position: absolute;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    border: 1px solid;
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.4);
}

.chip span {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px dashed currentColor;
    font-size: 17px;
}

.chip-gold {
    color: var(--ice);
    background: rgba(100, 210, 255, 0.08);
    border-color: rgba(100, 210, 255, 0.4);
    left: 20%;
    top: 26%;
    animation: floatA 5s ease-in-out infinite;
}

.chip-green {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--line-strong);
    right: 16%;
    bottom: 20%;
    animation: floatB 6s ease-in-out infinite;
}

.mini-card {
    position: absolute;
    width: 124px;
    height: 172px;
    border-radius: 16px;
    background: #f2f2f4;
    color: #000;
    padding: 15px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 27px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.card-a {
    left: 50%;
    top: 50%;
    transform: translate(-68%, -46%) rotate(-8deg);
}

.card-k {
    left: 50%;
    top: 50%;
    transform: translate(-22%, -52%) rotate(8deg);
    background: #141418;
    color: var(--ice);
    border: 1px solid rgba(100, 210, 255, 0.25);
}

.visual-label {
    position: absolute;
    left: 24px;
    bottom: 22px;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* =========================================================
   STAT ROW
   ========================================================= */

.stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 10px;
}

.stat-pill {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 18px;
    background: var(--panel);
    box-shadow: var(--glass-hi);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-ico {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--line-strong);
    display: grid;
    place-items: center;
    color: var(--ice);
    font-size: 12px;
    flex-shrink: 0;
}

.stat-pill .stat-txt {
    font-size: 13px;
    color: var(--text-muted);
}

/* =========================================================
   SECTIONS / PAGE HEAD
   ========================================================= */

.block {
    padding: 70px 0 0;
}

.section-head,
.page-head {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: end;
    margin-bottom: 36px;
}

.page-head {
    padding-top: 6px;
}

.section-kicker {
    color: var(--ice);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(32px, 3.6vw, 52px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.section-copy {
    max-width: 440px;
    color: var(--text-muted);
    font-size: 15px;
}

/* =========================================================
   GAME CARDS
   ========================================================= */

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

.game-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--panel);
    box-shadow: var(--glass-hi);
    backdrop-filter: blur(20px);
    transition: transform var(--speed), border-color var(--speed),
        background var(--speed);
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: var(--line-strong);
    background: var(--panel-hover);
}

.game-art {
    aspect-ratio: 4 / 3;
    position: relative;
    background: linear-gradient(135deg, rgba(100, 210, 255, 0.08), rgba(255, 255, 255, 0.02));
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.game-art::before {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.game-art::after {
    content: attr(data-symbol);
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--ice);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 58px;
}

.game-info {
    padding: 17px;
}

.game-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}

.game-name {
    font-weight: 600;
    font-size: 15px;
}

.game-tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.game-meta {
    margin-top: 7px;
    font-size: 12px;
    color: var(--text-muted);
}

/* =========================================================
   FEATURE SPLIT
   ========================================================= */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.feature {
    min-height: 320px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 34px;
    background: var(--panel);
    box-shadow: var(--glass-hi);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.feature h3 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.feature p {
    color: var(--text-muted);
    max-width: 450px;
}

.feature-number {
    position: absolute;
    right: 24px;
    bottom: 12px;
    font-size: 96px;
    line-height: 1;
    letter-spacing: -0.06em;
    color: rgba(255, 255, 255, 0.03);
    font-weight: 700;
}

.feature-line {
    width: 58px;
    height: 1px;
    background: var(--ice);
    margin: 20px 0 26px;
}

/* =========================================================
   GENERIC PANEL / PLACEHOLDER
   ========================================================= */

.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.panel-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 24px;
    background: var(--panel);
    box-shadow: var(--glass-hi);
    backdrop-filter: blur(20px);
    transition: border-color var(--speed), background var(--speed);
}

.panel-card:hover {
    border-color: var(--line-strong);
    background: var(--panel-hover);
}

.panel-card h4 {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.panel-card p {
    color: var(--text-muted);
    font-size: 14px;
}

.tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ice);
    margin-bottom: 14px;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ice);
    box-shadow: 0 0 12px rgba(100, 210, 255, 0.7);
    animation: pulse 1.8s ease-in-out infinite;
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
    border-top: 1px solid var(--line);
    margin-top: 80px;
    padding: 30px 0 10px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
}

.footer-left p,
.footer-right {
    color: var(--text-muted);
    font-size: 12px;
}

.footer-left p {
    margin-top: 10px;
    max-width: 680px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =========================================================
   REVEAL + KEYFRAMES
   ========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes floatA {
    0%, 100% { transform: translateY(0) rotate(-6deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes floatB {
    0%, 100% { transform: translateY(0) rotate(7deg); }
    50% { transform: translateY(14px) rotate(-2deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1040px) {
    .hero-grid,
    .split {
        grid-template-columns: 1fr;
    }

    .hero-grid { gap: 40px; }
    .stat-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: 0 0 80px rgba(0, 0, 0, 0.6);
    }

    body.nav-open .sidebar {
        transform: translateX(0);
    }

    body.nav-open .nav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .main {
        margin-left: 0;
    }

    .main-inner {
        padding: 86px 0 80px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .collapse-btn {
        display: none;
    }

    html.nav-collapsed .main {
        margin-left: 0;
    }
}

@media (max-width: 560px) {
    h1 { font-size: clamp(42px, 13vw, 64px); }
    .stat-row { grid-template-columns: 1fr; }
    .feature,
    .panel-card { padding: 24px; }
    .footer-grid { grid-template-columns: 1fr; }
    .block { padding-top: 54px; }
}

/* =========================================================
   COLLAPSE BUTTON (4 lines)
   ========================================================= */

.collapse-btn {
    position: absolute;
    top: 4px;
    right: 2px;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--speed), border-color var(--speed), background var(--speed);
}

.collapse-btn:hover {
    color: var(--text);
    border-color: var(--line-strong);
    background: var(--panel);
}

.collapse-btn svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
}

/* =========================================================
   AUTH — visibility states
   ========================================================= */

.logout-btn {
    display: none;
}

.nav-item.myaccount {
    display: none;
}

.support-open {
    display: none;
}

html.is-authed .support-open {
    display: flex;
}

html.is-authed .auth-login-btn,
html.is-authed .auth-register-btn {
    display: none;
}

html.is-authed .logout-btn {
    display: inline-flex;
}

html.is-authed .nav-item.myaccount {
    display: flex;
}

/* =========================================================
   AUTH — modal popup
   ========================================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    width: min(100%, 400px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow), var(--glass-hi);
    transform: translateY(12px);
    transition: transform 0.22s ease;
    position: relative;
}

.modal-overlay.open .modal {
    transform: none;
}

.modal h3 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.modal-sub {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 22px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: grid;
    place-items: center;
    transition: color var(--speed), border-color var(--speed);
}

.modal-close:hover {
    color: var(--text);
    border-color: var(--line-strong);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.field input {
    height: 44px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--raised);
    color: var(--text);
    outline: none;
    transition: border-color var(--speed);
}

.field input:focus {
    border-color: var(--ice);
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}

.checkbox input {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--raised);
    cursor: pointer;
    position: relative;
    transition: background var(--speed), border-color var(--speed);
}

.checkbox input:hover {
    border-color: var(--muted);
}

.checkbox input:checked {
    background: var(--ice);
    border-color: var(--ice);
}

.checkbox input:checked::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2.5px;
    width: 4px;
    height: 8px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.auth-error {
    color: var(--loss);
    font-size: 13px;
}

.auth-switch {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

.auth-switch a {
    color: var(--ice);
    cursor: pointer;
}

/* =========================================================
   MY ACCOUNT
   ========================================================= */

.account-box {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
    box-shadow: var(--glass-hi);
    backdrop-filter: blur(20px);
    overflow: hidden;
    max-width: 520px;
}

.account-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--line);
}

.account-row:last-child {
    border-bottom: none;
}

.account-key {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.account-val {
    color: var(--text);
    font-weight: 500;
    word-break: break-all;
    text-align: right;
}

.account-empty {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    color: var(--text-muted);
}

/* =========================================================
   SUPPORT CHATBOX
   ========================================================= */

.support-box {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 190;
    width: 340px;
    max-width: calc(100vw - 32px);
    height: 460px;
    max-height: calc(100vh - 44px);
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow), var(--glass-hi);
    overflow: hidden;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.support-box.open {
    opacity: 1;
    transform: none;
}

.support-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.support-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
    font-size: 14px;
}

.support-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ice);
    box-shadow: 0 0 10px rgba(100, 210, 255, 0.6);
}

.support-close {
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 17px;
    display: grid;
    place-items: center;
    transition: color var(--speed), border-color var(--speed);
}

.support-close:hover {
    color: var(--text);
    border-color: var(--line-strong);
}

.support-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
}

.support-body::-webkit-scrollbar {
    width: 8px;
}

.support-body::-webkit-scrollbar-track {
    background: transparent;
}

.support-body::-webkit-scrollbar-thumb {
    background: var(--line-strong);
    border-radius: 8px;
    border: 2px solid var(--surface);
}

.support-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.28);
}

.support-msg {
    max-width: 80%;
    padding: 10px 13px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
}

.support-msg.bot {
    align-self: flex-start;
    background: var(--raised);
    border: 1px solid var(--line);
    border-bottom-left-radius: 5px;
}

.support-msg.user {
    align-self: flex-end;
    background: rgba(100, 210, 255, 0.1);
    border: 1px solid rgba(100, 210, 255, 0.3);
    border-bottom-right-radius: 5px;
}

.support-msg.has-img {
    padding: 5px;
    max-width: 70%;
}

.support-msg img {
    max-width: 100%;
    border-radius: 10px;
    display: block;
}

.support-status {
    display: block;
    margin-top: 5px;
    font-size: 10px;
    letter-spacing: 0.04em;
    color: var(--text-faint);
    text-align: right;
}

.support-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--line);
}

.support-input input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 42px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--raised);
    color: var(--text);
    outline: none;
    transition: border-color var(--speed);
}

.support-input input[type="text"]:focus {
    border-color: var(--ice);
}

.support-attach,
.support-send {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--raised);
    color: var(--text-muted);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: color var(--speed), border-color var(--speed), background var(--speed);
}

.support-send {
    color: var(--text);
}

.support-attach:hover,
.support-send:hover {
    color: var(--text);
    border-color: var(--line-strong);
    background: var(--panel-hover);
}

.support-attach svg,
.support-send svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 560px) {
    .support-box {
        right: 12px;
        left: 12px;
        bottom: 12px;
        width: auto;
    }
}

/* =========================================================
   SPLASH / PRELOADER
   ========================================================= */

.splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    display: grid;
    place-items: center;
    animation: splashOut 0.45s ease 2.5s forwards;
}

.no-splash .splash {
    display: none;
}

.splash-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.splash-scene {
    position: relative;
    width: 170px;
    height: 118px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.poodle {
    width: 100px;
    height: auto;
    position: relative;
    z-index: 2;
    transform-origin: 50% 100%;
    animation: poodleJump 2.1s cubic-bezier(0.3, 0.7, 0.3, 1) both;
}

.puddle {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 124px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(100, 210, 255, 0.3), rgba(100, 210, 255, 0.05) 68%, transparent);
}

.ripple {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    border: 1px solid rgba(100, 210, 255, 0.55);
    border-radius: 50%;
    width: 12px;
    height: 5px;
    opacity: 0;
    animation: ripple 1s ease-out 0.95s both;
}

.ripple.r2 {
    animation-delay: 1.62s;
}

.splash-word {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 26px;
    letter-spacing: -0.03em;
    color: #fff;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.3s both;
}

.splash-ring {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--ice);
    animation: spin 0.9s linear infinite;
}

@keyframes poodleJump {
    0% { transform: translateY(0) rotate(0); }
    18% { transform: translateY(-50px) rotate(-7deg); }
    38% { transform: translateY(0) rotate(0); }
    54% { transform: translateY(-26px) rotate(5deg); }
    72%, 100% { transform: translateY(0) rotate(0); }
}

@keyframes ripple {
    0% { width: 12px; height: 5px; opacity: 0.75; }
    100% { width: 132px; height: 34px; opacity: 0; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes splashOut {
    to { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* =========================================================
   WELCOME + VIP BUBBLE (home, logged-in)
   ========================================================= */

.welcome-block {
    display: none;
    margin-bottom: 26px;
}

html.is-authed .welcome-block {
    display: block;
}

html.is-authed .hero .eyebrow {
    display: none;
}

.welcome-hi {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--white);
    margin-bottom: 14px;
}

.welcome-name {
    color: var(--ice);
}

.vip-bubble {
    display: inline-block;
    min-width: 300px;
    max-width: 360px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 15px 18px;
    backdrop-filter: blur(20px);
    box-shadow: var(--glass-hi);
}

.vip-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 11px;
}

.vip-rank {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
}

.vip-rank::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background: var(--ice);
    box-shadow: 0 0 10px rgba(100, 210, 255, 0.6);
}

.vip-xp {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.vip-track {
    height: 6px;
    border-radius: 999px;
    background: var(--raised);
    overflow: hidden;
}

.vip-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(100, 210, 255, 0.55), var(--ice));
    box-shadow: 0 0 12px rgba(100, 210, 255, 0.5);
}

.vip-next {
    margin-top: 10px;
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-faint);
}

.vip-next span {
    color: var(--ice);
}

/* =========================================================
   REDESIGN v2 — strict PUDDLE Style Guide
   Void canvas · hairline glass · one cold accent · no glow
   ========================================================= */

body { background: var(--void); }

/* no glow / no shadows anywhere */
.eyebrow-dot, .live-dot, .support-dot, .vip-rank::before, .vip-fill { box-shadow: none; }
.vip-fill { background: var(--ice); }
.visual-shell::before { display: none; }
.chip, .mini-card, .visual-shell, .modal, .support-box { box-shadow: var(--glass-hi); }

/* type scale */
h1 { font-weight: 700; font-size: clamp(48px, 5.6vw, 84px); line-height: 1; letter-spacing: -0.045em; }
.page-head .section-title { font-size: clamp(36px, 4vw, 48px); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; }
.block .section-title, h2.section-title { font-size: clamp(26px, 2.6vw, 30px); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; }
.hero-copy, .section-copy { line-height: 1.6; }

/* sidebar: flat surface, quieter active state */
.sidebar { background: var(--surface); }
.nav-item.active { background: var(--panel); box-shadow: var(--glass-hi); }
.nav-item { border: 1px solid transparent; }
.nav-item.active { border-color: var(--line); }
.nav-section-label { color: var(--faint); letter-spacing: .16em; }

/* HERO — editorial, left aligned, generous space */
.hero { padding: 24px 0 56px; }
.hero-grid { grid-template-columns: 1.15fr .85fr; gap: 72px; }
.eyebrow { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); backdrop-filter: blur(20px); box-shadow: var(--glass-hi); font-size: 11px; letter-spacing: .14em; }
.hero-note { padding-top: 18px; border-top: 1px solid var(--line); margin-top: 34px; max-width: 540px; letter-spacing: .04em; }
.hero-actions { margin-top: 30px; }
.btn { min-height: 46px; border-radius: 12px; }

/* visual: flat glass table with hairline rings */
.visual-shell { min-height: 440px; border-radius: 24px; background: var(--surface); backdrop-filter: none; }
.visual-shell::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(255,255,255,.04), transparent 38%); pointer-events:none; }
.table-ring { border-color: var(--line-strong); }
.table-ring::before { border-color: var(--line); }
.table-ring::after { border-color: rgba(100,210,255,.25); }
.chip { backdrop-filter: none; box-shadow: none; }
.chip-gold { background: var(--ice); color: #000; border-color: var(--ice); }
.chip-green { background: var(--raised); color: var(--white); border-color: var(--line-strong); }
.mini-card { box-shadow: none; border-radius: 14px; }
.card-a { background: var(--white); }
.card-k { background: var(--raised); color: var(--white); border: 1px solid var(--line-strong); }
.visual-label { color: var(--muted); font-size: 11px; letter-spacing: .1em; }

/* STAT ROW — one segmented glass strip */
.stat-row { gap: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: var(--glass-hi); backdrop-filter: blur(20px); overflow: hidden; margin-top: 0; }
.stat-pill { border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; padding: 22px 24px; border-right: 1px solid var(--line); }
.stat-pill:last-child { border-right: 0; }
.stat-ico { border: 0; width: auto; height: auto; color: var(--ice); font-size: 13px; }
.stat-pill .stat-txt { color: var(--white); font-weight: 500; font-size: 14px; }

/* sections */
.block { padding-top: 88px; }
.section-head, .page-head { padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.section-kicker { color: var(--muted); font-size: 11px; letter-spacing: .18em; display: flex; align-items: center; gap: 10px; }
.section-kicker::before { content: ""; width: 14px; height: 1px; background: var(--ice); }

/* GAME CARDS — flat raised art plate, quiet hover */
.game-card { background: var(--surface); backdrop-filter: none; border-radius: 18px; }
.game-card:hover { transform: none; border-color: var(--ice); background: var(--surface); }
.game-art { background: var(--raised); aspect-ratio: 16 / 11; border-bottom: 1px solid var(--line); }
.game-art::before { width: 120px; height: 120px; border-color: var(--line-strong); }
.game-art::after { color: var(--white); font-size: 52px; }
.game-card:hover .game-art::after { color: var(--ice); }
.game-info { padding: 18px; }
.game-tag { border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px 9px; color: var(--muted); letter-spacing: .1em; }
.game-name { font-family: var(--font-display); font-size: 16px; letter-spacing: -0.01em; }

/* FEATURES */
.feature { background: var(--surface); backdrop-filter: none; border-radius: 22px; min-height: 280px; }
.feature h3 { font-size: 30px; font-weight: 500; letter-spacing: -0.02em; }
.feature-number { top: 26px; right: 28px; bottom: auto; font-size: 13px; letter-spacing: .1em; color: var(--faint); font-weight: 500; }

/* PANELS */
.panel-card { background: var(--surface); backdrop-filter: none; border-radius: 18px; padding: 26px; min-height: 170px; }
.panel-card:hover { background: var(--surface); border-color: var(--ice); }
.panel-card h4 { font-family: var(--font-display); font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.tagline { color: var(--muted); font-family: var(--font-mono); letter-spacing: .14em; }
.tagline::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ice); }
.tagline:has(.live-dot)::before { display: none; }

/* VIP bubble + account */
.vip-bubble { background: var(--surface); }
.vip-track { height: 4px; }
.account-box { background: var(--surface); backdrop-filter: none; border-radius: 18px; }

/* modal + support: flat surface */
.modal, .support-box { background: var(--surface); }
.support-msg.user { background: transparent; border-color: var(--ice); }

footer { margin-top: 96px; }
.footer-left p { color: var(--muted); }

@media (max-width: 1040px) { .hero-grid { gap: 40px; } }
@media (max-width: 860px) {
  .stat-pill { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-pill:last-child { border-bottom: 0; }
}

/* =========================================================
   WALLET — balance bar, deposit popup, deposit toasts,
   transactions (added for payment integration)
   ========================================================= */

/* top centered balance bar (only when signed in) */
.wallet-topbar {
    position: fixed;
    top: 14px;
    left: var(--sidebar-w);
    right: 0;
    display: none;
    justify-content: center;
    pointer-events: none;
    z-index: 110;
    transition: left var(--speed) ease;
}
html.is-authed .wallet-topbar { display: flex; }
html.nav-collapsed .wallet-topbar { left: var(--sidebar-collapsed); }

.balance-pill {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 16px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow), var(--glass-hi);
    backdrop-filter: blur(20px);
}
.balance-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--win);
    box-shadow: 0 0 0 4px rgba(48, 209, 88, 0.15);
}
.balance-label {
    font-family: var(--font-mono);
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--text-muted);
}
.balance-val {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 16px; font-weight: 600; color: var(--text);
}
.balance-cur { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.balance-deposit {
    display: inline-flex; align-items: center; gap: 6px;
    margin-left: 6px;
    height: 34px; padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--ice);
    background: transparent; color: var(--ice);
    font-weight: 600; font-size: 13px; cursor: pointer;
    transition: background var(--speed);
}
.balance-deposit:hover { background: rgba(100, 210, 255, 0.1); }
.balance-deposit .btn-ico { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }

/* push page content below the fixed bar when signed in */
html.is-authed .main-inner { padding-top: 84px; }

@media (max-width: 860px) {
    .wallet-topbar { left: 0; top: 10px; padding: 0 64px; }
    .balance-pill { padding: 6px 6px 6px 12px; gap: 7px; }
    .balance-label { display: none; }
    html.is-authed .main-inner { padding-top: 72px; }
}

/* deposit popup (reuses .modal-overlay / .modal) */
.deposit-modal { width: min(100%, 420px); }
.dep-body { margin-top: 18px; }
.dep-loading { color: var(--text-muted); text-align: center; padding: 30px 0; }
.dep-qr {
    background: #fff; border-radius: var(--radius-md);
    padding: 12px; width: 200px; margin: 0 auto 18px;
}
.dep-qr img { width: 100%; display: block; }
.dep-field { display: flex; flex-direction: column; gap: 8px; }
.dep-field label {
    font-family: var(--font-mono);
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text-muted);
}
.dep-addr {
    font-family: var(--font-mono);
    font-size: 13px; word-break: break-all; line-height: 1.5;
    background: var(--raised); border: 1px solid var(--line);
    border-radius: var(--radius-sm); padding: 12px;
}
.dep-status {
    display: flex; align-items: center; gap: 10px;
    margin-top: 16px; padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line); background: var(--panel);
    font-size: 14px; color: var(--text-muted);
}
.dep-status.ok { border-color: rgba(48, 209, 88, 0.4); color: var(--win); }
.dep-status.err { border-color: rgba(255, 24, 65, 0.4); color: var(--loss); }
.dep-spin {
    width: 14px; height: 14px; flex: none;
    border: 2px solid var(--line-strong); border-top-color: var(--ice);
    border-radius: 50%; animation: dep-rot 0.8s linear infinite;
}
@keyframes dep-rot { to { transform: rotate(360deg); } }
.dep-hint { margin-top: 12px; font-size: 12px; color: var(--text-faint); line-height: 1.5; }

/* deposit toasts — slide in from the LEFT */
.deposit-toasts {
    position: fixed;
    left: 20px;
    bottom: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 210;
    pointer-events: none;
}
.deposit-toast {
    display: flex; align-items: center; gap: 14px;
    min-width: 260px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid rgba(48, 209, 88, 0.45);
    box-shadow: var(--shadow), var(--glass-hi);
    backdrop-filter: blur(20px);
    transform: translateX(-130%);
    opacity: 0;
    transition: transform 0.42s cubic-bezier(.2,.9,.2,1), opacity 0.42s ease;
}
.deposit-toast.show { transform: translateX(0); opacity: 1; }
.dt-ico {
    width: 38px; height: 38px; flex: none;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(48, 209, 88, 0.12);
}
.dt-ico svg { width: 20px; height: 20px; stroke: var(--win); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dt-title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-family: var(--font-mono); }
.dt-amount { font-size: 18px; font-weight: 700; color: var(--win); font-family: var(--font-mono); }
.dt-tx { font-size: 11px; color: var(--text-faint); font-family: var(--font-mono); }

/* transactions list (myaccount) */
.tx-section { margin-top: 40px; }
.tx-title { font-family: var(--font-display); font-size: 22px; margin-bottom: 16px; letter-spacing: -0.02em; }
.tx-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    align-items: center;
}
.tx-row:last-child { border-bottom: none; }
.tx-amt { color: var(--win); font-family: var(--font-mono); font-weight: 600; }
.tx-id { font-family: var(--font-mono); font-size: 13px; }
.tx-id a { color: var(--ice); }
.tx-time { color: var(--text-muted); font-size: 12px; text-align: right; }
.tx-empty { padding: 22px; color: var(--text-muted); }
@media (max-width: 640px) {
    .tx-row { grid-template-columns: 1fr 1fr; }
    .tx-time { display: none; }
}

/* =========================================================
   WALLET v2 — redesigned balance bar, coin chips, coin picker
   ========================================================= */

.wallet-bar {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 7px 7px 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(28,28,33,0.92), rgba(12,12,14,0.92));
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow), var(--glass-hi);
    backdrop-filter: blur(22px);
    max-width: calc(100vw - 40px);
    overflow-x: auto;
    scrollbar-width: none;
}
.wallet-bar::-webkit-scrollbar { display: none; }

.wallet-coins { display: inline-flex; align-items: center; gap: 4px; }
.wc {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 6px;
    border-radius: 999px;
    white-space: nowrap;
    transition: background var(--speed);
}
.wc:hover { background: var(--panel); }
.wc-amt {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 15px; font-weight: 600; color: var(--text);
}
.wc-tic {
    font-family: var(--font-mono);
    font-size: 11px; color: var(--text-faint);
    text-transform: uppercase; letter-spacing: 0.06em;
}
.wc-sep { width: 1px; height: 22px; background: var(--line); margin: 0 2px; }
.wc-empty .wc-amt { color: var(--text-muted); }

/* coin chip (brand-coloured typographic badge, not an official logo) */
.coin-chip {
    width: 24px; height: 24px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--cc, #2a333f);
    color: #fff;
    font-weight: 700; font-size: 14px; line-height: 1;
    font-family: var(--font-display);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}
.coin-chip.lg { width: 36px; height: 36px; font-size: 19px; }

.wallet-deposit {
    display: inline-flex; align-items: center; gap: 6px;
    height: 36px; padding: 0 16px;
    border-radius: 999px;
    border: 0;
    background: var(--ice); color: #06222e;
    font-weight: 700; font-size: 13px; cursor: pointer;
    transition: filter var(--speed), transform var(--speed);
}
.wallet-deposit:hover { filter: brightness(1.08); }
.wallet-deposit:active { transform: scale(0.97); }
.wallet-deposit .btn-ico { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.4; }

@media (max-width: 860px) {
    .wallet-deposit span { display: none; }
    .wallet-deposit { padding: 0 12px; }
    .wc-tic { display: none; }
}

/* coin picker grid in the deposit popup */
.coin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 18px;
}
.coin-opt {
    position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 16px 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    cursor: pointer;
    transition: border-color var(--speed), background var(--speed), transform var(--speed);
}
.coin-opt:hover:not(.soon) { border-color: var(--ice); background: var(--panel-hover); transform: translateY(-2px); }
.coin-opt .co-label { font-weight: 600; font-size: 14px; }
.coin-opt .co-net { font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.coin-opt.soon { opacity: 0.55; cursor: not-allowed; }
.co-badge {
    position: absolute; top: 8px; right: 8px;
    font-family: var(--font-mono);
    font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em;
    padding: 2px 7px; border-radius: 999px;
    background: var(--raised); color: var(--text-muted); border: 1px solid var(--line);
}
.dep-back {
    background: none; border: 0; color: var(--text-muted);
    cursor: pointer; font-size: 13px; padding: 0 0 12px;
}
.dep-back:hover { color: var(--text); }

/* transactions row now has a coin column (override v1 3-col layout) */
.tx-row {
    grid-template-columns: 1.1fr 1fr 1fr 1.1fr !important;
}
.tx-coin { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 13px; }
.tx-link { color: var(--ice); cursor: pointer; }
@media (max-width: 640px) {
    .tx-row { grid-template-columns: 1fr 1fr !important; }
    .tx-id, .tx-time { display: none; }
}

/* USD flat balance + per-coin sub-amount in tx list */
.usd-chip { background: #2f9e6e; font-size: 15px; }
.wc-usd .wc-amt { font-size: 17px; }
.tx-sub { color: var(--text-faint); font-family: var(--font-mono); font-size: 11px; margin-left: 4px; }
.tx-amt { color: var(--win); }

/* =========================================================
   ADMIN PANEL + BAN SCREEN
   ========================================================= */

/* PIN gate */
.admin-gate { display: flex; justify-content: center; padding: 60px 0; }
.gate-card {
    width: min(100%, 360px); text-align: center;
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    background: var(--surface); padding: 34px 28px; box-shadow: var(--shadow), var(--glass-hi);
}
.gate-card h2 { font-family: var(--font-display); font-size: 22px; margin-bottom: 6px; }
.gate-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 18px; }
.gate-card input {
    width: 100%; height: 46px; text-align: center; letter-spacing: 0.4em;
    background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-sm);
    color: var(--text); font-size: 20px; margin-bottom: 14px; outline: none;
}
.gate-card input:focus { border-color: var(--ice); }
.gate-error { color: var(--loss); font-size: 13px; margin-bottom: 12px; }

/* tabs */
.admin-tabs { display: inline-flex; gap: 8px; }
.tab-btn {
    background: var(--panel); border: 1px solid var(--line); color: var(--text-muted);
    padding: 8px 16px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 13px;
}
.tab-btn.active { color: var(--ice); border-color: var(--ice); background: rgba(100,210,255,0.1); }

/* tickets */
.tickets-layout { display: grid; grid-template-columns: 300px 1fr; gap: 16px; margin-top: 20px; min-height: 420px; }
.ticket-list { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--panel); overflow: hidden; max-height: 560px; overflow-y: auto; }
.ticket-item { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 14px 16px; cursor: pointer; color: var(--text); }
.ticket-item:hover { background: var(--panel-hover); }
.ticket-item.active { background: rgba(100,210,255,0.08); border-left: 3px solid var(--ice); }
.ti-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.ti-user { font-weight: 600; font-size: 14px; }
.ti-status { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.ti-status.open { background: rgba(48,209,88,0.15); color: var(--win); }
.ti-status.closed { background: var(--raised); color: var(--text-faint); }
.ti-last { color: var(--text-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ticket-chat { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--panel); display: flex; flex-direction: column; }
.chat-empty { margin: auto; color: var(--text-muted); }
.chat-wrap { display: flex; flex-direction: column; height: 100%; min-height: 420px; }
.chat-head { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.chat-head .ti-status { margin-left: 8px; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; max-height: 440px; }
.chat-msg { max-width: 75%; padding: 10px 14px; border-radius: 14px; font-size: 14px; }
.chat-msg .cm-time { font-size: 10px; color: var(--text-faint); margin-top: 4px; font-family: var(--font-mono); }
.chat-msg.them { align-self: flex-start; background: var(--raised); border: 1px solid var(--line); }
.chat-msg.me { align-self: flex-end; background: rgba(100,210,255,0.12); border: 1px solid rgba(100,210,255,0.3); }
.chat-input { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; height: 42px; padding: 0 14px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); outline: none; }
.chat-input input:focus { border-color: var(--ice); }

/* users */
.user-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.user-row:last-child { border-bottom: none; }
.ur-main { display: flex; flex-direction: column; gap: 2px; }
.ur-name { font-weight: 600; }
.ur-mail { color: var(--text-muted); font-size: 12px; }
.ur-ban { color: var(--loss); font-size: 11px; font-family: var(--font-mono); margin-top: 2px; }
.ur-actions { display: flex; gap: 10px; align-items: center; }
.ur-role { background: var(--raised); border: 1px solid var(--line); color: var(--text); border-radius: var(--radius-sm); padding: 6px 10px; }
.ur-actions .btn { min-height: 36px; padding: 0 14px; }

@media (max-width: 760px) {
    .tickets-layout { grid-template-columns: 1fr; }
}

/* ban full-screen overlay */
.ban-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.92); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.ban-card {
    text-align: center; max-width: 440px;
    border: 1px solid rgba(255,24,65,0.4); border-radius: var(--radius-lg);
    background: var(--surface); padding: 40px 30px; box-shadow: var(--shadow);
}
.ban-ico { font-size: 48px; margin-bottom: 10px; }
.ban-card h2 { font-family: var(--font-display); font-size: 26px; color: var(--loss); margin-bottom: 8px; }
.ban-card p { color: var(--text-muted); margin-bottom: 16px; }
.ban-reason { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; font-size: 14px; }

/* support chat: system line (ticket closed / reopened) */
.support-msg.sys {
    align-self: center; background: none; border: none;
    color: var(--text-faint); font-size: 12px; font-family: var(--font-mono);
    text-align: center; padding: 4px 0; max-width: 100%;
}

/* =========================================================
   GLOBAL LIVE CHAT (right dock)
   ========================================================= */
.livechat-fab {
    position: fixed; right: 20px; bottom: 20px; z-index: 180;
    width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
    border: 1px solid var(--line-strong); background: var(--surface);
    box-shadow: var(--shadow), var(--glass-hi); color: var(--ice);
    display: flex; align-items: center; justify-content: center;
    transition: transform .2s, background .2s;
}
.livechat-fab:hover { transform: translateY(-2px); background: var(--raised); }
.livechat-fab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
.livechat-fab.hidden { display: none; }

.livechat {
    position: fixed; right: 0; top: 0; bottom: 0; z-index: 185;
    width: 340px; max-width: 90vw;
    background: var(--surface); border-left: 1px solid var(--line);
    display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform .28s ease;
    box-shadow: -20px 0 60px rgba(0,0,0,0.4);
}
.livechat.open { transform: none; }

.lc-head { display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px; border-bottom: 1px solid var(--line); }
.lc-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.lc-live { width: 8px; height: 8px; border-radius: 50%; background: var(--win); box-shadow: 0 0 0 4px rgba(48,209,88,0.15); }
.lc-close { background: none; border: 0; color: var(--text-muted); font-size: 22px; cursor: pointer; line-height: 1; }
.lc-close:hover { color: var(--text); }

.lc-body { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 7px; }
.lc-body::-webkit-scrollbar { width: 6px; }
.lc-body::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }

.lc-msg { font-size: 13.5px; line-height: 1.5; word-wrap: break-word; }
.lc-name { font-weight: 600; color: var(--text); }
.lc-name.clickable { cursor: pointer; }
.lc-name.clickable:hover { color: var(--ice); text-decoration: underline; }
.lc-sep { color: var(--text-faint); }
.lc-text { color: var(--text-muted); }
.lc-sys { font-size: 12px; color: var(--text-faint); font-family: var(--font-mono); text-align: center; padding: 2px 0; }

.lc-tag { font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.06em;
    padding: 1px 6px; border-radius: 5px; margin-right: 6px; vertical-align: middle; }
.lc-tag.admin { background: rgba(255,24,65,0.16); color: #ff5d79; border: 1px solid rgba(255,24,65,0.4); }
.lc-tag.mod { background: rgba(47,129,247,0.16); color: #6fa8ff; border: 1px solid rgba(47,129,247,0.4); }
.lc-tag.banned { background: rgba(255,24,65,0.16); color: #ff5d79; }
.lc-tag.mutedtag { background: var(--raised); color: var(--text-muted); }

.lc-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.lc-input input { flex: 1; height: 40px; padding: 0 14px; background: var(--raised);
    border: 1px solid var(--line); border-radius: 999px; color: var(--text); outline: none; font-size: 14px; }
.lc-input input:focus { border-color: var(--ice); }
.lc-input input:disabled { opacity: .6; }
.lc-input button { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--ice); color: #06222e; display: flex; align-items: center; justify-content: center; }
.lc-input button svg { width: 17px; height: 17px; fill: currentColor; }

/* staff name popover */
.lc-pop { position: fixed; z-index: 200; width: 170px; background: var(--surface);
    border: 1px solid var(--line-strong); border-radius: var(--radius-md);
    box-shadow: var(--shadow); padding: 6px; }
.lc-pop-title { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted);
    padding: 6px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; word-break: break-all; }
.lc-pop button { display: block; width: 100%; text-align: left; background: none; border: 0;
    color: var(--text); padding: 9px 10px; border-radius: var(--radius-sm); cursor: pointer; font-size: 13px; }
.lc-pop button:hover { background: var(--panel-hover); }

/* profile stats modal */
.lc-stats-overlay { position: fixed; inset: 0; z-index: 210; background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lc-stats { position: relative; width: min(100%, 380px); background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }
.lc-stats-close { position: absolute; top: 14px; right: 14px; background: none; border: 1px solid var(--line);
    width: 30px; height: 30px; border-radius: 8px; color: var(--text-muted); cursor: pointer; }
.lc-stats-head { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 18px; }
.lc-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lss { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--panel); }
.lss span { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); display: block; }
.lss strong { font-family: var(--font-mono); font-size: 18px; margin-top: 4px; display: block; }
.lc-stats-sub { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); margin: 18px 0 8px; }
.lc-stats-coins { display: flex; flex-direction: column; gap: 4px; }
.ls-coin { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 13px;
    padding: 6px 2px; border-bottom: 1px solid var(--line); }
.ls-coin:last-child { border-bottom: none; }

@media (max-width: 480px) { .livechat { width: 100vw; } }

/* =========================================================
   LIVE CHAT v2 — docked + pushes page content, live count
   ========================================================= */
:root { --chat-w: 330px; }

.livechat { width: var(--chat-w); box-shadow: -1px 0 0 var(--line); }

/* push the page content aside when chat is open (desktop only) */
@media (min-width: 1000px) {
    body.chat-open .main { margin-right: var(--chat-w); }
    body.chat-open .wallet-topbar { right: var(--chat-w); }
}

/* header */
.lc-head { background: linear-gradient(180deg, rgba(100,210,255,0.06), transparent);
    padding: 15px 16px; }
.lc-title { font-family: var(--font-display); font-weight: 600; font-size: 15px;
    display: flex; align-items: center; gap: 8px; }
.lc-count { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted);
    background: var(--raised); border: 1px solid var(--line); border-radius: 999px;
    padding: 2px 9px; margin-left: 4px; }
.lc-close { background: none; border: 0; color: var(--text-muted); cursor: pointer;
    width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.lc-close:hover { color: var(--text); background: var(--panel); }
.lc-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* messages — tighter, cleaner */
.lc-body { padding: 14px 16px; gap: 8px; }
.lc-msg { font-size: 13.5px; line-height: 1.5; padding: 2px 0; }
.lc-msg:hover { background: rgba(255,255,255,0.015); border-radius: 6px; }

/* FAB shows a small unread-dot vibe */
.livechat-fab { box-shadow: 0 8px 30px rgba(0,0,0,0.5); }

/* support: claim banner, admin name, receipts */
.support-claim { padding: 9px 14px; font-size: 12px; font-family: var(--font-mono); text-align: center; border-bottom: 1px solid var(--line); }
.support-claim.waiting { color: var(--warn); background: rgba(227,179,65,0.08); }
.support-claim.claimed { color: var(--win); background: rgba(48,209,88,0.08); }
.support-msg.named { position: relative; }
.support-name { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--ice); margin-bottom: 3px; }
.support-status { display: block; font-size: 10px; color: var(--text-faint); font-family: var(--font-mono); margin-top: 3px; text-align: right; }

/* My account horizontal navbar + stats cards (shared) */
.acc-tabs { display: inline-flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.acc-tab { background: var(--panel); border: 1px solid var(--line); color: var(--text-muted);
    padding: 9px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; transition: all .18s; }
.acc-tab:hover { color: var(--text); }
.acc-tab.active { color: var(--ice); border-color: var(--ice); background: rgba(100,210,255,0.1); }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stat-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md);
    background: var(--panel); padding: 18px 20px; box-shadow: var(--glass-hi); }
.stat-card::before { content:""; position:absolute; left:0; top:0; bottom:0; width:3px;
    background: linear-gradient(var(--ice), rgba(100,210,255,0.2)); }
.stat-card .sc-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.stat-card .sc-value { font-family: var(--font-mono); font-size: 24px; font-weight: 600; margin-top: 6px; color: var(--text); }
.stat-card .sc-value.pos { color: var(--win); }

/* =========================================================
   LIVE CHAT v3 — centered header, emoji, Enter-only, smaller, animations
   ========================================================= */
:root { --chat-w: 300px; }

.lc-live { display: none; }               /* remove the big green dot */

.lc-head { position: relative; justify-content: center; padding: 13px 40px; }
.lc-title { text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--text); }
.lc-title i { font-style: normal; color: var(--text-faint); margin: 0 7px; }
.lc-title [data-lc-count] { color: var(--ice); font-family: var(--font-mono); font-weight: 600; }
.lc-close { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }

/* input: emoji button + field, no send button (Enter sends) */
.lc-input { padding: 10px 12px; gap: 8px; align-items: center; }
.lc-emoji-btn { flex: none; width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--raised); cursor: pointer; font-size: 17px; line-height: 1; }
.lc-emoji-btn:hover { background: var(--panel-hover); }
.lc-input input { flex: 1; }

/* emoji picker bar */
.lc-emoji-bar { display: flex; flex-wrap: wrap; gap: 3px; padding: 8px 12px;
    border-top: 1px solid var(--line); background: var(--surface); }
.lc-emoji-bar button { background: none; border: 0; font-size: 19px; cursor: pointer; padding: 3px 5px; border-radius: 6px; }
.lc-emoji-bar button:hover { background: var(--panel-hover); }

/* message animations */
@keyframes lcIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.lc-msg { animation: lcIn .2s ease; }

@keyframes supIn { from { opacity: 0; transform: translateY(7px) scale(.98); } to { opacity: 1; transform: none; } }
.support-msg { animation: supIn .24s ease; }

/* emoji picker: hidden by default, shown only when toggled open */
.lc-emoji-bar { display: none; }
.lc-emoji-bar.open { display: flex; }

/* enforce [hidden] — some class rules set display:flex which otherwise
   overrides the hidden attribute (this kept the admin PIN gate on screen) */
[hidden] { display: none !important; }

/* support: closed-ticket bar + start-new button */
.support-newbar { display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 14px; border-top: 1px solid var(--line); background: var(--raised);
    font-size: 12px; color: var(--text-muted); }
.support-new { background: var(--ice); color: #06222e; border: 0; border-radius: 999px;
    padding: 7px 14px; font-weight: 600; cursor: pointer; font-size: 12px; }
.support-new:hover { filter: brightness(1.08); }

/* =========================================================
   AFFILIATE page
   ========================================================= */
/* chart card (also used by affiliate; admin has its own copy) */
.chart-card { border: 1px solid var(--line); border-radius: var(--radius-md); background:
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0)), var(--surface);
    padding: 18px 20px; box-shadow: var(--glass-hi); }
.chart-title { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 14px; }

.aff-link-card { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--panel);
    padding: 20px; box-shadow: var(--glass-hi); }
.aff-link-card label { display: block; font-family: var(--font-mono); font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 10px; }
.aff-link-row { display: flex; gap: 10px; }
.aff-link-row input { flex: 1; height: 44px; padding: 0 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--line); background: var(--raised); color: var(--text); outline: none;
    font-family: var(--font-mono); font-size: 13px; }
.aff-link-row input:focus { border-color: var(--ice); }
.aff-link-row .btn { white-space: nowrap; }

.aff-claim-card { display: flex; flex-direction: column; gap: 8px; }
.aff-claim-card .btn { margin-top: auto; }

.aff-dep-row { display: grid; grid-template-columns: 1fr 1fr auto 1.1fr; gap: 14px; align-items: center;
    padding: 13px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.aff-dep-row:last-child { border-bottom: none; }
.aff-dep-row .dep-user { font-weight: 600; }
.aff-dep-row .dep-coin { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 13px; }
.aff-reward { color: var(--win); font-family: var(--font-mono); font-weight: 600; }
.aff-dep-row .dep-time { color: var(--text-muted); font-size: 12px; text-align: right; }
@media (max-width: 680px) { .aff-dep-row { grid-template-columns: 1fr auto; } .aff-dep-row .dep-time, .aff-dep-row .dep-coin { display: none; } }

/* =========================================================
   REDESIGN v3 — editorial / production pass
   Flat surfaces, ruled structure, small radii, one accent.
   Glass is kept only where it is functional (overlays, docks).
   ========================================================= */

:root { --r: 10px; --rule: rgba(255, 255, 255, 0.09); }

/* flat by default: no blur on in-page cards */
.stat-row, .game-card, .panel-card, .feature, .account-box, .vip-bubble, .visual-shell {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* ---- sidebar: quiet, precise ---- */
.nav-item { border-radius: 8px; border: 0; padding: 10px 12px; }
.nav-item.active { background: rgba(255, 255, 255, 0.05); box-shadow: none; border: 0; }
.nav-item.active::before { left: -16px; width: 2px; height: 18px; border-radius: 0 2px 2px 0; }
html.nav-collapsed .nav-item.active::before { display: none; }
.nav-section-label { padding: 22px 12px 8px; }
.btn { border-radius: 8px; min-height: 42px; }

/* ---- hero: restrained, left-weighted ---- */
.hero { padding: 8px 0 64px; }
.hero-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
.eyebrow { padding: 0; border: 0; background: none; box-shadow: none; backdrop-filter: none;
    border-radius: 0; font-size: 11px; letter-spacing: .16em; color: var(--muted); margin-bottom: 20px; }
.eyebrow-dot { width: 5px; height: 5px; }
h1 { font-size: clamp(40px, 4.4vw, 60px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.04; max-width: 14ch; }
.hero-copy { font-size: 16px; max-width: 46ch; margin-top: 22px; }
.hero-actions { margin-top: 28px; }
.hero-note { border-top: 0; padding-top: 0; margin-top: 22px; font-size: 11px; color: var(--faint); }

/* visual: a still, flat "table" plate — no floating, no animation */
.visual-shell { min-height: 0; aspect-ratio: 1 / 1.08; border-radius: var(--r); background: var(--surface);
    box-shadow: none; margin-top: 4px; }
.visual-shell::after { display: none; }
.table-ring { width: 220px; height: 220px; }
.table-ring::before { inset: 20px; } .table-ring::after { inset: 44px; }
.chip, .mini-card { animation: none !important; }
.chip { width: 64px; height: 64px; }
.chip span { width: 48px; height: 48px; font-size: 13px; }
.chip-gold { left: 14%; top: 14%; }
.chip-green { right: 14%; bottom: 20%; }
.mini-card { width: 88px; height: 122px; padding: 11px; font-size: 20px; border-radius: 8px; }
.card-a { transform: translate(-82%, -52%) rotate(-6deg); }
.card-k { transform: translate(-10%, -48%) rotate(6deg); }
.visual-label { left: 18px; right: 18px; bottom: 16px; font-size: 10px; line-height: 1.5; color: var(--faint); }

/* ---- stat strip: ruled list, not a card ---- */
.stat-row { border: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
    border-radius: 0; background: none; box-shadow: none; }
.stat-pill { padding: 20px 24px 20px 0; border-right: 0; flex-direction: column; align-items: flex-start; gap: 6px; }
.stat-pill + .stat-pill { padding-left: 24px; border-left: 1px solid var(--rule); }
.stat-ico { font-size: 11px; color: var(--faint); }
.stat-pill .stat-txt { font-size: 14px; }

/* ---- sections ---- */
.block { padding-top: 80px; }
.section-head, .page-head { align-items: flex-end; }
.section-kicker { font-size: 11px; color: var(--muted); }
.section-kicker::before { display: none; }
.page-head .section-title { font-size: clamp(32px, 3.4vw, 44px); }
.block .section-title, h2.section-title { font-size: 28px; }
.section-copy { font-size: 14px; max-width: 40ch; }

/* ---- game cards ---- */
.game-card { border-radius: var(--r); background: var(--surface); }
.game-card:hover { border-color: var(--line-strong); }
.game-art { aspect-ratio: 4 / 3; background: var(--raised); }
.game-art::before { display: none; }
.game-art::after { font-size: 44px; color: var(--muted); transition: color var(--speed); }
.game-card:hover .game-art::after { color: var(--white); }
.game-info { padding: 14px 16px 16px; }
.game-name { font-size: 15px; font-weight: 600; }
.game-tag { border: 0; padding: 0; border-radius: 0; font-size: 10px; color: var(--faint); }
.game-meta { margin-top: 6px; }

/* ---- feature: two ruled columns ---- */
.split { gap: 0; border-top: 1px solid var(--rule); }
.feature { background: none; border: 0; border-radius: 0; min-height: 0; padding: 30px 40px 36px 0; }
.feature + .feature { padding: 30px 0 36px 40px; border-left: 1px solid var(--rule); }
.feature h3 { font-size: 24px; }
.feature-line { display: none; }
.feature h3 { margin: 10px 0 12px; }
.feature p { font-size: 15px; }
.feature-number { top: 30px; right: 40px; }
.feature + .feature .feature-number { right: 0; }

/* ---- panels ---- */
.panel-grid { gap: 12px; }
.panel-card { border-radius: var(--r); padding: 22px; min-height: 0; }
.panel-card:hover { border-color: var(--line-strong); }
.panel-card h4 { font-size: 18px; }
.tagline::before { display: none; }

/* ---- account + vip ---- */
.account-box { border-radius: var(--r); }
.vip-bubble { border-radius: var(--r); padding: 14px 16px; }
.eyebrow { }
.modal, .support-box { border-radius: 14px; }

footer { margin-top: 88px; }

@media (max-width: 1040px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .visual-shell { aspect-ratio: 16 / 9; max-width: 520px; }
    .stat-row { grid-template-columns: repeat(2, 1fr); }
    .stat-pill:nth-child(3) { padding-left: 0; border-left: 0; }
    .stat-pill:nth-child(n+3) { border-top: 1px solid var(--rule); }
    .feature, .feature + .feature { padding: 26px 0; border-left: 0; }
    .feature + .feature { border-top: 1px solid var(--rule); }
    .feature-number, .feature + .feature .feature-number { right: 0; top: 26px; }
}
@media (max-width: 560px) {
    .stat-row { grid-template-columns: 1fr; }
    .stat-pill + .stat-pill, .stat-pill:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
    h1 { font-size: 40px; }
}

/* v3 fixes */
.game-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.game-art::after { font-size: 40px; }
.game-grid { grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); }
@media (max-width: 1040px) {
    .visual-shell { aspect-ratio: auto; min-height: 280px; }
    .table-ring, .mini-card { top: 42%; }
    .chip-gold { top: 9%; }
    .chip-green { bottom: 22%; }
}
.panel-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* =========================================================
   v5 — Wallet popup, VIP, Originals, Dice, Account, Chat v4,
   legal pages, footer. Strictly the PUDDLE Style Guide:
   void / surface / raised, single ice accent, win/loss only
   functional, no glow, no gradients.
   ========================================================= */
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.win { color: var(--win); } .loss { color: var(--loss); }
.vip-ico { display: inline-block; vertical-align: middle; flex: none; }

/* de-glow leftovers */
.vip-fill { box-shadow: none !important; background: var(--ice) !important; }
.vip-rank::before { display: none !important; }
.support-dot { box-shadow: none !important; }
.live-dot { box-shadow: none !important; }
.stat-card::before { background: var(--ice) !important; }
.wallet-bar { background: var(--surface) !important; }
.lc-head { background: transparent !important; }

/* ---------- nav: auth-only items, "Soon" ---------- */
.auth-only { display: none !important; }
html.is-authed .auth-only { display: flex !important; }
.nav-item.soon { opacity: .55; }
.nav-badge.soon { color: var(--muted); border-color: var(--line-strong); }

/* ---------- top bar: VIP chip + Wallet ---------- */
.wallet-vip { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
    border-radius: 50%; border: 1px solid var(--line); margin: 0 4px 0 2px; transition: border-color var(--speed), background var(--speed); }
.wallet-vip:hover { border-color: var(--ice); background: var(--raised); }
.wallet-deposit { gap: 8px; }
.wallet-deposit .btn-ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- dropdown ---------- */
.wlabel { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.dd { position: relative; }
.dd-btn { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px;
    background: var(--raised); border: 1px solid var(--line); border-radius: 12px; color: var(--text);
    cursor: pointer; font: inherit; text-align: left; transition: border-color var(--speed); }
.dd-btn:hover, .dd.open .dd-btn { border-color: var(--line-strong); }
.dd.open .dd-btn { border-color: var(--ice); }
.dd-val { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.dd-ph { color: var(--muted); font-size: 14px; }
.dd-l { font-weight: 600; font-size: 14px; }
.dd-s { margin-left: auto; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.dd-val .dd-s { margin-left: 8px; }
.dd-chev { width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--speed); flex: none; }
.dd.open .dd-chev { transform: rotate(180deg); }
.dd-menu { margin-top: 6px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; padding: 5px; }
.dd-opt { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 8px;
    background: transparent; color: var(--text); cursor: pointer; font: inherit; text-align: left; }
.dd-opt:hover { background: var(--raised); }
.dd-opt.soon { opacity: .45; cursor: not-allowed; }

/* ---------- wallet modal ---------- */
.wallet-modal { width: min(100%, 440px); max-height: calc(100vh - 40px); overflow-y: auto; }
.wallet-modal .modal-sub { margin-bottom: 18px; }
.wallet-modal .modal-sub strong { color: var(--text); }
.wallet-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin-bottom: 20px;
    background: var(--void); border: 1px solid var(--line); border-radius: 14px; }
.wtab { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; height: 42px;
    border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--muted);
    font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: background var(--speed), color var(--speed); }
.wtab:hover { color: var(--text); background: var(--panel); }
.wtab.active { color: var(--text); background: var(--raised); border-color: var(--line); }
.wtab.active::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 18px; border-radius: 0 3px 3px 0; background: var(--ice); }
.wt-ico { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wd-form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.input-max { position: relative; }
.input-max input { width: 100%; padding-right: 64px; }
.input-max button { position: absolute; right: 6px; top: 6px; height: 32px; padding: 0 12px; border-radius: 8px;
    border: 1px solid var(--line-strong); background: transparent; color: var(--ice); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.input-max button:hover { border-color: var(--ice); }
.field input, .field select { font-family: inherit; }
.wd-info { font-size: 12px; line-height: 1.55; color: var(--muted); }
.wd-info strong { color: var(--text); font-weight: 600; }
.wd-info .warn { color: var(--text); display: block; margin-top: 6px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--raised); }
.wd-recent { margin-top: 6px; }
.wd-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13px; }
.wd-row > div:first-child { display: flex; align-items: center; gap: 9px; }
.wd-amt { font-family: var(--font-mono); font-weight: 600; }
.wd-coin { color: var(--faint); font-size: 11px; font-family: var(--font-mono); }
.wd-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; font-family: var(--font-mono); }
.wd-meta a { color: var(--ice); }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-family: var(--font-mono);
    font-size: 10px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line-strong); color: var(--muted); }
.pill.sent { color: var(--win); border-color: rgba(48,209,88,.4); }
.pill.rejected { color: var(--loss); border-color: rgba(255,24,65,.4); }
.pill.pending { color: var(--ice); border-color: rgba(100,210,255,.4); }
.dep-status:not(.ok):not(.err) { border-color: var(--line); }
.dep-qr { background: #fff; border-radius: 14px; padding: 10px; width: 180px; margin: 18px auto 16px; }

/* ---------- VIP ---------- */
.vip-bubble { display: block; max-width: 400px; padding: 16px 18px; border-radius: 16px; }
.vip-rank { gap: 10px; }
.vip-rank .vip-ico { margin-right: -2px; }
.vip-sub { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.vip-next b { color: var(--text); font-weight: 500; }
.vip-ladder { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.vip-step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.vip-step .vs-top { display: flex; align-items: center; justify-content: space-between; }
.vip-step .vs-name { font-family: var(--font-display); font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.vip-step .vs-lvl { font-family: var(--font-mono); font-size: 11px; color: var(--faint); letter-spacing: .1em; text-transform: uppercase; }
.vip-step .vs-req { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.vip-step.done { border-color: var(--line-strong); }
.vip-step.current { border-color: var(--ice); }
.vip-step.current::after { content: "You"; position: absolute; top: 14px; right: 14px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--ice); }
.vip-step.locked { opacity: .55; }
.vip-hero { display: flex; align-items: center; gap: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; margin-bottom: 18px; flex-wrap: wrap; }
.vip-hero .vh-ico { width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; background: var(--raised); }
.vip-hero .vh-body { flex: 1; min-width: 220px; }
.vip-hero h3 { font-family: var(--font-display); font-size: 26px; font-weight: 500; letter-spacing: -.02em; }
.vip-hero .vh-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin: 6px 0 14px; }
.vip-hero .vip-track { height: 6px; }

/* ---------- hero dice illustration (home) ---------- */
.hero-dice { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; max-width: 460px; margin-left: auto; width: 100%; }
.hd-top { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hd-num { font-family: var(--font-mono); font-weight: 500; font-size: 76px; letter-spacing: -.04em; text-align: center; margin: 22px 0 18px; line-height: 1; }
.hd-track { position: relative; height: 10px; border-radius: 999px; background: var(--raised); overflow: visible; }
.hd-track i { position: absolute; left: 0; top: 0; bottom: 0; width: 49.5%; border-radius: 999px; background: var(--ice); }
.hd-track b { position: absolute; top: -7px; width: 2px; height: 24px; background: var(--white); left: 62%; }
.hd-scale { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; color: var(--faint); margin-top: 8px; }
.hd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.hd-stats div { background: var(--raised); border-radius: 12px; padding: 11px 12px; }
.hd-stats span { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hd-stats strong { font-family: var(--font-mono); font-size: 15px; font-weight: 500; }
@media (max-width: 1040px) { .hero-dice { margin: 0; max-width: none; } }

/* ---------- originals / game cards ---------- */
a.game-card { display: block; color: inherit; }
.game-card.soon { opacity: .6; pointer-events: none; }
.game-tag.live { color: var(--ice); border-color: rgba(100,210,255,.4); }
.game-art.dice-art::after { content: ""; }
.game-art .art-dice { position: absolute; inset: 0; display: grid; place-items: center; }
.art-dice span { font-family: var(--font-mono); font-size: 46px; font-weight: 500; letter-spacing: -.03em; transition: color var(--speed); }
a.game-card:hover .art-dice span { color: var(--ice); }
.page-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; margin-left: 12px; border: 1px solid var(--line-strong);
    border-radius: 999px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); vertical-align: middle; position: relative; top: -4px; }

/* ---------- dice ---------- */
.dice-wrap { display: grid; grid-template-columns: 340px 1fr; gap: 16px; align-items: start; }
.dice-panel, .dice-stage, .dice-hist { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.dice-panel { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: var(--void); border: 1px solid var(--line); border-radius: 12px; }
.seg button { height: 38px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: all var(--speed); }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--raised); color: var(--text); border-color: var(--line); }
.bet-input { position: relative; }
.bet-input span.cur { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-family: var(--font-mono); }
.bet-input input { width: 100%; height: 48px; padding: 0 112px 0 28px; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; color: var(--text); font-family: var(--font-mono); font-size: 16px; outline: none; transition: border-color var(--speed); }
.bet-input input:focus { border-color: var(--ice); }
.bet-input .qb { position: absolute; right: 6px; top: 6px; display: flex; gap: 4px; }
.bet-input .qb button { height: 36px; min-width: 40px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-family: var(--font-mono); font-size: 12px; cursor: pointer; }
.bet-input .qb button:hover { color: var(--text); border-color: var(--ice); }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-stats > div { background: var(--raised); border-radius: 12px; padding: 12px 14px; }
.mini-stats span { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.mini-stats strong { font-family: var(--font-mono); font-weight: 500; font-size: 17px; }
.roll-btn { height: 52px; font-size: 15px; font-weight: 700; }
.dice-err { color: var(--loss); font-size: 13px; min-height: 18px; }
.dice-stage { padding: 30px 30px 26px; }
.stage-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stage-top a { color: var(--ice); }
.roll-num { font-family: var(--font-mono); font-weight: 500; font-size: clamp(64px, 11vw, 120px); letter-spacing: -.05em; text-align: center; margin: 30px 0 28px; line-height: 1; transition: color .18s; }
.roll-num.win { color: var(--win); } .roll-num.loss { color: var(--loss); }
.track { position: relative; height: 14px; border-radius: 999px; background: var(--raised); margin: 0 4px; }
.track .zone { position: absolute; top: 0; bottom: 0; background: var(--ice); transition: left .2s, width .2s; }
.track .zone.l { left: 0; border-radius: 999px 0 0 999px; } .track .zone.r { right: 0; border-radius: 0 999px 999px 0; }
.track .zone.full { border-radius: 999px; }
.track .mark { position: absolute; top: -9px; width: 3px; height: 32px; margin-left: -1.5px; border-radius: 2px; background: var(--white); transition: left .35s cubic-bezier(.2,.8,.2,1), background .2s; }
.track .mark.win { background: var(--win); } .track .mark.loss { background: var(--loss); }
.scale { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--faint); margin: 12px 4px 0; }
.slider-row { margin-top: 26px; }
.slider-row .sr-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.slider-row .sr-head b { font-family: var(--font-mono); font-weight: 500; font-size: 18px; }
input[type=range].rng { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--raised); outline: none; }
input[type=range].rng::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 4px solid var(--void); box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer; }
input[type=range].rng::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 4px solid var(--void); cursor: pointer; }
.chips { display: flex; gap: 6px; margin-top: 22px; flex-wrap: wrap; min-height: 30px; }
.chips span { font-family: var(--font-mono); font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--raised); color: var(--muted); }
.chips span.w { color: var(--win); border-color: rgba(48,209,88,.35); } .chips span.l { color: var(--loss); border-color: rgba(255,24,65,.35); }
.dice-hist { margin-top: 16px; }
.dice-hist h3, .box-title { font-family: var(--font-display); font-size: 18px; font-weight: 500; letter-spacing: -.01em; padding: 18px 22px 0; }
.bets { padding: 8px 6px 10px; overflow-x: auto; }
.bets table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 520px; }
.bets th { text-align: left; font-family: var(--font-mono); font-size: 10px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 10px 16px; }
.bets td { padding: 11px 16px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.bets td.r, .bets th.r { text-align: right; }
.bets .empty { padding: 22px; color: var(--muted); font-family: var(--font-main); }
@media (max-width: 980px) { .dice-wrap { grid-template-columns: 1fr; } }

/* ---------- provably fair ---------- */
.fair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.box + .box { margin-top: 16px; }
.box h3 { font-family: var(--font-display); font-size: 20px; font-weight: 500; letter-spacing: -.01em; margin-bottom: 6px; }
.box p.sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; line-height: 1.6; }
.kv { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.kv label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kv .val { font-family: var(--font-mono); font-size: 12.5px; padding: 11px 13px; background: var(--raised); border-radius: 10px; word-break: break-all; border: 1px solid var(--line); }
.kv input { height: 44px; padding: 0 13px; background: var(--raised); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-family: var(--font-mono); font-size: 13px; outline: none; }
.kv input:focus { border-color: var(--ice); }
.row2 { display: flex; gap: 10px; flex-wrap: wrap; }
.verify-out { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); font-family: var(--font-mono); font-size: 13px; line-height: 1.8; }
.verify-out b { font-size: 26px; font-weight: 500; display: block; letter-spacing: -.02em; }
.hist-rev { font-family: var(--font-mono); font-size: 11.5px; }
.hist-rev .hr { padding: 12px 0; border-top: 1px solid var(--line); word-break: break-all; color: var(--muted); }
.hist-rev .hr b { color: var(--text); font-weight: 500; }
.code { font-family: var(--font-mono); font-size: 12.5px; background: var(--void); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; line-height: 1.8; color: var(--muted); overflow-x: auto; white-space: pre; }
@media (max-width: 980px) { .fair-grid { grid-template-columns: 1fr; } }

/* ---------- account ---------- */
.acc-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; flex-wrap: wrap; }
.acc-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--raised); border: 1px solid var(--line-strong); display: grid; place-items: center; font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.acc-hero h2 { font-family: var(--font-display); font-size: 26px; font-weight: 500; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.acc-hero .sub { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 4px; }
.acc-tabs { display: flex; gap: 6px; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; width: fit-content; max-width: 100%; overflow-x: auto; margin-bottom: 24px; }
.acc-tab { border-radius: 10px; border: 1px solid transparent; background: transparent; padding: 9px 18px; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.acc-tab:hover { color: var(--text); }
.acc-tab.active { color: var(--text); background: var(--raised); border-color: var(--line); }
.acc-pane { margin-top: 0; }
.stat-card { background: var(--surface); }
.stat-card .sc-value { font-size: 22px; }
.tx2 { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 14px; }
.tx2:first-child { border-top: 0; }
.tx2 .l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tx2 .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tx2 .t b { font-weight: 500; }
.tx2 .t span { font-family: var(--font-mono); font-size: 11px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; }
.tx2 .r { text-align: right; font-family: var(--font-mono); }
.tx2 .r b { display: block; font-weight: 600; }
.tx2 .r span { font-size: 11px; color: var(--faint); }
.safety-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 18px 0; }
.safety-opts button { padding: 16px; background: var(--raised); border: 1px solid var(--line); border-radius: 14px; color: var(--text); font: inherit; cursor: pointer; text-align: left; transition: border-color var(--speed); }
.safety-opts button:hover { border-color: var(--line-strong); }
.safety-opts button.on { border-color: var(--ice); }
.safety-opts b { display: block; font-weight: 600; font-size: 15px; }
.safety-opts span { font-size: 12px; color: var(--muted); }
.notice { padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--raised); font-size: 13px; line-height: 1.6; color: var(--muted); }
.notice strong { color: var(--text); }
.notice.alert { border-color: rgba(255,24,65,.4); }

/* ---------- promotions ---------- */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.promo { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; gap: 16px; transition: border-color var(--speed); }
.promo:hover { border-color: var(--line-strong); }
.promo .pk { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.promo .pk::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ice); }
.promo h3 { font-family: var(--font-display); font-size: 30px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.promo .big { font-family: var(--font-mono); font-size: 54px; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.promo p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.promo ul { list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; color: var(--muted); }
.promo li { display: flex; gap: 10px; }
.promo li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ice); margin-top: 8px; flex: none; }
.promo .actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; padding-top: 6px; }
.fine { font-size: 12px; color: var(--faint); line-height: 1.6; margin-top: 18px; }
.fine a { color: var(--muted); text-decoration: underline; }

/* ---------- live (soon) ---------- */
.soon-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 56px 32px; text-align: center; max-width: 640px; }
.soon-card .big { font-family: var(--font-display); font-size: clamp(40px, 6vw, 64px); font-weight: 600; letter-spacing: -.03em; margin: 10px 0 14px; }
.soon-card p { color: var(--muted); max-width: 440px; margin: 0 auto 26px; line-height: 1.65; }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; }
.legal .upd { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 30px; }
.legal h2 { font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: -.01em; margin: 38px 0 12px; }
.legal p, .legal li { color: var(--muted); font-size: 15px; line-height: 1.75; }
.legal p { margin-bottom: 12px; }
.legal ul { margin: 0 0 14px 20px; display: flex; flex-direction: column; gap: 6px; }
.legal a { color: var(--ice); }
.legal strong { color: var(--text); font-weight: 600; }
details.faq { border-top: 1px solid var(--line); padding: 4px 0; }
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-family: var(--font-display); font-size: 17px; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--muted); font-size: 20px; }
details.faq[open] summary::after { content: "–"; }
details.faq p { padding: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 680px; }
details.faq a { color: var(--ice); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 96px; padding: 40px 0 8px; background: transparent !important; }
.sf-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.sf-brand p { color: var(--muted); font-size: 13px; line-height: 1.65; margin-top: 12px; max-width: 320px; }
.sf-col h5 { font-family: var(--font-mono); font-size: 10px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.sf-col a, .sf-col button { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; background: none; border: 0; cursor: pointer; font-family: inherit; text-align: left; transition: color var(--speed); }
.sf-col a:hover, .sf-col button:hover { color: var(--text); }
.sf-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); line-height: 1.6; }
.sf-bottom .age { display: inline-flex; align-items: center; gap: 8px; }
.sf-bottom .age b { border: 1px solid var(--line-strong); border-radius: 6px; padding: 1px 6px; font-family: var(--font-mono); color: var(--muted); font-weight: 500; }
@media (max-width: 760px) { .sf-grid { grid-template-columns: 1fr 1fr; } .sf-brand { grid-column: 1 / -1; } }

/* ---------- auth modal bits ---------- */
.checkbox span a { color: var(--ice); }
.checkbox { align-items: flex-start; line-height: 1.5; }

/* =========================================================
   CHAT v4 — avatars, grouped messages, VIP icon, compose bar
   ========================================================= */
:root { --chat-w: 320px; }
.livechat.lc4 { width: var(--chat-w); }
.lc4 .lc-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 14px 14px 18px; border-bottom: 1px solid var(--line); }
.lc4 .lc-title { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.lc4 .lc-name-h { font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.lc4 .lc-close { position: static; transform: none; }
.lc4 .lc-body { padding: 14px 8px 10px 12px; gap: 2px; scroll-behavior: smooth; }
.lc4 .lc-msg { display: flex; gap: 10px; padding: 7px 8px; margin-top: 8px; border-radius: 10px; animation: none; }
.lc4 .lc-msg:first-child { margin-top: 0; }
.lc4 .lc-msg:hover { background: rgba(255,255,255,.03); }
.lc4 .lc-msg.fresh, .lc4 .lc-line.fresh { animation: lcIn .22s ease; }
.lc4 .lc-av { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--raised); border: 1px solid var(--line-strong);
    display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 13px; margin-top: 1px; }
.lc4 .lc-av.admin { border-color: rgba(255,24,65,.55); } .lc4 .lc-av.moderator { border-color: rgba(100,210,255,.6); }
.lc4 .lc-content { min-width: 0; flex: 1; }
.lc4 .lc-meta { display: flex; align-items: center; gap: 6px; line-height: 1.2; margin-bottom: 3px; flex-wrap: wrap; }
.lc4 .lc-name { font-weight: 600; font-size: 13px; color: var(--text); }
.lc4 .lc-msg.me .lc-name { color: var(--ice); }
.lc4 .lc-name.clickable { cursor: pointer; } .lc4 .lc-name.clickable:hover { text-decoration: underline; }
.lc4 .lc-vip { display: inline-flex; }
.lc4 .lc-time { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: var(--faint); }
.lc4 .lc-line { font-size: 13.5px; line-height: 1.5; color: #d6d9dd; word-wrap: break-word; overflow-wrap: anywhere; }
.lc4 .lc-content > .lc-line + .lc-line, .lc4 .lc-content .lc-line:not(:first-child) { margin-top: 2px; }
.lc4 .lc-sys { font-size: 11.5px; color: var(--faint); font-family: var(--font-mono); text-align: center; padding: 8px 0; }
.lc-tag { font-family: var(--font-mono); font-size: 9px; font-weight: 500; letter-spacing: .08em; padding: 2px 6px; border-radius: 5px; }
.lc-tag.admin { background: transparent; color: var(--loss); border: 1px solid rgba(255,24,65,.45); }
.lc-tag.mod { background: transparent; color: var(--ice); border: 1px solid rgba(100,210,255,.45); }
.lc-new { position: absolute; left: 50%; transform: translateX(-50%); bottom: 118px; background: var(--ice); color: #06222e; font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 999px; cursor: pointer; z-index: 2; }
.lc-compose { border-top: 1px solid var(--line); padding: 12px 12px 8px; background: var(--surface); position: relative; }
.lc4 .lc-input { padding: 0; border: 0; display: flex; align-items: center; gap: 4px; background: var(--raised); border: 1px solid var(--line); border-radius: 14px; padding: 4px; transition: border-color var(--speed); }
.lc4 .lc-input:focus-within { border-color: var(--ice); }
.lc4 .lc-input input { flex: 1; min-width: 0; height: 38px; padding: 0 6px; background: transparent; border: 0; border-radius: 0; color: var(--text); outline: none; font-size: 14px; }
.lc4 .lc-input input:disabled { opacity: 1; } .lc4 .lc-input input:disabled::placeholder { color: var(--faint); }
.lc4 .lc-emoji-btn { width: 36px; height: 36px; border: 0; background: transparent; border-radius: 10px; display: grid; place-items: center; cursor: pointer; flex: none; }
.lc4 .lc-emoji-btn:hover { background: var(--panel-hover); }
.lc4 .lc-emoji-btn svg { width: 20px; height: 20px; stroke: var(--muted); fill: none; stroke-width: 1.7; stroke-linecap: round; }
.lc4 .lc-send { width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--ice); color: #06222e; cursor: pointer; display: grid; place-items: center; flex: none; transition: filter var(--speed); }
.lc4 .lc-send:hover { filter: brightness(1.1); }
.lc4 .lc-send svg { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.lc-guest { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--raised); border: 1px solid var(--line); border-radius: 14px; padding: 10px 10px 10px 16px; font-size: 13px; color: var(--muted); }
.lc-guest .btn { min-height: 36px; padding: 0 16px; font-size: 13px; }
.lc-cool { height: 2px; margin: 8px 6px 0; background: transparent; }
.lc-cool span { display: block; height: 100%; width: 0; background: var(--ice); transition: width .1s linear; }
.lc-rules { font-size: 10.5px; color: var(--faint); text-align: center; padding: 6px 0 0; }
.lc-emoji-bar { border-top: 1px solid var(--line); }
.lc-fab-dot { position: absolute; top: 12px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--ice); }
.lc-stats .lss strong { display: inline-flex; align-items: center; gap: 6px; }
@media (min-width: 1000px) { body.chat-open .main { margin-right: var(--chat-w); } body.chat-open .wallet-topbar { right: var(--chat-w); } }
@media (max-width: 480px) { .livechat.lc4 { width: 100vw; } }

/* ---------- admin: withdrawals ---------- */
.wd-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-bottom: 12px; }
.wd-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wd-who { display: flex; align-items: center; gap: 12px; }
.wd-who b { display: block; font-weight: 600; }
.wd-who span { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.wd-sum { text-align: right; margin-left: auto; }
.wd-sum b { font-family: var(--font-mono); font-size: 20px; font-weight: 500; display: block; }
.wd-sum span { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.wd-addr { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
.wd-addr code { flex: 1; font-family: var(--font-mono); font-size: 12.5px; padding: 10px 12px; background: var(--raised); border: 1px solid var(--line); border-radius: 10px; word-break: break-all; }
.wd-addr .btn { min-height: 40px; padding: 0 16px; font-size: 13px; }
.wd-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.wd-actions input { flex: 1; min-width: 200px; height: 42px; padding: 0 14px; background: var(--raised); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-family: var(--font-mono); font-size: 13px; outline: none; }
.wd-actions input:focus { border-color: var(--ice); }
.wd-actions .btn { min-height: 42px; font-size: 13px; }
.wd-done { margin-top: 12px; font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.wd-done a { color: var(--ice); }

/* ---------- v5 fixes ---------- */
.fair-grid > div { min-width: 0; }
.code { max-width: 100%; }
.acc-pane .account-box { max-width: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:disabled:hover { filter: none; }
.account-box { max-width: none; }


/* =========================================================
   v6 — home lobby, games (limbo / crash / mines / blackjack),
   chat rules popup, cookie notice
   ========================================================= */
.livechat[hidden], .livechat-fab[hidden] { display: none !important; }

/* ---------- home ---------- */
.home-top { padding: 4px 0 30px; }
.home-top .welcome-block { margin-bottom: 0; }
.guest-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; max-width: 560px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.guest-card h2 { font-family: var(--font-display); font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
.guest-card p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.guest-card .gc-btns { display: flex; gap: 8px; }
html.is-authed .guest-card { display: none; }
.home-search { position: relative; max-width: 520px; margin-bottom: 22px; }
.home-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.home-search input { width: 100%; height: 50px; padding: 0 16px 0 46px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--text); font: inherit; font-size: 15px; outline: none; transition: border-color var(--speed); }
.home-search input::placeholder { color: var(--faint); }
.home-search input:focus { border-color: var(--ice); }
.lobby { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.lobby .game-card { display: block; color: inherit; border-radius: 16px; background: var(--surface); }
.lobby .game-art { aspect-ratio: 4 / 3; background: var(--raised); display: grid; place-items: center; }
.lobby .game-art::before, .lobby .game-art::after { display: none; }
.lobby .game-card:hover { border-color: var(--ice); transform: none; }
.lobby .game-card.hide { display: none; }
.no-games { display: none; color: var(--muted); padding: 30px 0; font-size: 15px; }
.no-games.show { display: block; }
.art-num { font-family: var(--font-mono); font-size: 40px; font-weight: 500; letter-spacing: -.03em; transition: color var(--speed); }
.game-card:hover .art-num { color: var(--ice); }
.art-svg { width: 62%; max-width: 150px; height: auto; fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke var(--speed); }
.art-svg .ac { stroke: var(--ice); }
.game-card:hover .art-svg:not(.keep) { stroke: var(--white); }
.art-mines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 96px; }
.art-mines i { aspect-ratio: 1; border-radius: 7px; background: var(--void); border: 1px solid var(--line-strong); }
.art-mines i.g { border-color: var(--ice); position: relative; }
.art-mines i.g::after { content: ""; position: absolute; inset: 30%; background: var(--ice); transform: rotate(45deg); border-radius: 2px; }
.art-cards { position: relative; width: 112px; height: 80px; }
.art-cards b { position: absolute; top: 0; width: 54px; height: 76px; border-radius: 8px; background: var(--white); color: #000; font-family: var(--font-mono); font-size: 20px; font-weight: 600; display: grid; place-items: center; }
.art-cards b:first-child { left: 0; transform: rotate(-8deg); }
.art-cards b:last-child { right: 0; transform: rotate(8deg); }

/* ---------- shared game bits ---------- */
.g-select { width: 100%; height: 48px; padding: 0 14px; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; color: var(--text); font-family: var(--font-mono); font-size: 15px; outline: none; }
.g-select:focus { border-color: var(--ice); }
.g-field { position: relative; }
.g-field input { width: 100%; height: 48px; padding: 0 40px 0 14px; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; color: var(--text); font-family: var(--font-mono); font-size: 16px; outline: none; transition: border-color var(--speed); }
.g-field input:focus { border-color: var(--ice); }
.g-field .suf { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-family: var(--font-mono); pointer-events: none; }
.g-hint { color: var(--faint); font-size: 12px; margin-top: 6px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.big-mult { font-family: var(--font-mono); font-weight: 500; font-size: clamp(64px, 11vw, 120px); letter-spacing: -.05em; text-align: center; margin: 30px 0 22px; line-height: 1; transition: color .18s; }
.big-mult.win { color: var(--win); } .big-mult.loss { color: var(--loss); }
.stage-note { text-align: center; font-family: var(--font-mono); font-size: 13px; color: var(--muted); min-height: 20px; }
.stage-note.win { color: var(--win); } .stage-note.loss { color: var(--loss); }
.bets td.neutral { color: var(--muted); }
.cap { text-transform: capitalize; }

/* ---------- crash ---------- */
.crash-canvas { width: 100%; height: 260px; display: block; background: var(--void); border: 1px solid var(--line); border-radius: 14px; margin-top: 4px; }
.crash-stage .big-mult { margin: 22px 0 14px; }

/* ---------- mines ---------- */
.mines-board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; max-width: 460px; margin: 22px auto 8px; }
.mine-tile { aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--raised); cursor: pointer; display: grid; place-items: center; padding: 0; transition: border-color var(--speed), background var(--speed), transform .12s; }
.mine-tile:hover:not(:disabled):not(.open) { border-color: var(--ice); transform: translateY(-2px); }
.mine-tile:disabled { cursor: default; }
.mine-tile svg { width: 46%; height: 46%; }
.mine-tile.gem { background: var(--void); border-color: var(--ice); }
.mine-tile.gem svg { fill: var(--ice); }
.mine-tile.bomb { background: var(--void); border-color: var(--loss); }
.mine-tile.bomb svg { fill: none; stroke: var(--loss); stroke-width: 2; stroke-linecap: round; }
.mine-tile.ghost { opacity: .45; background: var(--void); }
.mine-tile.ghost svg { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.mine-tile.pop { animation: tilePop .22s ease-out; }
@keyframes tilePop { from { transform: scale(.86); } to { transform: scale(1); } }

/* ---------- blackjack ---------- */
.bj-table { display: flex; flex-direction: column; gap: 26px; padding: 4px 0; }
.bj-row h4 { font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; margin-bottom: 12px; }
.bj-row h4 b { color: var(--text); font-weight: 500; }
.bj-cards { display: flex; gap: 10px; flex-wrap: wrap; min-height: 104px; }
.pcard { width: 70px; height: 100px; border-radius: 10px; background: var(--white); color: #000; padding: 8px 9px; display: flex; flex-direction: column; justify-content: space-between; font-family: var(--font-mono); font-size: 20px; font-weight: 600; line-height: 1; animation: dealIn .28s ease-out; }
.pcard .s { font-size: 26px; align-self: flex-end; font-weight: 400; }
.pcard.back { background: var(--raised); border: 1px solid var(--line-strong); color: var(--faint); align-items: center; justify-content: center; }
.pcard.back::after { content: ""; width: 26px; height: 26px; border: 1px solid var(--line-strong); transform: rotate(45deg); border-radius: 4px; }
.bj-result { text-align: center; font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: -.01em; min-height: 32px; }
.bj-result.win { color: var(--win); } .bj-result.loss { color: var(--loss); } .bj-result.push { color: var(--muted); }
.bj-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@keyframes dealIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) { .pcard { width: 56px; height: 82px; font-size: 17px; } .pcard .s { font-size: 21px; } .bj-cards { min-height: 86px; } .mines-board { gap: 7px; } }

/* ---------- chat rules popup ---------- */
.lc-rules-overlay { position: fixed; inset: 0; z-index: 400; background: rgba(0,0,0,.78); display: grid; place-items: center; padding: 18px; overflow-y: auto; }
.lc-rules-card { position: relative; width: 100%; max-width: 480px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 20px; padding: 28px 26px 24px; }
.lc-rules-card h3 { font-family: var(--font-display); font-size: 24px; font-weight: 500; letter-spacing: -.02em; margin: 6px 0 8px; }
.lc-rules-x { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.lc-rules-x:hover { color: var(--text); border-color: var(--line-strong); }
.lcr-sub { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 14px; }
.lcr-list { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 9px; }
.lcr-list li { background: var(--raised); border-radius: 10px; padding: 10px 13px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.lcr-list li b { color: var(--text); font-weight: 600; }
.lcr-check { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--muted); margin-bottom: 16px; cursor: pointer; }
.lcr-check input { margin-top: 3px; width: 17px; height: 17px; accent-color: #64D2FF; flex: none; }
.lcr-check a { color: var(--ice); }
.lc-rules a { color: var(--ice); }

/* ---------- cookie notice ---------- */
.cookie-note { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 350; width: calc(100% - 32px); max-width: 640px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; padding: 18px 20px; display: flex; gap: 18px; align-items: center; box-shadow: 0 12px 40px rgba(0,0,0,.6); animation: dealIn .3s ease-out; }
.cookie-note p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; flex: 1; }
.cookie-note p b { color: var(--text); font-weight: 600; }
.cookie-note a { color: var(--ice); }
.cookie-note .btn { flex: none; min-height: 42px; padding: 0 22px; }
@media (max-width: 560px) { .cookie-note { flex-direction: column; align-items: stretch; gap: 12px; bottom: 12px; } }

/* ---------- admin helper (shared) ---------- */

/* admin users: balance + IPs */
.ur-name .ur-vip { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 1px 7px; margin-left: 6px; }
.ur-bal { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 3px; }
.ur-bal b { color: var(--text); font-weight: 500; }
.ur-ips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ur-ip { font-family: var(--font-mono); font-size: 11px; padding: 2px 8px; border-radius: 6px; background: var(--raised); border: 1px solid var(--line); color: var(--muted); }
.ur-ip.shared { color: var(--text); border-color: var(--ice); }
.ur-ip.none { color: var(--faint); }
.ur-balinp { width: 96px; height: 36px; padding: 0 10px; background: var(--raised); border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-family: var(--font-mono); font-size: 13px; outline: none; }
.ur-balinp:focus { border-color: var(--ice); }
.ur-balinp.bad { border-color: var(--loss); }
.user-search { width: 100%; max-width: 380px; height: 42px; margin: 0 20px 12px; padding: 0 14px; background: var(--raised); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font: inherit; font-size: 14px; outline: none; display: block; }
.user-search:focus { border-color: var(--ice); }
.home-search { display: block; }
.home-top { padding-top: 14px; }
@media (max-width: 560px) { .lobby { grid-template-columns: repeat(2, 1fr); gap: 12px; } .lobby .game-art { aspect-ratio: 1 / 0.8; } .art-num { font-size: 28px; } .game-info { padding: 13px; } .lobby .game-meta { display: none; } .art-cards { transform: scale(.8); } }

/* ---------- v7: collapsed nav label, Sports (soon), flags, admin detail + stats ---------- */
html.nav-collapsed .nav-section-label, html.nav-collapsed .nav-section-label.auth-only { display: none !important; }
.nav-item.is-soon { opacity: .5; cursor: not-allowed; pointer-events: none; user-select: none; }
.flag { width: 20px; height: 15px; border-radius: 3px; object-fit: cover; vertical-align: -2px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.flag-unk { display: inline-grid; place-items: center; min-width: 20px; height: 15px; padding: 0 3px; border-radius: 3px; background: var(--raised); border: 1px solid var(--line-strong); color: var(--muted); font-family: var(--font-mono); font-size: 9px; vertical-align: -2px; }
.tk-info { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; width: 100%; margin-top: 12px; padding: 12px 14px; background: var(--raised); border-radius: 12px; font-size: 13px; }
.tk-info span em { display: block; font-style: normal; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.tk-info .btn { margin-left: auto; min-height: 34px; padding: 0 14px; }
.ur-open { color: inherit; text-decoration: none; border-bottom: 1px dashed var(--line-strong); }
.ur-open:hover { color: var(--ice); border-color: var(--ice); }
.um-overlay { position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,.8); display: grid; place-items: start center; padding: 28px 16px; overflow-y: auto; }
.um-card { position: relative; width: 100%; max-width: 980px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 20px; padding: 28px; }
.um-x { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 24px; cursor: pointer; }
.um-x:hover { color: var(--text); border-color: var(--line-strong); }
.um-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; padding-right: 44px; }
.um-head h2 { font-family: var(--font-display); font-size: 26px; font-weight: 500; letter-spacing: -.02em; }
.um-role { font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.um-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.um-kv { background: var(--raised); border-radius: 12px; padding: 11px 14px; }
.um-kv span { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.um-kv b { font-weight: 500; font-size: 14px; word-break: break-word; }
.um-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 500; margin: 26px 0 10px; }
.um-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; max-height: 320px; overflow-y: auto; }
.um-table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 560px; }
.um-table th { text-align: left; position: sticky; top: 0; background: var(--surface); font-family: var(--font-mono); font-size: 10px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 9px 12px; }
.um-table td { padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.um-ua { display: block; max-width: 340px; color: var(--muted); font-size: 11.5px; word-break: break-word; }
.um-empty { color: var(--muted); font-size: 13px; padding: 12px 2px; }
.um-note { color: var(--faint); font-size: 12px; line-height: 1.6; margin-top: 10px; }
.mono { font-family: var(--font-mono); }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 1100px) { .stats-grid { grid-template-columns: 1fr; } }
.cbars { display: flex; flex-direction: column; gap: 9px; margin-top: 8px; }
.cbar { display: grid; grid-template-columns: 150px 1fr 86px; gap: 12px; align-items: center; font-size: 13px; }
.cb-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-track { height: 10px; background: var(--raised); border-radius: 999px; overflow: hidden; }
.cb-track i { display: block; height: 100%; background: var(--ice); border-radius: 0 999px 999px 0; }
.cb-val { font-family: var(--font-mono); text-align: right; }
.cb-val em { font-style: normal; color: var(--muted); font-size: 11px; margin-left: 4px; }
.rwrap { position: relative; margin-top: 8px; }
.rsvg { width: 100%; height: auto; display: block; }
.rg { stroke: rgba(255,255,255,.08); stroke-width: 1; }
.rt { fill: #6b7178; font-family: var(--font-mono); font-size: 10px; }
.rb { fill: #64D2FF; }
.rbar:hover .rb { fill: #fff; }
.rtip { position: absolute; pointer-events: none; padding: 6px 10px; background: var(--void); border: 1px solid var(--line-strong); border-radius: 8px; font-family: var(--font-mono); font-size: 12px; white-space: nowrap; }
.rtip[hidden] { display: none; }


/* =========================================================
   v8 — blackjack table + dealer, crash multiplayer, sound button,
   maintenance page / bar
   ========================================================= */
.stage-top { gap: 12px; }
.stage-top a { margin-left: auto; }
.sfx-btn { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; padding: 0; flex: none; transition: color var(--speed), border-color var(--speed); }
.sfx-btn:hover { color: var(--text); border-color: var(--line-strong); }
.sfx-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
kbd { font-family: var(--font-mono); font-size: 10px; margin-left: 8px; padding: 1px 5px; border: 1px solid currentColor; border-radius: 4px; opacity: .55; font-weight: 500; }

/* ---------- blackjack ---------- */
.bj-stage { padding-bottom: 22px; }
.bj-felt { position: relative; margin-top: 16px; padding: 16px 12px 18px; background: var(--void); border: 1px solid var(--line); border-radius: 18px; min-height: 600px; display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.bj-arc { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 56%; pointer-events: none; }
.arc-text { font-family: var(--font-mono); font-size: 11px; letter-spacing: .32em; fill: rgba(255,255,255,.18); }
.bj-dealer-zone { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 168px; }
.dealer-fig { width: 190px; height: 168px; position: relative; }
.dealer-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.dealer-svg .d-body, .dealer-svg .d-head { animation: dBreath 4.2s ease-in-out infinite; transform-box: fill-box; }
.dealer-svg .d-head { animation-name: dHead; }
.dealer-svg .d-eyes { transform-box: fill-box; transform-origin: center; animation: dBlink 5s infinite; }
.dealer-svg .d-arm { transition: transform .12s; }
.dealer-fig.dealing .d-arm { animation: dDeal .42s ease-in-out; }
.dealer-fig.dealing .d-head { animation: dNod .42s ease-in-out; }
@keyframes dBreath { 0%,100% { transform: translateY(0); } 50% { transform: translateY(1.6px); } }
@keyframes dHead { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(1.2px) rotate(-.6deg); } }
@keyframes dBlink { 0%,93%,100% { transform: scaleY(1); } 96% { transform: scaleY(.08); } }
@keyframes dDeal { 0% { transform: rotate(0); } 40% { transform: rotate(-38deg) translateX(-8px); } 100% { transform: rotate(0); } }
@keyframes dNod { 0%,100% { transform: translateY(0); } 40% { transform: translateY(3px) rotate(1.2deg); } }
.bj-shoe { position: absolute; right: calc(50% - 190px); bottom: 18px; width: 62px; height: 74px; }
.bj-shoe i { position: absolute; left: 0; width: 56px; height: 62px; border-radius: 8px; background: var(--raised); border: 1px solid var(--line-strong); }
.bj-shoe i:nth-child(1) { top: 10px; left: 6px; opacity: .5; } .bj-shoe i:nth-child(2) { top: 5px; left: 3px; opacity: .75; } .bj-shoe i:nth-child(3) { top: 0; background: var(--raised) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M6 0L12 6 6 12 0 6Z' fill='none' stroke='%2364D2FF' stroke-opacity='.35'/%3E%3C/svg%3E"); }
.bj-hand { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.dealer-hand { margin-top: 6px; }
.player-hand { margin-top: auto; padding-top: 6px; }
.bj-label { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.bj-total { min-width: 30px; text-align: center; padding: 3px 9px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line-strong); color: var(--text); font-weight: 500; font-size: 12px; letter-spacing: 0; transition: border-color .2s, color .2s; }
.bj-total.good { border-color: var(--ice); }
.bj-total.bust { color: var(--loss); border-color: var(--loss); }
.bj-cards { display: flex; justify-content: center; min-height: 112px; }
.bj-cards .pcard + .pcard { margin-left: -34px; }
.pcard { position: relative; width: 78px; height: 112px; border-radius: 10px; background: #F4F4F6; color: #0C0C0E; font-family: var(--font-mono); box-shadow: 0 6px 18px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.4); flex: none; user-select: none; }
.pcard .cr { position: absolute; display: flex; flex-direction: column; align-items: center; line-height: 1; font-size: 19px; font-weight: 600; gap: 2px; }
.pcard .cr.tl { top: 7px; left: 8px; } .pcard .cr.br { bottom: 7px; right: 8px; transform: rotate(180deg); }
.pcard .cr em { font-style: normal; font-size: 15px; font-weight: 400; }
.pcard .mid { position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; font-weight: 400; }
.pcard.back { background: #1C1C21 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath d='M7 0L14 7 7 14 0 7Z' fill='none' stroke='%2364D2FF' stroke-opacity='.28'/%3E%3C/svg%3E"); box-shadow: 0 6px 18px rgba(0,0,0,.55), 0 0 0 1px #3a3a42; }
.pcard.back::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(100,210,255,.4); border-radius: 6px; }
.bj-banner { position: relative; z-index: 3; margin: 14px 0 6px; min-height: 46px; display: flex; align-items: center; justify-content: center; }
.bj-banner span { display: inline-block; padding: 9px 22px; border-radius: 999px; font-family: var(--font-display); font-size: 20px; font-weight: 500; letter-spacing: -.01em; background: var(--surface); border: 1px solid var(--line-strong); animation: bannerIn .32s cubic-bezier(.2,.9,.3,1.3); }
.bj-banner .win { color: var(--win); border-color: rgba(48,209,88,.55); } .bj-banner .loss { color: var(--loss); border-color: rgba(255,24,65,.55); } .bj-banner .push { color: var(--muted); }
@keyframes bannerIn { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.bj-chipwrap { margin-left: 4px; }
.bj-chip { display: inline-grid; place-items: center; min-width: 54px; height: 28px; padding: 0 12px; border-radius: 999px; border: 2px dashed var(--ice); background: var(--surface); color: var(--text); font-size: 12px; letter-spacing: 0; animation: bannerIn .25s ease-out; }
.bj-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bj-actions .btn { padding: 0 8px; }
.bj-rules { list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: 12.5px; }
.bj-rules b { color: var(--text); font-weight: 600; }
@media (max-width: 560px) {
    .pcard { width: 62px; height: 90px; } .pcard .cr { font-size: 15px; } .pcard .cr em { font-size: 12px; } .pcard .mid { font-size: 30px; }
    .bj-cards { min-height: 92px; } .bj-cards .pcard + .pcard { margin-left: -28px; }
    .dealer-fig { width: 150px; height: 134px; } .bj-dealer-zone { height: 134px; } .bj-shoe { right: calc(50% - 150px); transform: scale(.8); }
    .bj-felt { min-height: 540px; } .arc-text { font-size: 9px; }
}

/* ---------- crash (multiplayer) ---------- */
.cr-chart { position: relative; margin-top: 14px; border-radius: 16px; overflow: hidden; background: var(--void); border: 1px solid var(--line); }
.cr-chart .crash-canvas { height: 360px; border: 0; margin: 0; border-radius: 0; }
.cr-center { position: absolute; left: 0; right: 250px; top: 70px; text-align: center; pointer-events: none; }
.cr-center .big-mult { margin: 0; font-size: clamp(56px, 9vw, 104px); text-shadow: 0 2px 0 var(--void); }
.cr-sub { margin-top: 8px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); min-height: 18px; }
.cr-sub.win { color: var(--win); } .cr-sub.loss { color: var(--loss); }
.cr-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--raised); }
.cr-bar i { display: block; height: 100%; width: 0; background: var(--ice); }
.cr-players { position: absolute; top: 10px; right: 10px; width: 232px; max-height: 322px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding: 8px; background: rgba(12,12,14,.86); border: 1px solid var(--line); border-radius: 12px; font-size: 12.5px; }
.cr-players:empty::before { content: "No bets yet"; color: var(--faint); font-family: var(--font-mono); font-size: 11px; padding: 4px 6px; letter-spacing: .08em; text-transform: uppercase; }
.cr-p { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; padding: 5px 6px; border-radius: 8px; background: var(--raised); }
.cr-p.me { border: 1px solid var(--ice); padding: 4px 5px; }
.cr-p .av { width: 22px; height: 22px; border-radius: 50%; background: var(--void); border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 10px; font-weight: 600; color: var(--text); }
.cr-p .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-p .am { display: block; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.cr-p .st { font-family: var(--font-mono); font-size: 11.5px; text-align: right; color: var(--muted); }
.cr-p.won .st { color: var(--win); } .cr-p.lost .st { color: var(--loss); }
.cr-status { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12.5px; padding-top: 4px; border-top: 1px solid var(--line); margin-top: 2px; padding-top: 14px; }
.cr-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.cr-status.live .dot { background: var(--win); }
@media (max-width: 700px) { .cr-center { right: 0; } .cr-players { position: static; width: auto; max-height: 150px; border-radius: 0; border: 0; border-top: 1px solid var(--line); } .cr-chart .crash-canvas { height: 280px; } .cr-center { top: 44px; } }

/* ---------- maintenance ---------- */
.maint-body { background: var(--void); min-height: 100vh; }
.maint { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 20px; gap: 26px; }
.maint-card { width: 100%; max-width: 520px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 44px 32px 36px; }
.maint-card h1 { font-family: var(--font-display); font-size: clamp(26px, 5vw, 36px); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; margin: 12px 0 14px; }
.maint-card p { color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 400px; margin: 0 auto 26px; }
.maint-status { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--raised); font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.maint-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ice); animation: mPulse 1.6s ease-in-out infinite; }
@keyframes mPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.maint-foot { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--faint); text-transform: uppercase; }
.maint-ripple { position: relative; width: 120px; height: 120px; margin: 0 auto 18px; display: grid; place-items: center; }
.maint-ripple i { position: absolute; inset: 0; border: 1px solid var(--ice); border-radius: 50%; opacity: 0; animation: mRipple 3.6s ease-out infinite; }
.maint-ripple i:nth-child(2) { animation-delay: 1.2s; } .maint-ripple i:nth-child(3) { animation-delay: 2.4s; }
@keyframes mRipple { 0% { transform: scale(.45); opacity: .7; } 100% { transform: scale(1.15); opacity: 0; } }
.maint-ripple .logo-tile { position: relative; width: 56px; height: 56px; font-size: 26px; }
.maint-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 600; background: var(--ice); color: #000; text-align: center; font-size: 12.5px; font-weight: 600; padding: 6px 12px; letter-spacing: .02em; }
.maint-bar a { color: #000; text-decoration: underline; }
body.has-maint-bar .sidebar, body.has-maint-bar .wallet-topbar, body.has-maint-bar .menu-toggle { margin-top: 28px; }
.sys-card { max-width: 640px; }
.sys-state { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 13px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--raised); margin: 4px 0 16px; }
.sys-state i { width: 9px; height: 9px; border-radius: 50%; background: var(--win); }
.sys-state.on i { background: var(--loss); }
.sys-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sys-warn { color: var(--loss); font-size: 13px; margin: 0 0 12px; line-height: 1.55; }

/* ---------- chat: tips, rain, big wins ---------- */
.lc-event { display: flex; gap: 10px; align-items: flex-start; margin: 6px 8px; padding: 9px 11px; border-radius: 12px; font-size: 12.5px; line-height: 1.4; border: 1px solid var(--line); background: var(--raised, rgba(255,255,255,.04)); color: var(--text); }
.lc-event b { font-weight: 600; } .lc-event em { font-style: normal; font-weight: 700; font-family: var(--font-mono); }
.lc-event small { color: var(--muted); font-size: 11.5px; }
.lc-ev-ico { font-size: 17px; line-height: 1.2; flex: none; }
.lc-event.tip { border-color: rgba(48,209,88,.35); } .lc-event.tip em { color: var(--win); }
.lc-event.rain { border-color: rgba(10,190,255,.4); background: linear-gradient(135deg, rgba(10,190,255,.10), rgba(10,190,255,.02)); } .lc-event.rain em { color: var(--ice); }
.lc-event.rain.got { box-shadow: 0 0 0 1px var(--ice), 0 0 18px rgba(10,190,255,.35); }
.lc-event.win { border-color: rgba(255,200,60,.45); background: linear-gradient(135deg, rgba(255,200,60,.12), rgba(255,200,60,.02)); } .lc-event.win em { color: #ffc83c; }
.lc-event.fresh { animation: lcEv .5s ease-out; }
@keyframes lcEv { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.lc-money { border-top: 1px solid var(--line); padding: 10px 12px; display: grid; gap: 8px; }
.lc-money-tabs { display: flex; gap: 6px; }
.lc-money-tabs button { flex: 1; min-height: 32px; border-radius: 8px; border: 1px solid var(--line); background: none; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.lc-money-tabs button.on { color: var(--text); border-color: var(--ice); background: rgba(10,190,255,.1); }
.lc-money-form { display: grid; grid-template-columns: 1fr 84px auto; gap: 6px; }
.lc-money-form[hidden] { display: none; }
.lc-money-form input { min-width: 0; min-height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-strong, var(--line)); background: var(--bg, #0c0c0e); color: var(--text); font: inherit; font-size: 13px; }
.lc-money-form .btn { min-height: 36px; padding: 0 14px; font-size: 13px; }
.lc-money-note { font-size: 10.5px; color: var(--faint); line-height: 1.4; } .lc-money-note code { font-family: var(--font-mono); }
.lc4 .lc-money-btn b { font-size: 16px; color: var(--win); }

/* chat tag for streamers */
.lc-tag.streamer { background: linear-gradient(90deg, rgba(168,85,247,.22), rgba(236,72,153,.2)); color: #e9b6ff; border: 1px solid rgba(192,132,252,.55); }
.lc4 .lc-av.streamer { border-color: rgba(192,132,252,.7); }
