:root {
    --background: #101725;
    --card: #172337;
    --primary: #4285f4;
    --light-blue: #7dd3fc;
    --text: #f1f5f9;
    --muted: #a9bad2;
    --border: #30435e;
    --success: #22c55e;
    --danger: #ef4444;
}

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

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: radial-gradient(
        ellipse at top,
        #152b48 0%,
        var(--background) 55%
    );
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

.header {
    background: rgba(10, 18, 32, 0.95);
    border-bottom: 1px solid var(--border);
    padding: 18px 24px;
}

.header-content {
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.brand strong {
    font-size: 23px;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.cloud-icon {
    color: var(--light-blue);
    font-size: 42px;
    line-height: 1;
}

.back-link {
    color: var(--light-blue);
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    text-decoration: underline;
}

.container {
    max-width: 850px;
    margin: auto;
    padding: 45px 20px;
}

.hero {
    text-align: center;
    margin-bottom: 35px;
}

.tag {
    display: inline-block;
    background: #193759;
    color: var(--light-blue);
    border: 1px solid #31577e;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: bold;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(28px, 5vw, 44px);
    line-height: 1.25;
    margin-bottom: 16px;
}

.hero h1 span {
    color: var(--light-blue);
}

.hero p {
    color: var(--muted);
    max-width: 650px;
    margin: auto;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
    animation: fadeIn 0.35s ease;
}

#start-screen,
#result-screen {
    text-align: center;
}

.large-icon {
    font-size: 65px;
    color: var(--light-blue);
    margin-bottom: 12px;
}

.card h2 {
    font-size: 25px;
    line-height: 1.4;
    margin-bottom: 18px;
}

.card p {
    color: var(--muted);
}

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

.features div {
    background: #101c2e;
    border: 1px solid var(--border);
    padding: 18px 8px;
    border-radius: 12px;
}

.features strong {
    display: block;
    color: var(--light-blue);
    font-size: 26px;
}

.features span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.primary-btn {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #4285f4, #2563eb);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 22px;
    transition: 0.2s;
}

.primary-btn:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-2px);
}

.primary-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.secondary-btn {
    display: block;
    color: var(--light-blue);
    border: 1px solid var(--border);
    padding: 13px;
    margin-top: 12px;
    border-radius: 10px;
    text-decoration: none;
}

.secondary-btn:hover {
    background: #20334e;
}

.quiz-info {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 12px;
}

#score {
    color: var(--light-blue);
    font-weight: bold;
}

.progress-track {
    height: 9px;
    background: #0d1726;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 28px;
}

#progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #4285f4, #7dd3fc);
    border-radius: 20px;
    transition: width 0.3s ease;
}

.answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.answer-btn {
    width: 100%;
    background: #1c2c43;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 15px;
    text-align: left;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

.answer-btn:hover:not(:disabled) {
    background: #243e60;
    border-color: var(--primary);
}

.answer-btn:disabled {
    cursor: default;
}

.answer-btn.correct {
    background: #123b2b;
    border-color: var(--success);
    color: #bbf7d0;
}

.answer-btn.incorrect {
    background: #451e29;
    border-color: var(--danger);
    color: #fecaca;
}

.feedback {
    padding: 16px;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 14px;
}

.feedback.success {
    background: #123b2b;
    border: 1px solid var(--success);
    color: #bbf7d0;
}

.feedback.error {
    background: #451e29;
    border: 1px solid var(--danger);
    color: #fecaca;
}

.result-circle {
    width: 150px;
    height: 150px;
    border: 8px solid var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 25px auto;
    background: #101c2e;
    box-shadow: 0 0 25px rgba(66, 133, 244, 0.2);
}

.result-circle span {
    font-size: 40px;
    font-weight: bold;
    color: var(--light-blue);
}

#result-title {
    margin-bottom: 12px;
    color: var(--light-blue);
}

footer {
    text-align: center;
    padding: 25px 15px;
    color: var(--muted);
    font-size: 12px;
    border-top: 1px solid var(--border);
}

footer p {
    margin: 5px 0;
}

.hidden {
    display: none;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--light-blue);
    outline-offset: 4px;
}

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

@media (max-width: 600px) {
    .header {
        padding: 15px;
    }

    .brand strong {
        font-size: 19px;
    }

    .back-link {
        font-size: 12px;
    }

    .container {
        padding: 30px 15px;
    }

    .card {
        padding: 22px 18px;
    }

    .card h2 {
        font-size: 21px;
    }

    .features {
        gap: 7px;
    }

    .features strong {
        font-size: 21px;
    }

    .features span {
        font-size: 11px;
    }

    .answer-btn {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
