
        /* Critical CSS - Inline for better compatibility */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

@font-face {
  font-family: 'Lalezar';
  src: url('./fonts/Lalezar.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Mikhak';
  src: url('./fonts/Mikhak.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

        body {
            font-family: 'Lalezar', 'Mikhak', sans-serif !important;
            font-style: bold;
            background: linear-gradient(135deg, #d2ea66 0%, #a25c4b 100%);
            min-height: 100vh;
            padding: 20px;
            direction: rtl;
            overflow-x: hidden;
        }

        .game-container {
            max-width: 1200px;
            margin: 0 auto;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 25px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            overflow: hidden;
        }

        .game-header {
            background: linear-gradient(135deg, #ff6b6b, #ee5a24);
            padding: 30px;
            text-align: center;
            color: white;
            position: relative;
        }

        .game-title {
            font-size: 3rem;
            font-weight: 700;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }

        .game-subtitle {
            font-style: bold;
            font-size: 1.2rem;
            opacity: 0.9;
        }

        /* Main sections */
        .main-menu {
            padding: 50px;
            text-align: center;
            display: block;
        }

        .game-room {
            padding: 40px;
            display: none;
        }

        .single-player-game {
            padding: 40px;
            display: none;
        }

        .multiplayer-game {
            padding: 40px;
            display: none;
        }

        .scoring-screen {
            padding: 40px;
            display: none;
        }

        .results-screen {
            padding: 40px;
            display: none;
        }

        /* Show/Hide classes */
        .show {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
        }

        .hide {
            display: none !important;
        }

        .menu-title {
            font-size: 2.5rem;
            font-weight: 700;
            color: #2c3e50;
            margin-bottom: 40px;
        }

        .menu-options {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            max-width: 800px;
            margin: 0 auto;
        }

        .menu-option {
            background: linear-gradient(135deg, #fff, #f8f9fa);
            border-radius: 25px;
            padding: 40px 30px;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
            border: 3px solid transparent;
            cursor: pointer;
            transition: all 0.4s ease;
            position: relative;
        }

        .menu-option:hover {
            transform: translateY(-8px);
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
        }

        .option-icon {
            font-size: 4rem;
            margin-bottom: 20px;
        }

        .option-title {
            font-size: 1.8rem;
            font-weight: 700;
            color: #2c3e50;
            margin-bottom: 15px;
        }

        .option-description {
            font-size: 1.1rem;
            color: #6c757d;
            line-height: 1.6;
        }

        /* Modal styles */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 1000;
        }

        .modal.active {
            display: flex !important;
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            background: white;
            border-radius: 25px;
            padding: 40px;
            max-width: 500px;
            width: 90%;
            box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
        }

        .modal-title {
            font-size: 2rem;
            font-weight: 700;
            color: #2c3e50;
            margin-bottom: 30px;
            text-align: center;
        }

        .form-group {
            margin-bottom: 25px;
        }

        .form-label {
            display: block;
            font-size: 1.2rem;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 10px;
        }

        .form-input {
            width: 100%;
            padding: 15px 20px;
            border: 3px solid #e9ecef;
            border-radius: 15px;
            font-size: 1.1rem;
            font-family: inherit;
            transition: all 0.3s ease;
            background: #f8f9fa;
        }

        .form-input:focus {
            outline: none;
            border-color: #007bff;
            background: white;
            box-shadow: 0 0 20px rgba(0, 123, 255, 0.2);
        }

        .modal-buttons {
            display: flex;
            gap: 15px;
            justify-content: center;
            margin-top: 30px;
        }

        .btn {
            padding: 15px 30px;
            border: none;
            border-radius: 25px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: inherit;
        }

        .btn-primary {
            background: linear-gradient(135deg, #007bff, #0056b3);
            color: white;
        }

        .btn-success {
            background: linear-gradient(135deg, #28a745, #20c997);
            color: white;
        }

        .btn-warning {
            background: linear-gradient(135deg, #ffc107, #e0a800);
            color: #212529;
        }

        .btn-secondary {
            background: #6c757d;
            color: white;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        }

        .btn:disabled {
            background: #6c757d !important;
            cursor: not-allowed !important;
            transform: none !important;
            box-shadow: none !important;
        }

        /* Beta badge */
        .beta-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: linear-gradient(135deg, #ff6b6b, #ee5a24);
            color: white;
            padding: 5px 10px;
            border-radius: 15px;
            font-size: 0.8rem;
            font-weight: 700;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
        }

        /* Game Room Styles */
        .room-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 40px;
            padding: 25px;
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }

        .room-info {
            text-align: center;
        }

        .room-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: #2c3e50;
            margin-bottom: 10px;
        }

        .room-code {
            font-size: 2.5rem;
            font-weight: 900;
            color: #007bff;
            background: white;
            padding: 10px 20px;
            border-radius: 15px;
            border: 3px solid #007bff;
            display: inline-block;
        }

        .host-info {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .host-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            border: 3px solid #28a745;
        }

        .host-name {
            font-size: 1.3rem;
            font-weight: 600;
            color: #28a745;
        }

        .host-description{
            font-size: 0.9rem; 
            color: #6c757d;
        }

        .room-content {
            display: grid;
            grid-template-columns: 1fr 350px;
            gap: 30px;
        }

        .players-section {
            background: white;
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }

        .section-title {
            font-size: 1.8rem;
            font-weight: 700;
            color: #2c3e50;
            margin-bottom: 25px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .players-list {
            display: grid;
            gap: 15px;
            margin-bottom: 30px;
            min-height: 60px;
        }

        .players-listt {
            text-align: center; 
            color: #6c757d; 
            padding: 20px;
        }

        .player-item {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 15px;
            border: 2px solid transparent;
            transition: all 0.3s ease;
            position: relative;
        }

        .player-item.host {
            border-color: #28a745;
            background: linear-gradient(135deg, #d4edda, #c3e6cb);
        }

        .player-item.ready {
            border-color: #007bff;
            background: linear-gradient(135deg, #cce7ff, #b3d9ff);
        }

        .player-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            border: 2px solid #dee2e6;
        }

        .player-info {
            flex: 1;
        }

        .player-name {
            font-size: 1.2rem;
            font-weight: 600;
            color: #2c3e50;
        }

        .player-status {
            font-size: 0.9rem;
            color: #6c757d;
        }

        .player-actions {
            display: flex;
            gap: 10px;
        }

        .player-actions .btn {
            padding: 8px 15px;
            font-size: 0.9rem;
        }

        .ready-indicator {
            position: absolute;
            top: 5px;
            right: 5px;
            background: #28a745;
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
        }

        .spectators-section {
            margin-top: 30px;
            padding-top: 30px;
            border-top: 2px solid #e9ecef;
        }

        .settings-panel {
            background: white;
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            height: fit-content;
        }

        .setting-group {
            margin-bottom: 25px;
        }

        .setting-label {
            font-size: 1.1rem;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 10px;
            display: block;
        }

        .setting-input {
            width: 100%;
            padding: 12px 15px;
            border: 2px solid #e9ecef;
            border-radius: 10px;
            font-size: 1rem;
            font-family: inherit;
            transition: all 0.3s ease;
        }

        .setting-input:disabled {
            background: #f8f9fa;
            color: #6c757d;
            cursor: not-allowed;
        }

        .start-game-btn {
            width: 100%;
            background: linear-gradient(135deg, #28a745, #20c997);
            color: white;
            border: none;
            padding: 20px;
            font-size: 1.4rem;
            font-weight: 700;
            border-radius: 15px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: inherit;
            margin-top: 20px;
        }

        .ready-btn {
            width: 100%;
            background: linear-gradient(135deg, #007bff, #0056b3);
            color: white;
            border: none;
            padding: 15px;
            font-size: 1.2rem;
            font-weight: 600;
            border-radius: 15px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: inherit;
            margin-top: 20px;
        }

        .ready-btn.ready {
            background: linear-gradient(135deg, #28a745, #20c997);
        }

        .room-actions {
            display: grid;
            gap: 15px;
            margin-top: 20px;
        }

        /* Single Player Styles */
        .letter-selection {
            text-align: center;
            padding: 30px;
        }

        .letter-selection-title {
            font-size: 1.8rem;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 25px;
        }

        .letters-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
            gap: 10px;
            margin-bottom: 30px;
        }

        .letter-option {
            width: 60px;
            height: 60px;
            border: 3px solid #e9ecef;
            border-radius: 15px;
            background: white;
            font-size: 1.5rem;
            font-weight: 700;
            color: #2c3e50;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .letter-option:hover {
            border-color: #ff6b6b;
            background: #fff5f5;
            transform: translateY(-2px);
        }

        .letter-option.selected {
            border-color: #ff6b6b;
            background: linear-gradient(135deg, #ff6b6b, #ee5a24);
            color: white;
            transform: scale(1.1);
        }

        .game-content {
            display: none;
            padding: 40px;
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
        }

        .game-content.active {
            display: block !important;
        }

        .letter-display {
            background: linear-gradient(135deg, #ffecd2, #fcb69f);
            padding: 20px;
            text-align: center;
            border-bottom: 3px solid #ff6b6b;
            margin-bottom: 30px;
        }

        .current-letter {
            font-size: 4rem;
            font-weight: 700;
            color: #2c3e50;
            display: inline-block;
            padding: 20px 40px;
            background: white;
            border-radius: 50%;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            border: 5px solid #ff6b6b;
        }

        .letter-label {
            margin-top: 15px;
            font-size: 1.3rem;
            color: #2c3e50;
            font-weight: 600;
        }

        .categories-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 25px;
            margin-bottom: 40px;
        }

        .category-card {
            background: white;
            border-radius: 20px;
            padding: 25px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }

        .category-header {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }

        .category-icon {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            margin-left: 15px;
            color: white;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .category-title {
            font-size: 1.4rem;
            font-weight: 600;
            color: #2c3e50;
        }

        .category-input {
            width: 100%;
            padding: 15px 20px;
            border: 3px solid #e9ecef;
            border-radius: 15px;
            font-size: 1.1rem;
            font-family: inherit;
            transition: all 0.3s ease;
            background: #f8f9fa;
        }

        .category-input:focus {
            outline: none;
            background: white;
            transform: scale(1.02);
        }

        .category-input.error {
            border-color: #dc3545 !important;
            background: #fff5f5 !important;
        }

        /* Category colors */
        .category-card.name .category-icon { background: #ff6b6b; }
        .category-card.family .category-icon { background: #4ecdc4; }
        .category-card.fruit .category-icon { background: #45b7d1; }
        .category-card.food .category-icon { background: #96ceb4; }
        .category-card.car .category-icon { background: #ffeaa7; }
        .category-card.city .category-icon { background: #dda0dd; }
        .category-card.color .category-icon { background: #98d8c8; }
        .category-card.object .category-icon { background: #f7dc6f; }
        .category-card.body .category-icon { background: #bb8fce; }

        .category-card.name .category-input:focus { border-color: #ff6b6b; }
        .category-card.family .category-input:focus { border-color: #4ecdc4; }
        .category-card.fruit .category-input:focus { border-color: #45b7d1; }
        .category-card.food .category-input:focus { border-color: #96ceb4; }
        .category-card.car .category-input:focus { border-color: #ffeaa7; }
        .category-card.city .category-input:focus { border-color: #dda0dd; }
        .category-card.color .category-input:focus { border-color: #98d8c8; }
        .category-card.object .category-input:focus { border-color: #f7dc6f; }
        .category-card.body .category-input:focus { border-color: #bb8fce; }

        .game-controls {
            text-align: center;
            margin-bottom: 30px;
        }

        .finish-btn {
            background: linear-gradient(135deg, #ff6b6b, #ee5a24);
            color: white;
            border: none;
            padding: 20px 50px;
            font-size: 1.3rem;
            font-weight: 600;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: inherit;
        }

        /* Spectator view styles */
        .spectator-view {
            background: linear-gradient(135deg, #e3f2fd, #bbdefb);
            border: 3px solid #2196f3;
            border-radius: 20px;
            padding: 20px;
            margin-bottom: 30px;
        }

        .spectator-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: #1976d2;
            text-align: center;
            margin-bottom: 20px;
        }

        .players-answers {
            display: grid;
            gap: 20px;
        }

        .player-answers {
            background: white;
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .player-answers-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 2px solid #e9ecef;
        }

        .answers-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
        }

        .answer-item {
            background: #f8f9fa;
            padding: 10px 15px;
            border-radius: 10px;
            border-left: 4px solid #007bff;
        }

        .answer-category {
            font-size: 0.9rem;
            font-weight: 600;
            color: #6c757d;
            margin-bottom: 5px;
        }

        .answer-value {
            font-size: 1.1rem;
            color: #2c3e50;
            font-weight: 500;
        }

        /* Scoring Screen Styles */
        .scoring-title {
            font-size: 2.5rem;
            font-weight: 700;
            color: #2c3e50;
            text-align: center;
            margin-bottom: 40px;
        }

        .my-answers-section {
            background: white;
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            margin-bottom: 30px;
        }

        .my-answers-header {
            display: flex;
            align-items: center;
            gap: 20px;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 3px solid #e9ecef;
        }

        .scoring-categories {
            display: grid;
            gap: 25px;
        }

        .scoring-category {
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            border-radius: 20px;
            padding: 25px;
            border: 3px solid #e9ecef;
            transition: all 0.3s ease;
        }

        .scoring-category.correct {
            border-color: #28a745;
            background: linear-gradient(135deg, #d4edda, #c3e6cb);
        }

        .scoring-category.incorrect {
            border-color: #dc3545;
            background: linear-gradient(135deg, #f8d7da, #f5c6cb);
        }

        .category-header-scoring {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
        }

        .category-icon-scoring {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: white;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .category-title-scoring {
            font-size: 1.4rem;
            font-weight: 600;
            color: #2c3e50;
        }

        .category-answer-display {
            font-size: 1.3rem;
            font-weight: 600;
            color: #2c3e50;
            background: white;
            padding: 15px 20px;
            border-radius: 15px;
            margin-bottom: 20px;
            text-align: center;
            border: 2px solid #e9ecef;
        }

        .score-options {
            display: flex;
            justify-content: center;
            gap: 20px;
        }

        .score-option {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            border: 4px solid #e9ecef;
            background: white;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 700;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .score-option:hover {
            transform: scale(1.1);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        }

        .score-option.selected {
            border-color: #007bff;
            background: linear-gradient(135deg, #007bff, #0056b3);
            color: white;
            transform: scale(1.15);
        }

        .score-number {
            font-size: 1.8rem;
            margin-bottom: 5px;
        }

        .score-label {
            font-size: 0.8rem;
            opacity: 0.8;
        }

        .submit-scores-btn {
            width: 100%;
            background: linear-gradient(135deg, #28a745, #20c997);
            color: white;
            border: none;
            padding: 20px;
            font-size: 1.4rem;
            font-weight: 700;
            border-radius: 15px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: inherit;
            margin-top: 30px;
        }

        .submit-scores-btn.waiting {
            background: linear-gradient(135deg, #6c757d, #5a6268);
            cursor: not-allowed;
        }

        /* Results Screen Styles */
        .results-container {
            text-align: center;
        }

        .results-title {
            font-size: 3rem;
            font-weight: 700;
            color: #2c3e50;
            margin-bottom: 50px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
        }

        .podium {
            display: flex;
            justify-content: center;
            align-items: end;
            gap: 20px;
            margin-bottom: 50px;
            height: 300px;
        }

        .podium-place {
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
        }

        .podium-player {
            background: white;
            border-radius: 20px;
            padding: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            margin-bottom: 20px;
            min-width: 150px;
        }

        .podium-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            margin-bottom: 15px;
        }

        .podium-name {
            font-size: 1.2rem;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 10px;
        }

        .podium-score {
            font-size: 1.5rem;
            font-weight: 700;
            color: #007bff;
        }

        .podium-base {
            border-radius: 10px 10px 0 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            font-weight: 700;
            color: white;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }

        .podium-place.first .podium-base {
            background: linear-gradient(135deg, #ffd700, #ffed4e);
            height: 120px;
            width: 150px;
        }

        .podium-place.second .podium-base {
            background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
            height: 100px;
            width: 150px;
        }

        .podium-place.third .podium-base {
            background: linear-gradient(135deg, #cd7f32, #daa520);
            height: 80px;
            width: 150px;
        }

        .medal {
            position: absolute;
            top: -10px;
            right: -10px;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }

        .medal.gold {
            background: linear-gradient(135deg, #ffd700, #ffed4e);
        }

        .medal.silver {
            background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
        }

        .medal.bronze {
            background: linear-gradient(135deg, #cd7f32, #daa520);
        }

        .other-players {
            background: white;
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            margin-bottom: 30px;
        }

        .other-players-title {
            font-size: 1.8rem;
            font-weight: 700;
            color: #2c3e50;
            margin-bottom: 20px;
        }

        .other-player-item {
            display: flex;
            align-items: center;
            gap: 20px;
            padding: 15px;
            border-bottom: 2px solid #e9ecef;
        }

        .other-player-item:last-child {
            border-bottom: none;
        }

        .player-rank {
            font-size: 1.5rem;
            font-weight: 700;
            color: #6c757d;
            min-width: 40px;
        }

        .other-player-info {
            flex: 1;
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .other-player-score {
            font-size: 1.3rem;
            font-weight: 600;
            color: #007bff;
        }

        /* Results Screen Enhanced */
        .player-details-btn {
            background: linear-gradient(135deg, #17a2b8, #138496);
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-right: 10px;
        }

        .player-details-btn:hover {
            transform: scale(1.05);
        }

        /* Player Details Modal */
        .player-details-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 2000;
            align-items: center;
            justify-content: center;
        }

        .player-details-modal.active {
            display: flex !important;
        }

        .player-details-content {
            background: white;
            border-radius: 25px;
            padding: 40px;
            max-width: 600px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
        }

        .player-details-header {
            display: flex;
            align-items: center;
            gap: 20px;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 3px solid #e9ecef;
        }

        .player-details-answers {
            display: grid;
            gap: 20px;
        }

        .answer-detail-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
            background: #f8f9fa;
            border-radius: 15px;
            border-left: 5px solid #007bff;
        }

        .answer-detail-info {
            flex: 1;
        }

        .answer-detail-category {
            font-size: 1rem;
            font-weight: 600;
            color: #6c757d;
            margin-bottom: 5px;
        }

        .answer-detail-value {
            font-size: 1.2rem;
            color: #2c3e50;
            font-weight: 500;
        }

        .answer-detail-score {
            background: linear-gradient(135deg, #007bff, #0056b3);
            color: white;
            padding: 10px 15px;
            border-radius: 20px;
            font-weight: 700;
            min-width: 60px;
            text-align: center;
        }

        /* Status Messages */
        .status-message {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 15px 25px;
            border-radius: 15px;
            color: white;
            font-weight: 600;
            z-index: 9999;
            max-width: 300px;
        }

        .status-message.success {
            background: linear-gradient(135deg, #28a745, #20c997);
        }

        .status-message.error {
            background: linear-gradient(135deg, #dc3545, #c82333);
        }

        /* Loading */
        .loading {
            opacity: 0.6;
            pointer-events: none;
        }

        /* Responsive */
        
            .room-content {
                grid-template-columns: 1fr;
            }
            
            .menu-options {
                grid-template-columns: 1fr;
            }
            
            .game-title {
                font-size: 2rem;
            }
            
            .current-letter {
                font-size: 3rem;
                padding: 15px 30px;
            }
            
            .categories-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .podium {
                flex-direction: column;
                height: auto;
                gap: 30px;
            }

            .podium-place {
                width: 100%;
            }

            .scoring-screen {
                padding: 20px;
            }
            
            .scoring-categories {
                gap: 15px;
            }
            
            .scoring-category {
                padding: 15px;
            }
            
            .score-options {
                gap: 10px;
            }
            
            .score-option {
                width: 60px;
                height: 60px;
            }
            
            .score-number {
                font-size: 1.4rem;
            }
            
            .category-answer-display {
                font-size: 1.1rem;
                padding: 10px 15px;
            
        }

/* Enhanced Scoring Screen Styles */
.scoring-category.empty {
    border-color: #6c757d;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    opacity: 0.7;
}

.category-answer-display {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    text-align: center;
    border: 3px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
}

.category-answer-display.correct-answer {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
}

.category-answer-display.incorrect-answer {
    border-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
}

.category-answer-display.empty-answer {
    border-color: #6c757d;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    opacity: 0.7;
}

.answer-text {
    flex: 1;
    text-align: right;
    font-size: 1.3rem;
}

.answer-status {
    font-size: 1rem;
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    min-width: 100px;
    text-align: center;
}

.scoring-categories {
    display: grid;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.scoring-category {
    background: white;
    border-radius: 25px;
    padding: 30px;
    border: 4px solid #e9ecef;
    transition: all 0.4s ease;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.scoring-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scoring-category:hover::before {
    opacity: 1;
}

.scoring-category.correct {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    transform: scale(1.02);
}

.scoring-category.incorrect {
    border-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
}

.category-header-scoring {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.category-icon-scoring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.category-icon-scoring:hover {
    transform: scale(1.1);
}

.category-title-scoring {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
}

.score-options {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.score-option {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid #e9ecef;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s ease;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.score-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.score-option:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.score-option:hover::before {
    opacity: 0.1;
}

.score-option.selected {
    border-color: #007bff;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    transform: scale(1.2);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.4);
}

.score-option.selected::before {
    opacity: 0;
}

.score-number {
    font-size: 2rem;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.score-label {
    font-size: 0.85rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.submit-scores-btn {
    width: 100%;
    max-width: 400px;
    margin: 40px auto 0;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 25px;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.4s ease;
    font-family: inherit;
    box-shadow: 0 15px 40px rgba(40, 167, 69, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-scores-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-scores-btn:hover::before {
    left: 100%;
}

.submit-scores-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(40, 167, 69, 0.4);
}

.submit-scores-btn.waiting {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 10px 25px rgba(108, 117, 125, 0.3);
}

.submit-scores-btn:disabled {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 10px 25px rgba(108, 117, 125, 0.3);
}

/* Responsive improvements for scoring */
.scoring-categories {
        gap: 20px;
    }
    
.scoring-category {
        padding: 20px;
    }
    
.score-options {
        gap: 15px;
    }
    
.score-option {
        width: 70px;
        height: 70px;
    }
    
.score-number {
        font-size: 1.6rem;
    }
    
.category-answer-display {
        font-size: 1rem;
        padding: 15px;
}
