/* A phone-sized console on the same URL. Desktop keeps the original chassis. */
.mobile-intro,.mobile-selection{display:none}
@media(max-width:760px), (max-width:1024px) and (pointer:coarse){
  html{scroll-padding-bottom:150px}
  .garage-page{background:#0c1417;min-width:320px}
  .garage-stage{padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 24px max(12px,env(safe-area-inset-left));overflow:visible}
  .garage-stage:before,.garage-stage:after,.machine:before,.garage-sticker,.machine-message,.header-message,.lower-chassis{display:none}
  .workshop{background:linear-gradient(#0c1417dc,#0c1417f5),url("/assets/images/garage/workshop-portrait.webp") center top/cover}
  .machine{display:flex;flex-direction:column;width:100%;max-width:700px;gap:14px;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
  .machine-header{min-height:60px;padding:8px 12px;gap:8px;border:1px solid #526268;border-radius:12px;background:linear-gradient(120deg,#18292c,#0d171b);box-shadow:0 4px 18px #0004;z-index:6}
  .machine-brand{gap:8px}.sprout{width:30px;height:39px}
  .machine-brand h1{font-size:26px;letter-spacing:-.8px}.machine-brand small{font-size:10px;margin-top:4px}
  .machine-menu{margin-left:auto}.machine-menu summary{width:44px;height:44px;font-size:24px}
  .machine-menu nav{top:52px;width:min(260px,80vw);border-radius:8px;padding:8px}
  .machine-menu nav a{min-height:44px;font-size:14px;padding:12px}
  .machine-header:has(.machine-menu[open]){z-index:11}
  .mobile-intro{display:block;padding:3px 4px 1px}
  .mobile-intro p{font-size:18px;font-weight:700;letter-spacing:.02em;color:#f4eee1}
  .mobile-intro>span{display:block;margin-top:6px;font-size:12px;color:#b0c1bd}
  .mobile-intro a{display:inline-block;min-height:44px;padding-top:10px;margin-left:6px;color:#a9e4c5;text-underline-offset:3px}
  .classification{padding:0;border:0;background:none;box-shadow:none}
  .genre-buttons{display:flex;overflow-x:auto;gap:8px;padding:4px 2px 10px;scrollbar-width:thin;scrollbar-color:#63776f #101b1c;overscroll-behavior-x:contain}
  .genre-button{display:flex;align-items:center;gap:6px;flex:0 0 auto;min-width:0;min-height:46px;padding:8px 12px;border-width:1px;border-radius:8px;box-shadow:inset 0 1px #c0d7ce22}
  .genre-button svg{width:20px;height:20px;margin:0;flex-shrink:0}
  .genre-button strong{font-size:12px}.genre-button[aria-pressed=true]{box-shadow:inset 0 0 16px #eb773e22}
  .genre-button[aria-pressed=true]:after{display:none}
  .model-switch{display:flex;flex-wrap:nowrap;gap:10px;padding:3px 2px 0;font-size:10px;white-space:nowrap}
  .model-switch select{flex:1;min-width:0;width:auto;min-height:44px;height:auto;padding:8px;border-radius:6px;font-size:16px}
  .model-switch>.power-light{display:none}
  .archive{display:flex;flex-direction:column;border:1px solid #43514d;border-radius:10px;overflow:hidden;background:#0a1316;box-shadow:0 5px 16px #0004}
  .metal-label{min-height:44px;padding:10px 14px;color:#deded0;border:0;border-bottom:1px solid #374941;background:linear-gradient(100deg,#253635,#142020);box-shadow:none}
  .metal-label h2{font:600 12px/1.3 monospace;letter-spacing:1.5px}.metal-label>span{display:block;font:11px monospace}
  .metal-label:before,.metal-label:after{display:none}
  .game-search{padding:8px;flex-wrap:wrap;gap:6px}
  .game-search label{width:100%;font-size:12px}
  .game-search input{flex:1;width:auto;min-height:44px;font-size:16px}
  .game-search button{min-width:44px;min-height:44px}
  .shelf-well{min-height:0;padding:0 5px;background:linear-gradient(#0005,transparent),repeating-linear-gradient(90deg,#0c1518 0 128px,#263a36 129px 130px)}
  .cartridge-shelf{gap:12px;min-height:0;padding:12px 8px 14px!important;scroll-padding-inline:8px;scrollbar-width:thin}
  .cartridge-shelf li{flex:0 0 122px;min-width:0;padding:4px 2px 0}
  .cartridge-shelf li:before{top:26px;bottom:-5px}
  .cartridge{min-height:0;padding:15px 5px 7px;border-radius:6px 6px 3px 3px}
  .cartridge:before{height:9px}.cartridge[aria-pressed=true]{transform:translateY(-3px);box-shadow:0 0 0 2px #efbb79,0 0 16px #ff981d55}
  .cassette-brand{font-size:7px;padding:4px 0;letter-spacing:.5px}
  .cartridge img{height:72px}.cassette-title{font-size:14px;line-height:1.15;letter-spacing:0;min-height:43px;padding:6px 2px}
  .cassette-genre{font-size:10px;line-height:1.2;padding:5px 0;letter-spacing:0}
  .shelf-navigation{position:static;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:3px 8px;background:#101d20;border-top:1px solid #374941}
  .shelf-navigation>span{position:static;width:auto;height:auto;clip-path:none;font:11px/1.4 monospace;color:#b7c9c1}
  .shelf-navigation>div{gap:6px}.shelf-navigation button{width:44px;height:44px;font-size:20px;border-radius:6px}
  .monitor-bay{display:flex;padding:8px;border:1px solid #637268;border-radius:12px;background:#162326;box-shadow:inset 0 1px #b7c9bd22}
  .monitor-bezel{padding:8px;border:0;border-radius:8px;background:#0a171b}
  .monitor-label{font-size:10px;padding-bottom:8px}
  .preview-screen{height:auto;aspect-ratio:16/9;min-height:140px;border:1px solid #486861;border-radius:8px}
  .preview-caption>p{font-size:clamp(23px,6vw,34px);text-align:center;overflow-wrap:anywhere}
  .preview-caption>span{font-size:10px}.preview-caption>small{display:none}
  .selected-details{display:block;margin-top:14px}.selected-cover{display:none}
  .selected-copy h2{font-size:24px;line-height:1.2}.game-tags{font-size:12px;line-height:1.6;margin-top:6px!important}
  .game-description{font-size:13px;line-height:1.8;margin-top:8px!important;display:block;overflow:visible}
  .variant-control{flex-wrap:wrap;font-size:10px;padding-top:12px;margin-top:12px;gap:7px}
  .variant-control select{width:100%;max-width:100%;min-width:0;min-height:44px;padding:8px;font-size:16px;border-radius:5px}
  .primary-actions{display:grid;grid-template-columns:minmax(0,1fr) 66px 112px;gap:8px;align-items:center;margin-top:12px}
  .js .primary-actions{position:fixed;z-index:10;inset:auto 0 0;padding:12px max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));margin:0;border-top:1px solid #527468;background:#0d1b1ef5;box-shadow:0 -8px 32px #0007;backdrop-filter:blur(16px)}
  .mobile-selection{display:flex;flex-direction:column;gap:5px;min-width:0;grid-row:2;grid-column:1}
  .launch-provenance{display:block;grid-column:1/-1;grid-row:1;font-size:12px;line-height:1.4;color:#eddbb5}
  .mobile-selection small{font-size:10px;color:#a7c6bb}.mobile-selection strong{font:17px/1.25 Georgia,serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f0f1e7}
  .mobile-selection{gap:0}
  .mobile-help{display:block;align-self:flex-start;min-height:44px;padding:5px 0;border:0;background:none;font-size:12px;color:#a9e4c5;text-decoration:underline;text-underline-offset:3px}
  .help-button{display:none}
  .play-button{grid-column:3;grid-row:2;min-height:52px;border-radius:8px;font-size:22px!important;box-shadow:inset 0 -2px 2px #006b5844,0 0 16px #1be4bb24}
  .play-button small{font-size:8px}.trace-button{grid-column:2;grid-row:2;min-height:52px;margin:0;border-radius:8px;font-size:11px!important}
  .trace-button span{display:block;margin-top:4px;font-size:8px}
  .other-bay{width:100%;max-width:700px;margin-top:18px;transform:none;padding:0;border:0;background:none;box-shadow:none;gap:8px}
  .other-bay a{min-height:52px;font-size:13px;gap:8px;border-radius:8px}.other-bay small{display:none}
  .other-works,.garage-notes,.garage-footer{margin-inline:auto;width:calc(100% - 32px);max-width:700px;padding:24px 0}
  .other-works>p,.garage-notes{font-size:13px;line-height:1.8}.other-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .other-links a{min-height:64px;font-size:14px}.other-links small{font-size:12px}
  .garage-footer nav{gap:8px 20px;font-size:12px}.garage-footer a{display:flex;align-items:center;min-height:44px}
  .garage-footer{padding-bottom:calc(155px + env(safe-area-inset-bottom))}
  .trace-dialog{padding:16px;max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow-y:auto}
  .trace-dialog header{position:sticky;top:-16px;background:#111d21;z-index:1;padding-top:8px}.trace-dialog p,.trace-dialog dl{font-size:13px}
}
