*{box-sizing:border-box}body{margin:0;background:#061020;color:#f4f7ff;font:14px system-ui}canvas{display:block;width:100vw;height:100dvh;touch-action:none}header{position:fixed;top:0;left:0;right:0;background:#071426ed;border-bottom:1px solid #658998;padding:13px 18px;display:flex;gap:18px;align-items:center;flex-wrap:wrap}header strong{letter-spacing:.1em;color:#9df4fa}header span{flex:1;color:#c5d2df;font-size:12px}a{color:#9cf6e8}#toolbar{position:fixed;top:67px;left:16px;display:flex;flex-wrap:wrap;gap:8px;background:#071426e8;border-radius:12px;padding:9px}button,select{background:#142a43;color:#f4fbff;border:1px solid #688ca9;border-radius:8px;padding:10px;cursor:pointer;font:inherit}button:focus-visible,select:focus-visible{outline:3px solid #ffce73}button:active{background:#40628a}aside{position:fixed;bottom:16px;left:16px;background:#061426e8;border:1px solid #425f7a;padding:14px;border-radius:12px;max-width:365px;pointer-events:none;font-size:12px}aside p{line-height:1.6}aside small{display:block;color:#b6c8d9;font-size:10px;margin-top:8px}#touch{position:fixed;right:16px;bottom:16px;display:grid;grid-template-columns:repeat(4,74px);gap:6px}#touch button{touch-action:none;user-select:none}dialog{color:#e9faff;background:#0b1d32;border:1px solid #72a9c4;border-radius:16px;width:min(760px,92vw);max-height:80dvh;padding:28px}dialog::backdrop{background:#010917aa}dialog h2{color:#9cf5ff}#close{float:right}#content a{display:inline-block;padding:12px;margin:5px;background:#17364d;border-radius:8px}#content input,#content textarea{display:block;width:100%;padding:12px;margin:10px 0;background:#061426;color:white;border:1px solid #668aa5;border-radius:6px}#content ol{columns:2;padding-left:25px}#content li{break-inside:avoid;margin:8px 0}#content li button{text-align:left;width:95%}#error{position:fixed;top:160px;left:10%;background:#64162d;padding:25px;width:80%}@media(max-width:700px){header{gap:8px;padding:8px;font-size:12px}header span{flex-basis:100%}#toolbar{top:85px;left:8px;right:8px;font-size:11px;padding:6px}#touch{grid-template-columns:repeat(4,58px);bottom:10px;right:8px}#touch button{padding:10px 3px;font-size:11px}aside{bottom:164px;left:8px;max-width:230px;padding:8px;font-size:10px}aside p,aside small{display:none}#content ol{columns:1}}

#touch.fsc-pad{right:auto;display:block}aside{bottom:220px}aside p,aside small{display:none}@media(max-width:700px){aside{bottom:195px;max-width:220px}}

/* Separate screen regions keep controls out of the rendered world and navigation. */
body{height:100dvh;display:grid;grid-template-areas:"header" "tools" "world" "hud" "pad";grid-template-rows:auto auto minmax(80px,1fr) auto auto;overflow:hidden}
header{grid-area:header;position:static;padding:8px 14px}
#toolbar{grid-area:tools;position:static;margin:3px 8px;padding:5px;gap:5px}
#toolbar button,#toolbar select{padding:7px;font-size:11px}
canvas#world{grid-area:world;width:100%;height:100%;min-height:0;min-width:0}
aside{grid-area:hud;position:static;max-width:none;margin:0 8px;padding:5px 9px;border-radius:6px;display:flex;gap:12px;align-items:center;font-size:10px}
aside p,aside small{display:none}
#touch.fsc-pad{grid-area:pad;position:relative;left:auto;right:auto;bottom:auto;transform:none;justify-self:center;width:min(845px,calc(100vw - 16px));margin:7px 0 9px}
.fsc-pad-fold{display:none!important}
.fsc-pad-shoulders{padding:0 55px}
.fsc-pad-shoulders button{width:143px;min-height:43px;letter-spacing:.12em}
.fsc-pad-body{grid-template-columns:130px 1fr 114px 130px;gap:13px;padding:20px 31px 31px;border:2px solid #7edcea;background:radial-gradient(ellipse at 50% 0,#334e68,#101c2c 58%,#070f1d);box-shadow:inset 0 2px 2px #d5ffff70,inset 0 -12px 16px #000b,0 0 15px #3ad5e025}
.fsc-stick{width:120px;height:120px;border-color:#7bcae0;box-shadow:inset 0 0 12px #45e9ff25,0 0 7px #32c9df30}
.fsc-stick span{width:58px;height:58px;border-color:#b4ffff;background:radial-gradient(at 35% 25%,#82a3b8,#1a3147 70%);box-shadow:0 5px 7px #000b,0 0 8px #7cf7ff40}
.fsc-pad-screen{position:relative;background:linear-gradient(145deg,#062e37,#05151e);border-color:#b3f4f4;padding:12px;box-shadow:inset 0 0 24px #15dcbc24,0 0 8px #79f9ff30}
.fsc-pad-location{font-size:16px;color:#ecffff;text-shadow:0 0 8px #77f9ff45}
.fsc-pad-screen small{font-size:10px;color:#8cf5e6}
.fsc-pad-coordinates{font-size:11px;letter-spacing:.05em}
.fsc-pad-screen button{min-height:39px;font-size:11px;border-color:#5eb4c5}
.fsc-pad-actions button{width:49px;height:49px;font-size:17px;border-color:#7dc7d4;box-shadow:inset 0 0 8px #64eaff20}
.fsc-pad-actions span{font-size:9px}
@media(max-width:700px){header{font-size:11px;padding:5px 9px;gap:6px}header span{font-size:9px}#toolbar{margin:2px 5px}#toolbar button,#toolbar select{font-size:10px;padding:6px}#touch.fsc-pad{margin:5px 0 8px}.fsc-pad-body{grid-template-columns:76px minmax(0,1fr) 76px 76px;gap:6px;padding:16px 10px 25px;border-radius:28px 28px 45px 45px}.fsc-stick{width:74px;height:74px}.fsc-stick span{width:44px;height:44px}.fsc-pad-actions button{width:34px;height:41px;font-size:14px}.fsc-pad-actions span{font-size:8px}.fsc-pad-screen{padding:8px}.fsc-pad-location{font-size:12px}.fsc-pad-screen small{font-size:7px}.fsc-pad-coordinates{font-size:9px}.fsc-pad-screen button{padding:3px;min-height:36px;font-size:9px}.fsc-pad-shoulders{padding:0 22px}.fsc-pad-shoulders button{width:110px;min-height:36px;font-size:9px}}
@media(max-width:380px){.fsc-pad-body{grid-template-columns:65px minmax(0,1fr) 62px 65px;gap:4px;padding-left:7px;padding-right:7px}.fsc-stick{width:63px;height:74px}.fsc-pad-actions button{width:29px}.fsc-pad-location{font-size:11px}}
@media(max-height:520px) and (min-width:701px){body{grid-template-areas:"header pad" "tools pad" "world pad" "hud pad";grid-template-columns:minmax(0,1fr) 355px;grid-template-rows:auto auto minmax(80px,1fr) auto}#touch.fsc-pad{width:345px;align-self:center}.fsc-pad-body{grid-template-columns:65px 1fr 65px;gap:8px;padding:16px 8px 24px}.fsc-pad-actions{grid-column:3;grid-row:1}.fsc-stick[data-stick=look]{grid-column:3;grid-row:2}.fsc-stick{width:63px;height:63px}.fsc-pad-screen{grid-column:2;grid-row:1 / 3}.fsc-pad-actions button{width:29px;height:35px}.fsc-pad-location{font-size:11px}.fsc-pad-screen button{font-size:9px}.fsc-pad-shoulders{display:none}}/* Larger action targets, with a dedicated second row on narrow displays. */
.fsc-pad-body{grid-template-columns:163px minmax(0,1fr) 143px 163px}
.fsc-stick{width:150px;height:150px}.fsc-stick span{width:73px;height:73px}
.fsc-pad-actions button{width:62px;height:62px;font-size:21px}.fsc-pad-actions span{font-size:11px}
@media(max-width:700px){.fsc-pad-body{grid-template-columns:90px minmax(0,1fr) 90px;grid-template-rows:auto 93px;gap:10px;padding:14px 14px 23px}.fsc-pad-screen{grid-column:1 / 3;grid-row:1}.fsc-pad-actions{grid-column:3;grid-row:1;gap:6px;align-self:center}.fsc-pad-actions button{width:42px;height:51px;font-size:18px}.fsc-pad-actions span{font-size:10px}.fsc-stick[data-stick=move]{grid-column:1;grid-row:2}.fsc-stick[data-stick=look]{grid-column:3;grid-row:2}.fsc-stick{width:93px;height:93px}.fsc-stick span{width:55px;height:55px}.fsc-pad-screen button{min-height:42px;font-size:11px}.fsc-pad-location{font-size:14px}.fsc-pad-coordinates{font-size:11px}}
@media(max-height:520px) and (min-width:701px){.fsc-pad-body{grid-template-columns:83px minmax(0,1fr) 83px}.fsc-stick{width:79px;height:79px}.fsc-stick span{width:45px;height:45px}.fsc-pad-actions button{width:37px;height:44px;font-size:15px}.fsc-pad-actions span{font-size:9px}}/* Full-width instrument display; actions sit centrally below it. */
.fsc-pad-body{grid-template-columns:163px minmax(0,1fr) 163px;grid-template-rows:auto 150px;gap:14px}
.fsc-pad-screen{grid-column:1 / -1;grid-row:1;width:100%;text-align:center}
.fsc-pad-screen>div{justify-content:center}.fsc-pad-screen button{flex:0 1 170px}
.fsc-stick[data-stick=move]{grid-column:1;grid-row:2;justify-self:center}
.fsc-stick[data-stick=look]{grid-column:3;grid-row:2;justify-self:center}
.fsc-pad-actions{grid-column:2;grid-row:2;justify-self:center;align-self:center;grid-template-columns:62px 62px;gap:10px}
@media(max-width:700px){.fsc-pad-body{grid-template-columns:93px minmax(0,1fr) 93px;grid-template-rows:auto 93px;gap:10px;padding:12px 10px 23px}.fsc-pad-screen{grid-column:1 / -1;grid-row:1}.fsc-pad-actions{grid-column:2;grid-row:2;grid-template-columns:42px 42px;gap:4px}.fsc-pad-screen>div{gap:8px}.fsc-pad-screen button{flex:1;max-width:180px}.fsc-pad-location{margin:5px 0}.fsc-pad-shoulders button{min-height:32px}}
@media(max-width:380px){.fsc-pad-body{grid-template-columns:83px minmax(0,1fr) 83px;gap:7px}.fsc-stick{width:83px;height:93px}}
@media(max-height:520px) and (min-width:701px){.fsc-pad-body{grid-template-columns:83px minmax(0,1fr) 83px;grid-template-rows:auto 93px;gap:7px;padding:10px 8px 20px}.fsc-pad-screen{grid-column:1 / -1;grid-row:1}.fsc-pad-actions{grid-column:2;grid-row:2;grid-template-columns:37px 37px;gap:4px}.fsc-stick[data-stick=move]{grid-column:1;grid-row:2}.fsc-stick[data-stick=look]{grid-column:3;grid-row:2}}/* Same shell footprint; larger face buttons and moving thumb caps. */
.fsc-stick span{width:110px;height:110px}
.fsc-pad-actions{grid-template-columns:repeat(4,81px);gap:6px}
.fsc-pad-actions button{width:81px;height:81px;font-size:26px}.fsc-pad-actions span{font-size:12px}
.fsc-pad-body{grid-template-columns:163px minmax(0,1fr) 163px}
@media(max-width:700px){.fsc-pad-body{grid-template-columns:83px minmax(0,1fr) 83px;grid-template-rows:61px 132px;gap:10px;padding:10px 10px 18px}.fsc-pad-screen{height:61px;display:grid;grid-template-columns:minmax(0,1fr) 115px;grid-template-rows:10px 18px 15px;gap:0 8px;padding:6px 8px;text-align:left}.fsc-pad-screen small,.fsc-pad-location,.fsc-pad-coordinates{grid-column:1;margin:0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fsc-pad-location{font-size:12px}.fsc-pad-coordinates{font-size:10px}.fsc-pad-screen>div{grid-column:2;grid-row:1 / 4;align-items:center;gap:4px}.fsc-pad-screen button{min-height:39px;max-width:none;font-size:9px}.fsc-pad-actions{grid-template-columns:55px 55px;gap:3px;align-self:center}.fsc-pad-actions button{width:55px;height:66px;font-size:23px}.fsc-pad-actions span{font-size:12px}.fsc-stick{align-self:center}.fsc-stick span{width:83px;height:83px}.fsc-pad-shoulders button{min-height:32px}}
@media(min-width:701px) and (max-width:1050px){.fsc-pad-actions{grid-template-columns:81px 81px;gap:4px}.fsc-pad-actions button{height:70px}}
@media(max-height:520px) and (min-width:701px){.fsc-pad-actions{grid-template-columns:48px 48px;gap:4px}.fsc-pad-actions button{width:48px;height:58px;font-size:20px}.fsc-stick span{width:68px;height:68px}}/* Compact spacing, preserving the selected shell width and separate game area. */
.fsc-pad-stick{justify-self:stretch}
.fsc-stick[data-stick=move]{justify-self:start}.fsc-stick[data-stick=look]{justify-self:end}
.fsc-pad-body{padding-top:10px;padding-bottom:18px;gap:8px}
@media(max-width:700px){#touch.fsc-pad{margin:3px 0 5px}.fsc-pad-body{grid-template-columns:83px minmax(0,1fr) 83px;grid-template-rows:56px 113px;gap:6px;padding:6px 8px 14px}.fsc-pad-actions{grid-template-columns:55px 55px;gap:3px}.fsc-pad-actions button{height:55px;width:55px}.fsc-pad-screen{height:56px;padding:4px 7px}.fsc-pad-shoulders button{min-height:28px}.fsc-stick{align-self:center}.fsc-stick b{bottom:-11px}.fsc-pad-screen button{min-height:36px}}/* Wide display, low-profile shell, large edge sticks and balanced face buttons. */
.fsc-pad-body{grid-template-columns:170px minmax(0,1fr) 170px;grid-template-rows:54px 170px;padding:5px 8px 14px;gap:5px;border-radius:28px 28px 45px 45px}
.fsc-pad-screen{height:54px;grid-column:1 / -1;display:grid;grid-template-columns:minmax(0,1fr) 220px;grid-template-rows:10px 17px 13px;gap:0 10px;padding:5px 10px;text-align:left}
.fsc-pad-screen small,.fsc-pad-location,.fsc-pad-coordinates{grid-column:1;margin:0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fsc-pad-screen>div{grid-column:2;grid-row:1 / 4;align-items:center;gap:6px}
.fsc-pad-screen button{min-height:36px;flex:1;font-size:11px}
.fsc-stick{width:170px;height:170px}.fsc-stick span{width:130px;height:130px}
.fsc-pad-actions{grid-template-columns:70px 70px;gap:5px}.fsc-pad-actions button{width:70px;height:70px;font-size:25px}.fsc-pad-actions span{font-size:12px}
@media(max-width:700px){.fsc-pad-body{grid-template-columns:106px minmax(0,1fr) 106px;grid-template-rows:48px 106px;gap:4px;padding:4px 4px 12px}.fsc-pad-screen{height:48px;grid-template-columns:minmax(0,1fr) 110px;grid-template-rows:8px 16px 11px;padding:4px 7px;gap:0 5px}.fsc-pad-screen small{font-size:6px}.fsc-pad-location{font-size:12px}.fsc-pad-coordinates{font-size:9px}.fsc-pad-screen button{font-size:9px;min-height:32px}.fsc-stick{width:106px;height:106px}.fsc-stick span{width:93px;height:93px}.fsc-pad-actions{grid-template-columns:48px 48px;gap:2px}.fsc-pad-actions button{width:48px;height:48px;font-size:20px}.fsc-pad-actions span{font-size:10px}.fsc-pad-shoulders{padding:0 20px}.fsc-pad-shoulders button{min-height:26px}}
@media(max-width:335px){.fsc-pad-body{grid-template-columns:92px minmax(0,1fr) 92px}.fsc-stick{width:92px;height:98px}.fsc-stick span{width:82px;height:82px}.fsc-pad-actions{grid-template-columns:44px 44px}.fsc-pad-actions button{width:44px;height:46px}}
@media(max-height:520px) and (min-width:701px){.fsc-pad-body{grid-template-columns:106px minmax(0,1fr) 106px;grid-template-rows:48px 106px}.fsc-pad-screen{height:48px;grid-template-columns:minmax(0,1fr) 110px;padding:3px 6px}.fsc-pad-location{font-size:11px}.fsc-pad-screen button{font-size:9px;min-height:32px}.fsc-stick{width:106px;height:106px}.fsc-stick span{width:93px;height:93px}.fsc-pad-actions{grid-template-columns:48px 48px;gap:2px}.fsc-pad-actions button{width:48px;height:48px;font-size:20px}.fsc-pad-actions span{font-size:10px}}.fsc-pad-screen{grid-template-columns:minmax(0,1fr) 270px;grid-template-rows:9px 16px 12px 10px;height:62px;padding:4px 8px}.fsc-pad-body{grid-template-rows:62px 170px}.fsc-pad-feedback{grid-column:1;grid-row:4;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#ffdba1}.fsc-pad-screen>div{grid-row:1 / 5}.fsc-pad-screen.music-open{height:auto;grid-template-rows:9px 16px 12px 10px auto}.fsc-pad-body:has(.music-open){grid-template-rows:auto 170px}.fsc-pad-music{grid-column:1 / -1;grid-row:5;text-align:left;border-top:1px solid #477c85;margin-top:6px;padding-top:7px;max-height:240px;overflow:auto}.fsc-pad-music[hidden]{display:none}.fsc-pad-music label{display:block;font-size:10px}.fsc-pad-music select{max-width:100%;padding:4px;font-size:10px}.fsc-music-tools{display:flex;gap:6px;margin:5px 0}.fsc-pad-music button{padding:5px 8px;font-size:10px;min-height:32px}.fsc-pad-music p{font-size:9px;line-height:1.4;margin:5px 0;color:#b9dce2}.fsc-music-player iframe{display:block;border:0;border-radius:10px}.fsc-pad-music .fsc-music-tools button{flex:1}
@media(max-width:700px){.fsc-pad-screen{grid-template-columns:minmax(0,1fr) 155px}.fsc-pad-screen>div{gap:3px}.fsc-pad-screen>div button{font-size:8px;padding:3px;min-width:0}.fsc-pad-body{grid-template-rows:62px 106px}.fsc-pad-body:has(.music-open){grid-template-rows:auto 106px}.fsc-pad-screen.music-open{max-height:300px}.fsc-pad-music{max-height:235px}}
@media(max-height:520px) and (min-width:701px){.fsc-pad-screen{grid-template-columns:minmax(0,1fr) 160px}.fsc-pad-screen>div button{font-size:8px;padding:3px}.fsc-pad-body{grid-template-rows:62px 106px}.fsc-pad-body:has(.music-open){grid-template-rows:auto 106px}.fsc-pad-music{max-height:170px}}/* Expanded music remains in the display and never pushes controls below the viewport. */
.fsc-pad-body:has(.music-open){grid-template-columns:106px minmax(0,1fr) 106px;grid-template-rows:auto 106px}
.fsc-pad-body:has(.music-open) .fsc-stick{width:106px;height:106px}
.fsc-pad-body:has(.music-open) .fsc-stick span{width:93px;height:93px}
.fsc-pad-body:has(.music-open) .fsc-pad-actions{grid-template-columns:48px 48px;gap:2px}
.fsc-pad-body:has(.music-open) .fsc-pad-actions button{width:48px;height:48px;font-size:20px}
.fsc-pad-body:has(.music-open) .fsc-pad-actions span{font-size:10px}
.fsc-pad-music{max-height:min(220px,30dvh)}
@media(max-height:520px){.fsc-pad-music{max-height:100px}}/* Owner choice: compact shell, all six controls share the largest equal row diameter. */
#touch.fsc-pad{--fsc-control:calc((min(845px,100vw - 16px) - 42px)/6)}
.fsc-pad-body,.fsc-pad-body:has(.music-open){grid-template-columns:var(--fsc-control) minmax(0,1fr) var(--fsc-control);grid-template-rows:62px calc(var(--fsc-control) + 14px);gap:5px;padding:5px 8px 14px}
.fsc-pad-body:has(.music-open){grid-template-rows:auto calc(var(--fsc-control) + 14px)}
.fsc-pad .fsc-stick,.fsc-pad-body:has(.music-open) .fsc-stick{width:var(--fsc-control);height:var(--fsc-control);align-self:center}
.fsc-pad .fsc-stick span,.fsc-pad-body:has(.music-open) .fsc-stick span{width:76%;height:76%}
.fsc-pad .fsc-pad-actions,.fsc-pad-body:has(.music-open) .fsc-pad-actions{grid-template-columns:repeat(4,var(--fsc-control));gap:3px;grid-row:2;grid-column:2}
.fsc-pad .fsc-pad-actions button,.fsc-pad-body:has(.music-open) .fsc-pad-actions button{width:var(--fsc-control);height:var(--fsc-control);font-size:clamp(17px,2.1vw,30px)}
.fsc-pad .fsc-pad-actions span,.fsc-pad-body:has(.music-open) .fsc-pad-actions span{font-size:clamp(8px,.9vw,12px)}
@media(max-width:700px){.fsc-pad-body,.fsc-pad-body:has(.music-open){padding:4px 4px 12px;gap:4px}.fsc-pad .fsc-pad-actions{gap:2px}.fsc-pad .fsc-stick b{font-size:7px;bottom:-10px}}
@media(max-height:520px) and (min-width:701px){#touch.fsc-pad{--fsc-control:calc((390px - 42px)/6)}}
/* Instrument information at left; Spotify remains at right inside the display. */
.fsc-pad-screen{height:112px;grid-template-columns:minmax(0,1fr) 270px;grid-template-rows:10px 18px 13px 12px 45px;gap:0 10px;padding:6px 9px}
.fsc-pad-body{grid-template-rows:112px calc(var(--fsc-control) + 14px)}
.fsc-pad-map{display:block;grid-column:1;grid-row:5;max-width:100%;width:110px;height:45px;justify-self:start}
.fsc-pad-screen>div{grid-column:2;grid-row:1 / 6}
.fsc-pad-screen.music-open{grid-template-columns:minmax(0,1fr) minmax(260px,1fr);grid-template-rows:10px 18px 13px 12px minmax(45px,1fr) 38px;min-height:245px;max-height:300px;height:245px}
.fsc-pad-screen.music-open>.fsc-pad-music{grid-column:2;grid-row:1 / 7;border-top:0;border-left:1px solid #477c85;margin:0;padding:0 0 0 8px;max-height:230px}
.fsc-pad-screen.music-open>div{grid-column:1;grid-row:6}
.fsc-pad-screen.music-open .fsc-pad-map{height:110px;width:170px;align-self:center}
.fsc-pad-screen.music-open .fsc-pad-music button{font-size:9px;padding:4px}
@media(max-width:700px){.fsc-pad-screen{grid-template-columns:minmax(0,1fr) 155px}.fsc-pad-screen.music-open{grid-template-columns:minmax(0,.75fr) minmax(160px,1fr);height:245px;min-height:245px}.fsc-pad-screen.music-open>div{gap:2px}.fsc-pad-screen.music-open>div button{font-size:7px;padding:2px}.fsc-pad-screen.music-open .fsc-pad-map{width:100%;height:85px}.fsc-pad-screen.music-open>.fsc-pad-music{padding-left:5px}.fsc-pad-screen.music-open .fsc-music-tools{flex-wrap:wrap}.fsc-pad-screen.music-open .fsc-pad-music label{font-size:8px}.fsc-pad-screen.music-open .fsc-pad-music select{width:100%;font-size:9px}.fsc-pad-screen.music-open .fsc-pad-music p{font-size:8px}}
@media(max-height:520px) and (min-width:701px){.fsc-pad-screen{grid-template-columns:minmax(0,1fr) 160px}.fsc-pad-screen.music-open{grid-template-columns:minmax(0,.75fr) minmax(160px,1fr);height:220px;min-height:220px}.fsc-pad-screen.music-open>.fsc-pad-music{max-height:205px}.fsc-pad-screen.music-open .fsc-pad-map{height:70px}}
