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

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            color: white;
            overflow-x: hidden;
            position: relative;
        }

        /* Aurora Effect */
        .aurora {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: -1;
            overflow: hidden;
        }

        .aurora::before,
        .aurora::after {
            content: '';
            position: absolute;
            width: 200%;
            height: 200%;
            background: radial-gradient(ellipse at center, 
                rgba(0, 255, 150, 0.3) 0%,
                rgba(0, 255, 255, 0.2) 25%,
                rgba(255, 0, 150, 0.2) 50%,
                rgba(150, 0, 255, 0.1) 75%,
                transparent 100%);
            animation: aurora 20s ease-in-out infinite;
        }

        .aurora::before {
            animation-delay: 0s;
            transform: rotate(0deg);
        }

        .aurora::after {
            animation-delay: 10s;
            transform: rotate(180deg);
        }

        @keyframes aurora {
            0%, 100% {
                transform: translateX(-50%) translateY(-50%) rotate(0deg) scale(1);
                opacity: 0.3;
            }
            25% {
                transform: translateX(-30%) translateY(-60%) rotate(90deg) scale(1.1);
                opacity: 0.5;
            }
            50% {
                transform: translateX(-70%) translateY(-40%) rotate(180deg) scale(0.9);
                opacity: 0.4;
            }
            75% {
                transform: translateX(-40%) translateY(-70%) rotate(270deg) scale(1.2);
                opacity: 0.6;
            }
        }

        /* Homepage Styles */
        .homepage {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            padding: 20px;
            text-align: center;
        }

        .homepage h1 {
            font-size: 4rem;
            margin-bottom: 20px;
            background: linear-gradient(45deg, #FFD700, #FFA500);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: titleGlow 2s ease-in-out infinite alternate;
        }

        @keyframes titleGlow {
            0% { filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5)); }
            100% { filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8)); }
        }

        .homepage .subtitle {
            font-size: 1.5rem;
            margin-bottom: 40px;
            opacity: 0.9;
        }

        .game-description {
            max-width: 600px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 30px;
            margin-bottom: 40px;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .game-description h2 {
            font-size: 2rem;
            margin-bottom: 20px;
            color: #FFD700;
        }

        .game-description p {
            font-size: 1.1rem;
            line-height: 1.6;
            margin-bottom: 15px;
        }

        .features-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin: 20px 0;
        }

        .feature-item {
            background: rgba(255, 255, 255, 0.05);
            padding: 20px;
            border-radius: 15px;
            text-align: center;
        }

        .feature-icon {
            font-size: 2rem;
            margin-bottom: 10px;
        }

        .start-game-btn {
            padding: 20px 40px;
            font-size: 1.5rem;
            font-weight: bold;
            background: linear-gradient(45deg, #4CAF50, #45a049);
            color: white;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .start-game-btn:hover:not(:disabled) {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
        }

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

        .name-inputs {
            display: flex;
            gap: 30px;
            margin: 30px 0;
            flex-wrap: wrap;
            justify-content: center;
        }

        .name-input-group {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
        }

        .name-input-group label {
            font-weight: bold;
            font-size: 1.1rem;
            color: #FFD700;
        }

        .name-input-group input {
            padding: 15px 20px;
            font-size: 1.1rem;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 25px;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            text-align: center;
            min-width: 200px;
            transition: all 0.3s ease;
        }

        .name-input-group input:focus {
            outline: none;
            border-color: #4CAF50;
            box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
            background: rgba(255, 255, 255, 0.15);
        }

        .name-input-group input::placeholder {
            color: rgba(255, 255, 255, 0.6);
        }

        /* Game Styles */
        .game-container {
            display: none;
            max-width: 1400px;
            width: 100%;
            margin: 0 auto;
            padding: 20px;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(15px);
            border-radius: 25px;
            border: 2px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
            min-height: 80vh;
        }

        .game-container.active {
            display: block;
        }

        .game-layout {
            display: grid;
            grid-template-areas: 
                "player1 themes player2"
                "board board board";
            grid-template-columns: 1fr auto 1fr;
            gap: 30px;
            align-items: start;
        }

        .player-section {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 25px;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .player1-section {
            grid-area: player1;
        }

        .player2-section {
            grid-area: player2;
        }

        .player-name {
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 20px;
            text-align: center;
            padding: 15px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            border: 2px solid rgba(255, 255, 255, 0.2);
            color: white;
            transition: all 0.3s ease;
        }

        .player-name:focus {
            outline: none;
            border-color: #4CAF50;
            box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
        }

        .player-name::placeholder {
            color: rgba(255, 255, 255, 0.6);
        }

        .stats-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-bottom: 20px;
        }

        .stat-item {
            background: rgba(255, 255, 255, 0.05);
            padding: 15px;
            border-radius: 10px;
            text-align: center;
        }

        .stat-value {
            font-size: 28px;
            font-weight: bold;
            color: #4CAF50;
        }

        .stat-label {
            font-size: 12px;
            opacity: 0.8;
            margin-top: 5px;
        }

        .game-board-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 20px;
            grid-area: board;
            justify-self: center;
            margin-top: 30px;
        }

        .theme-selector {
            grid-area: themes;
            display: flex;
            gap: 10px;
            justify-content: center;
            align-items: start;
        }

        .current-player {
            font-size: 24px;
            font-weight: bold;
            padding: 15px 30px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 15px;
            backdrop-filter: blur(10px);
        }

        .game-board {
            display: grid;
            grid-template-columns: repeat(3, 120px);
            grid-template-rows: repeat(3, 120px);
            gap: 8px;
            background: #1a237e;
            padding: 15px;
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        }

        .cell {
            background: rgba(255, 255, 255, 0.9);
            border: none;
            border-radius: 10px;
            font-size: 48px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .cell:hover:not(.taken) {
            background: rgba(255, 255, 255, 1);
            transform: scale(1.05);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .cell.taken {
            cursor: not-allowed;
        }

        .cell.x {
            color: #e91e63;
            animation: placeX 0.5s ease;
        }

        .cell.o {
            color: #2196F3;
            animation: placeO 0.5s ease;
        }

        .cell.winning {
            background: linear-gradient(45deg, #FFD700, #FFA500);
            animation: winGlow 1s ease-in-out infinite alternate;
        }

        @keyframes placeX {
            0% { transform: scale(0) rotate(180deg); opacity: 0; }
            100% { transform: scale(1) rotate(0deg); opacity: 1; }
        }

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

        @keyframes winGlow {
            0% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.5); }
            100% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.8); }
        }

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

        .btn {
            padding: 12px 24px;
            border: none;
            border-radius: 25px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .btn-primary {
            background: linear-gradient(45deg, #4CAF50, #45a049);
            color: white;
        }

        .btn-secondary {
            background: rgba(255, 255, 255, 0.2);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        .btn-danger {
            background: linear-gradient(45deg, #f44336, #d32f2f);
            color: white;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .timer {
            font-size: 20px;
            font-weight: bold;
            padding: 10px 20px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            margin-bottom: 15px;
        }



        .theme-btn {
            width: 40px;
            height: 40px;
            border: 3px solid transparent;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .theme-btn.active {
            border-color: white;
            transform: scale(1.1);
        }

        .theme-classic { background: linear-gradient(45deg, #667eea, #764ba2); }
        .theme-neon { background: linear-gradient(45deg, #ff006e, #8338ec); }
        .theme-minimal { background: linear-gradient(45deg, #2c3e50, #34495e); }

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

        .modal-content {
            background: rgba(255, 255, 255, 0.95);
            color: #333;
            padding: 30px;
            border-radius: 20px;
            text-align: center;
            max-width: 400px;
            width: 90%;
        }

        .celebration {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 100px;
            pointer-events: none;
            animation: celebrate 2s ease-out;
            z-index: 100;
        }

        @keyframes celebrate {
            0% { transform: translate(-50%, -50%) scale(0) rotate(0deg); opacity: 0; }
            50% { transform: translate(-50%, -50%) scale(1.2) rotate(180deg); opacity: 1; }
            100% { transform: translate(-50%, -50%) scale(1) rotate(360deg); opacity: 0; }
        }

        /* Bubble Animation */
        .bubble {
            position: absolute;
            border-radius: 50%;
            pointer-events: none;
            animation: bubbleFloat 3s ease-out forwards;
            z-index: 1000;
        }

        @keyframes bubbleFloat {
            0% {
                transform: translateY(0) scale(0);
                opacity: 1;
            }
            50% {
                transform: translateY(-200px) scale(1);
                opacity: 0.8;
            }
            100% {
                transform: translateY(-400px) scale(0);
                opacity: 0;
            }
        }

        .sound-toggle {
            position: fixed;
            top: 20px;
            right: 20px;
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            padding: 10px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 20px;
            z-index: 1001;
        }

        .back-btn {
            position: fixed;
            top: 20px;
            left: 20px;
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            padding: 10px 20px;
            border-radius: 25px;
            cursor: pointer;
            font-size: 16px;
            z-index: 1001;
            display: none;
        }

        .back-btn.show {
            display: block;
        }

        /* Footer Styles */
        .footer {
            background: rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(10px);
            padding: 30px 20px;
            text-align: center;
            margin-top: auto;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .footer h3 {
            color: #FFD700;
            margin-bottom: 15px;
            font-size: 1.5rem;
        }

        .footer p {
            margin-bottom: 10px;
            opacity: 0.9;
        }

        .footer a {
            color: #4CAF50;
            text-decoration: none;
            font-weight: bold;
            transition: color 0.3s ease;
        }

        .footer a:hover {
            color: #66BB6A;
            text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
        }

        .github-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(255, 255, 255, 0.1);
            padding: 10px 20px;
            border-radius: 25px;
            margin-top: 15px;
            transition: all 0.3s ease;
        }

        .github-link:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
        }

        @media (max-width: 768px) {
            .homepage h1 {
                font-size: 2.5rem;
            }
            
            .game-container {
                margin: 10px;
                padding: 15px;
            }

            .game-layout {
                grid-template-areas: 
                    "themes themes themes"
                    "player1 player1 player1"
                    "board board board"
                    "player2 player2 player2";
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .game-board {
                grid-template-columns: repeat(3, 100px);
                grid-template-rows: repeat(3, 100px);
            }
            
            .cell {
                font-size: 36px;
            }

            .features-list {
                grid-template-columns: 1fr;
            }

            .name-inputs {
                flex-direction: column;
                gap: 20px;
            }

            .name-input-group input {
                min-width: 250px;
            }
        }
    