.shoal-shortcut,.fun-shortcut{color:inherit;text-decoration:none;pointer-events:auto}
.landing-foot .fun-shortcut{color:var(--amber);text-decoration:underline;text-underline-offset:4px}
@media (orientation:landscape) and (max-height:560px) and (min-width:480px){
  #start-screen:not([hidden]),#shoal-menu:not([hidden]){
    min-height:100svh;height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr) auto;
  }
  #start-screen .topbar,#shoal-menu .mast{
    height:auto;min-height:42px;display:flex;align-items:center;gap:12px;padding:0 max(12px,env(safe-area-inset-right)) 0 max(12px,env(safe-area-inset-left));
  }
  .topbar .wordmark{flex:none;gap:4px}.topbar .wordmark svg{width:22px;height:24px}
  .topbar .wordmark b{font-size:14px}.topbar .release-label{font-size:10px}
  #start-screen .topbar nav{display:flex;flex:1;align-self:center;gap:10px;justify-content:center;overflow-x:auto}
  #start-screen .topbar nav :is(button,a){min-height:40px;font-size:12px;padding:0}
  .topbar .utilities{gap:4px}.topbar .circle{width:34px;height:36px;min-width:0;min-height:0}
  #start-screen .intro-hero{min-height:0;height:100%;display:flex;align-items:center;justify-content:start;isolation:isolate}
  #start-screen .intro-hero .hero-content{width:53%;padding:5px 0 5px max(16px,env(safe-area-inset-left));position:relative;flex:none;align-self:center}
  .intro-hero .hero-content>.eyebrow{font-size:9px;letter-spacing:.1em}
  #start-screen .hero-content h1{font-size:clamp(40px,8.5vh,62px);line-height:.98;margin:6px 0}
  #start-screen .hero-content h1 br{display:none}#start-screen .hero-content h1 em:before{content:' '}
  #start-screen .hero-content>p{font-size:13px;line-height:1.32;margin:5px 0 8px;max-width:38ch}
  #start-screen .hero-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;max-width:290px;margin:3px 0}
  #start-screen .hero-buttons :is(a,button):not([hidden]){min-height:39px;font-size:13px;padding:4px 6px;gap:4px;display:flex;align-items:center;justify-content:center}
  #start-screen :is(.watch-game,.tide-choice){display:inline-flex;align-items:center;min-height:32px;margin:0 6px 0 0;padding:1px 3px;font-size:11px}
  #start-screen .live-animal{position:absolute;inset:0 0 0 auto;width:100%;height:100%}
  #start-screen .specimen-controls{width:min(40%,350px);right:max(10px,env(safe-area-inset-right));bottom:6px;padding:5px 7px;gap:2px 6px}
  .specimen-controls .spec-header strong{font-size:16px}.specimen-controls .spec-header span{font-size:8px}
  #start-screen .landing-foot,#shoal-menu .lobby-foot{min-height:30px;height:auto;display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:8px;padding:1px max(12px,env(safe-area-inset-right)) max(1px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
  #start-screen .landing-foot :is(a,button){min-height:32px;font-size:11px;padding:0;gap:5px}
  #start-screen .landing-foot b{font-size:12px}.landing-foot .best{margin:0}.landing-foot svg{width:15px;height:15px}.landing-foot small{font-size:8px}
  #shoal-menu .mast{justify-content:space-between}
  #shoal-menu .shoal-lobby{min-height:0;padding:10px max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left));display:flex;align-items:safe center;overflow:auto}
  #shoal-menu .lobby-copy{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);grid-template-rows:auto auto 1fr;gap:4px clamp(14px,4vw,45px);width:min(100%,850px);max-width:none}
  .lobby-copy>.eyebrow{grid-area:1/1;font-size:10px;align-self:end}
  #shoal-title{grid-area:2/1;font-size:clamp(38px,10vh,65px);margin:2px 0}
  #shoal-menu .lead{grid-area:3/1;font-size:14px;line-height:1.4;margin:3px 0 0;align-self:start}
  #shoal-picker{grid-area:1/2/3/3;align-self:end;margin:0 0 5px;flex-wrap:wrap}
  #lobby-choices{grid-area:3/2}#shoal-menu #room-panel{grid-area:1/2/4/3;align-self:center}
  .lobby-copy:has(#room-panel:not([hidden])) #shoal-picker{display:none}
  #shoal-menu .lobby-links{gap:4px 12px}#shoal-menu .plain{min-height:35px;margin:3px 0}
  #shoal-menu .lobby-foot{justify-content:flex-start;gap:18px;font-size:11px}
  #panel[data-page="draft"]{max-height:95dvh;width:min(98vw,980px);padding:8px 12px;overflow-y:auto;overscroll-behavior:contain}
  #panel[data-page="draft"] h2{font-size:24px;margin:2px 0}
  #panel .survival-draft .evo-actions{position:sticky;bottom:0;z-index:3;background:#182026;padding:4px;border-top:1px solid #809b9c}
  #panel .survival-draft .evo-stage figure{min-height:65px}
  #panel .survival-draft .evo-stage figure canvas{height:70px}
  #panel .survival-draft .survival-goal{margin:3px 0;padding:4px 8px}
  html[data-lab-section] .site-bar{min-height:38px;display:flex;flex-wrap:nowrap;padding:1px 0;gap:9px}
  html[data-lab-section] .site-bar nav{order:0;width:auto;display:flex;padding:0;gap:9px;white-space:nowrap}
  html[data-lab-section] .site-bar nav a,html[data-lab-section] .play-link{font-size:12px}
  html[data-lab-section] .mark-emblem{width:26px;height:26px}
  html[data-lab-section] .shell{width:95%;margin:auto}
  html[data-lab-section] .fun-heading{padding:4px 0;display:flex;align-items:center;justify-content:space-between;gap:8px}
  html[data-lab-section] .fun-heading :is(.intro,.overline){display:none}
  html[data-lab-section] .fun-heading h1{font-size:clamp(25px,5vh,34px);margin:0}
  html[data-lab-section] .fun-heading nav{display:flex;gap:5px;margin:0}
  html[data-lab-section] .fun-heading nav a{display:flex;align-items:center;min-height:36px;padding:2px 5px;font-size:12px}
  html[data-lab-section] .fun-heading nav a[aria-current]{color:var(--deep);box-shadow:inset 0 -2px var(--teal)}
  html[data-lab-section="trials"] .studio{display:grid;grid-template-columns:minmax(150px,.65fr) minmax(0,1.35fr);gap:12px;padding:6px 0}
  html[data-lab-section="trials"] :is(.body-picker,.trial-view){max-height:calc(100dvh - 94px);overflow:auto;overscroll-behavior:contain}
  html[data-lab-section] .body-picker h2{font-size:17px;margin:0 0 4px}
  html[data-lab-section] .experiments,html[data-lab-section] .tactics{display:grid;grid-template-columns:1fr;gap:3px;margin:4px 0}
  html[data-lab-section] .mode,html[data-lab-section] .tactic{border:1px solid var(--line);border-radius:4px;padding:5px 7px;text-align:left;min-height:37px}
  html[data-lab-section] .mode small{display:none}
  html[data-lab-section] .trial-view{display:flex;flex-direction:column}
  html[data-lab-section] .launchbar{order:-2;position:sticky;top:0;z-index:2;flex-shrink:0;background:var(--surface);padding:4px 7px;margin:0;gap:6px}
  html[data-lab-section] .launch{min-height:36px;font-size:13px;padding:5px 8px}
  html[data-lab-section] .launchbar label{font-size:10px}
  html[data-lab-section] .brief{order:-1;padding:6px 9px;display:block}
  html[data-lab-section] .brief h2{font-size:20px}
  html[data-lab-section] .brief p{font-size:13px;line-height:1.35;margin:2px 0}
  html[data-lab-section] .brief .aim{margin-top:4px}
  html[data-lab-section] .tactic-figure canvas{max-height:120px;object-fit:contain}
  html[data-lab-section] .findings,html[data-lab-section] .research{padding-top:9px}
  html[data-lab-section] .tactics[hidden],
  html[data-lab-section="trials"] :is(#results,#research),
  html[data-lab-section="results"] :is(#trials,#research),
  html[data-lab-section="research"] :is(#trials,#results){display:none}
}
@media (orientation:landscape) and (max-height:350px) and (min-width:480px){
  #start-screen .hero-content>.eyebrow{display:none}
  #start-screen .hero-content>p{font-size:12px;margin:4px 0}
}
@media (orientation:landscape) and (max-height:560px) and (min-width:480px){
  #start-screen:not([hidden]){overflow-x:clip}
  #start-screen .landing-foot a{flex-shrink:1;text-align:center}
  html[data-lab-section="trials"] body{display:grid;grid-template-rows:auto minmax(0,1fr);height:100dvh;min-height:0}
  html[data-lab-section="trials"] body>footer{display:none}
  html[data-lab-section="trials"] .shell{display:grid;grid-template-rows:auto minmax(0,1fr);min-height:0;height:100%;padding-block:0}
  html[data-lab-section="trials"] .studio{min-height:0;margin:0}
  html[data-lab-section="trials"] :is(.body-picker,.trial-view){max-height:100%;min-height:0}
}
@media (orientation:landscape) and (max-height:560px) and (min-width:480px){
  #start-screen .specimen-controls{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);box-sizing:border-box}
  #start-screen .specimen-controls :is(select,input){width:100%;min-width:0}
  #start-screen .spec-stages button{font-size:11px;padding:4px 3px}
  #start-screen .spec-growth{gap:3px}
  #start-screen .spec-growth output{font-size:10px}
}
