/* ===========================================
   CONFIGURABLE SETTINGS
   =========================================== */
:root {
    --card-hover-scale: 2.5;  /* Card enlargement on hover (2.5 = 150% larger) */

    /* Card dimensions */
    --card-width: 60px;
    --card-height: 84px;
    --card-community-width: 70px;
    --card-community-height: 98px;

    /* Font sizes */
    --font-body: 14px;
    --font-critical: 16px;
    --font-pot: 1.5rem;

    /* Colors - Traditional Green Felt (default) */
    --bg-body: linear-gradient(135deg, #1e5a35 0%, #0f3320 100%);
    --bg-table: radial-gradient(ellipse at center, #4a9d6b 0%, #2d7a4a 70%);
    --bg-player-spot: rgba(0,0,0,0.4);
    --border-table: #8b4513;
    --text-primary: #fff;
    --text-accent: #ffd700;
    --card-red: #cc0000;
    --card-black: #000;
}

/* High Contrast Dark Mode */
[data-theme="dark"] {
    --bg-body: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    --bg-table: radial-gradient(ellipse at center, #1a1a1a 0%, #0d0d0d 70%);
    --text-accent: #ffff00;
    --card-red: #ff3333;
    --card-black: #ffffff;
}

/* Colorblind Enhanced Mode */
[data-theme="colorblind"] {
    --card-red: #ff6600;   /* Orange instead of red */
    --card-black: #000000; /* Keep black as black */
}

/* Large Format Mode */
[data-display-mode="large"] {
    --card-width: 120px;
    --card-height: 168px;
    --card-community-width: 140px;
    --card-community-height: 196px;
    --font-body: 20px;
    --font-critical: 30px;
    --font-pot: 2rem;
}

.royal-flush-icon {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    background-image: url('/static/images/royal-flush-icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    margin-right: 0.2em;
    transition: transform 0.2s ease;
}

.royal-flush-icon:hover {
    transform: scale(1.5);
}

.royal-flush-icon.large {
    width: 2.7em;
    height: 2.7em;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-body);
    min-height: 100vh;
    color: var(--text-primary);
    font-size: var(--font-body);
    overflow-x: hidden;
}

.header {
    text-align: center;
    padding: 15px;
    background: rgba(0,0,0,0.3);
}

.header h1 {
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-size: 2rem;
}

.token-info {
    color: #90EE90;
    font-size: 0.9rem;
    margin-top: 5px;
}

.dollar-equiv {
    color: #90EE90;
    font-size: 0.85em;
}

.game-container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 20px 40px;
}

/* Poker Table */
.poker-table {
    background: var(--bg-table);
    border: 15px solid var(--border-table);
    border-radius: 150px;
    padding: 30px;
    margin: 20px auto;
    position: relative;
    box-shadow:
        inset 0 0 50px rgba(0,0,0,0.5),
        0 10px 30px rgba(0,0,0,0.5);
    min-height: 400px;
}

/* Pot Display */
.pot-display {
    text-align: center;
    margin-bottom: 20px;
}

.pot-amount {
    font-size: var(--font-pot);
    color: var(--text-accent);
    background: rgba(0,0,0,0.5);
    padding: 10px 30px;
    border-radius: 25px;
    display: inline-block;
}

.phase-display {
    font-size: 1rem;
    color: #aaa;
    margin-top: 5px;
}

.wild-card-display {
    background: rgba(255, 105, 180, 0.2);
    border: 2px solid #ff69b4;
    border-radius: 10px;
    padding: 8px 20px;
    margin-top: 10px;
    display: inline-block;
}

/* Community Cards */
.community-cards {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    min-height: 100px;
}

/* Player Positions */
.players-area {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.player-spot {
    background: var(--bg-player-spot);
    border-radius: 15px;
    padding: 15px;
    min-width: 180px;
    text-align: center;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.player-spot.active {
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255,215,0,0.5);
}

.player-spot.folded {
    opacity: 0.5;
}

.player-spot.human {
    background: rgba(0,70,140,0.4);
}

.player-name {
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dealer-chip {
    background: #fff;
    color: #000;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffd700;
}

.player-number {
    background: linear-gradient(145deg, #4a90d9, #2e5a8a);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #87ceeb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

[data-display-mode="large"] .player-number {
    width: 40px;
    height: 40px;
    font-size: 20px;
    border-width: 3px;
}

.player-chips {
    color: #ffd700;
    margin: 5px 0;
}

.player-bet {
    color: #ff9800;
    font-size: 0.9rem;
}

.player-cards {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
}

.player-status {
    margin-top: 8px;
    font-size: 0.85rem;
    padding: 3px 10px;
    border-radius: 10px;
    display: inline-block;
}

.status-folded {
    background: #c0392b;
}

.status-all-in {
    background: #8e44ad;
}

.hand-result {
    margin-top: 8px;
    color: #ffd700;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Cards */
.card {
    width: var(--card-width);
    height: var(--card-height);
    background: #fff;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    position: relative;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Face-up cards (and revealed down cards) enlarge on hover */
.up-cards-group .card:not(.back):hover,
.down-cards-group .card:not(.back):hover,
.community-cards .card:not(.back):hover {
    transform: scale(var(--card-hover-scale));
    z-index: 100;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.card.wild {
    border: 5px solid #ffd700;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.7), 0 3px 6px rgba(0,0,0,0.3);
}

.card.back {
    background: linear-gradient(145deg, #1e3d59, #17435e);
    border: 2px solid #fff;
}

.card.back::after {
    content: '\1F0A0';
    font-size: 40px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.card.community {
    width: var(--card-community-width);
    height: var(--card-community-height);
}

.card.placeholder {
    background: rgba(255,255,255,0.1);
    border: 2px dashed rgba(255,255,255,0.3);
}

.card-corner {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.card-corner.bottom {
    align-self: flex-end;
    transform: rotate(180deg);
}

.card-rank {
    font-size: 14px;
    font-weight: bold;
}

.card-suit {
    font-size: 12px;
}

.card.hearts, .card.diamonds {
    color: var(--card-red);
}

.card.clubs, .card.spades {
    color: var(--card-black);
}

.card-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
}

/* Action Panel - Floating Toolbar */
.action-panel {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(145deg, rgba(0,0,0,0.9), rgba(30,30,30,0.95));
    border-radius: 20px;
    padding: 20px 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 20px rgba(255,215,0,0.3);
    border: 2px solid rgba(255,215,0,0.5);
    z-index: 1000;
    animation: floatIn 0.3s ease-out;
    transition: opacity 0.15s ease-out;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.action-panel::before {
    content: "\1F3AF YOUR TURN";
    display: block;
    text-align: center;
    color: #ffd700;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255,215,0,0.5);
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Action button specific styles - larger for floating toolbar */
.action-panel .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    min-width: 100px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.action-panel .btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.btn-fold {
    background: linear-gradient(145deg, #c0392b, #a93226);
    color: white;
}

.btn-check, .btn-call {
    background: linear-gradient(145deg, #27ae60, #229954);
    color: white;
}

.btn-raise {
    background: linear-gradient(145deg, #f39c12, #d68910);
    color: white;
}

.btn-allin {
    background: linear-gradient(145deg, #8e44ad, #7d3c98);
    color: white;
}

.btn-primary {
    background: linear-gradient(145deg, #ffd700, #ffaa00);
    color: #1a3555;
}

.btn-primary:disabled,
.btn-primary.disabled {
    background: linear-gradient(145deg, #666, #555);
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-bet-amount {
    background: linear-gradient(145deg, #3498db, #2980b9);
    color: white;
    padding: 8px 12px;
    min-width: 45px;
    font-weight: bold;
}

.btn-bet-amount:hover {
    background: linear-gradient(145deg, #5dade2, #3498db);
}

.bet-buttons {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.btn-clear-bet {
    background: linear-gradient(145deg, #e74c3c, #c0392b);
    color: white;
    padding: 8px 12px;
    font-weight: bold;
}

.btn-clear-bet:hover {
    background: linear-gradient(145deg, #ec7063, #e74c3c);
}

/* Player Name Dropdown */
#playerName {
    font-size: 1rem;
}

#playerName option:disabled {
    color: #999 !important;
    font-style: italic !important;
    background: #f5f5f5 !important;
}

#playerName option:not(:disabled) {
    color: #1a3555;
    font-weight: bold;
}

.raise-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.raise-input {
    width: 100px;
    padding: 10px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    text-align: center;
}

.raise-slider {
    width: 200px;
}

/* Status Messages */
.game-status {
    text-align: center;
    padding: 15px 20px;
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    min-height: 70px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    margin: 10px 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.game-status .turn-indicator {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    animation: turnPulse 1.5s ease-in-out infinite;
}

.game-status .turn-indicator.my-turn {
    background: linear-gradient(145deg, #2ecc71, #27ae60);
    color: #fff;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.6);
}

.game-status .turn-indicator.waiting {
    background: linear-gradient(145deg, #f39c12, #e67e22);
    color: #fff;
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.6);
}

.game-status .player-name-highlight {
    color: #ffd700;
    font-size: 2.2rem;
    text-decoration: underline;
    text-underline-offset: 4px;
}

@keyframes turnPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Winner Announcement */
.winner-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.winner-content {
    background: linear-gradient(145deg, #1a3555, #0d1a2d);
    border: 3px solid #ffd700;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    animation: popIn 0.5s ease;
}

@keyframes popIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.winner-content h2 {
    color: #ffd700;
    font-size: 2rem;
    margin-bottom: 20px;
}

.winner-details {
    font-size: 1.2rem;
    margin: 15px 0;
}

.winner-entry {
    margin: 15px 0;
    padding: 15px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
}

.winner-name {
    font-size: 1.8rem;
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 10px;
}

.winner-amount {
    font-size: 1.3rem;
    color: #90EE90;
    margin-bottom: 8px;
}

.winner-hand {
    font-size: 1.5rem;
    color: #fff;
    font-style: italic;
}

/* Controls Bar */
.controls-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0,0,0,0.3);
}

/* Animations */
.card-deal {
    animation: dealCard 0.3s ease;
}

@keyframes dealCard {
    from {
        transform: translateY(-100px) rotate(180deg);
        opacity: 0;
    }
    to {
        transform: translateY(0) rotate(0);
        opacity: 1;
    }
}

/* Algorithm Info (from shuffle feature) */
.algorithm-info {
    display: none;
    max-width: 900px;
    margin: 20px auto;
    padding: 25px;
    background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(240,240,240,0.95));
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    color: #1a1a1a;
}

.algorithm-info h2 {
    text-align: center;
    color: #1a3555;
    margin-bottom: 20px;
    border-bottom: 3px solid #ffd700;
    padding-bottom: 10px;
}

.algorithm-info h3 {
    color: #1a3555;
    margin: 15px 0 10px;
}

.info-section {
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(26, 53, 85, 0.05);
    border-radius: 10px;
    border-left: 4px solid #1a3555;
}

.code-block {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 8px;
    font-family: monospace;
    overflow-x: auto;
    margin: 10px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .poker-table {
        border-radius: 50px;
        padding: 15px;
    }
    .player-spot {
        min-width: 140px;
        padding: 10px;
    }
    .card {
        width: 50px;
        height: 70px;
    }
    .card.community {
        width: 55px;
        height: 77px;
    }
}

/* Game Mode Container Display */
#holdemTable, #studTable {
    display: none;
}

[data-game-mode="holdem"] #holdemTable {
    display: block;
}

[data-game-mode="stud_follow_queen"] #studTable {
    display: block;
}

/* Wild Card Panel */
#wildCardPanel {
    background: linear-gradient(135deg, #8b008b 0%, #ff1493 100%);
    border: 4px solid #ff69b4;
    border-radius: 20px;
    padding: 15px 30px;
    margin: 20px auto;
    max-width: min(84vw, calc(100vw - 60px));
    box-shadow: 0 0 40px rgba(255, 105, 180, 0.6);
}

#wildCardPanel .current-wild {
    font-size: 4rem;
    color: #ffd700;
    text-align: center;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
    white-space: nowrap;
}

#wildCardPanel .wild-history {
    margin-top: 40px;
    display: flex;
    gap: 27px;
    justify-content: center;
    flex-wrap: wrap;
}

.wild-change-badge {
    background: rgba(0,0,0,0.3);
    padding: 22px 40px;
    border-radius: 54px;
    font-size: 2.4rem;
}

/* Stud Player Card Layout */
.stud-players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 20px;
}

.stud-player-card {
    background: rgba(0,0,0,0.4);
    border-radius: 15px;
    padding: 20px;
    border: 3px solid transparent;
}

.stud-player-card.active {
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255,215,0,0.5);
}

.stud-player-card.folded {
    opacity: 0.5;
}

.stud-player-card .player-info {
    margin-bottom: 15px;
}

.card-progression {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.down-cards-group, .up-cards-group {
    flex: 1;
    min-width: 140px;
}

.down-cards-group label, .up-cards-group label {
    display: block;
    text-align: center;
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cards-vertical {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.cards-vertical .card {
    margin: 0;
}

/* Visual distinction for down cards group */
.down-cards-group {
    background: rgba(139, 0, 0, 0.2);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 15px;
}

/* Visual distinction for up cards group */
.up-cards-group {
    background: rgba(0, 100, 0, 0.2);
    border: 2px solid rgba(0, 255, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
}

/* Street Indicators */
.street-indicator {
    font-size: 0.7rem;
    color: #aaa;
    text-align: center;
    margin-top: 3px;
}

/* Current Hand Display */
.current-hand-display {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #ffd700;
    border-radius: 10px;
    padding: 10px 15px;
    margin-top: 15px;
    text-align: center;
    color: #ffd700;
    font-weight: bold;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* Clickable reveal for down cards at showdown */
.clickable-reveal {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-reveal:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    border-color: #ffd700;
}

.reveal-hint {
    text-align: center;
    color: #ffd700;
    font-size: 0.8rem;
    margin-top: 8px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* =============================================
   LARGE FORMAT MODE STYLES
   ============================================= */
.large-format-wrapper {
    display: none;
}

[data-display-mode="large"] .large-format-wrapper {
    display: grid;
    grid-template-rows: 35% 30%;
    height: calc(100vh - 120px);
    gap: 10px;
    padding: 10px;
}

[data-display-mode="large"] #holdemTable,
[data-display-mode="large"] #studTable {
    display: none !important;
}

/* Large Format Card Text - doubled sizes */
[data-display-mode="large"] .card-rank {
    font-size: 28px;
}

[data-display-mode="large"] .card-suit {
    font-size: 24px;
}

[data-display-mode="large"] .card-center {
    font-size: 48px;
}

/* Large Format Zones */
.lf-opponents-zone {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    padding: 10px;
    overflow-y: auto;
}

.lf-center-zone {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-table);
    border-radius: 30px;
    padding: 20px 40px;
    border: 8px solid var(--border-table);
}

.lf-center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.lf-player-zone {
    display: none;
}

[data-display-mode="large"] .lf-player-zone-inline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 15px 25px;
    margin-left: 30px;
    background: rgba(0, 100, 200, 0.3);
    border-radius: 20px;
    border: 3px solid rgba(0, 170, 255, 0.5);
}

.lf-folded-strip {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 500;
    transform: scale(1.4);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.lf-folded-strip:hover {
    transform: scale(2.8);
}

.lf-folded-toggle {
    background: rgba(0,0,0,0.7);
    color: var(--text-accent);
    border: 2px solid var(--text-accent);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: var(--font-body);
    font-weight: bold;
}

.lf-folded-players {
    display: none;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
    background: rgba(0,0,0,0.8);
    padding: 10px;
    border-radius: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.lf-folded-strip:hover .lf-folded-players,
.lf-folded-strip.expanded .lf-folded-players {
    display: flex;
}

.lf-folded-player {
    font-size: 14px;
    color: #fff;
    padding: 4px 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
}

/* Large Format Player Spot */
.lf-player-spot {
    background: var(--bg-player-spot);
    border-radius: 20px;
    padding: 20px;
    min-width: 250px;
    text-align: center;
    border: 4px solid transparent;
}

.lf-player-spot.active {
    border-color: var(--text-accent);
    box-shadow: 0 0 30px rgba(255,215,0,0.5);
}

.lf-player-spot.current-player {
    background: rgba(0,100,200,0.4);
    border-color: #00aaff;
}

.lf-player-spot .player-name {
    font-size: var(--font-critical);
    font-weight: bold;
    margin-bottom: 10px;
}

.lf-player-spot .player-chips {
    font-size: calc(var(--font-critical) * 0.8);
    color: var(--text-accent);
    margin-bottom: 10px;
}

.lf-player-spot .player-cards {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

/* Large format pot display */
.lf-pot-display {
    font-size: var(--font-critical);
    color: var(--text-accent);
    background: rgba(0,0,0,0.6);
    padding: 15px 40px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.lf-community-cards {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

/* Large format info boxes */
.lf-info-box {
    font-size: 28px;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 15px;
    margin: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.lf-wild-info {
    background: rgba(255, 105, 180, 0.3);
    border: 3px solid #ff69b4;
    color: #ffb6c1;
}

.lf-phase-info {
    background: rgba(0, 150, 255, 0.3);
    border: 3px solid #00aaff;
    color: #87cefa;
}

[data-display-mode="large"] #lfPhaseDisplay {
    font-size: 28px;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 15px;
    margin: 10px;
    background: rgba(0, 150, 255, 0.3);
    border: 3px solid #00aaff;
    color: #87cefa;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Theme dropdown styling */
.theme-select, .display-mode-select {
    padding: 8px 12px;
    background: rgba(255,255,255,0.9);
    color: #1a3555;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
}

.theme-select:hover, .display-mode-select:hover {
    background: #fff;
}

/* Fold Announcement Popup */
.fold-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 1100;
    background: linear-gradient(145deg, #2d1a1a, #1a0d0d);
    border: 4px solid #ff4444;
    border-radius: 25px;
    padding: 30px 50px;
    text-align: center;
    box-shadow: 0 0 60px rgba(255, 68, 68, 0.6),
                0 0 100px rgba(255, 68, 68, 0.3),
                inset 0 0 30px rgba(255, 68, 68, 0.1);
    animation: foldPopIn 0.5s ease forwards;
}

.fold-popup.show {
    display: block;
}

.fold-popup.hiding {
    animation: foldPopOut 0.3s ease forwards;
}

@keyframes foldPopIn {
    0% { transform: translate(-50%, -50%) scale(0) rotate(-10deg); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.1) rotate(2deg); }
    100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
}

@keyframes foldPopOut {
    from { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    to { transform: translate(-50%, -50%) scale(0) rotate(10deg); opacity: 0; }
}

.fold-popup-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: foldIconPulse 0.8s ease-in-out infinite;
}

@keyframes foldIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.fold-popup h2 {
    color: #ff6666;
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    text-shadow: 0 0 20px rgba(255, 102, 102, 0.8);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.fold-popup .player-name {
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    margin: 10px 0 20px 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.fold-popup-close {
    background: linear-gradient(145deg, #ff4444, #cc2222);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
}

.fold-popup-close:hover {
    background: linear-gradient(145deg, #ff6666, #dd3333);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.6);
}

.fold-popup-timer {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    line-height: 24px;
    margin-left: 8px;
    font-size: 0.9rem;
}
