  /**
   * [CSS_Rotation.html] 로테이션 트레이닝 탭 스타일
   * 서브 화면: home / select / game / result / teamSetup / teamPlay / teamResult
   */

  /* ── 서브 화면 공통 ── */
  .rot-sub {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  /* ═══════════ 홈 화면 ═══════════ */
  .rot-home-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 20px;
  }
  .rot-home-logo { text-align: center; }
  .rot-home-icon { font-size: 42px; }
  .rot-home-title { font-size: 20px; font-weight: 900; color: #1a1a1a; margin-top: 4px; }
  .rot-home-sub { font-size: 11px; color: #999; margin-top: 4px; }
  .rot-home-btns { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 360px; }
  .rot-home-sensor { font-size: 10px; color: #ccc; margin-top: 4px; }

  /* 모드 선택 버튼 */
  .rot-mode-btn {
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 13px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    text-align: left;
    font-family: 'Noto Sans KR', sans-serif;
  }
  .rot-mode-btn:hover { border-color: #999; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
  .rot-mode-emoji { font-size: 24px; }
  .rot-mode-info { flex: 1; }
  .rot-mode-name { font-size: 14px; font-weight: 900; color: #1a1a1a; }
  .rot-mode-desc { font-size: 10px; color: #999; margin-top: 1px; }
  .rot-mode-arrow { font-size: 14px; font-weight: 900; }

  /* ═══════════ 모드 선택 ═══════════ */
  .rot-select-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-shrink: 0;
  }
  .rot-back-btn {
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 13px;
    color: #888;
    font-family: 'Noto Sans KR', sans-serif;
  }
  .rot-back-btn:hover { background: #e8e8e8; }
  .rot-select-title { font-size: 15px; font-weight: 900; }
  .rot-select-sub { font-size: 10px; color: #999; }

  /* 목표 점수 바 */
  .rot-target-bar {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 10px;
    padding: 9px 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    flex-shrink: 0;
  }
  .rot-target-label { font-size: 11px; font-weight: 800; color: #e65100; }
  .rot-target-hint { font-size: 10px; color: #999; font-weight: 600; margin-left: 6px; }
  .rot-target-btns { display: flex; gap: 3px; }
  .rot-target-btn {
    background: #fff;
    color: #999;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
  }
  .rot-target-btn.active { background: #FF9800; color: #fff; border-color: #FF9800; }

  /* 스테이션 진행도 */
  .rot-station-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
    flex-shrink: 0;
  }

  /* 게임 모드 카드 그리드 */
  .rot-game-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    flex: 1;
  }
  .rot-game-card {
    background: #fff;
    border: 2px solid #eee;
    border-radius: 13px;
    padding: 12px;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
    font-family: 'Noto Sans KR', sans-serif;
  }
  .rot-game-card:hover { border-color: #999; transform: translateY(-2px); }
  .rot-game-glow { position: absolute; top: -12px; right: -12px; width: 50px; height: 50px; pointer-events: none; }
  .rot-game-emoji { font-size: 26px; }
  .rot-game-name { font-size: 13px; font-weight: 900; color: #1a1a1a; }
  .rot-game-desc { font-size: 10px; color: #999; line-height: 1.4; }
  .rot-game-badge { font-size: 9px; font-weight: 800; padding: 2px 7px; border-radius: 20px; align-self: flex-start; margin-top: auto; }

  /* ═══════════ 게임 플레이 ═══════════ */
  .rot-game-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    background: #1a1a1a;
    flex-shrink: 0;
  }
  .rot-game-topbar .rot-back-btn { background: none; color: #888; }
  .rot-game-topbar-title { display: flex; align-items: center; gap: 5px; color: #fff; font-size: 12px; font-weight: 900; }

  .rot-game-progress { padding: 5px 12px 0; flex-shrink: 0; background: #1a1a1a; }
  .rot-progress-info { display: flex; justify-content: space-between; font-size: 9px; color: #666; margin-bottom: 2px; }
  .rot-progress-track { height: 4px; background: #333; border-radius: 2px; overflow: hidden; }
  .rot-progress-fill { height: 100%; border-radius: 2px; transition: width 0.2s; width: 0; }

  .rot-game-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    overflow: auto;
  }
  .rot-phase { display: flex; flex-direction: column; align-items: center; gap: 6px; }

  /* 타이머 */
  .rot-timer-display {
    font-family: 'Share Tech Mono', monospace;
    font-size: 32px;
    color: #1a1a1a;
    letter-spacing: 2px;
  }
  .rot-timer-danger { color: #FF3B30; }

  /* 점수 */
  .rot-score-wrap { text-align: center; }
  .rot-score-label { font-size: 8px; color: #aaa; font-weight: 800; letter-spacing: 2px; }
  .rot-score {
    font-family: 'Share Tech Mono', monospace;
    font-size: 48px;
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1;
  }

  /* 콤보 */
  .rot-combo { font-size: 18px; font-weight: 900; color: #FF9800; }

  /* One Shot 점 */
  .rot-oneshot-dots { display: flex; gap: 7px; }
  .rot-oneshot-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #ddd;
    border: 2px solid #ccc;
    transition: all 0.3s;
  }
  .rot-oneshot-dot.used { background: #2196F3; border-color: #2196F3; }

  /* 강도 바 */
  .rot-force-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    border-radius: 7px;
    padding: 4px 10px;
  }
  .rot-force-label { font-size: 10px; font-weight: 900; min-width: 48px; }
  .rot-force-track { width: 70px; height: 4px; background: #e0e0e0; border-radius: 2px; overflow: hidden; }
  .rot-force-fill { height: 100%; border-radius: 2px; transition: width 0.1s; }
  .rot-force-pct { font-family: 'Share Tech Mono', monospace; font-size: 12px; font-weight: 900; }

  /* HIT 버튼 */
  .rot-hit-btn {
    width: 65%;
    max-width: 260px;
    padding: 16px 0;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    transition: transform 0.04s;
    font-family: 'Noto Sans KR', sans-serif;
  }
  .rot-hit-btn:active { transform: translateY(3px); }

  /* 시작 버튼 */
  .rot-start-btn {
    margin-top: 14px;
    padding: 10px 36px;
    border: none;
    border-radius: 11px;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
  }

  /* 강도 등급 행 */
  .rot-grades-row {
    display: flex;
    gap: 3px;
    justify-content: center;
    margin-top: 8px;
  }
  .rot-grade-chip {
    border-radius: 6px;
    padding: 3px 7px;
    text-align: center;
  }

  /* DONE */
  .rot-done-score {
    font-family: 'Share Tech Mono', monospace;
    font-size: 42px;
    font-weight: 900;
    margin-top: 2px;
  }
  .rot-done-btn {
    margin-top: 12px;
    padding: 9px 28px;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
  }

  /* 하단 스탯 바 */
  .rot-stat-bar {
    padding: 5px 12px;
    background: #1a1a1a;
    display: flex;
    justify-content: space-around;
    flex-shrink: 0;
  }
  .rot-stat { text-align: center; }
  .rot-stat-label { font-size: 7px; color: #666; font-weight: 800; letter-spacing: 1.5px; }
  .rot-stat-val { font-family: 'Share Tech Mono', monospace; font-size: 16px; font-weight: 900; color: #fff; }

  /* ═══════════ 결과 화면 ═══════════ */
  .rot-result-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
  }
  .rot-result-stations { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; width: 100%; max-width: 360px; }
  .rot-result-btns { display: flex; gap: 5px; margin-top: 4px; }
  .rot-result-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
  }
  .rot-btn-retry { background: #FF3B30; color: #fff; }
  .rot-btn-next { background: #00c853; color: #fff; }
  .rot-btn-menu { background: #f0f0f0; color: #888; }

  /* ═══════════ 단체 훈련 설정 ═══════════ */
  .rot-team-setup-inner { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 12px; overflow: auto; }

  .rot-team-zone-card {
    background: #fff; border-radius: 12px; padding: 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }
  .rot-team-zone-label { font-size: 12px; font-weight: 900; color: #555; margin-bottom: 10px; }
  .rot-team-zone-grid { display: flex; gap: 8px; }
  .rot-team-zone { flex: 1; border: 2px solid; border-radius: 10px; padding: 10px; text-align: center; }

  .rot-team-option-card {
    background: #fff; border-radius: 12px; padding: 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }
  .rot-team-option-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
  .rot-team-option-label { font-size: 12px; font-weight: 900; color: #555; }

  /* 토글 스위치 */
  .rot-toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
  .rot-toggle input { opacity: 0; width: 0; height: 0; }
  .rot-toggle-slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background: #ddd; border-radius: 12px; transition: 0.2s;
  }
  .rot-toggle-slider:before {
    content: ""; position: absolute; height: 18px; width: 18px;
    left: 3px; bottom: 3px; background: #fff; border-radius: 50%;
    transition: 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  }
  .rot-toggle input:checked + .rot-toggle-slider { background: #9C27B0; }
  .rot-toggle input:checked + .rot-toggle-slider:before { transform: translateX(20px); }

  .rot-team-val-btns { display: flex; gap: 4px; }
  .rot-team-val-btn {
    flex: 1; padding: 8px 0; border-radius: 8px; font-size: 12px; font-weight: 800;
    cursor: pointer; border: 1.5px solid #e0e0e0; background: #f5f5f5; color: #999;
    font-family: 'Share Tech Mono', monospace;
  }
  .rot-team-val-btn.active { background: #9C27B0; color: #fff; border-color: #9C27B0; }

  .rot-team-start-btn {
    width: 100%; padding: 14px 0;
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    border: none; border-radius: 12px; color: #fff;
    font-size: 16px; font-weight: 900; cursor: pointer;
    box-shadow: 0 4px 0 #4A148C; flex-shrink: 0; margin-top: 4px;
    font-family: 'Noto Sans KR', sans-serif;
  }

  /* ═══════════ 단체 훈련 플레이 ═══════════ */
  .rot-team-tabs {
    display: flex; gap: 4px; padding: 8px 10px; background: #f5f5f5; flex-shrink: 0;
  }
  .rot-team-tab {
    flex: 1; padding: 8px 0; border-radius: 8px; font-size: 12px; font-weight: 900;
    cursor: pointer; border: 2px solid #e0e0e0; background: #fff;
    font-family: 'Noto Sans KR', sans-serif;
  }
  .rot-team-tab.active { background: rgba(0,0,0,0.03); }

  .rot-team-timer { font-family: 'Share Tech Mono', monospace; font-size: 16px; color: #ffeb3b; }
  .rot-team-active-label { font-size: 10px; font-weight: 800; letter-spacing: 2px; margin-bottom: 4px; }

  .rot-team-scores-bar {
    padding: 8px 10px; background: #1a1a1a; display: flex; gap: 6px; flex-shrink: 0;
  }
  .rot-team-score-cell {
    flex: 1; border-radius: 8px; padding: 6px 0; text-align: center; border: 1px solid #333; background: #222;
  }
  .rot-team-score-cell.active { background: rgba(255,255,255,0.05); }

  .rot-team-end-bar { padding: 6px 10px; background: #1a1a1a; flex-shrink: 0; text-align: center; }
  .rot-team-end-btn {
    padding: 6px 20px; background: #333; border: 1px solid #555;
    border-radius: 8px; color: #aaa; font-size: 11px; font-weight: 800;
    cursor: pointer; font-family: 'Noto Sans KR', sans-serif;
  }

  /* ═══════════ 단체 결과 ═══════════ */
  .rot-team-result-cards { display: flex; gap: 10px; width: 100%; max-width: 400px; }
  .rot-team-result-card {
    flex: 1; border-radius: 12px; padding: 12px; text-align: center;
  }
  .rot-team-loser-msg {
    background: #fff3e0; border: 1px solid #ffe0b2; border-radius: 10px;
    padding: 10px 16px; text-align: center; max-width: 360px;
  }

  /* ═══════════ 반응형 ═══════════ */
  @media (max-width: 768px) {
    .rot-game-grid { gap: 6px; }
    .rot-game-card { padding: 10px; }
    .rot-game-emoji { font-size: 22px; }
    .rot-game-name { font-size: 12px; }
    .rot-score { font-size: 40px; }
    .rot-team-zone-grid { flex-direction: column; gap: 6px; }
    .rot-team-result-cards { flex-direction: column; gap: 8px; }
  }
