/* Game-specific styles (Shared tokens moved to serene-core.css) */
/* Main Layout */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 16px 30px;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.game-arena {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* HUD Info Strip */
.hud-strip {
    display: flex;
    gap: 10px;
    width: 100%;
    align-items: center;
}

.hud-card {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.hud-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 2px;
}

.hud-value {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
}

.auto-complete-btn {
    padding: 10px 18px;
    font-size: 12px;
}

/* Solitaire Table */
.solitaire-table {
    width: 100%;
    background: #0f3d2e;
    background-image: radial-gradient(circle at 50% 30%, #165b45 0%, #0c3326 100%);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    padding: 16px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 480px;
    position: relative;
}

.table-top-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}

.deck-area, .foundations-area {
    display: flex;
    gap: 10px;
}

.card-slot {
    width: 72px;
    height: 100px;
    border-radius: 8px;
    border: 2px dashed rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: rgba(255, 255, 255, 0.35);
    font-size: 24px;
    cursor: pointer;
}

.stock-slot {
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.15);
}

.tableau-area {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    width: 100%;
    min-height: 320px;
}

.tableau-col {
    position: relative;
    min-height: 100px;
    border-radius: 8px;
    border: 2px dashed rgba(255, 255, 255, 0.12);
}

/* Playing Cards */
.card {
    width: 72px;
    height: 100px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.card.face-down {
    background: #1e293b;
    background-image: repeating-linear-gradient(45deg, #1e293b, #1e293b 6px, #334155 6px, #334155 12px);
    border: 1px solid #475569;
}

.card.selected {
    box-shadow: 0 0 0 3px #f59e0b, 0 6px 20px rgba(245, 158, 11, 0.4);
    transform: translateY(-4px);
    z-index: 50 !important;
}

.card.red, .card.red .card-rank, .card.red .card-suit, .card.red .card-center {
    color: var(--card-red, #e11d48) !important;
}
.card.black, .card.black .card-rank, .card.black .card-suit, .card.black .card-center {
    color: var(--card-black, #0f172a) !important;
}

.card-corner {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.card-corner.bottom {
    transform: rotate(180deg);
}

.card-rank {
    font-size: 13px;
    font-weight: 800;
}

.card-suit {
    font-size: 11px;
}

.card-center {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
}

/* Banner */
.status-banner {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 20px;
    padding: 28px 36px;
    box-shadow: var(--shadow-elevated);
    backdrop-filter: blur(24px);
    z-index: 100;
    text-align: center;
    min-width: 300px;
    max-width: 90vw;
}

.status-banner h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-dark);
    margin-bottom: 6px;
}

.status-banner p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 9999px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-gold {
    background: var(--accent-dark);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.btn-gold:hover {
    background: var(--accent-dark-hover);
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .card-slot, .card {
        width: calc((100vw - 76px) / 7);
        height: calc((100vw - 76px) / 7 * 1.38);
    }
    .card-center { font-size: 16px; }
    .card-rank { font-size: 11px; }
    .card-suit { font-size: 9px; }
}


/* ==========================================================================
   STANDARDIZED LOBBY & DRAWER TOKENS (Serene Light-Glass Master Standard)
   ========================================================================== */

/* Standardized Match Action Buttons */
.btn-resume-match {
    width: 28px;
    height: 28px;
    min-width: 28px;
    max-width: 28px;
    border-radius: 50%;
    background: var(--accent-dark, #0f172a);
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    margin: 0;
    transition: all 0.15s ease;
    flex-shrink: 0;
    box-sizing: border-box;
    text-align: center;
    letter-spacing: -0.2px;
}

.btn-resume-match:hover {
    background: var(--accent-dark-hover, #1e293b);
    transform: scale(1.08);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

.btn-dismiss-match {
    width: 28px;
    height: 28px;
    min-width: 28px;
    max-width: 28px;
    border-radius: 50%;
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.15s ease;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    box-sizing: border-box;
    text-align: center;
}

.btn-dismiss-match:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.6);
    color: #dc2626;
    transform: scale(1.08);
}

/* Modernized Lobby Mode Cards */
.lobby-mode-card {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.lobby-mode-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

/* Difficulty Selector */
.diff-selector {
    display: flex;
    background: rgba(241, 245, 249, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 9999px;
    padding: 3px;
    gap: 3px;
    margin-top: 6px;
    width: 100%;
}

.diff-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted, #64748b);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 0;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-family: inherit;
}

.diff-btn:hover {
    color: var(--text-main, #0f172a);
    background: rgba(255, 255, 255, 0.5);
}

.diff-btn.active {
    background: var(--accent-dark, #0f172a);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.diff-elo {
    font-size: 0.72em;
    opacity: 0.75;
    font-weight: 500;
    margin-left: 3px;
    letter-spacing: -0.02em;
}

/* Ecosystem Group */
.ecosystem-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.ecosystem-group .drawer-link {
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
}


/* Unified Active Games Type Badges */
.game-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 6px;
}
.game-type-badge.pente { background: rgba(16, 185, 129, 0.12); color: #059669; border: 1px solid rgba(16, 185, 129, 0.3); }
.game-type-badge.chess { background: rgba(15, 23, 42, 0.08); color: #0f172a; border: 1px solid rgba(15, 23, 42, 0.2); }
.game-type-badge.othello { background: rgba(59, 130, 246, 0.12); color: #2563eb; border: 1px solid rgba(59, 130, 246, 0.3); }
.game-type-badge.battleship { background: rgba(239, 68, 68, 0.12); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.3); }
.game-type-badge.backgammon { background: rgba(245, 158, 11, 0.12); color: #d97706; border: 1px solid rgba(245, 158, 11, 0.3); }
.game-type-badge.sudoku { background: rgba(139, 92, 246, 0.12); color: #7c3aed; border: 1px solid rgba(139, 92, 246, 0.3); }
.game-type-badge.solitaire { background: rgba(236, 72, 153, 0.12); color: #db2777; border: 1px solid rgba(236, 72, 153, 0.3); }
