.lesson-panel h1 { font-size: clamp(32px, 3.3vw, 52px); line-height: 1; overflow-wrap: anywhere; }
.course-start { position: fixed; inset: 0; z-index: 40; overflow-y: auto; background: #091119; padding: clamp(22px, 4vw, 60px); }
.course-start-inner { max-width: 1180px; margin: auto; }
.course-start h1 { margin: 12px 0; font-size: clamp(38px, 5vw, 66px); }
.course-start p { color: #b7c5ce; line-height: 1.6; }
.course-start-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.start-exercise-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 10px; }
.start-exercise-list h2 { grid-column: 1 / -1; font-size: 20px; color: var(--accent); margin: 20px 0 0; }
.start-exercise-list button { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 16px; border: 1px solid #304451; border-radius: 12px; background: #14232e; color: #fff; text-align: left; }
.start-exercise-list button:hover { border-color: var(--accent); background: #233522; }
.lesson-progress { margin-bottom: 25px; }
.step-counter { margin-top: 22px; font-size: 12px; color: var(--accent); }
.step-feedback { min-height: 38px; font-size: 14px; line-height: 1.5; color: #bcead2; }
.wind-panel { top: 58px; bottom: auto; }
@media (min-width: 1051px) {
  .simulator-shell { height: 100svh; min-height: 0; grid-template-rows: 74px minmax(0, 1fr) 44px; }
  .viewport-wrap, .lesson-panel, .pairing-card { min-height: 0; }
  .lesson-panel, .pairing-card { overflow-y: auto; }
}
.training-checklist { list-style: none; padding: 0; margin: 20px 0; max-height: calc(100svh - 330px); overflow: auto; }
.training-checklist li { display: flex; gap: 9px; padding: 9px 6px; border-bottom: 1px solid var(--line); color: var(--muted); }
.training-checklist li span { color: var(--success); }
.training-checklist li.is-current { color: white; background: #f7c60013; border-left: 2px solid var(--accent); }
.training-checklist small { font-size: 12px; line-height: 1.4; }
.celebration { position: absolute; inset: 25% 5% auto; display: grid; text-align: center; justify-items: center; gap: 12px; pointer-events: none; opacity: 0; z-index: 15; transform: perspective(800px) translateZ(-400px) scale(.3); }
.celebration strong { font: 800 clamp(48px, 6vw, 90px)/1 'Barlow Condensed', sans-serif; color: #fff; text-shadow: 0 3px 35px #000, 0 0 35px #4ee58a; }
.celebration span { color: #dcffe9; padding: 10px 18px; background: #071c14dd; border: 1px solid #4ee58a77; border-radius: 30px; font-size: 14px; }
.celebration.is-celebrating { animation: celebration-arrive 2.7s ease both; }
@keyframes celebration-arrive { 0% { opacity: 0; transform: perspective(800px) translateZ(-500px) scale(.35); filter: blur(8px); } 22% { opacity: 1; transform: perspective(800px) translateZ(20px) scale(1.04); filter: blur(0); } 38%,75% { opacity: 1; transform: perspective(800px) translateZ(0) scale(1); } 100% { opacity: 0; transform: perspective(800px) translateZ(70px) scale(1.05); } }
.controller-header { flex: 0 0 44px; min-height: 44px; padding: 6px 12px; }
.controller-header .brand-small small { display: none; }
.controller-header .status-pill { margin-left: auto; padding: 7px; font-size: 10px; }
#menuButton { padding: 7px 10px; font-size: 12px; white-space: nowrap; }
.controller-deck { --top-gap: 8px; --bottom-gap: 90px; padding: var(--top-gap) 8px var(--bottom-gap); flex-direction: column; }
.controller-deck:has(.academy-phone-actions button:not([hidden])) { --top-gap: 42px; }
.controller-header .brand-mark { width: 30px; height: 30px; }
.controller-stage { width: min(calc(100vw - 16px), calc((100svh - 44px - var(--top-gap) - var(--bottom-gap) - 8px) * 959 / 461), 959px); flex: none; }
.academy-phone-actions { position: absolute; top: 3px; left: 8px; right: 8px; display: flex; gap: 8px; justify-content: center; min-height: 30px; }
.academy-phone-actions button, #guideConfirm { min-height: 32px; padding: 6px 12px; border: 1px solid #f7c60080; border-radius: 8px; background: #15232c; color: #fff; font-size: 12px; touch-action: none; }
.academy-phone-actions button.is-holding { background: #f7c600; color: #111; box-shadow: 0 0 12px #f7c600; }
.academy-phone-actions button:disabled { opacity: .5; }
.phone-instruction { position: absolute; bottom: 0; left: 12px; right: 12px; min-height: 82px; max-height: 90px; display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; align-content: center; padding: 8px 0; }
.phone-instruction > div { grid-column: 1; display: flex; gap: 8px; align-items: baseline; }
.phone-instruction strong { font-size: 12px; color: var(--accent); }
.phone-instruction small { font-size: 10px; color: var(--muted); }
.phone-instruction p { grid-column: 1; font-size: 12px; line-height: 1.45; margin: 0; max-height: 58px; overflow: auto; touch-action: pan-y; }
#guideConfirm { grid-column: 2; grid-row: 1 / span 2; align-self: center; min-height: 42px; background: var(--accent); color: #111; font-weight: 700; }
#controllerMessage { grid-column: 1 / -1; color: #ffcb9d; }
.controller-deck:has(.lesson-complete:not([hidden])) .phone-instruction { visibility: hidden; }
.lesson-complete { bottom: 12px; width: calc(100% - 24px); }
.lesson-complete button { min-width: 160px; touch-action: none; }
.controller-highlight { position: absolute; z-index: 6; width: 8%; aspect-ratio: 1; border: 3px solid #ff4545; border-radius: 50%; box-shadow: 0 0 16px #ff4545; transform: translate(-50%,-50%); pointer-events: none; animation: stick-cue-pulse 1s infinite; }
.highlight-speed { left: 75.8%; top: 79.5%; }
.highlight-calibration { left: 31.7%; top: 57%; }
.exercise-menu { width: min(720px, calc(100vw - 16px)); max-height: calc(100svh - 16px); margin: auto; padding: 20px; border: 1px solid #465b60; border-radius: 18px; background: #0e1921; color: #fff; overflow-y: auto; touch-action: pan-y; }
.exercise-menu::backdrop { background: #000b; }
.menu-heading { display: flex; align-items: start; justify-content: space-between; gap: 15px; }
.menu-heading h2 { margin: 0; font-size: 23px; }.menu-heading p { color: var(--accent); font-size: 12px; }
.exercise-menu > p { color: #b0c4cd; font-size: 12px; line-height: 1.5; }
.exercise-menu button { border: 1px solid #40535c; border-radius: 8px; background: #1b2b36; color: white; min-height: 40px; padding: 8px 12px; }
.exercise-menu button:disabled { opacity: .45; }
.menu-actions { display: flex; gap: 10px; }.menu-actions button { flex: 1; }
#exerciseList h3 { color: var(--accent); margin: 22px 0 8px; font-size: 13px; }
#exerciseList button { width: 100%; display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: center; text-align: left; margin: 5px 0; }
#exerciseList button small { font-size: 10px; color: #a3bcc8; }
#exerciseList button.is-current { border-color: var(--accent); background: #f7c60015; }
.exercise-check { color: var(--success); font-size: 20px; }
@media (max-width: 600px) {
  .controller-header .brand { display: none; }
  .controller-deck { --bottom-gap: 158px; }
  .controller-stage { width: min(calc(100vw - 16px), calc((100svh - 250px) * 959 / 461)); }
  .phone-instruction { min-height: 145px; max-height: 154px; }.phone-instruction p { max-height: 95px; }
  .phone-instruction > div { flex-wrap: wrap; gap: 4px; }
  .lesson-complete strong { font-size: 15px; }.lesson-complete button { min-width: 130px; font-size: 12px; }
  #exerciseList button { grid-template-columns: 24px 1fr; } #exerciseList button small { grid-column: 2; }
  .training-checklist { max-height: 400px; }
}
@media (prefers-reduced-motion: reduce) {
  .celebration.is-celebrating { animation: celebration-fade 2.7s linear; }
  @keyframes celebration-fade { 0%,100% { opacity: 0; transform: none; } 15%,85% { opacity: 1; transform: none; } }
}
