/* GoldPulse v2.0 暗黑鎏金 Bento Grid + 高张力粒子微交互样式体系 */
:root {
    --bg: #090C12;
    --bg-elev: #0F141E;
    --surface: #141B27;
    --surface-2: #1B2434;
    --surface-hover: #232F44;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(245, 158, 11, 0.36);

    --text: #F4F6FA;
    --text-sec: #A7B1C4;
    --text-muted: #6C7890;

    --gold: #F59E0B;
    --gold-bright: #FCD34D;
    --gold-deep: #D97706;
    --gold-glow: rgba(245, 158, 11, 0.28);

    --green: #10B981;
    --green-soft: rgba(16, 185, 129, 0.15);
    --red: #EF4444;
    --red-soft: rgba(239, 68, 68, 0.15);
    --cyan: #38BDF8;
    --cyan-soft: rgba(56, 189, 248, 0.14);

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --sidebar-w: 242px;
    --topbar-h: 64px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow-x: hidden; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 15% 0%, rgba(245, 158, 11, 0.11), transparent 36%),
        radial-gradient(circle at 85% 10%, rgba(16, 185, 129, 0.06), transparent 32%),
        var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
body.drawer-open { overflow: hidden; }
body.jackpot-shake { animation: gpShake 0.42s ease-in-out; }

@keyframes gpShake {
    0%, 100% { transform: translate3d(0, 0, 0); }
    20% { transform: translate3d(-5px, 2px, 0); }
    40% { transform: translate3d(5px, -2px, 0); }
    60% { transform: translate3d(-3px, 2px, 0); }
    80% { transform: translate3d(3px, -1px, 0); }
}

/* 全局礼花粒子层与飘字层 */
#fxCanvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 95;
}
.float-pop {
    position: fixed;
    left: 50%;
    top: 34%;
    transform: translate(-50%, 0);
    pointer-events: none;
    z-index: 96;
    font-size: 28px;
    font-weight: 900;
    color: var(--gold-bright);
    text-shadow: 0 4px 24px rgba(245, 158, 11, 0.65), 0 2px 6px rgba(0, 0, 0, 0.9);
    animation: gpFloatUp 1.25s var(--ease) forwards;
}
.float-pop.big { font-size: 40px; color: #34D399; }
@keyframes gpFloatUp {
    0% { opacity: 0; transform: translate(-50%, 18px) scale(0.8); }
    20% { opacity: 1; transform: translate(-50%, -6px) scale(1.08); }
    100% { opacity: 0; transform: translate(-50%, -74px) scale(1); }
}

.gp-icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.app-shell {
    display: flex;
    min-height: 100vh;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* 左侧导航栏 */
.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--bg-elev);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 12px 14px;
    z-index: 40;
    overflow-y: auto;
    transition: transform 0.28s var(--ease);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
}
.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    color: #090C12;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 20px var(--gold-glow);
}
.brand-title { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.brand-tag { font-size: 11px; color: var(--gold); font-weight: 600; }

.nav-group-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    padding: 12px 10px 6px;
    text-transform: uppercase;
}

.nav-item {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 11px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-sec);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.12s;
    margin-bottom: 2px;
}
.nav-item:hover { background: var(--surface); color: var(--text); }
.nav-item:active { transform: scale(0.985); }
.nav-item.active {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.04));
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--gold-bright);
    font-weight: 600;
}
.nav-pill {
    margin-left: auto;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 99px;
    background: var(--surface-2);
    color: var(--text-muted);
}
.nav-pill.plugin { background: var(--cyan-soft); color: #7DD3FC; }

.sidebar-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.disclaimer-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.22);
    color: #6EE7B7;
    font-size: 11px;
}

.drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 11, 0.72);
    z-index: 35;
}
.drawer-backdrop.show { display: block; }

.main-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* 顶部栏 */
.topbar {
    position: sticky;
    top: 0;
    z-index: 25;
    min-height: var(--topbar-h);
    padding: env(safe-area-inset-top, 0px) 22px 0;
    background: rgba(9, 12, 18, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 10px; }

.hamburger-btn {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mode-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 99px;
    background: var(--cyan-soft);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #7DD3FC;
    white-space: nowrap;
}

.wallet-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 7px 5px 13px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    box-shadow: 0 0 26px rgba(245, 158, 11, 0.12);
}
.wallet-coin-icon { color: var(--gold-bright); display: flex; }
.wallet-amount {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    min-width: 54px;
    transition: color 0.2s, transform 0.2s;
}
.wallet-amount.bump { color: var(--green); transform: scale(1.08); }

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-sec);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* 通用按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.12s var(--ease), filter 0.15s, background 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-gold {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    color: #090C12;
    box-shadow: 0 6px 22px var(--gold-glow);
}
.btn-gold:hover:not(:disabled) { filter: brightness(1.07); box-shadow: 0 8px 28px rgba(245, 158, 11, 0.36); }
.btn-green {
    background: linear-gradient(135deg, #34D399, #059669);
    color: #052218;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.28);
}
.btn-sec {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text);
}
.btn-sec:hover:not(:disabled) { background: var(--surface-hover); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 12px; border-radius: 8px; }

.content {
    padding: 20px 22px 40px;
    max-width: 1360px;
    width: 100%;
    margin: 0 auto;
}

.cheat-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.16), rgba(16, 185, 129, 0.08));
    border: 1px solid rgba(56, 189, 248, 0.36);
    color: #BAE6FD;
    font-size: 13px;
    margin-bottom: 16px;
}

/* 精简高冲击力首屏 */
.hero-compact {
    background: linear-gradient(135deg, #172031 0%, #101622 100%);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 22px 26px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}
.hero-compact::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -40px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.22), transparent 68%);
    pointer-events: none;
}
.hero-title { font-size: 23px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }
.hero-desc { color: var(--text-sec); font-size: 13.5px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 2; }

/* 分类筛选条 */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tab {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 99px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-sec);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.16s;
}
.filter-tab.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(245, 158, 11, 0.08));
    border-color: var(--gold);
    color: var(--gold-bright);
}

/* 游戏卡片网格 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 24px;
}
.game-card {
    background: linear-gradient(180deg, #171F2E 0%, #121824 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.2s;
}
.game-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), 0 0 24px rgba(245, 158, 11, 0.12);
}
.game-card-top { display: flex; align-items: center; justify-content: space-between; }
.game-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--gold-bright);
    display: grid;
    place-items: center;
}
.game-icon-box.plugin {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.3);
    color: #7DD3FC;
}
.rtp-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 99px;
    background: var(--green-soft);
    color: #6EE7B7;
}
.rtp-badge.plugin { background: var(--cyan-soft); color: #7DD3FC; }
.game-card h3 { font-size: 16px; font-weight: 700; }
.game-card p { font-size: 12.5px; color: var(--text-sec); flex: 1; }
.game-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

/* 插件剧场容器 */
.plugin-theater {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.55);
}
.plugin-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    gap: 10px;
    flex-wrap: wrap;
}
.plugin-frame-wrap {
    width: 100%;
    height: min(74vh, 720px);
    min-height: 480px;
    background: #06080D;
    position: relative;
}
.plugin-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* 内置游戏工作台 */
.play-layout {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 18px;
    align-items: start;
}
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.section-head h2 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.field { margin-bottom: 14px; }
.field label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-sec);
    margin-bottom: 6px;
    font-weight: 500;
}
.input, select {
    width: 100%;
    min-height: 42px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 12px;
    color: var(--text);
    font-size: 14px;
    outline: none;
}
.input:focus, select:focus { border-color: var(--gold); }

.quick-bet-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 6px; }
.chip-btn {
    min-height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text-sec);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.chip-btn:hover { background: var(--surface-hover); color: var(--text); }

.seg-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg-btn {
    min-height: 38px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text-sec);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.seg-btn.active {
    background: rgba(245, 158, 11, 0.18);
    border-color: var(--gold);
    color: var(--gold-bright);
}

.stage-box {
    background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.11), transparent 58%), #0C111A;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.mini-stat { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px; }
.mini-stat-label { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.mini-stat-val { font-size: 18px; font-weight: 800; color: var(--text); }

.result-strip {
    margin-top: 16px;
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 14px;
}
.result-strip.win { background: var(--green-soft); border: 1px solid rgba(16, 185, 129, 0.38); color: #6EE7B7; }
.result-strip.lose { background: var(--red-soft); border: 1px solid rgba(239, 68, 68, 0.32); color: #FCA5A5; }
.result-strip.info { background: var(--surface-2); border: 1px solid var(--border); color: var(--text-sec); }

/* 各游戏舞台 */
.crash-display {
    font-size: 64px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--gold-bright);
    text-shadow: 0 0 38px rgba(245, 158, 11, 0.35);
    margin: 10px 0;
}
.crash-display.busted { color: var(--red); text-shadow: 0 0 38px rgba(239, 68, 68, 0.38); }
.crash-display.cashed { color: var(--green); text-shadow: 0 0 38px rgba(16, 185, 129, 0.38); }
.crash-canvas { width: 100%; max-width: 620px; height: 220px; border-radius: 12px; background: rgba(255,255,255,0.02); }
.peek-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 99px;
    background: var(--cyan-soft);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #7DD3FC;
    font-size: 12px;
    font-weight: 600;
}

.mines-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; width: 100%; max-width: 410px; }
.mine-cell {
    aspect-ratio: 1;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text-muted);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.14s var(--ease), background 0.16s, border-color 0.16s, box-shadow 0.16s;
}
.mine-cell:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--border-strong); background: var(--surface-hover); }
.mine-cell.gem { background: var(--green-soft); border-color: var(--green); color: var(--green); box-shadow: 0 0 18px rgba(16, 185, 129, 0.25); }
.mine-cell.bomb { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.mine-cell.peek-danger { border-color: rgba(239, 68, 68, 0.65); box-shadow: inset 0 0 0 2px rgba(239, 68, 68, 0.35); }
.mine-cell.peek-safe { border-color: rgba(56, 189, 248, 0.35); }

.slots-frame {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 560px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.4);
}
.slot-cell {
    aspect-ratio: 1.05;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-weight: 800;
    transition: transform 0.22s var(--ease), border-color 0.22s, box-shadow 0.22s;
}
.slot-cell.hit {
    border-color: var(--gold-bright);
    background: rgba(245, 158, 11, 0.18);
    box-shadow: 0 0 22px rgba(245, 158, 11, 0.42);
    transform: scale(1.06);
}
.slot-code { font-size: 11px; color: var(--text-sec); font-weight: 600; }

.dice-big { font-size: 62px; font-weight: 900; margin-bottom: 18px; }
.dice-bar-wrap { width: 100%; max-width: 560px; }
.dice-range { width: 100%; accent-color: var(--gold); height: 8px; cursor: pointer; }
.dice-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 560px; margin-top: 18px; }

.plinko-canvas { width: 100%; max-width: 540px; height: 340px; }
.plinko-slots { display: grid; grid-template-columns: repeat(13, 1fr); gap: 4px; width: 100%; max-width: 540px; margin-top: 8px; }
.plinko-slot {
    padding: 6px 2px;
    border-radius: 6px;
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    background: var(--surface-2);
    color: var(--text-sec);
    border: 1px solid var(--border);
}
.plinko-slot.high { background: rgba(245, 158, 11, 0.2); color: var(--gold-bright); border-color: rgba(245, 158, 11, 0.4); }
.plinko-slot.active { background: var(--green); color: #052218; transform: scale(1.1); }

.wheel-wrap { position: relative; width: 290px; height: 290px; display: grid; place-items: center; }
.wheel-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-top: 22px solid var(--gold-bright);
    z-index: 5;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.6));
}
.wheel-canvas { width: 280px; height: 280px; transition: transform 3.1s cubic-bezier(0.14, 0.85, 0.22, 1); }

/* 表格 */
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--text-muted); font-weight: 600; font-size: 12px; }
.text-green { color: var(--green); font-weight: 600; }
.text-red { color: var(--red); font-weight: 600; }
.text-gold { color: var(--gold-bright); font-weight: 700; }

/* 弹窗 & Toast */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 11, 0.78);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 60;
}
.modal-overlay.show { display: flex; }
.modal {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-head h3 { font-size: 18px; font-weight: 700; }

.toast-stack {
    position: fixed;
    top: calc(16px + env(safe-area-inset-top, 0px));
    right: 16px;
    z-index: 80;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 340px;
}
.toast {
    padding: 12px 15px;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}
.toast.ok { border-color: rgba(16, 185, 129, 0.45); color: #A7F3D0; }
.toast.err { border-color: rgba(239, 68, 68, 0.45); color: #FECACA; }

.empty-state { text-align: center; padding: 40px 16px; color: var(--text-muted); }

@media (max-width: 1180px) {
    .games-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
    .games-grid { grid-template-columns: repeat(2, 1fr); }
    .play-layout { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-105%);
    }
    .sidebar.open { transform: translateX(0); }
    .hamburger-btn { display: inline-flex; }
    .mode-badge { display: none; }
    .topbar { padding: env(safe-area-inset-top, 0px) 14px 0; }
    .content { padding: 16px 14px 36px; }
    .games-grid { grid-template-columns: 1fr; }
    .crash-display, .dice-big { font-size: 46px; }
    .plinko-slot { font-size: 9px; padding: 4px 1px; }
}
