#online{position:absolute;right:24px;bottom:24px;width:340px;max-height:75vh;overflow:auto;background:#081b2fee;border:1px solid #6fc9e2;border-radius:8px;padding:16px;box-shadow:0 6px 30px #0009}#online h2{font-size:18px;margin:0 0 12px;color:#adeaff}#online h2 small{font-size:10px;margin-left:10px}#online label{display:block;margin:8px 0}#online input,#online select{display:block;width:100%;background:#071323;color:white;border:1px solid #46758b;padding:9px;border-radius:3px;font:inherit}#online p{font-size:12px}#online button{margin:6px 4px 6px 0}#online .online-error{color:#ffb4a8}#chat-log{padding:0;list-style:none;height:150px;overflow:auto;font-size:13px;overflow-wrap:anywhere}#chat-log li{margin:5px 0}#chat-form{display:flex;gap:6px}#chat-form input{min-width:0}#online h2:before{content:'';display:inline-block;width:20px;height:20px;background:url('ui-original/ad_actionpallet001.xvr.png') -211px -159px;margin-right:8px;vertical-align:middle}
.psu-nameplate{position:fixed;z-index:3;pointer-events:none;transform:translate(-50%,-100%);white-space:pre;font-family:Arial,"Yu Gothic",sans-serif;font-size:17px;font-weight:700;line-height:1.15;letter-spacing:.15px;color:#eaf9ff;-webkit-text-stroke:2.5px #10253f;paint-order:stroke fill;text-shadow:0 2px 1px #020914,0 0 4px #10253f;user-select:none}.psu-nameplate-local{color:#7de4ff}.psu-nameplate[hidden]{display:none}
body.in-menu>header,body.in-menu>.panel,body.in-menu>#status{display:none}
#online.game-menu{position:fixed;inset:0;width:auto;max-height:none;border:0;border-radius:0;padding:6vh max(6vw,24px);background:radial-gradient(ellipse at 65% 35%,#1a567c,#061329 75%);z-index:10;box-shadow:inset 0 0 100px #0008;overflow:auto}
#online.game-menu h2{border-bottom:1px solid #6bdfff;padding:12px 0;letter-spacing:.18em;color:#b9edff}#online.game-menu h3{font-weight:400;letter-spacing:.25em;margin:25px 0;color:#fff}#online.game-menu button{border-radius:0;border-left:4px solid #79e8ff;background:linear-gradient(90deg,#195576,#10304bee);padding:13px 24px;font-size:16px}#online.game-menu button:hover,#online.game-menu button:focus-visible{background:#277a9a;outline:2px solid #c1f5ff}#online.game-menu button:disabled{opacity:.5}
#login-form{max-width:420px;margin:9vh auto 0}#online.game-menu input,#online.game-menu select{border-radius:0;border-color:#5ca0be}#slots{display:grid;gap:12px;max-width:650px;margin:4vh 0}#slots .character-slot{text-align:left;min-height:70px}.title-screen{text-align:center;margin-top:14vh}.title-screen h1{font-size:clamp(28px,5vw,65px);font-weight:300;letter-spacing:.16em;text-shadow:0 0 25px #73d6ff}.title-screen strong{font-size:1.3em}.creator-layout{display:grid;grid-template-columns:minmax(260px,1fr) minmax(280px,430px);gap:5vw;max-width:1100px;margin:auto}#character-preview{height:65vh;min-height:400px;background:radial-gradient(ellipse at 50% 85%,#57bad744,transparent 60%);border-bottom:1px solid #77dfff;touch-action:none}#appearance-options{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}#character-preview[data-loading=true]{opacity:.5}#online .online-error{min-height:1.2em}@media(max-width:700px){.creator-layout{grid-template-columns:1fr}#character-preview{height:35vh;min-height:230px}#online.game-menu{padding:16px}}

.psu-bubble{position:fixed;z-index:4;transform:translate(-50%,-100%);max-width:280px;padding:12px 17px;background:#f6fcff;color:#152435;border:2px solid #6c9cb9;border-radius:16px;font:16px/1.35 Arial,sans-serif;box-shadow:0 3px 8px #0007;overflow-wrap:anywhere;pointer-events:none}.psu-bubble:after{content:'';position:absolute;left:45%;bottom:-13px;border-width:12px 12px 0 0;border-style:solid;border-color:#f6fcff transparent transparent transparent}.psu-bubble[hidden]{display:none}
/* Keep the lobby chat readable beside the source-style game windows. */
body:has(#chat-form) #online:not(.game-menu){width:min(360px,calc(100vw - 24px));right:12px;bottom:12px;padding:11px 12px;background:linear-gradient(160deg,#18313edc,#091c2be8);border:1px solid #93adb4;border-radius:4px;box-shadow:inset 0 1px #d8ffff50,0 5px 18px #0009}
body:has(#chat-form) #chat-log{height:clamp(100px,21vh,190px);margin:8px 0;padding:6px 9px;background:#07151fb9;border:1px solid #748e95;scrollbar-color:#83a1aa #172b36}
body:has(#chat-form) #chat-log li{margin:0;padding:3px 0;border-bottom:1px solid #ffffff18;color:#edf7f9;line-height:1.3}
body:has(#chat-form) #chat-form{margin:0;align-items:stretch}
body:has(#chat-form) #chat-form input{background:#e7f2f2;color:#172b35;border:1px solid #a4bec3;border-radius:3px}
body:has(#chat-form) #chat-form button{margin:0;padding:5px 9px;background:#526970;border:1px solid #a4bec3;color:white}
body:has(#chat-form) #online #identity{margin:0;color:#d4e7ec;font-size:12px}
@media(max-width:760px){body:has(#chat-form) #online:not(.game-menu){max-height:40vh}body:has(#chat-form) #chat-log{height:90px}}
#psu-cut-in[hidden]{display:none}
#psu-cut-in{position:fixed;left:50%;top:16%;transform:translateX(-50%);z-index:900;display:flex;width:min(440px,90vw);height:150px;overflow:hidden;pointer-events:none;background:linear-gradient(110deg,#173849f2,#081c2aea);border:1px solid #9fd9e5;box-shadow:0 10px 35px #000b;color:#f0fcff}
#psu-cut-in[data-chat-type="1"]{border-color:#f6c87d}
#psu-cut-in[data-chat-type="2"]{border-color:#b9a5ec}
.psu-cut-in-portrait{flex:0 0 38%;min-width:0;background:#0d2534 url('ui-library/866846b780cb87bcd54430c245e1f5e2/ad_cut_in_chat002.xvr.png') repeat;overflow:hidden}
.psu-cut-in-portrait canvas{display:block;width:100%;height:100%}
.psu-cut-in-copy{display:flex;flex-direction:column;min-width:0;gap:5px;padding:12px 14px}
.psu-cut-in-copy strong{font-size:15px;color:#bfeefa}
.psu-cut-in-copy small{font-size:11px;color:#a6cfda}
.psu-cut-in-copy p{margin:2px 0 0;font-size:14px;overflow-wrap:anywhere}

.creator-basics{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}#actions{border-top:1px solid #6ba3b7;margin-top:12px;padding-top:8px}#actions summary{cursor:pointer;color:#adeaff}#motion-select{max-width:100%;font-size:12px}#motion-filter{font-size:12px}

#game-menu-button{position:fixed;top:65px;right:24px;z-index:5}#psu-game-menu{color:#e5f5ff;background:#0b253cef;border:1px solid #7ed7ed;padding:24px;max-width:600px;max-height:85vh;overflow:auto}#psu-game-menu::backdrop{background:#0008}#psu-game-menu>button,#psu-game-menu>a{display:block;width:100%;margin:10px 0;padding:12px;text-align:left}#psu-game-menu pre{white-space:pre-wrap;font-size:12px}#game-menu-button[hidden]{display:none}
#psu-topbar{position:fixed;top:0;left:0;right:0;z-index:5;min-height:52px;display:flex;align-items:center;gap:6px;padding:6px 14px;background:linear-gradient(180deg,#123b55f5,#092337ed);border-bottom:2px solid #75cdeb;box-shadow:0 5px 16px #0008;color:#e5f8ff;font:13px Arial,sans-serif}#psu-topbar[hidden],.asset-preview #psu-topbar{display:none}#psu-topbar strong{color:#8deaff;letter-spacing:.14em;margin-right:10px}#psu-topbar-location{min-width:110px;max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#b7d7e6;margin-right:auto}#psu-topbar button,#psu-topbar #game-menu-button{position:static;z-index:auto;margin:0;padding:7px 10px;border-radius:2px;border-color:#5d9dbb;background:#123e59;white-space:nowrap;font-size:12px}#psu-topbar button:hover,#psu-topbar button:focus-visible{background:#286384;outline:1px solid #b6efff}@media(max-width:850px){#psu-topbar{overflow-x:auto}#psu-topbar-location{min-width:85px}#psu-topbar button{flex:none}}
body:not(.in-menu)>header{top:64px}body:not(.in-menu)>#status{top:64px}
#players-info{max-height:35vh;overflow:auto;overscroll-behavior:contain;border:1px solid #4d849b;padding:8px 12px}#players-info ul{margin:0;padding-left:22px}#players-info li{padding:5px 0}
#floor-elevator-button{position:fixed;left:50%;transform:translateX(-50%);bottom:28px;z-index:6;background:#13536b;border-color:#8ce7ff}#floor-elevator-button[hidden]{display:none}#floor-elevator-dialog{color:#e5f5ff;background:#0b253cf2;border:1px solid #7ed7ed;min-width:min(420px,90vw);padding:24px}#floor-elevator-dialog::backdrop{background:#001321bb}#floor-elevator-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}#floor-elevator-options button{text-align:left;padding:12px}#floor-elevator-options button:disabled{opacity:.5}#floor-elevator-status{min-height:1.5em}
#floor-exit-status{position:fixed;left:50%;transform:translateX(-50%);bottom:75px;z-index:7;background:#0b253c;border:1px solid #7ed7ed;padding:10px 18px;border-radius:6px}#floor-exit-status[hidden]{display:none}
.asset-preview #game-menu-button,.asset-preview #floor-elevator-button{display:none}

.function-key-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.function-key-grid label{display:grid;gap:4px}.function-key-grid select{min-width:0;max-width:100%;padding:8px;color:#e5f5ff;background:#12334b;border:1px solid #6399af}#key-capture-status{font-size:12px;margin:12px 0}@media(max-width:600px){.function-key-grid{grid-template-columns:repeat(2,1fr)}}

/* Original extracted PSU textures; source archive 1059a6aa7d87c792ab8f49cf83028e74. */
#online.game-menu{background:linear-gradient(#003548b8,#002a3de0),url('title-original/menu-background.png') center/cover no-repeat}
#online.game-menu.native-title{background:#02050c url('title-original/starfield.png') center/cover no-repeat;box-shadow:none}
#online.native-title>h2{visibility:hidden}
.native-psu-logo{display:block;width:min(85vw,900px);height:auto;margin:0 auto 9vh;filter:drop-shadow(0 0 15px #99d9ff80)}
#online.native-title .title-screen{margin-top:12vh}
#online.native-title #start{display:block;margin:auto;min-width:240px;color:#b9f7ff}
.native-title{isolation:isolate}
#online.game-menu.native-title{background:#091922 url('/ui-library/1059a6aa7d87c792ab8f49cf83028e74/ad_titleback_01.xvr.png') center/cover no-repeat}
#online.native-title .title-screen{position:absolute;inset:0;margin:0;overflow:hidden}
#online.native-title .title-screen::before{content:'';position:absolute;z-index:-1;left:50%;top:3%;width:min(46vw,510px);height:93%;transform:translateX(-50%);background:url('/title-original/title_ilminas_logo02.xvr.png') center/contain no-repeat;filter:brightness(0) saturate(100%) invert(23%) sepia(80%) saturate(1400%) hue-rotate(326deg);opacity:.58;mix-blend-mode:screen}
#online.native-title .native-psu-logo{position:absolute;left:50%;top:33%;transform:translateX(-50%);width:min(100vw,1050px);margin:0;filter:drop-shadow(0 2px 3px #000) drop-shadow(0 0 5px #d8e2c8)}
.native-title-fire{position:absolute;inset:0;z-index:4;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;pointer-events:none;mix-blend-mode:screen}
.native-title-fire img{display:block;width:100%;height:100%;object-fit:fill}
#online.native-title .native-psu-subtitle{position:absolute;left:50%;top:62%;transform:translateX(-50%);width:max-content;max-width:95vw;color:#f6f1d8;font:bold clamp(24px,3.5vw,46px)/1 Georgia,serif;letter-spacing:0;text-shadow:-2px -2px #101018,2px 2px #101018,0 0 8px #c1b8a4}
#online.native-title #start{position:absolute;left:50%;top:75%;transform:translateX(-50%);min-width:0;margin:0;padding:0 7px;border:0;background:none;color:#11d5df;font:bold clamp(23px,3.2vw,38px)/1.1 Arial,sans-serif;letter-spacing:0;text-shadow:-2px -2px #000,2px 2px #000,0 0 6px #12faff;animation:native-title-pulse 4s ease-in-out infinite}
#online.native-title #start:hover,#online.native-title #start:focus-visible{background:none;outline:0;color:#7affff}
#online.native-title .native-psu-version,#online.native-title .native-psu-sega{position:absolute;bottom:5.5%;color:#e6e6e7;font:18px Arial,sans-serif;text-shadow:1px 1px 2px #000}
#online.native-title .native-psu-version{left:7.5%;letter-spacing:.16em}
#online.native-title .native-psu-sega{right:5.5%;font:32px Georgia,serif}
@keyframes native-title-pulse{50%{opacity:.8}}
.attract-movie{position:fixed;inset:0;z-index:30;background:#000;display:grid;place-items:center}.attract-movie[hidden]{display:none}.attract-movie video{width:100%;height:100%;object-fit:contain}.attract-movie span{position:absolute;bottom:24px;color:white;text-shadow:0 1px 4px black;font-size:14px}.title-sound{position:absolute;right:24px;bottom:24px}

.server-notice{z-index:50;width:min(740px,90vw);max-height:85vh;color:#f4fbff;background:#304453f5;border:2px solid #83c6df;padding:24px}.server-notice::backdrop{background:#001521bb}.server-notice pre{white-space:pre-wrap;overflow-wrap:anywhere;font:18px/1.5 Arial,sans-serif;max-height:55vh;overflow:auto}.server-notice button{margin:8px;padding:12px 24px}.server-notice h2{color:#a7e9ff}

#psu-topbar-server{color:#8deaff;font-weight:bold;white-space:nowrap;margin-right:8px}

/* In-game panels follow the original PSU shop and item windows: compact,
   translucent lists at upper left with the 3D scene still visible. */
body:has(#psu-game-menu[open][data-view="inventory"]) #psu-topbar,
body:has(#psu-game-menu[open][data-view="equipment"]) #psu-topbar,
body:has(#psu-game-menu[open][data-view="catalog"]) #psu-topbar,
body:has(#psu-game-menu[open][data-view="status"]) #psu-topbar{visibility:hidden}
body:has(#psu-game-menu[open]:is([data-view="inventory"],[data-view="equipment"],[data-view="catalog"],[data-view="status"],[data-view="players"],[data-view="map"],[data-view="system"]))>header,
body:has(#psu-game-menu[open]:is([data-view="inventory"],[data-view="equipment"],[data-view="catalog"],[data-view="status"],[data-view="players"],[data-view="map"],[data-view="system"]))>.panel,
body:has(#psu-game-menu[open]:is([data-view="inventory"],[data-view="equipment"],[data-view="catalog"],[data-view="status"],[data-view="players"],[data-view="map"],[data-view="system"]))>#status{visibility:hidden}
#psu-game-menu:is([data-view="inventory"],[data-view="equipment"],[data-view="catalog"],[data-view="status"],[data-view="players"],[data-view="map"],[data-view="system"]){--psu-ui-scale:clamp(.55,calc(100vw / 1920px),1);position:fixed;inset:7.5vh auto auto 7.5vw;margin:0;width:min(380px,calc(100vw - 60px));max-width:none;max-height:calc(100vh - 52px);padding:0;overflow:auto;background:transparent;border:0;box-shadow:none;color:#f4f7f7;text-shadow:0 1px 2px #111;font:13px/1.25 Arial,sans-serif}
#psu-game-menu:is([data-view="inventory"],[data-view="equipment"],[data-view="catalog"],[data-view="status"],[data-view="players"],[data-view="map"],[data-view="system"])::backdrop{background:transparent}
#psu-game-menu:is([data-view="inventory"],[data-view="equipment"],[data-view="catalog"],[data-view="status"],[data-view="players"],[data-view="map"],[data-view="system"])>h2,
#psu-game-menu:is([data-view="inventory"],[data-view="equipment"],[data-view="catalog"],[data-view="status"],[data-view="players"],[data-view="map"],[data-view="system"])>button:not([data-action="close"]),
#psu-game-menu:is([data-view="inventory"],[data-view="equipment"],[data-view="catalog"],[data-view="status"],[data-view="players"],[data-view="map"],[data-view="system"])>a,
#psu-game-menu:is([data-view="inventory"],[data-view="equipment"],[data-view="catalog"],[data-view="status"],[data-view="players"],[data-view="map"],[data-view="system"])>#players-info,
#psu-game-menu:is([data-view="inventory"],[data-view="equipment"],[data-view="catalog"],[data-view="status"],[data-view="players"],[data-view="map"],[data-view="system"])>#control-info{display:none}
#psu-game-menu:is([data-view="inventory"],[data-view="equipment"],[data-view="catalog"],[data-view="status"],[data-view="players"],[data-view="map"],[data-view="system"])>button[data-action="close"]{width:120px;margin:6px 0;padding:4px 10px;background:#34444acc;border:1px solid #788b8c;color:#fff;font-size:12px}
#psu-game-menu:is([data-view="inventory"],[data-view="equipment"],[data-view="catalog"],[data-view="status"],[data-view="players"],[data-view="map"],[data-view="system"]) #server-info{display:block;padding:0;border:0;background:transparent}
#psu-game-menu:is([data-view="inventory"],[data-view="equipment"],[data-view="catalog"],[data-view="status"],[data-view="players"],[data-view="map"],[data-view="system"]) #server-info h3{margin:0 0 3px;padding:5px 12px;font-size:13px;font-weight:normal;letter-spacing:.02em;background:linear-gradient(#697a7ce8,#394b50e8);border:1px solid #89999a;border-radius:4px;color:#fff}
#psu-game-menu:is([data-view="inventory"],[data-view="equipment"],[data-view="catalog"]) #server-info ul{list-style:none;margin:4px 0 0;padding:3px 0;max-height:min(44vh,350px);overflow-y:auto;background:#27343ad9;border:1px solid #728084;box-shadow:0 1px 5px #1118;scrollbar-color:#7e9699 #27343a}
#psu-game-menu:is([data-view="inventory"],[data-view="equipment"],[data-view="catalog"]) #server-info li{display:flex;align-items:center;gap:5px;padding:3px 7px;min-height:24px;border-bottom:1px solid #ffffff19;color:#f1f5f3}
#psu-game-menu:is([data-view="inventory"],[data-view="equipment"],[data-view="catalog"]) #server-info li:hover,
#psu-game-menu:is([data-view="inventory"],[data-view="equipment"],[data-view="catalog"]) #server-info li:focus-within{background:#67634db8}
#psu-game-menu:is([data-view="inventory"],[data-view="equipment"],[data-view="catalog"]) #server-info li button{margin-left:auto;padding:3px 7px;flex:none;background:#586a70;border:1px solid #a1abad;color:#fff;font-size:11px}
#psu-game-menu[data-view="catalog"] #server-info select{display:block;width:100%;margin:2px 0;padding:5px 8px;background:#4b5a5bd9;border:1px solid #89999a;border-radius:2px;color:white}
#psu-game-menu #server-info [hidden]{display:none!important}
#psu-game-menu:is([data-view="inventory"],[data-view="equipment"],[data-view="catalog"]) #server-info .psu-item-details{margin:4px 0 0;min-height:66px;padding:7px 9px;background:#36444ad9;border:1px solid #7b898a;border-radius:2px;box-shadow:0 1px 5px #1118;color:#eaf2f1}
#psu-game-menu #server-info .psu-item-details strong{display:block;color:#fff;font-size:13px;font-weight:normal}
#psu-game-menu #server-info .psu-item-details small{display:block;letter-spacing:0;color:#c6d2d1;font-size:11px;margin-top:4px}
#psu-game-menu #server-info li:focus-visible{outline:1px solid #d8c487;outline-offset:-2px}
#psu-game-menu[data-view="catalog"] #server-info p:nth-of-type(1){position:fixed;right:42px;top:26px;margin:0;padding:5px 12px;background:#38484ad9;border:1px solid #89999a;border-radius:4px}
#psu-game-menu:is([data-view="inventory"],[data-view="equipment"],[data-view="catalog"]) #server-info p:last-child{display:none}
@media(max-width:600px){#psu-game-menu:is([data-view="inventory"],[data-view="equipment"],[data-view="catalog"],[data-view="status"],[data-view="players"],[data-view="map"],[data-view="system"]){inset:12px auto auto 12px;width:calc(100vw - 24px);max-height:calc(100vh - 24px)}#psu-game-menu[data-view="catalog"] #server-info p:nth-of-type(1){position:static;margin:4px 0}}

#psu-main-sections{display:none}
body:has(#psu-game-menu[open][data-view="players"]) #psu-topbar{visibility:hidden}
#psu-game-menu:is([data-view="status"],[data-view="inventory"],[data-view="equipment"],[data-view="players"],[data-view="map"],[data-view="system"]) #psu-main-sections{display:flex;gap:4px;margin:0 0 4px}
#psu-game-menu #psu-main-sections button{display:block;width:32px;height:29px;flex:none;margin:0;padding:0;border:1px solid #718185;border-radius:4px;background:#263137d8 var(--psu-native-base,url('/ui-sprites/interface-main_menu-123.png')) center/cover;color:#fff}
#psu-game-menu #psu-main-sections button::before{content:'';display:block;width:20px;height:20px;margin:auto;background-image:var(--psu-native-icon);background-repeat:no-repeat;background-position:center;background-size:20px}
#psu-game-menu #psu-main-sections button:nth-child(1){--psu-native-icon:url('/ui-sprites/interface-main_menu-179.png')}
#psu-game-menu #psu-main-sections button:nth-child(2){--psu-native-icon:url('/ui-sprites/interface-main_menu-180.png')}
#psu-game-menu #psu-main-sections button:nth-child(3){--psu-native-icon:url('/ui-sprites/interface-main_menu-181.png')}
#psu-game-menu #psu-main-sections button:nth-child(4){--psu-native-icon:url('/ui-sprites/interface-main_menu-182.png')}
#psu-game-menu #psu-main-sections button:nth-child(5){--psu-native-icon:url('/ui-sprites/interface-main_menu-183.png')}
#psu-game-menu #psu-main-sections button[aria-pressed="true"]{border-color:#a6edb4;background-color:#38744de6;box-shadow:0 0 5px #63f086}
#psu-game-menu:is([data-view="status"],[data-view="inventory"],[data-view="equipment"],[data-view="players"],[data-view="map"],[data-view="system"]) #players-info{display:block;max-height:min(45vh,350px);overflow:auto;margin:0;padding:8px;background:#27343ad9;border:1px solid #728084;color:#f1f5f3}
#psu-game-menu #server-info[hidden],#psu-game-menu #players-info[hidden]{display:none!important}

/* Native PSU item/status windows occupy a compact stack at the upper left.
   The 1280x720 capture in build/reference-clips/clementine-inventory-top-hd.jpg
   places the icon row near (95,55), list near (95,80), and detail card below. */
@media(min-width:700px){
 #psu-game-menu:is([data-view="inventory"],[data-view="equipment"],[data-view="catalog"],[data-view="status"],[data-view="players"],[data-view="map"],[data-view="system"]){inset:clamp(28px,7.5vh,76px) auto auto clamp(40px,7.4vw,112px);width:200px;max-height:calc(100vh - 85px);font-size:12px}
 #psu-game-menu:is([data-view="inventory"],[data-view="equipment"],[data-view="catalog"]) #server-info ul{max-height:min(22vh,160px)}
 #psu-game-menu:is([data-view="inventory"],[data-view="equipment"],[data-view="catalog"],[data-view="status"],[data-view="players"],[data-view="map"],[data-view="system"]) #server-info h3,
 #psu-game-menu[data-view="players"] #players-info h3{position:fixed;top:clamp(28px,7.5vh,76px);left:calc(clamp(40px,7.4vw,112px) + 155px);width:210px;min-height:21px;box-sizing:border-box}
 #psu-game-menu:is([data-view="inventory"],[data-view="equipment"],[data-view="catalog"],[data-view="status"],[data-view="players"],[data-view="map"],[data-view="system"]) #server-info ul,
 #psu-game-menu:is([data-view="inventory"],[data-view="equipment"],[data-view="catalog"]) #server-info select,
 #psu-game-menu[data-view="players"] #players-info ul{margin-top:4px}
}
/* PSU lobby action list placement and tone follow an original PSU Colony screenshot. */
#psu-lobby-actions{position:fixed;right:4.6vw;bottom:2.1vh;z-index:8;width:256px;padding:5px 7px 6px;background:linear-gradient(100deg,#394348e8,#252d34e6);border:1px solid #89969b;box-shadow:0 2px 8px #0009;color:#f3f2ef;font:14px/1.2 Arial,sans-serif;text-shadow:0 1px #111}
#psu-lobby-actions[hidden]{display:none}
#psu-lobby-actions button{display:block;width:100%;height:26px;margin:0;padding:2px 6px;text-align:left;color:#f1f0ed;background:none;border:0;border-radius:0;font:14px Arial,sans-serif;text-shadow:0 1px #111}
#psu-lobby-actions button:hover,#psu-lobby-actions button:focus-visible{background:linear-gradient(90deg,#a5673c99,#7c543b99),url('/ui-sprites/window-select_bar-83.png') left center/8px 100% no-repeat,url('/ui-sprites/window-select_bar-84.png') center center/100% 100% no-repeat;outline:1px solid #d9a477}
/* Normal play uses the game view. Development readouts remain available with ?inspect=1. */
body.psu-playing:not(.psu-chat-open) #online{display:none}
body.psu-playing:not(.psu-inspect)>header,body.psu-playing:not(.psu-inspect)>.panel,body.psu-playing:not(.psu-inspect)>#status{display:none}
body.psu-playing.psu-chat-open #online{display:block;max-height:min(42vh,320px)}
body:has(#psu-lobby-actions:not([hidden])) #psu-topbar{display:none}
/* Lobby HUD structure measured from Clementine's in-game HUD reference. */
#psu-status-hud{position:fixed;left:7.5vw;bottom:6.6vh;z-index:4;min-width:66px;color:#f9f9f9;font:bold 8px/1 Arial,sans-serif;text-shadow:1px 1px #151515,-1px -1px #333;pointer-events:none}
body:not(.psu-playing) #psu-status-hud{display:none}
#psu-status-hud .psu-hud-name{color:#39d5d8;height:11px;white-space:nowrap;font-size:8px}
#psu-status-hud .psu-hud-plate{display:flex;align-items:stretch;min-height:28px;padding:2px 4px 2px 2px;background:linear-gradient(120deg,#6c777a,#303a3c 55%,#697275);border:1px solid #222;clip-path:polygon(0 2px,7px 0,calc(100% - 4px) 0,100% 4px,100% calc(100% - 5px),calc(100% - 5px) 100%,7px 100%,0 calc(100% - 3px));box-shadow:0 1px 2px #000}
#psu-status-hud .psu-hud-red{width:7px;margin:2px 3px 2px 1px;background:#ef101a;border-radius:3px 1px 1px 3px;box-shadow:inset 1px 0 #ff8585,1px 0 #171717;flex:none}
#psu-status-hud .psu-hud-content{min-width:49px;white-space:nowrap}
#psu-status-hud .psu-hud-level{font-size:9px;line-height:9px}
#psu-status-hud .psu-hud-hp{font-size:8px;line-height:8px}
#psu-status-hud .psu-hud-health-track{height:3px;margin-top:1px;background:#1c2920;border-top:1px solid #0c1b11}
#psu-status-hud .psu-hud-health-track span{display:block;height:2px;background:#54e62c}
#psu-status-hud .psu-hud-segments{height:4px;margin-top:1px;background:repeating-linear-gradient(90deg,#111b1f 0 7px,#505a60 7px 8px)}
body.psu-playing:not(.psu-inspect)::after{content:'© SEGA';position:fixed;bottom:4.3vh;left:1.6vw;color:#e5e9e9;font:8px Arial,sans-serif;text-shadow:1px 1px #111;pointer-events:none}

#psu-game-menu #map-info[hidden],#psu-game-menu #system-info[hidden]{display:none!important}
#psu-game-menu:is([data-view="map"],[data-view="system"]) #map-info,#psu-game-menu:is([data-view="map"],[data-view="system"]) #system-info{padding:8px;background:#27343ad9;border:1px solid #728084;color:#f1f5f3}
#psu-game-menu:is([data-view="map"],[data-view="system"]) #map-info h3,#psu-game-menu:is([data-view="map"],[data-view="system"]) #system-info h3{margin:0 0 6px;font-weight:normal;font-size:13px}
#psu-game-menu:is([data-view="map"],[data-view="system"]) #map-info button,#psu-game-menu:is([data-view="map"],[data-view="system"]) #system-info button{display:block;width:100%;margin:4px 0;padding:5px 8px;text-align:left;background:#435157;color:#fff;border:1px solid #89999a}

/* interface.xncp/main_menu: six bases at x=0,32,64,96,128,160;
   five 20px icons placed 5px inside the first five bases. */
#psu-main-sections[data-native-layout="main_menu"]{position:relative;width:190px;height:30px;flex:none;gap:0!important}
#psu-game-menu #psu-main-sections[data-native-layout="main_menu"]{transform:scale(var(--psu-ui-scale,1));transform-origin:top left}
#psu-game-menu #psu-main-sections[data-native-layout="main_menu"]>button,
#psu-game-menu #psu-main-sections[data-native-layout="main_menu"]>span{position:absolute;left:var(--psu-cast-x);top:var(--psu-cast-y);width:var(--psu-cast-width);height:var(--psu-cast-height);box-sizing:border-box;margin:0;padding:0;border:0;border-radius:0;background:var(--psu-native-base) center/100% 100% no-repeat}
#psu-game-menu #psu-main-sections[data-native-layout="main_menu"]>button::before{position:absolute;left:var(--psu-icon-x);top:var(--psu-icon-y);width:var(--psu-icon-width);height:var(--psu-icon-height);margin:0;background-size:100% 100%}
#psu-game-menu #psu-main-sections[data-native-layout="main_menu"]>button[aria-pressed="true"]{border:0;outline:0;box-shadow:none;background-color:transparent;background-blend-mode:normal}
#psu-game-menu #psu-main-sections[data-native-layout="main_menu"]>button[aria-pressed="true"]::after{content:"";position:absolute;left:var(--psu-icon-x);top:var(--psu-icon-y);width:var(--psu-icon-width);height:var(--psu-icon-height);z-index:2;pointer-events:none;background:#20db6d;mask-image:var(--psu-native-icon);mask-size:100% 100%;mask-repeat:no-repeat;opacity:.85}
#psu-game-menu #psu-main-sections[data-native-layout="main_menu"]>button::before{z-index:1}

/* window.xncp/select_bar: two 16x18 ends and a 1x18 center cast.
   Keep the text and action buttons above the original highlight artwork. */
#psu-game-menu:is([data-view="inventory"],[data-view="equipment"],[data-view="catalog"]) #server-info li{position:relative;isolation:isolate}
#psu-game-menu:is([data-view="inventory"],[data-view="equipment"],[data-view="catalog"]) #server-info li:is(:hover,:focus,:focus-within,[aria-selected="true"]){background:none}
#psu-game-menu:is([data-view="inventory"],[data-view="equipment"],[data-view="catalog"]) #server-info li:is(:hover,:focus,:focus-within,[aria-selected="true"])::before{content:"";position:absolute;z-index:-1;inset:3px 16px 3px 16px;background:url('/ui-sprites/window-select_bar-84.png') center/100% 18px no-repeat;filter:sepia(1) saturate(2.2) hue-rotate(340deg) brightness(.62);pointer-events:none}
#psu-game-menu:is([data-view="inventory"],[data-view="equipment"],[data-view="catalog"]) #server-info li:is(:hover,:focus,:focus-within,[aria-selected="true"])::after{content:"";position:absolute;z-index:-1;inset:3px 0;pointer-events:none;background:url('/ui-sprites/window-select_bar-83.png') left center/16px 18px no-repeat,url('/ui-sprites/window-select_bar-83.png') right center/16px 18px no-repeat;filter:sepia(1) saturate(2.2) hue-rotate(340deg) brightness(.62)}
#psu-game-menu[data-view="players"] #cards-info{display:block;max-height:min(45vh,350px);overflow:auto;margin:0;padding:8px;background:#27343ad9;border:1px solid #728084;color:#f1f5f3}
#psu-game-menu[data-view="players"] #cards-info[hidden]{display:none}
#psu-game-menu[data-view="players"] #players-info button{display:block;margin:6px 0 0;padding:4px 8px;background:#435157;color:#fff;border:1px solid #89999a}
.player-interaction{margin:12px 0 4px;padding:10px;border:1px solid #89999a;background:#17272dbf}.player-interaction h4{margin:0 0 6px}.player-interaction p{margin:5px 0}.player-interaction-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.player-interaction-actions button:disabled{opacity:.45;cursor:default}

#psu-native-submenu[hidden]{display:none!important}
#psu-game-menu[data-native-menu-mode="sub"]:has(#psu-native-submenu:not([hidden])) #psu-main-sections{display:none!important}
#psu-game-menu #psu-native-submenu:not([hidden]){position:relative;display:block!important;width:190px;height:30px;margin:0 0 3px!important;transform:scale(var(--psu-ui-scale,1));transform-origin:top left}
#psu-game-menu #psu-native-submenu button{position:absolute;top:0;left:0;width:30px;height:30px;min-height:0;padding:0;border:0;border-radius:0;outline:0;background:url('/ui-sprites/interface-main_menu-123.png') center/30px 30px no-repeat;color:transparent;font-size:0;overflow:hidden}
#psu-game-menu #psu-native-submenu button::before{content:"";position:absolute;inset:5px;background:var(--psu-native-icon) center/20px 20px no-repeat}
#psu-game-menu #psu-native-submenu button:is(:focus-visible,[aria-current="true"])::after{content:"";position:absolute;inset:5px;background:#20db6d;mask-image:var(--psu-native-icon);mask-size:20px 20px;mask-repeat:no-repeat;pointer-events:none;opacity:.85}
#psu-game-menu #psu-native-submenu button[aria-disabled="true"]{opacity:.8}
#psu-game-menu #psu-native-submenu button[data-native-entry="safety-reset"]{color:#fff;font-size:11px;font-weight:bold;text-align:center}
#psu-game-menu #psu-native-submenu button[data-native-entry="safety-reset"]::after{content:"1F";position:absolute;inset:0;display:grid;place-items:center;background:none;mask-image:none;opacity:1}
#psu-game-menu #psu-native-submenu-help{position:absolute;left:calc(230px * var(--psu-ui-scale,1));top:0;box-sizing:border-box;width:316px;height:30px;margin:0;padding:6px 12px;color:#fff;font:12px/18px Arial,sans-serif;border:0;border-radius:0;transform:scale(var(--psu-ui-scale,1));transform-origin:top left;background:url('/ui-sprites/interface-main_menu-7.png') left top/8px 30px no-repeat,url('/ui-sprites/interface-main_menu-9.png') right top/8px 30px no-repeat,url('/ui-sprites/interface-main_menu-8.png') center top/calc(100% - 16px) 30px no-repeat}
#psu-game-menu #psu-native-submenu-help[hidden]{display:none!important}
#psu-game-menu[data-native-menu-mode="sub"]{overflow:visible}
#psu-game-menu[data-native-menu-mode="sub"] #server-info h3,
#psu-game-menu[data-native-menu-mode="sub"] #players-info h3{visibility:hidden}
#psu-game-menu[data-view="status"] #server-info dl{box-sizing:border-box;display:grid;grid-template-columns:72px minmax(0,1fr);gap:1px 5px;width:196px;margin:0;padding:7px 9px;background:#26343bc9;border:1px solid #748184;color:#e5eded;font:10px/12px Arial,sans-serif;text-shadow:0 1px #111}
#psu-game-menu[data-view="status"] #server-info dt{margin:0;color:#d8e0e1;font-weight:normal}
#psu-game-menu[data-view="status"] #server-info dd{margin:0;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff}
#psu-game-menu:is([data-view="inventory"],[data-view="equipment"],[data-view="catalog"],[data-view="status"],[data-view="players"],[data-view="map"],[data-view="system"])>button[data-action="close"]{display:none}
#psu-native-item-categories{display:flex;align-items:center;gap:2px;width:196px;height:18px;margin:2px 0 1px;overflow:hidden}
#psu-native-item-categories button{flex:1 1 0;min-width:0;height:18px;min-height:18px;box-sizing:border-box;padding:0 2px;text-align:center;font:10px/18px Arial,sans-serif;color:#c7d1d0;background:transparent;border:0;white-space:nowrap}
#psu-native-item-categories button:is([aria-current="true"],:focus-visible){color:#a8eab2;background:transparent;outline:0}

/* Native inventory capture: compact name rows under the icon strip; metadata lives in the detail panel. */
#psu-game-menu[data-view="inventory"] #server-info ul{margin-top:4px;padding:0;min-height:130px}
#psu-game-menu[data-view="inventory"] #server-info li{box-sizing:border-box;min-height:19px;height:19px;padding:1px 4px;font-size:12px;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-bottom:0}
#psu-game-menu[data-view="inventory"] #server-info li:focus-visible{outline-offset:-1px}

@media(min-width:700px){
 #psu-game-menu #psu-main-sections[data-native-layout="main_menu"]{height:calc(30px * var(--psu-ui-scale,1))}
 #psu-game-menu[data-view="inventory"] #psu-native-item-categories{position:fixed;left:calc(clamp(40px,7.4vw,112px) + 205px);top:calc(clamp(28px,7.5vh,76px) + 27px);width:160px;margin:0;z-index:2}
}
#psu-game-menu[data-view="inventory"] #server-info h3{visibility:visible!important}
#psu-game-menu[data-view="inventory"] #psu-native-submenu-help{visibility:hidden}

#psu-game-menu[data-view="inventory"] #server-info li .psu-item-type-icon{display:inline-block;flex:none;width:12px;height:12px;object-fit:contain;margin-right:1px;image-rendering:auto}

/* window.xncp/window number_a..number_h: 20 virtual-pixel increments. */
#psu-game-menu[data-view="inventory"] #psu-inventory-numbers{position:fixed;left:calc(clamp(40px,7.4vw,112px) + 33px);top:calc(clamp(28px,7.5vh,76px) + 22px);z-index:3;width:120px;height:16px;transform:scale(var(--psu-ui-scale,1));transform-origin:top left}
#psu-game-menu[data-view="inventory"] #psu-inventory-numbers button,.psu-item-pages button{position:absolute;top:0;box-sizing:border-box;width:18px;height:16px;min-height:0;padding:0;border:0;border-radius:0;background:#172126 url('/ui-sprites/window-window-19.png') center/100% 100% no-repeat;color:#e5e9e5;font:10px/16px Arial,sans-serif;text-align:center}
#psu-game-menu[data-view="inventory"] #psu-inventory-numbers button[aria-current="true"],.psu-item-pages button[aria-current="true"]{background-color:#c66d25;color:#fff}

#psu-game-menu[data-view="inventory"] #server-info ul{box-sizing:border-box;padding-top:10px}
#psu-game-menu[data-view="inventory"] #server-info .psu-item-details{position:relative;box-sizing:border-box;min-height:96px;margin-top:24px;padding:0 5px 5px}
.psu-item-pages{position:relative;height:14px;width:60px;margin:0 0 1px}
.psu-item-pages button:disabled{opacity:.5}
#psu-game-menu #server-info .psu-item-page-body strong{font-size:12px;line-height:14px}
.psu-item-page-body dl{display:grid;grid-template-columns:68px 1fr;gap:0 3px;margin:0;color:#e6eeee;font:11px/13px Arial,sans-serif}
.psu-item-page-body dt{margin:0;color:#cdd7d7}.psu-item-page-body dd{margin:0;text-align:right;color:white}
.psu-item-maker-row{display:flex;justify-content:space-between;gap:4px;min-height:13px;color:#dce6e5;font:11px/13px Arial,sans-serif}
/* Original PSU disc DATA/e0321ac658b412933ede02c45cb60d40: ad_icon_all.xvr. */
.psu-photon-icon{display:inline-block;width:12px;height:12px;background-image:url('/ui-original-disc/ad_icon_all.xvr.png');background-size:384px 384px;background-repeat:no-repeat;vertical-align:middle}
/* The original neutral photon cell is already gray; keep its disc colors. */
.psu-photon-0{background-position:-336px -82px}
.psu-photon-1{background-position:-308px -68px;filter:sepia(1) saturate(8) hue-rotate(320deg)}
.psu-photon-2{background-position:-336px -68px;filter:sepia(1) saturate(7) hue-rotate(155deg)}
.psu-photon-3{background-position:-322px -68px;filter:sepia(1) saturate(8) hue-rotate(175deg)}
.psu-photon-4{background-position:-350px -68px;filter:sepia(1) saturate(8) hue-rotate(5deg)}
.psu-photon-5{background-position:-322px -82px;filter:sepia(1) saturate(5) hue-rotate(235deg)}
.psu-photon-6{background-position:-308px -82px;filter:sepia(1) saturate(7) hue-rotate(5deg)}
.psu-item-family-icon{position:absolute;left:3px;top:15px;width:30px;height:30px;pointer-events:none;background-image:url('/ui-original-disc/ad_icon_full.xvr.png');background-repeat:no-repeat;background-size:256px 256px}
.psu-item-family-striking{background-position:0 -70px}
.psu-item-family-ranged{background-position:-40px -70px}
.psu-item-family-technic{background-position:-75px -70px}
.psu-item-page-with-family{padding-left:30px}
.psu-item-next-page{position:absolute;right:4px;top:2px;width:12px;height:12px;min-height:0;padding:0;border:0;background:transparent url('/ui-sprites/window-next-27.png') center/10px 10px no-repeat;cursor:pointer}
.psu-item-next-page:focus-visible{outline:1px solid #d8c487}
.psu-item-rank{display:inline-block;flex:none;width:9px;height:9px;background-image:url('/ui-original-disc/ad_icon_full.xvr.png');background-size:144px 144px;background-repeat:no-repeat}
.psu-item-rank-4{background-position:-21px -29px}
.psu-item-rank-3{background-position:-31px -29px}
.psu-item-rank-2{background-position:-41px -29px}
.psu-item-rank-1{background-position:-51px -29px}
.psu-item-rank-header{display:flex;align-items:center;gap:1px;min-height:14px}

@media(max-width:699px){
 #psu-game-menu[data-view="inventory"] #psu-inventory-numbers{position:relative;left:auto;top:auto;transform:none;margin:2px 0 0 34px}
 #psu-game-menu[data-view="inventory"] #server-info ul{padding-top:0}
 #psu-game-menu[data-view="inventory"] #server-info .psu-item-details{margin-top:8px}
}

#psu-weapon-palette{position:fixed;right:3vw;bottom:5vh;z-index:4;min-width:170px;padding:7px 10px;background:#172126d9;border:1px solid #77969a;color:#f4f6f2;font:12px Arial,sans-serif;pointer-events:none}body:not(.psu-playing) #psu-weapon-palette{display:none}#psu-weapon-palette strong{display:block;color:#98e4e6;margin-bottom:4px}#psu-weapon-palette ol{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;margin:0;padding:0;list-style:none}#psu-weapon-palette li{padding:3px 5px;background:#27343a;border:1px solid #5b7377;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:115px}#psu-weapon-palette li[data-equipped="true"]{border-color:#c7f37e;color:#c7f37e}

.psu-palette-picker{position:absolute;right:2%;bottom:3%;z-index:8;width:min(260px,90%);padding:12px;background:#102332f5;border:2px solid #79b5c5;box-shadow:0 4px 20px #000b}.psu-palette-picker h4{margin:0 0 7px}.psu-palette-picker button{display:block;width:100%;text-align:left;margin:2px 0}.psu-palette-picker button:focus{outline:2px solid #b8ed70}

#psu-palette-selector{position:fixed;right:3vw;bottom:17vh;z-index:24;width:220px;padding:12px;background:#112331f5;border:2px solid #7bbfc9;color:white}#psu-palette-selector[hidden]{display:none}#psu-palette-selector strong,#psu-palette-selector button{display:block;width:100%;margin:2px 0}#psu-palette-selector button[aria-current=true]{color:#b8ed70;border-color:#b8ed70}
#common-box-prompt{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:27;background:#0b273b;color:#e7f8ff;border:1px solid #5bb8db;border-radius:6px;padding:9px 16px}
#common-box-menu[open]{position:fixed;top:11%;left:8%;margin:0;width:min(760px,calc(100vw - 24px));max-height:80vh;display:grid;grid-template-columns:220px minmax(0,1fr);gap:16px;padding:0;background:transparent;border:0;color:#fff;font:15px Arial,sans-serif}
#common-box-menu::backdrop{background:#0208159c}
#common-box-menu nav{padding:8px 0;background:#353e48db;border:1px solid #788d9d;border-radius:5px}
#common-box-menu nav button{display:block;width:100%;padding:7px 12px;border:0;background:transparent;color:#fff;text-align:center;font:inherit}
#common-box-menu nav button:is(:hover,:focus-visible){background:#657b8f url('/ui-sprites/window-select_bar-84.png') center/100% 27px no-repeat;outline:none}
#common-box-menu section{min-height:220px;max-height:70vh;overflow:auto;padding:18px;background:#0c1b2de8;border:2px solid #5eb7dd;border-radius:8px}
#common-box-menu h2{margin:0 0 12px;font-size:17px}#common-box-menu ul{list-style:none;padding:0}#common-box-menu li{padding:4px 8px}
#common-box-menu li button{width:100%;padding:7px 9px;border:0;background:transparent;color:#fff;text-align:left;font:inherit}#common-box-menu li button:is(:hover,:focus-visible){background:#657b8f url('/ui-sprites/window-select_bar-84.png') center/100% 27px no-repeat;outline:none}
#common-box-quantity:not([hidden]){display:flex;align-items:center;gap:8px;flex-wrap:wrap;border-top:1px solid #5eb7dd;padding-top:12px}#common-box-quantity[hidden]{display:none}#common-box-quantity input{width:5em;background:#081725;color:#fff;border:1px solid #5eb7dd;padding:5px}#common-box-quantity button{background:#23435b;color:#fff;border:1px solid #5eb7dd;padding:5px 10px}
@media(max-width:700px){#common-box-menu[open]{grid-template-columns:1fr;overflow:auto}#common-box-menu nav{display:flex;flex-wrap:wrap}#common-box-menu nav button{width:auto;flex:1}}
