/* ============================================================
   Poker — High Stakes Theme
   Primary: #dc2626 (crimson)   Gold: #fbbf24
   Font: Syne (display) · DM Sans (body)
   ============================================================ */

/* ─── Layout: 3-column (ad | game | ad) ─── */
.pk-layout {
    display: grid;
    grid-template-columns: 160px minmax(0, 580px) 160px;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        ".       game   .      "
        "left    game   right  "
        ".       game   .      ";
    justify-content: center;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
    min-height: calc(100vh - 80px);
}

/* ─── Ad Slots ─── */
.ad-slot { display: flex; align-items: flex-start; justify-content: center; }
.ad-slot--left  { grid-area: left;  padding-top: 2rem; }
.ad-slot--right { grid-area: right; padding-top: 2rem; }
.ad-slot--top, .ad-slot--bottom { display: none; }

.ad-placeholder {
    background: rgba(255,255,255,0.03);
    border: 1px dashed rgba(255,255,255,0.08);
    border-radius: 10px;
    color: rgba(255,255,255,0.12);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-align: center;
    padding: 2rem 1rem;
    width: 100%;
}
.ad-placeholder--vertical {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 5rem;
}

/* ─── Game Container ─── */
#poker-app {
    grid-area: game;
    text-align: center;
    position: relative;
    font-family: 'DM Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ─── Screen Management ─── */
.screen { display: none; }
.screen.active { display: block; }
.hidden { display: none !important; }

/* ─── Cards (shared panel style) ─── */
.card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-bottom: 0.75rem;
}
.card__title {
    color: rgba(255,255,255,0.4);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}
.card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.card--half { margin-bottom: 0; }

/* ─── Menu Header ─── */
.menu-header {
    padding: 2rem 0 1rem;
}
.menu-header h1 {
    font-family: 'Syne', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 8px;
    color: #fff;
    margin: 0;
    line-height: 1;
    background: linear-gradient(180deg, #fff 40%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.subtitle {
    color: rgba(255,255,255,0.35);
    font-size: 0.85rem;
    margin-top: 0.4rem;
    font-weight: 400;
    letter-spacing: 1px;
}
.control-hint {
    color: rgba(255,255,255,0.2);
    font-size: 0.75rem;
    margin-top: 0.5rem;
    letter-spacing: 0.3px;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    letter-spacing: 0.3px;
    line-height: 1.4;
}
.btn:focus-visible {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}
.btn--primary {
    background: #dc2626;
    color: #fff;
    box-shadow: 0 2px 8px rgba(220,38,38,0.3);
}
.btn--primary:hover {
    background: #ef5350;
    box-shadow: 0 4px 16px rgba(220,38,38,0.35);
    transform: translateY(-1px);
}
.btn--primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(220,38,38,0.2);
}
.btn--primary:disabled {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.25);
    cursor: default;
    transform: none;
    box-shadow: none;
}
.btn--lg { padding: 0.8rem 2.4rem; font-size: 1rem; }
.btn--sm { padding: 0.35rem 0.8rem; font-size: 0.8rem; }
.btn--xs { padding: 0.25rem 0.6rem; font-size: 0.72rem; }
.btn--outline {
    background: transparent;
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.12);
}
.btn--outline:hover {
    border-color: rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.04);
}
.btn--ghost {
    background: transparent;
    color: rgba(255,255,255,0.4);
    border: none;
    font-size: 0.85rem;
}
.btn--ghost:hover { color: rgba(255,255,255,0.6); }
.btn--danger {
    background: linear-gradient(135deg, #dc2626 0%, #b71c1c 100%);
    color: #fff;
    box-shadow: 0 2px 12px rgba(220,38,38,0.4);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.btn--danger:hover {
    background: linear-gradient(135deg, #ef5350 0%, #c62828 100%);
    box-shadow: 0 4px 20px rgba(220,38,38,0.5);
    transform: translateY(-1px);
}
.btn--danger:active {
    transform: translateY(0);
}

/* ─── Menu Actions ─── */
.menu-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 1.2rem 0 0.5rem;
}
.menu-links {
    display: flex;
    gap: 0.5rem;
}
.menu-best {
    color: rgba(220,38,38,0.6);
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0.4rem 0 0;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

/* ─── Volume Controls ─── */
.volume-controls {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.vol-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}
.vol-name {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    width: 28px;
    text-align: right;
    font-weight: 500;
}
.vol-slider {
    flex: 1;
    height: 4px;
    accent-color: #dc2626;
    cursor: pointer;
    max-width: 160px;
}
.vol-val {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.3);
    width: 22px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ─── HUD (top bar) ─── */
#game-hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-bottom: 0.5rem;
}
.hud__cell {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.hud__cell--right { text-align: right; align-items: flex-end; }
.hud__label {
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(255,255,255,0.25);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hud__value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #dc2626;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.hud__value--sub { font-size: 0.95rem; color: rgba(255,255,255,0.4); }

/* ─── Overlays ─── */
.overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}
.overlay__box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 2rem 3rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
}
.overlay__box h2 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

/* ─── Result Card ─── */
.result-card {
    max-width: 420px;
    margin: 2rem auto;
    padding: 2rem 1.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.result-card h2 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}
.result-score {
    font-size: 2rem;
    font-weight: 800;
    color: #dc2626;
    font-variant-numeric: tabular-nums;
}
.result-best {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.35);
}
.result-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

#nickname {
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    color: #e0e0e0;
    border-radius: 8px;
    width: 200px;
    text-align: center;
    transition: border-color 0.15s;
}
#nickname:focus {
    outline: none;
    border-color: #dc2626;
}
#nickname::placeholder { color: rgba(255,255,255,0.2); }

/* ─── Game Stats ─── */
.game-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin: 0.5rem 0;
    width: 100%;
}
.game-stats .stat-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.game-stats .stat-item .stat-val {
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
}

/* ─── Leaderboard ─── */
.lb-card {
    max-width: 450px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    text-align: center;
}
.lb-card h2 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
#leaderboard-list {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}
#leaderboard-list li {
    display: flex;
    align-items: center;
    padding: 0.55rem 0.6rem;
    border-radius: 8px;
    transition: background 0.15s;
}
#leaderboard-list li:nth-child(odd) {
    background: rgba(255,255,255,0.02);
}
#leaderboard-list li:hover {
    background: rgba(220,38,38,0.06);
}
#leaderboard-list li .rank {
    color: rgba(255,255,255,0.3);
    font-weight: 700;
    width: 28px;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
}
#leaderboard-list li:nth-child(1) .rank { color: #ffd54f; }
#leaderboard-list li:nth-child(2) .rank { color: #b0bec5; }
#leaderboard-list li:nth-child(3) .rank { color: #a1887f; }
#leaderboard-list li .lb-name {
    flex: 1;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}
#leaderboard-list li .lb-score {
    color: #dc2626;
    font-weight: 700;
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}
#leaderboard-list li .lb-time {
    color: rgba(255,255,255,0.2);
    font-size: 0.7rem;
    margin-left: 0.6rem;
    white-space: nowrap;
}

/* ─── New Best Overlay ─── */
.new-best-overlay {
    background: rgba(0,0,0,0.6) !important;
    pointer-events: none;
}
.new-best-text {
    color: #ffd54f !important;
    font-size: 2.8rem !important;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 0 0 40px rgba(220,38,38,0.6), 0 0 80px rgba(220,38,38,0.3);
    animation: newBestPulse 0.6s ease-out;
}
@keyframes newBestPulse {
    0%   { transform: scale(0.5); opacity: 0; }
    50%  { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

/* ─── Tutorial Overlay ─── */
.tutorial-overlay {
    background: rgba(0,0,0,0.85);
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 300;
}
.tutorial-overlay.hidden { display: none !important; }
.tutorial-box {
    max-width: 400px;
    width: 92%;
    padding: 1.5rem;
    text-align: left;
}
.tutorial-box h2 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: #eee;
}
.tut-content {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    min-height: 90px;
    margin-bottom: 1rem;
}
.tut-items { display: flex; flex-direction: column; gap: 0.3rem; }
.tut-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.tut-step-indicator {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
}
#tut-skip {
    display: block;
    margin: 0 auto;
    opacity: 0.5;
}

/* ============================================================
   POKER-SPECIFIC STYLES
   ============================================================ */

/* ─── Poker Table ─── */
.poker-table {
    position: relative;
    background: radial-gradient(ellipse at center, rgba(0,80,0,0.4) 0%, rgba(0,40,0,0.6) 100%);
    border: 3px solid rgba(0,60,0,0.6);
    border-radius: 120px;
    padding: 1.5rem 1rem;
    margin: 0.5rem 0;
    box-shadow:
        inset 0 0 60px rgba(0,0,0,0.3),
        0 4px 24px rgba(0,0,0,0.4),
        0 0 0 1px rgba(255,255,255,0.04);
    min-height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}
.poker-table::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 116px;
    pointer-events: none;
}

/* ─── Community Cards ─── */
.community-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin: 0.8rem 0;
}
.community-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255,255,255,0.25);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.cards-row {
    display: flex;
    justify-content: center;
    gap: 6px;
}

/* ─── Playing Cards ─── */
.card-face {
    width: 70px;
    height: 98px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
}
.card-face:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.card-face .rank-top {
    position: absolute;
    top: 4px;
    left: 6px;
    font-size: 0.75rem;
    line-height: 1;
}
.card-face .suit-top {
    position: absolute;
    top: 16px;
    left: 6px;
    font-size: 0.65rem;
    line-height: 1;
}
.card-face .suit-center {
    font-size: 1.8rem;
    line-height: 1;
}
.card-face .rank-bottom {
    position: absolute;
    bottom: 4px;
    right: 6px;
    font-size: 0.75rem;
    line-height: 1;
    transform: rotate(180deg);
}
.card-face .suit-bottom {
    position: absolute;
    bottom: 16px;
    right: 6px;
    font-size: 0.65rem;
    line-height: 1;
    transform: rotate(180deg);
}

.card-red { color: #dc2626; }
.card-black { color: #1a1a2e; }

.card-back {
    width: 70px;
    height: 98px;
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #1a237e 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    user-select: none;
}
.card-back::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 5px;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 4px,
        rgba(255,255,255,0.03) 4px,
        rgba(255,255,255,0.03) 8px
    );
}
.card-back::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    background: rgba(220,38,38,0.15);
}

/* ─── Opponents Area ─── */
.opponents-area {
    display: flex;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    padding: 0 0.5rem;
}

.opponent-seat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.6rem 0.8rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    min-width: 100px;
    transition: all 0.25s ease;
    position: relative;
}
.opponent-seat.folded {
    opacity: 0.35;
    filter: grayscale(0.5);
}
.opponent-seat.active {
    border-color: rgba(220,38,38,0.5);
    box-shadow: 0 0 12px rgba(220,38,38,0.2);
    animation: turnPulse 1.5s ease-in-out infinite;
}

.opponent-avatar {
    font-size: 1.5rem;
    line-height: 1;
}
.opponent-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
}
.opponent-status {
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.opponent-status.folded-text { color: rgba(220,38,38,0.5); }
.opponent-status.all-in-text { color: #ffd54f; }

.opponent-cards {
    display: flex;
    gap: 3px;
}
.opponent-cards .card-back,
.opponent-cards .card-face {
    width: 36px;
    height: 50px;
}
.opponent-cards .card-face {
    font-size: 0.7rem;
}
.opponent-cards .card-face .rank-top {
    top: 2px;
    left: 3px;
    font-size: 0.55rem;
}
.opponent-cards .card-face .suit-top {
    top: 11px;
    left: 3px;
    font-size: 0.45rem;
}
.opponent-cards .card-face .suit-center {
    font-size: 1rem;
}
.opponent-cards .card-face .rank-bottom {
    bottom: 2px;
    right: 3px;
    font-size: 0.55rem;
}
.opponent-cards .card-face .suit-bottom {
    bottom: 11px;
    right: 3px;
    font-size: 0.45rem;
}

/* ─── Chip Badge ─── */
.chip-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.15rem 0.5rem;
    background: rgba(255,215,0,0.1);
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #ffd54f;
    font-variant-numeric: tabular-nums;
}
.chip-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #ffd54f;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ─── Pot Display ─── */
.pot-display {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,215,0,0.25);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffd54f;
    font-variant-numeric: tabular-nums;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.pot-display::before {
    content: '';
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #ffd54f 40%, #f9a825 100%);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(255,213,79,0.4);
}

/* ─── Dealer Chip ─── */
.dealer-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    border: 2px solid #333;
    border-radius: 50%;
    font-size: 0.6rem;
    font-weight: 800;
    color: #333;
    position: absolute;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ─── Player Seat ─── */
.player-seat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    width: 100%;
}
.player-hand {
    display: flex;
    gap: 8px;
    justify-content: center;
}
.player-hand .card-face {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.player-hand .card-face:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

/* ─── Hand Rank Badge ─── */
.hand-rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.8rem;
    background: rgba(220,38,38,0.12);
    border: 1px solid rgba(220,38,38,0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ef5350;
    letter-spacing: 0.5px;
}
.hand-rank-badge.strong {
    background: rgba(220,38,38,0.2);
    border-color: rgba(220,38,38,0.5);
    color: #dc2626;
    box-shadow: 0 0 12px rgba(220,38,38,0.2);
}

/* ─── Action Buttons ─── */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    padding: 0.8rem 0;
}
.action-buttons .btn {
    min-width: 72px;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}
.action-buttons .btn--fold {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}
.action-buttons .btn--fold:hover {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}
.action-buttons .btn--check {
    background: rgba(76,175,80,0.15);
    color: #66bb6a;
    border: 1px solid rgba(76,175,80,0.3);
}
.action-buttons .btn--check:hover {
    background: rgba(76,175,80,0.25);
    color: #81c784;
}
.action-buttons .btn--call {
    background: rgba(33,150,243,0.15);
    color: #42a5f5;
    border: 1px solid rgba(33,150,243,0.3);
}
.action-buttons .btn--call:hover {
    background: rgba(33,150,243,0.25);
    color: #64b5f6;
}
.action-buttons .btn--raise {
    background: rgba(255,152,0,0.15);
    color: #ffa726;
    border: 1px solid rgba(255,152,0,0.3);
}
.action-buttons .btn--raise:hover {
    background: rgba(255,152,0,0.25);
    color: #ffb74d;
}
.action-buttons .btn--allin {
    background: linear-gradient(135deg, #dc2626 0%, #b71c1c 100%);
    color: #fff;
    border: none;
    box-shadow: 0 2px 12px rgba(220,38,38,0.4);
    font-weight: 700;
    letter-spacing: 0.5px;
}
.action-buttons .btn--allin:hover {
    background: linear-gradient(135deg, #ef5350 0%, #c62828 100%);
    box-shadow: 0 4px 20px rgba(220,38,38,0.5);
    transform: translateY(-1px);
}
.action-buttons .btn:disabled {
    background: rgba(255,255,255,0.04) !important;
    color: rgba(255,255,255,0.15) !important;
    border-color: rgba(255,255,255,0.06) !important;
    box-shadow: none !important;
    cursor: default;
    transform: none !important;
}

/* ─── Raise Slider Area ─── */
.raise-slider-area {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    margin: 0.3rem 0;
    width: 100%;
    max-width: 340px;
}
.raise-slider {
    flex: 1;
    height: 6px;
    accent-color: #dc2626;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    outline: none;
}
.raise-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #dc2626;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 6px rgba(220,38,38,0.4);
    transition: transform 0.1s ease;
}
.raise-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}
.raise-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #dc2626;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 6px rgba(220,38,38,0.4);
}
.raise-amount-display {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffa726;
    font-variant-numeric: tabular-nums;
    min-width: 50px;
    text-align: right;
}

/* ─── Result Banner ─── */
.result-banner {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 0.5rem 0;
    animation: resultAppear 0.5s ease-out;
}
.result-banner.win {
    color: #ffd54f;
    text-shadow: 0 0 20px rgba(255,213,79,0.4);
}
.result-banner.lose {
    color: rgba(255,255,255,0.35);
}
.result-banner.draw {
    color: rgba(255,255,255,0.5);
}

@keyframes resultAppear {
    0%   { transform: scale(0.6); opacity: 0; }
    60%  { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}

/* ─── Rules / Hand Rankings ─── */
.rules-list {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 0;
}
.rules-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    transition: background 0.15s;
}
.rules-list li:nth-child(odd) {
    background: rgba(255,255,255,0.02);
}
.rules-list li:hover {
    background: rgba(220,38,38,0.06);
}
.rules-list .hand-name {
    font-weight: 600;
    color: rgba(255,255,255,0.7);
}
.rules-list .hand-example {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.3);
    font-family: 'Courier New', monospace;
}

/* ─── Card Animations ─── */
@keyframes dealCard {
    0% {
        transform: translate(0, -80px) scale(0.3) rotate(-15deg);
        opacity: 0;
    }
    60% {
        transform: translate(0, 4px) scale(1.02) rotate(1deg);
        opacity: 1;
    }
    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 1;
    }
}
.card-deal {
    animation: dealCard 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.card-deal:nth-child(2) { animation-delay: 0.08s; }
.card-deal:nth-child(3) { animation-delay: 0.16s; }
.card-deal:nth-child(4) { animation-delay: 0.24s; }
.card-deal:nth-child(5) { animation-delay: 0.32s; }

@keyframes flipCard {
    0%   { transform: rotateY(0deg); }
    50%  { transform: rotateY(90deg); }
    100% { transform: rotateY(0deg); }
}
.card-flip {
    animation: flipCard 0.5s ease-in-out;
    perspective: 600px;
}

/* ─── Turn Indicator Pulse ─── */
@keyframes turnPulse {
    0%, 100% {
        border-color: rgba(220,38,38,0.5);
        box-shadow: 0 0 12px rgba(220,38,38,0.2);
    }
    50% {
        border-color: rgba(220,38,38,0.8);
        box-shadow: 0 0 20px rgba(220,38,38,0.35);
    }
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
    .new-best-text,
    .card-deal,
    .card-flip,
    .result-banner,
    .opponent-seat.active { animation: none !important; }
    .card-face:hover,
    .player-hand .card-face:hover { transform: none; }
}

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

/* ─── Tablet: hide side ads ─── */
@media (max-width: 1100px) {
    .pk-layout {
        grid-template-columns: 1fr;
        grid-template-areas: "game";
        max-width: 580px;
        gap: 0;
    }
    .pk-layout .ad-slot--left,
    .pk-layout .ad-slot--right { display: none; }
    .pk-layout .ad-slot--top,
    .pk-layout .ad-slot--bottom {
        display: flex;
        grid-area: unset;
        justify-content: center;
        padding: 0.5rem 0;
    }
    .pk-layout {
        grid-template-areas:
            "top"
            "game"
            "bottom";
        grid-template-rows: auto 1fr auto;
    }
    .pk-layout .ad-slot--top { grid-area: top; }
    .pk-layout .ad-slot--bottom { grid-area: bottom; }
    .ad-placeholder--vertical { min-height: unset; position: static; }
    .ad-placeholder { min-height: 60px; padding: 1rem; }
}

/* ─── Mobile ─── */
@media (max-width: 480px) {
    .pk-layout { padding: 0 0.5rem; }
    .menu-header { padding: 1.2rem 0 0.8rem; }
    .menu-header h1 { font-size: 2rem; letter-spacing: 5px; }
    .card { padding: 0.8rem; }
    .card-row { grid-template-columns: 1fr; gap: 0.6rem; }
    .btn--lg { padding: 0.7rem 2rem; font-size: 0.9rem; }
    #game-hud { padding: 0.4rem 0.7rem; }
    .hud__value { font-size: 1.1rem; }
    #nickname { width: 170px; }
    .result-card { margin: 1rem auto; padding: 1.5rem 1rem; }

    /* Poker table compact */
    .poker-table {
        border-radius: 60px;
        padding: 1rem 0.5rem;
        min-height: 300px;
    }
    .poker-table::before {
        border-radius: 56px;
    }

    /* Smaller cards */
    .card-face {
        width: 52px;
        height: 72px;
        font-size: 0.85rem;
    }
    .card-face .rank-top { font-size: 0.6rem; top: 3px; left: 4px; }
    .card-face .suit-top  { font-size: 0.5rem; top: 13px; left: 4px; }
    .card-face .suit-center { font-size: 1.3rem; }
    .card-face .rank-bottom { font-size: 0.6rem; bottom: 3px; right: 4px; }
    .card-face .suit-bottom { font-size: 0.5rem; bottom: 13px; right: 4px; }

    .card-back {
        width: 52px;
        height: 72px;
    }

    /* Compact opponents */
    .opponents-area {
        gap: 0.4rem;
    }
    .opponent-seat {
        padding: 0.4rem 0.5rem;
        min-width: 80px;
        border-radius: 8px;
    }
    .opponent-avatar { font-size: 1.2rem; }
    .opponent-name { font-size: 0.65rem; }
    .opponent-cards .card-back,
    .opponent-cards .card-face {
        width: 28px;
        height: 38px;
    }
    .opponent-cards .card-face .suit-center { font-size: 0.75rem; }
    .opponent-cards .card-face .rank-top,
    .opponent-cards .card-face .suit-top,
    .opponent-cards .card-face .rank-bottom,
    .opponent-cards .card-face .suit-bottom { display: none; }

    .chip-badge { font-size: 0.6rem; padding: 0.1rem 0.35rem; }
    .pot-display { font-size: 0.75rem; padding: 0.3rem 0.7rem; }
    .hand-rank-badge { font-size: 0.65rem; padding: 0.2rem 0.6rem; }

    .action-buttons { gap: 0.3rem; }
    .action-buttons .btn {
        min-width: 58px;
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }

    .raise-slider-area {
        max-width: 280px;
        padding: 0.4rem 0.7rem;
        gap: 0.4rem;
    }

    .overlay__box { padding: 1.5rem 1.5rem; }
    .tutorial-box { padding: 1.2rem; }
}
