/* ========================================
   حزر فزر - Arabic Hangman Game Styles
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --success-color: #22c55e;
    --success-light: #86efac;
    --error-color: #ef4444;
    --error-light: #fca5a5;
    --warning-color: #f59e0b;
    --warning-light: #fcd34d;

    --bg-color: #faf7f5;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;

    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;

    --border-color: #e5e7eb;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-sm: 8px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --font-arabic: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;

    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-arabic);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    direction: rtl;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* Screen Management */
.screen {
    display: none;
    min-height: 100vh;
    padding: 2rem;
}

.screen.active {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.screen.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 100;
}

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

/* ========================================
   Buttons
   ======================================== */

button {
    font-family: var(--font-arabic);
    cursor: pointer;
    border: none;
    outline: none;
    transition: all var(--transition-normal);
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.primary-btn:active {
    transform: translateY(0);
}

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

.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
}

.secondary-btn:hover {
    background: var(--primary-color);
    color: white;
}

.outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
}

.outline-btn:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.outline-btn.danger {
    color: var(--error-color);
    border-color: var(--error-color);
}

.outline-btn.danger:hover {
    background: var(--error-color);
    color: white;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-secondary);
    border-radius: 50%;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.icon-btn:hover {
    background: var(--bg-color);
    color: var(--text-primary);
}

/* ========================================
   Screen 0: Game Selector
   ======================================== */

.game-selector-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.selector-header {
    text-align: center;
    margin-bottom: 3rem;
}

.selector-title {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 4px 20px rgba(99, 102, 241, 0.5);
    margin-bottom: 0.5rem;
}

.selector-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.game-cards {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.game-card {
    width: 300px;
    padding: 2.5rem 2rem;
    border-radius: 24px;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.game-card:hover::before {
    opacity: 1;
}

/* Hangman Card - Fun/Colorful */
.hangman-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
}

.hangman-card::before {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.hangman-card:hover {
    box-shadow: 0 30px 80px rgba(102, 126, 234, 0.6);
}

/* Death Party Card - Horror/Dark */
.death-card {
    background: linear-gradient(135deg, #1a0a0a 0%, #4a0000 50%, #8b0000 100%);
    box-shadow: 0 20px 60px rgba(139, 0, 0, 0.5);
    border: 2px solid #cc0000;
}

.death-card::before {
    background: linear-gradient(135deg, #8b0000 0%, #4a0000 50%, #1a0a0a 100%);
}

.death-card:hover {
    box-shadow: 0 30px 80px rgba(139, 0, 0, 0.7), 0 0 40px rgba(255, 0, 0, 0.3);
    border-color: #ff0000;
}

.game-card-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.game-card-title {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.game-card-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.game-card-players {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: white;
    font-weight: 600;
}

/* Back button */
.back-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.back-btn svg {
    fill: white;
}

/* ========================================
   Screen 1: Home Screen
   ======================================== */

.home-container {
    text-align: center;
    position: relative;
}

.logo-container {
    margin-bottom: 3rem;
}

.game-logo {
    font-size: 5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ec4899 50%, var(--warning-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.game-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Mode Buttons */
.mode-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 350px;
}

.mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1.5rem 2rem;
    font-size: 1.25rem;
}

.mode-btn small {
    font-size: 0.875rem;
    font-weight: 400;
    opacity: 0.8;
}

.mode-btn svg {
    margin-bottom: 0.5rem;
}

#start-btn {
    font-size: 1.25rem;
}

/* ========================================
   Lobby Screen
   ======================================== */

#lobby-screen.screen.active {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
}

.lobby-container {
    background: var(--bg-card);
    padding: 2.5rem 3rem;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

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

.lobby-header h2 {
    margin: 0;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.room-code-section {
    text-align: center;
    margin-bottom: 2rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: var(--border-radius-lg);
}

.room-code-section p {
    color: var(--text-secondary);
    margin: 1rem 0;
    font-size: 1.75rem;
    font-weight: 500;
}

.join-url {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    background: white;
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius);
    display: inline-block;
    margin: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
    border: 3px solid var(--primary-color);
    letter-spacing: 1px;
}

.room-code-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.room-code-box span {
    font-size: 6rem;
    font-weight: 800;
    letter-spacing: 20px;
    color: white;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
    padding: 1rem 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: codeGlow 2s ease-in-out infinite;
}

@keyframes codeGlow {
    0%, 100% { box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 8px 50px rgba(99, 102, 241, 0.6); }
}

.lobby-players {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    min-height: 0;
    overflow: hidden;
}

.lobby-players h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    flex-shrink: 0;
    font-size: 2rem;
    text-align: center;
}

.lobby-players-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    gap: 1.5rem;
    flex: 1;
    overflow: hidden;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    min-height: 200px;
}

.lobby-player-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: var(--border-radius-lg);
    animation: playerJoin 0.5s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease;
    border: 3px solid var(--primary-color);
    min-width: 140px;
    max-width: 180px;
}

.lobby-player-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 50px rgba(99, 102, 241, 0.3);
}

@keyframes playerJoin {
    from {
        opacity: 0;
        transform: scale(0.5) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.lobby-player-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.75rem;
    border: 4px solid;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.lobby-player-card .name {
    font-weight: 700;
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-primary);
    max-width: 150px;
    word-wrap: break-word;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lobby-player-card.host::after {
    content: '👑 VIP';
    font-size: 0.9rem;
    color: #92400e;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 0.35rem 0.75rem;
    border-radius: 15px;
    margin-top: 0.5rem;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(251, 191, 36, 0.3);
}

.lobby-actions {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.lobby-actions .primary-btn {
    font-size: 1.5rem;
    padding: 1.25rem 3rem;
}

.lobby-hint {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-top: 1rem;
}

.lobby-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.lobby-empty svg {
    margin-bottom: 1.5rem;
    opacity: 0.5;
    width: 100px;
    height: 100px;
}

.lobby-empty p {
    font-size: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

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

.home-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

.floating-letter {
    position: absolute;
    font-size: 3rem;
    color: var(--primary-light);
    opacity: 0.2;
    animation: float 6s ease-in-out infinite;
}

.floating-letter:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-letter:nth-child(2) { top: 20%; right: 15%; animation-delay: 1.5s; }
.floating-letter:nth-child(3) { bottom: 20%; left: 20%; animation-delay: 3s; }
.floating-letter:nth-child(4) { bottom: 10%; right: 10%; animation-delay: 4.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* ========================================
   Screen 2: Player Registration
   ======================================== */

.registration-container {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.registration-container h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.hint-text {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.player-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input[type="text"] {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-arabic);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input[type="text"]:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group input[type="color"] {
    width: 100%;
    height: 44px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    padding: 4px;
}

.photo-upload {
    position: relative;
}

.photo-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
    min-height: 120px;
    background-size: cover;
    background-position: center;
}

.photo-preview:hover {
    border-color: var(--primary-color);
    background-color: var(--bg-color);
}

.photo-preview.has-photo {
    border-style: solid;
}

.photo-preview.has-photo svg,
.photo-preview.has-photo span {
    display: none;
}

#add-player-btn {
    grid-column: 1 / -1;
}

.players-list {
    margin-bottom: 2rem;
}

.players-list h3 {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.player-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: var(--border-radius);
    position: relative;
    border: 2px solid transparent;
}

.player-card .player-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 3px solid;
}

.player-card .player-name {
    font-weight: 600;
    text-align: center;
}

.player-card .remove-player {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 24px;
    height: 24px;
    background: var(--error-color);
    color: white;
    border-radius: 50%;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-card .remove-player:hover {
    background: #dc2626;
}

.registration-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

/* ========================================
   Screen 3: Game Screen
   ======================================== */

.game-container {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 2rem;
}

/* Full screen mode for host/TV */
.game-screen-fullscreen .game-container {
    max-width: 100%;
    padding: 1rem 3rem;
}

/* Host Players Panel - shows all players' hangman status */
.host-players-panel {
    display: none; /* Hidden by default, shown in online mode */
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    min-height: 120px;
}

.host-players-panel.visible {
    display: flex;
}

.host-player-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-color);
    border-radius: var(--border-radius);
    min-width: 200px;
    animation: playerCardPulse 0.3s ease;
}

@keyframes playerCardPulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.player-avatar-small {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid;
    overflow: hidden;
    flex-shrink: 0;
}

.player-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-info-host {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.player-name-host {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-score-host {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

.player-hangman-mini {
    flex-shrink: 0;
}

.player-status-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.player-status-icon.playing {
    animation: pulse 1s infinite;
}

.player-status-icon.won {
    color: var(--success-color);
}

.player-status-icon.lost {
    color: var(--error-color);
}

/* ========================================
   Online/TV Mode - Full Screen Layout
   ======================================== */

/* Hide local hangman in online mode */
.online-mode #hangman-area-local {
    display: none;
}

.online-mode .host-players-panel {
    display: flex;
}

/* TV-optimized container */
.online-mode .game-container {
    padding: 1.5rem 3rem;
    gap: 1.5rem;
    justify-content: flex-start;
}

/* Larger game header for TV */
.online-mode .game-header {
    padding: 1.5rem 2.5rem;
}

.online-mode .current-player-info .player-avatar {
    width: 70px;
    height: 70px;
}

.online-mode .player-details .player-name {
    font-size: 1.5rem;
}

.online-mode .player-details .player-points {
    font-size: 1.25rem;
}

.online-mode .level-info {
    font-size: 1.25rem;
}

.online-mode .level-info .level-number {
    font-size: 2rem;
}

.online-mode .difficulty-badge {
    font-size: 1rem;
    padding: 0.5rem 1.25rem;
}

.online-mode .timer-container {
    min-width: 100px;
}

.online-mode .timer {
    font-size: 2.5rem;
}

/* Larger players panel for TV */
.online-mode .host-players-panel {
    padding: 1.5rem 2rem;
    gap: 1.5rem;
    min-height: 160px;
}

.online-mode .host-player-card {
    padding: 1rem 1.5rem;
    min-width: 280px;
    gap: 1rem;
}

.online-mode .player-avatar-small {
    width: 60px;
    height: 60px;
    border-width: 4px;
}

.online-mode .player-name-host {
    font-size: 1.1rem;
}

.online-mode .player-score-host {
    font-size: 1rem;
}

.online-mode .player-hangman-mini svg {
    width: 55px;
    height: 70px;
}

.online-mode .player-status-icon {
    font-size: 2rem;
}

/* Larger game main area for TV */
.online-mode .game-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.online-mode .word-area {
    padding: 3rem 4rem;
    min-width: 60vw;
    min-height: 300px;
}

/* Much larger word display for TV viewing */
.online-mode .word-display {
    gap: 1.25rem;
}

.online-mode .letter-slot {
    width: 80px;
    height: 100px;
    font-size: 3.5rem;
    border-bottom-width: 6px;
}

.online-mode .category-display {
    font-size: 1.5rem;
    margin-top: 2rem;
}

.online-mode .category-display .category-name {
    font-size: 1.75rem;
}

/* Hide keyboard and hints in online mode */
.online-mode .keyboard-section,
.online-mode .hints-section {
    display: none !important;
}

/* Game Header */
.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.current-player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 3px solid var(--primary-color);
    overflow: hidden;
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-details {
    display: flex;
    flex-direction: column;
}

.player-details .player-name {
    font-weight: 700;
    font-size: 1.125rem;
}

.player-details .player-points {
    color: var(--primary-color);
    font-weight: 600;
}

.game-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.level-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-color);
    border-radius: var(--border-radius-sm);
}

.level-badge strong {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.difficulty-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.difficulty-badge.easy {
    background: var(--success-light);
    color: #166534;
}

.difficulty-badge.medium {
    background: var(--warning-light);
    color: #92400e;
}

.difficulty-badge.hard {
    background: var(--error-light);
    color: #991b1b;
}

.timer-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-color);
    border-radius: var(--border-radius-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.timer-container.warning {
    background: var(--warning-light);
    color: #92400e;
    animation: pulse 1s infinite;
}

.timer-container.danger {
    background: var(--error-light);
    color: #991b1b;
    animation: pulse 0.5s infinite;
}

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

.game-controls {
    display: flex;
    gap: 0.5rem;
}

/* Game Main Area */
.game-main {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
}

/* Hangman Area */
.hangman-area {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hangman-drawing {
    width: 100%;
    max-width: 200px;
}

.hangman-part {
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.hangman-part.visible {
    opacity: 1;
}

.hangman-part.hidden {
    opacity: 0;
}

.attempts-display {
    margin-top: 1rem;
    text-align: center;
}

.attempts-display span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.attempts-hearts {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
}

.attempts-hearts .heart {
    font-size: 1.25rem;
    transition: all var(--transition-normal);
}

.attempts-hearts .heart.lost {
    filter: grayscale(1);
    opacity: 0.3;
}

/* Word Area */
.word-area {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.word-display {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    direction: rtl;
}

.letter-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 60px;
    border-bottom: 4px solid var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    transition: all var(--transition-normal);
}

.letter-slot.revealed {
    color: var(--success-color);
    animation: letterReveal 0.3s ease;
}

.letter-slot.hint-revealed {
    color: var(--primary-color);
    animation: letterReveal 0.3s ease;
}

@keyframes letterReveal {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.category-display {
    margin-top: 1.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
}

.category-display strong {
    color: var(--primary-color);
}

/* Hints Section */
.hints-section {
    grid-column: 1 / -1;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.hints-section h4 {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.hints-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hint-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    color: var(--text-primary);
}

.hint-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    background: white;
}

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

.hint-btn .hint-icon {
    font-size: 1.25rem;
}

.hint-btn .hint-cost {
    color: var(--error-color);
    font-weight: 600;
}

.hint-message {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    display: none;
}

.hint-message.visible {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Keyboard Section */
.keyboard-section {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.arabic-keyboard {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.key-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.key-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.key-btn:disabled {
    cursor: not-allowed;
}

.key-btn.correct {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
    animation: correctKey 0.3s ease;
}

.key-btn.wrong {
    background: var(--error-color);
    color: white;
    border-color: var(--error-color);
    animation: wrongKey 0.5s ease;
}

.key-btn.removed {
    opacity: 0.2;
    background: var(--bg-color);
}

@keyframes correctKey {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes wrongKey {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ========================================
   Screen 4: Leaderboard
   ======================================== */

.leaderboard-container {
    background: var(--bg-card);
    padding: 3rem 4rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 900px;
    text-align: center;
}

.leaderboard-container h2 {
    margin-bottom: 1rem;
    font-size: 3rem;
}

.level-complete-info {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.level-complete-info strong {
    color: var(--primary-color);
    font-size: 2rem;
}

.leaderboard-table {
    margin-bottom: 2.5rem;
}

.leaderboard-row {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 0.75rem;
    background: var(--bg-color);
}

.leaderboard-row.first {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.leaderboard-row.second {
    background: linear-gradient(135deg, #f3f4f6 0%, #d1d5db 100%);
}

.leaderboard-row.third {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
}

.leaderboard-row .rank {
    font-size: 2.5rem;
    font-weight: 800;
    width: 60px;
    color: var(--text-primary);
}

.leaderboard-row .player-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 1.5rem;
    border: 3px solid var(--primary-color);
}

.leaderboard-row .player-name {
    flex: 1;
    font-weight: 700;
    text-align: right;
    font-size: 1.75rem;
}

.leaderboard-row .player-score {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* ========================================
   Screen 5: Winner Screen
   ======================================== */

.winner-container {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 500px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.trophy-icon {
    font-size: 5rem;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.winner-container h2 {
    font-size: 2.5rem;
    margin: 1rem 0;
    background: linear-gradient(135deg, #f59e0b 0%, #eab308 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.winner-info {
    margin: 2rem 0;
}

.winner-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 4px solid #f59e0b;
    overflow: hidden;
}

.winner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.winner-info h3 {
    font-size: 1.75rem;
}

.winner-score {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 700;
}

.final-rankings {
    margin: 2rem 0;
    text-align: right;
}

.final-rankings .ranking-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.final-rankings .ranking-item:last-child {
    border-bottom: none;
}

/* Confetti */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    animation: confettiFall 3s linear forwards;
}

@keyframes confettiFall {
    to {
        transform: translateY(500px) rotate(720deg);
        opacity: 0;
    }
}

/* ========================================
   Screen 6: Pause Screen
   ======================================== */

.pause-container {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    text-align: center;
    max-width: 400px;
}

.pause-icon {
    font-size: 4rem;
    margin: 1rem 0;
}

.pause-container p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.pause-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ========================================
   Screen 7: Stats Screen
   ======================================== */

.stats-container {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.stats-container h2 {
    text-align: center;
    margin-bottom: 2rem;
}

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

.stat-card {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.stat-card .player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.stat-card .player-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.stat-card .player-info h4 {
    flex: 1;
}

.stat-card .stats-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-card .stat-item {
    display: flex;
    justify-content: space-between;
}

.stat-card .stat-item span:first-child {
    color: var(--text-secondary);
}

.stat-card .stat-item span:last-child {
    font-weight: 600;
    color: var(--primary-color);
}

/* ========================================
   Modal
   ======================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.result-icon.win {
    animation: bounce 1s ease infinite;
}

.result-icon.lose {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.modal-content h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

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

.result-word {
    padding: 1rem;
    background: var(--bg-color);
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
}

.result-word strong {
    font-size: 1.5rem;
    color: var(--primary-color);
    display: block;
    margin-top: 0.5rem;
}

.result-points {
    margin-bottom: 1.5rem;
}

.result-points strong {
    font-size: 1.5rem;
}

.result-points strong.positive {
    color: var(--success-color);
}

.result-points strong.negative {
    color: var(--error-color);
}

/* ========================================
   Animations
   ======================================== */

.screen-shake {
    animation: screenShake 0.5s ease;
}

@keyframes screenShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.glow-green {
    box-shadow: 0 0 20px var(--success-color);
}

.glow-red {
    box-shadow: 0 0 20px var(--error-color);
}

/* ========================================
   Utility Classes
   ======================================== */

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-success {
    color: var(--success-color);
}

.text-error {
    color: var(--error-color);
}

.text-warning {
    color: var(--warning-color);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* ========================================
   Photo Options
   ======================================== */

.photo-options {
    display: none;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.photo-upload:hover .photo-options,
.photo-options.visible {
    display: flex;
}

.photo-option-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
    padding: 0.75rem;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.photo-option-btn:hover {
    border-color: var(--primary-color);
    background: white;
    color: var(--primary-color);
}

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

/* ========================================
   Camera Modal
   ======================================== */

.camera-modal-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.camera-modal-content h3 {
    margin-bottom: 0.5rem;
}

.camera-modal-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.camera-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 350px;
    margin: 0 auto 1.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: #000;
}

#camera-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.face-guide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 4px dashed var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
    animation: pulseGuide 2s ease-in-out infinite;
}

@keyframes pulseGuide {
    0%, 100% { border-color: var(--primary-color); }
    50% { border-color: var(--primary-light); }
}

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

#capture-btn {
    padding: 1rem 2rem;
}

#capture-btn svg {
    width: 28px;
    height: 28px;
}

/* ========================================
   Crop Modal
   ======================================== */

.crop-modal-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    text-align: center;
    max-width: 600px;
    width: 90%;
}

.crop-modal-content h3 {
    margin-bottom: 0.5rem;
}

.crop-modal-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.crop-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 1.5rem;
    background: #f0f0f0;
    border-radius: var(--border-radius);
    overflow: hidden;
    touch-action: none;
}

#crop-image {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.crop-circle {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    cursor: move;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.crop-handle {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border: 2px solid white;
    border-radius: 50%;
}

.crop-handle.top-left {
    top: -8px;
    left: -8px;
    cursor: nw-resize;
}

.crop-handle.top-right {
    top: -8px;
    right: -8px;
    cursor: ne-resize;
}

.crop-handle.bottom-left {
    bottom: -8px;
    left: -8px;
    cursor: sw-resize;
}

.crop-handle.bottom-right {
    bottom: -8px;
    right: -8px;
    cursor: se-resize;
}

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

/* ========================================
   Responsive - Camera & Crop
   ======================================== */

@media (max-width: 480px) {
    .camera-modal-content,
    .crop-modal-content {
        padding: 1.5rem;
    }

    .face-guide {
        width: 150px;
        height: 150px;
    }

    .crop-circle {
        width: 120px;
        height: 120px;
    }
}

/* ========================================
   Online Mode - Host Players Panel
   ======================================== */

.host-players-panel {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    padding: 2rem;
    background: transparent;
    flex: 1;
    overflow-y: auto;
    align-content: center;
}

.host-players-panel.visible {
    display: flex;
}

.host-player-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius-lg);
    border: 5px solid var(--border-color);
    transition: all var(--transition-fast);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 280px;
}

.host-player-card.finished {
    border-color: var(--success-color);
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.host-player-card.eliminated {
    border-color: var(--error-color);
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
}

.player-avatar-small {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    overflow: hidden;
    flex-shrink: 0;
}

.player-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-info-host {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.player-name-host {
    font-weight: 800;
    font-size: 2rem;
    color: var(--text-primary);
}

.player-score-host {
    font-size: 1.75rem;
    color: var(--primary-color);
    font-weight: 800;
}

.player-hangman-mini {
    flex-shrink: 0;
}

.player-hangman-mini svg {
    display: block;
    width: 100px;
    height: 130px;
}

.player-hangman-with-photo svg {
    width: 140px;
    height: 180px;
}

.player-status-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2.25rem;
    flex-shrink: 0;
}

.player-status-icon.playing {
    background: var(--primary-light);
}

.player-status-icon.won {
    background: var(--success-light);
}

.player-status-icon.lost {
    background: var(--error-light);
}

/* Online mode game layout */
body.online-mode .game-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

body.online-mode .hangman-area {
    display: none;
}

body.online-mode .word-area {
    display: none;
}

body.online-mode .keyboard-section {
    display: none;
}

body.online-mode .hints-section {
    display: none;
}

body.online-mode .game-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* TV Optimized Layout for Online Mode */
@media (min-width: 1200px) {
    body.online-mode .game-container {
        max-width: 100%;
        padding: 2rem;
    }

    body.online-mode .game-header {
        font-size: 1.25rem;
    }

    body.online-mode .word-display {
        gap: 1rem;
    }

    body.online-mode .letter-slot {
        width: 70px;
        height: 80px;
        font-size: 2.5rem;
    }

    .host-players-panel {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .host-player-card {
        padding: 1rem;
    }

    .player-avatar-small {
        width: 55px;
        height: 55px;
    }

    .player-name-host {
        font-size: 1rem;
    }

    .player-score-host {
        font-size: 0.875rem;
    }

    .player-hangman-mini svg {
        width: 50px;
        height: 60px;
    }
}
