@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&display=swap');

:root {
    --bg-1: #0f172a;
    --bg-2: #111827;
    --card: rgba(17, 24, 39, 0.8);
    --card-border: rgba(255, 255, 255, 0.1);
    --text: #e5eefb;
    --muted: #a9b7d0;
    --accent: #38bdf8;
    --accent-2: #f59e0b;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), transparent 32%),
        radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.15), transparent 28%),
        linear-gradient(160deg, var(--bg-1), var(--bg-2));
    color: var(--text);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 24px;
}

#app {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.94), rgba(15, 23, 42, 0.88));
    border: 1px solid var(--card-border);
    backdrop-filter: blur(18px);
    padding: 2rem;
    border-radius: 24px;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 560px;
    width: 100%;
}

h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.1;
}

p {
    color: var(--muted);
    line-height: 1.6;
}

input {
    padding: 0.95rem 1rem;
    width: min(100%, 320px);
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder {
    color: rgba(229, 238, 251, 0.42);
}

input:focus {
    border-color: rgba(56, 189, 248, 0.8);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
    transform: translateY(-1px);
}

button {
    padding: 0.9rem 1.1rem;
    background: linear-gradient(135deg, var(--accent), #2563eb);
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    margin: 0.35rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
    filter: brightness(1.04);
}

button:active {
    transform: translateY(0);
}

.error {
    color: #fda4af;
    font-size: 0.95rem;
    min-height: 1.2em;
}

.hidden {
    display: none;
}

.question-block {
    margin-top: 1.25rem;
}

.question-image {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    margin-bottom: 1rem;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.options-grid button {
    width: 100%;
    margin: 0;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.95), rgba(37, 99, 235, 0.95));
}

.final-block a {
    color: #fbbf24;
    font-weight: 800;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
}

.final-block a:hover {
    color: #fde68a;
}

@media (max-width: 520px) {
    body {
        padding: 14px;
    }

    #app {
        padding: 1.25rem;
        border-radius: 20px;
    }

    button {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}