
        :root {
            color-scheme: light;
            --bg-color: #eff4ff;
            --card-bg: #ffffff;
            --surface: #f8faff;
            --surface-hover: #eef2ff;
            --border: #cbd5e1;
            --accent: #5b5ce2;
            --accent-hover: #4747c8;
            --correct: #15803d;
            --wrong: #c2414d;
            --text: #1f2937;
            --text-muted: #52627a;
        }

        * { box-sizing: border-box; margin: 0; padding: 0; font-family: system-ui, -apple-system, sans-serif; }
        body { background: linear-gradient(145deg, #f8faff 0%, var(--bg-color) 62%, #fff6e9 100%); color: var(--text); min-height: 100vh; display: flex; justify-content: center; align-items: center; padding: 1rem; }
        
        .container { width: 100%; max-width: 550px; background: var(--card-bg); border: 1px solid #dbe4f0; border-radius: 1rem; padding: 1.5rem; box-shadow: 0 14px 35px -12px rgba(71, 85, 105, 0.28); position: relative; }
        .hidden { display: none !important; }

        h1 { font-size: 1.6rem; margin-bottom: 0.2rem; text-align: center; color: #4f46e5; }
        p.subtitle { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

        label { display: block; margin-bottom: 0.4rem; color: var(--text-muted); font-size: 0.85rem; }
        input[type="text"], select { width: 100%; padding: 0.8rem; border-radius: 0.5rem; border: 2px solid var(--border); background: #fff; color: var(--text); font-size: 1rem; margin-bottom: 1rem; outline: none; }
        input[type="text"]:focus, select:focus { border-color: var(--accent); }

        .btn { width: 100%; padding: 0.8rem; border: none; border-radius: 0.5rem; background: var(--accent); color: white; font-size: 1rem; font-weight: bold; cursor: pointer; transition: 0.2s; margin-bottom: 0.5rem; }
        .btn:hover { background: var(--accent-hover); }
        .btn-secondary { background: #e2e8f0; color: #334155; }
        .btn-secondary:hover { background: #cbd5e1; }

        .quiz-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-size: 0.9rem; font-weight: bold; }
        .timer-bar { width: 100%; height: 6px; background: #dbe4f0; border-radius: 3px; overflow: hidden; margin-bottom: 1.2rem; }
        .timer-progress { height: 100%; background: var(--accent); width: 100%; transition: width 0.1s linear; }

        .verb-card { background: var(--surface); border-radius: 0.8rem; padding: 1.2rem; text-align: center; margin-bottom: 1.2rem; border: 1px solid #dbe4f0; }
        .verb-card .infinitive { font-size: 1.5rem; font-weight: bold; color: #0369a1; }
        .verb-card .german { font-size: 1rem; color: var(--text-muted); margin-top: 0.3rem; }

        .options-grid { display: grid; gap: 0.8rem; }
        .option-btn { background: #fff; border: 2px solid var(--border); color: var(--text); padding: 0.9rem; border-radius: 0.6rem; font-size: 0.95rem; text-align: left; cursor: pointer; transition: 0.2s; }
        .option-btn:hover:not([disabled]) { border-color: var(--accent); background: var(--surface-hover); }
        .option-btn.correct { background: #dcfce7 !important; border-color: var(--correct) !important; color: #14532d; }
        .option-btn.wrong { background: #fff1f2 !important; border-color: var(--wrong) !important; color: #9f1239; }

        .leaderboard-table { width: 100%; border-collapse: collapse; margin-top: 1rem; margin-bottom: 1.5rem; }
        .leaderboard-table th, .leaderboard-table td { padding: 0.6rem; text-align: left; border-bottom: 1px solid #dbe4f0; font-size: 0.9rem; }
        .leaderboard-table th { color: var(--accent); }
        .rank { font-weight: bold; color: #b45309; width: 30px; }
        .back-link { display: block; text-align: center; color: var(--text-muted); text-decoration: none; font-size: 0.85rem; margin-top: 0.8rem; }
        .back-link:hover { color: var(--accent); }

        /* Untergeordnete Links */
        .utility-links { display: flex; justify-content: center; align-items: center; gap: 0.5rem; margin-top: 1.2rem; color: var(--text-muted); font-size: 0.75rem; }
        .utility-links a, .version-badge { color: var(--text-muted); text-decoration: underline; }
        .version-badge { border: 0; padding: 0; background: transparent; font: inherit; cursor: pointer; }
        .utility-links a:hover, .version-badge:hover { color: var(--accent); }

        /* Modal / Pop-up Styles */
        .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(30, 41, 59, 0.45); display: flex; justify-content: center; align-items: center; z-index: 1000; padding: 1rem; }
        .modal-body { background: var(--card-bg); border-radius: 1rem; padding: 1.5rem; max-width: 480px; width: 100%; max-height: 80vh; overflow-y: auto; border: 1px solid #dbe4f0; box-shadow: 0 10px 25px rgba(71, 85, 105, 0.25); }
        .modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #dbe4f0; padding-bottom: 0.8rem; margin-bottom: 1rem; }
        .modal-header h2 { font-size: 1.2rem; color: #0369a1; }
        .close-btn { background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; }
        .close-btn:hover { color: var(--text); }

        .changelog-entry { margin-bottom: 1.2rem; }
        .changelog-entry .v-title { font-weight: bold; color: #4f46e5; font-size: 0.95rem; margin-bottom: 0.3rem; }
        .changelog-entry ul { list-style: square; padding-left: 1.2rem; font-size: 0.85rem; color: var(--text-muted); }
        .changelog-entry li { margin-bottom: 0.2rem; }
    

.combo-badge { color: #b45309; }
.final-score { text-align: center; font-size: 2.5rem; font-weight: bold; color: #0369a1; margin: 1rem 0; }
.table-message { text-align: center; }
.table-message.error, .changelog-error { color: var(--wrong); }
.score-cell { font-weight: bold; color: #0369a1; }
.date-cell { color: var(--text-muted); }
.changelog-date { font-weight: normal; color: var(--text-muted); font-size: 0.8rem; }
.answer-feedback { min-height: 1.5rem; margin-bottom: 0.8rem; text-align: center; font-weight: 600; }
.answer-feedback.correct { color: var(--correct); }
.answer-feedback.wrong { color: var(--wrong); }
.quiz-mascot { position: relative; width: 112px; height: 70px; margin: -0.25rem auto 0.15rem; pointer-events: none; }
.start-mascot { display: block; margin: 0.1rem auto -0.1rem; padding: 0; border: 0; background: transparent; cursor: pointer; pointer-events: auto; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.start-mascot:hover { filter: brightness(1.04); }
.start-mascot:focus-visible { outline: 3px solid #b45309; outline-offset: 5px; border-radius: 0.8rem; }
.mascot-greeting { margin: 0 0 0.8rem; color: #9a5a31; font-size: 0.9rem; font-weight: 600; text-align: center; }
.dog-body, .dog-head, .dog-leg, .dog-tail { position: absolute; display: block; }
.dog-body { z-index: 1; width: 64px; height: 37px; left: 20px; bottom: 9px; border-radius: 46% 54% 40% 42%; background: #d99050; box-shadow: inset -8px -5px 0 rgba(121, 71, 38, 0.14); }
.dog-leg { z-index: 0; width: 13px; height: 25px; bottom: 2px; border-radius: 0 0 8px 8px; background: #bd713d; }
.dog-leg-back { left: 28px; }
.dog-leg-front { left: 70px; }
.dog-tail { z-index: 0; width: 34px; height: 11px; left: 0; bottom: 33px; border-radius: 12px 0 0 12px; background: #bd713d; transform: rotate(-20deg); transform-origin: right center; animation: dog-tail-wag 2.8s ease-in-out infinite; }
.dog-head { z-index: 2; width: 48px; height: 46px; right: 7px; top: 5px; border-radius: 48% 52% 50% 47%; background: #e3a263; box-shadow: inset -5px -4px 0 rgba(121, 71, 38, 0.1); transform-origin: 50% 90%; }
.dog-ear { position: absolute; z-index: -1; width: 18px; height: 30px; top: -7px; border-radius: 70% 32% 55% 40%; background: #a85e34; }
.dog-ear-left { left: 2px; transform: rotate(25deg); }
.dog-ear-right { right: 1px; transform: rotate(-19deg); }
.dog-face { position: absolute; inset: 0; }
.dog-eye { position: absolute; width: 5px; height: 7px; top: 17px; border-radius: 50%; background: #18212f; }
.dog-eye-left { left: 14px; }
.dog-eye-right { right: 14px; }
.dog-muzzle { position: absolute; width: 24px; height: 17px; left: 12px; bottom: 6px; border-radius: 48%; background: #f6d7af; }
.dog-nose { position: absolute; width: 8px; height: 6px; left: 8px; top: 3px; border-radius: 50% 50% 48% 48%; background: #18212f; }
.dog-muzzle::after { content: ''; position: absolute; left: 11px; top: 9px; width: 7px; height: 5px; border-bottom: 2px solid #18212f; border-radius: 0 0 8px 8px; }
.mascot-happy-hop { animation: dog-happy-hop 470ms ease-out; }
.mascot-happy-hop .dog-tail, .mascot-happy-wiggle .dog-tail { animation: dog-tail-happy 180ms ease-in-out 4; }
.mascot-happy-hop .dog-muzzle::after, .mascot-happy-bow .dog-muzzle::after, .mascot-happy-wiggle .dog-muzzle::after { width: 9px; height: 6px; left: 8px; border-bottom-width: 2px; }
.mascot-happy-bow .dog-head { animation: dog-happy-bow 520ms ease-out; }
.mascot-happy-bow .dog-tail { animation: dog-tail-bow 240ms ease-in-out 3; }
.mascot-happy-wiggle { animation: dog-happy-wiggle 460ms ease-in-out; }
.mascot-oops-tilt .dog-head { animation: dog-oops-head 380ms ease-out; }
.mascot-oops-tilt .dog-ear-left, .mascot-oops-shy .dog-ear-left { animation: dog-ear-droop-left 380ms ease-out both; }
.mascot-oops-tilt .dog-ear-right, .mascot-oops-shy .dog-ear-right { animation: dog-ear-droop-right 380ms ease-out both; }
.mascot-oops-tilt .dog-muzzle::after, .mascot-oops-shy .dog-muzzle::after, .mascot-oops-sigh .dog-muzzle::after { top: 10px; border-bottom: 0; border-top: 2px solid #18212f; border-radius: 8px 8px 0 0; }
.mascot-oops-shy { animation: dog-oops-shy 480ms ease-out; }
.mascot-oops-sigh .dog-body { animation: dog-oops-sigh 540ms ease-out; }
.mascot-oops-sigh .dog-tail { animation: dog-tail-sigh 540ms ease-out; }
.ranking-hint { margin: 0.2rem 0 0.8rem; color: var(--text-muted); font-size: 0.8rem; text-align: center; }
.name-privacy-hint { margin: -0.7rem 0 1rem; color: var(--text-muted); font-size: 0.78rem; line-height: 1.4; }
.privacy-content { max-width: 700px; }
.privacy-content section { margin: 1.3rem 0; }
.privacy-content h2 { color: #4f46e5; font-size: 1.1rem; margin-bottom: 0.45rem; }
.privacy-content p, .privacy-content li { color: var(--text-muted); line-height: 1.55; }
.privacy-content ul { padding-left: 1.25rem; }
.privacy-content a:not(.back-link) { color: #4338ca; }
.privacy-note { font-size: 0.85rem; }

.btn:active, .option-btn:active:not([disabled]) { transform: scale(0.98); }
.btn:focus-visible, .option-btn:focus-visible, select:focus-visible, input:focus-visible, .close-btn:focus-visible, .version-badge:focus-visible {
    outline: 3px solid #b45309;
    outline-offset: 3px;
}
.option-btn { position: relative; min-height: 3.25rem; }
.option-btn.correct { animation: answer-pop 320ms ease-out; padding-right: 3rem; }
.option-btn.correct::after { content: '✓'; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 800; }
.option-btn.wrong { animation: answer-shake 320ms ease-in-out; }
.combo-badge.streak-celebrate { animation: streak-pulse 480ms ease-out; }
.score-counting { animation: score-glow 350ms ease-out; }
.question-enter { animation: question-enter 180ms ease-out both; }

@keyframes answer-pop {
    0% { transform: scale(1); }
    45% { transform: scale(1.025); }
    100% { transform: scale(1); }
}
@keyframes answer-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
@keyframes streak-pulse {
    0% { transform: scale(1); text-shadow: none; }
    45% { transform: scale(1.16); text-shadow: 0 0 14px rgba(180, 83, 9, 0.4); }
    100% { transform: scale(1); text-shadow: none; }
}
@keyframes score-glow {
    0% { transform: translateY(0); color: inherit; }
    45% { transform: translateY(-3px); color: #b45309; }
    100% { transform: translateY(0); color: inherit; }
}
@keyframes question-enter {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes dog-tail-wag {
    0%, 78%, 100% { transform: rotate(-20deg); }
    86% { transform: rotate(9deg); }
    93% { transform: rotate(-35deg); }
}
@keyframes dog-tail-happy {
    0%, 100% { transform: rotate(-30deg); }
    50% { transform: rotate(28deg); }
}
@keyframes dog-happy-hop {
    0%, 100% { transform: translateY(0) rotate(0); }
    40% { transform: translateY(-8px) rotate(-3deg); }
    70% { transform: translateY(-2px) rotate(2deg); }
}
@keyframes dog-oops-head {
    0%, 100% { transform: rotate(0); }
    40% { transform: rotate(-7deg) translateY(3px); }
    70% { transform: rotate(3deg); }
}
@keyframes dog-happy-bow {
    0%, 100% { transform: rotate(0) translateY(0); }
    45% { transform: rotate(8deg) translateY(5px); }
}
@keyframes dog-tail-bow {
    0%, 100% { transform: rotate(-20deg); }
    50% { transform: rotate(-52deg); }
}
@keyframes dog-happy-wiggle {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-4deg); }
    55% { transform: rotate(4deg); }
    75% { transform: rotate(-2deg); }
}
@keyframes dog-ear-droop-left {
    to { transform: rotate(55deg) translateY(4px); }
}
@keyframes dog-ear-droop-right {
    to { transform: rotate(-55deg) translateY(4px); }
}
@keyframes dog-oops-shy {
    0%, 100% { transform: translateX(0); }
    40% { transform: translateX(-5px); }
}
@keyframes dog-oops-sigh {
    0%, 100% { transform: scaleY(1); }
    45% { transform: scaleY(0.92) translateY(3px); }
}
@keyframes dog-tail-sigh {
    0%, 100% { transform: rotate(-20deg); }
    50% { transform: rotate(-33deg); }
}

@media (max-width: 480px) {
    .container { padding: 1.1rem; }
    .option-btn { min-height: 3.5rem; padding: 0.8rem 2.7rem 0.8rem 0.8rem; }
    .option-btn.correct::after { right: 0.8rem; }
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --bg-color: #0f172a;
        --card-bg: #182235;
        --surface: #111827;
        --surface-hover: #202554;
        --border: #475569;
        --accent: #a5b4fc;
        --accent-hover: #c4b5fd;
        --correct: #4ade80;
        --wrong: #fb7185;
        --text: #f8fafc;
        --text-muted: #cbd5e1;
    }

    body { background: linear-gradient(145deg, #10182d 0%, var(--bg-color) 62%, #221a2b 100%); }
    .container { border-color: #334155; box-shadow: 0 14px 35px -12px rgba(0, 0, 0, 0.55); }
    h1, .changelog-entry .v-title, .privacy-content h2 { color: #c4b5fd; }
    input[type="text"], select { background: #0f172a; color: var(--text); }
    .btn { color: #1e1b4b; }
    .btn-secondary { background: #334155; color: #f8fafc; }
    .btn-secondary:hover { background: #475569; }
    .timer-bar { background: #334155; }
    .verb-card { border-color: #334155; }
    .verb-card .infinitive, .modal-header h2, .final-score, .score-cell { color: #7dd3fc; }
    .option-btn { background: #0f172a; }
    .option-btn:hover:not([disabled]) { background: #1e1b4b; }
    .option-btn.correct { background: #14532d !important; color: #f0fdf4; }
    .option-btn.wrong { background: #7f1d1d !important; color: #fff1f2; }
    .leaderboard-table th, .leaderboard-table td, .modal-header { border-color: #334155; }
    .rank, .combo-badge { color: #fbbf24; }
    .back-link:hover, .utility-links a:hover, .version-badge:hover { color: #c4b5fd; }
    .modal-overlay { background: rgba(0, 0, 0, 0.7); }
    .modal-body { border-color: #334155; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); }
    .close-btn:hover { color: #fff; }
    .mascot-greeting { color: #f6d7af; }
    .privacy-content a:not(.back-link) { color: #93c5fd; }
    .btn:focus-visible, .option-btn:focus-visible, select:focus-visible, input:focus-visible, .close-btn:focus-visible, .version-badge:focus-visible { outline-color: #fbbf24; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .quiz-mascot, .quiz-mascot * { animation: none !important; transition: none !important; }
}
