/* ===== RESET & FOUNDATIONS ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0b0f14;
    --bg-card: #141a23;
    --bg-card-hover: #1a2232;
    --bg-elevated: #1e2738;
    --text-primary: #e8edf4;
    --text-secondary: #8a95a8;
    --text-muted: #5a6577;
    --accent: #c9a44c;
    --accent-glow: rgba(201, 164, 76, 0.25);
    --accent-soft: rgba(201, 164, 76, 0.1);
    --correct: #34d399;
    --correct-bg: rgba(52, 211, 153, 0.1);
    --correct-border: rgba(52, 211, 153, 0.4);
    --wrong: #f87171;
    --wrong-bg: rgba(248, 113, 113, 0.1);
    --wrong-border: rgba(248, 113, 113, 0.4);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-med: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    font-size: 17px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Charter', 'Georgia', 'Times New Roman', serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Subtle noise texture overlay */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

/* ===== START SCREEN ===== */
#start-screen {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 100;
    background: var(--bg-primary);
    overflow: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#start-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Animated gradient background */
.start-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(201, 164, 76, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(120, 80, 30, 0.06) 0%, transparent 70%),
        linear-gradient(175deg, #0b0f14 0%, #111820 40%, #0e1319 100%);
    animation: bgShift 12s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0% { opacity: 1; }
    50% { opacity: 0.85; }
    100% { opacity: 1; }
}

/* Decorative grid lines */
.start-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(201, 164, 76, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 164, 76, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at center, black 30%, transparent 80%);
}

/* Floating light orb */
.start-bg::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 164, 76, 0.06) 0%, transparent 70%);
    top: 15%;
    right: 10%;
    animation: orbFloat 8s ease-in-out infinite;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, 20px) scale(1.1); }
    66% { transform: translate(20px, -15px) scale(0.95); }
}

.start-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: 640px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Tag line above title */
.start-tag {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3.5px;
    color: var(--accent);
    opacity: 0;
    animation: fadeSlideUp 0.7s 0.3s ease forwards;
    display: flex;
    align-items: center;
    gap: 12px;
}

.start-tag::before,
.start-tag::after {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent);
    opacity: 0.5;
}

.main-title {
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.15;
    letter-spacing: -0.5px;
    opacity: 0;
    animation: fadeSlideUp 0.8s 0.5s ease forwards;
}

.main-title span {
    display: block;
    background: linear-gradient(135deg, var(--accent) 0%, #e8d49a 50%, var(--accent) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 4s linear infinite;
}

@keyframes shimmerText {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.subtitle {
    font-size: clamp(0.95rem, 2.2vw, 1.15rem);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 480px;
    opacity: 0;
    animation: fadeSlideUp 0.8s 0.7s ease forwards;
}

.start-btn {
    margin-top: 0.5rem;
    background: transparent;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 16px 48px;
    cursor: pointer;
    border-radius: 100px;
    letter-spacing: 2px;
    text-transform: uppercase;
    user-select: none;
    outline: none;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeSlideUp 0.8s 0.9s ease forwards;
    transition: var(--transition-med);
}

.start-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.start-btn:hover {
    color: var(--bg-primary);
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}

.start-btn:hover::before {
    transform: scaleX(1);
}

.start-btn:active {
    transform: scale(0.97);
}

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

/* ===== QUIZ CONTAINER ===== */
.quiz-container {
    width: 92%;
    max-width: 640px;
    margin: 0 auto;
    padding: 32px 0;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.quiz-container.visible {
    display: block;
    opacity: 1;
}

/* ===== HEADER & PROGRESS ===== */
.header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
    padding: 0 4px;
}

#counter {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 80px;
    letter-spacing: 0.5px;
}

.progress-bar {
    flex: 1;
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 0;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
    transition: opacity 0.3s;
}

/* ===== QUESTION ===== */
#question-container {
    animation: questionEnter 0.5s ease;
}

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

#question {
    font-size: clamp(1.25rem, 3.5vw, 1.55rem);
    font-weight: 600;
    margin-bottom: 28px;
    color: var(--text-primary);
    line-height: 1.5;
    text-align: left;
    padding: 0 4px;
}

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

.option-btn {
    padding: 18px 22px;
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    text-align: left;
    transition: all var(--transition-fast);
    position: relative;
    user-select: none;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.option-btn .option-marker {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--border-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    margin-top: 1px;
}

.option-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.option-btn:hover .option-marker {
    border-color: var(--accent);
    color: var(--accent);
}

.option-btn:active {
    transform: translateX(4px) scale(0.99);
}

.option-btn:disabled {
    cursor: default;
    transform: none;
}

.option-btn:disabled:hover {
    transform: none;
}

/* Correct answer */
.option-btn.correct {
    background: var(--correct-bg);
    border-color: var(--correct-border);
    animation: correctPulse 0.5s ease;
}

.option-btn.correct .option-marker {
    background: var(--correct);
    border-color: var(--correct);
    color: var(--bg-primary);
}

.option-btn.correct .option-marker::after {
    content: '✓';
    font-size: 0.8rem;
    font-weight: 700;
}

.option-btn.correct .option-marker span { display: none; }

@keyframes correctPulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.3); }
    70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
    100% { box-shadow: none; }
}

/* Wrong answer */
.option-btn.wrong {
    background: var(--wrong-bg);
    border-color: var(--wrong-border);
    animation: wrongShake 0.4s ease;
}

.option-btn.wrong .option-marker {
    background: var(--wrong);
    border-color: var(--wrong);
    color: var(--bg-primary);
}

.option-btn.wrong .option-marker::after {
    content: '✗';
    font-size: 0.85rem;
    font-weight: 700;
}

.option-btn.wrong .option-marker span { display: none; }

@keyframes wrongShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(2px); }
}

/* Dimmed unselected options */
.option-btn.dimmed {
    opacity: 0.45;
}

/* ===== EXPLANATION ===== */
.explanation {
    margin-top: 24px;
    padding: 20px 24px;
    border-left: 3px solid var(--accent);
    background: var(--accent-soft);
    font-size: 0.95rem;
    line-height: 1.7;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--text-secondary);
    display: none;
    animation: fadeIn 0.4s ease;
}

.explanation-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
}

.explanation.visible {
    display: block;
}

/* ===== NEXT BUTTON ===== */
.next-btn {
    display: none;
    margin: 28px auto 0;
    padding: 14px 40px;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 20px var(--accent-glow);
    animation: fadeIn 0.3s ease;
}

.next-btn.visible {
    display: block;
}

.next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.next-btn:active {
    transform: translateY(0) scale(0.97);
}

/* ===== RESULTS SCREEN ===== */
.result-screen {
    width: 92%;
    max-width: 560px;
    margin: 0 auto;
    padding: 48px 0;
    text-align: center;
    color: var(--text-primary);
    display: none;
}

.result-screen.visible {
    display: block;
    animation: fadeIn 0.6s ease;
}


@keyframes badgePop {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.result-screen h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.result-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* Score display */
.result-score {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    margin-bottom: 24px;
}

.score-ring {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    position: relative;
}

.score-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-ring-bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 6;
}

.score-ring-fill {
    fill: none;
    stroke: var(--accent);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 408;
    stroke-dashoffset: 408;
    transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 6px var(--accent-glow));
}

.score-ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-number {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.score-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    letter-spacing: 0.5px;
}

#feedback {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 20px 24px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

/* Peers */
.peers-section {
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 32px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
}

#peers {
    font-weight: 700;
    color: var(--text-primary);
}

/* Action buttons */
.action-buttons {
    margin-bottom: 24px;
}

.retry-btn {
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    padding: 15px 40px;
    border-radius: 100px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.retry-btn:active {
    transform: scale(0.97);
}

/* Share section */
.share-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.share-section p {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.share-buttons-row {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

.share-btn:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
}

.share-btn.tg {
    background: rgba(0, 136, 204, 0.15);
    border-color: rgba(0, 136, 204, 0.3);
    color: #29b6f6;
}

.share-btn.tg:hover {
    background: rgba(0, 136, 204, 0.25);
    box-shadow: 0 4px 16px rgba(0, 136, 204, 0.2);
}

.share-btn.vk {
    background: rgba(76, 117, 163, 0.15);
    border-color: rgba(76, 117, 163, 0.3);
    color: #7aa5d2;
}

.share-btn.vk:hover {
    background: rgba(76, 117, 163, 0.25);
    box-shadow: 0 4px 16px rgba(76, 117, 163, 0.2);
}

.share-btn.native {
    background: rgba(201, 164, 76, 0.1);
    border-color: rgba(201, 164, 76, 0.25);
    color: var(--accent);
}

.share-btn.native:hover {
    background: rgba(201, 164, 76, 0.2);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.stories-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 16px auto 0;
    padding: 12px 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-secondary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    letter-spacing: 0.5px;
}

.stories-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

/* ===== UTILITIES ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Hint for multiple correct answers */
.multi-hint {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 16px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.multi-hint::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: hintPulse 1.5s ease infinite;
}

@keyframes hintPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Selected state for multi-answer */
.option-btn.selected {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.option-btn.selected .option-marker {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--bg-primary);
}

/* Submit button for multi-answer */
.submit-btn {
    display: block;
    margin: 16px auto 0;
    padding: 12px 32px;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 20px var(--accent-glow);
    opacity: 0;
    animation: fadeSlideUp 0.3s ease forwards;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.submit-btn:disabled {
    opacity: 0.4;
    cursor: default;
    transform: none;
    box-shadow: none;
}

/* Explanation image */
.explanation-text {
    margin-bottom: 16px;
}

.explanation-img-wrap {
    position: relative;
    margin-top: 4px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.img-skeleton {
    width: 100%;
    height: 200px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
    transition: opacity 0.3s ease, height 0.3s ease;
}

.img-skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(201, 164, 76, 0.06) 40%,
        rgba(201, 164, 76, 0.1) 50%,
        rgba(201, 164, 76, 0.06) 60%,
        transparent 100%
    );
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.img-skeleton.hidden {
    opacity: 0;
    height: 0;
    position: absolute;
    pointer-events: none;
}

.explanation-img {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    display: block;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.explanation-img.loaded {
    opacity: 1;
    transform: scale(1);
}

.img-credit {
    display: block;
    margin-top: 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    text-align: right;
    opacity: 0.7;
}


/* Header logo */
.header-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.header-logo:hover {
    opacity: 1;
}

/* Result logo */
.result-badge {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: badgePop 0.6s 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    overflow: hidden;
    padding: 14px;
}

.result-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Start screen logo */
.start-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    opacity: 0;
    animation: fadeSlideUp 0.7s 0.1s ease forwards;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    html { font-size: 16px; }

    .start-content { padding: 1.5rem; }

    .quiz-container {
        width: 100%;
        padding: 24px 16px;
    }

    #question {
        font-size: 1.2rem;
    }

    .option-btn {
        padding: 15px 16px;
        font-size: 0.95rem;
        gap: 12px;
    }

    .option-btn .option-marker {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }

    .explanation {
        padding: 16px 18px;
        font-size: 0.9rem;
    }

    .result-screen {
        width: 100%;
        padding: 32px 16px;
    }

    .result-score {
        padding: 24px 16px;
    }

    .score-ring {
        width: 120px;
        height: 120px;
    }

    .score-number {
        font-size: 2rem;
    }
}

@media (max-width: 380px) {
    .start-btn {
        padding: 14px 36px;
        font-size: 0.8rem;
    }

    .option-btn {
        padding: 13px 14px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
