@import '../common.css';

/* ============================
 * Scopa - Stili specifici del gioco
 * ============================ */

/* Variabili specifiche Scopa */
:root {
    --card-width: 75px;
    --card-height: 108px;
    --card-radius: 8px;
    --card-shadow: 0 2px 8px rgba(0,0,0,0.3);
    --card-back-red: #8B1A1A;

    /* Tema Dark/Purple (menu screens) */
    --bg-primary: #0C0D14;
    --bg-secondary: #1A1B23;
    --text-primary: #F9FAFF;
    --text-secondary: #AAADBE;
    --purple-primary: #8B5CF6;
    --purple-hover: #7C3AED;
    --purple-dark: #6D28D9;
}

/* Disabilita selezione testo (specifico gioco) */
body {
    user-select: none;
    -webkit-user-select: none;
}

/* ============================
 * Override bottoni per tema Purple (menu screens)
 * ============================ */
#start-screen .btn,
#lobby-screen .btn,
#join-screen .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
    font-family: inherit;
    text-transform: none;
}

#start-screen .btn-primary,
#lobby-screen .btn-primary,
#join-screen .btn-primary {
    background: var(--purple-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

#start-screen .btn-primary:hover,
#lobby-screen .btn-primary:hover,
#join-screen .btn-primary:hover {
    background: var(--purple-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

#start-screen .btn-primary:active,
#lobby-screen .btn-primary:active,
#join-screen .btn-primary:active {
    transform: translateY(0);
}

#start-screen .btn-secondary,
#lobby-screen .btn-secondary,
#join-screen .btn-secondary {
    background: var(--bg-secondary);
    border: 2px solid rgba(139, 92, 246, 0.4);
    color: var(--purple-primary);
    box-shadow: none;
}

#start-screen .btn-secondary:hover,
#lobby-screen .btn-secondary:hover,
#join-screen .btn-secondary:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--purple-primary);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 40px !important;
    font-size: 1.1rem !important;
    width: 100%;
}

.btn-icon {
    font-size: 1.3em;
    line-height: 1;
}

.btn-icon-only {
    padding: 10px !important;
    aspect-ratio: 1;
    min-width: 44px;
}

.btn-icon-only svg {
    width: 20px;
    height: 20px;
}

#start-screen .btn-back,
#lobby-screen .btn-back,
#join-screen .btn-back {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(170, 173, 190, 0.2);
    margin-top: 1.5em;
    font-size: 0.9rem;
    padding: 10px 24px;
    gap: 0.4rem;
}

#start-screen .btn-back svg,
#lobby-screen .btn-back svg,
#join-screen .btn-back svg {
    width: 18px;
    height: 18px;
}

#start-screen .btn-back:hover,
#lobby-screen .btn-back:hover,
#join-screen .btn-back:hover {
    color: var(--text-primary);
    border-color: rgba(170, 173, 190, 0.4);
    background: rgba(170, 173, 190, 0.05);
}

/* ============================
 * Schermata iniziale
 * ============================ */
#start-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1a1428 50%, var(--bg-primary) 100%);
    text-align: center;
}

.start-container {
    max-width: 600px;
    width: 100%;
}

.game-title {
    font-family: Georgia, serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--purple-primary);
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
    letter-spacing: 0.15em;
    margin-bottom: 0.3em;
}

.game-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2em;
    letter-spacing: 0.05em;
}

.rules-box {
    background: var(--bg-secondary);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 1.8em 2.2em;
    margin-bottom: 2.5em;
    text-align: left;
    line-height: 1.7;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.rules-box h3 {
    color: var(--purple-primary);
    margin-bottom: 1em;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 600;
}

.rules-box ul {
    list-style: none;
    padding: 0;
}

.rules-box li {
    padding: 0.4em 0;
    padding-left: 1.5em;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.rules-box li::before {
    content: '♦';
    position: absolute;
    left: 0;
    color: var(--purple-primary);
    font-size: 1.2em;
}

.rules-box li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.mode-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

/* ============================
 * Tavolo da gioco
 * ============================ */
#game-screen {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: radial-gradient(ellipse at center, var(--felt-green) 0%, var(--felt-dark) 70%, #052805 100%);
}

/* Header con punteggio */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(0,0,0,0.4);
    border-bottom: 1px solid rgba(212,160,23,0.2);
    flex-shrink: 0;
}

.game-header .title {
    font-family: Georgia, serif;
    font-size: 1.3rem;
    color: var(--gold);
    letter-spacing: 0.08em;
}

.score-display {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.score-label {
    color: rgba(245,245,220,0.6);
}

.score-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gold);
}

.game-info-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 6px 20px;
    background: rgba(0,0,0,0.2);
    font-size: 0.85rem;
    color: rgba(245,245,220,0.5);
    flex-shrink: 0;
}

/* ============================
 * Aree di gioco
 * ============================ */
.game-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 20px;
    gap: 8px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* Zona bot */
.bot-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 8px 0;
}

.bot-zone .zone-label {
    font-size: 0.8rem;
    color: rgba(245,245,220,0.4);
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

#bot-hand {
    display: flex;
    gap: 8px;
    justify-content: center;
    perspective: 1000px;
    min-height: calc(var(--card-height) + 4px);
    align-items: center;
}

.capture-count {
    font-size: 0.78rem;
    color: rgba(245,245,220,0.5);
    text-align: center;
    min-width: 60px;
}

.capture-count strong {
    color: var(--gold);
    font-size: 1rem;
}

/* Zona tavolo */
.table-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    flex: 1;
    justify-content: center;
}

.table-area {
    background: rgba(0,0,0,0.15);
    border: 2px solid rgba(212,160,23,0.15);
    border-radius: 16px;
    padding: 16px 24px;
    min-height: calc(var(--card-height) + 40px);
    width: 100%;
    max-width: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#table-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    perspective: 1000px;
    min-height: var(--card-height);
    align-items: center;
}

.table-empty-text {
    color: rgba(245,245,220,0.2);
    font-style: italic;
    font-size: 0.9rem;
}

/* Zona giocatore */
.player-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 8px 0;
}

.player-zone .zone-label {
    font-size: 0.8rem;
    color: rgba(245,245,220,0.4);
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

#player-hand {
    display: flex;
    gap: 10px;
    justify-content: center;
    perspective: 1000px;
    min-height: calc(var(--card-height) + 20px);
    align-items: flex-end;
}

/* Indicatore turno */
.turn-indicator {
    text-align: center;
    padding: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.turn-indicator.turn-player {
    color: #4CAF50;
    background: rgba(76,175,80,0.1);
}

.turn-indicator.turn-bot {
    color: #FF9800;
    background: rgba(255,152,0,0.1);
}

.turn-indicator.turn-wait {
    color: rgba(245,245,220,0.4);
}

/* ============================
 * Carte - struttura 3D
 * ============================ */
.card {
    width: var(--card-width);
    height: var(--card-height);
    perspective: 800px;
    cursor: default;
    flex-shrink: 0;
    position: relative;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.card.face-down .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--card-radius);
    overflow: hidden;
}

/* Fronte carta */
.card-front {
    background: #fff;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    overflow: hidden;
}

/* Immagine carta napoletana */
.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--card-radius);
    pointer-events: none;
}

/* Dorso carta */
.card-back {
    transform: rotateY(180deg);
}

.card-back-pattern {
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(255,215,0,0.08) 4px, rgba(255,215,0,0.08) 8px),
        repeating-linear-gradient(-45deg, transparent, transparent 4px, rgba(255,215,0,0.08) 4px, rgba(255,215,0,0.08) 8px),
        var(--card-back-red);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #a02020;
}

.card-back-inner {
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    border: 1.5px solid rgba(255,215,0,0.25);
    border-radius: calc(var(--card-radius) - 3px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.deck-count {
    color: rgba(255,215,0,0.6);
    font-size: 1.2rem;
    font-weight: 700;
}

/* ============================
 * Colori semi (bordo carta)
 * ============================ */
.suit-denari .card-front { border-color: rgba(212,160,23,0.3); }
.suit-coppe .card-front { border-color: rgba(192,57,43,0.3); }
.suit-bastoni .card-front { border-color: rgba(39,174,96,0.3); }
.suit-spade .card-front { border-color: rgba(52,73,94,0.3); }

/* ============================
 * Interazioni carte giocatore
 * ============================ */
.card.playable {
    cursor: pointer;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.card.playable:hover {
    transform: translateY(-14px) scale(1.06);
    z-index: 10;
}

.card.playable:hover .card-front {
    box-shadow: 0 8px 25px rgba(212,160,23,0.4);
}

.card.playable:active {
    transform: translateY(-8px) scale(1.02);
}

/* Highlight presa su tavolo (preview hover) */
.card.highlight .card-front {
    box-shadow: 0 0 12px 3px rgba(76,175,80,0.6);
    border-color: #4CAF50;
}

.card.highlight::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border: 2px solid rgba(76,175,80,0.7);
    border-radius: calc(var(--card-radius) + 2px);
    pointer-events: none;
    animation: pulse-border 1s ease infinite;
}

/* Carta giocata (animazione uscita) */
.card.playing {
    animation: cardPlayUp 0.35s ease forwards;
}

.card.playing-down {
    animation: cardPlayDown 0.35s ease forwards;
}

/* Carta catturata (animazione uscita) */
.card.captured {
    animation: cardCaptured 0.4s ease forwards;
}

/* Carta rivelata dal bot */
.card.revealed .card-inner {
    transform: rotateY(0deg);
    transition: transform 0.5s ease;
}

/* Animazione ingresso carte */
.card.deal-in {
    animation: dealIn 0.4s ease backwards;
}

/* ============================
 * Keyframes
 * ============================ */
@keyframes dealIn {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.7) rotateX(15deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0);
    }
}

@keyframes cardPlayUp {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-40px) scale(0.85); }
}

@keyframes cardPlayDown {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(40px) scale(0.85); }
}

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

@keyframes pulse-border {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ============================
 * Effetto SCOPA
 * ============================ */
.scopa-effect {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scopa-effect span {
    font-family: Georgia, serif;
    font-size: 5rem;
    font-weight: 700;
    color: var(--gold);
    text-shadow:
        0 0 20px rgba(212,160,23,0.8),
        0 0 40px rgba(212,160,23,0.4),
        2px 2px 4px rgba(0,0,0,0.6);
    transform: scale(0.5);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scopa-effect.show {
    opacity: 1;
}

.scopa-effect.show span {
    transform: scale(1);
}

.scopa-effect.fade {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* ============================
 * Flash presa
 * ============================ */
.capture-flash {
    animation: captureFlash 0.5s ease;
}

@keyframes captureFlash {
    0%, 100% { background: transparent; }
    50% { background: rgba(212,160,23,0.15); }
}

/* ============================
 * Tabella risultati
 * ============================ */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
}

.results-table th,
.results-table td {
    padding: 8px 12px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.92rem;
}

.results-table th {
    color: rgba(245,245,220,0.6);
    font-weight: 400;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.results-table td:first-child {
    text-align: left;
    color: rgba(245,245,220,0.8);
}

.results-table .win-cell {
    color: #4CAF50;
    font-weight: 700;
}

.results-table .lose-cell {
    color: rgba(245,245,220,0.3);
}

.results-table tr.total-row td {
    border-top: 2px solid rgba(212,160,23,0.3);
    font-weight: 700;
    font-size: 1rem;
    padding-top: 12px;
    color: var(--gold);
}

.results-table tr.grand-total td {
    font-size: 1.15rem;
    color: var(--gold);
    font-weight: 700;
}

.winner-text {
    font-family: Georgia, serif;
    font-size: 1.6rem;
    margin: 0.8em 0;
}

.winner-text.player-wins {
    color: #4CAF50;
}

.winner-text.bot-wins {
    color: #e74c3c;
}

/* ============================
 * Lobby Screen
 * ============================ */
#lobby-screen,
#join-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1a1428 50%, var(--bg-primary) 100%);
    text-align: center;
}

.lobby-container {
    max-width: 600px;
    width: 100%;
}

.lobby-box {
    background: var(--bg-secondary);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 2.5em;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.lobby-section {
    margin-bottom: 2em;
}

.lobby-section h3 {
    color: var(--purple-primary);
    margin-bottom: 1em;
    font-size: 1.1rem;
    font-weight: 600;
}

.lobby-input {
    display: block;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    text-align: center;
    font-family: inherit;
    transition: all 0.2s ease;
}

.lobby-input:focus {
    outline: none;
    border-color: var(--purple-primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.lobby-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.code-input {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.helper-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1em;
    line-height: 1.5;
}

/* Sezione condivisione codice */
.share-code-box {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 1.5em;
    margin-bottom: 1.5em;
}

.share-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.8em;
    font-weight: 500;
}

.code-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 1em 0;
}

.room-code {
    font-family: 'Courier New', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--purple-primary);
    letter-spacing: 0.3em;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.share-link-section {
    margin-top: 1.5em;
    padding-top: 1.5em;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.share-link-box {
    display: flex;
    gap: 10px;
    margin: 10px 0 16px;
}

.share-input {
    flex: 1;
    font-size: 0.85rem;
    margin-bottom: 0;
    text-align: left;
    padding: 10px 12px;
}

.share-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 12px 0 0;
}

.share-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: #fff;
}

.share-btn svg {
    width: 24px;
    height: 24px;
}

.share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.share-btn:active {
    transform: scale(0.95);
}

.share-whatsapp { background: #25D366; }
.share-telegram { background: #0088cc; }
.share-facebook { background: #1877F2; }
.share-native {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--purple-primary);
}

.lobby-divider {
    display: flex;
    align-items: center;
    margin: 2em 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lobby-divider::before,
.lobby-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.lobby-divider span {
    padding: 0 1.5em;
}

.waiting-text {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.95rem;
    animation: pulse 2s ease infinite;
    margin-top: 1em;
}

/* ============================
 * Modal scelta cattura
 * ============================ */
.capture-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 1em 0;
}

.capture-option {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(212,160,23,0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-wrap: wrap;
}

.capture-option:hover {
    background: rgba(212,160,23,0.15);
    border-color: var(--gold);
}

.capture-card-mini {
    width: 42px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Deck placeholder */
.deck-placeholder {
    opacity: 0.7;
    cursor: default;
}

/* ============================
 * Animazione ingresso schermate
 * ============================ */
#start-screen {
    animation: fadeIn 0.6s ease;
}

#game-screen {
    animation: fadeIn 0.4s ease;
}

#lobby-screen,
#join-screen {
    animation: fadeIn 0.4s ease;
}

/* ============================
 * Responsive
 * ============================ */
@media (max-width: 768px) {
    :root {
        --card-width: 70px;
        --card-height: 101px;
    }

    .game-title {
        font-size: 3rem;
    }

    .game-subtitle {
        font-size: 1rem;
    }

    .rules-box {
        padding: 1.5em 1.8em;
    }

    .room-code {
        font-size: 2rem;
    }

    .lobby-box {
        padding: 2em;
    }

    .game-header {
        flex-direction: column;
        gap: 6px;
        padding: 8px 12px;
    }

    .score-display { gap: 12px; font-size: 0.82rem; }

    .game-area { padding: 6px 10px; }

    .table-area { padding: 10px 12px; }

    .card.playable:hover {
        transform: translateY(-10px) scale(1.04);
    }

    .scopa-effect span { font-size: 3.5rem; }

    .turn-indicator { font-size: 0.85rem; }
}

@media (max-width: 480px) {
    :root {
        --card-width: 64px;
        --card-height: 92px;
    }

    .game-title {
        font-size: 2.5rem;
    }

    .game-subtitle {
        font-size: 0.95rem;
    }

    .rules-box {
        padding: 1.2em 1.5em;
        margin-bottom: 2em;
    }

    .rules-box h3 {
        font-size: 1rem;
    }

    .rules-box li {
        font-size: 0.88rem;
    }

    .room-code {
        font-size: 1.8rem;
        letter-spacing: 0.25em;
    }

    .lobby-box {
        padding: 1.5em;
    }

    .lobby-section h3 {
        font-size: 1rem;
    }

    .share-buttons {
        gap: 10px;
    }

    .share-btn {
        width: 42px;
        height: 42px;
    }

    .share-btn svg {
        width: 20px;
        height: 20px;
    }

    .btn-large {
        font-size: 1rem !important;
    }

    .game-area { padding: 4px 6px; gap: 4px; }

    .table-area { padding: 8px 10px; }

    #player-hand, #bot-hand { gap: 6px; }
    #table-cards { gap: 6px; }

    .bot-zone, .player-zone { gap: 8px; padding: 4px 0; }
    .bot-zone .zone-label, .player-zone .zone-label { display: none; }

    .game-info-bar { padding: 4px 10px; font-size: 0.78rem; gap: 12px; }

    .turn-indicator { font-size: 0.8rem; padding: 6px; }
}
