:root { --ui-bg: rgba(26, 12, 38, 0.86); --ui-bg-soft: rgba(26, 12, 38, 0.62); --ui-edge: rgba(255, 255, 255, 0.09); --ui-shadow: 0 3px 10px rgba(6, 0, 12, 0.55); --ui-text: #f7effa; --ui-dim: #cdbfd9; --c-job: #ffd23a; --c-money: #7cf05a; --c-car: #4fe6d6; --c-hot: #ff3d7f; }
#coins { position: fixed; top: 236px; left: 10px; width: 200px; box-sizing: border-box; display: flex; align-items: center; justify-content: flex-end; gap: 4px; padding: 0 4px; color: #6fc04f; font: 400 27px/1 'Russo One', sans-serif; letter-spacing: 1.5px; font-variant-numeric: tabular-nums; -webkit-text-stroke: 5px #0b0d08; paint-order: stroke fill; text-shadow: 2px 3px 0 rgba(0, 0, 0, 0.45); pointer-events: none; z-index: 5; }
#coins #coinN { text-align: right; }
#coins.hidden { display: none; }
#minimap { position: fixed; top: 10px; left: 10px; width: 200px; pointer-events: none; z-index: 5; }
#minimap canvas { display: block; width: 200px; height: 200px; border-radius: 50%; box-shadow: 0 3px 12px #0009; }
#coins svg { flex: none; width: 27px; height: 27px; margin-right: 3px; overflow: visible; filter: drop-shadow(2px 3px 0 rgba(0, 0, 0, 0.45)); }
#coins.bump svg { animation: cashpop 0.5s ease-out; }
#coins.bump #coinN { animation: coinglow 0.55s ease-out; }
#coinPlus { position: absolute; right: 6px; top: 100%; font-size: 19px; color: #9be06f; -webkit-text-stroke: 4px #0b0d08; paint-order: stroke fill; opacity: 0; }
#coinPlus.show { animation: coinplus 1s ease-out; }
@keyframes coinspin { 0% { transform: scale(1) rotateY(0); } 40% { transform: scale(1.35) rotateY(180deg); } 100% { transform: scale(1) rotateY(360deg); } }
@keyframes coinglow { 0% { color: #6fc04f; } 30% { color: #c8f5a0; } 100% { color: #6fc04f; } }
@keyframes cashpop { 0% { transform: scale(1); } 35% { transform: scale(1.25) rotate(-6deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes coinplus { 0% { opacity: 0; transform: translateY(-4px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(0.12em); } }
#pausemenu .menu { position: absolute; left: 9vw; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: flex-start; }
#pausemenu .pm-logo { font: italic 400 30px 'Russo One', sans-serif; letter-spacing: 2px; background: linear-gradient(#fff6b0, #ffc43d 45%, #ff7d32 72%, #ef3a72); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 #2a0f3a); }
#pausemenu h2 { margin: 2px 0 34px; font: italic 400 84px/1 'Russo One', sans-serif; letter-spacing: 3px; text-shadow: 4px 4px 0 #ff4fa3, 8px 8px 0 #3a0f4a; }
#pausemenu .menu button { position: relative; margin: 0 0 18px; padding: 0; border: none; background: none; font: 400 30px/1 'Russo One', sans-serif; letter-spacing: 1px; color: rgba(255, 255, 255, 0.72); cursor: pointer; text-align: left; transition: color 0.12s, padding 0.12s; }
#pausemenu .menu { isolation: isolate; }
#pausemenu .menu button { z-index: 1; padding: 6px 0 !important; margin-bottom: 10px !important; }
#pausemenu .menu button.on { color: #241a00; }
#pausemenu .menu button.on::before { display: none; }
.pm-band { position: absolute; left: -18px; top: 0; height: 44px; width: 0; z-index: 0; border-radius: 6px; background: linear-gradient(90deg, #ffe27a, var(--c-job) 40%, #ffb02e); box-shadow: 0 0 22px rgba(255, 200, 50, 0.45); transform: skewX(-12deg); transition: top 0.22s cubic-bezier(0.3, 1.3, 0.5, 1), width 0.22s ease-out; }
#pausemenu .menu button.on::before { content: ''; position: absolute; left: -0.95em; top: 50%; width: 0.6em; height: 0.72em; margin-top: -0.36em;
  background: linear-gradient(135deg, #ffd36a, #ff4fa3); clip-path: polygon(0 0, 100% 50%, 0 100%, 32% 50%); filter: drop-shadow(0 0 6px rgba(255, 79, 163, 0.7)); animation: nudge 1.1s ease-in-out infinite; }
#pausemenu .who { position: absolute; right: 5vw; top: 8vh; text-align: right; }
#pausemenu .who b { display: block; font: 400 26px 'Russo One', sans-serif; }
#pausemenu .who span { font-size: 14px; color: rgba(255, 255, 255, 0.6); }
#pausemenu #pmMoney { margin-top: 8px; font: 400 26px 'Russo One', sans-serif; color: #6fc04f; -webkit-text-stroke: 4px #0b0d08; paint-order: stroke fill; }
#pausemenu .foot { position: absolute; left: 9vw; bottom: 6vh; display: flex; gap: 22px; font-size: 14px; color: rgba(255, 255, 255, 0.5); }
#pausemenu .foot kbd { margin-right: 4px; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(0.96); } to { opacity: 1; transform: none; } }
kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; box-sizing: border-box; padding: 0 7px; border: 1px solid rgba(255, 255, 255, 0.16); border-bottom: 3px solid rgba(0, 0, 0, 0.5); border-radius: 6px; background: linear-gradient(180deg, #3d2154, #27133b); font: 400 11px/1 'Russo One', sans-serif; letter-spacing: 0.3px; color: var(--c-job); text-align: center; white-space: nowrap; }
#bars { position: fixed; top: 215px; left: 10px; width: 200px; display: flex; flex-direction: column; gap: 3px; pointer-events: none; z-index: 5; }
#bars .bar { flex: none; height: 7px; border: none; background: none; box-shadow: none; display: flex; }
#bars .icon, #bars .txt { display: none; }
#bars .track { position: relative; flex: 1; height: 7px; overflow: hidden; border-radius: 2px; background: rgba(26, 12, 38, 0.62); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.55); }
#bars .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; transition: width 0.25s ease, background 0.3s; }
#bars .fill::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(255, 255, 255, 0.18); }
#hpbar .icon svg path:first-child { fill: #ff4d43; }
#hpbar .fill { background: linear-gradient(90deg, #3f8f45, #62c162); }
#hpbar.low .fill { background: linear-gradient(90deg, #b8261c, #f0503f); animation: lowhp 0.9s ease-in-out infinite; }
@keyframes lowhp { 50% { opacity: 0.45; } }
#hpbar.low .track { box-shadow: 0 0 8px rgba(255, 50, 30, 0.5); }
#armorbar .icon svg path:first-child { fill: #c9d6e2; }
#armorbar .fill { background: linear-gradient(90deg, #2f78c8, #55a6f0); }
@keyframes beat { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.2); } }
.bar { position: relative; flex: 1; height: 14px; border: 2px solid #1b1d1f; background: #3a3a3a; box-shadow: inset 0 0 0 1px #5a5a5a; }
.bar .fill { position: absolute; left: 0; top: 0; bottom: 0; transition: width 0.15s; }
.bar .txt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 5px; color: #fff; font-size: 11px; font-weight: 400; text-shadow: 1px 1px 0 #000; }
.bar svg { width: 12px; height: 12px; }
#armorbar.none { display: none; }
#inv { position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; padding: 6px; background: rgba(26, 12, 38, 0.82); border: 1px solid var(--ui-edge); border-radius: 14px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); pointer-events: none; }
.slot { position: relative; width: 50px; height: 50px; box-sizing: border-box; background: #8b8b8b; border: 3px solid; border-color: #373737 #fff #fff #373737; display: flex; align-items: center; justify-content: center; }
#inv .slot { width: 50px; height: 50px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 10px; box-shadow: none; transition: background 0.15s, border-color 0.15s; }
#inv .gunsplit { width: 2px; margin: 4px 5px; background: rgba(255, 255, 255, 0.18); border-radius: 1px; }
.slot.gun { background: rgba(120, 170, 255, 0.08); border-color: rgba(120, 170, 255, 0.28); }
.slot .gunmark { position: absolute; inset: 9px; opacity: 0.18; pointer-events: none; }
.slot .gunmark svg { width: 100%; height: 100%; }
#inv .slot.sel { border: 2px solid #ffc23a; background: rgba(255, 194, 58, 0.16); box-shadow: 0 0 10px rgba(255, 194, 58, 0.35); z-index: 1; }
#inv .slot .k { left: 5px; top: 3px; color: rgba(255, 216, 130, 0.75); font-size: 10px; }
#inv .slot.sel .k { color: #ffd866; }
#inv .slot .n { right: 4px; bottom: 2px; font-size: 13px; text-shadow: 1px 1px 0 #000, 0 0 3px #000; }
.slot svg { width: 38px; height: 38px; pointer-events: none; filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.35)); }
.slot .n { position: absolute; right: 3px; bottom: 1px; color: #fff; font-size: 13px; font-weight: 400; text-shadow: 2px 2px 0 #3f3f3f; pointer-events: none; }
.slot .k { position: absolute; left: 3px; top: 1px; color: #d8d8d8; font-size: 10px; text-shadow: 1px 1px 0 #000; pointer-events: none; }
.slot .wear { position: absolute; left: 4px; right: 4px; bottom: 3px; height: 3px; background: #000; pointer-events: none; }
.slot .wear i { display: block; height: 100%; background: #4fdc4f; }
#invscreen { display: none; position: fixed; inset: 0; background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.7)); backdrop-filter: blur(3px); align-items: center; justify-content: center; user-select: none; z-index: 19; }
#invpanel { position: relative; padding: 18px 20px 14px; background: linear-gradient(165deg, rgba(34, 36, 40, 0.97), rgba(14, 15, 18, 0.97)); border: 1px solid rgba(255, 194, 58, 0.45); border-radius: 16px; box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.35), 0 24px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06); font-size: 13px; color: #e8e4d8; animation: rise 0.3s cubic-bezier(.2, 1.3, .4, 1); }
#invpanel h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 11px; font-weight: 400; letter-spacing: 2px; text-transform: uppercase; color: #c9b98f; }
#invpanel h3::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 194, 58, 0.35), transparent); }
#invtop { display: flex; gap: 16px; margin-bottom: 16px; }
#gearcol { display: flex; flex-direction: column; gap: 6px; }
#gearcol .row { display: flex; align-items: center; gap: 10px; }
#gearcol .row label { width: 56px; font-size: 12px; color: #a9a497; }
#invinfo { flex: 1; min-width: 230px; padding: 12px 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; color: #e8e4d8; font-size: 12px; line-height: 1.7; }
#invinfo b { font-size: 15px; font-weight: 400; color: #ffd866; letter-spacing: 0.5px; }
#invinfo .bar { margin: 6px 0 10px; height: 8px; border-radius: 4px; overflow: hidden; background: rgba(0, 0, 0, 0.45); }
#invinfo .bar .fill { border-radius: 4px; }
#invinfo .invbtn { display: block; margin-top: 10px; padding: 6px 14px; border: 1px solid rgba(255, 216, 102, 0.45); border-radius: 8px; background: rgba(255, 216, 102, 0.1); color: #ffd866; font: inherit; font-size: 12px; cursor: pointer; }
#invinfo .invbtn:hover { background: rgba(255, 216, 102, 0.2); }
#invinfo .invbtns { display: flex; gap: 8px; flex-wrap: wrap; }
#invinfo .invbtns .invbtn { display: inline-block; }
#invinfo .invbtn.small { display: inline-block; margin: 0 0 0 6px; padding: 2px 10px; font-size: 11px; }
#invinfo .invbtn.ghost { border-color: rgba(255, 255, 255, 0.2); background: none; color: rgba(232, 228, 216, 0.7); }
#invinfo .clothhead { margin-top: 8px; color: #ffd866; font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase; }
#invinfo .cloth { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 3px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
#invinfo .cloth em { font-style: normal; color: rgba(232, 228, 216, 0.55); margin-right: 6px; }
#invinfo .muted { color: rgba(232, 228, 216, 0.55); }
#invinfo .skill { display: flex; justify-content: space-between; margin-top: 4px; }
#invinfo .skill em { font-style: normal; color: #ffd866; }
#invinfo .bar + small { display: block; margin-top: -8px; color: rgba(232, 228, 216, 0.6); font-size: 11px; }
.grid { display: grid; grid-template-columns: repeat(9, 52px); gap: 6px; }
#baggrid { margin-bottom: 14px; }
#hotgrid { padding: 8px; margin: 0 -8px; border-radius: 12px; background: rgba(255, 194, 58, 0.05); border: 1px solid rgba(255, 194, 58, 0.14); }
#safebox { display: none; margin-bottom: 16px; padding: 10px 12px 12px; background: rgba(61, 139, 255, 0.06); border: 1px solid rgba(61, 139, 255, 0.25); border-radius: 12px; }
#invscreen.safe #safebox { display: block; }
#safebox h3 { color: #9cc4ff; }
#safebox h3::after { background: linear-gradient(90deg, rgba(61, 139, 255, 0.4), transparent); }
#invscreen.trunk #safegrid { grid-template-columns: 52px 14px repeat(6, 52px); }
#safegrid .slot.nos { border-color: rgba(61, 139, 255, 0.85); box-shadow: 0 0 12px rgba(61, 139, 255, 0.35), inset 0 0 10px rgba(61, 139, 255, 0.2); }
#safegrid .slot.nos.empty svg { opacity: 0.3; }
#invscreen .slot { width: 52px; height: 52px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 10px; transition: background 0.12s, border-color 0.12s, transform 0.12s; }
#invscreen .slot:hover { background: rgba(255, 194, 58, 0.12); border-color: rgba(255, 194, 58, 0.7); transform: translateY(-1px); }
#invscreen .slot .n { right: 5px; bottom: 3px; font-size: 13px; text-shadow: 0 1px 2px #000, 0 0 4px #000; }
#invscreen .slot .wear { left: 6px; right: 6px; bottom: 4px; height: 3px; border-radius: 2px; background: rgba(0, 0, 0, 0.6); overflow: hidden; }
#gearcol .slot svg { opacity: 0.95; }
#invhelp { margin-top: 12px; font-size: 11px; color: #8d887b; letter-spacing: 0.2px; }
#invpanel { max-height: 96vh; overflow-y: auto; box-sizing: border-box; }
@media (max-height: 780px) {
  #invpanel { padding: 12px 16px 10px; }
  #invscreen .slot { width: 44px; height: 44px; }
  #invscreen .slot svg { width: 32px; height: 32px; }
  .grid { grid-template-columns: repeat(9, 44px); gap: 5px; }
  #invscreen.trunk #safegrid { grid-template-columns: 44px 12px repeat(6, 44px); }
  #gearcol { gap: 4px; }
  #invtop { margin-bottom: 10px; }
  #invhelp { margin-top: 8px; }
}
.volrow { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 14px; margin-top: 8px; color: var(--ui-text); font: 600 13px 'Rubik', 'Segoe UI', sans-serif; letter-spacing: 0.3px; text-align: left; }
.volrow input { width: 100%; margin: 0; accent-color: var(--c-job); }
.volrow { margin-top: 10px; }
#pausemenu { position: absolute; inset: 0; z-index: 1; color: #fff; }
.uc-card { position: absolute; right: 7vw; top: 50%; transform: translateY(-50%); width: min(400px, 86vw); box-sizing: border-box; padding: 22px 26px; background: linear-gradient(180deg, rgba(30, 12, 40, 0.94), rgba(12, 5, 20, 0.96)); border: 1px solid rgba(255, 154, 69, 0.3); border-radius: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); color: var(--ui-text); font: 500 13px 'Rubik', 'Segoe UI', sans-serif; }
.uc-card h3 { margin: 0 0 6px; font: 400 15px 'Russo One', sans-serif; letter-spacing: 2px; text-transform: uppercase; }
#board { display: none; position: fixed; top: 70px; left: 50%; transform: translateX(-50%); min-width: 720px; padding: 16px 20px; border-radius: 14px; background: var(--ui-bg); border: 1px solid var(--ui-edge); color: var(--ui-text); font-size: 14px; pointer-events: none; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); }
#board-title { font-weight: 400; letter-spacing: 0.4px; margin-bottom: 10px; }
#board table { width: 100%; border-collapse: collapse; }
#board th { text-align: left; font-weight: 400; color: #8fa596; padding: 4px 8px; font-size: 12px; }
#board td { padding: 6px 8px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
#board tr.me td { color: #b6f29a; }
#board .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
#chat { position: fixed; left: 14px; bottom: 230px; width: 440px; max-width: 45vw; display: flex; flex-direction: column; gap: 6px; z-index: 6; pointer-events: none; font: 600 14px/1.35 'Rubik', 'Segoe UI', sans-serif; }
#chatLog { display: flex; flex-direction: column; gap: 3px; }
#chatLog .msg { align-self: flex-start; max-width: 100%; padding: 3px 9px; border-radius: 6px; background: rgba(26, 12, 38, 0.62); color: #f2f2ee; text-shadow: 0 1px 2px #000; overflow-wrap: anywhere; transition: opacity 0.8s; }
#chatLog .msg b { font-weight: 400; margin-right: 6px; }
#chatLog .msg.old { opacity: 0; }
#chat.open #chatLog .msg.old { opacity: 1; }
#chatInput { display: none; pointer-events: auto; padding: 7px 10px; border-radius: 6px; border: 1px solid #ffffff55; background: rgba(26, 12, 38, 0.85); color: #fff; font: inherit; outline: none; }
#chat.open #chatInput { display: block; }
#chatHints { pointer-events: auto; display: flex; flex-direction: column; padding: 4px; border-radius: 6px; background: rgba(26, 12, 38, 0.92); border: 1px solid #ffffff33; }
#chatHints .hint { display: flex; gap: 8px; align-items: baseline; padding: 4px 8px; border-radius: 4px; color: #e8e8e2; cursor: pointer; }
#chatHints .hint.sel { background: #ffc83a33; }
#chatHints .hint b { color: #ffd23a; font-weight: 600; }
#chatHints .hint i { font-style: normal; color: #9aa4ad; font-weight: 400; }
#chatHints .hint span { margin-left: auto; color: #c6ccd2; font-weight: 400; font-size: 12px; }
#chatLog .msg.sys { color: #ffb070; }
#fps { position: fixed; top: 12px; right: 12px; color: #fff; font-size: 14px; text-shadow: 0 1px 2px #000; pointer-events: none; }

@font-face { font-family: 'Rubik'; font-display: swap; font-weight: 300 900; src: url(../assets/fonts/rubik-cyr.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Rubik'; font-display: swap; font-weight: 300 900; src: url(../assets/fonts/rubik-lat.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Russo One'; font-display: swap; src: url(../assets/fonts/russo-cyr.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Russo One'; font-display: swap; src: url(../assets/fonts/russo-lat.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
* { box-sizing: border-box; }
/* Cosmos-only scrollbar palette: this stylesheet is never loaded by the city. */
/* The standard properties would take over in Chrome and bring its arrow buttons back, so they are for Firefox only. */
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: #84659e #171322; } }
*::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: #171322; border-radius: 10px; margin-block: 8px; }
*::-webkit-scrollbar-thumb { background: #84659e; border: 2px solid #171322; border-radius: 10px; }
*::-webkit-scrollbar-thumb:hover { background: #b68cce; }
*::-webkit-scrollbar-corner { background: #171322; }
:where(#jetshop, #invscreen, #pause, #board, #chat) { color-scheme: dark; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #14062a; color: #fff; font-family: 'Rubik', 'Segoe UI', Arial, sans-serif; }
canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
[hidden] { display: none !important; }
#loading, #login { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: radial-gradient(ellipse at 50% 30%, #4a1d48 0%, #22102a 45%, #0b0610 75%, #030205 100%); }
#pause { position: fixed; inset: 0; z-index: 20; background: rgba(14, 4, 22, 0.55); backdrop-filter: blur(6px) saturate(0.8); }
#loading .head { display: flex; gap: 12px; align-items: baseline; font: 400 18px 'Russo One', sans-serif; }
#loading .track { width: min(360px, 70vw); height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
/* transform, not width: it keeps gliding while the main thread is busy building the world */
#loading .track i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; will-change: transform; background: linear-gradient(90deg, #27d3c3, #ff8f3a); transition: transform 0.9s ease-out; }
#loadNote { margin: 0; min-height: 1.2em; font-size: 13px; opacity: 0.7; }
#hud { position: fixed; inset: 0; z-index: 25; pointer-events: none; }
#mineHint { position: absolute; left: 50%; bottom: 22%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border: 1px solid #a98ac65c; border-radius: 12px; background: #171325e6; box-shadow: 0 6px 18px #0008; color: #e9e2f5; font: 500 15px 'Rubik', sans-serif; white-space: nowrap; }
#mineHint[hidden] { display: none; }
#mineHint kbd { min-width: 26px; height: 26px; box-sizing: border-box; padding: 0 7px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #8fe9ffb3; border-radius: 7px; background: #0e2230; color: #9ff0ff; font: 700 14px 'Rubik', sans-serif; box-shadow: inset 0 -2px 0 #0006, 0 0 10px #4fd8ff40; }
#placeNote { position: absolute; left: 50%; top: 24%; transform: translateX(-50%); padding: 8px 20px; border-radius: 10px; background: rgba(8, 20, 28, 0.7); color: #bff4ee; font-size: 18px; font-weight: 600; text-shadow: 0 0 8px #2ec9a8; pointer-events: none; }
#meteorBanner { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); display: flex; align-items: center; gap: 9px; padding: 8px 16px 8px 12px; border: 1px solid transparent; border-radius: 16px; background: linear-gradient(135deg, #24172eef, #101125ed 68%, #30212be8) padding-box, linear-gradient(135deg, #ffb46ad0, #9b6bcc70 48%, #ff8a2ac0) border-box; color: #cdbfe0; font: 600 13px 'Rubik', sans-serif; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; pointer-events: none; animation: meteor-warn 1s ease-in-out infinite; }
#meteorBanner[hidden] { display: none; }
#meteorBanner svg { width: 26px; height: 26px; flex: none; }
#meteorBanner b { color: #ffc78a; font-size: 17px; font-weight: 700; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
#meteorBanner.landed { animation: none; }
@keyframes meteor-warn { 50% { box-shadow: 0 0 16px #ff8a2a66; } }
@media (prefers-reduced-motion: reduce) { #meteorBanner { animation: none; } }
#meteorArrow { position: absolute; width: 0; height: 0; }
#meteorArrow i { position: absolute; left: -17px; top: -20px; width: 34px; height: 40px; font-style: normal; font-size: 34px; line-height: 40px; text-align: center; color: #ff8a2a; text-shadow: 0 0 8px #000; }
#meteorArrow span { position: absolute; left: -30px; top: 20px; width: 60px; text-align: center; font-size: 13px; font-weight: 600; color: #ffd9a8; text-shadow: 0 1px 3px #000; }
#hudStatus { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; width: min(360px, calc(100vw - 24px)); }
#hudStatus #bars { display: none; }
#life { position: absolute; left: 50%; bottom: calc(var(--cosmos-slot) + 48px); width: calc(var(--cosmos-slot) * 9 + 76px); max-width: calc(100vw - 24px); height: 18px; transform: translateX(-50%); pointer-events: none; }
#life .track { position: absolute; inset: 0; overflow: hidden; border: 1px solid #a98ac68c; border-radius: 9px; background: #120d1ee6; box-shadow: 0 3px 10px #0009; }
#life .track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; }
#life .ghost { background: #fff3d6; }
#life .rally { background: linear-gradient(#c6fff0b3, #52e8c08c); box-shadow: 0 0 10px #6dffd9aa; }
#life.rallying .rally { animation: life-rally 0.35s ease-in-out infinite alternate; }
#life .fill { background: linear-gradient(#7fe58a, #3fae55); transition: width 0.08s linear; box-shadow: inset 0 2px 0 #ffffff3d; }
#life.mid .fill { background: linear-gradient(#ffd66b, #e89a2b); }
#life.low .fill { background: linear-gradient(#ff6b6b, #d62440); }
#life.low .track { border-color: #ff5f6ecc; animation: life-low 0.85s ease-in-out infinite; }
#life b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font: 700 12px/1 'Rubik', sans-serif; letter-spacing: 0.4px; text-shadow: 0 1px 2px #000, 0 0 4px #000; }
#life.hit { animation: life-hit 0.28s ease-out; }
#life.rally-tick .fill { animation: life-rally-tick 0.3s ease-out; }
.life-lost.life-gain { color: #8ff7dc; }
.life-lost { position: absolute; bottom: 18px; color: #ff8b8b; font: 900 20px/1 'Rubik', sans-serif; -webkit-text-stroke: 4px #1a0610; paint-order: stroke fill; transform: translateX(-50%); animation: life-lost 0.9s ease-out forwards; }
@keyframes life-low { 50% { box-shadow: 0 0 16px #ff3046cc, 0 3px 10px #0009; } }
@keyframes life-hit { 0% { transform: translateX(-50%) scale(1.06, 1.5); filter: brightness(2.2); } 30% { transform: translateX(calc(-50% - 6px)) scale(1.03, 1.2); } 60% { transform: translateX(calc(-50% + 4px)); filter: brightness(1.2); } 100% { transform: translateX(-50%); filter: none; } }
@keyframes life-rally { from { filter: brightness(0.85); } to { filter: brightness(1.35); } }
@keyframes life-rally-tick { 0% { filter: brightness(2.2); } 100% { filter: none; } }
@keyframes life-lost { 0% { opacity: 0; transform: translate(-50%, 6px) scale(1.4); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -26px); } }
#fps { right: 12px; top: 64px; }
#lost { position: fixed; top: 60px; left: 50%; transform: translateX(-50%); z-index: 40; display: flex; flex-direction: column; align-items: center; padding: 10px 20px; border-radius: 10px; background: rgba(120, 20, 40, 0.85); }
#lost span { font-size: 13px; opacity: 0.85; }
#invscreen { z-index: 26; }
#jetshop, #invscreen, #pause { overflow: hidden; }
#pausecard { z-index: 2; max-height: calc(100dvh - 32px); max-width: calc(100vw - 24px); overflow-x: hidden; overflow-y: auto; scrollbar-gutter: stable; overscroll-behavior: contain; scroll-padding-block: 12px; }
#pausemenu .menu { max-width: 82vw; max-height: calc(100dvh - 130px); padding: 4px 12px 6px 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
#pause .pm-stars { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
#pause .pm-stars i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.55); animation: twinkle 3s ease-in-out infinite; }
#pause .pm-stars i:nth-child(1) { left: 12%; top: 14%; }
#pause .pm-stars i:nth-child(2) { left: 28%; top: 82%; animation-delay: -1s; }
#pause .pm-stars i:nth-child(3) { left: 46%; top: 22%; width: 3px; height: 3px; animation-delay: -2s; }
#pause .pm-stars i:nth-child(4) { left: 61%; top: 74%; animation-delay: -0.5s; }
#pause .pm-stars i:nth-child(5) { left: 74%; top: 12%; width: 6px; height: 6px; animation-delay: -1.5s; }
#pause .pm-stars i:nth-child(6) { left: 88%; top: 58%; width: 3px; height: 3px; animation-delay: -2.5s; }
#pause .pm-stars i:nth-child(7) { left: 6%; top: 52%; width: 3px; height: 3px; animation-delay: -0.8s; }
@keyframes twinkle { 50% { opacity: 0.25; transform: scale(0.7); } }
#fuel { position: absolute; left: calc(50% - 300px); bottom: 14px; width: 9px; height: 62px; border-radius: 5px; background: rgba(26, 12, 38, 0.82); border: 1px solid rgba(255, 255, 255, 0.12); overflow: hidden; transition: opacity 0.4s; }
#fuel i { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; background: linear-gradient(#ffd23a, #ff7a2a); }
#fuel.full { opacity: 0.35; }
#fuel.low i { background: #ff3d4f; }
#fuel.low { animation: lowhp 0.5s linear infinite; opacity: 1; }
#jetshop, #mgOffer { position: fixed; inset: 0; z-index: 27; display: flex; align-items: center; justify-content: center; background: rgba(14, 4, 22, 0.55); backdrop-filter: blur(6px) saturate(0.8); }
#jetshop .uc-card, #mgOffer .uc-card { position: static; transform: none; width: min(520px, 92vw); }
#mgOffer[hidden] { display: none; }
#mgOffer p { margin: 8px 0 18px; color: var(--ui-dim); line-height: 1.45; }
#mgOffer .mg-actions { display: flex; gap: 10px; justify-content: flex-end; }
/* in a mini-game the planet's HUD steps aside; the chat, the hint and the game's own line stay */
body.in-minigame #hud > :not(#chat):not(#mineHint):not(.mg-hud) { display: none !important; }
#jetshop .jbal { margin: 4px 0 12px; color: var(--ui-dim); }
#jetshop .jrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
#jetshop .jrow i { font-style: normal; color: #ffc43d; }
#jetshop .jrow small { display: block; margin-top: 3px; color: var(--ui-dim); font-size: 12px; }
#jetshop .no { color: #ff6a7a; }
#jetshop .jnote { min-height: 1.3em; margin: 8px 0; color: #ff9a7a; }
#jetshop .jnote .ok { color: #7cf05a; }
#jetshop button { font: 600 14px 'Rubik', sans-serif; color: #fff; padding: 8px 16px; border: 0; border-radius: 10px; cursor: pointer; background: linear-gradient(#ff8f3a, #ef3a72); }
#jetshop button:hover { filter: brightness(1.1); }
#jetshop button:disabled { opacity: 0.35; cursor: default; filter: none; }
#jetshop .jtabs { display: flex; gap: 8px; margin-bottom: 8px; }
#jetshop .jtabs button { flex: 1; background: rgba(255, 255, 255, 0.12); }
#jetshop .jtabs button.on { background: linear-gradient(#ff8f3a, #ef3a72); }
#jetshop .jrow > div { flex: 1; }
#jetshop .sw { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.3); flex: none; }
#jetshop .uc-card { max-height: 92vh; overflow-y: auto; }
#jetshop .jclose { width: 100%; background: rgba(255, 255, 255, 0.12); }
#balance { position: absolute; top: 12px; right: 12px; display: flex; align-items: center; gap: 18px; padding: 8px 16px; border: 1px solid transparent; border-radius: 16px; background: linear-gradient(135deg, #24172eef, #101125ed 68%, #30212be8) padding-box, linear-gradient(135deg, #e3b2c7b3, #9b6bcc70 48%, #e8b89ca8) border-box; color: #ede5f6; font: 700 19px 'Rubik', sans-serif; font-variant-numeric: tabular-nums; pointer-events: none; }
#balance .bal-item { display: flex; align-items: center; gap: 7px; transform-origin: center; }
#balance .bal-item svg { width: 28px; height: 28px; flex: none; }
@media (max-width: 700px) { #balance { top: auto; bottom: 12px; gap: 10px; padding: 5px 10px; font-size: 14px; } #balance .bal-item svg { width: 20px; height: 20px; } }
#balance .bal-gain { animation: bal-gain 0.6s ease-out; }
#balance .bal-normal.bal-gain b { animation: bal-glow-normal 0.9s ease-out; }
#balance .bal-rare.bal-gain b { animation: bal-glow-rare 0.9s ease-out; }
@keyframes bal-gain { 0% { transform: scale(1); } 30% { transform: scale(1.22) translateY(-2px); } 100% { transform: scale(1); } }
@keyframes bal-glow-normal { 0% { color: #9cf1fb; text-shadow: 0 0 9px #3fd0e6; } 100% { color: #ede5f6; text-shadow: none; } }
@keyframes bal-glow-rare { 0% { color: #ffe27a; text-shadow: 0 0 9px #f2b020; } 100% { color: #ede5f6; text-shadow: none; } }
@media (prefers-reduced-motion: reduce) { #balance .bal-gain { animation: none; } }
#navigation { max-width: 100%; color: #ddd2ed; font: 500 13px 'Rubik', sans-serif; text-shadow: 0 2px 4px #000; pointer-events: none; }
#loading { justify-content: flex-end; padding: 24px 20px 7vh; background: linear-gradient(180deg, #02041410 35%, #050615a8 100%), url('../assets/loading-observer-d6230187.webp') center / cover no-repeat, #050815; }
.loading-card { width: min(400px, 90vw); padding: 24px 28px 17px; border: 1px solid #b38ee44a; border-radius: 20px; background: linear-gradient(145deg, #211531e8, #090e22ed); box-shadow: 0 12px 45px #0008, inset 0 1px 1px #e7caff25; text-align: center; }
.loading-brand { margin-bottom: 20px; color: #b5a3cd; font-size: 10px; letter-spacing: 5px; }
.loading-brand i { font-style: normal; }
.loading-brand span { display: block; margin-top: 6px; color: #eee5ff; font: 400 26px 'Russo One', sans-serif; letter-spacing: 7px; }
#loading .head { display: flex; justify-content: space-between; font: 500 13px 'Rubik', sans-serif; color: #e3daf1; }
#loading .head b { color: #cda4f2; font-weight: 500; }
#loading .track { width: 100%; margin-top: 12px; height: 5px; background: #cab1f01a; }
#loading .track i { background: linear-gradient(90deg, #9c64e7, #79dcec); }
#loading #loadNote { min-height: 15px; margin: 13px 0 0; color: #a89cbe; font-size: 11px; }
:root { --cosmos-slot: clamp(28px, 6.4vw, 60px); }
.cosmos-diagnostics { position: fixed; top: 48px; right: 12px; z-index: 10000; width: 600px; max-width: calc(100vw - 24px); max-height: calc(100vh - 72px); overflow: auto; padding: 10px; border: 1px solid #b391e04a; border-radius: 16px; background: linear-gradient(160deg, #1c1533f7, #0b0a17fa 60%); box-shadow: 0 12px 40px #0009, inset 0 1px 0 #ffffff12; color: #cfc6e2; font: 11px/1.35 'Rubik', system-ui, sans-serif; pointer-events: none; }
.cosmos-diagnostics * { box-sizing: border-box; margin: 0; padding: 0; border: 0; background: none; text-decoration: none; }
.cosmos-diagnostics .cd-head { display: flex; align-items: baseline; gap: 12px; margin: 0 4px 6px; }
.cosmos-diagnostics .cd-fps { font: 600 22px/1 'Rubik', sans-serif; }
.cosmos-diagnostics .cd-fps small { margin-left: 4px; color: #8e83a8; font-size: 11px; font-weight: 500; letter-spacing: .08em; }
.cosmos-diagnostics .cd-frame { color: #8e83a8; }
.cosmos-diagnostics .cd-frame b { color: #f1ecfb; font: 500 12px ui-monospace, monospace; }
.cosmos-diagnostics .cd-keys { margin-left: auto; color: #6f6689; font-size: 10px; }
.cosmos-diagnostics .cd-verdict { margin: 0 0 6px; padding: 4px 10px; border-radius: 8px; background: #ffffff08; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cosmos-diagnostics .cd-grid { display: grid; grid-template-columns: 1.25fr 1fr .8fr 1fr; gap: 6px; align-items: stretch; margin-bottom: 6px; }
.cosmos-diagnostics .cd-card { padding: 6px 8px; min-width: 0; border-radius: 10px; background: #ffffff09; border: 1px solid #ffffff0a; }
.cosmos-diagnostics .cd-title { margin-bottom: 3px; color: #b9a5e6; font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.cosmos-diagnostics .cd-row { display: flex; justify-content: space-between; gap: 8px; }
.cosmos-diagnostics .cd-row > span:first-child { color: #8b82a3; white-space: nowrap; }
.cosmos-diagnostics .cd-v { color: #f1ecfb; font: 500 11px/1.35 ui-monospace, monospace; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cosmos-diagnostics .cd-ok { color: #7ee2a0; } .cosmos-diagnostics .cd-mid { color: #f2c76b; } .cosmos-diagnostics .cd-bad { color: #ff7a7a; }
.cosmos-diagnostics .cd-wide { margin-bottom: 6px; }
.cosmos-diagnostics .cd-wide:last-child { margin-bottom: 0; }
.cosmos-diagnostics .cd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.cosmos-diagnostics .cd-cols .cd-bar { grid-template-columns: 150px 1fr 32px; }
.cosmos-diagnostics .cd-split { display: grid; grid-template-columns: 260px 1fr; gap: 16px; }
.cosmos-diagnostics .cd-split .cd-bar { grid-template-columns: 130px 1fr 40px; }
.cosmos-diagnostics .cd-bar { display: grid; grid-template-columns: 200px 1fr 40px; align-items: center; gap: 8px; height: 15px; }
.cosmos-diagnostics .cd-bar > span:first-child { color: #8b82a3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cosmos-diagnostics .cd-track { display: block; height: 5px; border-radius: 3px; background: #ffffff0d; overflow: hidden; }
.cosmos-diagnostics .cd-track > span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #5fd3ff, #a77bff); }
.cosmos-diagnostics .cd-note { margin: 8px 4px 0; }
.cosmos-diagnostics .cd-graph { display: block; width: 100%; height: 58px; border-radius: 6px; background: #ffffff08; }
.cosmos-diagnostics .cd-layers { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 5px; padding-top: 5px; border-top: 1px solid #ffffff0f; color: #8b82a3; }
.cosmos-diagnostics .cd-layers b { color: #b9a5e6; font-weight: 500; }
.cosmos-diagnostics .cd-layers span { color: #cfc6e2; }
.cosmos-diagnostics .cd-layers .cd-off { color: #ff7a7a; text-decoration: line-through; }
#hud #inv { gap: 7px; padding: 9px; bottom: 18px; border: 1px solid #a98ac66e; border-radius: 18px; background: radial-gradient(ellipse at 10% 100%, #af77362b, transparent 55%), linear-gradient(130deg, #261d36ed, #11111ff5 65%, #281a36ed); box-shadow: inset 0 1px 1px #dec4ff30, 0 8px 24px #0008, 0 0 16px #9d5fd31a; }
#hud #inv .slot { width: var(--cosmos-slot); height: var(--cosmos-slot); border: 1px solid #8f86ab40; border-radius: 12px; background: linear-gradient(145deg, #2c2b3a, #191926); box-shadow: inset 0 1px 1px #ffffff0d, inset 0 -2px 4px #0002; }
#hud #inv .slot.sel { border: 1px solid #ffd58b; background: radial-gradient(ellipse at 50% 40%, #94601b44, transparent), #342822; box-shadow: inset 0 0 12px #f8bc4930, 0 0 12px #ffb52d30; }
#hud #inv .slot.sel::after { content: ''; position: absolute; inset: 4px; border: 1px solid #ffd18b55; border-radius: 8px; }
#hud #inv .slot svg { width: 65%; height: 65%; filter: drop-shadow(0 3px 2px #0008); }
#hud #inv .slot .k { top: 5px; left: 7px; color: #b2a7c7; font: 400 10px 'Rubik', sans-serif; }
#hud #inv .slot.sel .k { color: #f3d49c; }
#hud #inv .slot .n { bottom: 4px; right: 5px; font: 600 13px 'Rubik', sans-serif; text-shadow: 0 1px 3px #000, 1px 0 2px #000; }
#fuel { left: calc(50% - var(--cosmos-slot) * 4.5 - 59px); bottom: 28px; height: var(--cosmos-slot); border-color: #a98ac65c; background: #161123; }
.melee-pops { position: fixed; inset: 0; z-index: 15; pointer-events: none; overflow: hidden; }
.melee-pop { position: absolute; left: 0; top: 0; white-space: nowrap; will-change: transform, opacity; color: #e6fbff; font: 900 30px/1 'Rubik', sans-serif; -webkit-text-stroke: 5px #06101e; paint-order: stroke fill; text-shadow: 0 0 10px #6fe8ffaa, 0 3px 4px #000c; }
.melee-pop.big { color: #ffe2a6; font-size: 44px; -webkit-text-stroke-width: 6px; text-shadow: 0 0 14px #ffc46bcc, 0 4px 5px #000c; }
.melee-combo { position: absolute; left: 50%; top: 50%; opacity: 0; color: #ffe2a6; font: italic 900 34px/1 'Rubik', sans-serif; -webkit-text-stroke: 5px #1a0c06; paint-order: stroke fill; text-shadow: 0 0 12px #ffc46bcc; transform: translate(70px, 26px); }
.melee-combo.on { animation: melee-combo 0.55s ease-out forwards; }
@keyframes melee-combo { 0% { opacity: 1; transform: translate(70px, 26px) scale(1.7); } 18% { opacity: 1; transform: translate(70px, 26px) scale(1); } 100% { opacity: 0; transform: translate(70px, 14px) scale(0.95); } }

/* The console at the foot of the screen: health to the left of the hands, fuel to the right, both slanted and cut in
   segments; the cells have cut corners. */
:root { --hud-gap: calc(var(--cosmos-slot) + 34px); --hud-mid: calc(18px + (var(--cosmos-slot) + 20px) / 2); --life-x: 0px; }
#life { left: auto; right: calc(50% + var(--hud-gap)); bottom: calc(var(--hud-mid) - 8px); width: min(320px, calc(50vw - var(--hud-gap) - 14px)); height: 16px; transform: none; }
#life .track { border: 1px solid #7fe9d08c; border-radius: 3px; background: #0b1420d9; box-shadow: 0 0 12px #35d6b033, 0 3px 10px #0009; transform: skewX(-24deg); }
#life .track i { border-radius: 0; }
#life .track::after, #fuel::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), #070b16 calc(10% - 2px) 10%); }
#life .fill { background: linear-gradient(#8ff7dc, #2fbf98); box-shadow: inset 0 2px 0 #ffffff59, 0 0 10px #4fe6c299; }
#life b { inset: auto 2px 21px auto; justify-content: flex-end; font: 700 17px/1 'Rubik', sans-serif; letter-spacing: 0.6px; color: #dffcf4; text-shadow: 0 0 8px #35d6b0aa, 0 1px 2px #000; white-space: nowrap; }
#life::before { content: attr(data-label); position: absolute; left: 6px; bottom: 22px; color: #8fd9c9; font: 500 9px/1 'Rubik', sans-serif; letter-spacing: 1.8px; text-shadow: 0 1px 2px #000; }
#life.mid b { color: #ffe3a6; text-shadow: 0 0 8px #e89a2baa, 0 1px 2px #000; }
#life.low b { color: #ffc0c6; text-shadow: 0 0 8px #ff3046cc, 0 1px 2px #000; }
#life.low .track { border-color: #ff5f6ecc; }
@keyframes life-hit { 0% { transform: translateX(var(--life-x)) scale(1.04, 1.5); filter: brightness(2.2); } 30% { transform: translateX(calc(var(--life-x) - 6px)) scale(1.02, 1.2); } 60% { transform: translateX(calc(var(--life-x) + 4px)); filter: brightness(1.2); } 100% { transform: translateX(var(--life-x)); filter: none; } }
#fuel { left: calc(50% + var(--hud-gap)); bottom: calc(var(--hud-mid) - 6px); width: min(220px, calc(50vw - var(--hud-gap) - 14px)); height: 12px; overflow: visible; border: 1px solid #ffc46a8c; border-radius: 3px; background: #1a1208d9; box-shadow: 0 0 12px #ff9a2a33, 0 3px 10px #0009; transform: skewX(24deg); transition: opacity 0.3s; }
#fuel i { top: 0; right: auto; height: 100% !important; width: calc(var(--fuel, 1) * 100%); background: linear-gradient(#ffe08a, #ff8a2a); box-shadow: inset 0 2px 0 #ffffff59, 0 0 10px #ffab4599; }
#fuel::before { content: attr(data-label); position: absolute; left: 4px; bottom: 18px; color: #e9c48f; font: 500 9px/1 'Rubik', sans-serif; letter-spacing: 1.8px; text-shadow: 0 1px 2px #000; transform: skewX(-24deg); }
#fuel.full { opacity: 0.6; }
#fuel.off { opacity: 0 !important; animation: none; }
#fuel.low i { background: linear-gradient(#ff8b8b, #d62440); box-shadow: 0 0 10px #ff3046aa; }
#hud #inv { gap: 6px; padding: 9px 11px; border: 0; border-radius: 0; background: linear-gradient(180deg, #2b2145f2, #10101ef7); clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px); box-shadow: none; filter: drop-shadow(0 0 1px #d2a8ff) drop-shadow(0 0 9px #9d5fd359) drop-shadow(0 8px 14px #0009); }
#hud #inv .slot { border: 0; border-radius: 0; background: linear-gradient(160deg, #34314a, #171726); clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px); box-shadow: inset 0 0 0 1px #a99cd640; }
#hud #inv .slot.sel { border: 0; background: radial-gradient(ellipse at 50% 35%, #ffcf7a55, transparent 70%), linear-gradient(160deg, #4a3a2a, #2a2018); box-shadow: inset 0 0 0 2px #ffd58b, inset 0 0 14px #f8bc4955; }
#hud #inv .slot.sel::after { display: none; }
@media (max-width: 760px) {
  :root { --life-x: -50%; }
  #life { left: 50%; right: auto; bottom: calc(var(--cosmos-slot) + 50px); width: min(300px, calc(100vw - 24px)); transform: translateX(-50%); }
  #fuel { left: calc(50% - 60px); bottom: 6px; width: 120px; height: 7px; }
  #fuel::before { display: none; }
  #hud #inv { bottom: 20px; }
}

#invscreen.cosmos-inventory {
  background: radial-gradient(ellipse at 50% 45%, #15102d45, #050510b8);
  backdrop-filter: blur(5px);
  padding: 18px;
  box-sizing: border-box;
  font-family: 'Rubik', sans-serif;
}
.ci-shell {
  position: relative;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  width: min(1180px, 100%);
  height: min(720px, calc(100dvh - 36px));
  color: #eeeaf9;
  background: radial-gradient(ellipse at 4% 0%, #49216b55, transparent 40%), linear-gradient(135deg, #151329f5, #0c0e19fa 65%, #20132cf5);
  border: 1px solid #b57ff1;
  border-radius: 26px;
  box-shadow: 0 0 0 1px #d1a3ff25, 0 0 28px #a451ed30, 0 30px 100px #000b, inset 0 1px 2px #d1a4ff70;
}
.ci-shell::after { content: ''; position: absolute; bottom: 0; left: 16px; right: 16px; height: 1px; pointer-events: none; background: linear-gradient(90deg, #ffc66c, #b46fff 45%, #bb80ff22); }
.ci-close { position: absolute; top: 0; left: calc(100% + 12px); z-index: 4; width: 35px; height: 35px; padding: 0; color: #d8b5ff; font-size: 28px; line-height: 1; background: linear-gradient(#6d369866, #231a3c); border: 1px solid #b67bee66; border-radius: 10px; cursor: pointer; }
.ci-close:hover { color: white; background: #65428e; }
@media (max-width: 1320px) { .ci-close { top: 10px; left: auto; right: 10px; } .ci-head { padding-right: 46px; } }
.ci-sidebar { display: flex; flex-direction: column; min-height: 0; flex-shrink: 0; gap: 16px; padding: 14px 12px 18px; border-right: 1px solid #a68bc51a; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.ci-sidebar nav { display: grid; gap: 10px; }
.ci-sidebar button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 57px; padding: 12px 13px; color: #aaa6bd; font: 500 12px 'Rubik', sans-serif; background: linear-gradient(145deg, #ffffff06, #ffffff01); border: 1px solid #a299bd20; border-radius: 13px; cursor: pointer; text-align: left; }
.ci-sidebar svg { flex: none; width: 24px; height: 24px; color: #a699c2; }
.ci-sidebar button:hover { background: #a564db1f; color: #fff; }
.ci-sidebar button.ci-active { color: white; background: radial-gradient(ellipse at top, #b452e366, transparent), linear-gradient(#47205e, #392047); border-color: #d887fa; box-shadow: inset 0 0 12px #d96bff35, 0 0 16px #b957d733; }
.ci-sidebar button.ci-active svg { color: #ec9fff; }
.ci-side-note { position: relative; margin-top: -46px; padding-left: 12px; color: #6d6486; font-size: 9px; line-height: 1.9; letter-spacing: 2px; }
.ci-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 18px 20px 14px; overflow: hidden; }
.ci-profile { display: flex; flex-direction: column; align-items: center; flex: none; padding: 16px 12px 14px; border: 1px solid #b58cf04d; border-radius: 20px; background: radial-gradient(ellipse at 50% 0%, #7a3fb244, transparent 70%), linear-gradient(160deg, #2a1d42cc, #17142acc); box-shadow: inset 0 1px 2px #d5c1fd24, 0 0 18px #8a4ad41f; text-align: center; }
.ci-portrait { width: 76px; height: 76px; overflow: hidden; border: 1px solid #c79bff; border-radius: 22px; background: radial-gradient(circle at 50% 30%, #4d2a86, #1a1436 75%); box-shadow: 0 0 18px #944bec55, inset 0 0 14px #8b3caa40; }
.ci-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.ci-profile h2 { max-width: 100%; margin: 10px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; font-weight: 700; letter-spacing: -.2px; }
.ci-rank { margin-top: 3px; color: #c5a5e2; font-size: 12px; }
.ci-level { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding-top: 12px; border-top: 1px solid #a893cd26; text-align: left; }
.ci-hex { position: relative; display: grid; place-items: center; flex: none; width: 46px; height: 50px; }
.ci-hex svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 0 6px #b96bff66); }
.ci-hex b { position: relative; color: #fff5ff; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ci-xp { flex: 1; min-width: 0; }
.ci-xp small { display: block; color: #d9cdea; font-size: 12px; }
.ci-xp-track { height: 7px; margin: 6px 0 5px; border-radius: 4px; background: #2b1e42; overflow: hidden; }
.ci-xp-track i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #a13bdc, #c987ff); transform-origin: left; transform: scaleX(0); }
.ci-xp span { display: block; color: #bfb1d6; font-size: 11px; font-variant-numeric: tabular-nums; text-align: center; }
.ci-side-art { flex: 1 1 90px; min-height: 0; max-height: 230px; margin: auto -12px 0; background: url(../assets/loading-observer-d6230187.webp) 50% 60% / cover no-repeat; -webkit-mask-image: linear-gradient(transparent, #000 38%, #000 70%, #0005); mask-image: linear-gradient(transparent, #000 38%, #000 70%, #0005); opacity: .85; }
.ci-head { display: flex; justify-content: flex-end; flex: none; margin-bottom: 12px; }
.ci-wallet { display: flex; gap: 8px; flex: none; }
.ci-coin { display: flex; align-items: center; gap: 6px; padding: 6px 11px 6px 7px; border: 1px solid #a893cd40; border-radius: 12px; background: #1b1829cc; }
.ci-coin svg { width: 22px; height: 22px; }
.ci-coin b { color: #f1e7ff; font-size: 13px; font-variant-numeric: tabular-nums; }
.ci-found { margin-bottom: 10px; color: #c4b9da; font-size: 11px; }
.ci-content { flex: 1 1 0; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding-right: 10px; }
.ci-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.ci-section-heading h3 { display: flex; align-items: center; gap: 8px; margin: 0; color: #e6def3; font-size: 11px; font-weight: 500; letter-spacing: .7px; }
.ci-section-heading h3 svg { width: 17px; height: 17px; color: #bdb1d4; }
.ci-section-heading > span { color: #b8aecb; font-size: 11px; }
.ci-bag { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 7px; }
.ci-slot { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; aspect-ratio: 1; border: 1px solid #8f86ab40; border-radius: 12px; background: linear-gradient(145deg, #2c2b3a, #191926); box-shadow: inset 0 1px 1px #ffffff0d, inset 0 -2px 4px #0002; cursor: pointer; outline-offset: 3px; box-sizing: border-box; }
.ci-slot:hover, .ci-slot:focus-visible { border-color: #b481e2; background: linear-gradient(145deg, #46344f, #262033); }
.ci-slot.ci-occupied { border-color: #7193a66e; background: radial-gradient(ellipse at 40% 10%, #4ea3cb22, transparent), #1e2534; }
.ci-slot.ci-selected { border-color: #ffd58b; background: radial-gradient(ellipse at 50% 40%, #94601b44, transparent), #342822; box-shadow: inset 0 0 12px #f8bc4930, 0 0 12px #ffb52d30; }
.ci-slot.ci-selected::after { content: ''; position: absolute; inset: 4px; border: 1px solid #ffd18b55; border-radius: 8px; pointer-events: none; }
.ci-slot > svg { width: 65%; height: 65%; filter: drop-shadow(0 3px 2px #0008); pointer-events: none; }
.ci-slot .n { position: absolute; right: 5px; bottom: 4px; color: white; font-size: 13px; font-weight: 600; text-shadow: 0 1px 3px #000, 1px 0 2px #000; }
@media (max-width: 760px) {
  .ci-shell { grid-template-columns: 65px minmax(0, 1fr); border-radius: 18px; }
  .ci-sidebar { padding: 20px 8px; }
  .ci-profile, .ci-side-art, .ci-side-note, .ci-sidebar button span { display: none; }
  .ci-sidebar button { padding: 10px; min-height: 47px; justify-content: center; }
  .ci-main { padding: 13px; }
  .ci-coin { padding: 5px 8px 5px 5px; }
  .ci-coin svg { width: 17px; height: 17px; }
  .ci-coin b { font-size: 11px; }
  .ci-bag { gap: 4px; }
  .ci-slot { border-radius: 8px; }
  .ci-slot .n { font-size: 10px; }
  .ci-close { width: 29px; height: 29px; font-size: 23px; }
}
@media (max-height: 600px) {
  .ci-content { min-height: 0; }
}
@media (max-height: 420px) {
  #invscreen.cosmos-inventory { padding: 8px; }
  .ci-shell { height: calc(100dvh - 16px); }
  .ci-sidebar { gap: 12px; padding-block: 12px; }
}


.ci-gear-view { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.ci-suit { display: flex; flex-direction: column; gap: 8px; }
.ci-suit-figure { display: grid; grid-template-columns: 110px minmax(0, 1fr) 110px; align-items: center; gap: 10px; }
.ci-suit-slots { display: grid; gap: 70px; }
.ci-suit-slot { display: grid; gap: 4px; padding: 10px 8px; min-height: 64px; box-sizing: border-box; align-content: center; text-align: center; border: 1px solid #8f86ab40; border-radius: 12px; background: linear-gradient(145deg, #2c2b3a, #191926); }
.ci-suit-slot small { color: #a99fbd; font-size: 10px; letter-spacing: .4px; }
.ci-suit-slot b { color: #8e85a3; font-size: 11px; font-weight: 500; line-height: 1.25; }
.ci-suit-slot.ci-worn { border-color: #7fd8e8aa; background: radial-gradient(ellipse at 50% 0%, #4ea3cb33, transparent), #1e2534; box-shadow: inset 0 0 10px #63d9ee22; }
.ci-suit-slot.ci-worn b { color: #dff6ff; }
.ci-suit-slot img { justify-self: center; width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 2px 4px #0009); }
.ci-suit-body { position: relative; display: flex; justify-content: center; padding-bottom: 16px; }
.ci-suit-body img { position: relative; z-index: 1; width: 100%; max-width: 250px; max-height: min(400px, 52dvh); height: auto; aspect-ratio: 2 / 3; object-fit: contain; filter: drop-shadow(0 8px 12px #0009); user-select: none; }
.ci-pedestal { position: absolute; left: 4%; right: 4%; bottom: 2px; height: 34px; border-radius: 50%; background: radial-gradient(ellipse at 50% 45%, #8be8ff66, #6b3fd033 55%, transparent 72%); box-shadow: 0 0 26px #6fd6ff44, inset 0 0 0 1px #9fe6ff55; }
.ci-note { margin: 4px 0 0; color: #9d93b3; font-size: 11px; line-height: 1.4; text-align: center; }
.ci-gear-side { display: grid; gap: 18px; }
.ci-gear-side .ci-note { text-align: left; }
.ci-jet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ci-jet div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 12px; border: 1px solid #a087c02e; border-radius: 11px; background: #30233866; font-size: 12px; }
.ci-jet span { color: #c3b7d1; }
.ci-jet b { color: #dfbbff; font-size: 15px; font-weight: 600; }
@media (max-width: 760px) {
  .ci-gear-view { grid-template-columns: minmax(0, 1fr); }
  .ci-suit-figure { grid-template-columns: 84px minmax(0, 1fr) 84px; }
  .ci-suit-slots { gap: 36px; }
  .ci-suit-body img { max-width: 170px; }
}
.ci-mv-cols, .ci-mv { display: grid; grid-template-columns: 190px 26px 68px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.ci-mv-cols { padding: 0 14px 6px; color: #9d93b3; font-size: 10px; letter-spacing: .8px; }
.ci-mv-cols span:last-child { grid-column: 3 / -1; }
.ci-mv-list { display: grid; gap: 8px; }
.ci-mv { padding: 9px 14px; border: 1px solid #b481e266; border-radius: 14px; background: linear-gradient(90deg, #7b4bc22e, #1b1730 60%); }
.ci-mv-keys { display: flex; align-items: flex-start; gap: 6px; color: #d9cfea; }
.ci-mv-keys i { margin-top: 5px; color: #8e85a3; font-style: normal; font-size: 15px; }
.ci-mouse { display: grid; justify-items: center; gap: 2px; }
.ci-mouse svg { width: 22px; height: 31px; }
.ci-mouse small { color: #e6bd72; font-size: 9px; letter-spacing: .3px; }
.ci-mv-arrow { color: #b48ef0; font-size: 22px; text-align: center; }
.ci-mv-art { display: grid; place-items: center; width: 68px; height: 68px; color: #e9d5ff; border-radius: 50%; background: radial-gradient(circle, #8f5fe055, #8f5fe010 70%); border: 1px solid #b48ef055; }
.ci-mv-art img { width: 62px; height: 62px; object-fit: contain; user-select: none; }
.ci-mv-text b { color: #f6eaff; font-size: 15px; }
.ci-mv-text p { margin: 3px 0 0; color: #b9aecb; font-size: 12px; line-height: 1.35; }
.ci-mv-state { display: flex; align-items: center; gap: 6px; padding: 7px 12px; color: #8fe6c4; font-size: 12px; font-weight: 500; white-space: nowrap; border-radius: 10px; background: #3fbf8a1f; border: 1px solid #62d6a655; }
.ci-mv-state svg { width: 14px; height: 14px; }
.ci-mv.ci-locked { border-color: #8f86ab33; background: #15131f; }
.ci-mv.ci-locked :is(.ci-mv-keys, .ci-mv-arrow, .ci-mv-art, .ci-mv-text) { opacity: .4; filter: grayscale(1); }
.ci-mv.ci-locked .ci-mv-state { color: #f0c878; background: #c5904520; border-color: #c5904566; }
@media (max-width: 760px) { .ci-mv-cols { display: none; } .ci-mv { grid-template-columns: minmax(0, 1fr) auto; } .ci-mv-arrow, .ci-mv-art { display: none; } .ci-mv-text { grid-column: 1 / -1; grid-row: 2; } }
.ci-mv-side { display: grid; justify-items: end; gap: 6px; }
.ci-mv-change { padding: 6px 14px; color: #f7c66d; font: 600 12px 'Rubik', sans-serif; background: linear-gradient(#65402155, #2a211d); border: 1px solid #c59045b3; border-radius: 10px; cursor: pointer; }
.ci-mv-change:hover { background: #62462a; }
.ci-mv-more { display: block; margin-top: 4px; color: #9d93b3; font-size: 11px; }
.ci-mv-step { margin-left: 30px; }
.ci-mv-pick { display: grid; gap: 6px; margin: -2px 0 4px 40px; padding: 8px; border: 1px dashed #b481e255; border-radius: 12px; }
.ci-mv-option { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; background: #1b1730; }
.ci-mv-option .ci-mv-art { width: 54px; height: 54px; }
.ci-mv-option .ci-mv-art img { width: 50px; height: 50px; }
.ci-mv-option.ci-chosen { border: 1px solid #62d6a655; background: #3fbf8a14; }
.ci-mv-option.ci-locked :is(.ci-mv-art, .ci-mv-text) { opacity: .4; filter: grayscale(1); }
.ci-mv-mark { display: flex; align-items: center; gap: 5px; color: #8fe6c4; font-size: 12px; white-space: nowrap; }
.ci-mv-option.ci-locked .ci-mv-mark { color: #f0c878; }
.ci-mv-mark svg { width: 13px; height: 13px; }
@media (max-width: 760px) { .ci-mv-pick { margin-left: 0; } .ci-mv-step { margin-left: 12px; } }

#jetshop { background: radial-gradient(ellipse at center, #1a0d302e, #070513ad); backdrop-filter: blur(5px); padding: 18px; }
#jetshop .terminal-card { position: relative; inset: auto; display: flex; flex-direction: column; width: min(760px, 100%); max-height: calc(100dvh - 36px); min-height: 0; padding: 25px 28px 22px; overflow: hidden; transform: none; border: 1px solid #be8cf0; border-radius: 25px; background: radial-gradient(ellipse at 80% 0%, #6f329b29, transparent 45%), linear-gradient(140deg, #1c152cee, #0c0c1af7 60%, #22132ef5); box-shadow: 0 0 0 1px #c69aee28, 0 0 25px #b061ea35, 0 24px 75px #0009, inset 0 1px 2px #e4c2ff80; color: #efeaf8; }
.jt-scroll { min-width: 0; min-height: 0; overflow-x: hidden; overflow-y: auto; padding: 0 6px 2px 0; border-radius: 10px; scrollbar-gutter: stable; overscroll-behavior: contain; scroll-padding-block: 6px; }
#jetshop .terminal-card::after { content: ''; position: absolute; bottom: 0; left: 15px; right: 15px; height: 1px; background: linear-gradient(90deg, #ffc66c, #d184ff 40%, #a267da10); pointer-events: none; }
.jt-heading { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.jt-heading h2 { display: flex; align-items: center; gap: 14px; margin: 0; font: 600 23px 'Rubik', sans-serif; letter-spacing: .4px; }
.jt-heading h2 > svg { width: 33px; height: 33px; color: #c483f5; filter: drop-shadow(0 0 6px #bd69ff66); }
#jetshop .jt-close { display: flex; flex: none; align-items: center; justify-content: center; width: 39px; height: 39px; padding: 9px; background: linear-gradient(#69408d4d, #271b39); border: 1px solid #ad76d85c; border-radius: 12px; color: #e2b9ff; }
.jt-close svg { width: 22px; height: 22px; }
.jt-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
#jetshop .jt-tabs button { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 49px; padding: 10px; border: 1px solid #8c70b133; border-radius: 14px; background: linear-gradient(140deg, #2c2546, #211b33); color: #bcb1d4; font: 500 16px 'Rubik', sans-serif; }
.jt-tabs svg { width: 23px; height: 23px; }
#jetshop .jt-tabs button.on { border-color: #df95ff; background: radial-gradient(ellipse at top, #a346dd80, transparent), linear-gradient(#57226a, #442151); color: white; box-shadow: inset 0 0 12px #de81ff4d, 0 0 13px #b55fdf40; }
.jt-wallet { position: fixed; top: 14px; left: 14px; display: flex; align-items: center; gap: 16px; padding: 8px 15px; border: 1px solid #b088d455; border-radius: 14px; background: linear-gradient(135deg, #24172eef, #141a30ef); box-shadow: 0 6px 20px #0007; }
.jt-balance-item { display: flex; align-items: center; gap: 7px; color: #f0eaf7; font: 600 16px 'Rubik', sans-serif; }
.jt-balance-item b { font-weight: 600; }
.jt-balance-item > svg { width: 24px; height: 24px; color: #edc35b; flex: none; }
.jt-upgrades { display: grid; gap: 10px; }
.jt-upgrade { display: flex; align-items: center; gap: 17px; padding: 12px 15px; border: 1px solid #ac8ace4a; border-radius: 19px; background: linear-gradient(130deg, #42335040, #191729b3 55%, #37204c33); box-shadow: inset 0 1px 1px #d9c3f515; }
.jt-art { display: flex; align-items: center; justify-content: center; flex: none; width: 85px; height: 85px; border: 1px solid #b584ec88; border-radius: 16px; background: radial-gradient(ellipse at center, #79419f3d, #34283f29 70%), #1b1629; box-shadow: inset 0 0 15px #bf7cfa1a, 0 0 9px #9056bd1a; }
.jt-art img { display: block; width: 92%; height: 92%; object-fit: contain; }
.jt-art > svg { width: 62%; height: 62%; color: #e3ddf2; filter: drop-shadow(0 2px 3px #0009); }
.jt-tabs.jt-slots { grid-template-columns: repeat(4, 1fr); }
#jetshop .terminal-card > .jt-tabs { flex: none; }
.jt-description { flex: 1; min-width: 0; }
.jt-description p, .jt-note { overflow-wrap: anywhere; }
#jetshop .jt-description h3 { margin: 0 0 6px; color: #f4eff9; font: 600 18px 'Rubik', sans-serif; text-transform: none; letter-spacing: -.2px; }
.jt-description h3 span { color: #f6c454; font-weight: 500; white-space: nowrap; }
.jt-description p { margin: 0 0 10px; color: #b6aec6; font-size: 12px; line-height: 1.4; }
.jt-prices { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.jt-price { display: flex; align-items: center; gap: 5px; color: #d9d3e9; font-size: 13px; }
.jt-price b { font-weight: 500; }
.jt-price svg { width: 20px; height: 20px; color: #edc35b; }
#jetshop .jt-price.no { color: #ec8b9e; }
.jt-owned { color: #c6abd9; font-size: 12px; }
#jetshop .jt-action, #mgOffer .jt-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none; min-width: 132px; min-height: 45px; padding: 10px 14px; background: linear-gradient(160deg, #ffb75f, #ed697e 45%, #b639c1); border: 1px solid #ffcb9be0; border-radius: 17px; color: #fff9ff; box-shadow: inset 0 1px 4px #ffe1d675, 0 0 16px #d858b93b; font: 600 14px 'Rubik', sans-serif; }
.jt-action svg { width: 18px; height: 18px; }
#jetshop .jt-action:disabled, #mgOffer .jt-action:disabled { opacity: .42; box-shadow: none; filter: saturate(.5); cursor: default; }
.jt-note { min-height: 16px; margin: 12px 0; color: #f0a0b1; font-size: 12px; text-align: center; }
.jt-note.ok { color: #96e3b9; }
#jetshop .jt-footer-close { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 45px; padding: 10px; background: linear-gradient(#44365666, #281e3c); border: 1px solid #9d78c659; border-radius: 14px; color: #cfc4e2; font: 500 15px 'Rubik', sans-serif; }
.jt-footer-close svg { width: 21px; height: 21px; }
@media (max-width: 650px) {
  #jetshop .terminal-card { padding: 18px 14px; }
  .jt-heading h2 { font-size: 19px; }
  .jt-upgrade { flex-wrap: wrap; gap: 11px; padding: 11px; }
  .jt-art { width: 62px; height: 62px; border-radius: 12px; }
  .jt-description { min-width: min(150px, calc(100% - 73px)); }
  #jetshop .jt-description h3 { font-size: 16px; }
  .jt-description p { font-size: 11px; }
  #jetshop .jt-action { min-width: 110px; min-height: 38px; margin-left: auto; font-size: 12px; }
  .jt-price { font-size: 12px; }
  .jt-wallet { top: 8px; left: 8px; gap: 10px; padding: 6px 10px; }
  .jt-tabs.jt-slots { grid-template-columns: 1fr 1fr; }
}
@media (max-height: 420px) {
  #jetshop { padding: 8px; }
  #jetshop .terminal-card { max-height: calc(100dvh - 16px); padding: 12px 14px; border-radius: 18px; }
  .jt-heading { margin-bottom: 10px; }
  .jt-heading h2 { gap: 9px; font-size: 17px; }
  .jt-heading h2 > svg { width: 25px; height: 25px; }
  #jetshop .jt-close { width: 32px; height: 32px; padding: 6px; }
}

/* Cosmos only. One existing backdrop blur; the panel itself has no filters. */
#pause { background: radial-gradient(ellipse at 50% 40%, #20133335, #050510ae); backdrop-filter: blur(5px) saturate(.8); }
#pausemenu { display: grid; place-items: center; padding: 24px; overflow-y: auto; overscroll-behavior: contain; }
.cp-shell { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px 40px; width: min(800px, 100%); max-height: calc(100dvh - 48px); padding: 34px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #b583e0aa; border-radius: 26px; background: radial-gradient(ellipse at 4% 0%, #652a8638, transparent 55%), linear-gradient(135deg, #19152af5, #0c0e1bf7 70%, #25162cf5); box-shadow: 0 24px 80px #0009, inset 0 1px 1px #d8b4ff50; }
#pausemenu .menu { position: static; transform: none; align-items: stretch; min-width: 0; max-width: none; max-height: none; padding: 0; overflow: visible; }
#pausemenu .pm-logo { color: #b6a2cf; background: none; filter: none; font: 500 10px/1.5 'Rubik', sans-serif; letter-spacing: 3px; }
#pausemenu h2 { margin: 10px 0 8px; color: #f3e9ff; font: 400 clamp(32px, 5vw, 49px)/1.15 'Russo One', sans-serif; letter-spacing: 3px; text-shadow: none; }
.cp-subtitle { margin: 0 0 28px; color: #a89cb9; font-size: 12px; line-height: 1.5; }
#pausemenu .menu button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 69px; margin: 0 0 10px !important; padding: 14px 16px !important; border: 1px solid #9f80bd3d; border-radius: 15px; background: linear-gradient(135deg, #4b345332, #211c3233); color: #d9cde8; font: 500 15px/1.4 'Rubik', sans-serif; letter-spacing: 0; transition: background .12s, border-color .12s; }
#pausemenu .menu button svg { flex: none; width: 25px; height: 25px; color: #cba6eb; }
#pausemenu .menu button small { display: block; margin-top: 3px; color: #b3a5c1; font-size: 10px; font-weight: 400; }
#pausemenu .menu button .cp-arrow { margin-left: auto; color: #aa8ebf; font-size: 20px; }
#pausemenu .menu button .cp-arrow svg { display: block; width: 17px; height: 17px; }
#pausemenu .menu button[data-act="resume"] { min-height: 79px; color: #fff; border-color: #d09ae7a3; background: radial-gradient(ellipse at top left, #c65cba55, transparent 70%), linear-gradient(130deg, #693773, #412b65); }
#pausemenu .menu button.on, #pausemenu .menu button:hover { color: #fff; border-color: #d499ed; background-color: #8e51aa32; }
#pausemenu .menu button:focus-visible { outline: 2px solid #f0c3ff; outline-offset: 3px; }
#pausemenu .menu button::before { display: none; }
#pausemenu .who { position: static; align-self: center; min-width: 0; padding: 25px 21px; border: 1px solid #a486c335; border-radius: 20px; background: linear-gradient(145deg, #59436e29, #15142366); text-align: left; }
#pausemenu .who::before { content: attr(data-label); display: block; margin-bottom: 19px; color: #947cae; font-size: 9px; line-height: 1.6; letter-spacing: 2px; }
#pausemenu .who b { overflow-wrap: anywhere; margin-bottom: 6px; color: #eee3f9; font: 600 19px/1.4 'Rubik', sans-serif; }
#pausemenu .who span { color: #a79bb9; font-size: 11px; }
#pausemenu #pmMoney { display: none; }
#pmFound { margin-top: 10px; color: #b7a0ce; font-size: 12px; line-height: 1.5; }
#pausemenu .foot { position: static; grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px 24px; padding-top: 20px; border-top: 1px solid #ac8aca20; color: #9489a5; font-size: 11px; }
#pausemenu .foot kbd { min-width: 22px; height: 23px; color: #c1a1da; background: #2c203b; border: 1px solid #9377ac50; border-radius: 6px; font-family: 'Rubik', sans-serif; }
#pausecard { position: absolute; left: 50%; right: auto; top: 50%; transform: translate(-50%, -50%); width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 29px 26px; border: 1px solid #b88ddd; border-radius: 23px; background: linear-gradient(135deg, #2c1e3c, #11111f); box-shadow: 0 20px 90px #000b; }
#pausecard h3 { margin: 0 35px 23px 0; color: #eddefa; font: 600 21px 'Rubik', sans-serif; letter-spacing: 0; text-transform: none; }
#pausecard .cp-settings-section { min-width: 0; text-align: left; }
#pausecard .cp-settings-section + .cp-settings-section { margin-top: 24px; padding-top: 21px; border-top: 1px solid #ac8aca30; }
#pausecard h4 { margin: 0 0 16px; color: #cda7e9; font: 500 11px/1.4 'Rubik', sans-serif; letter-spacing: 1.5px; text-transform: uppercase; }
#pausecard .volrow { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; margin: 0; color: #e0d2ec; font-size: 13px; font-weight: 400; letter-spacing: 0; }
#pausecard .volrow output { color: #cba6e5; font-variant-numeric: tabular-nums; }
#pausecard .volrow input { grid-column: 1 / -1; width: 100%; min-width: 0; accent-color: #b883de; cursor: pointer; }
#pausecard .cp-settings-hint { display: block; margin-top: 9px; color: #a799b7; font: 400 11px/1.5 'Rubik', sans-serif; }
.cp-glow-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; color: #e0d2ec; font-size: 13px; cursor: pointer; }
.cp-glow-row small { display: block; margin-top: 5px; color: #a799b7; font-size: 11px; line-height: 1.5; }
.cp-switch { position: relative; flex: 0 0 42px; height: 24px; }
.cp-range { flex: 0 0 130px; height: 4px; margin: 0; accent-color: #c18de0; cursor: pointer; }
.cp-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cp-switch > span { display: block; height: 100%; border: 1px solid #9777ad70; border-radius: 20px; background: #171422; pointer-events: none; }
.cp-switch > span::after { content: ''; display: block; width: 16px; height: 16px; margin: 3px; border-radius: 50%; background: #a99ab9; transform: translateX(0); transition: transform .12s, background .12s; }
.cp-switch input:checked + span { background: #74468e; border-color: #c18de0; }
.cp-switch input:checked + span::after { transform: translateX(18px); background: #f2ddff; }
#pausecard :is(select, input, button):focus-visible { outline: 2px solid #f0c3ff; outline-offset: 4px; }
.cp-switch input:focus-visible + span { outline: 2px solid #f0c3ff; outline-offset: 4px; }
.cp-settings-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border: 1px solid #b080cf66; border-radius: 9px; background: #51326c55; color: #ddbbf2; font-size: 25px; line-height: 1; cursor: pointer; }
@media (max-width: 640px) {
  #pausemenu { padding: 14px; }
  .cp-shell { grid-template-columns: minmax(0, 1fr); gap: 20px; max-height: calc(100dvh - 28px); padding: 25px 22px; border-radius: 22px; }
  #pausemenu .who { padding: 16px 18px; }
  #pausemenu .who::before { margin-bottom: 9px; }
  #pausemenu .foot { gap: 10px 15px; padding-top: 16px; }
  .cp-subtitle { margin-bottom: 21px; }
}
@media (max-height: 520px) and (min-width: 641px) {
  .cp-shell { padding: 22px 26px; gap: 12px 30px; }
  #pausemenu h2 { font-size: 34px; }
  .cp-subtitle { margin-bottom: 15px; }
  #pausemenu .menu button, #pausemenu .menu button[data-act="resume"] { min-height: 56px; padding: 9px 13px !important; }
  #pausemenu .foot { padding-top: 12px; }
}
#pausemenu .menu button[hidden] { display: none; }
#login { justify-content: safe center; padding: 16px; overflow-y: auto; overscroll-behavior: contain; }
.cp-login { display: flex; flex-direction: column; gap: 12px; width: min(400px, 100%); padding: 34px 32px 30px; border: 1px solid #b583e0aa; border-radius: 26px; background: radial-gradient(ellipse at 4% 0%, #652a8638, transparent 55%), linear-gradient(135deg, #19152af5, #0c0e1bf7 70%, #25162cf5); box-shadow: 0 24px 80px #0009, inset 0 1px 1px #d8b4ff50; }
.cp-login h2 { margin: 0; color: #f3e9ff; font: 400 clamp(32px, 9vw, 44px)/1.15 'Russo One', sans-serif; letter-spacing: 3px; text-align: center; }
.cp-login .cp-subtitle { margin: 0 0 10px; text-align: center; }
.cp-login label { display: flex; flex-direction: column; gap: 6px; color: #cda7e9; font: 500 11px/1.4 'Rubik', sans-serif; letter-spacing: 1.5px; text-transform: uppercase; }
.cp-login input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #9f80bd5c; border-radius: 13px; background: #120f1ecc; color: #f3e9ff; font: 400 16px 'Rubik', sans-serif; letter-spacing: 0; text-transform: none; }
.cp-login input::placeholder { color: #8a7d9c; }
.cp-login input:focus { outline: none; border-color: #d499ed; background: #1b1529; }
.cp-login button { min-height: 56px; margin-top: 8px; border: 1px solid #d09ae7a3; border-radius: 15px; background: radial-gradient(ellipse at top left, #c65cba55, transparent 70%), linear-gradient(130deg, #693773, #412b65); color: #fff; font: 600 17px 'Rubik', sans-serif; cursor: pointer; transition: border-color .12s, filter .12s; }
.cp-login button:hover { border-color: #d499ed; filter: brightness(1.12); }
.cp-login button:focus-visible { outline: 2px solid #f0c3ff; outline-offset: 3px; }
.cp-login button:disabled { cursor: wait; filter: saturate(.5) brightness(.8); }
.cp-login-error { min-height: 1.5em; margin: 0; color: #ff9fb8; font-size: 13px; line-height: 1.5; text-align: center; }
@media (max-width: 640px) {
  .cp-login { padding: 26px 20px 22px; border-radius: 22px; }
}
/* the language switch: on the login screen and in the settings */
.cp-lang { position: relative; display: inline-block; min-width: 200px; font: 500 14px 'Rubik', sans-serif; letter-spacing: 0; text-transform: none; }
.cp-lang .cp-lang-button { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 40px; margin: 0; padding: 0 12px; border: 1px solid #ac8aca59; border-radius: 12px; background: #120f1ecc; color: #f3e9ff; font: inherit; cursor: pointer; text-align: left; transition: border-color .12s, background .12s; }
.cp-lang .cp-lang-button:hover, .cp-lang .cp-lang-button[aria-expanded='true'] { border-color: #d499ed; background: #1c1630; }
.cp-lang .cp-lang-button:focus-visible { outline: 2px solid #d9a3ff; outline-offset: 2px; }
.cp-lang .cp-lang-button svg { flex: none; width: 17px; height: 17px; color: #cba6e5; }
.cp-lang .cp-lang-button span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-lang .cp-lang-button i { flex: none; width: 7px; height: 7px; margin: -4px 3px 0 0; border-right: 1.5px solid #cba6e5; border-bottom: 1.5px solid #cba6e5; transform: rotate(45deg); transition: transform .15s; }
.cp-lang .cp-lang-button[aria-expanded='true'] i { margin-top: 4px; transform: rotate(225deg); }
.cp-lang-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; border: 1px solid #b889e0; border-radius: 14px; background: linear-gradient(160deg, #2a1d42, #17142a); box-shadow: 0 18px 44px #000b, 0 0 18px #a451ed2e, inset 0 1px 1px #d5c1fd24; }
.cp-lang-list[hidden] { display: none; }
.cp-lang-up .cp-lang-list { top: auto; bottom: calc(100% + 6px); }
.cp-lang-list:focus { outline: none; }
.cp-lang-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; padding: 0 10px; border-radius: 9px; color: #d9cdea; cursor: pointer; }
.cp-lang-list li svg { flex: none; width: 16px; height: 16px; color: #ec9fff; opacity: 0; }
.cp-lang-list li.cp-lang-active { background: #a564db33; color: #fff; }
.cp-lang-list li[aria-selected='true'] { color: #fff; font-weight: 600; }
.cp-lang-list li[aria-selected='true'] svg { opacity: 1; }
#pausecard #cp-language { margin-top: 12px; }
#pausemenu .who .cp-logout { display: block; margin-top: 16px; padding: 8px 12px; color: #cdb8e6; font: 500 12px 'Rubik', sans-serif; background: #ffffff08; border: 1px solid #a486c355; border-radius: 10px; cursor: pointer; }
#pausemenu .who .cp-logout:hover { color: #fff; border-color: #d887fa; background: #a564db2b; }
