  .panel { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 24px; background: rgba(43, 58, 103, 0.55); }
  .panel h1 { font-size: clamp(44px, 11vw, 92px); line-height: .9; margin: 0 0 10px; font-weight: 800;
    text-shadow: 0 5px 0 var(--coral); transform: rotate(-3deg); }
  .panel p { font-size: 18px; margin: 6px 0; max-width: 40ch; color: var(--cream); }
  .panel ul { text-align: left; font-size: 16px; color: var(--paper); padding-left: 20px; max-width: 40ch; }
  .panel button { margin-top: 16px; font: inherit; font-size: 24px; font-weight: 700; padding: 10px 34px; border: 0;
    border-radius: 999px; background: var(--paper); color: #1B2440; box-shadow: 0 5px 0 var(--coral); cursor: pointer; }
  .panel button:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--coral); }
  .panel button:focus-visible { outline: 3px solid var(--apricot); outline-offset: 4px; }
  .hidden { display: none !important; }
  #gate { top: calc(130px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); background: rgba(10,14,24,.85); color: #FFD25A;
    border-radius: 12px; padding: 6px 16px; font-size: 17px; text-align: center; font-family: 'Courier New', monospace; font-weight: 700; }
  #gate b { display: block; color: #fff; font-size: 14px; }
  #mTitle { font-size: 14px; font-weight: 700; color: var(--apricot); }
  .mbtns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
  #missions { justify-content: flex-start; overflow-y: auto; background: rgba(43,58,103,.88);
    padding-top: calc(28px + env(safe-area-inset-top, 0px)); padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
  #missions h2 { font-size: 44px; margin: 0; font-weight: 800; text-shadow: 0 4px 0 var(--coral); }
  #mlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; width: 100%; max-width: 900px; margin-top: 8px; }
  .panel .mcard { margin: 0; text-align: left; font-size: 15px; font-weight: 500; padding: 12px 14px; border-radius: 16px;
    background: var(--panel); color: var(--paper); box-shadow: none; border: 2px solid transparent; display: flex; flex-direction: column; gap: 4px; }
  .panel .mcard:hover, .panel .mcard:focus-visible { border-color: var(--apricot); }
  .panel .mcard:active { transform: translateY(1px); box-shadow: none; }
  .panel .mcard.done { background: rgba(60, 110, 80, .7); }
  .panel .mcard.danger { background: rgba(120, 32, 32, .82); }
  .panel .mcard.danger.done { background: rgba(90, 70, 40, .85); }
  .panel .mcard.dtoggle { grid-column: 1 / -1; background: rgba(160, 38, 34, .9); border-color: #FF7A66; }
  .panel .mcard.dtoggle .mname { font-size: 22px; }
  #dlist { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
  #dlist.hidden { display: none !important; }
  .mhead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
  .mname { font-size: 20px; font-weight: 800; }
  .mrew { color: var(--apricot); font-weight: 800; white-space: nowrap; }
  .mdesc { color: var(--cream); line-height: 1.3; }
  .mplane { font-size: 13px; color: var(--apricot); }
  #toast { position: fixed; left: 50%; top: 52%; transform: translateX(-50%); background: rgba(27,36,64,.92); border-radius: 18px;
    padding: 14px 18px; text-align: center; display: flex; flex-direction: column; gap: 6px; max-width: 92vw; z-index: 5; }
  #toast b { font-size: 24px; } #toast span { color: var(--cream); }
  #toast .tbtns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
  #toast button { font: inherit; font-weight: 700; font-size: 16px; border: 0; border-radius: 999px; padding: 8px 16px; background: var(--paper); color: #1B2440; cursor: pointer; }
  #toast button.ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 2px var(--paper); }
  #hudMenu { pointer-events: auto; top: calc(174px + env(safe-area-inset-top, 0px)); left: 10px; font: inherit; font-weight: 700; font-size: 15px;
    padding: 5px 14px; border: 0; border-radius: 999px; background: var(--panel); color: var(--paper); cursor: pointer; }
  #hudPlane { pointer-events: auto; top: calc(174px + env(safe-area-inset-top, 0px)); left: 86px; font: inherit; font-weight: 700; font-size: 15px;
    padding: 5px 14px; border: 0; border-radius: 999px; background: var(--panel); color: var(--paper); cursor: pointer; }
  #hudTime { pointer-events: auto; top: calc(210px + env(safe-area-inset-top, 0px)); left: 10px; font: inherit; font-weight: 700; font-size: 15px;
    padding: 5px 14px; border: 0; border-radius: 999px; background: var(--panel); color: var(--paper); cursor: pointer; }
  #hudWeather { pointer-events: auto; top: calc(210px + env(safe-area-inset-top, 0px)); left: 165px; font: inherit; font-weight: 700; font-size: 15px;
    padding: 5px 14px; border: 0; border-radius: 999px; background: var(--panel); color: var(--paper); cursor: pointer; }
  #hudSound { pointer-events: auto; left: 368px; font: inherit; font-weight: 700; font-size: 15px; padding: 5px 14px; border: 0; border-radius: 999px; background: var(--panel); color: var(--paper); cursor: pointer; }
  #hudCockpit { pointer-events: auto; left: 250px; font: inherit; font-weight: 700; font-size: 15px; padding: 5px 14px; border: 0; border-radius: 999px; background: var(--panel); color: var(--paper); cursor: pointer; }
  @media (max-width: 560px) { #hudTime, #hudWeather { top: calc(178px + env(safe-area-inset-top, 0px)); } #hudWeather { left: 140px; } }
  #picker { background: rgba(43,58,103,.85); overflow-y: auto; }
  #picker h2 { font-size: 40px; margin: 0 0 12px; font-weight: 800; text-shadow: 0 4px 0 var(--coral); }
  #pickList { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: 980px; }
  @media (max-width: 560px) { #hudMenu, #hudPlane { top: calc(142px + env(safe-area-inset-top, 0px)); } #hudPlane { left: 80px; } }
  #start { justify-content: space-between; padding-top: calc(40px + env(safe-area-inset-top, 0px));
    background: linear-gradient(rgba(43,58,103,.35), transparent 25%, transparent 40%, rgba(43,58,103,.85)); overflow-y: auto; }
  .menuBottom { display: flex; flex-direction: column; align-items: center; width: 100%; }
  .menuBottom > p:first-child { font-size: 26px; font-weight: 800; color: var(--paper); margin: 0 0 8px; }
  #choices { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: 980px; }
  .panel .choice { flex: 1 1 180px; max-width: 230px; margin: 0; padding: 10px 14px; text-align: left; font-size: 15px;
    font-weight: 500; background: var(--panel); color: var(--paper); border: 3px solid transparent; border-radius: 16px;
    box-shadow: none; display: flex; flex-direction: column; gap: 3px; }
  .panel .choice:active { transform: none; box-shadow: none; }
  .panel .choice.sel { border-color: var(--apricot); background: rgba(27,36,64,.9); }
  .cname { font-size: 22px; font-weight: 800; line-height: 1.1; }
  .cdesc { color: var(--cream); line-height: 1.25; margin-bottom: 4px; }
  .stat { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
  .pips { display: flex; gap: 3px; }
  .pips i { width: 12px; height: 8px; border-radius: 3px; background: rgba(255,255,255,.2); }
  .pips i.on { background: var(--apricot); }
  .tip { font-size: 15px !important; }
  .panel button.ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 2px var(--paper); font-size: 18px; padding: 8px 24px; }
  @media (max-width: 560px) { .cdesc { display: none; } .panel .choice { flex-basis: 42%; padding: 8px 10px; } .cname { font-size: 17px; }
    .stat span:first-child { display: none; } .pips i { width: 9px; } }
