html, body { width: 100%; height: 100%; overflow: hidden; }
body { margin: 0; background: #0f151b; color: #f5f7f8; }
.help-player { width: 100%; height: 100dvh; min-height: 0; display: grid; grid-template-rows: auto minmax(0,1fr); overflow: hidden; }
.help-player-bar { position: sticky; top: 0; z-index: 30; min-height: 74px; display: flex; align-items: center; gap: 18px; padding: 12px 22px; background: #171e25; border-bottom: 1px solid #35404a; box-shadow: 0 8px 24px #0005; }
.help-player-brand img { display: block; width: 160px; max-height: 42px; }
.help-player-copy { min-width: 180px; flex: 1; }
.help-player-copy small { color: #9cff00; font-weight: 800; }
.help-player-copy strong { display: block; font-size: 17px; }
.help-device-toggle { display: flex; padding: 4px; border: 1px solid #44505c; border-radius: 7px; background: #222b34; }
.help-device-toggle button { min-height: 38px; border: 0; background: transparent; color: #c9d0d7; }
.help-device-toggle button.active { background: #9cff00; color: #111; }
.help-player-close { color: #fff; text-decoration: none; padding: 10px 12px; border: 1px solid #44505c; border-radius: 6px; }
.help-stage-wrap { min-width: 0; min-height: 0; padding: 16px 24px; display: grid; place-items: stretch center; overflow: hidden; }
.help-stage-layout { position: relative; width: 100%; height: 100%; min-width: 0; min-height: 0; display: grid; place-items: center; }
.help-device { position: relative; width: min(1180px,100%); height: 100%; min-height: 0; background: #0d1218; border: 1px solid #3b4651; border-radius: 8px; overflow: hidden; box-shadow: 0 24px 70px #0008; transition: width .25s ease,border-radius .25s ease; }
.help-device:not(.phone) { width: 1180px; min-width: 1180px; }
.help-device.phone { width: 390px; max-width: 100%; height: 100%; min-height: 0; border-radius: 24px; border-width: 8px; }
.help-stage-layout.phone-layout { grid-template-columns: minmax(280px,390px) minmax(320px,430px); gap: 28px; justify-content: center; align-items: center; }
.help-stage-layout.phone-layout .help-device { justify-self: center; }
#helpAppFrame { width: 100%; height: 100%; border: 0; background: #111820; pointer-events: none; transition: opacity .18s ease,transform .18s ease; }
.help-device.is-changing #helpAppFrame { opacity: .72; transform: scale(.996); }
.help-interaction-lock { cursor: default; inset: 0; position: absolute; touch-action: none; z-index: 7; }
.help-focus { position: absolute; z-index: 8; pointer-events: none; border: 3px solid #9cff00; border-radius: 7px; box-shadow: 0 0 0 9999px #05080cab,0 0 0 6px #9cff0033,0 0 26px #9cff0088; transition: left .25s ease,top .25s ease,width .25s ease,height .25s ease; opacity: 0; }
.help-focus.visible { opacity: 1; }
.help-cursor { position: absolute; z-index: 10; pointer-events: none; width: 18px; height: 18px; border: 2px solid #fff; border-radius: 50%; background: #377dff; box-shadow: 0 0 0 6px #377dff55; opacity: 0; transition: left .35s ease,top .35s ease; }
.help-cursor.visible { opacity: 1; }
.help-coach { position: absolute; z-index: 12; left: 24px; bottom: 24px; width: min(430px,calc(100% - 48px)); padding: 18px; border: 1px solid #52606e; border-radius: 8px; background: #18212bf2; box-shadow: 0 18px 45px #0009; transition: top .2s ease,bottom .2s ease; }
.help-coach.help-coach-top { top: 24px; bottom: auto; }
.help-stage-layout.phone-layout .help-coach { position: static; width: 100%; box-sizing: border-box; }
.help-coach small { color: #9cff00; font-weight: 800; }
.help-coach h1 { margin: 4px 0 6px; font-size: 20px; letter-spacing: 0; }
.help-coach p { margin: 0 0 14px; color: #d3d9df; }
.help-tip { display: flex; gap: 7px; align-items: flex-start; margin: -4px 0 13px; padding: 9px 10px; border-left: 3px solid #9cff00; background: #0f171fcf; color: #dce5ed; font-size: 13px; line-height: 1.35; }
.help-tip strong { color: #9cff00; white-space: nowrap; }
.help-progress { height: 4px; background: #303b46; border-radius: 99px; overflow: hidden; margin-bottom: 13px; }
.help-progress span { display: block; height: 100%; background: #9cff00; transition: width .25s ease; }
.help-controls { display: flex; gap: 8px; }
.help-controls button { flex: 1; min-width: 0; }
.help-status { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: #10171f; text-align: center; padding: 30px; }
.help-status[hidden] { display: none; }
@media (max-width:720px) {
  .help-player-bar { display: grid; grid-template-columns: minmax(0,1fr) auto auto; grid-template-areas: "brand toggle close" "copy copy copy"; align-items: center; gap: 6px 8px; min-height: 0; padding: 8px 10px; }
  .help-player-brand { grid-area: brand; min-width: 0; }
  .help-player-brand img { width: 96px; max-width: 100%; max-height: 28px; }
  .help-player-copy { grid-area: copy; min-width: 0; }
  .help-player-copy small { font-size: 11px; }
  .help-player-copy strong { font-size: 14px; }
  .help-device-toggle { grid-area: toggle; padding: 2px; }
  .help-device-toggle button { min-height: 32px; padding: 4px 8px; font-size: 12px; }
  .help-player-close { grid-area: close; margin: 0; padding: 8px 9px; font-size: 12px; }
  .help-stage-wrap { padding: 6px 8px 8px; }
  .help-stage-layout.phone-layout { display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(0,1fr) min(240px,42dvh); gap: 8px; }
  .help-device,.help-device.phone { width: 100%; height: 100%; min-height: 0; border-radius: 22px; border-width: 7px; }
  .help-stage-layout.phone-layout .help-coach { position: static; display: grid; grid-template-rows: auto auto minmax(0,1fr) auto auto auto; width: 100%; height: 100%; min-height: 0; max-height: none; overflow: hidden; padding: 10px; border-radius: 7px; }
  .help-stage-layout.phone-layout .help-coach.help-coach-top { top: auto; bottom: auto; }
  .help-stage-layout.phone-layout .help-coach h1 { margin: 2px 0 4px; font-size: 16px; }
  .help-stage-layout.phone-layout .help-coach p { margin: 0 0 8px; font-size: 12px; line-height: 1.28; }
  .help-stage-layout.phone-layout #helpCopy { display: block; min-height: 0; overflow-y: auto; }
  .help-stage-layout.phone-layout .help-tip { gap: 5px; margin: 0 0 8px; padding: 6px 7px; font-size: 10.5px; line-height: 1.25; }
  .help-stage-layout.phone-layout #helpTipCopy { display: block; overflow: visible; }
  .help-stage-layout.phone-layout .help-progress { margin-bottom: 8px; }
  .help-stage-layout.phone-layout .help-controls { gap: 6px; }
  .help-stage-layout.phone-layout .help-controls button { min-height: 34px; padding: 5px 6px; font-size: 12px; }
}
