/* ═══════════════════════════════════════════
   GRAND NOIR BLACKJACK  —  style.css
   Monte Carlo private room aesthetic
   ═══════════════════════════════════════════ */

:root {
    /* Palette */
    --felt: #0b2416;
    --felt-hi: #0f2e1c;
    --felt-edge: #071509;
    --gold: #C9A44A;
    --gold-hi: #E8C96A;
    --gold-line: rgba(201, 164, 74, 0.32);
    --gold-glow: rgba(201, 164, 74, 0.18);
    --ivory: #F3E9D2;
    --ivory-mid: rgba(243, 233, 210, 0.55);
    --ivory-lo: rgba(243, 233, 210, 0.22);
    --red-card: #C0281E;
    --bg: #07100b;
    --panel: rgba(0, 0, 0, 0.42);
    --border: rgba(201, 164, 74, 0.28);
    --amber: #E9A825;
    --green-win: #34d399;
    --red-lose: #f87171;
    --blue-push: #60a5fa;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth
}

body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    background: var(--bg);
    min-height: 100vh;
    color: var(--ivory);
    overflow-x: hidden;
}

/* Particle canvas */
#fx-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    width: 100%;
    height: 100%;
}

/* Ambient background layers */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 90% 55% at 50% -5%, rgba(201, 164, 74, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 70% 70% at 50% 110%, rgba(11, 36, 22, 0.95) 0%, transparent 65%);
}

/* Micro-grid texture */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(201, 164, 74, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 164, 74, 0.04) 1px, transparent 1px);
    background-size: 44px 44px;
}

/* ── Layout wrapper ── */
.page {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 16px 72px;
}

/* All direct children of body that aren't canvas get z-index */
body>*:not(#fx-canvas) {
    position: relative;
    z-index: 1;
}

.site-header,
.hud,
.table-wrap,
.bet-panel,
.action-row,
.status-line,
.accordion,
.toast {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

/* ══ HEADER ══ */
.site-header {
    text-align: center;
    padding: 28px 24px 18px;
}

.header-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.rule-line {
    height: 1px;
    flex: 1;
    max-width: 140px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.rule-gem {
    color: var(--gold);
    font-size: 0.6em;
    filter: drop-shadow(0 0 6px var(--gold));
}

.rule-text {
    font-family: 'Cormorant SC', serif;
    font-size: 0.68em;
    font-weight: 300;
    letter-spacing: 7px;
    color: var(--gold);
    opacity: 0.75;
}

h1 {
    font-family: 'Cormorant SC', serif;
    font-size: clamp(2.6em, 7vw, 4.4em);
    font-weight: 700;
    letter-spacing: 10px;
    line-height: 1;
    background: linear-gradient(150deg, #7a5610 0%, #E8C96A 38%, #C9A44A 65%, #7a5610 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 18px rgba(201, 164, 74, 0.3));
}

.header-sub {
    font-family: 'DM Mono', monospace;
    font-size: 0.58em;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--ivory-mid);
    margin-top: 8px;
}

/* ══ HUD ══ */
.hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 28px;
    background: rgba(0, 0, 0, 0.45);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 8px 24px;
}

.hud-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.hud-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.52em;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ivory-lo);
}

.hud-value {
    font-family: 'DM Mono', monospace;
    font-size: 1.1em;
    font-weight: 500;
    color: var(--ivory);
    transition: all 0.3s;
}

.hud-value.gold {
    color: var(--gold-hi);
    text-shadow: 0 0 12px rgba(232, 201, 106, 0.35);
}

.hud-value.amber {
    color: var(--amber);
}

.hud-value.muted {
    color: var(--ivory-mid);
    font-weight: 300;
}

@keyframes hudPop {

    0%,
    100% {
        transform: scale(1)
    }

    45% {
        transform: scale(1.15)
    }
}

.hud-value.pop {
    animation: hudPop 0.35s ease;
}

/* ══ TABLE ══ */
.table-wrap {
    padding: 8px 16px 0;
}

.felt {
    background:
        radial-gradient(ellipse 100% 80% at 50% 50%, var(--felt-hi) 0%, var(--felt) 55%, var(--felt-edge) 100%);
    border-radius: 180px / 48px;
    border: 3px solid var(--gold);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.8),
        0 0 0 5px #040a06,
        0 0 0 7px var(--gold),
        0 18px 80px rgba(0, 0, 0, 0.72),
        inset 0 2px 3px rgba(255, 255, 255, 0.03),
        inset 0 -6px 24px rgba(0, 0, 0, 0.45);
    padding: 28px 36px 34px;
    position: relative;
    overflow: hidden;
}

/* felt texture */
.felt::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Ccircle cx='1' cy='1' r='0.55' fill='rgba(255,255,255,0.016)'/%3E%3C/svg%3E");
}

/* centre divider line */
.felt::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 8%;
    right: 8%;
    height: 1px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
    pointer-events: none;
}

.hand-area {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.dealer-area {
    margin-bottom: 4px;
}

.player-area {
    margin-top: 4px;
}

.hand-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hand-title {
    font-family: 'Cormorant SC', serif;
    font-size: 0.78em;
    font-weight: 600;
    letter-spacing: 5px;
    color: var(--gold-hi);
    opacity: 0.88;
}

.score-pill {
    font-family: 'DM Mono', monospace;
    font-size: 1em;
    font-weight: 500;
    color: var(--ivory);
    background: rgba(0, 0, 0, 0.52);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 1px 9px;
    min-width: 36px;
    text-align: center;
    transition: all 0.3s;
    opacity: 0;
}

.score-pill.visible {
    opacity: 1;
}

.score-pill.bust {
    color: var(--red-lose);
    border-color: var(--red-lose);
    box-shadow: 0 0 8px rgba(248, 113, 113, 0.3);
}

.score-pill.bj {
    color: var(--gold-hi);
    border-color: var(--gold);
    box-shadow: 0 0 12px rgba(201, 164, 74, 0.5);
}

.score-pill.winner {
    color: var(--green-win);
    border-color: var(--green-win);
}

/* ── Player hands ── */
.player-hands-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    justify-content: center;
    width: 100%;
}

.player-hand-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 340px;
}

.player-hand-wrap.active .cards-row {
    outline: 2px solid rgba(201, 164, 74, 0.4);
    outline-offset: 6px;
    border-radius: 8px;
}

/* split divider */
.split-divider {
    width: 1px;
    align-self: stretch;
    background: linear-gradient(180deg, transparent, var(--gold-line), transparent);
    flex-shrink: 0;
}

/* ── CARDS ROW ── */
.cards-row {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 128px;
    padding: 6px 4px;
}

/* ══ PLAYING CARDS ══ */
.card {
    width: 72px;
    height: 104px;
    border-radius: 7px;
    flex-shrink: 0;
    position: relative;
    opacity: 0;
    transform: translateY(-40px) rotate(var(--rot, 0deg)) scale(0.8);
}

.card.deal-in {
    animation: dealCard 0.4s var(--d, 0s) cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes dealCard {
    from {
        opacity: 0;
        transform: translateY(-55px) rotate(calc(var(--rot, 0deg) + 9deg)) scale(0.72);
    }

    to {
        opacity: 1;
        transform: translateY(0) rotate(var(--rot, 0deg)) scale(1);
    }
}

/* face-up */
.card.up {
    background: linear-gradient(155deg, #fff 0%, #f4f0ec 100%);
    border: 1.5px solid #c4bbb0;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.52), 0 1px 3px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.card.up.red {
    color: var(--red-card);
}

.card.up.black {
    color: #18181b;
}

/* face-down */
.card.down {
    background:
        repeating-linear-gradient(-45deg,
            #132640 0px, #132640 5px,
            #0e1e33 5px, #0e1e33 10px);
    border: 1.5px solid var(--gold);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.6);
}

.card.down::after {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(201, 164, 74, 0.28);
    border-radius: 4px;
}

/* card internals */
.c-tl {
    position: absolute;
    top: 4px;
    left: 5px;
}

.c-br {
    position: absolute;
    bottom: 4px;
    right: 5px;
    transform: rotate(180deg);
}

.c-rank {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9em;
    font-weight: 700;
    line-height: 1;
    display: block;
}

.c-suit {
    font-size: 0.65em;
    line-height: 1;
    display: block;
    text-align: center;
}

.c-mid {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.2em;
    line-height: 1;
}

/* glow on winning cards */
.card.highlight {
    box-shadow: 0 0 18px rgba(201, 164, 74, 0.65), 0 5px 16px rgba(0, 0, 0, 0.5);
    border-color: var(--gold);
}

/* ── Result overlay ── */
.result-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s;
}

.result-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.result-badge {
    font-family: 'Cormorant SC', serif;
    font-size: clamp(1.1em, 3.5vw, 1.9em);
    font-weight: 700;
    letter-spacing: 5px;
    padding: 14px 44px;
    background: rgba(4, 8, 5, 0.92);
    backdrop-filter: blur(4px);
    border: 2px solid var(--gold);
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.78);
    transition: transform 0.42s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.result-overlay.show .result-badge {
    transform: scale(1);
}

.result-badge.win {
    color: var(--green-win);
    border-color: var(--green-win);
    box-shadow: 0 0 40px rgba(52, 211, 153, 0.25);
}

.result-badge.bj {
    color: var(--gold-hi);
    border-color: var(--gold);
    box-shadow: 0 0 55px rgba(201, 164, 74, 0.4);
}

.result-badge.lose {
    color: var(--red-lose);
    border-color: var(--red-lose);
    box-shadow: 0 0 35px rgba(248, 113, 113, 0.2);
}

.result-badge.push {
    color: var(--blue-push);
    border-color: var(--blue-push);
    box-shadow: 0 0 35px rgba(96, 165, 250, 0.2);
}

.result-badge.surr {
    color: var(--ivory-mid);
    border-color: var(--border);
}

/* ══ BET PANEL ══ */
.bet-panel {
    background: rgba(0, 0, 0, 0.38);
    border-top: none;
    border: 1px solid var(--border);
    border-top: none;
    padding: 16px 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ── Chips ── */
.chip-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.chip {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid;
    font-family: 'DM Mono', monospace;
    font-size: 0.7em;
    font-weight: 500;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s;
    position: relative;
    flex-shrink: 0;
}

.chip::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 1.5px dashed rgba(255, 255, 255, 0.22);
}

.chip::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, transparent 55%);
}

.chip:hover {
    transform: translateY(-4px) scale(1.1);
}

.chip:active {
    transform: scale(0.92);
}

.chip.active {
    transform: translateY(-5px) scale(1.12);
    filter: brightness(1.12);
}

.c5 {
    background: radial-gradient(circle at 36% 34%, #f87171, #b91c1c);
    border-color: #991b1b;
    box-shadow: 0 3px 10px rgba(248, 113, 113, 0.38);
}

.c25 {
    background: radial-gradient(circle at 36% 34%, #4ade80, #15803d);
    border-color: #166534;
    box-shadow: 0 3px 10px rgba(74, 222, 128, 0.32);
}

.c100 {
    background: radial-gradient(circle at 36% 34%, #60a5fa, #1d4ed8);
    border-color: #1e3a8a;
    box-shadow: 0 3px 10px rgba(96, 165, 250, 0.32);
}

.c500 {
    background: radial-gradient(circle at 36% 34%, #c084fc, #7e22ce);
    border-color: #581c87;
    box-shadow: 0 3px 10px rgba(192, 132, 252, 0.32);
}

.c1k {
    background: radial-gradient(circle at 36% 34%, #fb923c, #c2410c);
    border-color: #9a3412;
    box-shadow: 0 3px 10px rgba(251, 146, 60, 0.38);
}

.c5k {
    background: radial-gradient(circle at 36% 34%, #E8C96A, #9a6f10);
    border-color: #78530a;
    color: #110d00;
    box-shadow: 0 3px 12px rgba(201, 164, 74, 0.5);
}

/* ── Bet boxes row ── */
.bet-boxes-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    justify-content: center;
}

/* main bet */
.main-bet-box {
    width: 170px;
    min-height: 88px;
    background: var(--gold-glow);
    border: 2px dashed var(--gold-line);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 12px;
    transition: all 0.2s;
}

.main-bet-box:hover {
    background: rgba(201, 164, 74, 0.12);
    border-color: var(--gold);
}

.main-bet-box.has-bet {
    border-style: solid;
    border-color: var(--gold);
}

.mb-label {
    font-family: 'Cormorant SC', serif;
    font-size: 0.65em;
    letter-spacing: 3px;
    color: var(--ivory-mid);
}

.mb-chip-area {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    justify-content: center;
    min-height: 22px;
}

.mini-chip {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.42em;
    font-weight: 600;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    animation: chipPop 0.26s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes chipPop {
    from {
        transform: scale(0) translateY(-10px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.mb-total {
    font-family: 'DM Mono', monospace;
    font-size: 0.82em;
    color: var(--ivory-mid);
    transition: all 0.3s;
}

.main-bet-box.has-bet .mb-total {
    color: var(--gold-hi);
    font-weight: 500;
}

/* side bets */
.side-bet-box {
    flex: 1;
    min-width: 100px;
    max-width: 160px;
    padding: 10px 10px 8px;
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.side-bet-box:hover {
    background: rgba(201, 164, 74, 0.07);
    border-color: var(--border);
}

.side-bet-box.on {
    background: rgba(201, 164, 74, 0.1);
    border-color: var(--gold);
    box-shadow: 0 0 14px rgba(201, 164, 74, 0.14);
}

.side-bet-box.won {
    background: rgba(52, 211, 153, 0.1);
    border-color: var(--green-win);
    animation: sbWon 0.55s ease;
}

@keyframes sbWon {

    0%,
    100% {
        box-shadow: 0 0 14px rgba(52, 211, 153, 0.15);
    }

    50% {
        box-shadow: 0 0 36px rgba(52, 211, 153, 0.5);
    }
}

.side-bet-box.lost {
    background: rgba(248, 113, 113, 0.07);
    border-color: rgba(248, 113, 113, 0.4);
}

.sb-label {
    font-family: 'Cormorant SC', serif;
    font-size: 0.72em;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--ivory);
    line-height: 1.25;
}

.sb-chip-area {
    min-height: 18px;
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
    justify-content: center;
}

.sb-amount {
    font-family: 'DM Mono', monospace;
    font-size: 0.72em;
    color: var(--ivory-mid);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 2px 9px;
    transition: all 0.2s;
}

.side-bet-box.on .sb-amount {
    color: var(--gold-hi);
    background: rgba(201, 164, 74, 0.14);
}

.sb-payout {
    font-family: 'DM Mono', monospace;
    font-size: 0.55em;
    color: var(--ivory-lo);
    letter-spacing: 0.5px;
}

/* ══ ACTION ROW ══ */
.action-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 14px 16px 4px;
}

.abtn {
    padding: 10px 20px;
    border-radius: 7px;
    border: 1px solid;
    font-family: 'Cormorant SC', serif;
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.abtn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background 0.18s;
}

.abtn:hover::after {
    background: rgba(255, 255, 255, 0.07);
}

.abtn:active {
    transform: scale(0.95);
}

.abtn:disabled {
    opacity: 0.28;
    cursor: not-allowed;
    transform: none !important;
    pointer-events: none;
}

.deal-btn {
    background: linear-gradient(135deg, #7a5610, #E8C96A, #C9A44A);
    color: #050e07;
    border-color: #7a5610;
    box-shadow: 0 3px 16px rgba(201, 164, 74, 0.38);
    font-size: 0.9em;
    padding: 11px 30px;
}

.deal-btn:hover {
    box-shadow: 0 6px 26px rgba(201, 164, 74, 0.58);
    transform: translateY(-2px);
}

.hit-btn {
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.45);
    color: #6ee7b7;
}

.stand-btn {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.45);
    color: #fca5a5;
}

.double-btn {
    background: rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.45);
    color: #93c5fd;
}

.split-btn {
    background: rgba(192, 132, 252, 0.1);
    border-color: rgba(192, 132, 252, 0.45);
    color: #d8b4fe;
}

.insur-btn {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.45);
    color: #fcd34d;
}

.surr-btn {
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.35);
    color: #94a3b8;
}

.clear-btn {
    background: rgba(248, 113, 113, 0.07);
    border-color: rgba(248, 113, 113, 0.28);
    color: rgba(252, 165, 165, 0.65);
}

.rebet-btn {
    background: rgba(201, 164, 74, 0.07);
    border-color: var(--border);
    color: var(--gold);
}

.hit-btn:hover {
    background: rgba(74, 222, 128, 0.18);
    border-color: #4ade80;
}

.stand-btn:hover {
    background: rgba(248, 113, 113, 0.18);
    border-color: #f87171;
}

.double-btn:hover {
    background: rgba(96, 165, 250, 0.18);
    border-color: #60a5fa;
}

.split-btn:hover {
    background: rgba(192, 132, 252, 0.18);
    border-color: #c084fc;
}

.insur-btn:hover {
    background: rgba(251, 191, 36, 0.18);
    border-color: #fbbf24;
}

.surr-btn:hover {
    background: rgba(148, 163, 184, 0.15);
    border-color: #94a3b8;
}

.clear-btn:hover {
    background: rgba(248, 113, 113, 0.14);
    border-color: rgba(248, 113, 113, 0.55);
    color: #fca5a5;
}

.rebet-btn:hover {
    background: rgba(201, 164, 74, 0.14);
    border-color: var(--gold);
}

/* ══ STATUS ══ */
.status-line {
    text-align: center;
    padding: 8px 16px 0;
    font-family: 'DM Mono', monospace;
    font-size: 0.78em;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--ivory-mid);
    transition: color 0.3s;
    display: block;
}

.status-line.err {
    color: #fca5a5;
}

.status-line.win {
    color: var(--green-win);
}

.status-line.gold {
    color: var(--gold-hi);
}

/* ══ ACCORDION ══ */
.accordion {
    margin: 18px 9px 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.acc-toggle {
    width: 100%;
    background: rgba(0, 0, 0, 0.32);
    border: none;
    padding: 11px 18px;
    font-family: 'Cormorant SC', serif;
    font-size: 0.7em;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--gold);
    opacity: 0.72;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.acc-toggle:hover {
    opacity: 1;
    background: rgba(201, 164, 74, 0.06);
}

.arr {
    display: inline-block;
    transition: transform 0.3s;
}

.acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease;
}

.acc-body.open {
    max-height: 500px;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
    padding: 18px 22px 22px;
    background: rgba(0, 0, 0, 0.22);
    border-top: 1px solid var(--border);
}

.rule-col h4 {
    font-family: 'Cormorant SC', serif;
    font-size: 0.72em;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 7px;
}

.rule-col p {
    font-size: 0.78em;
    font-weight: 400;
    color: var(--ivory-mid);
    margin-bottom: 5px;
    line-height: 1.5;
}

.rule-col ul {
    padding-left: 13px;
}

.rule-col li {
    font-size: 0.77em;
    font-weight: 300;
    color: var(--ivory-mid);
    line-height: 1.8;
}

.rule-col strong {
    color: var(--ivory);
    font-weight: 600;
}

/* ══ TOAST ══ */
.toast {
    position: fixed;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%) translateY(70px);
    background: rgba(6, 11, 8, 0.96);
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 11px 26px;
    font-family: 'Cormorant SC', serif;
    font-size: 0.82em;
    letter-spacing: 2px;
    color: var(--gold-hi);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 200;
    white-space: nowrap;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast.t-win {
    border-color: var(--green-win);
    color: var(--green-win);
}

.toast.t-bj {
    border-color: var(--gold);
    color: var(--gold-hi);
}

.toast.t-lose {
    border-color: var(--red-lose);
    color: var(--red-lose);
}

.toast.t-push {
    border-color: var(--blue-push);
    color: var(--blue-push);
}

/* ══ RESPONSIVE ══ */
@media (max-width: 600px) {
    .felt {
        border-radius: 80px / 28px;
        padding: 18px 14px 24px;
    }

    .card {
        width: 58px;
        height: 84px;
    }

    .c-mid {
        font-size: 1.75em;
    }

    .c-rank {
        font-size: 0.78em;
    }

    .cards-row {
        gap: 5px;
        min-height: 96px;
    }

    .bet-boxes-row {
        gap: 7px;
    }

    .main-bet-box {
        width: 140px;
        min-height: 76px;
    }

    .side-bet-box {
        min-width: 80px;
    }

    .chip {
        width: 42px;
        height: 42px;
        font-size: 0.62em;
    }

    .chip-row {
        gap: 7px;
    }

    .abtn {
        padding: 8px 13px;
        font-size: 0.68em;
    }

    .action-row {
        gap: 6px;
    }

    .hud {
        justify-content: space-around;
    }
}