* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #4361ee;
    --secondary: #3a0ca3;
    --success: #4cc9f0;
    --danger: #f72585;
    --warning: #f8961e;
    --light: #f8f9fa;
    --dark: #212529;
    --background: linear-gradient(135deg, #1e3c72, #2a5298);
}

body {
    background: var(--background);
    color: var(--light);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

header {
    text-align: center;
    padding: 20px 0;
    width: 100%;
}

h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(to right, #ff9a9e, #fad0c4, #fad0c4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.game-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

.stats-card, .country-info, .options-card, .facts-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.progress-container {
    margin-top: 15px;
}

.progress-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 10px;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--success), var(--primary));
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 6px;
}

.country-info {
    position: relative;
    overflow: hidden;
}

.country-name {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.country-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.detail-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.detail-item i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--success);
}

.detail-label {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.detail-value {
    font-size: 1rem;
    font-weight: 600;
}

.options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 20px;
}

@media (min-width: 480px) {
    .options {
        grid-template-columns: 1fr 1fr;
    }
}

.option {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
}

.option:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.option.correct {
    background: rgba(76, 175, 80, 0.3);
    border-color: #4CAF50;
    color: #a5d6a7;
}

.option.incorrect {
    background: rgba(244, 67, 54, 0.3);
    border-color: #F44336;
    color: #ef9a9a;
}

.difficulty-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.difficulty-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.difficulty-btn.active {
    background: rgba(255, 255, 255, 0.3);
    font-weight: bold;
    transform: translateY(-2px);
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(1px);
}

.facts-card h2 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.facts-card h2 i {
    color: var(--warning);
}

.fact-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fact-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.fact-label {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--success);
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    opacity: 0.8;
    width: 100%;
}

.game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.game-over.show {
    opacity: 1;
    pointer-events: all;
}

.game-over-content {
    background: linear-gradient(135deg, #1a2a6c, #2a5298);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.game-over h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #ff9a9e, #fad0c4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.final-score {
    font-size: 3.5rem;
    font-weight: bold;
    margin: 20px 0;
    color: var(--success);
}

.trophy {
    font-size: 5rem;
    margin-bottom: 20px;
    color: gold;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.performance {
    margin: 20px 0;
    font-size: 1.2rem;
}

.celebration {
    position: absolute;
    font-size: 2rem;
    opacity: 0;
    animation: celebrate 2s ease-out;
}

@keyframes celebrate {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-100px) scale(1.5); opacity: 0; }
}

.hint-used {
    color: var(--warning);
    font-style: italic;
    margin-top: 10px;
    text-align: center;
}

.timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.timer i {
    color: var(--danger);
}

.streak {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
}

.streak i {
    color: var(--warning);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

@media (min-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr 1fr;
    }
}