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

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

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

/* ---- Bestenlisten-Seitenleiste ---- */
.fruit-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;
}
.fruit-game-sidebar .fruit-game-choice-label { margin-top: 0; text-align: center; }
.fruit-game-lb-list { list-style: none; margin: 8px 0 0; padding: 0; }
.fruit-game-lb-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13.5px; border-bottom: 1px solid #f5e8c4; }
.fruit-game-lb-list li:last-child { border-bottom: none; }
.fruit-game-lb-rank { width: 24px; text-align: center; font-weight: 700; flex-shrink: 0; }
.fruit-game-lb-name { flex: 1; font-weight: 600; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fruit-game-lb-points { font-weight: 700; color: #d97706; white-space: nowrap; }
.fruit-game-lb-empty { font-size: 13px; color: #92702c; text-align: center; margin: 10px 0 6px; }

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

.fruit-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;
}
.fruit-game-start-btn:hover { background: #15803d; }

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

.fruit-game-problem-box { text-align: center; padding: 10px 0 20px; }
.fruit-game-emoji { font-size: 90px; line-height: 1; margin-bottom: 10px; }
.fruit-game-question { font-size: 15px; color: #6b7280; margin-bottom: 18px; }
.fruit-game-answer-row { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.fruit-game-choice-btn {
    border: 2px solid #d1d5db; background: #f9fafb; border-radius: 12px; padding: 12px 20px; cursor: pointer;
    font-size: 16px; font-weight: 700; min-width: 100px; transition: all 0.15s;
    touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.fruit-game-choice-btn:hover { border-color: #16a34a; background: #eefdf3; }

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

.fruit-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) {
    .fruit-game-emoji { font-size: 64px; }
}
@media (max-width: 700px) {
    .fruit-game-layout { flex-direction: column; align-items: stretch; }
    .fruit-game-sidebar { width: 100%; flex-basis: auto; max-height: 220px; order: 2; }
}

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