/* CSS Reset and Base Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

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

        body {
            font-family: 'Segoe UI', 'Inter', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #2d3748;
            line-height: 1.6;
            padding: 1rem;
        }/* CSS Reset and Base Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

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

        body {
            font-family: 'Segoe UI', 'Inter', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #2d3748;
            line-height: 1.6;
            padding: 1rem;
        }

         /* Main Game Container */
        .game-container {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 24px;
            padding: 2.5rem;
            box-shadow: 
                0 25px 50px rgba(0, 0, 0, 0.15),
                0 10px 20px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            max-width: 800px;
            width: 100%;
            text-align: center;
            animation: slideInUp 0.8s ease-out;
        }

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

         /* Game Header Styles */
        .game-header {
            margin-bottom: 2rem;
        }

        .game-title {
            font-size: 3rem;
            font-weight: 800;
            background: linear-gradient(135deg, #667eea, #764ba2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 0.5rem;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
        }

        .game-subtitle {
            font-size: 1.2rem;
            color: #4a5568;
            margin-bottom: 0.5rem;
            font-weight: 500;
        }

        cohort-info {
            font-size: 0.9rem;
            color: #718096;
            font-style: italic;
        }

         /* Game Statistics */
        .game-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .stat-card {
            background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
            color: white;
            padding: 1.5rem;
            border-radius: 16px;
            box-shadow: 0 8px 16px rgba(72, 187, 120, 0.3);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .stat-card::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;
        }

        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 24px rgba(72, 187, 120, 0.4);
        }

        .stat-card:hover::before {
            left: 100%;
        }

        .stat-label {
            font-size: 0.9rem;
            opacity: 0.9;
            margin-bottom: 0.5rem;
            font-weight: 500;
        }

        .stat-value {
            font-size: 2rem;
            font-weight: 700;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
        }
    /* Game Info Section */
        .game-info {
            margin-bottom: 2rem;
            text-align: left;
        }

        .difficulty-indicator {
            background: linear-gradient(135deg, #ed8936, #dd6b20);
            color: white;
            padding: 0.75rem 1.5rem;
            border-radius: 25px;
            font-weight: 600;
            display: inline-block;
            margin-bottom: 1rem;
            box-shadow: 0 4px 8px rgba(237, 137, 54, 0.3);
            transition: all 0.3s ease;
        }

        .difficulty-indicator:hover {
            transform: scale(1.05);
        }

        .timer-section {
            margin-bottom: 1rem;
        }
          .timer {
            font-size: 1.5rem;
            font-weight: 600;
            color: #e53e3e;
            margin-bottom: 0.5rem;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
        }

        .progress-bar {
            width: 100%;
            height: 12px;
            background: rgba(226, 232, 240, 0.8);
            border-radius: 6px;
            overflow: hidden;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(135deg, #667eea, #764ba2);
            border-radius: 6px;
            transition: width 0.3s ease;
            width: 100%;
        }

        /* Main Game Area */
        .game-area {
            margin-bottom: 2rem;
        }

        .word-display {
            margin-bottom: 2rem;
        }

        .scrambled-word {
            font-size: 3.5rem;
            font-weight: 800;
            color: #2d3748;
            margin: 2rem 0;
            letter-spacing: 0.3rem;
            text-transform: uppercase;
            background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }

        .scrambled-word:hover {
            transform: scale(1.05);
        }

            /* Input Section */
        .input-section {
            margin-bottom: 2rem;
        }

        .input-label {
            display: block;
            font-size: 1.1rem;
            font-weight: 600;
            color: #4a5568;
            margin-bottom: 0.5rem;
        }

        .guess-input {
            width: 100%;
            max-width: 400px;
            padding: 1rem 1.5rem;
            font-size: 1.3rem;
            border: 3px solid #e2e8f0;
            border-radius: 16px;
            background: white;
            text-align: center;
            font-weight: 600;
            letter-spacing: 0.1rem;
            transition: all 0.3s ease;
            outline: none;
            text-transform: uppercase;
        }

        .guess-input:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
            transform: scale(1.02);
        }

        .guess-input:disabled {
            background: #f7fafc;
            cursor: not-allowed;
            opacity: 0.6;
        }
          /* Game Buttons */
        .game-buttons {
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
            margin-bottom: 2rem;
        }

        .btn {
            padding: 1rem 2rem;
            border: none;
            border-radius: 12px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .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;
        }

        .btn:hover::before {
            left: 100%;
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        }

        .btn:active {
            transform: translateY(-1px);
        }

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

        .btn-primary {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
        }

        .btn-submit {
            background: linear-gradient(135deg, #48bb78, #38a169);
            color: white;
        }

        .btn-hint {
            background: linear-gradient(135deg, #ed8936, #dd6b20);
            color: white;
        }

        .btn-skip {
            background: linear-gradient(135deg, #e53e3e, #c53030);
            color: white;
        }

        .btn-restart {
            background: linear-gradient(135deg, #805ad5, #6b46c1);
            color: white;
        }

          /* Hint Section */
        .hint-section {
            background: linear-gradient(135deg, #ebf8ff, #bee3f8);
            border-radius: 16px;
            padding: 1.5rem;
            margin-bottom: 2rem;
            border-left: 4px solid #667eea;
            animation: slideInDown 0.5s ease-out;
        }

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

        .hint-title {
            color: #2b6cb0;
            margin-bottom: 0.5rem;
            font-size: 1.2rem;
        }

        .hint-text {
            color: #2c5282;
            font-size: 1.1rem;
            font-style: italic;
            font-weight: 500;
        }

        /* Feedback Section */
        .feedback-section {
            margin-bottom: 2rem;
            animation: bounceIn 0.6s ease-out;
        }

           @keyframes bounceIn {
            0% {
                opacity: 0;
                transform: scale(0.3);
            }
            50% {
                opacity: 1;
                transform: scale(1.05);
            }
            70% {
                transform: scale(0.9);
            }
            100% {
                opacity: 1;
                transform: scale(1);
            }
        }

            .feedback-message {
            padding: 1.5rem;
            border-radius: 16px;
            font-weight: 600;
            font-size: 1.2rem;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .feedback-message.correct {
            background: linear-gradient(135deg, #c6f6d5, #9ae6b4);
            color: #22543d;
            border: 2px solid #48bb78;
        }

        .feedback-message.incorrect {
            background: linear-gradient(135deg, #fed7d7, #feb2b2);
            color: #742a2a;
            border: 2px solid #e53e3e;
        }

        /* Game Over Section */
        .game-over-section {
            background: linear-gradient(135deg, #ffd89b, #19547b);
            color: white;
            padding: 2rem;
            border-radius: 20px;
            margin-bottom: 2rem;
            animation: zoomIn 0.8s ease-out;
        }

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

         .game-over-title {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }

        .final-stats {
            font-size: 1.2rem;
            font-weight: 600;
        }

        .final-stats p {
            margin-bottom: 0.5rem;
        }

        /* Leaderboard Section */
        .leaderboard-section {
            background: #f8f9fa;
            border-radius: 16px;
            padding: 2rem;
            margin-bottom: 2rem;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
        }

        .leaderboard-title {
            color: #4a5568;
            margin-bottom: 1.5rem;
            font-size: 1.5rem;
            font-weight: 700;
        }

        .leaderboard-list {
            text-align: left;
        }

        .no-scores {
            text-align: center;
            color: #718096;
            font-style: italic;
            padding: 2rem;
        }

        .leaderboard-entry {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem;
            margin-bottom: 0.5rem;
            background: white;
            border-radius: 10px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
        }

        .leaderboard-entry:hover {
            transform: translateX(10px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        /* Instructions Section */
        .instructions-section {
            background: #edf2f7;
            border-radius: 16px;
            padding: 2rem;
            margin-bottom: 2rem;
            text-align: left;
        }

        .instructions-title {
            color: #4a5568;
            margin-bottom: 1rem;
            text-align: center;
            font-size: 1.3rem;
        }

        .instructions-list {
            list-style: none;
            counter-reset: step-counter;
        }

        .instructions-list li {
            counter-increment: step-counter;
            margin-bottom: 0.8rem;
            padding-left: 2rem;
            position: relative;
            color: #2d3748;
            font-weight: 500;
        }

        .instructions-list li::before {
            content: counter(step-counter);
            position: absolute;
            left: 0;
            top: 0;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            width: 1.5rem;
            height: 1.5rem;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            font-weight: 700;
        }

        /* Footer */
        .game-footer {
            margin-top: 2rem;
            padding-top: 2rem;
            border-top: 2px solid #e2e8f0;
            color: #718096;
            font-size: 0.9rem;
        }

        /* Utility Classes */
        .hidden {
            display: none !important;
        }

        .pulse {
            animation: pulse 2s infinite;
        }

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

        .shake {
            animation: shake 0.5s;
        }

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

        .glow {
            animation: glow 2s ease-in-out infinite alternate;
        }

        @keyframes glow {
            from {
                box-shadow: 0 0 5px rgba(102, 126, 234, 0.5);
            }
            to {
                box-shadow: 0 0 20px rgba(102, 126, 234, 0.8);
            }
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .game-container {
                padding: 1.5rem;
                margin: 0.5rem;
            }

            .game-title {
                font-size: 2.2rem;
            }

            .scrambled-word {
                font-size: 2.5rem;
                letter-spacing: 0.2rem;
            }

            .game-stats {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            .stat-card {
                padding: 1rem;
            }

            .stat-value {
                font-size: 1.5rem;
            }

            .game-buttons {
                flex-direction: column;
                align-items: center;
            }

            .btn {
                width: 100%;
                max-width: 250px;
                padding: 0.8rem 1.5rem;
            }

            .guess-input {
                font-size: 1.1rem;
                padding: 0.8rem 1rem;
            }

            .instructions-section,
            .leaderboard-section {
                padding: 1rem;
            }
        }

        @media (max-width: 480px) {
            .game-title {
                font-size: 1.8rem;
            }

            .scrambled-word {
                font-size: 2rem;
            }

            .game-container {
                padding: 1rem;
            }

            .btn {
                font-size: 0.9rem;
                padding: 0.7rem 1.2rem;
            }
        }

        /* Print Styles */
        @media print {
            body {
                background: white;
            }

            .game-container {
                box-shadow: none;
                border: 1px solid #000;
            }

            .btn {
                border: 1px solid #000;
            }
        }