/* 商用美化覆盖层：仅覆盖视觉效果，删除 index.html 中的引用即可整体回退 */
.lobby-card {
  border: 1px solid transparent;
  background: linear-gradient(rgba(16,23,38,.96), rgba(16,23,38,.96)) padding-box, linear-gradient(135deg, rgba(0,242,254,.6), rgba(255,42,133,.4)) border-box;
  box-shadow: 0 24px 60px rgba(0,0,0,.7), 0 0 40px rgba(0,242,254,.12);
}
.lobby-action-btn.primary-action { animation: lobbyBreath 2.8s ease-in-out infinite; }
@keyframes lobbyBreath {
  0%, 100% { box-shadow: 0 4px 18px rgba(0,242,254,.2); }
  50% { box-shadow: 0 4px 28px rgba(0,242,254,.42); }
}
.lobby-action-btn, .btn-primary, .btn-secondary, .btn-action { min-height: 44px; }
.level-chip { min-height: 52px; }
.level-chip.current { animation: chipPulse 1.8s ease-in-out infinite; }
@keyframes chipPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(0,242,254,.4); }
  50% { box-shadow: 0 0 22px rgba(255,42,133,.55); }
}
.modal-overlay.visible .stars-row { animation: starPop .6s cubic-bezier(.175,.885,.32,1.275) both; }
@keyframes starPop {
  0% { transform: scale(.3) rotate(-12deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.modal-card { border-radius: 26px; }
.btn-primary:active, .btn-secondary:active, .lobby-action-btn:active { transform: scale(.96); }
.level-select-card { width: min(94vw, 560px); max-height: 88vh; overflow: hidden; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.level-select-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.level-select-kicker { color: #67e8f9; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 5px; }
.level-select-heading .modal-title { text-align: left; margin: 0; }
.level-select-heading .modal-subtitle { text-align: left; margin: 5px 0 0; }
.level-progress-orb { width: 56px; height: 56px; flex: 0 0 56px; display: grid; place-items: center; border-radius: 50%; color: #07141d; font-weight: 900; font-size: 19px; background: linear-gradient(145deg,#67e8f9,#22d3ee); box-shadow: 0 0 24px rgba(34,211,238,.28); }
.level-chapter-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 1px 6px; scrollbar-width: thin; }
.level-chapter-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(148,163,184,.22); color: #cbd5e1; background: rgba(255,255,255,.05); padding: 8px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; cursor: pointer; min-height: 36px; transition: all .16s ease; }
.level-chapter-tab.active { color: #07141d; background: #67e8f9; border-color: #67e8f9; }
.level-chapter-tab.completed:not(.active) { border-color: rgba(134,239,172,.45); color: #86efac; }
.level-chapter-tab.locked { opacity: .45; cursor: not-allowed; }
.level-chapter-count { font-size: 11px; opacity: .88; font-weight: 600; }
.level-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; overflow-y: auto; min-height: 180px; padding: 2px 3px 8px; }
.level-card { min-width: 0; min-height: 96px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; padding: 10px; text-align: left; color: #e7eef8; border: 1px solid rgba(148,163,184,.2); border-radius: 14px; background: linear-gradient(145deg,rgba(30,41,59,.88),rgba(15,23,42,.88)); cursor: pointer; transition: transform .16s ease,border-color .16s ease,background .16s ease; }
.level-card.unlocked:hover { transform: translateY(-2px); border-color: rgba(103,232,249,.68); background: linear-gradient(145deg,rgba(8,145,178,.25),rgba(15,23,42,.94)); }
.level-card.current { border-color: #67e8f9; box-shadow: inset 0 0 0 1px rgba(103,232,249,.24),0 0 18px rgba(34,211,238,.12); }
.level-card.cleared .level-card-mark { color: #86efac; }
.level-card.locked { opacity: .5; cursor: not-allowed; }
.level-card-top { display: flex; justify-content: space-between; align-items: center; }
.level-card-number { color: #67e8f9; font: 800 17px/1 var(--font-mono,monospace); }
.level-card-mark { color: #facc15; font-size: 13px; font-weight: 900; }
.level-card-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 800; }
.level-card-meta { color: #cbd5e1; font-size: 11px; line-height: 1.3; }
@media(max-width:480px) { .level-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; } .level-card { min-height: 88px; } .level-select-card { padding: 18px 14px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .lobby-action-btn.primary-action, .level-chip.current, .modal-overlay.visible .stars-row { animation: none !important; }
}
