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

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

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

.enu-game-sidebar {
    background: #ecfeff; border: 2px solid #a5f3fc; 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;
}
.enu-game-sidebar .enu-game-choice-label { margin-top: 0; text-align: center; }
.enu-game-lb-list { list-style: none; margin: 8px 0 0; padding: 0; }
.enu-game-lb-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13.5px; border-bottom: 1px solid #cdeff5; }
.enu-game-lb-list li:last-child { border-bottom: none; }
.enu-game-lb-rank { width: 24px; text-align: center; font-weight: 700; flex-shrink: 0; }
.enu-game-lb-name { flex: 1; font-weight: 600; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.enu-game-lb-points { font-weight: 700; color: #0e7490; white-space: nowrap; }
.enu-game-lb-empty { font-size: 13px; color: #155e75; text-align: center; margin: 10px 0 6px; }

.enu-game-choice-label { font-weight: 700; font-size: 14px; margin: 14px 0 8px; color: #374151; text-align: center; }
.enu-game-grade-row, .enu-game-mode-row { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.enu-game-grade-btn {
    border: 2px solid #d1d5db; background: #f9fafb; border-radius: 14px; padding: 10px 0; cursor: pointer;
    font-size: 15px; font-weight: 800; width: 92px; transition: all 0.15s; line-height: 1.3;
}
.enu-game-grade-btn small { display: block; font-size: 11.5px; font-weight: 600; color: #6b7280; }
.enu-game-mode-btn {
    border: 2px solid #d1d5db; background: #f9fafb; border-radius: 14px; padding: 11px 15px; cursor: pointer;
    font-size: 14.5px; font-weight: 800; transition: all 0.15s;
}
.enu-game-grade-btn:hover, .enu-game-mode-btn:hover { border-color: #0891b2; background: #ecfeff; }
.enu-game-grade-btn.is-selected, .enu-game-mode-btn.is-selected { border-color: #0891b2; background: #0891b2; color: #fff; }
.enu-game-grade-btn.is-selected small { color: #cffafe; }

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

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

.enu-game-problem { text-align: center; padding: 4px 0 14px; }
.enu-game-prompt { font-size: 15px; color: #6b7280; margin-bottom: 10px; font-weight: 600; }
.enu-game-big { font-size: 70px; font-weight: 800; color: #1e293b; line-height: 1.1; display: inline-block; padding: 4px 22px; background: #ecfeff; border-radius: 18px; }
.enu-game-word { font-size: 40px; font-weight: 800; color: #0e7490; line-height: 1.2; display: inline-block; padding: 6px 20px; background: #ecfeff; border-radius: 18px; }
.enu-game-calc { font-size: 30px; font-weight: 800; color: #0e7490; line-height: 1.4; }
.enu-game-emojis { font-size: 34px; line-height: 1.5; word-break: break-word; max-width: 420px; margin: 0 auto; }
.enu-game-listen-btn {
    border: none; background: #0891b2; color: #fff; border-radius: 100px; padding: 16px 30px; cursor: pointer;
    font-size: 18px; font-weight: 800;
}
.enu-game-listen-btn:hover { background: #0e7490; }
.enu-game-speak-mini {
    border: 2px solid #a5f3fc; background: #ecfeff; color: #0e7490; border-radius: 100px;
    padding: 6px 14px; font-size: 13.5px; font-weight: 700; cursor: pointer; margin-top: 10px;
}

.enu-game-answers { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.enu-game-answer-wrap { display: inline-flex; align-items: center; gap: 4px; }
.enu-game-speak-opt {
    border: 2px solid #a5f3fc; background: #ecfeff; color: #0e7490; border-radius: 100px;
    width: 40px; min-height: 40px; font-size: 16px; cursor: pointer; line-height: 1; flex: 0 0 40px;
}
.enu-game-speak-opt:hover { background: #cffafe; }
.enu-game-speak-opt:disabled { opacity: 0.4; cursor: default; }
.enu-game-answer-btn {
    border: 2px solid #d1d5db; background: #f9fafb; border-radius: 14px; padding: 14px 20px; cursor: pointer;
    font-size: 20px; font-weight: 800; min-width: 118px; transition: all 0.15s; color: #1e293b;
}
.enu-game-answer-btn:hover { border-color: #0891b2; background: #ecfeff; }
.enu-game-answer-btn.is-right { border-color: #16a34a; background: #f0fdf4; color: #15803d; }
.enu-game-answer-btn.is-wrong { border-color: #dc2626; background: #fef2f2; color: #b91c1c; }
.enu-game-answer-btn:disabled { cursor: default; }

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

.enu-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) {
    .enu-game { padding: 18px; }
    .enu-game-big { font-size: 54px; }
    .enu-game-word { font-size: 30px; }
    .enu-game-calc { font-size: 23px; }
    .enu-game-answer-btn { font-size: 17px; min-width: 100px; padding: 12px 14px; }
    .enu-game-mode-btn { font-size: 13.5px; padding: 10px 12px; }
}
@media (max-width: 780px) {
    .enu-game-layout { flex-direction: column; align-items: stretch; }
    .enu-game-sidebar { width: 100%; flex-basis: auto; max-height: 220px; order: 2; }
}

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