:root{color-scheme:dark;font-family:Arial,Helvetica,sans-serif;color:#f4f0eb;background:#100d12}*{box-sizing:border-box}body{margin:0;overflow:hidden}button{font:inherit;color:inherit;border:1px solid #ffffff30;background:#201b26ed;border-radius:8px;padding:11px 16px;cursor:pointer;touch-action:manipulation}button:hover,button.active{border-color:#f39445;background:#4b3027}button:focus-visible{outline:3px solid #6debd6;outline-offset:3px}#world{position:fixed;inset:0}#world canvas{width:100%;height:100%;display:block;touch-action:none}header{position:fixed;left:28px;right:28px;top:24px;display:flex;justify-content:space-between;pointer-events:none;text-shadow:0 2px 10px #000}header button{pointer-events:auto}.small{font-size:12px;letter-spacing:2px;color:#e5b385;font-weight:bold}h1{font-family:Georgia,serif;font-size:32px;margin:8px 0}h1 em{font-weight:normal;color:#ffac66}.topbuttons{display:flex;gap:8px;align-items:flex-start}.topbuttons button{font-size:14px}#guide{position:fixed;top:145px;left:28px;background:#16121cef;border:1px solid #ffffff26;padding:22px;max-width:340px;border-radius:12px}#guide p{font:24px Georgia,serif;margin:12px 0 18px}#guide span:not(.small){display:block;color:#c8c2cb;font-size:14px;line-height:1.6}#dismiss{margin-top:18px;background:#bc6438;border:0;width:100%}#reticle{position:fixed;top:50%;left:50%;color:#fffa;font-size:20px;pointer-events:none}#location{position:fixed;bottom:103px;left:30px;letter-spacing:2px;font-size:12px;text-shadow:0 2px 5px #000}#stations{position:fixed;bottom:28px;left:28px;display:flex;gap:7px;padding:7px;border:1px solid #ffffff20;border-radius:13px;background:#131118e8}#stations button{border:0;font-size:14px;background:transparent}#stations button.active{background:#ac5939}#joysticks{display:none;position:fixed;left:14px;right:14px;bottom:calc(76px + env(safe-area-inset-bottom));justify-content:space-between;align-items:flex-end;pointer-events:none;z-index:4}.stick-wrap{display:grid;justify-items:center;gap:5px;color:#fff9;font-size:11px;font-weight:bold;letter-spacing:1.6px;text-shadow:0 2px 5px #000}.joystick{width:112px;height:112px;border:1px solid #ffffff42;border-radius:50%;background:radial-gradient(circle at 42% 36%,#ffffff18,#15121cb8 68%);box-shadow:inset 0 0 24px #0009,0 4px 18px #0008;position:relative;pointer-events:auto;touch-action:none}.joystick::before,.joystick::after{content:"";position:absolute;background:#ffffff14;pointer-events:none}.joystick::before{left:14px;right:14px;top:50%;height:1px}.joystick::after{top:14px;bottom:14px;left:50%;width:1px}.stick-knob{position:absolute;left:50%;top:50%;width:48px;height:48px;margin:-24px;border:1px solid #ffffff62;border-radius:50%;background:radial-gradient(circle at 38% 32%,#c6c2ca,#615866 55%,#29242e);box-shadow:0 4px 12px #000b;will-change:transform;pointer-events:none}#detail{position:fixed;right:28px;top:125px;width:310px;background:#17121df2;border:1px solid #d3956944;padding:24px;border-radius:12px}#detail h2{font:28px Georgia,serif;margin:12px 0}#detail p{font-size:16px;line-height:1.55;color:#d0c8d1}#closeDetail{float:right;font-size:22px;padding:0 7px;border:0}dialog{width:min(1050px,95vw);max-height:95dvh;border:1px solid #ac7557;background:#16121e;border-radius:14px;padding:20px;color:#eee}dialog::backdrop{background:#000c}#photo img{display:block;max-height:78vh;max-width:100%;margin:12px auto 0}#photo button{float:right}.gamehead{display:flex;justify-content:space-between;align-items:center}.gamehead h2{margin:8px 0 15px;font:28px Georgia,serif}#poolCanvas{width:100%;background:#133734;border-radius:10px;touch-action:none}.gameControls{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:14px}.gameControls label{display:flex;align-items:center;gap:8px}#poolGame p{font-size:14px;color:#bfb4c6;line-height:1.5}#error{position:fixed;top:45%;background:#331c20;padding:30px}@media(max-width:650px){header{left:16px;right:16px;top:16px}h1{font-size:25px}header .small{font-size:10px;letter-spacing:1px}.topbuttons{gap:4px}.topbuttons button{font-size:12px;padding:9px}#help{display:none}#guide{left:16px;top:115px;max-width:300px}#stations{left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));justify-content:space-between;gap:0;padding:5px}#stations button{font-size:13px;padding:12px 8px}#joysticks{display:flex}#location{bottom:calc(202px + env(safe-area-inset-bottom));left:17px;max-width:160px}#detail{top:112px;right:14px;width:min(300px,calc(100vw - 28px));padding:18px}#detail h2{font-size:24px}dialog{padding:12px}.gamehead button{font-size:12px;padding:8px}.gamehead h2{font-size:23px}.gameControls{font-size:14px}}

html,body,body *,body *::before,body *::after{user-select:none!important;-webkit-user-select:none!important;-webkit-touch-callout:none!important}
body ::selection{background:transparent;color:inherit}
#stations{max-width:calc(100vw - 24px);overflow-x:auto;}#stations button{flex-shrink:0;}#globeControls{display:flex;gap:.5rem;flex-wrap:wrap;}#globeControls[hidden]{display:none;}

@media (pointer:coarse){#joysticks{display:flex}}
@media (max-height:540px) and (orientation:landscape){#joysticks{bottom:calc(62px + env(safe-area-inset-bottom))}.joystick{width:92px;height:92px}.stick-knob{width:42px;height:42px;margin:-21px}#location{display:none}}

#joysticks{left:max(14px,env(safe-area-inset-left));right:max(14px,env(safe-area-inset-right));user-select:none;-webkit-user-select:none}
#guide,#detail{max-height:calc(100dvh - 300px);overflow:auto;overscroll-behavior:contain}
@media (max-height:540px) and (orientation:landscape){header{top:max(10px,env(safe-area-inset-top));left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right))}header .small{display:none}h1{font-size:23px;margin:3px 0}#guide,#detail{top:62px;left:50%;right:auto;transform:translateX(-50%);max-height:calc(100dvh - 210px);width:min(340px,48vw);padding:13px;z-index:3}#guide p{font-size:20px;margin:6px 0}#guide span:not(.small),#detail p{font-size:13px}#stations{left:50%;right:auto;transform:translateX(-50%);bottom:calc(7px + env(safe-area-inset-bottom));padding:4px}#stations button{font-size:12px;padding:9px 11px}}

/* Anchor zoom below the header and reserve the lower screen for thumbs. */
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#zoomControls{position:fixed;right:max(12px,env(safe-area-inset-right));top:max(80px,calc(env(safe-area-inset-top) + 56px));z-index:5;display:flex;flex-direction:column;align-items:center;gap:6px;width:48px;padding:6px 3px;background:#17121dd9;border:1px solid #ffffff30;border-radius:13px;user-select:none;-webkit-user-select:none}
#zoomControls button{padding:0;width:38px;min-height:36px;font-size:23px;line-height:1;touch-action:manipulation}
#zoomControls #zoomReset{font-size:10px;min-height:29px;border:0;background:transparent}
#zoomReadout{font-size:11px;font-variant-numeric:tabular-nums;color:#f5ddbd}
#zoomRange{writing-mode:vertical-lr;direction:rtl;appearance:auto;width:28px;height:108px;accent-color:#ee995d;margin:2px 0;touch-action:none}
#zoomControls button:disabled{opacity:.38;cursor:default}
#detail{right:76px}
@media(max-width:650px){#guide{max-width:calc(100vw - 92px)}#detail{right:76px;width:min(290px,calc(100vw - 92px))}}
@media(max-width:650px) and (orientation:portrait){
 #zoomControls{bottom:calc(266px + env(safe-area-inset-bottom));max-height:256px;gap:4px}
 #zoomControls button,#zoomReadout{flex-shrink:0}
 #zoomRange{flex:1 1 108px;min-height:18px;height:auto}
}
@media(max-width:650px) and (max-height:650px) and (orientation:portrait){
 #zoomControls{gap:3px;padding:3px}
 #zoomControls button{min-height:30px;font-size:21px}
 #zoomControls #zoomReset{min-height:22px}
 #zoomReadout{line-height:12px}
 #zoomRange{margin:0}
}
@media(max-height:540px) and (orientation:landscape){
 #zoomControls{top:max(56px,calc(env(safe-area-inset-top) + 46px));flex-direction:row;gap:5px;padding:4px 6px;width:auto}
 #zoomControls button{min-height:32px;width:32px;font-size:20px}
 #zoomControls #zoomReset{min-height:32px;width:38px}
 #zoomRange{writing-mode:horizontal-tb;direction:ltr;width:96px;height:28px;margin:0}
 #zoomReadout{min-width:28px;text-align:center}
 #detail{right:auto}
}

#dartsPreviewBar{position:fixed;left:50%;top:max(108px,calc(env(safe-area-inset-top) + 75px));transform:translateX(-50%);z-index:3;display:flex;align-items:center;gap:12px;padding:9px 12px;border:1px solid #ffffff30;background:#17121dea;border-radius:10px;font-size:14px;max-width:calc(100vw - 28px)}
#dartsPreviewBar[hidden]{display:none}#dartsPreviewBar button{font-size:14px;white-space:nowrap;padding:10px}
@media(max-width:650px){#dartsPreviewBar{width:max-content;gap:7px;font-size:12px}#dartsPreviewBar button{font-size:12px;padding:9px}}
@media(max-height:540px) and (orientation:landscape){#dartsPreviewBar{top:54px;padding:5px 8px}}

/* Keep every preliminary station visible on an iPhone instead of making the
   bottom bar depend on a nearly invisible horizontal swipe. */
@media(max-width:650px) and (orientation:portrait){#stations{display:grid;grid-template-columns:repeat(4,1fr);gap:2px;overflow:visible}#stations button{font-size:12px;padding:7px 4px}#joysticks{bottom:calc(100px + env(safe-area-inset-bottom))}#location{bottom:calc(225px + env(safe-area-inset-bottom))}}

#stations{flex-wrap:wrap;max-width:640px;z-index:5}.activity-heading{flex:0 0 100%;grid-column:1/-1;font-size:12px;letter-spacing:1.5px;color:#e5b385;padding:2px 8px}#stations button{min-height:40px}
@media(max-width:650px) and (orientation:portrait){#stations{max-width:none}#joysticks{bottom:calc(128px + env(safe-area-inset-bottom))}#location{bottom:calc(252px + env(safe-area-inset-bottom))}}

body.pet-active #joysticks,body.pet-active #zoomControls,body.pet-active #reticle{display:none}

#releaseStatus{display:block;font-size:11px;line-height:1.4;color:#f4ddb9;letter-spacing:.2px}
.topbuttons{flex-wrap:wrap;justify-content:flex-end;max-width:300px}
#retryRoomAssets[hidden]{display:none!important}
#retryRoomAssets{position:fixed;z-index:6;left:16px;top:110px;font-size:12px;padding:8px 10px;background:#512b16}
body.game-active #retryRoomAssets,body.media-active #retryRoomAssets,body.turret-active #retryRoomAssets{display:none}
@media(max-width:650px){header>div:first-child{max-width:49%}header h1{font-size:23px}.topbuttons{max-width:49%;gap:4px}.topbuttons button{padding:7px 8px;font-size:11px}#guide{top:145px}#releaseStatus{font-size:10px}}

#controllerSetup.connected{border-color:#67e0b4;color:#d7ffef;background:#17352f}#controllerDialog{width:min(560px,94vw);border:1px solid #75d9bc;background:#15131b;color:#f5efe8;border-radius:14px;padding:18px;box-shadow:0 24px 90px #000c}#controllerDialog::backdrop{background:#08060bc9}.controller-dialog-head{display:flex;justify-content:space-between;align-items:flex-start}.controller-dialog-head h2{font:27px Georgia,serif;margin:7px 0}.controller-dialog-head button{font-size:24px;padding:1px 9px}.controller-sticks{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.controller-sticks span{padding:12px;border:1px solid #ffffff24;border-radius:8px;background:#0d1016;color:#a9b6c0;font-size:12px;line-height:1.5;text-align:center}.controller-sticks b{color:#fff;font-size:15px}#controllerLive{display:block;padding:9px;background:#080b10;border-radius:6px;color:#7ee6c4;font:13px monospace;text-align:center}.controller-dialog-actions{display:flex;gap:8px;flex-wrap:wrap}.controller-dialog-actions button:first-child{background:#8f4f30}.controller-note{font-size:13px;line-height:1.5;color:#bbb2bc}
