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

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

.rd-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;
}
.rd-game-name-input:focus { outline: none; border-color: #7c3aed; }
.rd-game-greeting { text-align: center; font-weight: 700; color: #7c3aed; margin-bottom: 10px; font-size: 15px; }

.rd-game-sidebar {
    background: #faf5ff; border: 2px solid #e9d5ff; border-radius: 16px; padding: 18px 18px 10px;
    width: 240px; flex: 0 0 240px; box-sizing: border-box; max-height: 460px; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.rd-game-sidebar .rd-game-choice-label { margin-top: 0; text-align: center; }
.rd-game-lb-list { list-style: none; margin: 8px 0 0; padding: 0; }
.rd-game-lb-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13.5px; border-bottom: 1px solid #eddcfb; }
.rd-game-lb-list li:last-child { border-bottom: none; }
.rd-game-lb-rank { width: 24px; text-align: center; font-weight: 700; flex-shrink: 0; }
.rd-game-lb-name { flex: 1; font-weight: 600; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-game-lb-points { font-weight: 700; color: #6d28d9; white-space: nowrap; }
.rd-game-lb-empty { font-size: 13px; color: #5b21b6; text-align: center; margin: 10px 0 6px; }

.rd-game-choice-label { font-weight: 700; font-size: 14px; margin: 14px 0 8px; color: #374151; text-align: center; }
.rd-game-grade-row { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.rd-game-grade-btn {
    border: 2px solid #d1d5db; background: #f9fafb; border-radius: 14px; padding: 12px 0; cursor: pointer;
    font-size: 26px; font-weight: 800; width: 64px; transition: all 0.15s;
}
.rd-game-grade-btn:hover { border-color: #7c3aed; background: #faf5ff; }
.rd-game-grade-btn.is-selected { border-color: #7c3aed; background: #7c3aed; color: #fff; }

.rd-game-start-btn {
    display: block; margin: 22px auto 0; background: #7c3aed; color: #fff; border: none; border-radius: 100px;
    padding: 14px 36px; font-size: 17px; font-weight: 700; cursor: pointer; transition: background 0.15s;
}
.rd-game-start-btn:hover { background: #6d28d9; }
.rd-game-start-btn:disabled { opacity: 0.5; cursor: default; }

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

/* Der Lesetext - großzügige Schrift und Zeilenabstand, damit Leseanfänger gut folgen können */
.rd-game-textbox {
    background: #faf5ff; border: 2px solid #e9d5ff; border-radius: 14px;
    padding: 18px 20px; margin-bottom: 6px; position: relative;
}
.rd-game-text {
    font-size: 19px; line-height: 1.75; color: #1e293b; margin: 0; font-weight: 600;
    hyphens: none; word-spacing: 0.06em;
}
.rd-game-speak-row { text-align: right; margin: 6px 0 14px; }
.rd-game-speak-btn {
    border: 2px solid #e9d5ff; background: #faf5ff; color: #6d28d9; border-radius: 100px;
    padding: 7px 16px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.rd-game-speak-btn:hover { background: #f3e8ff; }

.rd-game-question { font-size: 17px; font-weight: 800; color: #1e293b; margin: 0 0 14px; line-height: 1.4; }
.rd-game-answers { display: flex; flex-direction: column; gap: 10px; }
.rd-game-answer-btn {
    display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
    border: 2px solid #d1d5db; background: #f9fafb; border-radius: 14px; padding: 14px 16px; cursor: pointer;
    font-size: 16px; font-weight: 600; line-height: 1.4; transition: all 0.15s; color: #1e293b;
}
.rd-game-answer-btn:hover { border-color: #7c3aed; background: #faf5ff; }
.rd-game-answer-btn .rd-game-box {
    flex: 0 0 26px; width: 26px; height: 26px; border: 2px solid #9ca3af; border-radius: 7px;
    display: inline-block; background: #fff;
}
.rd-game-answer-btn.is-right { border-color: #16a34a; background: #f0fdf4; }
.rd-game-answer-btn.is-right .rd-game-box { border-color: #16a34a; background: #16a34a; }
.rd-game-answer-btn.is-wrong { border-color: #dc2626; background: #fef2f2; }
.rd-game-answer-btn.is-wrong .rd-game-box { border-color: #dc2626; background: #dc2626; }
.rd-game-answer-btn:disabled { cursor: default; }

.rd-game-feedback { text-align: center; min-height: 84px; padding-top: 12px; }
.rd-game-feedback-emoji { font-size: 48px; display: inline-block; animation: rd-pop 0.4s ease; }
@keyframes rd-pop { 0% { transform: scale(0.3); opacity: 0; } 60% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }
.rd-game-feedback-text { font-size: 15px; font-weight: 700; margin-top: 6px; }
.rd-game-feedback-text.is-correct { color: #16a34a; }
.rd-game-feedback-text.is-wrong { color: #dc2626; }
.rd-game-hint { font-size: 14px; color: #475569; margin-top: 6px; line-height: 1.5; }

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

@media (max-width: 480px) {
    .rd-game { padding: 18px; }
    .rd-game-text { font-size: 17px; line-height: 1.7; }
    .rd-game-question { font-size: 16px; }
    .rd-game-answer-btn { font-size: 15px; padding: 12px 13px; }
}
@media (max-width: 780px) {
    .rd-game-layout { flex-direction: column; align-items: stretch; }
    .rd-game-sidebar { width: 100%; flex-basis: auto; max-height: 220px; order: 2; }
}

.game-focus-overlay .rd-game-layout { margin: 0 auto; }
