.bl-game-layout { display: flex; gap: 20px; align-items: flex-start; justify-content: center; max-width: 800px; margin: 0 auto 50px; flex-wrap: wrap; }
.bl-game-layout.no-sidebar { max-width: 560px; }
.bl-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; }
.bl-game * { box-sizing: border-box; }
.bl-game button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; min-height: 44px; }
.bl-game h3 { margin: 0 0 6px; font-size: 22px; text-align: center; color: #1e293b; }
.bl-game-sub { text-align: center; color: #6b7280; font-size: 14px; margin-bottom: 20px; }

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

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

.bl-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: 420px; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.bl-game-sidebar .bl-game-choice-label { margin-top: 0; text-align: center; }
.bl-game-lb-list { list-style: none; margin: 8px 0 0; padding: 0; }
.bl-game-lb-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13.5px; border-bottom: 1px solid #eddcfb; }
.bl-game-lb-list li:last-child { border-bottom: none; }
.bl-game-lb-rank { width: 24px; text-align: center; font-weight: 700; flex-shrink: 0; }
.bl-game-lb-name { flex: 1; font-weight: 600; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-game-lb-points { font-weight: 700; color: #7e22ce; white-space: nowrap; }
.bl-game-lb-empty { font-size: 13px; color: #6b21a8; text-align: center; margin: 10px 0 6px; }

.bl-game-choice-label { font-weight: 700; font-size: 14px; margin: 16px 0 8px; color: #374151; text-align: center; }

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

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

.bl-game-problem-box { text-align: center; padding: 6px 0 16px; }
.bl-game-task { font-size: 30px; font-weight: 800; color: #1e293b; margin: 4px 0 12px; }
.bl-game-question { font-size: 15px; color: #6b7280; margin: 14px 0 16px; }
.bl-game-answer-row { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.bl-game-choice-btn {
    border: 2px solid #d1d5db; background: #f9fafb; border-radius: 14px; padding: 14px 0; cursor: pointer;
    font-size: 30px; font-weight: 800; width: 96px; transition: all 0.15s;
    touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.bl-game-choice-btn:hover { border-color: #9333ea; background: #faf5ff; }

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

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

.bl-game-grade-row, .bl-game-mode-row { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.bl-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;
}
.bl-game-mode-btn {
    border: 2px solid #d1d5db; background: #f9fafb; border-radius: 14px; padding: 12px 18px; cursor: pointer;
    font-size: 16px; font-weight: 800; transition: all 0.15s;
}
.bl-game-grade-btn:hover, .bl-game-mode-btn:hover { border-color: #9333ea; background: #faf5ff; }
.bl-game-grade-btn.is-selected, .bl-game-mode-btn.is-selected { border-color: #9333ea; background: #9333ea; color: #fff; }

@media (max-width: 480px) {
        .bl-game-choice-btn { font-size: 24px; width: 82px; }
}
@media (max-width: 700px) {
    .bl-game-layout { flex-direction: column; align-items: stretch; }
    .bl-game-sidebar { width: 100%; flex-basis: auto; max-height: 220px; order: 2; }
}

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


/* ---- Was moechtest du ueben? ---- */
.bl-game-mode-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.bl-game-mode-btn {
    flex: 1 1 30%; padding: 10px 8px; font-size: 14px; font-weight: 700;
    border: 2px solid #e5e7eb; border-radius: 12px; background: #f9fafb; color: #334155;
    cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: all .15s;
}
.bl-game-mode-btn:hover { border-color: #7c3aed; background: #f5f0ff; }
.bl-game-mode-btn.is-selected { border-color: #7c3aed; background: #7c3aed; color: #fff; }

/* ---- Frage über der Aufgabe ---- */
.bl-game-question { font-size: 14px; color: #64748b; margin: 2px 0 0; font-weight: 600; }
/* Die Antworten sind hier Orts- und Ländernamen, keine zweistelligen Zahlen.
   Die geerbten Regeln geben den Knöpfen eine feste Breite von 96 bzw. 82
   Pixeln und 30px Schrift - damit passt "Niederösterreich" nicht hinein.
   Deshalb: untereinander, volle Breite, lesbare Schriftgröße. Diese Regeln
   stehen bewusst am Dateiende, damit sie auch die Regel im Media-Query
   weiter oben überschreiben. */
.bl-game-answer-row { display: grid; grid-template-columns: 1fr; gap: 8px; }
.bl-game-choice-btn {
    width: 100%;
    font-size: 18px;
    padding: 13px 14px;
    line-height: 1.25;
}
@media (max-width: 480px) {
    .bl-game-choice-btn { font-size: 16px; padding: 12px 10px; }
}
