/* Three continuous reels inside the hangar's existing teal plates. */
.menu-modes {
  box-sizing:border-box; inset:0; width:100%; height:100dvh; max-width:none; max-height:none; margin:0;
  padding:0; overflow:hidden; color:var(--ui-text,#e9f3ef); border:0; border-radius:0;
  background:radial-gradient(ellipse at 70% 0,#24494f66,transparent 65%),#09191f;
  font-family:var(--ui-font,'Segoe UI',system-ui,sans-serif);
}
.menu-modes::backdrop { background:#020a10ee; }
.menu-modes:not([open]) { display:none; }
.menu-modes[open], .menu-modes-form { display:flex; flex-direction:column; min-height:0; }
.menu-modes-form { position:relative; width:100%; height:100%; margin:0; }
.menu-modes button { pointer-events:auto; font-family:inherit; cursor:pointer; touch-action:manipulation; }
.menu-modes-content { position:absolute; inset:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; min-height:0; padding:0 36px; overflow:hidden; }
.menu-choice-section { position:relative; min-width:0; min-height:0; }
.menu-choice-heading { position:absolute; inset:0 0 auto; z-index:21; display:flex; align-items:center; justify-content:center; height:18px; padding-top:max(6px,env(safe-area-inset-top)); pointer-events:none; }
.menu-choice-heading::before { content:''; position:absolute; inset:0 0 auto; z-index:-1; height:clamp(80px,14vh,150px);
  background:linear-gradient(#09191ff5,#09191fc4 35%,transparent); }
.menu-choice-heading h3 { margin:0; color:#afc9c4; font:600 12px/1 var(--ui-mono,monospace); letter-spacing:.12em; text-transform:uppercase; }
.menu-reel-window { position:absolute; inset:0; min-height:0; min-width:0; overflow:hidden; background:#07171b70; }
.menu-reel-window::after { content:''; position:absolute; pointer-events:none; z-index:20; }
.menu-reel-window::after { inset:0; background:linear-gradient(#09191fb3,transparent 22%,transparent 78%,#09191fb3); }
.menu-choice-row { position:relative; display:block; box-sizing:border-box; width:100%; height:100%; min-width:0; min-height:0; margin:0; padding:0; border:0;
  overflow-x:hidden; overflow-y:auto; scrollbar-width:none; overscroll-behavior:contain; overflow-anchor:none; touch-action:pan-y; scroll-behavior:auto; cursor:grab; user-select:none; }
.menu-choice-row[data-dragging] { cursor:grabbing; }
.menu-choice-row::-webkit-scrollbar { display:none; }
.menu-reel-track { display:flex; flex-direction:column; gap:12px; padding-inline:4px; }
.menu-modes-sr, .menu-choice-card input { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.menu-choice-card { box-sizing:border-box; position:relative; display:block; flex:0 0 var(--menu-reel-card-height); height:var(--menu-reel-card-height); min-height:0; min-width:0;
  border:0; background:none; transform-origin:center; transform-style:preserve-3d; cursor:inherit; }
.menu-card-face { --menu-reel-caption-height:clamp(52px,8vh,72px); box-sizing:border-box; position:absolute; inset:0; display:grid; grid-template-rows:minmax(0,1fr) var(--menu-reel-caption-height);
  overflow:hidden; border:1px solid #ffffff20; border-radius:8px; background:#14282e; }
.menu-choice-card > .menu-card-face { opacity:0; }
.menu-reel-canvas { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.menu-choice-card:hover .menu-card-face { border-color:#ffffff40; }
.menu-choice-row:has(input:focus-visible) .selected .menu-card-face { border-color:#f5cf7970; }
.menu-choice-art { position:relative; display:block; min-height:0; overflow:hidden; background:#13252b; }
.menu-choice-art::after { content:''; position:absolute; inset:0; background:linear-gradient(transparent 65%,#081c294d); pointer-events:none; }
.menu-choice-art img { width:100%; height:100%; object-fit:cover; display:block; }
.menu-choice-badge { position:absolute; z-index:1; left:10px; top:10px; padding:5px 7px; border:1px solid #aaccc340; background:#06171dcc; color:#dfefea; font:10px/1 var(--ui-mono,monospace); text-transform:uppercase; }
.menu-choice-check { display:none; position:absolute; right:10px; top:10px; z-index:1; width:22px; height:22px; border-radius:50%; background:#f4e9d6; color:#183036; font:bold 14px/22px sans-serif; text-align:center; }
.selected .menu-choice-check { display:block; }
.menu-choice-copy { display:flex; flex-direction:column; gap:6px; padding:12px 14px; background:#0e2027; }
.menu-choice-copy strong { color:#e9f3ef; font:700 17px/1.2 var(--ui-font,'Segoe UI',sans-serif); }
.menu-choice-copy small { color:#e5c67d; font:500 12px/1.25 var(--ui-font,'Segoe UI',sans-serif); }
.menu-difficulty-card .menu-choice-art { background:#555; }
.menu-difficulty-card .menu-choice-art img { object-position:50% 0%; }
.menu-difficulty-emoji { position:relative; z-index:1; font:clamp(44px,8vw,100px)/1 'Segoe UI Emoji','Apple Color Emoji','Noto Color Emoji',sans-serif; }
.menu-modes-footer { position:relative; z-index:30; pointer-events:none; margin-top:auto; flex:none; display:grid; grid-template-columns:auto auto; justify-content:end; align-items:center; gap:12px; padding:16px 36px 22px;
  background:linear-gradient(transparent,#0b1e25dc 30%,#0b1e25f5); }
.menu-modes-back, .menu-modes-deploy { min-height:52px; padding:10px 26px; border-radius:2px; font:900 26px/1.1 var(--ui-display,'Segoe UI',sans-serif); letter-spacing:.06em; }
.menu-modes-back { min-width:132px; border:1px solid #496b70; color:#afc9c4; background:#183139; }
.menu-modes-back:hover:not(:disabled) { border-color:#72ddd0; color:#e5f3ee; background:#26494d; }
.menu-modes-deploy { min-width:190px; border:1px solid #ffd2a1; color:var(--ui-on-action,#261710); background:linear-gradient(#ffb48a,var(--ui-action,#ff986b)); box-shadow:0 4px 0 #7e4533; }
.menu-modes-deploy:hover:not(:disabled) { filter:brightness(1.1); }
.menu-modes button:focus-visible { outline:2px solid #72ddd0; outline-offset:3px; }
.menu-modes button:disabled { opacity:.35; cursor:default; }
.menu-modes-error { grid-column:1 / -1; margin:0; color:#f5cf79; font-size:13px; line-height:1.5; }
@media(max-width:1024px), (max-height:600px) {
  .menu-modes-content { gap:12px; padding:0 max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left)); }
  .menu-choice-heading h3 { font-size:11px; letter-spacing:.05em; }
  .menu-reel-track { gap:10px; }
  .menu-choice-copy { padding:8px; gap:4px; }
  .menu-choice-copy strong { font-size:14px; }
  .menu-choice-copy small { font-size:11px; }
  .menu-choice-badge { left:6px; top:6px; padding:4px; font-size:9px; }
  .menu-choice-check { right:6px; top:6px; width:18px; height:18px; font-size:12px; line-height:18px; }
  .menu-difficulty-emoji { font-size:clamp(32px,10vw,64px); }
  .menu-modes-footer { padding:12px max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); }
}
@media(max-width:559px) {
  .menu-modes-content { gap:6px; padding-left:max(8px,env(safe-area-inset-left)); padding-right:max(8px,env(safe-area-inset-right)); }
  .menu-choice-heading h3 { font-size:10px; letter-spacing:0; }
  .menu-reel-track { gap:8px; padding-inline:3px; }
  .menu-choice-copy { padding:7px 6px; }
  .menu-choice-copy strong { font-size:12px; }
  .menu-choice-copy small { font-size:10px; }
  .menu-card-face { --menu-reel-caption-height:76px; }
  .menu-mode-card img { object-position:30% center; }
  .menu-modes-back, .menu-modes-deploy { min-width:116px; min-height:48px; padding:10px 14px; font-size:24px; }
}
@media(max-height:600px) {
  .menu-modes-footer { padding-top:8px; padding-bottom:max(12px,env(safe-area-inset-bottom)); }
  .menu-modes-back, .menu-modes-deploy { min-height:44px; font-size:22px; padding:8px 18px; }
}
@media(max-height:420px) {
  .menu-choice-heading { height:16px; }
  .menu-choice-copy { padding:6px 8px; gap:3px; }
  .menu-card-face { --menu-reel-caption-height:52px; }
  .menu-choice-copy strong { font-size:13px; }
  .menu-choice-copy small { font-size:10px; }
  .menu-difficulty-emoji { font-size:44px; }
}
