/* Joyboy 1.4. The game supplies the colour; the control deck stays quiet. */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.device.app-native,.device.prefer-deck{width:100vw;height:100dvh;border:0;border-radius:0;box-shadow:none}
.device.app-native::before{display:none}
.device.app-native:not(.control-deck){padding-left:var(--native-safe-left,env(safe-area-inset-left,0px));padding-right:var(--native-safe-right,env(safe-area-inset-right,0px))}
.device.app-native .top{height:calc(var(--native-safe-top,env(safe-area-inset-top,0px)) + 54px);padding:calc(var(--native-safe-top,env(safe-area-inset-top,0px)) + 10px) 18px 8px}
.device.app-native .tabs{padding-bottom:max(calc(var(--native-safe-bottom,env(safe-area-inset-bottom,0px)) + 10px),20px)}
.device.app-native:not(.control-deck) .padzone{padding-bottom:max(calc(var(--native-safe-bottom,env(safe-area-inset-bottom,0px)) + 10px),20px)}
.device.app-native .sheetwrap{left:var(--native-safe-left,0px);right:var(--native-safe-right,0px);top:var(--native-safe-top,0px)}
.device.app-native .sheet{padding-bottom:calc(var(--native-safe-bottom,0px) + 22px)}
.device.app-native .experience-settings{left:var(--native-safe-left,0px);right:var(--native-safe-right,0px);top:var(--native-safe-top,0px);bottom:var(--native-safe-bottom,0px);width:min(520px,calc(100vw - var(--native-safe-left,0px) - var(--native-safe-right,0px) - 32px));max-height:calc(100dvh - var(--native-safe-top,0px) - var(--native-safe-bottom,0px) - 32px)}
.device .display-settings{font-family:var(--mono);font-size:12px;letter-spacing:.04em;color:var(--star);min-width:58px;min-height:44px;background:var(--pad-bg);border-radius:8px;padding:0 10px}
.device:not(.control-deck) .top .wordmark{flex:none}
.device:not(.control-deck) .top .right{flex:1;min-width:0;justify-content:flex-end}
.device:not(.control-deck) .top .who{flex:0 1 auto;min-width:0}
.device:not(.control-deck) .top .display-settings{flex:none;white-space:nowrap}
.device.app-native~.desk-note,.device.roomy~.desk-note{display:none}
.device.roomy:not(.control-deck) .create,.device.roomy:not(.control-deck) .me{width:min(100%,760px);margin-inline:auto;padding-inline:28px}
.device.roomy .slogan h1{font-size:36px;line-height:1.1}
.device.roomy .field2 textarea{min-height:120px;font-size:19px}
.device.roomy .shelf{grid-template-columns:repeat(3,minmax(0,1fr))}
.device .tabs button{min-height:52px}
.device .tabs button[aria-current="true"]{color:#2a1604}
.device .btn:disabled{opacity:.55;cursor:wait}
.device .say textarea{font-size:max(16px,1em)}
.device .howto p{font-size:14px;line-height:1.5}
.device .galaxy .chips{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
.device .galaxy .chips button{min-height:48px;padding:8px 3px;font-size:11px;letter-spacing:.015em;line-height:1.25;white-space:normal;overflow-wrap:normal}
.device .galaxy .chips button[data-l="flagged"]{grid-column:1 / -1}
/* Keep the console's original keys and typography; make their real tap areas
   and secondary instructions as usable as the main amber action. */
.device .create .tourlink{display:flex;align-items:center;min-height:44px;margin-top:10px;font-size:12px;letter-spacing:.06em}
.device .me .idcard .who-btn{min-height:44px;line-height:1.2}
.device .me .idcard button.badge{min-height:44px;display:inline-flex;align-items:center;line-height:1.3;letter-spacing:.06em}
.device .me .credits .eyebrow{font-size:11px;line-height:1.5;letter-spacing:.12em}
.device .me .credits .say2{font-size:14px;line-height:1.5;color:var(--dust)}
.device .me .credits .packs button{min-height:52px;font-size:12px;line-height:1.35}
.device .me .credits .textlink{min-height:44px;font-size:11px;line-height:1.5;letter-spacing:.055em;color:var(--dust)}
.desk-note .legal{display:flex;flex-wrap:wrap;gap:4px}
.desk-note .legal a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding-inline:4px}
@media(max-width:380px){
  .device .create .fold,.device .me .fold{display:grid;grid-template-columns:minmax(0,1fr) 44px;column-gap:10px;row-gap:2px;padding:9px 9px 9px 12px}
  .device .create .fold .eyebrow,.device .me .fold .eyebrow{grid-column:1;grid-row:1;line-height:20px}
  .device .create .fold .who3,.device .me .fold .who3{grid-column:1;grid-row:2;font-size:11px;line-height:16px;text-align:left}
  .device .create .fold i,.device .me .fold i{grid-column:2;grid-row:1 / 3;width:44px;height:44px}
}
.device .play .screenbox iframe{pointer-events:none}
.device .padtools button{font-size:12px;letter-spacing:.025em}
.device button:focus-visible,.device a:focus-visible,.device select:focus-visible{outline:3px solid var(--plasma);outline-offset:3px}
.connection-state{position:absolute;z-index:95;top:env(safe-area-inset-top,0px);left:12px;right:12px;padding:14px 16px;background:#342819;color:#fff0d5;border-radius:10px;font-size:14px;line-height:1.5}
.experience-settings{position:fixed;inset:0;width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 64px);margin:auto;padding:28px;color:var(--star);background:var(--panel);border:2px solid var(--rule-lit);border-radius:12px;font-family:var(--sans);overflow:auto}
.experience-settings::backdrop{background:rgba(0,0,0,.72)}
.experience-settings .settings-head{position:sticky;top:-28px;z-index:1;display:flex;align-items:flex-start;gap:16px;justify-content:space-between;margin:-28px -28px 20px;padding:20px 28px 14px;background:var(--panel);border-bottom:1px solid var(--rule-lit)}
.experience-settings h2{font-family:var(--px);font-size:28px;line-height:1.1;margin:0 0 18px;max-width:290px}
.experience-settings .settings-head h2{font-size:26px;margin:0}
.experience-settings button{min-height:44px;min-width:44px;color:var(--star);font-size:14px}
.experience-settings .settings-head button{flex:none;padding:0 10px;font-family:var(--mono);font-size:12px;border:2px solid var(--pad-edge);border-radius:8px;background:var(--pad-bg);box-shadow:inset 0 -3px 0 rgba(0,0,0,.3)}
.experience-settings p{font-size:15px;line-height:1.55;color:var(--dust);margin:0 0 24px}
.experience-settings .settings-controls h2{font-size:22px;margin-bottom:12px}
.experience-settings .settings-controls p{font-size:14px;line-height:1.5;margin-bottom:16px}
.experience-settings .settings-controls button{display:block;width:100%;margin:0 0 8px;padding:10px 12px;text-align:left;border:2px solid var(--pad-edge);border-radius:8px;background:var(--pad-bg);box-shadow:inset 0 -3px 0 rgba(0,0,0,.3)}
.experience-settings label{font-family:var(--mono);font-size:14px;font-weight:600;display:block;margin-bottom:10px}
.experience-settings select{display:block;width:100%;min-height:48px;border:2px solid var(--rule-lit);background:var(--space);color:#fff;border-radius:8px;padding:10px;font:inherit;margin-bottom:12px}
.experience-settings .settings-help{font-size:13px;line-height:1.55;margin-bottom:26px;color:var(--dust)}
.experience-settings .settings-check{display:flex;align-items:center;gap:12px;line-height:1.5}
.experience-settings input[type="checkbox"]{accent-color:var(--mint);width:22px;height:22px;flex:none}
.experience-settings .settings-done{width:100%;background:var(--solar);border:2px solid var(--solar);color:#2a1604;font-family:var(--px);font-size:20px;font-weight:700;border-radius:10px;box-shadow:inset 0 -3px 0 rgba(0,0,0,.2)}
.device .docview .dbar button{min-height:44px}
.device.strong-contrast{--dim:#c4bed6;--dust:#ded8ec;--rule-lit:#777e9d;--pad-edge:#a3aac5}

/* Native geometry places these rectangles wholly outside the OS division.
   The upper display retains 16:9; the lower deck never overlays the game. */
.device.control-deck{width:100vw;height:100dvh;border:0;border-radius:0;box-shadow:none}
.device.control-deck::before,.control-deck .top{display:none}
.control-deck main#view{position:relative;display:block;flex:1;overflow:hidden;padding:0!important;height:100%;min-height:0}
.control-deck .play{height:100%;width:100%;display:block;overflow:hidden!important;padding:0}
.control-deck .play .bar{position:absolute;left:var(--game-pane-x);top:var(--game-pane-y);width:var(--game-pane-width);height:44px;padding:0;margin:0}
.control-deck .play .bar button{border-radius:8px;background:var(--pad-bg);min-height:44px}
.control-deck .play .screenbox{position:absolute;left:var(--game-display-x);top:var(--game-display-y);width:var(--game-display-width);height:var(--game-display-height);margin:0;aspect-ratio:16/9;border:0;border-radius:8px;box-shadow:none;background:#000}
.control-deck .screenbox .mount{position:absolute;inset:0;width:100%;height:100%}
.control-deck .play .brief{position:absolute;left:var(--control-pane-x);top:var(--control-pane-y);width:var(--control-pane-width);height:66px;margin:0;padding:0 8px 8px;overflow:hidden}
.control-deck .brief .row1 b{font-size:20px;line-height:1.2}
.control-deck .brief q{font-size:13px;line-height:1.4;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.control-deck .brief .howto,.control-deck .brief .meta{display:none}
.control-deck .play .padzone{position:absolute;left:var(--control-pane-x);top:calc(var(--control-pane-y) + 66px);width:var(--control-pane-width);height:calc(var(--control-pane-height) - 66px);margin:0;padding:4px 12px 0;border:0;min-height:0;display:flex;flex-direction:column;justify-content:flex-start;background:var(--panel);border-radius:16px}
.control-deck .padwrap{position:relative;display:block;min-height:110px!important;flex:1;--rest-x:24%;--rest-y:50%;--acts-x:77%;--acts-y:50%}
.control-deck .stickzone{position:absolute;inset:0;height:auto}
.control-deck .stickzone .rest,.control-deck .stickzone .stick{left:var(--rest-x);top:var(--rest-y)}
.control-deck .cross,.control-deck .acts2{position:absolute;left:var(--acts-x);top:var(--acts-y);transform:translate(-50%,-50%)}
.control-deck .cross{left:var(--rest-x)}
.control-deck .padbottom{flex:none;margin-top:0;padding:8px 0 6px}
.control-deck .sysrow{gap:10px}
.control-deck .sysrow button{min-height:44px;font-size:12px;letter-spacing:.04em;box-shadow:none}
.control-deck .sysrow .rot{display:none}
.control-deck .padtools{gap:6px;margin-top:6px}
.control-deck .padtools button{padding:4px 12px;min-height:40px;background:#202638;border-radius:8px;font-size:11px;letter-spacing:0}
.control-deck .play.busy .padbottom{opacity:1;pointer-events:auto}
.control-deck .play.busy .padbottom button{pointer-events:auto}
.control-deck .padzone .hintline{margin:4px 0 0;font-size:13px;text-align:center}
.control-deck .firstplate{max-width:min(560px,calc(100vw - 48px));left:50%;right:auto;transform:translateX(-50%);bottom:auto;top:calc(var(--game-display-y) + 16px)}
.control-deck .ready span{font-size:clamp(18px,3vw,30px);letter-spacing:.04em}
@media(min-width:720px){.control-deck .stick,.control-deck .stickzone .rest{width:144px;height:144px}.control-deck .stickzone .rest{margin:-72px 0 0 -72px}.control-deck .stick .knob{width:64px;height:64px;margin:-32px 0 0 -32px}.control-deck .acts2{transform:translate(-50%,-50%) scale(1.15)}}
@media(prefers-reduced-motion:reduce){.device *{scroll-behavior:auto!important;transition-duration:0s!important;animation-duration:0s!important}}
/* Keep the original pixel-console identity: Jersey displays, Space Mono machine
   text, starlight/solar colours, star field and raised tactile controls.
   Geometry/accessibility additions above remain, without a global reskin. */
/* Landscape Duo is a console beside its control tray, not a rotated stack. */
.control-deck[data-deck-axis="columns"] .padwrap{--rest-x:35%;--rest-y:29%;--acts-x:68%;--acts-y:70%;min-height:170px!important}
.control-deck[data-deck-axis="columns"] .padtools{display:grid;grid-template-columns:1fr 1fr}
.control-deck[data-deck-axis="columns"] .padtools button{padding:5px 8px}
.control-deck[data-deck-axis="columns"] .brief .row1{display:block}
.control-deck[data-deck-axis="columns"] .brief .gen{display:none}
.control-deck .firstplate{width:calc(var(--game-pane-width) - 24px);max-width:520px;left:calc(var(--game-pane-x) + var(--game-pane-width)/2);padding:18px}

/* Cover display and compact landscape phones keep every control on screen. */
.control-deck.short-deck .play .brief{height:44px;padding:0 4px}
.control-deck.short-deck .brief q{display:none}
.control-deck.short-deck .brief .row1 b{font-size:18px}
.control-deck.short-deck .play .padzone{top:calc(var(--control-pane-y) + 44px);height:calc(var(--control-pane-height) - 44px);padding:0 6px;border-radius:12px}
.control-deck.short-deck .padwrap{min-height:94px!important;--rest-x:25%;--rest-y:50%;--acts-x:77%;--acts-y:50%}
.control-deck.short-deck .stick,.control-deck.short-deck .stickzone .rest{width:84px;height:84px}
.control-deck.short-deck .stickzone .rest{margin:-42px 0 0 -42px}
.control-deck.short-deck .stick .knob{width:42px;height:42px;margin:-21px 0 0 -21px}
.control-deck.short-deck .acts2{transform:translate(-50%,-50%) scale(.82)}
.control-deck.short-deck .sysrow{gap:6px}
.control-deck.short-deck .sysrow button{min-height:40px;padding:7px 10px}
.control-deck.short-deck .padtools{gap:4px;margin-top:4px}
.control-deck.short-deck .padtools button{min-height:36px;padding:4px 6px;font-size:11px}
.control-deck.short-deck .padbottom{padding:4px 0}
/* Short portrait windows retain the whole tray above the home indicator. */
.device.short-handheld .padzone{padding-top:4px}
.device.short-handheld .padwrap{min-height:112px;--rest-y:50%;--acts-y:50%}
.device.short-handheld .stick,.device.short-handheld .stickzone .rest{width:104px;height:104px}
.device.short-handheld .stickzone .rest{margin:-52px 0 0 -52px}
.device.short-handheld .acts2{transform:translate(-50%,-50%) scale(.9)}
.device.short-handheld .padbottom{padding-top:6px}
.device.short-handheld .sysrow button{padding:6px 10px;min-height:44px}
.device.short-handheld .padtools{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:6px}
.device.short-handheld .padtools button{padding:4px 6px;min-height:44px;font-size:11px;letter-spacing:0}

/* Open landscape: one large, unobscured game and two thumb zones beneath it. */
.control-deck[data-deck-axis="panorama"]{background:#090b10}
.control-deck[data-deck-axis="panorama"] #bg{visibility:hidden}
.control-deck[data-deck-axis="panorama"] .play .screenbox{border-radius:0}
.control-deck[data-deck-axis="panorama"] .play .brief{left:calc(var(--game-pane-x) + 104px);top:var(--game-pane-y);width:calc(var(--game-pane-width) - 320px);height:44px;padding:0;display:flex;align-items:center;pointer-events:none}
.control-deck[data-deck-axis="panorama"] .brief q,.control-deck[data-deck-axis="panorama"] .brief .gen{display:none}
.control-deck[data-deck-axis="panorama"] .brief .row1 b{font-size:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.control-deck[data-deck-axis="panorama"] .play .padzone{top:var(--control-pane-y);height:var(--control-pane-height);padding:0;background:transparent;border-radius:0;display:block}
.control-deck[data-deck-axis="panorama"] .padwrap{height:100%;min-height:0!important;--rest-x:var(--deck-stick);--rest-y:50%;--acts-x:var(--deck-actions);--acts-y:50%}
.control-deck[data-deck-axis="panorama"] .stickzone{width:calc(var(--deck-stick) + 90px);min-width:0}
.control-deck[data-deck-axis="panorama"] .stick,.control-deck[data-deck-axis="panorama"] .stickzone .rest{width:120px;height:120px;background:#20242e}
.control-deck[data-deck-axis="panorama"] .stickzone .rest{margin:-60px 0 0 -60px}
.control-deck[data-deck-axis="panorama"] .acts2{transform:translate(-50%,-50%)}
.control-deck[data-deck-axis="panorama"] .padbottom{position:absolute;inset:0;padding:0;margin:0;pointer-events:none}
.control-deck[data-deck-axis="panorama"] .padbottom button{pointer-events:auto;min-height:44px;font-size:14px;letter-spacing:0}
.control-deck[data-deck-axis="panorama"] .sysrow{position:absolute;left:var(--deck-start);top:50%;transform:translate(-50%,-50%);margin:0}
.control-deck[data-deck-axis="panorama"] .sysrow #reset{display:none}
.control-deck[data-deck-axis="panorama"] .sysrow #startb{width:112px}
.control-deck[data-deck-axis="panorama"] .padtools{position:absolute;left:var(--deck-menu);top:50%;transform:translate(-50%,-50%);margin:0;display:flex;flex-direction:column;justify-content:center;max-width:120px}
.control-deck[data-deck-axis="panorama"] .padtools button:not(#deck-settings){display:none}
.control-deck[data-deck-axis="panorama"] .padtools #deck-settings{background:transparent;color:#c5c8d5}
.control-deck[data-deck-axis="panorama"] .padwrap.editing~.padbottom #padedit,.control-deck[data-deck-axis="panorama"] .padwrap.editing~.padbottom #paddefault{display:block}
.control-deck[data-deck-axis="panorama"] .padwrap.editing~.padbottom #deck-settings{display:none}
.settings-controls{margin-bottom:24px}
.settings-controls button{background:#272c36;padding:10px 14px;margin:0 8px 8px 0;border-radius:8px}

/* Compact landscape is held with both hands: the game is between the thumbs,
   and secondary actions live below it instead of occupying half the screen. */
.control-deck[data-deck-axis="rails"]{background:#090b10}
.control-deck[data-deck-axis="rails"] #bg{visibility:hidden}
.control-deck[data-deck-axis="rails"] .play .screenbox{border-radius:0}
.control-deck[data-deck-axis="rails"] .play .brief{left:calc(var(--game-pane-x) + 100px);top:var(--game-pane-y);width:calc(var(--game-pane-width) - 290px);height:44px;padding:0;display:flex;align-items:center;pointer-events:none}
.control-deck[data-deck-axis="rails"] .brief .gen,.control-deck[data-deck-axis="rails"] .brief q{display:none}
.control-deck[data-deck-axis="rails"] .brief .row1 b{font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.control-deck[data-deck-axis="rails"] .play .padzone{top:var(--control-pane-y);height:var(--control-pane-height);padding:0;background:transparent;border-radius:0;display:block;pointer-events:none}
.control-deck[data-deck-axis="rails"] .padwrap{height:100%;min-height:0!important;--rest-x:var(--deck-stick);--rest-y:var(--deck-thumbY);--acts-x:var(--deck-actions);--acts-y:var(--deck-thumbY);pointer-events:none}
.control-deck[data-deck-axis="rails"] .stickzone{width:88px;min-width:0;top:calc(var(--deck-thumbY) - 60px);height:120px;pointer-events:auto}
.control-deck[data-deck-axis="rails"] .stickzone .rest,.control-deck[data-deck-axis="rails"] .stickzone .stick{top:50%;width:88px;height:88px;background:#20242e}
.control-deck[data-deck-axis="rails"] .stickzone .rest{margin:-44px 0 0 -44px}
.control-deck[data-deck-axis="rails"] .acts2{width:56px;height:124px;transform:translate(-50%,-50%);pointer-events:auto}
.control-deck[data-deck-axis="rails"] .acts2 button{width:56px;height:56px;font-size:20px}
.control-deck[data-deck-axis="rails"] .acts2 button[data-b="a"]{left:0;right:auto;top:0;bottom:auto}
.control-deck[data-deck-axis="rails"] .acts2 button[data-b="b"]{left:0;right:auto;top:auto;bottom:0}
.control-deck[data-deck-axis="rails"] .acts2.one{height:56px}
.control-deck[data-deck-axis="rails"] .acts2.four{width:96px;height:96px}
.control-deck[data-deck-axis="rails"] .acts2.four button{width:44px;height:44px;font-size:18px}
.control-deck[data-deck-axis="rails"] .acts2.four button[data-b="a"]{left:52px;top:52px;right:auto;bottom:auto}
.control-deck[data-deck-axis="rails"] .acts2.four button[data-b="b"]{left:52px;top:0;right:auto;bottom:auto}
.control-deck[data-deck-axis="rails"] .acts2.four button[data-b="x"]{left:0;top:52px;right:auto;bottom:auto}
.control-deck[data-deck-axis="rails"] .acts2.four button[data-b="y"]{left:0;top:0;right:auto;bottom:auto}
.control-deck[data-deck-axis="rails"] .cross{width:132px;height:132px;pointer-events:auto}
.control-deck[data-deck-axis="rails"] .cross button{width:44px;height:44px}
.control-deck[data-deck-axis="rails"] .cross button[data-b="up"]{left:44px;top:0}
.control-deck[data-deck-axis="rails"] .cross button[data-b="down"]{left:44px;bottom:0}
.control-deck[data-deck-axis="rails"] .cross button[data-b="left"]{left:0;top:44px}
.control-deck[data-deck-axis="rails"] .cross button[data-b="right"]{right:0;top:44px}
.control-deck[data-deck-axis="rails"] .padbottom{position:absolute;inset:0;margin:0;padding:0;pointer-events:none}
.control-deck[data-deck-axis="rails"] .sysrow{position:absolute;left:var(--deck-start);bottom:0;transform:translateX(-50%);margin:0}
.control-deck[data-deck-axis="rails"] .sysrow #reset{display:none}
.control-deck[data-deck-axis="rails"] .padbottom button{min-height:44px;font-size:14px;letter-spacing:0;pointer-events:auto}
.control-deck[data-deck-axis="rails"] .sysrow #startb{width:112px}
.control-deck[data-deck-axis="rails"] .padtools{position:absolute;left:var(--deck-menu);bottom:0;transform:translateX(-50%);margin:0;display:block}
.control-deck[data-deck-axis="rails"] .padtools button:not(#deck-settings){display:none}
.control-deck[data-deck-axis="rails"] #deck-settings{min-width:112px;background:transparent;color:#c5c8d5}
.device .play-instruction{display:none}
.device .screenbox .ready span{animation:none;opacity:1;background:#f3ead6;color:#090b10;border:0}
.control-deck .screenbox .ready{flex-direction:column;align-items:center;justify-content:flex-end;gap:8px;padding:12px}
.control-deck .screenbox .ready span{font-size:20px;letter-spacing:0}
.control-deck .play-instruction{display:block;max-width:480px;background:rgba(9,11,16,.94);color:#f3ead6;padding:10px 14px;font-family:var(--sans);font-size:14px;line-height:1.45;text-align:left}
.control-deck[data-deck-axis="rails"] .screenbox .ready{gap:6px;padding:8px}
.control-deck[data-deck-axis="rails"] .screenbox .ready span{font-size:18px}
.control-deck[data-deck-axis="rails"] .play-instruction{padding:8px 10px;font-size:13px;line-height:1.4}
/* The classic layout centres a lone cluster. Landscape must keep that
   cluster beside the canvas (or on its own side of the fold), too. */
.control-deck[data-deck-axis="rails"] .padwrap.solo,.control-deck[data-deck-axis="panorama"] .padwrap.solo{--rest-x:var(--deck-stick);--acts-x:var(--deck-actions)}

/* Trusted pixel2.5D occupies the original console; HUD belongs to this display,
   controls and lifecycle remain owned by the original App. */
.play[data-player-kind="builtin25d"] .screenbox{aspect-ratio:var(--game-display-aspect,4/3)}
.play[data-player-kind="builtin25d"] .mount{z-index:0}
.b25-slot-hud{position:absolute;z-index:1;left:0;right:0;top:0;pointer-events:none;background:#0f1530ed;color:var(--star)}
.b25-hud{display:flex;align-items:center;justify-content:space-between;gap:3px 10px;flex-wrap:wrap;padding:4px 8px;min-height:40px;font:11px/1.35 var(--mono)}
.b25-hud .b25-title{margin:0;font:19px/24px var(--px);color:var(--star);white-space:nowrap}.b25-hud .b25-score{display:none}.b25-health{color:var(--rose)}.b25-resources{color:var(--star)}.b25-energy{color:var(--mint)}
.b25-target{font:12px/1.3 var(--mono);padding:4px 6px;border:1px solid var(--solar);border-radius:4px;background:#0f1530ef;color:var(--star);display:flex;gap:4px;align-items:center;pointer-events:none}
.b25-paper-round-target[data-release-ready="true"]{background:#153b32;border-color:var(--mint);box-shadow:inset 0 0 0 1px var(--mint)}
/* Tide's existing world signs distinguish sand and low strand without changing the risk rim. */
.play[data-builtin-id="tide-pool"] .b25-target[data-route="shore"]{background:#392c23;box-shadow:inset 0 1px 0 #f1c88855,inset 0 -2px 0 #9b744b}
.play[data-builtin-id="tide-pool"] .b25-target[data-route="deep"]{background:#183448;box-shadow:inset 0 1px 0 #88cee866,inset 0 -2px 0 #4a8fa4}
.play[data-builtin-id="tide-pool"] .b25-target[data-route="deep"]:not([data-risk="true"]){border-color:#91cde3}
.b25-target[data-risk=true]{border-color:var(--rose)}.b25-target[data-offscreen=true]{border-style:dashed}.b25-target-arrow{font-size:16px}
/* Reserve a square bearing cell so diagonal rotation cannot consume the label gap. */
.b25-hollow-target{gap:8px}
.b25-hollow-target>.b25-target-arrow{flex:0 0 20px;width:20px;height:20px;line-height:20px;text-align:center}
.b25-slot-result{position:absolute;z-index:3;inset:44px 0 0;pointer-events:none;display:grid;place-items:center}.b25-result{background:#0f1530f2;border:1px solid var(--solar);border-radius:7px;padding:10px;width:min(260px,90%);font:13px/1.35 var(--sans);color:var(--star);text-align:center}.b25-result[hidden]{display:none}.b25-result strong{font:24px/1 var(--px)}.b25-result p{margin:6px 0}.b25-result-stats{display:block;font:11px var(--mono);color:var(--dust)}
.play[data-player-kind="builtin25d"] .brief>.row1,.play[data-player-kind="builtin25d"] .brief>q,.play[data-player-kind="builtin25d"] .brief>.howto{display:none}
.play[data-player-kind="builtin25d"] .brief{padding:6px 12px;min-height:56px;flex-shrink:0;color:var(--star)}
.b25-context{font:14px/1.3 var(--sans)}.b25-context-main{display:block}.b25-route-legend{display:block;font-size:12px;color:var(--dust);line-height:1.25}.b25-context[data-warning=true]{color:var(--solar)}.b25-slot-cue{display:none}
.play[data-player-kind="builtin25d"] [data-b] .action-caption{display:block;position:absolute;left:-12px;right:-12px;bottom:-17px;font:11px/16px var(--mono);white-space:nowrap;color:var(--dust);pointer-events:none}
.play[data-player-kind="builtin25d"].busy .padbottom{opacity:1;pointer-events:auto}.play[data-player-kind="builtin25d"].busy .padbottom button{pointer-events:auto}
.control-deck .play[data-player-kind="builtin25d"] .brief{height:66px;max-height:66px;overflow:hidden;display:block}
.control-deck[data-deck-axis="rails"] .play[data-player-kind="builtin25d"] .brief{left:var(--game-display-x);top:calc(var(--game-display-y) + var(--game-display-height) + 4px);width:var(--game-display-width);height:48px;min-height:0;padding:0 4px;font-size:13px}
.control-deck[data-deck-axis="rails"] .b25-context{font-size:13px;line-height:1.25}.control-deck[data-deck-axis="rails"] .b25-route-legend{display:none}
.control-deck[data-deck-axis="panorama"] .play[data-player-kind="builtin25d"] .brief{left:calc(var(--game-display-x) + 90px);top:calc(var(--game-display-y) + var(--game-display-height) + 3px);width:calc(var(--game-display-width) - 180px);height:36px;min-height:0;padding:0 8px;z-index:1}
.control-deck[data-deck-axis="panorama"] .b25-context{font-size:13px;line-height:1.25}.control-deck[data-deck-axis="panorama"] .b25-route-legend{display:none}
.device[data-display-fit="unavailable"] .play[data-player-kind="builtin25d"] .screenbox{visibility:hidden}
.device[data-display-fit="unavailable"] .play[data-player-kind="builtin25d"]::after{content:'Display paused · rotate or move to a larger screen';position:absolute;z-index:5;left:12px;right:12px;top:50px;max-height:70px;overflow:auto;padding:12px;background:var(--panel);color:var(--solar);font:14px/1.4 var(--sans);pointer-events:none}
@media(max-width:480px){.play[data-player-kind="builtin25d"] .brief{font-size:13px}.play[data-player-kind="builtin25d"] .b25-context{font-size:13px;line-height:1.3}.play[data-player-kind="builtin25d"] .b25-hud{gap:2px 6px;font-size:11px}.play[data-player-kind="builtin25d"] .b25-title{font-size:18px}}
/* Short phones retain a full canvas and four clear actions; optional tools
   stay available through the existing Controls dialog. */
@media(max-width:480px) and (max-height:760px){
 .device.builtin25d-active:not(.control-deck) .top{display:none}
 .device.builtin25d-active:not(.control-deck) main#view{padding:6px 0 0!important}
 .device.builtin25d-active:not(.control-deck) .play .bar{min-height:44px;padding:0 10px 4px}
 .device.builtin25d-active:not(.control-deck) .play .bar button{min-height:44px}
 .device.builtin25d-active:not(.control-deck) .play .brief{min-height:48px;max-height:56px;overflow:hidden;padding:6px 12px}
 .device.builtin25d-active:not(.control-deck) .b25-route-legend{display:none}
 .device.builtin25d-active:not(.control-deck) .play[data-builtin-id="tide-pool"] .b25-route-legend[data-kit-choice="true"]{display:block}
 .device.builtin25d-active:not(.control-deck) .play .padzone{flex:1;min-height:180px;padding:0 10px 6px;margin-top:0}
 .device.app-native.builtin25d-active:not(.control-deck) .play .padzone{padding-bottom:max(calc(var(--native-safe-bottom,env(safe-area-inset-bottom,0px)) + 10px),20px)}
 .device.builtin25d-active:not(.control-deck) .padwrap{flex:1;min-height:110px;height:110px;padding:0;align-items:center}
 .device.builtin25d-active:not(.control-deck) .stickzone{height:110px;min-width:120px}
 .device.builtin25d-active:not(.control-deck) .stick,.device.builtin25d-active:not(.control-deck) .stickzone .rest{width:96px;height:96px}
 .device.builtin25d-active:not(.control-deck) .stickzone .rest{margin:-48px 0 0 -48px}
 .device.builtin25d-active:not(.control-deck) .stick .knob{width:44px;height:44px;margin:-22px 0 0 -22px}
 .device.builtin25d-active:not(.control-deck) .padbottom{padding-top:4px;margin-top:0}
 .device.builtin25d-active:not(.control-deck) .sysrow{gap:6px}
 .device.builtin25d-active:not(.control-deck) .sysrow button{min-height:44px;padding:6px 10px;font:12px/1.2 var(--mono)}
 .device.builtin25d-active:not(.control-deck) .sysrow .rot{display:none}
 .device.builtin25d-active:not(.control-deck) .padtools{display:flex;justify-content:center;gap:8px;margin-top:5px;flex-wrap:nowrap}
 .device.builtin25d-active:not(.control-deck) .padtools>button:not(#deck-settings){display:none}
 .device.builtin25d-active:not(.control-deck) .padtools #deck-settings{min-height:44px;min-width:112px;padding:4px 12px}
}
/* Direction buttons have the same thumb target as every other App control. */
.play[data-player-kind="builtin25d"] .cross{width:132px;height:132px}
.play[data-player-kind="builtin25d"] .cross button{width:44px;height:44px}
.play[data-player-kind="builtin25d"] .cross button[data-b="up"]{left:44px;top:0}
.play[data-player-kind="builtin25d"] .cross button[data-b="down"]{left:44px;bottom:0}
.play[data-player-kind="builtin25d"] .cross button[data-b="left"]{left:0;top:44px}
.play[data-player-kind="builtin25d"] .cross button[data-b="right"]{right:0;top:44px}
@media(max-width:480px) and (max-height:760px){.device.builtin25d-active:not(.control-deck) .padwrap{min-height:132px;--rest-y:48%;--acts-y:48%}}
.device[data-display-fit="unavailable"] .play .screenbox{visibility:hidden}
.device[data-display-fit="unavailable"] .play::after{content:'Display paused · rotate or return to another screen';position:absolute;z-index:5;left:12px;right:12px;top:50px;max-height:70px;overflow:auto;padding:12px;background:var(--panel);color:var(--solar);font:14px/1.4 var(--sans);pointer-events:none}
/* The desktop's portrait console has the same finite control space as a phone.
   Keep secondary tools in the existing accessible Controls dialog. */
.device.builtin25d-active:not(.control-deck) .padtools{display:flex;justify-content:center;gap:8px;flex-wrap:nowrap}
.device.builtin25d-active:not(.control-deck) .padtools>button:not(#deck-settings){display:none}
.device.builtin25d-active:not(.control-deck) .padtools #deck-settings{min-height:44px;min-width:112px;padding:4px 12px}
.device.builtin25d-active:not(.control-deck) .sysrow button{min-height:44px}
/* A native status bar and home reserve consume real height even on a tall
   phone. Let the pad's empty space shrink before its utility buttons overflow. */
.device.app-native.builtin25d-active:not(.control-deck) .padwrap{min-height:132px}
/* Action captions stay beside the controls; the real finish meter follows the
   game-owned instruction without repeating that sentence a second time. */
.play[data-player-kind="builtin25d"] .bar button{min-height:44px}
.play[data-builtin-id="vine-swing"] .b25-slot-cue{display:block}
.play[data-builtin-id="vine-swing"] .b25-cue-text{display:none}
.play[data-builtin-id="vine-swing"] .b25-finish-hold{display:block;height:5px;max-width:200px;margin-top:3px;background:var(--edge);border:1px solid var(--star)}
.play[data-builtin-id="vine-swing"] .b25-finish-fill{display:block;height:100%;background:var(--mint,#79e9a9)}
.play[data-builtin-id="vine-swing"] .b25-context-main{font-size:13px;line-height:1.3}
.play[data-builtin-id="sled-run"] .cross-horizontal{width:132px;height:64px}
.play[data-builtin-id="sled-run"] .cross-horizontal button{width:56px;height:56px;top:4px;bottom:auto}
.play[data-builtin-id="sled-run"] .cross-horizontal button[data-b="left"]{left:0}
.play[data-builtin-id="sled-run"] .cross-horizontal button[data-b="right"]{right:0}
.play[data-builtin-id="sled-run"] .b25-context-main{font-size:13px;line-height:1.3}

/* Folded portrait has room for properly sized utility controls, too. */
.control-deck .play[data-player-kind="builtin25d"] .padtools button{min-height:44px}
/* The culture board keeps every row. Its instruments share the original Back
   bar, rather than covering the top cells or shrinking the board for a HUD. */
.play[data-builtin-id="spore-fall"] .bar{gap:6px;align-items:center;min-height:56px;height:56px}
.play[data-builtin-id="spore-fall"] .bar .b25-slot-hud{position:static;flex:1;min-width:0;background:transparent}
.play[data-builtin-id="spore-fall"] .b25-spore-hud{display:grid;grid-template-columns:minmax(0,1fr) 42px;grid-template-rows:28px 28px;gap:0 4px;padding:0;min-height:56px}
.play[data-builtin-id="spore-fall"] .b25-title{grid-column:1;grid-row:1;font-size:18px;line-height:24px;white-space:nowrap}
.play[data-builtin-id="spore-fall"] .b25-resources{grid-column:1;grid-row:2;font:11px/18px var(--mono);white-space:nowrap}
.play[data-builtin-id="spore-fall"] .b25-spore-next{grid-column:2;grid-row:1/3;display:flex;flex-direction:column;align-items:center;justify-content:center}
.play[data-builtin-id="spore-fall"] .b25-spore-next-label{font:11px/16px var(--mono)}
.play[data-builtin-id="spore-fall"] .b25-slot-result{inset:0}
.play[data-builtin-id="spore-fall"] .b25-context-main{font-size:13px;line-height:17px}
.play[data-builtin-id="spore-fall"] .cross-supported{width:140px;height:60px}
.play[data-builtin-id="spore-fall"] .cross-supported button{width:44px;height:48px;top:6px;bottom:auto}
.play[data-builtin-id="spore-fall"] .cross-supported [data-b="left"]{left:0}
.play[data-builtin-id="spore-fall"] .cross-supported [data-b="down"]{left:48px}
.play[data-builtin-id="spore-fall"] .cross-supported [data-b="right"]{left:96px;right:auto}
/* Phone gameplay spends the available height on the vertical board. The same
   original keys form one thumb row and one44px system/settings row. */
.device:not(.control-deck):has(.play[data-builtin-id="spore-fall"]) .top{display:none}
.device:not(.control-deck):has(.play[data-builtin-id="spore-fall"]) main#view{padding-top:calc(var(--native-safe-top,0px) + 4px)!important}
.device:not(.control-deck) .play[data-builtin-id="spore-fall"]{display:grid;grid-template-rows:56px minmax(0,1fr) 46px calc(126px + var(--native-safe-bottom,0px));gap:2px;overflow:hidden!important}
.device:not(.control-deck) .play[data-builtin-id="spore-fall"] .bar{padding:0 10px}
.device:not(.control-deck) .play[data-builtin-id="spore-fall"] .screenbox{height:100%;min-height:0;aspect-ratio:auto}
.device:not(.control-deck) .play[data-builtin-id="spore-fall"] .brief{height:46px;min-height:0;max-height:46px;padding:2px 12px;overflow:hidden}
.device:not(.control-deck) .play[data-builtin-id="spore-fall"] .padzone{height:calc(126px + var(--native-safe-bottom,0px));min-height:0;margin:0;padding:4px 12px calc(8px + var(--native-safe-bottom,0px));display:flex;flex-direction:column;justify-content:flex-start}
.device:not(.control-deck) .play[data-builtin-id="spore-fall"] .padwrap{min-height:64px!important;height:64px;flex:none;display:flex;justify-content:space-between;align-items:center;gap:8px}
.device:not(.control-deck) .play[data-builtin-id="spore-fall"] .cross-supported,.device:not(.control-deck) .play[data-builtin-id="spore-fall"] .acts2{position:relative;left:auto;top:auto;transform:none}
.device:not(.control-deck) .play[data-builtin-id="spore-fall"] .acts2{width:120px;height:60px;display:flex;gap:8px}
.device:not(.control-deck) .play[data-builtin-id="spore-fall"] .acts2 button{position:static;width:56px;height:56px;flex:none;display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:18px;line-height:22px;padding:0}
.device:not(.control-deck) .play[data-builtin-id="spore-fall"] [data-b] .action-caption{position:static;white-space:nowrap;font:11px/16px var(--mono)}
.device:not(.control-deck) .play[data-builtin-id="spore-fall"] .padbottom{display:grid;grid-template-columns:minmax(0,1fr) 96px;gap:6px;margin:2px 0 0;padding:0}
.device:not(.control-deck) .play[data-builtin-id="spore-fall"] .sysrow{gap:6px}
.device:not(.control-deck) .play[data-builtin-id="spore-fall"] .sysrow button{flex:1;min-width:44px;min-height:44px;font-size:11px;letter-spacing:0;padding:4px 6px}
.device:not(.control-deck) .play[data-builtin-id="spore-fall"] .sysrow .rot{display:none}
.device:not(.control-deck) .play[data-builtin-id="spore-fall"] .padtools{display:block;margin:0}
.device:not(.control-deck) .play[data-builtin-id="spore-fall"] .padtools #deck-settings{width:100%;min-width:0;min-height:44px;padding:4px 6px}
/* Compact landscape keeps the portrait board tall, with a concise objective
   above the right thumb. This is distinct from a rotated phone stack. */
.control-deck[data-deck-axis="rails"] .play[data-builtin-id="spore-fall"] .brief{left:calc(var(--control-pane-x) + var(--control-pane-width) - 100px);top:calc(var(--game-pane-y) + 48px);width:100px;height:96px;max-height:96px;padding:0 4px}
.control-deck[data-deck-axis="rails"] .play[data-builtin-id="spore-fall"] .b25-context-main{font-size:12px;line-height:16px}

.play[data-builtin-id="spore-fall"] .b25-spore-next-pixels{width:40px!important;height:40px!important}
.control-deck .play[data-builtin-id="spore-fall"] .screenbox{top:calc(var(--game-display-y) + 12px);height:calc(var(--game-display-height) - 12px)}
.control-deck[data-deck-axis="rails"] .play[data-builtin-id="spore-fall"] .brief{top:calc(var(--game-pane-y) + 60px);height:84px;max-height:84px}
.play[data-builtin-id="spore-fall"] .b25-spore-next[hidden]{display:none}
.play[data-builtin-id="spore-fall"] .cross-supported button[data-b]{top:6px;bottom:auto}
.play[data-builtin-id="spore-fall"] .acts2 button{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0;line-height:22px}
.play[data-builtin-id="spore-fall"] [data-b] .action-caption{position:static;font:11px/16px var(--mono);white-space:nowrap}

/* The real game state shares the instruments row, so both status and next-pair
   labels stay readable without reducing the game name to fit a third column. */
.play[data-builtin-id="spore-fall"] .bar>.score{display:none}
.play[data-builtin-id="spore-fall"] .b25-title{margin:0}
.play[data-builtin-id="spore-fall"] .b25-spore-hud #run{grid-column:1;grid-row:2;justify-self:end;align-self:center;font:11px/18px var(--mono);font-style:normal;letter-spacing:0;border:1px solid currentColor;border-radius:4px;padding:0 4px;white-space:nowrap}
.play[data-builtin-id="spore-fall"] .b25-spore-hud #run.live{color:var(--mint)}
.play[data-builtin-id="spore-fall"] .b25-spore-hud #run.dead{color:var(--rose)}
/* The keep's sword/dash labels stay with their tactile action buttons. */
.play[data-builtin-id="hollow-keep"] .acts2{width:136px;height:124px}
.play[data-builtin-id="hollow-keep"] .acts2 button{width:64px;height:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0;line-height:22px}
.play[data-builtin-id="hollow-keep"] [data-b] .action-caption{position:static;font:11px/16px var(--mono);white-space:nowrap}
.play[data-builtin-id="hollow-keep"] .b25-context-main{font-size:13px;line-height:18px}
.play[data-builtin-id="hollow-keep"] .b25-hud{line-height:18px}
.play[data-builtin-id="hollow-keep"] .b25-title{line-height:24px}
.control-deck[data-deck-axis="rails"] .play[data-builtin-id="hollow-keep"] .acts2{width:84px;height:148px}

.device:not(.control-deck) .play[data-builtin-id="hollow-keep"] .padwrap{--acts-x:76%}

/* Ordinary tall phones give extra height to the trusted game field, rather
   than stretching an invisible thumb surface between the scene and the keys.
   CSS flow owns these phones; real folded panes and landscape stay engine-led.
   Spore keeps its separately fitted14-row board and compact control row. */
@media(max-width:480px) and (min-height:640px) and (orientation:portrait){
 .device.builtin25d-active:not(.control-deck) .play:not([data-builtin-id="spore-fall"]){display:grid;grid-template-rows:52px minmax(180px,1fr) 56px calc(264px + var(--native-safe-bottom,0px));overflow:hidden}
 .device.builtin25d-active:not(.control-deck) .play:not([data-builtin-id="spore-fall"]) .screenbox{height:100%;min-height:0;aspect-ratio:auto}
 .device.builtin25d-active:not(.control-deck) .play:not([data-builtin-id="spore-fall"]) .brief{height:56px;min-height:0;max-height:56px;overflow:hidden}
 .device.builtin25d-active:not(.control-deck) .play:not([data-builtin-id="spore-fall"]) .padzone{margin:0;min-height:0;height:calc(264px + var(--native-safe-bottom,0px));padding:6px 14px calc(12px + var(--native-safe-bottom,0px));justify-content:flex-start}
 .device.builtin25d-active:not(.control-deck) .play:not([data-builtin-id="spore-fall"]) .padwrap{min-height:132px;--rest-y:50%;--acts-y:50%}
 .device.builtin25d-active:not(.control-deck) .play:not([data-builtin-id="spore-fall"]) .padbottom{padding-top:12px}
}

/* The lander tilts on a two-key horizontal row; no up/down pseudo-controls. */
.play[data-builtin-id="touchdown"] .cross-horizontal{width:132px;height:64px}
.play[data-builtin-id="touchdown"] .cross-horizontal button{width:56px;height:56px;top:4px;bottom:auto}
.play[data-builtin-id="touchdown"] .cross-horizontal button[data-b="left"]{left:0}
.play[data-builtin-id="touchdown"] .cross-horizontal button[data-b="right"]{right:0}
.play[data-builtin-id="touchdown"] .b25-context-main{font-size:13px;line-height:17px}

/* The campaign queue is an actual 48px action beside the existing instruments. */
.play[data-builtin-course="spore-campaign"] .b25-spore-hud{grid-template-columns:minmax(0,1fr) 48px}

/* Actual Hollow Captain health, alongside the existing pixel-console HUD. */
.b25-hollow-captain{flex-basis:100%;display:flex;align-items:center;gap:8px;height:18px;font:11px/18px var(--mono)}
.b25-hollow-captain[hidden]{display:none}
.b25-hollow-captain-label{white-space:nowrap;color:var(--star)}
.b25-hollow-captain-track{flex:1;min-width:40px;height:7px;background:var(--space);border:1px solid var(--rose)}
.b25-hollow-captain-fill{display:block;height:100%;background:var(--rose)}

.device .screenbox .ready[data-fold-prompt] span,.device .screenbox .ready[data-fold-prompt] .play-instruction{box-sizing:border-box;max-width:100%}


/* Integrated App layout and readability evolution. Its companion JS
   marks this document. Original Jersey20 / SpaceMono / Archivo and console
   colors, physical key shadows, health glyphs and game rules are retained. */
.joyboy-ui-prototype .play .bar .score small,
.joyboy-ui-prototype .play .bar .score .pb small{font-size:12px;letter-spacing:.04em;line-height:1.25}
.joyboy-ui-prototype .play .bar .score i{font-size:12px;letter-spacing:.04em;line-height:1.25}
.joyboy-ui-prototype .play .howto .k{font-size:12px;letter-spacing:.025em;text-transform:none;line-height:1.35}
.joyboy-ui-prototype .play .bar .score{gap:6px}
.joyboy-ui-prototype .joyboy-semantic-title{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(min-width:700px) and (min-height:760px){
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck):not(:has(.play)){width:min(1120px,calc(100vw - 48px));height:min(900px,calc(100dvh - 180px));border-radius:24px}
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck)::before{display:none}
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck) .top{height:64px;padding:10px 24px}
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck) .create,
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck) .me{width:min(100%,800px);margin-inline:auto;padding-inline:24px}
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck) .slogan h1{font-size:40px;line-height:1.05}
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck) .slogan h1 br{display:none}
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck) .say textarea{min-height:120px;font-size:18px}
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck) .tabs{justify-content:center;padding-bottom:16px}
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck) .tabs button{max-width:220px}
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck) .galaxy{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(280px,1.2fr);grid-template-rows:auto auto minmax(0,1fr) auto;column-gap:24px;row-gap:10px;padding:12px 24px 20px}
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck) .galaxy .hd{grid-column:1 / -1;grid-row:1;padding:0}
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck) .galaxy .hd h1{font-size:32px;line-height:1.1}
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck) .galaxy .chips{grid-column:1 / -1;grid-row:2;width:min(100%,680px);padding:0}
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck) .galaxy .orbit{grid-column:1;grid-row:3;min-height:160px}
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck) .galaxy .dots{grid-column:1;grid-row:4}
 /* The loading fallback min-height must yield to the real desktop frame.
    Otherwise it pushes the tab keys past the frame on short laptop windows. */
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck):not(:has(.play)) main#view{min-height:0}
 /* Reserve the complete action row before allocating the live preview. */
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck) .galaxy .card{grid-column:2;grid-row:3 / 5;margin:0;align-self:stretch;height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden}
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck) .galaxy .scope{flex:1;min-height:0;aspect-ratio:auto}
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck) .galaxy .card .body{flex:none}
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck) .galaxy .card q{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck)~.desk-note{display:block;left:50%;transform:translateX(-50%);bottom:8px;width:min(1120px,calc(100vw - 48px));max-width:none;line-height:1.5}
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck)~.desk-note br{display:none}
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck)~.desk-note .legal{display:inline-flex;margin:0 0 0 12px;gap:4px}
}

@media(min-width:1000px) and (min-height:760px){
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck):has(.play){width:min(1120px,calc(100vw - 48px));height:min(900px,calc(100dvh - 180px));border-radius:24px}
 /* Builtins use the existing bounded layout engine's desktop panorama. Legacy
    keeps its opaque player and gets a game-first desktop grid, without changing
    its state, keys or saved pad coordinates. Inline saved positions still win. */
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck) .play:not([data-player-kind]){display:grid;grid-template-columns:minmax(0,1fr) 300px;grid-template-rows:44px minmax(0,1fr) auto;gap:12px 24px;padding:0 16px 16px}
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck) .play:not([data-player-kind]) .bar{grid-column:1 / -1;grid-row:1;padding:0}
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck) .play:not([data-player-kind]) .screenbox{grid-column:1;grid-row:2;align-self:center;margin:0;width:100%;height:auto}
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck) .play:not([data-player-kind]) .brief{grid-column:1;grid-row:3;padding:0;min-width:0}
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck) .play:not([data-player-kind]) .brief>.row1>b{font-size:24px;line-height:1.1}
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck) .play:not([data-player-kind]) .padzone{grid-column:2;grid-row:2 / 4;min-height:0;margin:0;padding:12px;border:1px solid var(--rule-lit);border-radius:12px;background:var(--panel);display:flex;flex-direction:column}
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck) .play:not([data-player-kind]) .padwrap{min-height:300px;--rest-x:50%;--rest-y:25%;--acts-x:50%;--acts-y:72%}
}
/* Existing legacy browser controls were clipped at320/390. Reuse the current
   Controls dialog for optional tools; the game retains its actual canvas size.
   Native and trusted2.5D decks keep their own verified composition. */
@media(max-width:480px){
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck) .play:not([data-player-kind]) .padwrap{min-height:132px}
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck) .play:not([data-player-kind]) .padtools button:not(#deck-settings){display:none}
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck) .play:not([data-player-kind]) #deck-settings{min-width:128px}
}
@media(max-width:480px) and (max-height:760px){
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck):has(.play:not([data-player-kind])) .top{display:none}
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck):has(.play:not([data-player-kind])) main#view{padding-top:6px!important}
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck) .play:not([data-player-kind]) .brief>q{display:none}
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck) .play:not([data-player-kind]) .bar{min-height:44px;padding:0 10px 4px}
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck) .play:not([data-player-kind]) .bar button{min-height:44px}
 .joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck) .play:not([data-player-kind]) .padzone{padding:4px 12px 8px;margin-top:0}
}
/* Actual legacy D-pad targets measured34px at320 and38px elsewhere. Keep the
   same cross and stored coordinates, with44px keys and bounded visual centers. */
.joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck) .play:not([data-player-kind]) .cross{width:132px;height:132px;left:clamp(66px,var(--rest-x),calc(100% - 66px));top:clamp(66px,var(--rest-y),calc(100% - 66px))}
.joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck) .play:not([data-player-kind]) .cross button{width:44px;height:44px;font-size:16px}
.joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck) .play:not([data-player-kind]) .cross button[data-b="up"],.joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck) .play:not([data-player-kind]) .cross button[data-b="down"]{left:44px}
.joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck) .play:not([data-player-kind]) .cross button[data-b="left"],.joyboy-ui-prototype .device:not(.app-native):not(.land):not(.control-deck) .play:not([data-player-kind]) .cross button[data-b="right"]{top:44px}

/* Pause and settings must remain reachable while a thumb is holding movement.
   Legacy busy fading formerly disabled the entire system-key row. */
.joyboy-ui-prototype .device:not(.land) .play.busy .padbottom{opacity:1;pointer-events:auto}
.joyboy-ui-prototype .device:not(.land) .play.busy .padbottom button{pointer-events:auto}

/* Moon keeps its yard/course instruments at one stable height while learning. */
.play[data-builtin-id="moon-raid"] .b25-hud{display:grid;grid-template-columns:minmax(0,1fr) auto;row-gap:0}
.play[data-builtin-id="moon-raid"] .b25-resources{grid-column:1/-1;white-space:pre-line}
.play[data-builtin-id="moon-raid"] .b25-health[data-outcome="won"]{color:var(--mint)}

/* Finite Paper uses a stable readable HUD and its actual bicycle directions. */
.play[data-builtin-id="paper-round"] .b25-hud{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 6px;font:11px/16px var(--mono)}
.play[data-builtin-id="paper-round"] .b25-title{font:19px/24px var(--px)}
.play[data-builtin-id="paper-round"] .b25-resources{grid-column:1/-1;white-space:pre-line}
.play[data-builtin-id="paper-round"] .cross-horizontal button{font-size:19px;line-height:1.1;padding:2px}
.play[data-builtin-id="paper-round"] .direction-caption{display:block;font:11px/14px var(--mono);color:var(--star)}

/* Keep the full Paper title clear of Falls/Glass at the narrow phone width. */
@media(max-width:360px){.play[data-builtin-id="paper-round"] .b25-title{font-size:17px}}

/* Preserve flow geometry while paused/unavailable, so a taller window recovers.
   Explicit marker visibility must not escape a hidden game display. */
.device[data-display-fit="unavailable"] .play .screenbox *{visibility:hidden!important}
@media(max-width:360px){.play[data-builtin-id="paper-round"] .b25-hud{column-gap:2px}}

/* Sled course quota and physical target are separate, measured labels. */
.play[data-builtin-id="sled-run"] .b25-hud{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 6px;font:11px/16px var(--mono)}
.play[data-builtin-id="sled-run"] .b25-resources{grid-column:1/-1;white-space:pre-line}
.play[data-builtin-id="sled-run"] .b25-title{min-width:0}
.b25-sled-target{position:absolute;display:flex;align-items:center;gap:4px;box-sizing:border-box;max-width:none;white-space:nowrap;font:13px/16px var(--mono);padding:3px 6px;background:#0f1530ef;border:1px solid var(--solar);border-radius:3px;color:var(--star);pointer-events:none}
.b25-sled-target[hidden]{display:none!important}.b25-sled-bearing{display:inline-block;width:14px;text-align:center;transform-origin:center}

/* Local account/settings candidate only; original palette/fonts/tactile controls retained. */
.device .me .stat small{white-space:normal;overflow:visible;text-overflow:clip;letter-spacing:.04em;line-height:16px;min-height:32px}
.device .me .stat button{padding-inline:8px}
.device .me .credits.legacy .big b{font-size:36px;line-height:40px;overflow-wrap:normal}
.device .me .credits.legacy .big{align-items:start}
@media(max-width:480px){
 .device .me #chuser{display:grid;grid-template-columns:minmax(0,1fr);gap:6px}
 .device .me #chuser .k,.device .me #chuser .v{min-width:0;white-space:normal;text-align:left;overflow-wrap:anywhere}
 .device .me #chuser .k small{margin-top:3px}
}

/* Real return-air margin is actionable, even on the smallest game display. */
.play[data-builtin-id="deep-diver"] .b25-resources[data-air-low="true"]{color:#ffd58c;font-weight:700}
.play[data-builtin-id="deep-diver"] .b25-context[data-air-low="true"] .b25-context-main{color:#ffd58c;font-weight:700}

#run.counting,.play[data-builtin-id="spore-fall"] .b25-spore-hud #run.live.counting{color:var(--solar);border-color:var(--solar)}

/* Me uses its actual visible identity as the page title, without a spacer row. */
.device .me .me-identity-heading{margin:0;font:inherit;color:var(--star)}
.device .me .me-guest-heading{font:700 21px/1.45 var(--px);word-break:break-word}
.device .me .me-fold-heading{margin:0;font:inherit}
.device .me .me-credits-heading{margin:0;font:400 18px/22px var(--px);color:var(--solar)}
.device .me .credits.legacy .me-credits-heading{color:var(--plasma)}
.device .me .credits.empty .me-credits-heading{color:var(--rose)}
.device .me .stat small{font-size:12px;letter-spacing:0;text-transform:none}

/* Tall narrow phones enlarge the two action keys to144px as a group. Keep
   that real group inside its pad after rotation/resizing; valid saved anchors,
   tactile key sizes and the continuous game field remain unchanged. */
@media(max-width:360px) and (min-height:820px) and (orientation:portrait){
 .device.builtin25d-active:not(.control-deck):not(.land) .play:is([data-builtin-id="sled-run"],[data-builtin-id="touchdown"],[data-builtin-id="tide-pool"],[data-builtin-id="deep-diver"],[data-builtin-id="duck-herd"],[data-builtin-id="moon-raid"],[data-builtin-id="paper-round"]) .acts2{left:min(var(--acts-x),calc(100% - 72px))}
}

/* The desktop phone frame is390px wide even when its browser is700-999px.
   Use the same compact thumb controls as a short phone; viewport-width-only
   media queries otherwise leave Controls below the frame. Native/fold and
   the wider desktop panorama keep their own layouts. */
@media(min-width:700px) and (max-width:999px) and (min-height:760px){
 .joyboy-ui-prototype .device.builtin25d-active:not(.app-native):not(.land):not(.control-deck)~.desk-note{display:none}
 .joyboy-ui-prototype .device:not(.app-native).builtin25d-active:not(.control-deck) .top{display:none}
 .joyboy-ui-prototype .device:not(.app-native).builtin25d-active:not(.control-deck) main#view{padding:6px 0 0!important}
 .joyboy-ui-prototype .device:not(.app-native).builtin25d-active:not(.control-deck) .play .bar{min-height:44px;padding:0 10px 4px}
 .joyboy-ui-prototype .device:not(.app-native).builtin25d-active:not(.control-deck) .play .bar button{min-height:44px}
 .joyboy-ui-prototype .device:not(.app-native).builtin25d-active:not(.control-deck) .play .brief{min-height:48px;max-height:56px;overflow:hidden;padding:6px 12px}
 .joyboy-ui-prototype .device:not(.app-native).builtin25d-active:not(.control-deck) .b25-route-legend{display:none}
 .joyboy-ui-prototype .device:not(.app-native).builtin25d-active:not(.control-deck) .play .padzone{flex:1;min-height:180px;padding:0 10px 6px;margin-top:0}
 .joyboy-ui-prototype .device:not(.app-native).builtin25d-active:not(.control-deck) .padwrap{flex:1;min-height:110px;height:110px;padding:0;align-items:center}
 .joyboy-ui-prototype .device:not(.app-native).builtin25d-active:not(.control-deck) .stickzone{height:110px;min-width:120px}
 .joyboy-ui-prototype .device:not(.app-native).builtin25d-active:not(.control-deck) .stick,.joyboy-ui-prototype .device:not(.app-native).builtin25d-active:not(.control-deck) .stickzone .rest{width:96px;height:96px}
 .joyboy-ui-prototype .device:not(.app-native).builtin25d-active:not(.control-deck) .stickzone .rest{margin:-48px 0 0 -48px}
 .joyboy-ui-prototype .device:not(.app-native).builtin25d-active:not(.control-deck) .stick .knob{width:44px;height:44px;margin:-22px 0 0 -22px}
 .joyboy-ui-prototype .device:not(.app-native).builtin25d-active:not(.control-deck) .padbottom{padding-top:4px;margin-top:0}
 .joyboy-ui-prototype .device:not(.app-native).builtin25d-active:not(.control-deck) .sysrow{gap:6px}
 .joyboy-ui-prototype .device:not(.app-native).builtin25d-active:not(.control-deck) .sysrow button{min-height:44px;padding:6px 10px;font:12px/1.2 var(--mono)}
 .joyboy-ui-prototype .device:not(.app-native).builtin25d-active:not(.control-deck) .sysrow .rot{display:none}
 .joyboy-ui-prototype .device:not(.app-native).builtin25d-active:not(.control-deck) .padtools{display:flex;justify-content:center;gap:8px;margin-top:5px;flex-wrap:nowrap}
 .joyboy-ui-prototype .device:not(.app-native).builtin25d-active:not(.control-deck) .padtools>button:not(#deck-settings){display:none}
 .joyboy-ui-prototype .device:not(.app-native).builtin25d-active:not(.control-deck) .padtools #deck-settings{min-height:44px;min-width:112px;padding:4px 12px}
}

/* In a desktop window the portrait frame still has phone-sized controls.
   Reserve 52+56+264px for chrome/context/deck; give the remaining real height
   to the game. Native folds, manual landscape and Spore keep their own fit. */
@media(min-width:700px) and (max-width:999px) and (min-height:760px){
 .joyboy-ui-prototype .device.builtin25d-active:not(.app-native):not(.land):not(.control-deck) .play:not([data-builtin-id="spore-fall"]){display:grid;grid-template-rows:52px minmax(180px,1fr) 56px 264px;overflow:hidden}
 .joyboy-ui-prototype .device.builtin25d-active:not(.app-native):not(.land):not(.control-deck) .play:not([data-builtin-id="spore-fall"]) .screenbox{height:100%;min-height:0;aspect-ratio:auto}
 .joyboy-ui-prototype .device.builtin25d-active:not(.app-native):not(.land):not(.control-deck) .play:not([data-builtin-id="spore-fall"]) .brief{height:56px;min-height:0;max-height:56px;overflow:hidden}
 .joyboy-ui-prototype .device.builtin25d-active:not(.app-native):not(.land):not(.control-deck) .play:not([data-builtin-id="spore-fall"]) .padzone{margin:0;min-height:0;height:264px;padding:6px 14px 12px;justify-content:flex-start}
 .joyboy-ui-prototype .device.builtin25d-active:not(.app-native):not(.land):not(.control-deck) .play:not([data-builtin-id="spore-fall"]) .padwrap{min-height:132px;--rest-y:50%;--acts-y:50%}
 .joyboy-ui-prototype .device.builtin25d-active:not(.app-native):not(.land):not(.control-deck) .play:not([data-builtin-id="spore-fall"]) .stickzone{height:100%}
 .joyboy-ui-prototype .device.builtin25d-active:not(.app-native):not(.land):not(.control-deck) .play:not([data-builtin-id="spore-fall"]) .padbottom{padding-top:12px}
}

/* Keep the existing 14-row culture board and 126px thumb tray together.
   The framed-desktop generic 180px tray must not overwrite Spore geometry. */
@media(min-width:700px) and (max-width:999px) and (min-height:760px){
 .joyboy-ui-prototype .device.builtin25d-active:not(.app-native):not(.land):not(.control-deck) .play[data-builtin-id="spore-fall"] .bar{min-height:56px;height:56px;padding:0 10px}
 .joyboy-ui-prototype .device.builtin25d-active:not(.app-native):not(.land):not(.control-deck) .play[data-builtin-id="spore-fall"] .brief{height:46px;min-height:0;max-height:46px;padding:2px 12px}
 .joyboy-ui-prototype .device.builtin25d-active:not(.app-native):not(.land):not(.control-deck) .play[data-builtin-id="spore-fall"] .padzone{height:126px;min-height:0;margin:0;padding:4px 12px 8px;flex:none}
 .joyboy-ui-prototype .device.builtin25d-active:not(.app-native):not(.land):not(.control-deck) .play[data-builtin-id="spore-fall"] .padwrap{min-height:64px!important;height:64px;flex:none}
 .joyboy-ui-prototype .device.builtin25d-active:not(.app-native):not(.land):not(.control-deck) .play[data-builtin-id="spore-fall"] .padbottom{padding:0;margin:2px 0 0;min-width:0}
 .joyboy-ui-prototype .device.builtin25d-active:not(.app-native):not(.land):not(.control-deck) .play[data-builtin-id="spore-fall"] .sysrow{min-width:0}
 .joyboy-ui-prototype .device.builtin25d-active:not(.app-native):not(.land):not(.control-deck) .play[data-builtin-id="spore-fall"] .sysrow button{width:auto;min-width:44px;height:44px;min-height:44px;flex:1;padding:4px 6px;font:11px/1.2 var(--mono)}
 .joyboy-ui-prototype .device.builtin25d-active:not(.app-native):not(.land):not(.control-deck) .play[data-builtin-id="spore-fall"] .padtools{display:block;margin:0}
 .joyboy-ui-prototype .device.builtin25d-active:not(.app-native):not(.land):not(.control-deck) .play[data-builtin-id="spore-fall"] .padtools #deck-settings{width:100%;min-width:0;height:44px;min-height:44px;padding:4px 6px}
}

/* Hollow run ledger stays in Controls; combat canvas/HUD geometry are unchanged. */
.experience-settings .hollow-fire-progress{margin:14px 0;color:inherit}
.experience-settings .hollow-fire-progress summary{min-height:44px;display:flex;align-items:center;gap:10px;cursor:pointer;font:16px/1.4 var(--sans,system-ui);color:var(--solar,#ffb347)}
.experience-settings .hollow-fire-progress summary::before{content:'+';font:20px/1 var(--mono,monospace);width:18px;flex-shrink:0}
.experience-settings .hollow-fire-progress[open] summary::before{content:'−'}
.experience-settings .hollow-fire-progress ul{margin:8px 0;padding:0;list-style:none}
.experience-settings .hollow-fire-progress li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;padding:6px 0;font:14px/1.45 var(--sans,system-ui)}
.experience-settings .hollow-fire-progress li span:last-child{color:var(--dim,#a6a4bd)}
.experience-settings .hollow-fire-progress p{margin:6px 0;font-size:13px;line-height:1.45}

/* Existing trusted courses can be chosen before landing; no extra card row. */
.card .name .world-heading{display:contents}
.card .name.with-courses .world-heading{min-width:0;display:flex;flex-direction:column;gap:2px}
.card .name.with-courses{align-items:center}
.card .name .course-door{min-height:44px;min-width:82px;flex:none;padding:0 10px;border:1px solid var(--rule-lit);border-radius:8px;background:var(--space);color:var(--solar);font:14px var(--sans);display:flex;align-items:center;justify-content:center;gap:8px}
.card .course-door i{font-style:normal;font-size:17px}
.course-sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.course-sheet-heading h2{min-width:0;line-height:1.1}
.course-sheet-heading .course-close{min-height:44px;min-width:64px;flex:none;font:14px var(--sans)}
.course-sheet .course-list{margin-top:14px;display:flex;flex-direction:column}
.course-sheet .course-option{min-height:64px;width:100%;padding:12px 4px;text-align:left;border:0;border-top:1px solid var(--rule);background:none;color:var(--star);display:flex;flex-direction:column;gap:4px;line-height:1.4}
.course-sheet .course-option b{font:600 15px var(--sans)}
.course-sheet .course-option span{font:14px/1.45 var(--sans);color:var(--dust)}
.course-sheet .course-option small{font:12px/1.4 var(--mono);color:var(--solar)}
.course-sheet .course-option:focus-visible,.card .course-door:focus-visible{outline:2px solid var(--solar);outline-offset:2px}

@media(max-width:699px) and (max-height:640px){
 .device.flow .galaxy{flex:none;height:calc(100svh - env(safe-area-inset-top,0px) - 48px - var(--tabsh,84px) - var(--a2hsh,0px));min-height:0}
 .device.flow .galaxy .orbit{flex:0 0 90px}
 .device.flow .galaxy .card{flex:1;min-height:0;display:flex;flex-direction:column}
 .device.flow .galaxy .scope{flex:1;min-height:0;aspect-ratio:auto}
 .device.flow .galaxy .card .body{flex:none}
}

/* Native disclosure preserves the complete course text below its actions. */
.experience-settings .settings-course-guide{margin:8px 0 16px}
.experience-settings .settings-course-guide summary{min-height:44px;box-sizing:border-box;padding:10px 0;cursor:pointer;font:14px/24px var(--sans);color:var(--star)}
.experience-settings .settings-course-guide summary:focus-visible{outline:2px solid var(--solar);outline-offset:3px}
.experience-settings .settings-course-guide p{margin:8px 0 14px}

.experience-settings .settings-controls button[aria-current="true"],.experience-settings .settings-controls button[aria-pressed="true"]{border-color:var(--solar);text-decoration:underline;text-underline-offset:3px}

/* Paper reserves its measured HUD before centering the original result card. */
.b25-slot-result:has(>.b25-paper-round-result){top:var(--paper-result-top,44px)}

/* Last contact is optional Controls content; the live game HUD/brief is unchanged. */
.experience-settings .touchdown-contact-debrief p{font:13px/1.5 var(--sans);overflow-wrap:break-word}

/* Native gameplay keeps its own Back/status row below the actual safe area.
   The branded header remains on reading screens; never trade away the inset
   when a compact layout hides that header. */
.device.app-native.builtin25d-active:not(.control-deck) .top{display:none}
.device.app-native.builtin25d-active:not(.control-deck) main#view{padding:calc(var(--native-safe-top,0px) + 4px) 0 0!important;min-height:0}
/* The board now has a real thumb stick, not three forced arrow buttons. */
.device:not(.control-deck) .play[data-builtin-id="spore-fall"]:has(.stickzone){grid-template-rows:56px minmax(0,1fr) 46px calc(156px + var(--native-safe-bottom,0px))}
.device:not(.control-deck) .play[data-builtin-id="spore-fall"]:has(.stickzone) .padzone{height:calc(156px + var(--native-safe-bottom,0px))}
.device:not(.control-deck) .play[data-builtin-id="spore-fall"]:has(.stickzone) .padwrap{height:94px;min-height:94px!important}
.device:not(.control-deck) .play[data-builtin-id="spore-fall"] .stickzone{position:relative;inset:auto;flex:1;min-width:96px;height:104px;--rest-x:50%;--rest-y:50%}
.device:not(.control-deck) .play[data-builtin-id="spore-fall"] .stick,.device:not(.control-deck) .play[data-builtin-id="spore-fall"] .stickzone .rest{width:96px;height:96px}
.device:not(.control-deck) .play[data-builtin-id="spore-fall"] .stickzone .rest{margin:-48px 0 0 -48px}
.device:not(.control-deck) .play[data-builtin-id="spore-fall"] .stick .knob{width:44px;height:44px;margin:-22px 0 0 -22px}
/* Gameplay hints occupy the header lane, not the Start/Controls hit areas. */
.control-deck[data-deck-axis="rails"] .play[data-player-kind="builtin25d"]:not([data-builtin-id="spore-fall"]) .brief{left:var(--game-display-x);top:var(--game-pane-y);width:var(--game-display-width);height:44px;max-height:44px;display:flex;align-items:center;padding:0 8px}
/* Tall boards retain 280px in compact landscape; utilities live on the left. */
.control-deck.tall-board-deck .play[data-builtin-id="spore-fall"] .screenbox{top:var(--game-display-y);height:var(--game-display-height)}
.control-deck.tall-board-deck .sysrow{left:44px;top:auto;bottom:0;transform:translateX(-50%)}
.control-deck.tall-board-deck .sysrow #startb{width:88px}
.control-deck.tall-board-deck .padtools{left:44px;top:auto;bottom:48px;transform:translateX(-50%);width:88px}
.control-deck.tall-board-deck .padtools #deck-settings{width:88px;min-width:0;padding:4px;font-size:12px}
.control-deck.tall-board-deck .acts2{top:calc(100% - 66px)}
.control-deck.tall-board-deck .play[data-builtin-id="spore-fall"] .brief{top:var(--control-pane-y);height:132px;max-height:132px}
@media(max-width:480px) and (max-height:639px) and (orientation:portrait){
 .device.app-native.builtin25d-active:not(.control-deck) .play:not([data-builtin-id="spore-fall"]){display:grid;grid-template-rows:48px minmax(180px,1fr) 48px calc(184px + var(--native-safe-bottom,0px));overflow:hidden}
 .device.app-native.builtin25d-active:not(.control-deck) .play:not([data-builtin-id="spore-fall"]) .screenbox{height:100%;min-height:0;aspect-ratio:auto}
 .device.app-native.builtin25d-active:not(.control-deck) .play:not([data-builtin-id="spore-fall"]) .padzone{height:calc(184px + var(--native-safe-bottom,0px));min-height:0;padding:0 10px calc(6px + var(--native-safe-bottom,0px));margin:0}
 .device.app-native.builtin25d-active:not(.control-deck) .play:not([data-builtin-id="spore-fall"]) .padwrap{height:132px;min-height:132px;flex:none}
 .device.app-native.builtin25d-active:not(.control-deck) .play:not([data-builtin-id="spore-fall"]) .padbottom{display:grid;grid-template-columns:minmax(0,1fr) 96px;gap:6px;padding:0;margin:0}
 .device.app-native.builtin25d-active:not(.control-deck) .play:not([data-builtin-id="spore-fall"]) .sysrow button{flex:1;padding:4px}
 .device.app-native.builtin25d-active:not(.control-deck) .play:not([data-builtin-id="spore-fall"]) .padtools{display:block;margin:0}
 .device.app-native.builtin25d-active:not(.control-deck) .play:not([data-builtin-id="spore-fall"]) .padtools #deck-settings{min-width:0;width:96px;padding:4px}
}
.beta-account-note{margin:8px 0 16px;color:var(--solar);font:13px/1.5 var(--sans)}

/* Keep Spore joystick input inside its row, away from Resume. */
/* The 94px Spore pad row must not leave an invisible joystick hit strip over Resume. */
.device:not(.control-deck) .play[data-builtin-id="spore-fall"] .stickzone{height:94px}

/* Preserve keyboard/scroll access below the sticky Controls heading. */
.experience-settings{scroll-padding-bottom:8px}

/* Localized native edge cut: only the display and thumb tray use the known
   free region below it; safe chrome and modal insets remain unchanged. */
.control-deck[data-deck-axis="localized-rows"] .play[data-player-kind="builtin25d"] .brief{left:var(--game-pane-x);top:calc(var(--game-pane-y) + 48px);width:var(--game-pane-width);height:calc(var(--game-pane-height) - 48px);max-height:calc(var(--game-pane-height) - 48px);min-height:0;padding:6px 0;overflow:auto;font-size:13px}
.control-deck[data-deck-axis="localized-rows"] .play .padzone{top:var(--control-pane-y);height:var(--control-pane-height);padding:0 8px;background:var(--panel)}
.control-deck[data-deck-axis="localized-rows"] .padwrap{min-height:132px!important;--rest-x:23%;--rest-y:50%;--acts-x:77%;--acts-y:50%}
.control-deck[data-deck-axis="localized-rows"] .stick,.control-deck[data-deck-axis="localized-rows"] .stickzone .rest{width:96px;height:96px}
.control-deck[data-deck-axis="localized-rows"] .stickzone .rest{margin:-48px 0 0 -48px}
.control-deck[data-deck-axis="localized-rows"] .stick .knob{width:44px;height:44px;margin:-22px 0 0 -22px}
.control-deck[data-deck-axis="localized-rows"] .padbottom{display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:8px;padding:4px 0 8px;margin:0}
.control-deck[data-deck-axis="localized-rows"] .sysrow{margin:0;gap:8px}
.control-deck[data-deck-axis="localized-rows"] .sysrow button{flex:1;min-height:44px;padding:4px;font-size:12px}
.control-deck[data-deck-axis="localized-rows"] .padtools{display:block;margin:0}
.control-deck[data-deck-axis="localized-rows"] .padtools>button:not(#deck-settings){display:none}
.control-deck[data-deck-axis="localized-rows"] .padtools #deck-settings{width:100px;min-width:44px;min-height:44px;padding:4px;font-size:11px}

/* Editing owns the compact footer; keep Done and saved-layout reset reachable. */
.control-deck[data-deck-axis="localized-rows"] .padwrap.editing~.padbottom{display:block}
.control-deck[data-deck-axis="localized-rows"] .padwrap.editing~.padbottom .sysrow{display:none}
.control-deck[data-deck-axis="localized-rows"] .padwrap.editing~.padbottom .padtools{display:flex;gap:8px}
.control-deck[data-deck-axis="localized-rows"] .padwrap.editing~.padbottom .padtools>#deck-settings{display:none}
.control-deck[data-deck-axis="localized-rows"] .padwrap.editing~.padbottom .padtools>#padedit,
.control-deck[data-deck-axis="localized-rows"] .padwrap.editing~.padbottom .padtools>#paddefault{display:block;flex:1;min-width:44px;min-height:44px;margin:0;padding:4px;font-size:12px}

/* Native geometry changes move the rest ring immediately; keep the stick aligned. */
.device.app-native.builtin25d-active .stickzone .stick{transition:none}

/* Native browsing is a scrollable document, never a shrinking crop of a card.
   Keep the existing console controls and reserve a real row for world navigation. */
.device.app-native:not(:has(.play)) main#view{overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
.device.app-native .galaxy{flex:none;min-height:100%;height:auto;padding-bottom:12px}
.device.app-native .galaxy>.hd,.device.app-native .galaxy>.chips,.device.app-native .galaxy>.dots{flex:none}
.device.app-native .galaxy>.orbit{flex:0 0 52px;min-height:52px;overflow:hidden}
.device.app-native .galaxy .orbit .arrow{height:48px;width:48px}
.device.app-native .galaxy .orbit .otitle{display:none} /* The card already names the selected world. */
.device.app-native .galaxy .card{flex:none;min-height:0;height:auto;overflow:hidden}
.device.app-native .galaxy .scope{width:100%;aspect-ratio:16/9;flex:none;max-height:max(140px,calc(100dvh - var(--native-safe-top,0px) - var(--native-safe-bottom,0px) - 440px))}
.device.app-native .galaxy .card .body{min-width:0;display:flex;flex-direction:column}
.device.app-native .galaxy .card .name{order:0}
.device.app-native .galaxy .card .acts{order:1;margin-top:8px}
.device.app-native .galaxy .card .preview-status{order:2;font:11px/1.4 var(--mono);color:var(--plasma);margin-top:8px}
.device.app-native .galaxy .card .pbline,.device.app-native .galaxy .card .meta{order:3}
.device.app-native .galaxy .card q{order:4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* The status belongs to the card, outside the renderer's target labels. */
.preview-status{font:11px/1.4 var(--mono);color:var(--plasma);margin-top:8px}
@media(orientation:landscape){
 .device.app-native .galaxy .card:has(.scope){display:grid;grid-template-columns:minmax(0,1.2fr) minmax(230px,1fr);align-items:stretch}
 .device.app-native .galaxy .scope{aspect-ratio:auto;min-height:clamp(160px,calc(100dvh - var(--native-safe-top,0px) - var(--native-safe-bottom,0px) - 250px),360px);max-height:none;height:100%;border-bottom:0;border-right:1px solid var(--rule)}
 .device.app-native .galaxy .card .body{padding:12px}
 .device.app-native .galaxy>.hd{display:none}
 .device.app-native .galaxy>.chips{padding-top:4px}
 .device.app-native .galaxy>.orbit{flex-basis:48px;min-height:48px}
 .device.app-native .tabs{padding-top:6px;padding-bottom:calc(var(--native-safe-bottom,0px) + 6px)}
 .device.app-native .tabs button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:4px}
 .device.app-native .tabs button i{margin:0}
}
/* A bounded top-only OS cut may reserve the header without narrowing the entire
   document. JS verifies every active cut before granting this layout. */
.device.app-native[data-browse-wide="true"]:not(:has(.play)){padding-left:0;padding-right:0}
.device.app-native[data-browse-wide="true"]:not(:has(.play)) .top{padding-left:calc(var(--native-safe-left,0px) + 18px);padding-right:calc(var(--native-safe-right,0px) + 18px)}
.device.app-native[data-browse-wide="true"] .galaxy>.hd,.device.app-native[data-browse-wide="true"] .galaxy>.chips,.device.app-native[data-browse-wide="true"] .galaxy>.orbit,.device.app-native[data-browse-wide="true"] .galaxy>.dots{margin-left:var(--native-safe-left,0px);margin-right:var(--native-safe-right,0px)}
.device.app-native[data-browse-wide="true"] .galaxy>.card{margin-top:var(--browse-clearance,0px)}
.device.app-native[data-browse-wide="true"] main#view{clip-path:var(--browse-clip)}
.device.app-native[data-browse-wide="true"] .create,.device.app-native[data-browse-wide="true"] .me{padding-top:calc(var(--browse-flow-clearance,0px) + 12px)}

/* Built-in cards already give the name, genre and course entry. Keep the
   original pitch in source data, out of the primary action path. */
.device .galaxy .card[data-preview-builtin="true"] q{display:none}
/* A full-width browser surface also needs a full-width modal backdrop.
   placeAppSheet still puts the sheet itself in the verified safe pane. */
.device.app-native[data-browse-wide="true"] .sheetwrap{inset:0}

/* Sign-in has a visible escape route on every step, including touch-only use. */
.signin-sheet .signin-head{position:sticky;top:-14px;z-index:2;display:flex;align-items:center;gap:12px;padding:10px 0;background:var(--panel)}
.signin-sheet .signin-head h2{flex:1;min-width:0;margin:0}
.signin-sheet .signin-close{flex:none;min-width:64px;min-height:44px;border:1px solid var(--rule-lit);border-radius:8px;background:var(--pad-bg);color:var(--star);font:12px var(--mono)}
.signin-sheet .captcha{display:grid;grid-template-columns:150px minmax(44px,1fr)}
.signin-sheet .captcha .img{width:150px;height:44px;grid-column:1;grid-row:1}
.signin-sheet .captcha input{grid-column:1 / -1;grid-row:2;width:100%;min-width:0;min-height:44px}
.signin-sheet .captcha #cap-new{grid-column:2;grid-row:1;min-width:44px;min-height:44px;border:1px solid var(--rule-lit);border-radius:8px}

/* Short mobile web viewports scroll the document instead of squeezing a live
   preview into a strip. The existing fixed tabs reserve their own padding. */
@media(max-height:640px){
 .device.flow:not(.app-native) .galaxy{height:auto;min-height:0}
 .device.flow:not(.app-native) .galaxy .card{flex:none}
 .device.flow:not(.app-native) .galaxy .scope{flex:none;min-height:144px;aspect-ratio:16/9}
}

/* Compact, reachable settings; the whole label is the touch target. */
.experience-settings .settings-check{min-height:44px;cursor:pointer}
.experience-settings .settings-layout-help{margin:12px 0 20px}
.experience-settings .beta-account-note{font-size:12px;line-height:1.5;margin:16px 0 0}

/* A short desktop window still puts the selected game's entry beside its preview. */
@media(min-width:900px) and (max-height:759px){
 .device.flow:not(.app-native) .galaxy{height:auto;min-height:0;width:100%;max-width:1120px;margin:0 auto}
 .device.flow:not(.app-native) .galaxy>.orbit{flex:0 0 52px;min-height:52px;overflow:hidden}
 .device.flow:not(.app-native) .galaxy .orbit .otitle{display:none}
 .device.flow:not(.app-native) .galaxy .card:has(.scope){display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr);align-items:stretch;flex:none}
 .device.flow:not(.app-native) .galaxy .scope{width:100%;height:clamp(160px,calc(100svh - 340px),380px);min-height:0;max-height:none;aspect-ratio:auto;border-bottom:0;border-right:1px solid var(--rule)}
 .device.flow:not(.app-native) .galaxy .card .body{min-width:0;display:flex;flex-direction:column}
 .device.flow:not(.app-native) .galaxy .card .name{order:0}
 .device.flow:not(.app-native) .galaxy .card .acts{order:1;margin-top:12px}
 .device.flow:not(.app-native) .galaxy .preview-status{order:2;font:12px/1.4 var(--mono);color:var(--plasma);margin-top:12px}
 .device.flow:not(.app-native) .galaxy .pbline,.device.flow:not(.app-native) .galaxy .meta{order:3}
 .device.flow:not(.app-native) .galaxy .card q{order:4}
}

/* Compact phone browsing keeps the complete entry row above the tab bar. */
@media(max-height:639px) and (orientation:portrait){
 .device.app-native .galaxy>.chips{padding-top:4px}
 .device.app-native .galaxy>.orbit{flex-basis:48px;min-height:48px}
}

/* Universe: a planet browser, with independently composed compact and expanded
   surfaces. No legacy .galaxy strip or live attract game controls its height. */
.device:has(.universe) #bg{opacity:.2}
.device main.universe-view{overflow:auto!important;min-height:0;scrollbar-width:thin}
.universe{--universe-height:600px;box-sizing:border-box;height:var(--universe-height);min-height:400px;padding:8px 12px 12px;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:44px minmax(140px,1fr) 70px auto;gap:8px;isolation:isolate}
.universe [hidden]{display:none!important}
.universe-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;grid-row:1}
.universe-toolbar h1{font:26px/1 var(--px);letter-spacing:.015em;white-space:nowrap}
.universe-filter{display:block;min-width:0;max-width:52%}
.universe-filter select{width:100%;min-height:44px;max-width:180px;border:1px solid var(--rule-lit);border-radius:8px;background:var(--pad-bg);color:var(--star);font:12px var(--mono);padding:8px 26px 8px 10px;text-overflow:ellipsis}
.planet-stage{grid-row:2;position:relative;min-width:0;min-height:140px;overflow:hidden;border:1px solid #333b60;border-radius:18px;background:#070b1a;touch-action:pan-y}
.planet-stage>canvas{display:block;width:100%;height:100%;position:absolute;inset:0;image-rendering:pixelated}
.planet-coordinate{position:absolute;left:14px;top:12px;color:var(--dust);font:11px var(--mono);letter-spacing:.1em}
.planet-caption{position:absolute;bottom:12px;left:50px;right:50px;text-align:center;pointer-events:none;display:flex;flex-direction:column;gap:3px}
.planet-caption b{font:26px/1 var(--px);color:var(--star);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.planet-caption span{font:10px/1.4 var(--mono);color:var(--dust)}
.planet-prev,.planet-next{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:52px;border:1px solid var(--rule-lit);border-radius:10px;background:#131a35;color:var(--star);font:32px var(--px)}
.planet-prev{left:8px}.planet-next{right:8px}.planet-stage button:disabled{opacity:.3;cursor:default}
.world-selector{grid-row:3;display:flex;gap:5px;min-width:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;padding:2px 0;scroll-snap-type:x proximity}
.world-stop{flex:0 0 82px;min-width:44px;min-height:64px;position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;padding:2px 3px 5px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--dust);scroll-snap-align:center}
.world-stop canvas{width:58px;height:34px;image-rendering:pixelated;flex:none}
.world-stop span{font:13px/1.1 var(--px);max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.world-stop[aria-pressed="true"]{background:#1b213e;border-color:var(--solar);color:var(--solar)}
.universe button:focus-visible,.universe select:focus-visible,.universe summary:focus-visible{outline:3px solid var(--plasma);outline-offset:-3px}
.world-detail{grid-row:4;min-width:0;align-self:start;color:var(--star)}
.world-intro{display:none}.world-genre{font:11px/1.4 var(--mono);color:var(--plasma);text-transform:uppercase;letter-spacing:.08em}
.world-intro h2{font:36px/1 var(--px);margin-top:8px;overflow-wrap:anywhere}
.world-intro p,.world-detail>p{font:14px/1.5 var(--body,Archivo,sans-serif);color:var(--dust);margin:12px 0 18px}
.world-primary{display:flex;gap:8px;align-items:stretch}
.world-primary .gokey,.world-detail>.gokey{flex:1;min-height:48px;border:2px solid var(--solar);border-radius:12px;background:var(--solar);box-shadow:inset 0 -3px 0 #ce852d;color:#241503;font:24px var(--px);padding:6px 12px}
.world-primary .course-door{flex:0 1 auto;min-width:82px;min-height:48px;border:1px solid var(--rule-lit);border-radius:10px;background:var(--pad-bg);color:var(--star);font:12px var(--mono);padding:6px 12px}
.world-secondary{display:flex;gap:8px;margin-top:4px;align-items:start}
.world-secondary>button,.world-more summary{font:12px var(--mono);color:var(--dust);min-height:44px;padding:10px 12px;background:transparent;border:0;text-align:center;cursor:pointer}
.world-secondary>button{flex:1}.world-more{flex:1;min-width:0}.world-more summary{list-style:none}.world-more summary::-webkit-details-marker{display:none}.world-more summary::after{content:' +';color:var(--solar)}.world-more[open] summary::after{content:' −'}
.world-more>div{display:flex;gap:4px;flex-wrap:wrap}.world-more button{flex:1;min-width:44px;min-height:44px;background:var(--pad-bg);border:1px solid var(--rule-lit);border-radius:8px;color:var(--star);font:12px var(--mono)}
.world-detail .pbline,.world-detail .meta{font:11px/1.5 var(--mono);margin:4px 0;color:var(--dust)}
.world-preview{margin-top:8px;border-top:1px solid var(--rule);padding-top:8px}.world-preview .preview-status{margin:0 0 6px}.world-preview .scope{position:relative;width:100%;aspect-ratio:16/9;min-height:140px;overflow:hidden;border:1px solid var(--rule-lit);border-radius:10px;background:var(--space)}
.universe[data-universe-layout="expanded"]{grid-template-columns:minmax(0,1.3fr) minmax(240px,1fr);grid-template-rows:48px minmax(280px,1fr) 86px;gap:16px;padding:16px 24px 20px;min-height:480px}
.universe[data-universe-layout="expanded"] .universe-toolbar{grid-column:1/-1}.universe[data-universe-layout="expanded"] .world-selector{grid-column:1/-1;grid-row:3;gap:8px}
.universe[data-universe-layout="expanded"] .world-detail{grid-column:2;grid-row:2;align-self:center;padding:0 8px 0 4px}
.universe[data-universe-layout="expanded"] .world-intro{display:block}.universe[data-universe-layout="expanded"] .planet-caption b{display:none}
.universe[data-universe-layout="expanded"] .world-stop{flex-basis:100px}.universe[data-universe-layout="expanded"] .world-stop canvas{width:76px;height:44px}.universe[data-universe-layout="expanded"] .world-stop span{font-size:15px}
.universe[data-universe-layout="wide"]{grid-template-columns:minmax(0,1.2fr) minmax(220px,1fr);grid-template-rows:44px minmax(100px,1fr) 66px;min-height:238px;gap:8px 16px;padding:6px 14px}
.universe[data-universe-layout="wide"] .universe-toolbar{grid-column:1;grid-row:1}.universe[data-universe-layout="wide"] .universe-toolbar h1{font-size:22px}
.universe[data-universe-layout="wide"] .world-detail{grid-column:2;grid-row:1/4;align-self:center}.universe[data-universe-layout="wide"] .world-selector{grid-column:1;grid-row:3}
.universe[data-universe-layout="wide"] .world-intro{display:block}.universe[data-universe-layout="wide"] .world-intro h2{font-size:28px;margin-top:4px}.universe[data-universe-layout="wide"] .world-intro p{display:none}.universe[data-universe-layout="wide"] .world-primary{margin-top:12px}
.universe[data-universe-layout="wide"] .planet-caption b{display:none}.universe[data-universe-layout="wide"] .planet-caption{bottom:6px}
.universe[data-empty="true"] .world-detail{grid-column:1/-1;grid-row:2;align-self:center;max-width:420px;justify-self:center;text-align:center}
.device:has(.universe) .tabs button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:48px;padding:6px}.device:has(.universe) .tabs button i{margin:0}
@media(max-width:360px){.universe-toolbar h1{font-size:23px}.universe-filter select{font-size:11px;max-width:140px}.universe{padding-inline:10px}.world-primary .gokey{font-size:22px}}
@media(prefers-reduced-motion:no-preference){.world-stop{transition:background-color .15s,border-color .15s}}
.device[data-universe-rail] .tabs{position:absolute;display:flex;flex-direction:column;padding:8px 5px;gap:8px;border:0;border-left:1px solid var(--rule);background:#070b1a;justify-content:center;backdrop-filter:none}
.device[data-universe-rail] .tabs button{flex:none;width:54px;height:64px;min-height:52px;display:flex;flex-direction:column;font-size:10px;letter-spacing:0;border-radius:10px;gap:5px}
.device[data-universe-rail] .tabs button i{font-size:19px}
.device[data-universe-rail] .universe{min-height:396px}
.universe[data-universe-fold]{position:relative;display:block;padding:0;min-height:0!important}
.universe[data-universe-fold] .universe-toolbar{position:absolute;top:6px;left:12px;right:12px;height:44px}
.universe[data-universe-fold] .planet-stage{position:absolute;left:12px;right:12px;top:58px;height:calc(var(--fold-height) - 70px);min-height:110px}
.universe[data-universe-fold] .world-selector{position:absolute;left:12px;right:12px;top:calc(var(--fold-y) + 4px);height:72px}
.universe[data-universe-fold] .world-detail{position:absolute;left:18px;right:18px;top:calc(var(--fold-y) + 84px);max-height:calc(100% - var(--fold-y) - 96px);overflow:auto;padding:0}
.universe[data-universe-fold="rows"] .world-intro{display:none}.universe[data-universe-fold="rows"] .planet-caption b{display:block}
.universe[data-universe-fold="columns"] .universe-toolbar{right:auto;width:calc(var(--fold-width) - 24px)}
.universe[data-universe-fold="columns"] .planet-stage{right:auto;width:calc(var(--fold-width) - 24px);height:calc(100% - 146px)}
.universe[data-universe-fold="columns"] .world-selector{right:auto;width:calc(var(--fold-width) - 24px);top:auto;bottom:8px}
.universe[data-universe-fold="columns"] .world-detail{left:calc(var(--fold-x) + 16px);top:50%;transform:translateY(-50%);max-height:calc(100% - 32px)}
.universe[data-universe-fold="columns"] .world-intro{display:block}.universe[data-universe-fold="columns"] .world-intro p{display:none}
.universe[data-universe-fold="columns"] .planet-caption b{display:none}

.universe[data-universe-layout="wide"] .planet-stage{min-height:100px}
.device[data-universe-rail] .universe[data-universe-layout="wide"]{min-height:238px}
.device[data-universe-rail] .tabs button{height:52px}
.universe[data-geometry-fallback]{overflow:auto;min-height:0!important;overscroll-behavior:contain}

.universe .world-intro p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.device[data-universe-fold-nav] .tabs{align-self:flex-start}

.universe[data-universe-layout="expanded"] .world-detail,.universe[data-universe-layout="wide"] .world-detail{max-height:100%;overflow:auto;overscroll-behavior:contain}

.device[data-universe-rail] main.universe-view{margin-bottom:var(--native-safe-bottom,0px)}
.universe .world-detail:has(.world-preview:not([hidden])) .world-intro p{display:none}

/* First-launch plate lives inside the game glass in every layout. It replaces
   the label-strip placement that the control pad clipped on phones. */
.screenbox>.firstplate{top:auto;bottom:calc(8% + 46px);left:12px;right:12px;width:auto;max-width:520px;min-height:0;margin-inline:auto;transform:none;padding:12px 46px 12px 14px}
.screenbox>.firstplate .x{width:44px;height:44px;top:0;right:0}
.screenbox>.firstplate.tight p{display:none}.screenbox>.firstplate.tight{padding-block:10px}

/* Unfolded portrait: planet across the full width, then title/description
   beside the actions. Uses the width the two-column split left empty. */
.universe[data-universe-layout="expanded"][data-universe-shape="tall"]:not([data-universe-fold]){grid-template-columns:minmax(0,1fr);grid-template-rows:48px minmax(280px,1fr) 86px auto}
.universe[data-universe-layout="expanded"][data-universe-shape="tall"]:not([data-universe-fold]) .planet-stage{grid-column:1;grid-row:2}
.universe[data-universe-layout="expanded"][data-universe-shape="tall"]:not([data-universe-fold]) .world-selector{grid-column:1;grid-row:3}
.universe[data-universe-layout="expanded"][data-universe-shape="tall"]:not([data-universe-fold]) .world-detail{grid-column:1;grid-row:4;align-self:start;max-height:none;overflow:visible;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(240px,1fr);column-gap:24px;align-items:start;padding:0 4px}
.universe[data-universe-layout="expanded"][data-universe-shape="tall"]:not([data-universe-fold]) .world-intro{grid-column:1;grid-row:1/span 4}
.universe[data-universe-layout="expanded"][data-universe-shape="tall"]:not([data-universe-fold]) .world-intro h2{margin-top:4px}
.universe[data-universe-layout="expanded"][data-universe-shape="tall"]:not([data-universe-fold]) .world-intro p{margin:8px 0 0}
.universe[data-universe-layout="expanded"][data-universe-shape="tall"]:not([data-universe-fold]) .world-primary,.universe[data-universe-layout="expanded"][data-universe-shape="tall"]:not([data-universe-fold]) .world-secondary,.universe[data-universe-layout="expanded"][data-universe-shape="tall"]:not([data-universe-fold]) .world-detail .pbline,.universe[data-universe-layout="expanded"][data-universe-shape="tall"]:not([data-universe-fold]) .world-detail .meta{grid-column:2}
.universe[data-universe-layout="expanded"][data-universe-shape="tall"]:not([data-universe-fold]) .world-preview{grid-column:1/-1}
/* Preview and More share one baseline. */
.world-more summary{display:flex;align-items:center;justify-content:center;box-sizing:border-box}
.world-more summary::after{margin-left:6px}
/* Previous/next flank the caption in the stage's bottom corners, under the thumbs,
   so the planet can use the stage's full width. */
.planet-prev,.planet-next{top:auto;bottom:8px;transform:none}
.planet-caption{left:60px;right:60px}
/* Flow layout: the glass narrows (keeping its shape) when the layout pass finds
   the control rows would otherwise fall off the bottom of the window. */
.device:not(.land):not(.control-deck) .play[data-player-kind="builtin25d"] .screenbox{width:calc(100% - 20px);max-width:var(--flow-glass-max-width,none);align-self:center}
/* Before the first press: no RESET (there is no run to reset) and no echo of
   the PRESS A TO PLAY prompt under the glass. */
.play:has(#ready) #reset{display:none}
.b25-context-main.demo-echo{visibility:hidden}
.thumb.has-planet{background-size:cover;background-position:center;image-rendering:pixelated}
/* The Create headline had 2px between it and the top bar's rule. */
.device:not(.land) .create{padding-top:12px}
