/* A reference, not a second game setup. One scroll region keeps the close action in reach. */
#helpOverlay { padding:max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left)); }
#helpOverlay .menuCard.help { width:min(760px,100%); max-height:calc(100dvh - 24px); margin:0; padding:20px; border:3px solid #103f4d; border-radius:20px; background:#fff7df; color:#103f4d; box-shadow:0 8px 0 rgba(4,27,31,.5); font:16px/1.5 Arial,sans-serif; }
#helpOverlay .menuCard h2 { margin:0 0 12px; color:#103f4d; font-size:clamp(26px,4vw,36px); line-height:1.15; }
#helpOverlay .menuCard h3 { color:#103f4d; font-size:22px; margin:14px 0 8px; }
#helpOverlay button { min-height:44px; border:2px solid #103f4d; border-radius:10px; padding:8px 12px; background:#fff7df; color:#103f4d; font:16px/1.15 var(--font-meme,Anton,Impact,sans-serif); box-shadow:none; text-shadow:none; }
#helpOverlay button:hover { background:#f3e8c9; transform:none; }
#helpOverlay button:focus-visible, #helpOverlay summary:focus-visible, #helpOverlay [role="tabpanel"]:focus-visible { outline:3px solid #103f4d; outline-offset:3px; }
#helpOverlay [hidden] { display:none !important; }
#helpOverlay .helpTabs { display:grid; grid-template-columns:1fr .75fr 1.5fr; gap:6px; margin:0 0 12px; flex-shrink:0; }
#helpOverlay .helpTabs button[aria-selected="true"], #helpOverlay .helpInputChoice button[aria-pressed="true"] { background:#103f4d; color:#fff7df; }
#helpOverlay #helpContent { padding:0 5px 0 0; overflow-x:hidden; flex:1 1 auto; }
#helpOverlay .helpInputChoice { display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
#helpOverlay .helpInputChoice span { font-size:14px; }
#helpOverlay .helpInputChoice button { font:700 14px/1.15 Arial,sans-serif; padding:6px 10px; }
#helpOverlay .helpFirstTurn { padding-left:30px; margin:8px 0 14px; }
#helpOverlay .helpFirstTurn li { padding:3px 0 6px 4px; }
#helpOverlay .helpFirstTurn li::marker { font-weight:bold; color:#103f4d; }
#helpOverlay kbd { font:700 .92em Arial,sans-serif; border:1px solid #81968a; border-radius:4px; padding:1px 4px; white-space:nowrap; }
#helpOverlay p { margin:8px 0; }
#helpOverlay .menuCard ul { font:16px/1.5 Arial,sans-serif; padding-left:22px; color:#103f4d; }
#helpOverlay .menuCard ul li { margin:0 0 9px; }
#helpOverlay details { border-top:1px solid #c2c9a9; margin:12px 0; }
#helpOverlay summary { cursor:pointer; padding:11px 0; min-height:44px; box-sizing:border-box; font-weight:bold; }
#helpOverlay .helpTraining { display:flex; align-items:center; gap:12px; justify-content:space-between; padding:12px; margin-top:12px; border:1px solid #b7c4a2; border-radius:12px; background:#f1edcc; }
#helpOverlay .helpTraining p { margin:2px 0; font-size:14px; }
#helpOverlay .helpTraining button { flex-shrink:0; max-width:48%; background:#ffd853; }
#helpOverlay .helpPauseNote { font-size:14px; }
#helpOverlay .helpModes { margin:0 0 16px; }
#helpOverlay .helpModes div { margin:0 0 10px; }
#helpOverlay .helpModes dt { font-weight:bold; }
#helpOverlay .helpModes dd { margin:0; }
#helpOverlay .performanceReport { text-align:left; padding:12px; background:#fff7df; border:1px solid #b7c4a2; color:#103f4d; }
#helpOverlay .performanceReport h3 { color:#103f4d; }
#helpOverlay .helpTechnical { font-size:14px; }
#helpOverlay .fullscreenControl { margin-bottom:16px; }
#helpOverlay #btnCloseHelp { margin-top:12px; width:100%; background:#ffd853; flex-shrink:0; }
#helpOverlay .battleSaveControls { margin-top:10px; color:#103f4d; }
#helpOverlay .battleSaveControls button { width:100%; color:#103f4d; }
@media (max-width:480px) {
  #helpOverlay .menuCard.help { padding:14px; border-radius:16px; }
  #helpOverlay .helpTabs button { padding:6px; font-size:14px; }
  #helpOverlay .helpInputChoice span { width:100%; }
  #helpOverlay .helpTraining { align-items:flex-start; flex-direction:column; gap:8px; }
  #helpOverlay .helpTraining button { max-width:100%; width:100%; }
}
@media (max-height:480px) {
  #helpOverlay .menuCard.help { max-height:calc(100dvh - 20px); padding:10px 16px; }
  #helpOverlay .menuCard h2 { margin-bottom:6px; font-size:26px; }
  #helpOverlay .helpTabs { margin-bottom:6px; }
  #helpOverlay #btnCloseHelp { margin-top:6px; }
}
