.grokorbit-body .cz-status { background: linear-gradient(135deg, rgba(30,60,140,.55), rgba(4,16,28,.6)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; font-family: Inter, system-ui, sans-serif; font-weight: 500; color: #e8eeff; transition: background .3s; }
.grokorbit-body .gs-k.ac { background: linear-gradient(180deg, #ffd166, #b07a1a); color: #0c0618; }
.grokorbit-body .cz-app.game-wrap { max-height: 100dvh; overflow: hidden; box-sizing: border-box; }
.grokorbit-body .cz-main { min-height: 0; overflow: hidden; }
.grokorbit-body .cz-left.panel, .grokorbit-body .cz-right.panel { max-height: 100%; overflow: auto; }
.grokorbit-body #cv { background: transparent; border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08), 0 0 40px rgba(90,140,255,.14); }
.gt-nav { display:grid; grid-template-columns:1fr 1fr; gap:4px; margin:4px 0 4px; }
.gt-acts { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:3px; margin:0 0 4px; }
.gt-b { font:600 .72rem Inter,system-ui,sans-serif; letter-spacing:.01em; padding:6px 2px; border-radius:10px; border:1px solid rgba(255,255,255,.14); background:linear-gradient(180deg,rgba(52,60,92,.75),rgba(20,24,40,.8)); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); box-shadow:0 2px 8px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.08); color:#e8eeff; transition:background .15s, transform .08s, box-shadow .15s; cursor:pointer; touch-action:none; user-select:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gt-b b { color:#ffd166; font-weight:800; }
.gt-b:hover { box-shadow:0 2px 12px rgba(255,209,102,.18), inset 0 1px 0 rgba(255,255,255,.12); }
.gt-b:active, .gt-b.on { background:linear-gradient(180deg,#7affc0,#2aa878); color:#140f04; transform:translateY(1px); }
.gt-b.dim { opacity:.4; }
.gt-hint { margin:0 0 6px; font:500 .72rem Inter,system-ui,sans-serif; color:#b8c4e4; min-height:2.2em; line-height:1.25; }
@media (max-height: 700px) { .gt-b { padding:4px 2px; font-size:.66rem; } .gt-hint { font-size:.64rem; margin:0 0 3px; } }
@media (max-height: 640px) { .gt-hint { display:none; } }
@media (max-height: 700px) { .grokorbit-body .cz-status { max-height: 3.9em; overflow: hidden; } }

/* modern glass look for the page around the board */
.grokorbit-body { font-family: Inter, system-ui, sans-serif; }
.grokorbit-body .cz-left.panel, .grokorbit-body .cz-right.panel { background: linear-gradient(180deg, rgba(14,22,54,.55), rgba(4,12,20,.6)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; }
.grokorbit-body .gt-nav .gt-b, .grokorbit-body .gs-k { border-radius: 12px; }
.grokorbit-body .cz-hud, .grokorbit-body .hud { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.grokorbit-body .gs-k { background: linear-gradient(180deg, rgba(58,68,104,.85), rgba(22,26,44,.9)) !important; border: 1px solid rgba(255,255,255,.14) !important; box-shadow: 0 4px 14px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.10) !important; color: #eef2fb !important; font-family: Inter, system-ui, sans-serif !important; transition: transform .08s, background .15s; }
.grokorbit-body .gs-k.ac { background: linear-gradient(180deg, #ffd166, #c08a2a) !important; color: #140f04 !important; }
.grokorbit-body .gs-k:active, .grokorbit-body .gs-k.on { transform: translateY(1px) scale(.98); background: linear-gradient(180deg, #ffd166, #c08a2a) !important; color: #140f04 !important; }

/* three.js layer sits exactly under the transparent HUD canvas */
.grokorbit-body .gs-wrap { position: relative; }
.grokorbit-body #gl { position: absolute; z-index: 0; border-radius: 16px; display: block; background: #07060a; pointer-events: none; }
.grokorbit-body #cv { position: relative; z-index: 1; }
.grokorbit-body .gs-over { z-index: 2; }
.grokorbit-body { background: radial-gradient(ellipse at 30% 0%, #1a1a5a 0%, #070a24 55%, #02030a 100%) fixed; }
.grokorbit-body #gl { background: #02030a; }
.grokorbit-body #cv { cursor: crosshair; }

/* never let the three columns overflow the window: centre safely and keep panel content inside its panel */
.grokorbit-body .cz-main { justify-content: safe center; max-width: 100%; }
.grokorbit-body .cz-left.panel, .grokorbit-body .cz-right.panel { overflow-x: hidden; min-width: 0; }
.grokorbit-body .cz-left.panel > *, .grokorbit-body .cz-right.panel > * { min-width: 0; max-width: 100%; }

/* narrower windows: high scores go under the board and stretch across */
.grokorbit-body .cz-main.mid { grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "left center" "left right"; }
.grokorbit-body .cz-main.mid .cz-right.panel { min-height: 0; overflow-y: auto; }
.grokorbit-body .cz-main.mid { width: 100%; justify-content: stretch; }
.grokorbit-body .cz-main.mid #center { justify-self: center; }

/* Tier A multiplayer panel (orbitmp.js) */
.grokorbit-body .omp { margin-top: 10px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 8px; font-size: 12px; }
.grokorbit-body .omp-hd { display: flex; align-items: center; gap: 8px; } .grokorbit-body .omp-hd b { flex: 1; }
.grokorbit-body .omp-stat { color: #8ae8a0; font-weight: 700; font-size: 11px; } .grokorbit-body .omp-stat.off { color: #ff9a8a; }
.grokorbit-body .omp-tog { padding: 2px 8px; font-size: 11px; }
.grokorbit-body .omp-list { height: 120px; overflow-y: auto; background: rgba(0,0,0,.25); border-radius: 8px; padding: 4px 6px; margin: 6px 0; overflow-wrap: anywhere; }
.grokorbit-body .omp-row { margin: 2px 0; } .grokorbit-body .omp-row b { color: #8ae0ff; } .grokorbit-body .omp-sys { opacity: .6; font-style: italic; }
.grokorbit-body .omp-say input, .grokorbit-body .omp-clan input { flex: 1; min-width: 0; }
.grokorbit-body .omp-sub { margin: 8px 0 3px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: 10px; opacity: .8; }
.grokorbit-body .omp-wr { display: flex; align-items: center; gap: 6px; margin: 2px 0; } .grokorbit-body .omp-wr > span:first-child { width: 30px; font-weight: 800; }
.grokorbit-body .omp-bar { flex: 1; height: 7px; background: rgba(255,255,255,.08); border-radius: 4px; overflow: hidden; } .grokorbit-body .omp-bar i { display: block; height: 100%; }
.grokorbit-body .omp-v { width: 52px; text-align: right; font-variant-numeric: tabular-nums; }
.grokorbit-body .omp-clan .btn { padding: 3px 7px; font-size: 11px; } .grokorbit-body .omp-mem, .grokorbit-body .omp-board, .grokorbit-body .omp-msg { margin-top: 4px; }

/* pass 5: party list */
.grokorbit-body .omp-pm, .grokorbit-body .omp-inv, .grokorbit-body .omp-nb { display: flex; align-items: center; gap: 6px; margin: 2px 0; }
.grokorbit-body .omp-pm.off { opacity: .55; } .grokorbit-body .omp-pn { width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.grokorbit-body .omp-inv span, .grokorbit-body .omp-nb span { flex: 1; } .grokorbit-body .omp-inv .btn, .grokorbit-body .omp-nb .btn { padding: 2px 7px; font-size: 11px; }
.grokorbit-body .omp-pm .omp-v { width: 70px; font-size: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* pass 6: world boss + cosmetics */
.grokorbit-body .omp-bbar { height: 9px; } .grokorbit-body .omp-boss .muted { font-size: 11px; margin: 2px 0; }
.grokorbit-body .omp-cos { max-height: 170px; overflow-y: auto; }
.grokorbit-body .omp-ci { display: flex; align-items: center; gap: 6px; margin: 2px 0; font-size: 11px; } .grokorbit-body .omp-ci span { flex: 1; min-width: 0; }
.grokorbit-body .omp-ci .btn { padding: 2px 7px; font-size: 11px; } .grokorbit-body .omp-sw { width: 12px; height: 12px; border-radius: 3px; border: 1px solid rgba(255,255,255,.4); flex: none; }

/* full-view mode: the game view fills the window; side columns are overlay drawers (L / O), closed drawers never take clicks */
.ov-mode .cz-main.olay { display: flex !important; justify-content: center; align-items: flex-start; padding: 0 4px; overflow: visible; }
.ov-mode .cz-main.olay .cz-center { width: auto; }
.ov-mode .ov-drawer { position: fixed !important; top: var(--ovtop, 64px); bottom: 10px; width: min(340px, 94vw); max-height: none !important; z-index: 60; visibility: hidden; opacity: 0; transition: transform .18s ease, opacity .18s ease, visibility 0s .18s; box-shadow: 0 18px 50px rgba(0,0,0,.6); overflow-y: auto !important; }
.ov-mode .cz-left.ov-drawer { left: 8px; transform: translateX(-30px); background: rgba(8,14,34,.92) !important; }
.ov-mode .cz-right.ov-drawer { right: 8px; transform: translateX(30px); background: rgba(8,14,34,.92) !important; }
.ov-mode .ov-drawer.open { visibility: visible; opacity: 1; transform: none; transition: transform .18s ease, opacity .18s ease; }
.ov-head { display: flex; align-items: center; gap: 8px; margin: -2px 0 8px; position: sticky; top: -12px; z-index: 2; padding: 4px 0; background: inherit; }
.ov-head b { flex: 1; letter-spacing: .04em; } .ov-head .muted { font-size: 11px; }
.ov-mode .ov-btns { display: inline-flex; gap: 6px; } .ov-mode .ov-tg { position: relative; padding: 3px 10px; } .ov-mode .ov-tg.on { background: rgba(120,200,255,.25); }
.ov-dot { position: absolute; top: -2px; right: -2px; width: 9px; height: 9px; border-radius: 50%; background: #ff5a5a; box-shadow: 0 0 6px #ff5a5a; }
.ov-dot[hidden] { display: none; }
.ov-toast { position: absolute; left: 50%; top: 12%; transform: translateX(-50%); max-width: 70%; padding: 6px 14px; border-radius: 10px; background: rgba(6,10,26,.78); color: #dff4ff; font-size: 13px; text-align: center; pointer-events: none; z-index: 5; border: 1px solid rgba(140,200,255,.25); }
.ov-toast[hidden] { display: none; }
.ov-touch { position: absolute; left: 6px; bottom: 6px; display: none; flex-direction: column; gap: 4px; z-index: 6; opacity: .72; pointer-events: none; }
.ov-coarse .ov-touch { display: flex; } .ov-coarse .ov-touch > * { pointer-events: auto; }
.ov-coarse .ov-touch .gt-acts, .ov-coarse .ov-touch .gt-nav { display: flex; gap: 3px; } .ov-coarse .ov-touch .gt-b { padding: 3px 7px; font-size: 11px; }
@media (max-width: 640px) { .ov-mode .ov-btns .ov-tg { padding: 3px 7px; font-size: 12px; } .ov-mode #hudTop { gap: 6px; font-size: 12px; } }
.ov-coarse .ov-touch.below { position: static; opacity: 1; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 8px; margin-top: 6px; width: var(--bw); }
.ov-coarse .ov-touch.below .gt-acts, .ov-coarse .ov-touch.below .gt-nav { flex: 1 0 100%; justify-content: center; } .ov-coarse .ov-touch.below .gt-b { padding: 6px 10px; font-size: 13px; }

/* pass 7: pet drone bay */
.grokorbit-body .omp-drone { max-height: none; }
.grokorbit-body .omp-dname { flex: 1; min-width: 0; width: 6em; padding: 2px 5px; font-size: 11px; background: rgba(0,0,0,.35); color: inherit; border: 1px solid rgba(255,255,255,.18); border-radius: 4px; }
.grokorbit-body .omp-dxp { display: block; height: 4px; margin: 2px 0 4px; }
.grokorbit-body .omp-dmodes .btn { flex: 1; }
.grokorbit-body .omp-dskins { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.grokorbit-body .omp-dsk { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); padding: 0; font-size: 9px; color: #fff; text-shadow: 0 0 2px #000; cursor: pointer; }
.grokorbit-body .omp-dsk.on { border-color: #fff; box-shadow: 0 0 6px #8affc8; } .grokorbit-body .omp-dsk:disabled { opacity: .35; cursor: default; }
.grokorbit-body .omp-dst { font-size: 10px; }

/* pass 7: never a horizontal scrollbar in full-view mode (closed drawers sit just off-screen) */
html.ov-root, .ov-mode { overflow-x: hidden; }


/* Session gate: replaced client / save and log off */
.orbit-sess { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; background: rgba(4, 8, 20, 0.82); padding: 18px; }
.orbit-sess[hidden] { display: none; }
.orbit-sess-card { width: min(24rem, 100%); padding: 1.15rem 1.3rem 1.25rem; background: #0c1224; border: 1px solid rgba(140, 220, 255, 0.4); border-radius: 12px; color: #e8f4ff; box-shadow: 0 0 28px rgba(40, 120, 255, 0.18); }
.orbit-sess-card h2 { margin: 0 0 0.55rem; font-size: 1.15rem; }
.orbit-sess-card p { margin: 0 0 1rem; color: #c5d4ee; line-height: 1.4; }
.orbit-sess-card .btn { width: 100%; }
#saveLogOff { display: block; width: 100%; margin: 0.45rem 0; }
.orbit-sess-actions { display: flex; gap: 10px; margin-top: 0.15rem; }
.orbit-sess-actions .btn { flex: 1; width: auto; padding: 8px 12px; font-size: 14px; font-weight: 700; letter-spacing: 0.02em; }
.orbit-sess-cancel { background: transparent; color: #9fd6ff; border-color: rgba(140, 220, 255, 0.45); box-shadow: none; }
.orbit-sess-cancel:hover { background: rgba(80, 160, 255, 0.12); color: #e8f4ff; }

/* Art pack installer (Choices) */
.artpack-box { margin: 4px 0 8px; padding: 8px 10px; border-radius: 8px; background: rgba(8,16,32,.45); border: 1px solid rgba(106,216,255,.25); }
.artpack-box #artPackStatus { font-size: 12px; color: #9ad8ff; line-height: 1.35; margin-bottom: 6px; }
.artpack-prog { margin: 6px 0; }
.artpack-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.artpack-bar > span { display: block; height: 100%; width: 0; background: #6ad8ff; transition: width .15s linear; }
#artPackProgLabel { font-size: 11px; color: #8ae8ff; margin-top: 4px; }
#artPackInstall, #artPackUninstall { width: 100%; margin-top: 4px; }

#padHint { margin: 4px 0 8px; line-height: 1.4; }

/* wide view: no side bars (game area spans the window) */
.grokorbit-body .cz-app.game-wrap { max-width: none; }
