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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #001a33 0%, #003366 30%, #005A93 60%, #003366 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #fff;
}

.container {
    max-width: 650px;
    width: 100%;
}

.screen {
    background: #ffffff;
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(0, 90, 147, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    color: #1a1a2e;
}

.hidden {
    display: none !important;
}

/* START SCREEN */
#start-screen {
    text-align: center;
}

#start-screen h1 {
    font-size: 2.8rem;
    margin-bottom: 8px;
    text-shadow: none;
    color: #005A93;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.7;
    margin-bottom: 32px;
    color: #333;
}

.difficulty-select h3 {
    margin-bottom: 16px;
    font-size: 1.2rem;
    opacity: 0.9;
}

.question-count {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.6;
    color: #555;
}

/* BUTTONS */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 6px;
    color: #fff;
}

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

.btn:focus {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

.btn:active {
    transform: translateY(0);
}

.btn-easy {
    background: #005A93;
}

.btn-medium {
    background: #c8102e;
}

.btn-hard {
    background: #1a1a2e;
}

.btn-all {
    background: linear-gradient(135deg, #005A93, #c8102e, #ffd700);
    background-size: 200%;
    animation: shimmer 3s ease infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.btn-next {
    background: #005A93;
    margin-top: 20px;
    width: 100%;
    font-size: 1.1rem;
    padding: 16px;
}

/* GAME SCREEN */
.btn-home {
    background: none;
    border: 2px solid #d0dce8;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 10px;
    transition: all 0.2s ease;
}

.btn-home:hover {
    background: #f0f5fa;
    border-color: #005A93;
}

.btn-home:focus {
    outline: 3px solid #005A93;
    outline-offset: 2px;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.progress, .score {
    font-weight: 600;
}

.difficulty-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.difficulty-badge.easy { background: #005A93; }
.difficulty-badge.medium { background: #c8102e; }
.difficulty-badge.hard { background: #1a1a2e; }

.progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin-bottom: 24px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #005A93;
    border-radius: 3px;
    transition: width 0.4s ease;
    width: 0%;
}

.category-tag {
    display: inline-block;
    background: #e8f0fe;
    padding: 4px 14px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-bottom: 16px;
    color: #005A93;
}

.question-text {
    font-size: 1.35rem;
    line-height: 1.5;
    margin-bottom: 24px;
    min-height: 60px;
}

/* OPTIONS */
.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-btn {
    display: block;
    width: 100%;
    padding: 16px 20px;
    background: #f0f5fa;
    border: 2px solid #d0dce8;
    border-radius: 12px;
    color: #1a1a2e;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.option-btn:hover:not(.disabled) {
    background: #e0ecf5;
    border-color: #005A93;
    transform: translateX(4px);
}

.option-btn:focus {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

.option-btn.correct {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.option-btn.wrong {
    background: #f8d7da;
    border-color: #c8102e;
    color: #721c24;
}

.option-btn.disabled {
    cursor: default;
    opacity: 0.7;
}

.option-btn.disabled.correct {
    opacity: 1;
}

/* FACT BOX */
.fact-box {
    margin-top: 20px;
    padding: 16px 20px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: fadeIn 0.3s ease;
}

.fact-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.fact-box p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
}

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

/* RESULTS SCREEN */
#results-screen {
    text-align: center;
}

#results-emoji {
    font-size: 4rem;
    margin-bottom: 8px;
}

#results-screen h2 {
    font-size: 1.8rem;
    margin-bottom: 24px;
}

.score-circle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #e8f0fe;
    border: 4px solid #005A93;
    margin: 20px auto;
    color: #005A93;
}

#final-score {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.score-label {
    font-size: 1.1rem;
    opacity: 0.8;
}

#results-message {
    font-size: 1.1rem;
    margin: 16px 0 24px;
    opacity: 0.9;
}

.results-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.stat-card {
    background: #f0f5fa;
    border-radius: 12px;
    padding: 16px 8px;
    border: 1px solid #d0dce8;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 4px;
}

/* INSIGHT CARD */
.insight-card {
    background: #f0f5fa;
    border: 2px solid #005A93;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.insight-card h3 {
    font-size: 1.2rem;
    color: #005A93;
    margin-bottom: 16px;
}

.insight-card img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.insight-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .screen { padding: 24px 18px; }
    #start-screen h1 { font-size: 2rem; }
    .question-text { font-size: 1.15rem; }
    .results-stats { grid-template-columns: 1fr; }
    .data-header h2 { font-size: 1.3rem; }
}

/* DATA BUTTON */
.btn-data {
    background: #005A93;
    margin-top: 16px;
    display: inline-block;
}

/* RESULTS ACTIONS */
.results-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* DATA ANALYSIS SCREEN */
#data-screen {
    max-height: 80vh;
    overflow-y: auto;
}

.data-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.data-header h2 {
    font-size: 1.5rem;
    color: #005A93;
    margin: 0;
}

.data-subtitle {
    font-size: 1rem;
    color: #555;
    margin-bottom: 24px;
    opacity: 0.8;
}

#data-charts {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 24px;
}

.data-card {
    background: #f0f5fa;
    border: 2px solid #d0dce8;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    position: relative;
    animation: fadeIn 0.4s ease;
}

.data-card-number {
    position: absolute;
    top: -14px;
    left: 20px;
    background: #005A93;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.data-card h3 {
    font-size: 1.15rem;
    color: #005A93;
    margin-bottom: 16px;
}

.data-card img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.data-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}

/* HOST TABLE */
.host-table-subtitle {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 16px;
    font-style: italic;
}

.host-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.host-table th {
    background: #005A93;
    color: #fff;
    padding: 10px 14px;
    font-weight: 600;
}

.host-table th:first-child {
    border-radius: 8px 0 0 0;
}

.host-table th:last-child {
    border-radius: 0 8px 0 0;
}

.host-table td {
    padding: 8px 14px;
    border-bottom: 1px solid #d0dce8;
    color: #333;
}

.host-table tbody tr:hover {
    background: #e0ecf5;
}

.host-table tr.host-winner {
    background: #d4edda;
    font-weight: 600;
}

.host-table tr.host-winner:hover {
    background: #c3e6cb;
}

#btn-data-back {
    width: 100%;
}

/* 2026 WORLD CUP SECTION */
.wc2026-card {
    border-color: #005A93;
}

.wc2026-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 16px 0 24px;
}

.wc2026-stat {
    background: #e8f0fe;
    border-radius: 12px;
    padding: 14px 8px;
    text-align: center;
}

.wc2026-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #005A93;
}

.wc2026-stat-label {
    font-size: 0.8rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wc2026-changes-title {
    font-size: 1rem;
    color: #005A93;
    margin: 16px 0 8px;
    text-align: left;
}

.wc2026-changes {
    text-align: left;
    padding-left: 20px;
    margin-bottom: 16px;
}

.wc2026-changes li {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.8;
}

.wc2026-debut-nations {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.wc2026-debut-badge {
    background: #d4edda;
    color: #155724;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* GROUP DRAW */
.wc2026-group-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 16px 0;
}

.wc2026-group {
    border: 1px solid #d0dce8;
    border-radius: 10px;
    overflow: hidden;
}

.wc2026-group-header {
    background: #005A93;
    color: #fff;
    padding: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
}

.wc2026-group-team {
    padding: 6px 10px;
    font-size: 0.8rem;
    border-bottom: 1px solid #e8eef5;
    color: #333;
}

.wc2026-group-team:last-child {
    border-bottom: none;
}

.wc2026-group-team.debut {
    background: #d4edda;
    font-weight: 600;
}

.wc2026-group-team.debut::after {
    content: ' 🌟';
}

.wc2026-legend {
    font-size: 0.8rem;
    color: #555;
    text-align: center;
    font-style: italic;
}

@media (max-width: 480px) {
    .wc2026-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .wc2026-group-grid { grid-template-columns: repeat(2, 1fr); }
}
