.de-game-layout { display: flex; gap: 20px; align-items: flex-start; justify-content: center; max-width: 800px; margin: 0 auto 50px; flex-wrap: wrap; }
.de-game-layout.no-sidebar { max-width: 560px; }
.de-game { background: #fff; border-radius: 16px; padding: 28px; box-shadow: 0 4px 20px rgba(0,0,0,0.10); max-width: 560px; flex: 1 1 400px; margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; color: #222; }
.de-game * { box-sizing: border-box; }
.de-game button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; min-height: 44px; }
.de-game h3 { margin: 0 0 6px; font-size: 22px; text-align: center; color: #1e293b; }
.de-game-sub { text-align: center; color: #6b7280; font-size: 14px; margin-bottom: 20px; }

.de-game-step { display: none; }
.de-game-step.is-active { display: block; }

.de-game-name-input {
    display: block; width: 100%; max-width: 260px; margin: 0 auto 14px; padding: 10px 14px;
    border: 2px solid #d1d5db; border-radius: 100px; font-size: 16px; text-align: center; font-weight: 600;
}
.de-game-name-input:focus { outline: none; border-color: #ec4899; }
.de-game-greeting { text-align: center; font-weight: 700; color: #ec4899; margin-bottom: 10px; font-size: 15px; }

/* ---- Bestenlisten-Seitenleiste (bleibt kompakt, wächst nicht mit der Seite mit) ---- */
.de-game-sidebar {
    background: #fdf9ee; border: 2px solid #ffe4a3; border-radius: 16px; padding: 18px 18px 10px;
    width: 240px; flex: 0 0 240px; box-sizing: border-box; max-height: 420px; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.de-game-sidebar .de-game-choice-label { margin-top: 0; text-align: center; }
.de-game-lb-list { list-style: none; margin: 8px 0 0; padding: 0; }
.de-game-lb-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13.5px; border-bottom: 1px solid #f5e8c4; }
.de-game-lb-list li:last-child { border-bottom: none; }
.de-game-lb-rank { width: 24px; text-align: center; font-weight: 700; flex-shrink: 0; }
.de-game-lb-name { flex: 1; font-weight: 600; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.de-game-lb-points { font-weight: 700; color: #d97706; white-space: nowrap; }
.de-game-lb-empty { font-size: 13px; color: #92702c; text-align: center; margin: 10px 0 6px; }

.de-game-choice-label { font-weight: 700; font-size: 14px; margin: 16px 0 8px; color: #374151; }
.de-game-choice-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.de-game-choice-btn {
    border: 2px solid #d1d5db; background: #f9fafb; border-radius: 12px; padding: 12px 18px; cursor: pointer;
    font-size: 16px; font-weight: 700; min-width: 56px; min-height: 48px; transition: all 0.15s;
    touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.de-game-choice-btn:hover { border-color: #ec4899; background: #fdf2f8; }
.de-game-choice-btn.is-selected { border-color: #ec4899; background: #ec4899; color: #fff; }

.de-game-start-btn {
    display: block; margin: 24px auto 0; background: #16a34a; color: #fff; border: none; border-radius: 100px;
    padding: 14px 36px; font-size: 17px; font-weight: 700; cursor: pointer; transition: background 0.15s;
}
.de-game-start-btn:hover { background: #15803d; }
.de-game-start-btn:disabled { background: #d1d5db; cursor: not-allowed; }

.de-game-score { display: flex; justify-content: center; gap: 24px; margin-bottom: 18px; font-size: 14px; font-weight: 700; }
.de-game-score-correct { color: #16a34a; }
.de-game-score-wrong { color: #dc2626; }

.de-game-problem-box { text-align: center; padding: 20px 0; }
.de-game-problem-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 20px; }
.de-game-problem { font-size: 28px; font-weight: 800; color: #1e293b; line-height: 1.4; margin-bottom: 0; }
.de-game-speak-btn {
    flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #d1d5db; background: #f9fafb;
    font-size: 19px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.15s; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.de-game-speak-btn:hover { border-color: #16a34a; background: #f0fdf4; transform: scale(1.05); }
.de-game-speak-btn:active { transform: scale(0.95); }
.de-game-blank { display: inline-block; min-width: 70px; border-bottom: 3px dotted #ec4899; }

.de-game-answer-row { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.de-game-answer-input {
    width: 160px; font-size: 20px; text-align: center; padding: 10px; border: 2px solid #d1d5db; border-radius: 10px;
    font-weight: 700;
}
.de-game-answer-input:focus { outline: none; border-color: #ec4899; }
.de-game-check-btn {
    background: #ec4899; color: #fff; border: none; border-radius: 10px; padding: 12px 24px; font-size: 16px;
    font-weight: 700; cursor: pointer;
}
.de-game-check-btn:hover { background: #db2777; }

.de-game-feedback { text-align: center; min-height: 90px; padding-top: 10px; }
.de-game-feedback-emoji { font-size: 60px; display: inline-block; animation: dg-pop 0.4s ease; }
@keyframes dg-pop { 0% { transform: scale(0.3); opacity: 0; } 60% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }
.de-game-feedback-text { font-size: 16px; font-weight: 700; margin-top: 8px; }
.de-game-feedback-text.is-correct { color: #16a34a; }
.de-game-feedback-text.is-wrong { color: #dc2626; }

.de-game-back-btn { display: block; margin: 18px auto 0; background: none; border: none; color: #6b7280; font-size: 13px; cursor: pointer; text-decoration: underline; }

@media (max-width: 480px) {
    .de-game-problem { font-size: 22px; }
    .de-game-speak-btn { width: 38px; height: 38px; font-size: 16px; }
    .de-game-answer-input { width: 130px; font-size: 18px; }
}
@media (max-width: 700px) {
    .de-game-layout { flex-direction: column; align-items: stretch; }
    .de-game-sidebar { width: 100%; flex-basis: auto; max-height: 220px; order: 2; }
}

/* ---- Vollbild-Modus beim Üben ---- */
.game-focus-overlay {
    position: fixed; inset: 0; background: rgba(255,255,255,0.97); z-index: 200;
    display: flex; align-items: center; justify-content: center; overflow-y: auto;
    padding: calc(70px + env(safe-area-inset-top)) 20px calc(40px + env(safe-area-inset-bottom));
    -webkit-overflow-scrolling: touch;
}
.game-focus-overlay .de-game-layout { margin: 0 auto; }
.game-focus-close {
    position: fixed; top: calc(16px + env(safe-area-inset-top)); right: calc(16px + env(safe-area-inset-right));
    z-index: 201; background: #ef4444; color: #fff; border: none;
    border-radius: 100px; padding: 12px 22px; font-size: 15px; font-weight: 700; cursor: pointer;
    min-height: 44px; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.game-focus-close:hover { background: #dc2626; }
body.game-focus-active { overflow: hidden; }
