/* BRUTAL CUBE - brutalist UI */
:root {
  --conc: #8a8781;
  --conc-d: #3b3a37;
  --conc-dd: #1d1c1b;
  --ink: #ece8df;
  --accent: #ff5a1f;
  --moss: #5affd0;
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", "Franklin Gothic Bold", "Arial Black", sans-serif;
  --mono: Consolas, "Lucida Console", "Courier New", monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #111; color: var(--ink); font-family: var(--mono); user-select: none; }
#game, #game canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }
.hidden { display: none !important; }

/* ------------------------------------------------ menus */
#menus { position: fixed; inset: 0; z-index: 20; }
#menus.off { display: none; }
#menuBg {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.18) 0 2px, transparent 2px 64px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.12) 0 2px, transparent 2px 128px),
    radial-gradient(ellipse at 70% 40%, #5a5852 0%, #2a2927 55%, #121211 100%);
}
#menus.overlay #menuBg { background: rgba(10,10,10,0.72); }
#menus.overlay .cubeStage { display: none; }
#menuBg::after { content: ""; position: absolute; inset: 0; background-image: var(--noise); opacity: 0.35; mix-blend-mode: overlay; }
.scr { position: absolute; left: 6vw; top: 50%; transform: translateY(-50%); width: min(520px, 88vw); display: none; max-height: 96vh; overflow-y: auto; overflow-x: hidden; }
.scr.wide { width: min(1080px, 90vw); left: 50%; transform: translate(-50%, -50%); max-height: 94vh; overflow-y: auto; padding: 26px 30px;
  background: rgba(24,23,22,0.93); border: 3px solid var(--conc-d); box-shadow: 14px 14px 0 rgba(0,0,0,0.45); }
.scr.on { display: block; }
.title { font-family: var(--display); font-size: clamp(56px, 10vw, 128px); line-height: 0.85; margin: 0; letter-spacing: 2px;
  color: var(--ink); text-shadow: 6px 6px 0 var(--conc-dd), 10px 10px 0 rgba(0,0,0,0.35); text-transform: uppercase; }
.subtitle { font-size: 15px; letter-spacing: 3px; color: #cfc9bd; margin: 18px 0 36px; text-transform: uppercase; border-left: 6px solid var(--accent); padding-left: 12px; }
h2 { font-family: var(--display); font-size: 44px; margin: 0 0 18px; letter-spacing: 2px; text-transform: uppercase; border-bottom: 4px solid var(--accent); display: inline-block; padding-right: 30px; }
.mainNav { display: flex; flex-direction: column; gap: 10px; }
button { font-family: var(--btn, var(--display)); font-size: 18px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink); background: #4a4844;
  border: 0; border-bottom: 4px solid #22211f; border-right: 4px solid #22211f; padding: 9px 16px; cursor: pointer; transition: transform 0.06s, background 0.12s; }
button:hover { background: #5e5b55; transform: translate(-2px, -2px); }
button:active { transform: translate(1px, 1px); }
button.big { font-size: 28px; padding: 12px 22px; text-align: left; width: 100%; }
button.big:hover { background: var(--accent); color: #111; }
button.primary { background: var(--accent); color: #111; }
button.primary:hover { background: #ff7a45; }
button.small { font-size: 14px; padding: 6px 12px; }
.foot { margin-top: 28px; font-size: 11px; letter-spacing: 3px; color: #8d877c; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 38px; }
@media (max-width: 820px) { .grid2 { grid-template-columns: 1fr; } }
label.hdr { display: block; font-family: var(--display); font-size: 17px; letter-spacing: 1.5px; margin: 16px 0 7px; color: #d9d3c6; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { font-size: 15px; padding: 7px 11px; }
.seg button.sel, .modes button.sel { background: var(--accent); color: #111; }
.seg.sizes button { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; padding: 6px 10px; }
.seg.sizes button small { font-family: var(--mono); font-size: 11px; opacity: 0.8; text-transform: none; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.modes button { text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; min-height: 92px; }
.modes button b { font-size: 20px; font-weight: normal; }
.modes button span { font-family: var(--mono); font-size: 12px; text-transform: none; letter-spacing: 0; line-height: 1.3; opacity: 0.9; }
.rangeRow { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-size: 13px; }
.rangeRow input[type=range] { flex: 1; }
.rangeRow b { min-width: 120px; font-size: 14px; color: var(--accent); }
input[type=range] { accent-color: var(--accent); }
input[type=checkbox] { accent-color: var(--accent); width: 20px; height: 20px; }
input[type=text], select { font-family: var(--mono); font-size: 15px; background: #111; color: var(--ink); border: 2px solid #55524c; padding: 7px 9px; flex: 1; }
.note { font-size: 12px; color: #9c968a; margin: 6px 0; line-height: 1.4; }
.opt { display: grid; grid-template-columns: 1fr 1.2fr 64px; align-items: center; gap: 10px; margin: 7px 0; font-size: 14px; }
.opt b { color: var(--accent); font-size: 13px; text-align: right; }
.opt select { flex: none; }
.actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px; }
.actions button { font-size: 22px; padding: 10px 26px; }
table.keys { border-collapse: collapse; font-size: 14px; }
table.keys td { padding: 7px 10px; border-bottom: 1px solid #3a3835; }
kbd { display: inline-block; font-family: var(--mono); background: #e4dfd4; color: #1a1a1a; padding: 2px 7px; margin: 1px; border-bottom: 3px solid #8d877c; font-size: 12px; }
.tips p { border-left: 5px solid var(--moss); padding: 6px 12px; background: rgba(90,255,208,0.05); font-size: 14px; line-height: 1.5; }
.loadBar { height: 26px; background: #111; border: 3px solid #55524c; margin: 12px 0; }
.loadBar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(45deg, var(--accent) 0 14px, #d94816 14px 28px); transition: width 0.2s; }
#loadText { font-size: 14px; color: #cfc9bd; min-height: 20px; letter-spacing: 1px; }
#enterBtn { margin-top: 16px; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { filter: brightness(1.25); } }
#endStats { font-size: 18px; margin: 10px 0 22px; border-collapse: collapse; }
#endStats td { padding: 6px 16px 6px 0; border-bottom: 1px solid #3a3835; }
#endStats td:last-child { color: var(--accent); font-family: var(--display); font-size: 24px; text-align: right; }
#scrEnd h2.won { border-color: var(--moss); }

/* css cube on the title */
.cubeStage { position: absolute; right: 9vw; top: 50%; width: 300px; height: 300px; margin-top: -150px; perspective: 900px; }
@media (max-width: 900px) { .cubeStage { display: none; } }
.cssCube { position: absolute; inset: 0; transform-style: preserve-3d; animation: spin 38s linear infinite; }
.cssCube .f { position: absolute; width: 300px; height: 300px; border: 3px solid #77746d; background-color: rgba(52,50,47,0.92);
  background-image:
    linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.0));
  box-shadow: inset 0 0 60px rgba(0,0,0,0.7); overflow: hidden; }
.cssCube .f canvas { width: 100%; height: 100%; image-rendering: pixelated; }
@keyframes spin { from { transform: rotateX(-22deg) rotateY(0deg); } to { transform: rotateX(-22deg) rotateY(360deg); } }

/* ------------------------------------------------ HUD */
#hud { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
#crosshair { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
#crosshair i { position: absolute; background: rgba(255,255,255,0.85); box-shadow: 0 0 2px #000; }
#crosshair i:nth-child(1) { width: 2px; height: 7px; left: -1px; top: -12px; }
#crosshair i:nth-child(2) { width: 2px; height: 7px; left: -1px; top: 5px; }
#crosshair i:nth-child(3) { width: 7px; height: 2px; left: -12px; top: -1px; }
#crosshair i:nth-child(4) { width: 7px; height: 2px; left: 5px; top: -1px; }
#weaponView { position: absolute; left: 50%; bottom: 74px; transform: translateX(-50%); width: min(72vw, 92vh); image-rendering: pixelated; }
#dmgFlash, #pickupFlash { position: absolute; inset: 0; opacity: 0; }
#dmgFlash { background: radial-gradient(ellipse at center, rgba(160,0,0,0.1) 30%, rgba(170,0,0,0.85) 100%); }
#pickupFlash { background: rgba(255,230,140,0.6); }
.dmgDir { position: absolute; opacity: 0; }
#dmgL { left: 0; top: 0; bottom: 0; width: 18vw; background: linear-gradient(90deg, rgba(220,0,0,0.75), transparent); }
#dmgR { right: 0; top: 0; bottom: 0; width: 18vw; background: linear-gradient(270deg, rgba(220,0,0,0.75), transparent); }
#dmgT { left: 0; right: 0; top: 0; height: 18vh; background: linear-gradient(180deg, rgba(220,0,0,0.75), transparent); }
#dmgB { left: 0; right: 0; bottom: 0; height: 22vh; background: linear-gradient(0deg, rgba(220,0,0,0.75), transparent); }
#topLeft { position: absolute; left: 18px; top: 14px; text-shadow: 2px 2px 0 #000; }
#hFace { font-family: var(--display); font-size: 30px; letter-spacing: 2px; }
#hCity { font-size: 12px; letter-spacing: 2px; color: #d6d0c4; margin-bottom: 8px; }
#gravMeter { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 1px; }
#gravMeter .bar { width: 120px; height: 9px; background: rgba(0,0,0,0.6); border: 1px solid #77746d; }
#gravMeter .bar i { display: block; height: 100%; width: 100%; background: var(--accent); }
#lowGrav { display: none; margin-top: 6px; font-family: var(--display); font-size: 18px; color: var(--moss); letter-spacing: 3px; animation: pulse 0.8s infinite; }
#objective { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); font-family: var(--display); font-size: 22px; letter-spacing: 2px;
  background: rgba(0,0,0,0.45); padding: 4px 16px; border-bottom: 3px solid var(--accent); white-space: nowrap; }
#relicArrow { display: none; position: absolute; top: 56px; left: 50%; font-size: 28px; color: var(--moss); text-shadow: 0 0 8px var(--moss); transform-origin: 50% 60%; }
#relicInfo { position: absolute; top: 92px; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--moss); text-shadow: 1px 1px 0 #000; }
#minimap { position: absolute; right: 14px; top: 14px; width: 195px; height: 260px; image-rendering: auto; border: 2px solid rgba(0,0,0,0.6); background: rgba(0,0,0,0.25); transition: all 0.15s; }
#minimap.big { width: min(48vh, 60vw); height: min(64vh, 80vw); right: 50%; top: 50%; transform: translate(50%, -50%); border-color: var(--accent); }
#faceCard { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); text-align: center; opacity: 0; text-shadow: 3px 3px 0 #000; }
#faceCard small { display: block; font-size: 12px; letter-spacing: 4px; color: #cfc9bd; }
#faceCard b { display: block; font-family: var(--display); font-size: 52px; letter-spacing: 4px; font-weight: normal; }
#faceCard span { font-size: 13px; letter-spacing: 3px; color: var(--accent); }
#centerMsg { position: absolute; left: 50%; top: 36%; transform: translateX(-50%); font-family: var(--display); font-size: 34px; letter-spacing: 3px; opacity: 0; text-shadow: 3px 3px 0 #000; white-space: nowrap; }
#centerMsg.big { font-size: 64px; color: var(--accent); }
#msgLog { position: absolute; left: 18px; bottom: 96px; font-size: 14px; text-shadow: 1px 1px 0 #000; }
#msgLog div { transition: opacity 0.8s; margin-top: 3px; }
#fps { position: absolute; right: 18px; bottom: 96px; font-size: 12px; color: #c8ffc8; text-shadow: 1px 1px 0 #000; display: none; }
#statusBar { position: absolute; left: 0; right: 0; bottom: 0; height: 72px; display: flex; justify-content: center; gap: 0;
  background: linear-gradient(#5d5a54, #3e3c38); border-top: 4px solid #22211f; box-shadow: 0 -2px 0 #77746d inset; }
#statusBar .cell { flex: 0 1 170px; min-width: 0; padding: 6px 18px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-right: 3px solid #2a2927; border-left: 2px solid #6e6b64; }
#statusBar .cell.wide { flex-basis: 210px; }
#statusBar b { font-family: var(--display); font-size: clamp(22px, 3vw, 38px); line-height: 1; color: #f2c14e; text-shadow: 2px 2px 0 #1a1918; font-weight: normal; }
#statusBar b.low { color: #ff4030; animation: pulse 0.6s infinite; }
#statusBar span { font-size: 11px; letter-spacing: 2px; color: #e4dfd4; margin-top: 3px; }
#slots { display: flex; gap: 4px; }
#slots i { font-style: normal; font-family: var(--display); font-size: 20px; width: 20px; text-align: center; color: #2c2b29; background: #77746d; }
#slots i.owned { color: #f2c14e; background: #2c2b29; }
#slots i.sel { color: #111; background: var(--accent); }

/* ------------------------------------------------ debug panel */
#debugPanel, #stylePanel { position: fixed; right: 0; top: 0; bottom: 0; width: 360px; z-index: 50; overflow-y: auto; background: rgba(14,14,13,0.94);
  border-left: 3px solid var(--accent); font-size: 12px; padding: 10px 12px 40px; pointer-events: auto; user-select: text; }
#debugPanel h3, #stylePanel h3 { font-family: var(--display); font-size: 22px; letter-spacing: 2px; margin: 0 0 6px; color: var(--accent); font-weight: normal; }
#debugPanel details, #stylePanel details { border-top: 1px solid #333; padding: 4px 0; }
#debugPanel summary, #stylePanel summary { cursor: pointer; font-family: var(--display); letter-spacing: 1.5px; font-size: 15px; padding: 4px 0; color: #e4dfd4; }
#debugPanel .row, #stylePanel .row { display: grid; grid-template-columns: 1.25fr 1.4fr 52px; align-items: center; gap: 6px; margin: 4px 0; }
#debugPanel .row.chk, #stylePanel .row.chk { grid-template-columns: 1fr 24px; }
#debugPanel .row b, #stylePanel .row b { color: var(--moss); text-align: right; font-weight: normal; }
#debugPanel .btns, #stylePanel .btns { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
#debugPanel button, #stylePanel button { font-size: 12px; padding: 5px 8px; letter-spacing: 0.5px; }
#debugPanel pre, #stylePanel pre { margin: 4px 0; font-size: 11px; line-height: 1.45; color: #c9e8d8; white-space: pre-wrap; }
#debugPanel input[type=text], #stylePanel input[type=text] { font-size: 12px; padding: 4px 6px; }
#debugPanel select, #stylePanel select { font-size: 12px; padding: 3px; }
#debugPanel input[type=color], #stylePanel input[type=color] { width: 100%; height: 22px; border: 0; background: none; }

@media (max-width: 1100px) {
  #objective { font-size: 16px; } /* stays centred: the radar sits under the clock */
  #relicArrow { top: 150px; } #relicInfo { top: 186px; }
  #hFace { font-size: 24px; }
  #statusBar span { font-size: 9px; letter-spacing: 1px; }
  #slots i { font-size: 16px; width: 18px; }
}

@media (max-height: 640px) {
  .title { font-size: 64px; }
  .subtitle { margin: 10px 0 16px; }
  button.big { font-size: 20px; padding: 8px 16px; }
  h2 { font-size: 30px; }
}

#minimap.sz-small { width: 150px; height: 200px; }
#minimap.sz-medium { width: 195px; height: 260px; }
#minimap.sz-large { width: 246px; height: 328px; }
#minimap.big { width: min(48vh, 60vw) !important; height: min(64vh, 80vw) !important; }
#coreCountdown { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); font-family: var(--display); font-size: 20px; letter-spacing: 3px; padding: 4px 14px; background: rgba(0,0,0,0.45); border-bottom: 3px solid var(--accent); color: #f2e6c8; display: none; text-shadow: 2px 2px 0 #000; }
#coreCountdown.soon { color: #ff5a1f; }
#coreCountdown.live { color: #ffe23a; background: rgba(120,30,0,0.55); }
#hClock { font-size: 12px; letter-spacing: 2px; margin-top: 6px; color: #f2e6c8; }
#radar { display: block; margin-top: 10px; width: 150px; height: 150px; border-radius: 50%; }
#minimap.one.sz-small { width: 150px; height: 150px; }
#minimap.one.sz-medium { width: 195px; height: 195px; }
#minimap.one.sz-large { width: 246px; height: 246px; }
#minimap.one.big { width: min(64vh, 80vw) !important; height: min(64vh, 80vw) !important; }

#scope { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
#scope .lens { position: absolute; left: 50%; top: 50%; width: min(86vh, 86vw); height: min(86vh, 86vw); transform: translate(-50%, -50%); border-radius: 50%;
  box-shadow: 0 0 0 200vmax #050505, inset 0 0 60px 20px rgba(0,0,0,0.85); border: 3px solid #111; }
#scope i { position: absolute; background: rgba(10,10,10,0.9); }
#scope i.h { left: 50%; top: 50%; width: min(86vh, 86vw); height: 2px; transform: translate(-50%, -50%); }
#scope i.v { left: 50%; top: 50%; height: min(86vh, 86vw); width: 2px; transform: translate(-50%, -50%); }
#scope b { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #ff2a1a; box-shadow: 0 0 6px #ff2a1a; }

/* ---------- BRUTALCORE title / live preview ---------- */
.title img.logo { display: block; width: 100%; max-width: 560px; height: auto; margin: 0; filter: drop-shadow(8px 10px 0 rgba(0,0,0,0.45)); }
.title { text-shadow: none; }
#menus:not(.overlay) #menuBg { display: none; }
#menus.overlay #menuPreview, #menus.overlay #menuFade { display: none; }
#menuFade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
#menuPreview { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, #121211 0%, #121211 30%, rgba(18,18,17,0.92) 38%, rgba(10,10,10,0.55) 50%, rgba(0,0,0,0.0) 66%),
    radial-gradient(ellipse at 75% 50%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%); }
#menuPreview::before { content: ""; position: absolute; inset: 0; background: #121211; transition: opacity 1.2s; opacity: 1; }
#menuPreview.on::before { opacity: 0; }
#menuPreview::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 42%; background-image: var(--noise); opacity: 0.18; mix-blend-mode: overlay;
  -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent); mask-image: linear-gradient(90deg, #000 70%, transparent); }
#version { position: absolute; left: 14px; bottom: 10px; font-size: 12px; letter-spacing: 2px; color: #8d877c; z-index: 3; display: none; }
#menus.title-on #version { display: block; }

/* ---------- scrollbars in the app style ---------- */
* { scrollbar-width: thin; scrollbar-color: #ff5a1f #1d1c1b; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #1d1c1b; border-left: 1px solid #3b3a37; }
::-webkit-scrollbar-thumb { background: #4a4844; border: 2px solid #1d1c1b; border-radius: 0; }
::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:active { background: #ff5a1f; }
::-webkit-scrollbar-corner { background: #1d1c1b; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.scr.wide, #debugPanel { overflow-x: hidden; }

.fxgrid { margin-top: 10px; border-top: 2px solid #3b3a37; padding-top: 6px; }
#crtOverlay { position: fixed; inset: 0; z-index: 15; pointer-events: none; opacity: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.28) 0 1px, rgba(0,0,0,0) 1px 3px); }

#stylePanel { right: auto; left: 0; border-left: 0; border-right: 3px solid var(--moss); width: 340px; }
#stylePanel h3 { color: var(--moss); }
#stylePanel .row b { color: var(--accent); }

/* ---------- configurable HUD ---------- */
#hud { --hud-b: 1; --hud-c: 1; --hud-x: 0px; --hud-y: 0px; --hud-s: 1; --hud-o: 1; --hud-col: #f2c14e; --hud-tint: rgba(0,0,0,0); }
#hud .lit { filter: brightness(var(--hud-b)) contrast(var(--hud-c)) saturate(var(--hud-sat, 1)); translate: var(--hud-x) var(--hud-y); opacity: var(--hud-o); }
#statusBar { scale: var(--hud-s); transform-origin: 50% 100%; }
#statusBar b, #hudMini b { color: var(--hud-col); }
#topLeft { scale: var(--hud-s); transform-origin: 0 0; }
#minimap.lit { scale: var(--hud-s); transform-origin: 100% 0; }
#minimap.big { scale: 1; }
#statusBar::after { content: ""; position: absolute; inset: 0; background: var(--hud-tint); mix-blend-mode: multiply; pointer-events: none; }
#hudMini { display: none; position: absolute; inset: 0; pointer-events: none; }
#hud.hud-minimal #hudMini { display: block; }
#hud.hud-minimal #statusBar, #hud.hud-hidden #statusBar, #hud.hud-hidden #topLeft, #hud.hud-hidden #objective, #hud.hud-hidden #minimap { display: none; }
#hud.hud-minimal #msgLog, #hud.hud-minimal #fps { bottom: 110px; }
#hudMini .ml { position: absolute; left: 26px; bottom: 22px; display: flex; gap: 26px; align-items: flex-end; scale: var(--hud-s); transform-origin: 0 100%; }
#hudMini .mr { position: absolute; right: 26px; bottom: 22px; text-align: right; scale: var(--hud-s); transform-origin: 100% 100%; }
#hudMini .mv { display: flex; align-items: baseline; gap: 8px; }
#hudMini b { font-family: var(--display); font-weight: normal; font-size: 64px; line-height: 0.9; text-shadow: 3px 3px 0 rgba(0,0,0,0.75), 0 0 18px rgba(0,0,0,0.5); }
#hudMini .arm b { font-size: 42px; opacity: 0.9; }
#hudMini .ico { font-style: normal; font-size: 26px; color: var(--hud-col); text-shadow: 2px 2px 0 rgba(0,0,0,0.75); }
#hudMini b.low { color: #ff4030 !important; animation: pulse 0.6s infinite; }
#mWeap { font-size: 12px; letter-spacing: 3px; color: #e8e2d4; text-shadow: 1px 1px 0 #000; margin-top: 4px; }
#mSlots { display: flex; gap: 3px; justify-content: flex-end; margin-top: 6px; }
#mSlots i { font-style: normal; font-family: var(--display); font-size: 14px; width: 16px; text-align: center; color: rgba(255,255,255,0.25); text-shadow: 1px 1px 0 #000; }
#mSlots i.owned { color: rgba(255,255,255,0.75); }
#mSlots i.sel { color: var(--hud-col); }
.mscore { position: absolute; right: 26px; bottom: 120px; font-family: var(--display); font-size: 20px; color: #e8e2d4; text-shadow: 2px 2px 0 #000; letter-spacing: 2px; }
/* crosshair styles */
#crosshair em, #crosshair u { display: none; position: absolute; }
#crosshair em { width: 4px; height: 4px; left: -2px; top: -2px; border-radius: 50%; background: var(--cross, #fff); box-shadow: 0 0 2px #000; }
#crosshair u { width: 22px; height: 22px; left: -11px; top: -11px; border-radius: 50%; border: 2px solid var(--cross, #fff); box-shadow: 0 0 2px #000; }
#crosshair i { background: var(--cross, rgba(255,255,255,0.85)) !important; }
#crosshair.c-dot i, #crosshair.c-circle i, #crosshair.c-none i { display: none; }
#crosshair.c-dot em, #crosshair.c-circle em, #crosshair.c-circle u { display: block; }

/* ---------- option tabs ---------- */
.tabs { display: flex; gap: 4px; margin: 4px 0 14px; border-bottom: 3px solid #3b3a37; flex-wrap: wrap; }
.tabs button { font-size: 17px; padding: 8px 18px; background: #2c2b29; border: 0; border-bottom: 3px solid transparent; margin-bottom: -3px; color: #b9b3a6; }
.tabs button:hover { background: #3b3a37; transform: none; color: var(--ink); }
.tabs button.sel { background: #4a4844; color: var(--ink); border-bottom-color: var(--accent); }
.tabpanel { display: none; min-height: 420px; }
/* options window: fixed size, scrolling tab content, actions anchored at the bottom */
.scr.tabbed { height: min(760px, 92vh); max-height: none; overflow: hidden; }
.scr.tabbed.on { display: flex; flex-direction: column; }
.scr.tabbed .tabpanel { min-height: 0; }
.scr.tabbed .tabpanel.on { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; padding-right: 8px; }
.scr.tabbed .tabActions { flex: 0 0 auto; justify-content: center; margin-top: 0; padding-top: 16px; border-top: 3px solid #3b3a37; }
.tabpanel.on { display: block; }

.tabs button, #debugPanel button, #stylePanel button { font-family: var(--btn, var(--display)); }

/* ---------- NÚCLEO overload ---------- */
#coreFlash { position: fixed; inset: 0; z-index: 14; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,1) 0%, rgba(200,240,255,0.95) 45%, rgba(255,190,120,0.85) 100%); }
#coreAlert { display: none; position: absolute; left: 0; right: 0; top: 18%; text-align: center; }
#coreAlert.on { display: block; }
#coreAlert .ring { position: fixed; inset: 0; pointer-events: none; box-shadow: inset 0 0 120px 30px rgba(255,40,20,0.55); animation: corePulse 0.5s infinite alternate; }
#coreAlert b { display: block; font-family: var(--display); font-size: clamp(26px, 4vw, 52px); letter-spacing: 4px; color: #ff4a2a; text-shadow: 0 0 18px rgba(255,60,20,0.8), 3px 3px 0 #000; animation: pulse 0.5s infinite; }
#coreAlert span { display: inline-block; margin-top: 10px; padding: 4px 14px; font-size: 16px; letter-spacing: 3px; background: rgba(0,0,0,0.6); border: 2px solid currentColor; }
#coreAlert span.exp-direct { color: #ff3a2a; } #coreAlert span.exp-cover, #coreAlert span.exp-window { color: #ffb23a; } #coreAlert span.exp-shelter { color: #5affd0; }
@keyframes corePulse { from { opacity: 0.35; } to { opacity: 1; } }
/* new game: visual presets */
.presetGrid { display: grid; grid-template-columns: minmax(220px, 1fr) 1.6fr; gap: 28px; }
.presetList { display: flex; flex-direction: column; gap: 8px; }
.presetList button { text-align: left; padding: 10px 14px; display: flex; flex-direction: column; gap: 3px; background: #2c2b29; }
.presetList button b { font-family: var(--btn, var(--display)); font-size: 19px; font-weight: 600; letter-spacing: 0.06em; }
.presetList button span { font-family: var(--mono, monospace); font-size: 12px; color: #a59f93; text-transform: none; letter-spacing: 0; }
.presetList button.sel { background: var(--accent); color: #111; }
.presetList button.sel span { color: #2a1206; }
.presetView { position: relative; border: 3px solid #3b3a37; background: #000; aspect-ratio: 16 / 9; }
.presetView canvas { width: 100%; height: 100%; display: block; image-rendering: auto; }
@media (max-width: 760px) { .presetGrid { grid-template-columns: 1fr; } }

/* ============================== online (v1.46) ============================== */
#scrPlay .mainNav { margin-top: 18px; }
.onTop { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.onBox input[type="text"] { width: 100%; font-size: 20px; }
#onCode { font-family: var(--mono, monospace); font-size: 22px; letter-spacing: 6px; text-transform: uppercase; width: 9em; }
#onStatus { min-height: 2.6em; }
#onStatus.err { color: #ff6a50; }
#scrOnline .pubList { flex: 1 1 auto; min-height: 120px; overflow-y: auto; background: rgba(0,0,0,0.25); border: 2px solid #3b3a37; }
.pubHead, .pubRow { display: grid; grid-template-columns: 90px 1.5fr 1.6fr 80px 90px 1fr 120px; gap: 10px; align-items: center; padding: 7px 12px; }
.pubHead { font-size: 12px; opacity: 0.7; letter-spacing: 1px; }
.pubRow { border-bottom: 1px solid #3b3a37; font-family: var(--mono, monospace); font-size: 14px; }
.pubRow:hover { background: rgba(255,90,31,0.08); }
.pubRow b { color: var(--accent); font-size: 17px; letter-spacing: 2px; }
.pubRow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pubEmpty { padding: 30px; text-align: center; opacity: 0.6; font-family: var(--mono, monospace); }
.lobType { font-size: 0.55em; color: var(--accent); vertical-align: middle; margin-left: 8px; }
.lobCodeRow { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
#lobCode { font-family: var(--mono, monospace); font-size: 34px; letter-spacing: 8px; color: var(--accent); background: rgba(0,0,0,0.35); padding: 2px 14px; }
.lobCount { margin-left: auto; font-family: var(--mono, monospace); opacity: 0.8; }
.lobGrid { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 1.25fr 1fr; gap: 26px; }
.lobLeft, .lobRight { min-height: 0; overflow-y: auto; padding-right: 6px; }
.lobPlayers { display: flex; gap: 16px; margin-bottom: 10px; }
.lobTeam { flex: 1; background: rgba(0,0,0,0.25); border: 2px solid #3b3a37; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; }
.lobTeam h4 { margin: 2px 0 6px; font-size: 16px; letter-spacing: 1.5px; }
.lobTeam button { margin-top: auto; }
.lobP { display: flex; align-items: center; gap: 8px; font-family: var(--mono, monospace); font-size: 15px; padding: 3px 4px; }
.lobP.me { background: rgba(255,255,255,0.06); }
.lobP .dot { width: 10px; height: 10px; flex: none; }
.lobP em { font-style: normal; font-size: 10px; padding: 1px 5px; background: #4a4844; letter-spacing: 1px; }
.lobSet { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid #3b3a37; font-size: 14px; }
.lobSet b { color: var(--accent); font-weight: normal; text-align: right; }
#lobEdit { margin-top: 14px; }
.lobWait { font-family: var(--mono, monospace); opacity: 0.8; align-self: center; }
#scrLobbyOpts .modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mpTable { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-family: var(--mono, monospace); font-size: 15px; }
.mpTable th { text-align: left; font-size: 12px; opacity: 0.7; padding: 4px 8px; letter-spacing: 1px; }
.mpTable td { padding: 6px 8px; border-bottom: 1px solid #3b3a37; }
.mpTable tr.me td { background: rgba(255,90,31,0.15); }
.mpTable tr.tot td { font-weight: bold; border-top: 2px solid #5e5b55; }
#mpHud { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); display: none; font-family: var(--mono, monospace); font-size: 18px; color: #fff;
  background: rgba(0,0,0,0.45); padding: 5px 16px; text-shadow: 0 1px 2px #000; white-space: nowrap; pointer-events: none; }
#scoreboard { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(640px, 90vw); display: none; background: rgba(10,10,10,0.82);
  border: 2px solid #4a4844; padding: 14px 18px; color: #fff; pointer-events: none; }
#scoreboard h3 { margin: 0 0 8px; letter-spacing: 2px; }
#scoreboard table { width: 100%; border-collapse: collapse; font-family: var(--mono, monospace); font-size: 15px; }
#scoreboard th { text-align: left; font-size: 12px; opacity: 0.7; padding: 3px 6px; }
#scoreboard td { padding: 4px 6px; border-bottom: 1px solid #333; }
#scoreboard tr.me td { background: rgba(255,90,31,0.2); }
@media (max-width: 720px) { .onTop, .lobGrid { grid-template-columns: 1fr; } .pubHead { display: none; } .pubRow { grid-template-columns: 70px 1fr 90px; } .pubRow span:nth-of-type(n+2):not(:nth-of-type(4)) { display: none; } }

/* NEW GAME screen reused for the online lobby options (v1.47) */
#scrNew:not(.online) .onlyOnline, #scrNew.online .onlyLocal { display: none !important; }
#hud.mp #objective, #hud.mp #coreCountdown { display: none !important; }
#mpHud { top: 12px; z-index: 2; }
#mpHud .mdLine { font-size: 14px; text-align: center; margin-top: 4px; opacity: 0.92; }

/* first-load screen (v1.50): HAKROS INTERACTIVE presents.. */
#bootLoader { position: fixed; inset: 0; z-index: 9999; background: #000; display: flex; align-items: center; justify-content: center; transition: opacity 0.6s ease; }
#bootLoader.out { opacity: 0; pointer-events: none; }
#bootLoader .bootBox { width: min(420px, 80vw); display: flex; flex-direction: column; align-items: center; }
#bootLoader .bootLogo { width: 88%; height: auto; display: block; }
#bootLoader .bootPresents { width: 58%; height: auto; display: block; margin: 12px 0 10px; }
#bootLoader .bootBar { width: 100%; height: 7px; background: #1a1712; border: 1px solid #3a3222; }
#bootLoader .bootBar i { display: block; height: 100%; width: 0; background: #f0b43c; transition: width 0.25s linear; }
#bootLoader .bootPct { margin-top: 10px; font-family: var(--display, Impact, sans-serif); font-weight: bold; font-size: 15px; letter-spacing: 1px; color: #f0b43c; }

/* HAKROS links on the main menu */
#hkSocial { position: absolute; top: 16px; right: 22px; z-index: 3; display: none; font-family: var(--display, Impact, sans-serif); font-weight: bold; font-size: 15px;
  letter-spacing: 2px; color: #f0b43c; text-decoration: none; text-shadow: 0 2px 3px #000; }
#hkSocial:hover { color: #ffd27a; }
#hkLogo { position: absolute; right: 28px; bottom: 26px; z-index: 3; display: none; opacity: 0.9; transition: opacity 0.2s; }
#hkLogo:hover { opacity: 1; }
#hkLogo img { width: 150px; height: auto; display: block; }
#menus.title-on #hkSocial, #menus.title-on #hkLogo { display: block; }
@media (max-width: 720px) { #hkLogo img { width: 110px; } }

/* visual presets list: scrollable, preview stays in view (v1.55) */
.presetList { max-height: min(520px, 56vh); overflow-y: auto; padding-right: 6px; }
.presetGrid > div:last-child { align-self: start; position: sticky; top: 0; }

/* sector name box above the minimap (v1.58) */
#mapSector { position: absolute; right: 14px; top: 14px; box-sizing: border-box; padding: 4px 8px; display: none; text-align: center;
  font-family: var(--display); font-size: 15px; letter-spacing: 3px; color: #f2e6c8; background: rgba(0,0,0,0.55);
  border: 2px solid rgba(0,0,0,0.6); border-bottom: 2px solid var(--accent); text-shadow: 1px 1px 0 #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mapSector.lit { scale: var(--hud-s); transform-origin: 100% 0; }
#minimap:not(.big) { top: calc(14px + 34px * var(--hud-s, 1)); }
#hud.hud-hidden #mapSector { display: none !important; }

/* online players style selector, under the preview (v1.60) */
.playerStyle { margin-top: 14px; margin-left: auto; width: fit-content; max-width: 100%; text-align: right; }
.playerStyle .seg { justify-content: flex-end; }
.playerStyle .note { max-width: 420px; margin-left: auto; }

/* grappling hook: options tab + HUD (v1.62) */
.grTop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grTop .opt { grid-template-columns: auto 1fr 0; }
.grBind { min-width: 110px; }
.grGrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.grCell { background: rgba(0,0,0,0.25); border: 2px solid #3b3a37; padding: 6px 8px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 2px 8px; align-items: center; }
.grCell span { grid-column: 1 / 3; font-size: 12px; letter-spacing: 0.5px; text-transform: uppercase; }
.grCell input { width: 100%; }
.grCell b { color: var(--accent); font-size: 12px; font-weight: normal; min-width: 52px; text-align: right; }
@media (max-width: 900px) { .grGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grTop { grid-template-columns: 1fr; } }
#grapAim { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 2px solid rgba(120,230,255,0.75); transform: rotate(45deg); display: none; pointer-events: none; }
#grapBar { position: absolute; left: 50%; top: calc(50% + 26px); width: 70px; height: 4px; margin-left: -35px; background: rgba(0,0,0,0.5); display: none; pointer-events: none; }
#grapBar i { display: block; height: 100%; width: 100%; background: #78e6ff; }
#grapBar.low i { background: #ff5a3a; }
.grTop { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 22px; }
.grOnRow { grid-template-columns: auto 40px 0; justify-content: start; gap: 14px; margin-bottom: 8px; font-size: 16px; }

/* hand cursor on every interactive control of the menus and panels (v1.73) */
button, select, input[type="checkbox"], input[type="radio"], input[type="range"], input[type="color"], label[for], .seg button, .modes button, .tabs button, .presetList button, a { cursor: pointer; }
button:disabled, select:disabled, input:disabled { cursor: not-allowed; }

/* crystals credits + shop (v1.75) */
#hCredits { position: absolute; left: 22px; bottom: 112px; font-family: var(--display); font-size: 26px; letter-spacing: 1px; color: #7fe8ff; text-shadow: 2px 2px 0 #000; pointer-events: none; }
#hCredits.flash { animation: crFlash 0.6s ease-out; }
@keyframes crFlash { 0% { transform: scale(1.35); color: #fff; } 100% { transform: scale(1); } }
#shop { position: fixed; inset: 0; z-index: 30; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.55); }
#shop.on { display: flex; }
#shop .shopBox { width: min(980px, 94vw); max-height: 90vh; overflow-y: auto; background: #1b1a18; border: 3px solid #3b3a37; padding: 18px 24px; box-shadow: 0 10px 40px rgba(0,0,0,0.7); }
#shop .shopHead { display: flex; align-items: center; gap: 18px; border-bottom: 3px solid var(--accent); padding-bottom: 8px; margin-bottom: 6px; }
#shop .shopHead h2 { margin: 0; flex: 1; }
#shopCredits { font-family: var(--display); font-size: 28px; color: #7fe8ff; }
#shop h4 { margin: 14px 0 8px; letter-spacing: 2px; color: #b9b3a6; }
.shopGrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.shopItem { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto auto; gap: 2px 10px; align-items: center; text-align: left; padding: 8px 10px; background: #2c2b29; }
.shopItem img { grid-row: 1 / 4; width: 56px; height: 56px; object-fit: contain; image-rendering: pixelated; }
.shopItem b { font-size: 16px; }
.shopItem span { font-family: var(--mono); font-size: 12px; text-transform: none; letter-spacing: 0; color: #a59f93; }
.shopItem em { font-style: normal; font-family: var(--mono); font-size: 15px; color: #7fe8ff; }
.shopItem:disabled { opacity: 0.45; transform: none; }
.shopItem.owned em { color: #8fd18f; }
@media (max-width: 760px) { .shopGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#hud.hud-hidden #hCredits { display: none; }
.shopItem b { font-size: 14px; letter-spacing: 0.5px; line-height: 1.1; overflow-wrap: anywhere; }
.shopItem { min-width: 0; }

.shopGrid { grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); }
.shopItem b { overflow-wrap: normal; word-break: normal; hyphens: manual; font-size: 13px; }

/* v1.80 arsenal HUD */
#hItems { position: absolute; left: 22px; bottom: 148px; display: flex; flex-direction: column; gap: 3px; font-family: var(--mono); font-size: 13px; color: #e8e2d6; text-shadow: 1px 1px 0 #000; pointer-events: none; }
#hItems kbd { display: inline-block; min-width: 16px; padding: 0 3px; margin-right: 6px; background: rgba(0,0,0,0.5); border: 1px solid #777; text-align: center; font-size: 11px; }
#hItems .on { color: #7fe8ff; }
#jetBar, #wBar { position: absolute; left: 50%; width: 70px; height: 4px; margin-left: -35px; background: rgba(0,0,0,0.5); display: none; pointer-events: none; }
#jetBar { top: calc(50% + 34px); } #jetBar i { display: block; height: 100%; background: #ffb23a; }
#wBar { top: calc(50% + 42px); } #wBar i { display: block; height: 100%; background: #7fe8ff; }
#wBar.heat i { background: #ffb23a; } #wBar.hot i { background: #ff3a2a; }
#markers { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
#hud.hud-hidden #hItems { display: none; }
#slots i, #mSlots i { min-width: 1.1em; }

/* v1.81 statistics, achievements */
.stGrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.stCell { background: rgba(0,0,0,0.25); border: 2px solid #3b3a37; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.stCell span { font-size: 12px; opacity: 0.75; letter-spacing: 1px; }
.stCell b { font-family: var(--display); font-size: 24px; color: var(--accent); font-weight: normal; }
.achGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.achItem { padding: 6px 10px; background: rgba(0,0,0,0.25); border: 2px solid #33322f; opacity: 0.5; display: flex; flex-direction: column; }
.achItem b { font-size: 14px; font-weight: normal; letter-spacing: 1px; } .achItem span { font-family: var(--mono); font-size: 12px; opacity: 0.8; }
.achItem.on { opacity: 1; border-color: #c8a03a; } .achItem.on b { color: #ffd23a; }
#achToast { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 40; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
#achToast .ach { background: rgba(20,18,12,0.92); border: 2px solid #c8a03a; padding: 8px 18px; min-width: 300px; text-align: center; opacity: 0; transform: translateY(-14px); transition: all 0.45s ease; }
#achToast .ach.on { opacity: 1; transform: none; }
#achToast small { display: block; font-size: 11px; letter-spacing: 3px; color: #c8a03a; } #achToast b { display: block; font-family: var(--display); font-size: 22px; color: #ffd23a; font-weight: normal; } #achToast span { font-family: var(--mono); font-size: 12px; color: #e8e2d6; }
@media (max-width: 760px) { .stGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .achGrid { grid-template-columns: 1fr; } }

/* shop tabs */
.shopTabs { display: flex; flex-wrap: nowrap; gap: 4px; margin: 10px 0 12px; border-bottom: 2px solid #3b3a37; }
.shopTab { position: relative; flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; padding: 8px 6px 7px; background: #262523; border: 2px solid #3b3a37; border-bottom: none; color: #b9b3a6; font-size: 13px; letter-spacing: 1px; margin-bottom: -2px; }
.shopTab:hover { color: #fff; transform: none; }
.shopTab.sel { background: #1b1a18; color: var(--accent); border-color: var(--accent); border-bottom: 2px solid #1b1a18; }
.shopTab i { font-style: normal; font-family: var(--mono); font-size: 11px; margin-left: 6px; padding: 1px 5px; border-radius: 8px; background: #7fe8ff; color: #111; vertical-align: 2px; }
.shopTab i:empty { display: none; }
#shop .shopBox { min-height: min(560px, 80vh); }
.shopEmpty { font-family: var(--mono); color: #8a857b; text-transform: none; letter-spacing: 0; padding: 30px 0; text-align: center; }
@media (max-width: 760px) { .shopTabs { flex-wrap: wrap; } }
/* shop: fixed size whatever the tab (the content scrolls inside, the tabs stay on top) */
#shop .shopBox { height: min(640px, 90vh); min-height: 0; max-height: none; box-sizing: border-box; overflow-y: auto; }
#shop .shopTabs { position: sticky; top: -18px; z-index: 2; background: #1b1a18; padding-top: 6px; }
/* messages: upper part of the left side (away from the credits / items / weapon HUD at the bottom) */
#msgLog, #hud.hud-minimal #msgLog { top: 30%; bottom: auto; left: 18px; max-width: 40vw; }

/* red-dot sight (SMG, rocket launcher): light frame, no crosshair lines, glowing dot in a ring */
#scope.dot .lens { width: min(70vh, 70vw); height: min(70vh, 70vw); box-shadow: 0 0 0 200vmax rgba(5,5,5,0.55), inset 0 0 40px 10px rgba(0,0,0,0.5); border: 10px solid rgba(20,20,20,0.9); }
#scope.dot i { display: none; }
#scope.dot b { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; box-shadow: 0 0 6px #ff2a1a, 0 0 0 9px transparent, 0 0 0 10px rgba(255,60,40,0.7); }

/* host options: purchases kept / lost */
.keepList .keepGrp { border: 1px solid #3b3a37; margin: 4px 0; padding: 2px 8px; }
.keepList summary { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 0; }
.keepList summary b { flex: 1; }
.keepList .opt select, .keepList summary select { max-width: 55%; }

/* ---------------- shop v1.98: framed panel, wallet with backpack bar, icon tabs, scrolling grid, footer */
#shop { background: radial-gradient(ellipse at center, rgba(10,10,9,0.55), rgba(0,0,0,0.8)); }
#shop .shopBox { display: flex; flex-direction: column; overflow: hidden; height: min(660px, 90vh); padding: 0; background: linear-gradient(#1f1e1b, #161513); border: 2px solid #46443f; box-shadow: 0 0 0 1px #000, 0 18px 60px rgba(0,0,0,0.8); }
#shop .shopHead { flex: none; display: flex; align-items: center; gap: 20px; margin: 0; padding: 14px 22px 12px; border-bottom: 3px solid var(--accent); background: repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 6px, transparent 6px 12px); }
#shop .shopHead h2 { margin: 0; flex: 1; font-size: 34px; letter-spacing: 3px; }
.shopWallet { display: grid; grid-template-columns: auto; justify-items: end; gap: 3px; min-width: 170px; }
#shopCredits { font-size: 30px; line-height: 1; text-shadow: 0 0 12px rgba(127,232,255,0.35); }
.shopCap { width: 100%; height: 6px; background: #0d0d0c; border: 1px solid #3b3a37; }
.shopCap i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3fb6d0, #7fe8ff); transition: width 0.3s; }
.shopCap i.full { background: linear-gradient(90deg, #d0702f, #ffb04a); }
#shopCapTxt { font-family: var(--mono); font-size: 11px; color: #8a857b; text-transform: none; letter-spacing: 0; }
#shop .shopTabs { position: static; flex: none; display: flex; gap: 0; margin: 0; padding: 0 16px; background: #141312; border-bottom: 1px solid #3b3a37; }
#shop .shopTab { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 6px 10px; margin: 0; background: transparent; border: none; border-bottom: 3px solid transparent; color: #8f897d; font-size: 13px; letter-spacing: 1.2px; }
#shop .shopTab:hover { color: #e8e2d6; background: rgba(255,255,255,0.03); }
#shop .shopTab.sel { color: #fff; border-bottom-color: var(--accent); background: linear-gradient(transparent, rgba(255,90,31,0.12)); }
#shop .shopTab i { margin: 0; }
.ti { display: inline-block; width: 16px; height: 16px; flex: none; background: currentColor; opacity: 0.85;
  -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.ti-w { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 6h11l2-1h1v3h-3v1H9l-1 4H5l1-4H1z'/%3E%3C/svg%3E"); }
.ti-u { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1l6 6h-4v3H6V7H2zM6 11h4v2H6zm0 3h4v1H6z'/%3E%3C/svg%3E"); }
.ti-e { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 1h6v2h2v12H3V3h2zm1 4v2h4V5zm-1 4v4h6V9z'/%3E%3C/svg%3E"); }
.ti-c { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M7 1h2v2h2l-1 2a5 5 0 1 1-4 0L5 3h2z'/%3E%3C/svg%3E"); }
.ti-a { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 6l1-4 1 4v9H2zm5 0l1-4 1 4v9H7zm5 0l1-4 1 4v9h-2z'/%3E%3C/svg%3E"); }
.ti-i { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 1h4v5h5v4h-5v5H6v-5H1V6h5z'/%3E%3C/svg%3E"); }
#shopItems { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 20px; }
#shopItems::-webkit-scrollbar { width: 10px; } #shopItems::-webkit-scrollbar-thumb { background: #3b3a37; } #shopItems::-webkit-scrollbar-track { background: #141312; }
#shop .shopGrid { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 10px; }
#shop .shopItem { position: relative; grid-template-columns: 62px 1fr; grid-template-rows: auto 1fr auto; gap: 3px 12px; align-items: start; padding: 10px 12px; min-height: 86px; background: linear-gradient(#2b2a27, #232220); border: 1px solid #3b3a37; transition: border-color 0.12s, background 0.12s; }
#shop .shopItem:not(:disabled):hover { border-color: var(--accent); background: linear-gradient(#34322e, #2a2926); transform: none; }
#shop .shopItem img { grid-row: 1 / 4; align-self: center; width: 62px; height: 62px; padding: 3px; box-sizing: border-box; background: radial-gradient(circle, #3a3935 0%, #1a1917 75%); border: 1px solid #333230; }
#shop .shopItem b { font-size: 14px; color: #f0ebe0; }
#shop .shopItem span { font-size: 11.5px; line-height: 1.3; }
#shop .shopItem em { justify-self: start; padding: 1px 7px; background: rgba(127,232,255,0.1); border: 1px solid rgba(127,232,255,0.35); font-size: 13px; }
#shop .shopItem.owned { opacity: 0.7; }
#shop .shopItem.owned em { color: #8fd18f; background: rgba(143,209,143,0.1); border-color: rgba(143,209,143,0.4); }
#shop .shopItem.poor { opacity: 0.75; }
#shop .shopItem.poor em { color: #ff8a6a; background: rgba(255,90,31,0.08); border-color: rgba(255,90,31,0.35); }
#shop .shopItem:disabled:not(.poor):not(.owned) { opacity: 0.45; }
#shop .shopEmpty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; height: 100%; min-height: 220px; padding: 0; color: #8a857b; }
#shop .shopEmpty .ti { width: 56px; height: 56px; opacity: 0.25; }
#shop .shopEmpty p { margin: 0; font-size: 15px; }
#shop .shopFoot { flex: none; margin: 0; padding: 9px 22px; border-top: 1px solid #3b3a37; background: #141312; color: #7f7a70; font-size: 12px; }
@media (max-width: 760px) { #shop .shopTabs { flex-wrap: wrap; } #shop .shopTab { flex: 1 1 30%; } }

#shop .shopHead h2 { border: 0; padding: 0; }
#shop .shopTabs { padding: 0 8px; }
#shop .shopTab { gap: 6px; padding: 12px 4px 10px; font-size: 12px; letter-spacing: 0.6px; }
#shop .shopTab .ti { width: 14px; height: 14px; }
#shop .shopItem.locked { opacity: 0.5; }
#shop .shopItem.locked em { color: #b9b3a6; background: rgba(255,255,255,0.05); border-color: #4a4843; }

/* ---------------- v2.00 gadgets */
#gadgetCv { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
#gdBar { position: absolute; left: 22px; bottom: 310px; display: flex; flex-direction: column; gap: 3px; font-family: var(--mono); font-size: 13px; color: #e8e2d6; text-shadow: 1px 1px 0 #000; pointer-events: none; }
#gdBar kbd { display: inline-block; min-width: 16px; padding: 0 3px; margin-right: 6px; background: rgba(0,0,0,0.5); border: 1px solid #777; text-align: center; font-size: 11px; }
#gdBar .on { color: #7fe8ff; } #gdBar .bad { color: #ff7a5a; }
#gdBar .mb { display: inline-block; width: 60px; height: 6px; margin-left: 6px; background: rgba(0,0,0,0.6); border: 1px solid #555; vertical-align: 1px; }
#gdBar .mb i { display: block; height: 100%; background: #60c8ff; }
#hud.hud-hidden #gdBar { display: none; }
#fxShield, #fxThermal { position: fixed; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.2s; z-index: 2; }
#fxShield { background: radial-gradient(ellipse at center, transparent 45%, rgba(80,180,255,0.18) 75%, rgba(80,180,255,0.4) 100%),
  repeating-linear-gradient(60deg, rgba(120,210,255,0.06) 0 2px, transparent 2px 22px), repeating-linear-gradient(-60deg, rgba(120,210,255,0.06) 0 2px, transparent 2px 22px); }
body.fx-shield #fxShield { opacity: 1; }
body.fx-shieldHit #fxShield { animation: shHit 0.3s ease-out; }
@keyframes shHit { 0% { opacity: 1; filter: brightness(2.5); } 100% { filter: none; } }
#fxThermal { background: radial-gradient(ellipse at center, rgba(20,0,60,0.05) 40%, rgba(10,0,40,0.55) 100%); mix-blend-mode: multiply; }
body.fx-thermal #fxThermal { opacity: 1; }
body.fx-thermal canvas#game, body.fx-thermal #game canvas { filter: saturate(0.2) hue-rotate(190deg) brightness(0.8); }
body.fx-camo #weaponView, body.fx-camo #hud .vm { opacity: 0.35; }
body.fx-camo #fxShield { opacity: 0; }
body.fx-emp #radar, body.fx-emp #minimap { filter: contrast(0.4) brightness(1.6) blur(1.5px); animation: empJit 0.12s steps(2) infinite; }
@keyframes empJit { 50% { transform: translateX(2px); opacity: 0.6; } }
/* gadget wheel (hold R) */
#wheel { position: fixed; left: 50%; top: 50%; width: 0; height: 0; z-index: 25; pointer-events: none; display: none; }
#wheel.on { display: block; }
#wheel .wCenter { position: absolute; left: -210px; top: -210px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(0,0,0,0.25) 25%, rgba(10,10,9,0.75) 26%, rgba(10,10,9,0.75) 100%); border: 2px solid rgba(255,90,31,0.6); }
#wheel .wItem { position: absolute; left: -48px; top: -48px; width: 96px; height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 50%; background: rgba(40,39,36,0.9); border: 2px solid #4a4843; color: #e8e2d6; font-family: var(--mono); font-size: 11px; text-align: center; transition: background 0.1s, border-color 0.1s; }
#wheel .wItem img { width: 44px; height: 44px; }
#wheel .wItem kbd { font-size: 10px; padding: 0 3px; border: 1px solid #777; }
#wheel .wItem.sel { background: rgba(255,90,31,0.35); border-color: var(--accent); }
/* shop: bank (at a terminal) */
.shopBank { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid #3fb6d0; background: rgba(63,182,208,0.08); }
.shopBank small { font-family: var(--mono); font-size: 11px; color: #8fd8e8; text-transform: none; }
.shopBank b { font-family: var(--display); font-size: 20px; color: #7fe8ff; }

/* index.html (public build): online only, join only (full.html has everything) */
body.joinOnly [data-act="playLocal"], body.joinOnly .createOnly { display: none !important; }
/* create lobby: neither option highlighted until hovered */
.onBox .seg.createOnly button:hover { background: var(--accent); color: #111; }

.lobName { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-bottom: 10px; }
.lobName label { grid-column: 1 / -1; margin: 0; }
/* lobby name field: room for the focus outline (the column clips its overflow) */
.lobName { padding: 3px 3px 0 3px; }
.lobName input { min-width: 0; width: 100%; box-sizing: border-box; outline-offset: -2px; }

/* ---------------- controls screen (rebinding) + gamepad focus */
#scrControls { display: none; }
#scrControls.on { display: flex; flex-direction: column; }
.ctlWrap { flex: 1 1 auto; min-height: 0; max-height: 62vh; overflow-y: auto; padding-right: 6px; }
.ctlTable { width: 100%; border-collapse: separate; border-spacing: 6px 4px; }
.ctlTable th { position: sticky; top: 0; background: #1b1a18; color: #b9b3a6; font-size: 14px; letter-spacing: 2px; padding: 6px 4px; text-align: center; z-index: 1; }
.ctlTable th:first-child { text-align: left; }
.ctlTable td:first-child { font-size: 16px; letter-spacing: 1px; color: #e8e2d6; white-space: nowrap; padding-right: 14px; }
.ctlTable .bind { display: block; width: 100%; min-width: 120px; padding: 5px 8px; font-family: var(--mono); font-size: 13px; text-align: center; background: #262523; border: 1px solid #4a4843; color: #f0ebe0; letter-spacing: 0.5px; box-sizing: border-box; }
.ctlTable button.bind:hover { border-color: var(--accent); background: #34322e; transform: none; }
.ctlTable .bind.pad { color: #7fc8ff; border-color: #2f4a66; }
.ctlTable .bind.wait { border-color: var(--accent); color: var(--accent); animation: bindBlink 0.8s steps(2) infinite; }
@keyframes bindBlink { 50% { opacity: 0.5; } }
.ctlTable tr.fixed td { opacity: 0.6; }
.ctlPad { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 10px 0 4px; font-size: 14px; }
.ctlPad label { display: flex; align-items: center; gap: 8px; text-transform: none; }
.padFocus { outline: 3px solid #7fe8ff !important; outline-offset: 2px; box-shadow: 0 0 14px rgba(127,232,255,0.6) !important; }
/* boot loader percentage: clean monospace digits (Impact faux-bold looked smudged) */
#bootLoader .bootPct { font-family: var(--mono); font-weight: normal; font-size: 14px; letter-spacing: 3px; color: #f0b43c; -webkit-font-smoothing: antialiased; }
/* shop v2.14: bigger window (5 columns) so every tab fits without scrolling */
#shop .shopBox { width: min(1320px, 96vw); height: min(900px, 94vh); }
#shop .shopGrid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 9px; }
#shop .shopItem { min-height: 78px; padding: 8px 10px; }
#shopItems { padding: 14px 18px; }
/* ---------------- v2.15 HUD: black metal panels behind the bottom indicators (readable on any background) */
#hudMini .ml, #hudMini .mr { padding: 14px 20px 12px; isolation: isolate; }
#hudMini .ml { left: 14px; bottom: 14px; }
#hudMini .mr { right: 14px; bottom: 14px; }
#hudMini .ml::before, #hudMini .mr::before, #hCredits::before, #hItems:not(:empty)::before, #gdBar:not(:empty)::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.028) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 9px calc(100% - 9px), #5a5d61 0 2px, transparent 2.5px),
    radial-gradient(circle at calc(100% - 9px) calc(100% - 9px), #5a5d61 0 2px, transparent 2.5px),
    linear-gradient(180deg, rgba(48,50,53,0.94) 0%, rgba(20,21,23,0.94) 45%, rgba(9,9,10,0.96) 100%);
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%, 0 16px);
}
#hudMini .ml::after, #hudMini .mr::after, #hCredits::after {
  content: ''; position: absolute; left: 16px; right: 16px; top: 0; height: 2px; z-index: -1;
  background: linear-gradient(90deg, transparent, var(--hud-col, #f0b43c) 20%, var(--hud-col, #f0b43c) 80%, transparent); opacity: 0.75;
}
#hudMini .ml::before, #hudMini .mr::before { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); }
#hCredits { padding: 8px 16px 6px 14px; isolation: isolate; left: 14px; bottom: 126px; }
#hItems { left: 14px; bottom: 176px; padding: 8px 12px; isolation: isolate; }
#gdBar { left: 14px; bottom: 330px; padding: 8px 12px; isolation: isolate; }
#hItems:not(:empty)::before, #gdBar:not(:empty)::before { clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%, 0 10px); opacity: 0.85; }
#mSlots { margin-top: 8px; }
#mSlots i { min-width: 14px; text-align: center; }
#hudMini .mr .mv { justify-content: flex-end; }
/* shop: bigger descriptions */
#shop .shopItem span { font-size: 13.5px; line-height: 1.35; color: #b8b2a6; }
#shop .shopItem b { font-size: 15px; }
#shop .shopItem em { font-size: 14px; }
#shop .shopGrid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* host options: PURCHASES tab (full width, two columns of groups) */
#scrNew .tabpanel[data-tab="buy"] .keepList { column-count: 2; column-gap: 22px; }
.keepList .keepGrp { break-inside: avoid; border: 1px solid #3b3a37; background: rgba(255,255,255,0.02); padding: 6px 10px 8px; margin: 0 0 14px; }
.keepList .kgHead, .keepList .kgRow { display: grid; grid-template-columns: 1fr 130px 190px; align-items: center; gap: 10px; }
.keepList .kgHead { padding: 4px 0 6px; border-bottom: 2px solid var(--accent); margin-bottom: 4px; }
.keepList .kgHead b { font-size: 15px; letter-spacing: 2px; }
.keepList .kgHead span { font-family: var(--mono); font-size: 11px; color: #a59f93; text-align: center; text-transform: none; }
.keepList .kgRow { padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-family: var(--mono); font-size: 13px; text-transform: none; letter-spacing: 0; }
.keepList .kgRow > span:nth-child(2), .keepList .kgRow > span:nth-child(3) { text-align: center; }
.keepList .kgRow select { width: 100%; }
.keepList .kgAll { color: #a59f93; }
.keepList .kgAll button { padding: 2px 8px; font-size: 11px; margin: 0 2px; }
@media (max-width: 1100px) { #scrNew .tabpanel[data-tab="buy"] .keepList { column-count: 1; } }
.keepList .kgHead, .keepList .kgRow { grid-template-columns: 1fr 120px 210px; }
.keepList .kgRow select { font-size: 12px; padding: 4px 6px; }
.keepList .kgAll button { display: inline-block; }

#scrNew .liveNote { display: none; color: #ffb04a; }
#scrNew.live .liveNote { display: block; }
#wheel .wItem { left: -56px; top: -56px; width: 112px; height: 112px; }
#wheel .wItem img { width: 62px; height: 62px; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.8)); }
#wheel .wCenter { left: -230px; top: -230px; width: 460px; height: 460px; }

/* gravity badge (fixed gravity / gravity director) */
#gravBadge { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 8px 18px; isolation: isolate; font-family: var(--mono); color: #e8e2d6; text-shadow: 1px 1px 0 #000; pointer-events: none; }
#gravBadge::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(48,50,53,0.94), rgba(9,9,10,0.96)); clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%, 0 12px); border-top: 2px solid #b45cff; }
#gravBadge b { color: #d6a8ff; letter-spacing: 2px; font-size: 14px; }
#gravBadge small { color: #ffe08a; letter-spacing: 2px; }
#gravBadge kbd { display: inline-block; min-width: 18px; margin: 0 2px; padding: 0 4px; border: 1px solid #8a7aa8; background: rgba(0,0,0,0.5); text-align: center; font-size: 12px; }
#hud.hud-hidden #gravBadge { display: none !important; }
/* camouflage: shimmering field around you (only you see it) */
#fxCamo { position: fixed; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s; z-index: 2;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(120,230,210,0.12) 78%, rgba(120,230,210,0.32) 100%),
    repeating-linear-gradient(60deg, rgba(160,255,230,0.05) 0 2px, transparent 2px 18px), repeating-linear-gradient(-60deg, rgba(160,255,230,0.05) 0 2px, transparent 2px 18px);
  animation: camoShim 1.6s linear infinite; }
body.fx-camo #fxCamo { opacity: 1; }
@keyframes camoShim { 0% { background-position: 0 0, 0 0, 0 0; filter: hue-rotate(0deg); } 50% { filter: hue-rotate(25deg) brightness(1.2); } 100% { background-position: 0 0, 36px 0, -36px 0; filter: hue-rotate(0deg); } }

/* auto-fit support: let grid/flex children shrink so long translated words can be measured and fitted */
#shop .shopItem > * { min-width: 0; }
#shop .shopItem b { overflow-wrap: normal; hyphens: manual; }
.shopTab { text-overflow: clip; }
button, h2, h3, label.hdr { min-width: 0; }
.modes button > * { min-width: 0; max-width: 100%; }
#wheel .wItem b { max-width: 100%; text-align: center; line-height: 1.05; }
#jetBar.cd i { background: #6a7a86; }
#shop .shopHead h2 { flex: none; }
#shop .shopAvail { margin-right: auto; display: flex; align-items: center; gap: 8px; cursor: pointer; font-family: var(--display); font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: #b9b3a6; padding: 6px 10px; border: 1px solid #3b3a37; background: rgba(0,0,0,0.25); }
#shop .shopAvail:hover { border-color: var(--accent); color: var(--ink); }
#shop .shopAvail input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); cursor: pointer; }
/* v2.37: no bubble behind each wheel item; only the selected one is highlighted */
#wheel .wItem { background: transparent; border-color: transparent; box-shadow: none; }
#wheel .wItem b { text-shadow: 0 1px 2px #000, 0 0 6px #000; }
#wheel .wItem.sel { background: rgba(255,90,31,0.35); border-color: var(--accent); }
.note:empty { display: none; }
/* credits window (F12 without DebugMode): small, centred */
#credits { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 360px; z-index: 60; background: linear-gradient(#1f1e1b, #161513); border: 2px solid var(--accent); box-shadow: 0 0 0 4px rgba(0,0,0,0.6), 8px 10px 0 rgba(0,0,0,0.45); font-family: var(--mono); color: var(--ink); }
#credits.hidden { display: none; }
#credits .crHead { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 7px 16px; border-bottom: 3px solid var(--accent); background: repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 6px, transparent 6px 12px); }
#credits .crHead span { font-family: var(--display); font-size: 26px; letter-spacing: 3px; }
#credits .crClose { font-size: 13px; padding: 4px 9px; background: #e8e2d6; color: #111; }
#credits .crClose:hover { background: var(--accent); }
#credits .crBody { display: flex; flex-direction: column; padding: 12px 16px 16px; }
#credits small { font-family: var(--display); font-size: 15px; letter-spacing: 1.5px; color: var(--accent); text-transform: uppercase; margin-top: 10px; }
#credits small:first-child { margin-top: 0; }
#credits b { font-family: var(--display); font-size: 24px; letter-spacing: 2px; font-weight: normal; }
#credits a { color: #ffd23a; font-size: 13px; word-break: break-all; }
#credits a:hover { color: #fff; }
#credits i { font-style: normal; font-size: 13px; color: #b9b3a6; }
/* threat scanner: grey world (the red marks are drawn on top) */
body.fx-scan canvas#game, body.fx-scan #game canvas { filter: grayscale(1) contrast(1.15) brightness(0.85); }
#thermCv { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; display: none; filter: drop-shadow(0 0 4px #ff7a1a) drop-shadow(0 0 10px rgba(255,90,0,0.8)); }

/* ---------- v2.50: LANGUAGE menu + licence (EULA) ---------- */
button.langBtn { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
button.langBtn span { min-width: 0; }
button.langBtn .langFlag { flex: 0 0 auto; width: 42px; height: 25px; object-fit: cover; box-shadow: 0 0 0 2px rgba(0,0,0,0.45); }
.centerH { text-align: center; }
.centerRow { justify-content: center; }
#scrLanguage { width: min(820px, 92vw); }
.langGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 14px; margin-top: 18px; padding: 18px; background: rgba(0,0,0,0.35); border: 3px solid #3b3a37; }
.langGrid button { display: flex; align-items: center; gap: 14px; text-transform: none; font-size: 20px; padding: 8px 12px; background: transparent; text-align: left; border-left: 3px solid transparent; }
.langGrid button:hover { background: #3b3a37; color: var(--ink); }
.langGrid button.sel { background: rgba(255,90,31,0.14); border-left-color: var(--accent); color: var(--accent); }
.langGrid button img { flex: 0 0 auto; width: 46px; height: 28px; object-fit: cover; box-shadow: 0 0 0 2px rgba(0,0,0,0.5); }
.langGrid button span { flex: 1 1 auto; min-width: 0; }
.langGrid button i { font-style: normal; visibility: hidden; }
.langGrid button.sel i { visibility: visible; }
#scrLicense { width: min(860px, 92vw); }
.licLogo { display: block; width: min(300px, 60%); height: auto; margin: 0 auto 6px; }
.licBox { max-height: min(340px, 40vh); overflow-y: auto; padding: 14px 18px; background: rgba(0,0,0,0.45); border: 3px solid #3b3a37; font-size: 13px; line-height: 1.55; color: var(--ink); }
.licBox p { margin: 0 0 10px; }
.licBox p.licHead { font-weight: bold; }
.licBox a { color: var(--accent); }
.licCheck { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 15px; }
.licCheck input { width: 20px; height: 20px; flex: 0 0 auto; }
h2.centerH { display: table; margin-left: auto; margin-right: auto; padding-right: 0; }
#scrLicense h2 { font-size: 32px; margin-bottom: 14px; }
.licLogo { width: min(220px, 50%); }
/* v2.51 title menu: logo centred over the buttons, as wide as the menu and lifted a little;
   slogan on a single line (UI.fitAll shrinks its font when a language makes it longer) */
#scrTitle { max-height: none; overflow: visible; }
#scrTitle .title img.logo { width: 100%; max-width: none; margin: -40px auto 6px; }
#scrTitle .subtitle { margin: 14px 0 24px; white-space: nowrap; overflow: hidden; letter-spacing: 2px; }
#scrTitle .mainNav { gap: 8px; }
#licOk:disabled, #licOk:disabled:hover { background: #3b3a37; color: #77736b; transform: none; }
