* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo 2', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #fff;
    background: linear-gradient(135deg, #001a33 0%, #003366 50%, #001a33 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 50, 200, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(200, 0, 50, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundPulse 10s ease-in-out infinite alternate;
}

@keyframes backgroundPulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* Introduction Screen */
.intro-content {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.1);
    margin-top: 20px;
    backdrop-filter: blur(10px);
}

.logo-container {
    margin-bottom: 30px;
}

.game-logo {
    max-width: 280px;
    height: auto;
    filter: brightness(1.2) contrast(1.1);
    border-radius: 10px;
}

.main-title {
    font-family: 'Orbitron', monospace;
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(0, 100, 200, 0.5),
        0 0 30px rgba(200, 0, 50, 0.3);
    letter-spacing: 2px;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { 
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.5),
            0 0 20px rgba(0, 100, 200, 0.5),
            0 0 30px rgba(200, 0, 50, 0.3);
    }
    100% { 
        text-shadow: 
            0 0 15px rgba(255, 255, 255, 0.8),
            0 0 25px rgba(0, 100, 200, 0.8),
            0 0 35px rgba(200, 0, 50, 0.6);
    }
}

.intro-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    font-weight: 300;
}

/* Game Overview */
.game-overview h2, .test-overview h2 {
    color: #fff;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.game-rules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.rule-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(5px);
}

.rule-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 25px rgba(0, 100, 200, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(0, 100, 200, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.rule-number {
    background: linear-gradient(135deg, #0066cc, #cc0033);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    box-shadow: 0 0 15px rgba(0, 100, 200, 0.5);
}

.rule-card h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

.rule-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.test-parts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.part-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(5px);
}

.part-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 25px rgba(0, 100, 200, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(0, 100, 200, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.part-number {
    background: linear-gradient(135deg, #0066cc, #cc0033);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    box-shadow: 0 0 15px rgba(0, 100, 200, 0.5);
}

.part-card h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

.part-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.test-info {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    text-align: left;
    backdrop-filter: blur(5px);
}

.info-item {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.start-btn {
    background: linear-gradient(135deg, #0066cc, #cc0033);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 25px rgba(0, 100, 200, 0.4),
        0 0 20px rgba(0, 100, 200, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 35px rgba(0, 100, 200, 0.6),
        0 0 30px rgba(0, 100, 200, 0.5);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Game Container */
#test-container {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.1);
    margin-top: 20px;
    backdrop-filter: blur(10px);
}

.test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.header-left, .header-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.header-right {
    justify-content: flex-end;
}

#game-indicator {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#current-category {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0066cc;
    font-family: 'Orbitron', monospace;
}

#category-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-top: 5px;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

#progress-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

#score-display, #question-display {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    font-family: 'Orbitron', monospace;
}

#question-container {
    min-height: 400px;
    margin-bottom: 30px;
}

#question-display {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    border-left: 5px solid #0066cc;
    backdrop-filter: blur(5px);
}

#question-category {
    font-size: 0.9rem;
    color: #0066cc;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sentence {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 25px;
    line-height: 1.6;
    font-weight: 600;
    text-align: center;
}

.options-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 25px;
}

.option {
    padding: 25px 20px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    backdrop-filter: blur(5px);
    font-family: 'Orbitron', monospace;
}

.flag {
    font-size: 3rem;
}

.british-option {
    border-color: rgba(0, 100, 200, 0.3);
}

.american-option {
    border-color: rgba(200, 0, 50, 0.3);
}

.british-option:hover:not(:disabled) {
    border-color: #0066cc;
    background: rgba(0, 100, 200, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 100, 200, 0.4);
}

.american-option:hover:not(:disabled) {
    border-color: #cc0033;
    background: rgba(200, 0, 50, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(200, 0, 50, 0.4);
}

.option.correct {
    background: linear-gradient(135deg, #27ae60, #229954);
    border-color: #27ae60;
    animation: correctAnswer 0.6s ease;
}

.option.incorrect {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-color: #e74c3c;
    animation: incorrectAnswer 0.6s ease;
}

.option:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

@keyframes correctAnswer {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes incorrectAnswer {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

.feedback {
    margin: 20px 0;
    padding: 15px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1em;
    min-height: 50px;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.feedback.show {
    display: flex;
}

.feedback.correct {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    border: 2px solid #27ae60;
}

.feedback.incorrect {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 2px solid #e74c3c;
}

.next-btn {
    background: linear-gradient(135deg, #0066cc, #cc0033);
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 100, 200, 0.3);
    margin: 20px auto;
    display: block;
}

.next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 100, 200, 0.5);
}

/* Results Screen */
.results-content {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.1);
    margin-top: 20px;
    backdrop-filter: blur(10px);
}

.results-content h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 2.2rem;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

#score-display-results {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

#score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066cc, #cc0033);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 100, 200, 0.5);
}

#score-circle::before {
    content: '';
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    position: absolute;
    backdrop-filter: blur(10px);
}

#score-percentage {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    z-index: 1;
    font-family: 'Orbitron', monospace;
}

#level-result h3 {
    font-size: 3rem;
    color: #0066cc;
    margin-bottom: 10px;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 15px rgba(0, 100, 200, 0.5);
}

#level-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

#native-level {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    backdrop-filter: blur(5px);
}

#native-level h3 {
    margin-bottom: 15px;
    color: #fff;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

#native-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 1.1rem;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

#restart-btn, #share-results-btn {
    background: #6c757d;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#restart-btn {
    background: linear-gradient(135deg, #0066cc, #cc0033);
}

#share-results-btn {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

#restart-btn:hover, #share-results-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.cta-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.cta-section {
    background: linear-gradient(135deg, #0066cc, #0052a3);
    color: white;
    padding: 25px;
    border-radius: 15px;
}

.cta-section:nth-child(2) {
    background: linear-gradient(135deg, #cc0033, #a30029);
}

.cta-section h3 {
    margin-bottom: 10px;
}

.cta-section p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #0066cc;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cta-secondary {
    background: white;
    color: #cc0033;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .intro-content {
        padding: 25px;
    }
    
    .main-title {
        font-size: 2.2rem;
    }
    
    .cta-sections {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    #test-container, .results-content {
        padding: 20px;
    }
    
    .test-header {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .header-left, .header-right {
        flex: none;
        width: 100%;
        justify-content: center;
    }
    
    #game-indicator {
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    #category-title {
        font-size: 1.5rem;
    }
    
    #question-display {
        padding: 20px;
    }
    
    .sentence {
        font-size: 1.2rem;
    }
    
    .options-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .option {
        padding: 20px 15px;
        font-size: 1.1rem;
    }
    
    .flag {
        font-size: 2.5rem;
    }
    
    #score-display-results {
        flex-direction: column;
        gap: 20px;
    }
    
    #score-circle {
        width: 120px;
        height: 120px;
    }
    
    #score-circle::before {
        width: 95px;
        height: 95px;
    }
    
    #score-percentage {
        font-size: 1.5rem;
    }
    
    #level-result h3 {
        font-size: 2.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons button {
        width: 100%;
    }
    
    .game-rules {
        grid-template-columns: 1fr;
    }
    
    .test-parts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.8rem;
    }
    
    .intro-subtitle {
        font-size: 1.1rem;
    }
    
    .rule-number, .part-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .sentence {
        font-size: 1.1rem;
    }
    
    .option {
        padding: 15px 12px;
        font-size: 1rem;
    }
}
