/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal:not(.hidden) {
    animation: modalFadeIn 0.2s ease-out forwards;
}

.modal-content {
    background: var(--bg-glass-strong);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal:not(.hidden) .modal-content {
    animation: modalScaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalScaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Custom Word Modal Specific */
#custom-word-modal .modal-content {
    max-width: 700px;
    padding: 3rem;
}

#custom-word-modal input {
    font-size: 1.5rem;
    padding: 1rem;
    text-align: center;
    letter-spacing: 1px;
}

.modal-content h3 {
    color: var(--text-main);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    white-space: nowrap;
}

.modal-content p {
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 1.2rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--danger);
    transform: none;
    box-shadow: none;
}

/* Word Choices */
.word-choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
    padding: 0.5rem;
}

.word-choice-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-main);
    letter-spacing: 1px;
    text-transform: capitalize;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.word-choice-btn:hover {
    background: var(--primary);
    transform: scale(1.05);
}

/* Result Overlay */
#round-result-title {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.result-word {
    font-size: 2.5rem;
    color: var(--success);
    margin: 0 0 1.5rem 0;
    font-weight: bold;
}

.result-subtitle {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.result-scores {
    margin-top: 1rem;
    text-align: left;
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
}

.score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 5px;
    border-radius: var(--radius-sm);
}

.score-row.winner {
    background: rgba(241, 196, 15, 0.1);
    border: 1px solid #f1c40f;
}

.score-rank {
    font-weight: bold;
    width: 30px;
    color: var(--text-dim);
}

.score-row.winner .score-rank {
    color: #f1c40f;
}

.score-user {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.score-points {
    font-weight: bold;
    color: var(--success);
}

.score-points.diff {
    color: var(--accent);
    font-size: 0.9rem;
    margin-left: 5px;
}

/* Leaderboard specific */
.leaderboard .score-row.rank-1 {
    background: linear-gradient(90deg, rgba(241, 196, 15, 0.2), transparent);
    border-left: 4px solid #f1c40f;
}
.leaderboard .score-row.rank-2 {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.2), transparent);
    border-left: 4px solid #c0c0c0;
}
.leaderboard .score-row.rank-3 {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.2), transparent);
    border-left: 4px solid #cd7f32;
}

/* Lobby Settings Modal */
.settings-content {
    max-width: 900px;
    width: 95%;
    text-align: left;
    background: var(--bg-glass-strong);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
}

.settings-layout {
    display: flex;
    gap: 0;
    height: 500px; /* Fixed height */
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.settings-sidebar {
    width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.15);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-main {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.sidebar-label {
    display: block;
    color: var(--text-dim);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.setting-section {
    margin-bottom: 2rem;
}

.setting-section label {
    display: block;
    color: var(--text-dim);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Game Mode Cards */
.gamemode-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gamemode-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 0.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.gamemode-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.gamemode-card.selected {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.2), rgba(241, 196, 15, 0.05));
    border-color: #f1c40f;
    box-shadow: 0 0 20px rgba(241, 196, 15, 0.3), inset 0 0 0 1px rgba(241, 196, 15, 0.2);
}

.card-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    font-size: 1.3rem;
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 0.2rem;
}

.gamemode-card:hover .card-icon {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.gamemode-card.selected .card-icon {
    color: #fff;
    background: #f1c40f;
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.5);
    border-color: #f1c40f;
    transform: scale(1.1);
}

.card-info {
    width: 100%;
}

.card-info h4 {
    color: var(--text-main);
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: normal;
}

.card-info p {
    display: none;
}

/* Settings Inputs */
.setting-group {
    margin-bottom: 1.5rem;
}

.setting-group label {
    display: block;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.setting-group input {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
    padding: 0.8rem;
    border-radius: var(--radius-md);
    width: 100%;
}

.setting-group input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px var(--primary-glow);
}

/* Ready Check Modal */
.ready-check-content {
    text-align: center;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.02);
    max-width: 550px;
    padding: 2.5rem;
}

.ready-check-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.ready-status {
    margin: 2rem 0;
    font-size: 1.1rem;
    color: var(--text-dim);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.ready-count {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    text-shadow: 0 0 20px var(--primary-glow);
    margin-bottom: 0.2rem;
}

.ready-timer {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-top: 1.5rem;
    font-family: 'Orbitron', sans-serif;
    opacity: 0.7;
}

.btn-ready {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    border: none;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-ready::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-ready:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-ready:hover::after {
    opacity: 1;
}

.btn-ready.waiting {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    cursor: default;
    box-shadow: none;
    transform: none;
}

.ready-players-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin: 1.5rem 0;
    min-height: 40px;
}

.ready-player-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(5px);
}

.ready-player-chip .player-avatar-small {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.ready-game-info {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ready-mode {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ready-mode::before {
    content: 'GAME MODE';
    font-size: 0.7rem;
    background: var(--primary);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.ready-settings {
    color: var(--text-dim);
    font-size: 0.9rem;
    padding-left: 0.5rem;
}

.ready-actions {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
    margin-top: 2rem;
    align-items: stretch;
}

.btn-danger-outline {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: var(--danger);
    padding: 0 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.btn-danger-outline:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
    transform: translateY(-1px);
}

.ready-player-chip.not-ready {
    opacity: 0.6;
    transform: scale(0.95);
}

.ready-player-chip.is-ready {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--success);
    color: white;
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
    padding-right: 1.2rem;
}

.ready-player-chip.is-ready::after {
    content: '\f00c'; /* FontAwesome check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--success);
    font-size: 0.8rem;
    margin-left: 5px;
}

/* Help Modal */
.help-content {
    max-width: 850px;
    text-align: left;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.help-section h4 {
    color: var(--primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.help-section.full-width {
    grid-column: 1 / -1;
    display: block;
    height: auto;
}

.shortcut-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.shortcut-list.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.shortcut-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-main);
    font-size: 0.95rem;
}

.key-group {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 120px;
}

.key {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2px 8px;
    font-family: monospace;
    font-weight: bold;
    color: var(--primary);
    box-shadow: 0 2px 0 rgba(0,0,0,0.5);
    min-width: 24px;
    text-align: center;
    font-size: 0.9rem;
    display: inline-block;
}

/* Settings Grid Layout */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.settings-grid .setting-group {
    margin-bottom: 0;
}

/* Presentation Modal - Larger */
.presentation-content {
 max-width: 900px !important;
 width: 90%;
}


/* Result Modal - Larger */
.result-content {
 max-width: 800px !important;
 width: 90%;
 max-height: 90vh;
 display: flex;
 flex-direction: column;
}

.result-scores {
 max-height: 60vh;
 overflow-y: auto;
 flex: 1;
}


/* Compact Settings Layout */
.compact-section {
    margin-bottom: 1.5rem;
}

.compact-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.compact-cards .gamemode-card {
    padding: 1rem;
    flex-direction: row;
    gap: 1rem;
    text-align: left;
    min-height: auto;
    align-items: center;
}

.compact-cards .card-icon {
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.compact-cards .card-info h4 {
    font-size: 0.95rem;
    margin: 0;
}

.compact-cards .card-info p {
    display: none;
}

.common-settings {
    /* Removed background/border to blend with other switches */
    padding: 0 0.5rem;
    margin-bottom: 0;
    margin-top: 0;
}

.compact-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.compact-grid .setting-group label {
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
    color: var(--text-dim);
}

.compact-grid .setting-group input {
    padding: 0.6rem;
    font-size: 0.95rem;
    background: rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.compact-grid .setting-group input:focus {
    border-color: var(--primary) !important;
    background: rgba(0, 0, 0, 0.6) !important;
}

.switches-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1rem;
}

.checkbox-row {
    display: contents;
}

.setting-group.checkbox-group {
    margin-bottom: 0;
    background: transparent;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
    width: 100%;
    justify-content: space-between;
}

.setting-group.checkbox-group label {
    margin-top: 0;
    order: -1;
    flex: 1;
}

.setting-group.checkbox-group input[type="checkbox"] {
    margin-left: 1rem;
}


/* Telephone Recap Modal - Extra Large */
.telephone-recap-content {
    max-width: 1200px !important;
    width: 95%;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
}


/* Telephone Recap Vertical & Tabs */
.recap-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
    width: 100%;
    scrollbar-width: thin;
}

.recap-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-weight: 600;
}

.recap-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.recap-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.recap-timeline {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 2rem 4rem 2rem;
    overflow-y: auto;
    flex: 1;
}

.recap-step {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.recap-step::after {
    content: '';
    position: absolute;
    bottom: -3rem;
    left: 50%;
    width: 2px;
    height: 3rem;
    background: linear-gradient(to bottom, var(--primary) 0%, transparent 100%);
    transform: translateX(-50%);
    opacity: 0.5;
}

.recap-step:last-child::after {
    display: none;
}

.recap-author {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recap-text {
    font-size: 1.8rem;
    color: white;
    text-align: center;
    margin: 1rem 0;
    font-family: 'Orbitron', sans-serif;
    line-height: 1.4;
}

.recap-image {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    background: white;
}


/* Telephone Recap Redesign V2 */
.telephone-recap-content {
    padding: 0 !important;
    background: var(--bg-dark) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: row !important;
    max-width: 95vw !important;
    width: 1600px !important;
    height: 90vh !important;
}

.recap-sidebar {
    width: 280px;
    background: rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 1rem;
    gap: 0.5rem;
    flex-shrink: 0;
}

.recap-sidebar h3 {
    color: var(--text-dim);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

.recap-tab {
    text-align: left;
    padding: 12px 16px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recap-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.recap-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.recap-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at center, #1e1e24 0%, #121218 100%);
    position: relative;
}

.recap-header {
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

.recap-header h2 {
    margin: 0;
    color: var(--primary);
    font-size: 1.5rem;
}

.recap-timeline-container {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.recap-step {
    width: 100%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: slideInUp 0.5s forwards;
}

.recap-step.text-step {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
}

.recap-author {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    color: var(--text-dim);
    font-weight: bold;
}

.recap-content-text {
    font-size: 2rem;
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    color: white;
    margin: 1rem 0;
}

.recap-content-image {
    max-width: 100%;
    max-height: 65vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    background: white;
}

.recap-controls {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    gap: 1rem;
}


@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Word Choice Timer */
.word-choice-timer {
    font-size: 2rem;
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 10px var(--primary-glow);
}



/* Gamemode Description */
.gamemode-description {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--primary);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.5;
}

/* Compact Sidebar Cards */
.gamemode-cards {
    gap: 0.5rem;
}

.gamemode-card {
    padding: 0.8rem 0.5rem;
    gap: 0.3rem;
}

.card-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    border-radius: 8px;
}

.card-info h4 {
    font-size: 0.8rem;
}

