.game-shell {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 100%;
    padding: 40px;
    min-height: 100%;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2.5em;
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* Start Screen */
#startScreen {
    text-align: center;
}

#startScreen p {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 30px;
}

#startScreen label {
    display: block;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 8px;
    color: #333;
}

#startScreen input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s;
}

#startScreen input:focus {
    outline: none;
    border-color: #667eea;
}

#startScreen input[type="range"] {
    padding: 0;
    border: none;
    background: transparent;
}

.range-value {
    text-align: center;
    font-weight: 700;
    color: #333;
    margin: 8px 0 20px;
}

#startBtn, #playAgainBtn {
    max-width: 400px;
}

/* Game Screen */
#gameScreen .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.timer {
    font-size: 3em;
    font-weight: bold;
    color: #667eea;
    min-width: 100px;
}

.score {
    font-size: 1.5em;
    color: #333;
    font-weight: 600;
}

.word-display {
    background: #f8f9fa;
    border: 1px solid #e6e8ec;
    border-radius: 10px;
    padding: 30px 20px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.word {
    font-size: 3em;
    font-weight: bold;
    color: #333;
    word-break: break-word;
}

.button-group {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 400px;
}

.btn {
    padding: 14px 24px;
    font-size: 1.1em;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.25s ease;
    flex: 1;
    min-width: 100px;
    min-height: 56px;
}

.btn-article {
    background: var(--article-bg, #f1f1f1);
    color: #2f2f2f;
    /* border: 2px solid var(--article-border, #d6d6d6); */
}

.btn-article[data-article="der"] {
    --article-bg: #aad3e4;
    /* --article-border: #5f76c5; */
    --article-strong: #1296ca;
    color: #0f1c4f;
}

.btn-article[data-article="die"] {
    --article-bg: #ffc4c4;
    /* --article-border: #c26a6a; */
    --article-strong: #ff4b4b;
    color: #4a1515;
}

.btn-article[data-article="das"] {
    --article-bg: #cdecc4;
    /* --article-border: #6c9c69; */
    --article-strong: #91C483;
    color: #1f351b;
}

.keystroke {
    font-family: 'Courier New', Courier, monospace;
    /* font-size: small; */
    color: black;
    opacity: 0.5;
}

.btn-article:hover:not(:disabled) {
    background: var(--article-strong, #e0e0e0);
    /* border-color: var(--article-strong, #bdbdbd); */
    color: #ffffff;
}

.btn-article.correct {
    background: var(--article-strong, #c5c5c5);
    /* border-color: var(--article-strong, #c5c5c5); */
    color: #ffffff;
}

.btn-article.incorrect {
    background: #cfcfcf;
    border-color: #c3c3c3;
    color: #555555;
}

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

.feedback {
    text-align: center;
    font-size: 1.2em;
    font-weight: 600;
    margin-top: 20px;
    height: 30px;
    min-height: 30px;
}

.feedback.correct {
    color: #4caf50;
}

.feedback.incorrect {
    color: #f44336;
}

/* Results Screen */
.results {
    display: flex;
    gap: 30px;
    margin: 40px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.result-item {
    text-align: center;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    flex: 1;
    min-width: 150px;
}

.result-item label {
    display: block;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
}

.result-value {
    font-size: 2em;
    color: #667eea;
    font-weight: bold;
}

#playAgainBtn {
    width: 100%;
    margin-top: 30px;
}

.review-block {
    margin: 20px 0 30px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 16px;
    border: 1px solid #e6e8ec;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.review-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #ececec;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.review-item .review-word {
    flex: 1;
    font-weight: 700;
    color: #222;
}

.review-item.tag-der .review-word { color: #1296ca; }
.review-item.tag-die .review-word { color: #ff4b4b; }
.review-item.tag-das .review-word { color: #91C483; }

.review-item .review-chip {
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85em;
    color: #fff;
}

.tag-der { background: #1296ca; }
.tag-die { background: #ff4b4b; }
.tag-das { background: #91C483; }

.review-item .review-choice {
    min-width: 48px;
    text-align: right;
    font-weight: 700;
    color: #9b9b9b;
}

.review-item.review-correct {
    border-color: #e7e7e7;
    background: #f3f3f3;
}

.review-item.review-wrong {
    border-color: #f36e62;
    background: #ffd1ca;
}

@media (max-width: 600px) {
    body {
        padding: 0;
        align-items: stretch;
    }

    .game-shell {
        max-width: none;
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
        padding: 20px;
    }

    h1 {
        font-size: 2em;
        margin-bottom: 16px;
    }

    .header {
        gap: 12px;
    }

    .word-display {
        margin: 32px 0;
    }

    .word {
        font-size: 2.3em;
    }

    .timer {
        font-size: 2.3em;
    }

    .button-group {
        gap: 10px;
        margin: 20px 0;
    }

    .btn-article {
        font-size: 1.05em;
        padding: 14px 16px;
    }
}
