/* ============================================================================
   NEO//VANTARIS – Spiel-HUD und Menüs (Sprache wie nv.css / dmbxk.dev): dunkle Fenster mit Eckklammern, Segmentbalken, Chips,
   Kicker, Papier-Kontrakt mit Akzentband, nummerierte Reiter. Alles skaliert über --ui (Einstellung „HUD-Größe“).
   ========================================================================== */
.in-game body { overflow: hidden; }
.in-game body > :is(.hud, .foot, .app-main, .topo, [data-mock]) { display: none !important; }
.game { position: fixed; inset: 0; z-index: 30; background: #050607; --ui: 1; user-select: none; }
.game canvas.g-view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.g-ui { position: absolute; inset: 0; pointer-events: none; font: 500 calc(11px * var(--ui)) / 1.4 var(--mono); color: var(--text); }
.g-ui > * { position: absolute; }
.g-ui :is(button, input, .g-log, .g-menu, [data-tabs]) { pointer-events: auto; }

.g-win { background: linear-gradient(180deg, rgba(14, 16, 18, .82), rgba(9, 11, 12, .82)); border: 1px solid rgba(233, 237, 239, .12); padding: 9px 11px 10px; backdrop-filter: blur(3px); }
.g-win::before, .g-win::after { content: ""; position: absolute; width: 11px; height: 11px; border: 2px solid var(--neon); pointer-events: none; }
.g-win::before { left: -2px; top: -2px; border-right: 0; border-bottom: 0; }
.g-win::after { right: -2px; bottom: -2px; border-left: 0; border-top: 0; }
.g-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 6px; margin-bottom: 7px; border-bottom: 1px dashed var(--line-2);
  font: 600 calc(9.5px * var(--ui)) / 1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.g-head b { padding: 3px 5px; background: var(--neon); color: var(--on-neon); font-weight: 700; letter-spacing: .1em; }

.g-vitals { left: 18px; top: 18px; width: calc(290px * var(--ui)); }
.g-vitals .g-head span { color: var(--text); font: 900 calc(15px * var(--ui)) / 1 var(--display); font-stretch: 118%; letter-spacing: .02em; }
.g-sub { margin: -2px 0 8px; font-size: calc(10px * var(--ui)); letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.g-bar { display: grid; grid-template-columns: calc(54px * var(--ui)) 1fr calc(30px * var(--ui)); align-items: center; gap: 8px; margin-top: 5px; font: 600 calc(9px * var(--ui)) / 1 var(--mono); letter-spacing: .14em; color: var(--muted); }
.g-bar em { font-style: normal; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.g-seg { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; }
.g-seg i { height: calc(10px * var(--ui)); background: rgba(255, 255, 255, .08); transition: background .25s; }
.g-seg i.is-on { background: var(--neon); box-shadow: 0 0 5px var(--glow); }
.g-bar.is-low .g-seg i.is-on { background: var(--bad); box-shadow: 0 0 6px rgba(255, 59, 71, .6); animation: lowhp .8s steps(2) infinite; }
@keyframes lowhp { 50% { opacity: .5; } }
.g-bar--arm .g-seg i.is-on { background: #c9cdd0; box-shadow: none; }
.g-pips { display: flex; gap: 4px; }
.g-pips i { width: calc(14px * var(--ui)); height: calc(8px * var(--ui)); border: 1px solid var(--net); transform: skewX(-20deg); }
.g-pips i.is-on { background: var(--net); box-shadow: 0 0 6px rgba(157, 92, 255, .6); }

.g-compass { left: 50%; top: 16px; width: calc(420px * var(--ui)); translate: -50% 0; text-align: center; }
.g-strip { position: relative; height: calc(26px * var(--ui)); overflow: hidden; border-top: 1px solid rgba(233, 237, 239, .25); border-bottom: 1px solid rgba(233, 237, 239, .12);
  background: linear-gradient(90deg, transparent, rgba(9, 11, 12, .7) 20%, rgba(9, 11, 12, .7) 80%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.g-strip i { position: absolute; top: 0; left: calc(50% + (var(--d) - var(--h, 0)) * 4.2px * var(--ui)); width: 1px; height: 6px; background: rgba(233, 237, 239, .5); font: 600 calc(9px * var(--ui)) / 1 var(--mono); color: var(--muted); font-style: normal; }
.g-strip i:is(.is-mid) { height: 10px; }
.g-strip i.is-main { height: 12px; background: var(--neon); color: var(--neon); }
.g-strip i:not(:empty) { text-indent: -0.5em; padding-top: 13px; background-clip: content-box; }
.g-needle { position: absolute; left: 50%; top: -4px; width: 0; height: 0; border: 5px solid transparent; border-top-color: var(--neon); translate: -50% 0; }
.g-loc { display: inline-flex; gap: 8px; align-items: center; margin-top: 7px; }
.g-loc .chip { height: 20px; font-size: calc(9px * var(--ui)); }

.g-map { right: 18px; top: 18px; width: calc(222px * var(--ui)); }
.g-map canvas { display: block; width: 100%; aspect-ratio: 1; image-rendering: pixelated; border: 1px solid var(--line); }
.g-chips { display: flex; gap: 4px; margin-top: 7px; flex-wrap: wrap; }
.g-chips .chip { height: 20px; font-size: calc(9px * var(--ui)); padding: 0 6px; }

.g-contract { right: 18px; top: calc(330px * var(--ui)); width: calc(222px * var(--ui)); background: var(--paper); color: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.g-contract-band { display: flex; justify-content: space-between; padding: 6px 9px; background: var(--neon); color: var(--on-neon); font: 900 calc(11px * var(--ui)) / 1 var(--display); font-stretch: 112%; letter-spacing: .06em; }
.g-contract-band i { font: 700 calc(10px * var(--ui)) / 1 var(--mono); font-style: normal; opacity: .7; }
.g-contract-body { padding: 8px 9px 10px; }
.g-contract-body b { display: block; font: 800 calc(12px * var(--ui)) / 1.2 var(--display); font-stretch: 110%; text-transform: uppercase; }
.g-contract-body p { margin: 5px 0 0; font-size: calc(10.5px * var(--ui)); color: var(--ink-2); }

.g-chat { left: 18px; bottom: 18px; width: calc(400px * var(--ui)); opacity: .55; transition: opacity .3s; }
.g-chat.is-fresh, .g-chat:focus-within, .g-chat:hover { opacity: 1; }
.g-tabs { display: flex; gap: 2px; }
.g-tabs button { padding: 3px 7px; border: 1px solid var(--line-2); background: none; font: 600 calc(9px * var(--ui)) / 1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.g-tabs button.is-on { background: var(--neon); border-color: var(--neon); color: var(--on-neon); }
.g-log { height: calc(150px * var(--ui)); overflow-y: auto; scrollbar-width: thin; display: flex; flex-direction: column; gap: 2px; }
.g-msg { margin: 0; font-size: calc(11px * var(--ui)); line-height: 1.35; text-shadow: 0 1px 2px #000; }
.g-msg i { font-style: normal; display: inline-block; min-width: 34px; margin-right: 6px; font-size: calc(8.5px * var(--ui)); letter-spacing: .1em; color: var(--dim); }
.g-msg b { margin-right: 6px; color: var(--neon); }
.g-msg--b b { color: var(--amb); } .g-msg--w b { color: var(--cyan); } .g-msg--p b, .g-msg--p span { color: #ff8fe4; }
.g-msg--sys span { color: var(--muted); } .g-msg.is-gm b::after { content: " GM"; padding: 0 3px; margin-left: 4px; background: var(--bad); color: #fff; font-size: 8px; }
.g-input { width: 100%; margin-top: 6px; height: calc(26px * var(--ui)); padding: 0 8px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .5); color: var(--text); font: inherit; outline: none; opacity: 0; }
.g-chat.is-typing .g-input { opacity: 1; border-color: var(--neon); }

.g-hotbar { left: 50%; bottom: 18px; translate: -50% 0; }
.g-xp { height: 3px; margin-bottom: 6px; background: rgba(255, 255, 255, .1); }
.g-xp i { display: block; height: 100%; background: var(--neon); box-shadow: 0 0 6px var(--glow); }
.g-slots { display: flex; gap: 5px; }
.g-slot { position: relative; display: grid; place-items: center; width: calc(52px * var(--ui)); height: calc(52px * var(--ui)); border: 1px solid rgba(233, 237, 239, .18); background: rgba(9, 11, 12, .78); }
.g-slot i { position: absolute; left: 3px; top: 3px; display: grid; place-items: center; min-width: 14px; height: 13px; padding: 0 2px; border: 1px solid var(--line-2); font: 700 calc(8.5px * var(--ui)) / 1 var(--mono); font-style: normal; color: var(--muted); }
.g-slot span { font: 600 calc(8.5px * var(--ui)) / 1 var(--mono); letter-spacing: .1em; color: var(--dim); }
.g-slot--q { border-color: rgba(157, 92, 255, .5); } .g-slot--q span { color: var(--net); }
.g-slot--x { border-color: rgba(59, 255, 138, .4); } .g-slot--x span { color: #3bff8a; }
.g-weapon { right: 18px; bottom: 18px; text-align: right; }
.g-weapon b { display: block; font: 900 calc(34px * var(--ui)) / 1 var(--display); font-stretch: 118%; }
.g-weapon span { font-size: calc(9.5px * var(--ui)); letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }

.g-cross { left: 50%; top: 50%; width: 0; height: 0; }
.g-cross i { position: absolute; background: rgba(233, 237, 239, .85); box-shadow: 0 0 2px #000; }
.g-cross i:nth-child(1), .g-cross i:nth-child(2) { width: 6px; height: 2px; top: -1px; }
.g-cross i:nth-child(1) { left: -11px; } .g-cross i:nth-child(2) { left: 5px; }
.g-cross i:nth-child(3), .g-cross i:nth-child(4) { width: 2px; height: 6px; left: -1px; }
.g-cross i:nth-child(3) { top: -11px; } .g-cross i:nth-child(4) { top: 5px; }
.g-cross.is-tp i { background: rgba(233, 237, 239, .55); }

.g-banner { left: 50%; top: 22%; translate: -50% 0; text-align: center; opacity: 0; transition: opacity .5s; }
.g-banner.is-on { opacity: 1; animation: banner 4.2s var(--ease) both; }
.g-banner h2 { margin: 6px 0 0; font: 900 calc(44px * var(--ui)) / .95 var(--display); font-stretch: 125%; text-transform: uppercase; text-shadow: 0 4px 30px rgba(0, 0, 0, .8); }
@keyframes banner { 0% { clip-path: inset(0 0 100% 0); } 12% { clip-path: inset(-20px); } 85% { opacity: 1; } 100% { opacity: 0; } }
.g-announce { left: 50%; top: 92px; translate: -50% 0; max-width: 70vw; padding: 9px 14px; border: 1px solid rgba(255, 210, 63, .5); background: rgba(20, 18, 8, .85); color: var(--warn);
  font: 700 calc(12px * var(--ui)) / 1.3 var(--mono); letter-spacing: .06em; opacity: 0; transition: opacity .4s; }
.g-announce::before { content: "ANSAGE // "; color: var(--muted); }
.g-announce.is-on { opacity: 1; }
.g-help { left: 50%; bottom: calc(96px * var(--ui)); translate: -50% 0; padding: 7px 12px; background: rgba(9, 11, 12, .8); border: 1px solid var(--line); font-size: calc(10.5px * var(--ui)); color: var(--muted); white-space: nowrap; transition: opacity 1s; }
.g-help b { color: var(--text); }
.g-help.is-off { opacity: 0; }
.g-lock { inset: 0; display: grid; place-items: center; background: rgba(5, 6, 7, .35); transition: opacity .3s; }
.g-lock .win { max-width: 360px; }
.g-lock.is-off { opacity: 0; }
.g-names { inset: 0; }
.nameplate { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 4px; padding: 3px 6px; background: rgba(9, 11, 12, .72); border-left: 2px solid var(--neon);
  font: 700 11px/1 var(--mono); letter-spacing: .06em; white-space: nowrap; transform-origin: 50% 100%; }
.nameplate i { font-style: normal; font-size: 9px; color: var(--muted); }
.nameplate.is-gm { border-left-color: var(--bad); }
.g-dead { inset: 0; display: grid; place-items: center; background: rgba(40, 0, 6, .55); }

/* ------------------------------------------------------------ Menü im Spiel (Esc) */
.g-menu { position: absolute; inset: 0; display: flex; flex-direction: column; background: rgba(9, 11, 12, .9); backdrop-filter: blur(6px); pointer-events: auto; animation: gm-in .25s var(--ease); }
@keyframes gm-in { from { opacity: 0; } }
.g-menu .hud { position: relative; animation: none; }
.g-menu-main { flex: 1; overflow-y: auto; padding: 0 22px 40px; }
.g-menu-main .wrap { padding: 0; }
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.g-set { display: grid; gap: 12px; }
.g-set label { display: grid; grid-template-columns: 180px 1fr auto; gap: 12px; align-items: center; font: 600 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.g-set input[type=range] { accent-color: var(--neon); }
.g-set output { min-width: 40px; text-align: right; color: var(--text); }
.g-keys { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; font-size: 12px; }
.g-keys kbd { padding: 2px 6px; border: 1px solid var(--line-2); font: 700 10px/1.4 var(--mono); }
.g-worldmap { position: relative; width: 100%; aspect-ratio: 6144 / 4096; max-height: 70vh; border: 1px solid var(--line); background: #0b0d0f; }
.g-worldmap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.g-soon { padding: 30px; border: 1px dashed var(--line-2); color: var(--muted); }
.is-ready .g-boot { opacity: 1; visibility: visible; z-index: 96; }
.is-ready .g-boot.is-gone { opacity: 0; visibility: hidden; }

/* ------------------------------------------------------------ Kampf (Phase 2) */
.g-slot { overflow: hidden; }
.g-slot span { position: relative; z-index: 1; text-align: center; padding: 0 3px; line-height: 1.1; }
.g-slot u { position: absolute; left: 0; right: 0; top: 0; height: 0; background: repeating-linear-gradient(-45deg, rgba(0, 0, 0, .65) 0 3px, rgba(0, 0, 0, .35) 3px 6px); text-decoration: none; }
.g-slot em { position: absolute; right: 4px; bottom: 3px; z-index: 2; font: 700 calc(11px * var(--ui)) / 1 var(--mono); font-style: normal; color: var(--text); }
.g-slot.is-locked { opacity: .35; }
.g-slot:not(.is-locked):not(.g-slot--q):not(.g-slot--x) span { color: var(--text); }
.g-weapon { min-width: calc(230px * var(--ui)); }
.g-weapon b { position: relative; display: inline-block; font-variant-numeric: tabular-nums; }
.g-weapon b::after { content: attr(data-mag); font: 700 calc(14px * var(--ui)) / 1 var(--mono); color: var(--muted); margin-left: 4px; }
.g-weapon b.is-low { color: var(--bad); }
.g-wslots { display: flex; gap: 3px; justify-content: flex-end; margin-bottom: 6px; }
.g-wslots i { display: grid; place-items: center; width: 18px; height: 16px; border: 1px solid var(--line-2); font: 700 9px/1 var(--mono); font-style: normal; color: var(--dim); }
.g-wslots i.is-on { background: var(--neon); border-color: var(--neon); color: var(--on-neon); }
.g-wslots i.is-empty { opacity: .3; }
.g-reload, .g-charge { height: 3px; margin-top: 6px; background: rgba(255, 255, 255, .08); display: none; }
.g-reload i, .g-charge i { display: block; height: 100%; width: 0; background: var(--amb); }
.g-charge i { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.g-weapon.is-reload .g-reload, .g-weapon.is-charge .g-charge { display: block; }
.g-target { left: 50%; top: calc(86px * var(--ui)); translate: -50% 0; width: calc(300px * var(--ui)); padding: 6px 9px; background: rgba(9, 11, 12, .78); border-left: 3px solid var(--fc, var(--bad)); }
.g-thead { display: flex; justify-content: space-between; gap: 8px; font: 700 calc(11px * var(--ui)) / 1 var(--mono); letter-spacing: .06em; }
.g-thead i { font-style: normal; color: var(--muted); }
.g-tbar { height: 5px; margin-top: 5px; background: rgba(255, 255, 255, .1); }
.g-tbar s { display: block; height: 100%; background: var(--fc, var(--bad)); text-decoration: none; transition: width .15s; }
.g-feed { right: 18px; bottom: calc(150px * var(--ui)); display: grid; gap: 3px; justify-items: end; }
.g-feed p { margin: 0; padding: 4px 8px; background: rgba(9, 11, 12, .78); border-right: 2px solid var(--neon); font: 600 calc(10.5px * var(--ui)) / 1.2 var(--mono); transition: opacity .6s, translate .6s; }
.g-feed p.is-out { opacity: 0; translate: 20px 0; }
.g-prompt { left: 50%; top: 58%; translate: -50% 0; padding: 6px 10px; background: rgba(9, 11, 12, .85); border: 1px solid var(--line-2); font: 600 calc(11px * var(--ui)) / 1 var(--mono); }
.g-prompt b { padding: 2px 5px; margin-right: 6px; background: var(--neon); color: var(--on-neon); }
.g-warn { left: 50%; top: 64%; translate: -50% 0; padding: 5px 10px; color: var(--amb); font: 700 calc(11px * var(--ui)) / 1 var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: 0; transition: opacity .2s; text-shadow: 0 1px 3px #000; }
.g-warn.is-on { opacity: 1; }
.g-hitm { left: 50%; top: 50%; width: 0; height: 0; opacity: 0; }
.g-hitm i { position: absolute; width: 9px; height: 2px; background: #fff; box-shadow: 0 0 3px #000; }
.g-hitm i:nth-child(1) { left: -13px; top: -13px; rotate: 45deg; } .g-hitm i:nth-child(2) { left: 4px; top: -13px; rotate: -45deg; }
.g-hitm i:nth-child(3) { left: -13px; top: 11px; rotate: -45deg; } .g-hitm i:nth-child(4) { left: 4px; top: 11px; rotate: 45deg; }
.g-hitm.is-on { opacity: 1; } .g-hitm.is-crit i { background: var(--warn); } .g-hitm.is-kill i { background: var(--bad); width: 13px; }
.g-hurt { inset: 0; opacity: 0; background: radial-gradient(60% 60% at 50% 50%, transparent 55%, rgba(255, 30, 40, .45) 100%); }
.g-hurt.is-on { animation: hurt .5s ease-out; }
@keyframes hurt { from { opacity: 1; } to { opacity: 0; } }
.g-qh { left: 50%; top: 50%; translate: 30px -50%; width: calc(300px * var(--ui)); padding: 8px 10px; background: rgba(12, 8, 20, .92); border: 1px solid rgba(157, 92, 255, .55); }
.g-qh .g-head b { background: var(--net); color: #fff; }
.g-qh p { display: grid; grid-template-columns: 18px 1fr 26px; gap: 2px 8px; margin: 0 0 6px; font-size: calc(10.5px * var(--ui)); }
.g-qh p i { font-style: normal; display: grid; place-items: center; height: 16px; border: 1px solid var(--net); color: var(--net); font-weight: 700; }
.g-qh p em { font-style: normal; text-align: right; color: var(--net); font-weight: 700; }
.g-qh p span { grid-column: 2 / 4; color: var(--muted); font-size: calc(9.5px * var(--ui)); }
.g-qh p.is-off { opacity: .4; }
.g-qh small { color: var(--dim); font-size: 9px; letter-spacing: .1em; }
.g-dead { inset: 0; display: grid; place-items: center; background: radial-gradient(80% 80% at 50% 50%, rgba(40, 0, 6, .35), rgba(20, 0, 3, .8)); pointer-events: auto; }
.g-dead .win { max-width: 420px; }
.g-dead-t { font-size: calc(46px * var(--ui)); color: var(--bad); }
.g-num { position: absolute; left: 0; top: 0; font: 800 14px/1 var(--mono); color: #fff; text-shadow: 0 1px 0 #000, 0 0 6px rgba(0, 0, 0, .8); pointer-events: none; white-space: nowrap; }
.g-num.is-crit { color: var(--warn); font-size: 18px; } .g-num.is-hs::before { content: "◎ "; color: var(--bad); }
.g-num.is-dot { color: #9aff6a; font-size: 12px; } .g-num.is-kill { color: var(--bad); font-size: 20px; }
.g-num.is-self { color: var(--bad); font-size: 13px; }
.g-num.ty-tech { color: var(--cyan); } .g-num.ty-smart { color: #d4a8ff; } .g-num.ty-netz { color: var(--net); }
.nameplate.is-npc { flex-direction: column; align-items: stretch; gap: 3px; border-left-color: var(--fc); }
.np-row { display: flex; align-items: center; gap: 5px; }
.np-row em { font-style: normal; color: var(--warn); }
.np-hp { height: 4px; background: rgba(255, 255, 255, .12); }
.np-hp s { display: block; height: 100%; width: 100%; background: var(--fc); text-decoration: none; }
.np-fx { display: flex; gap: 3px; } .np-fx i { padding: 1px 3px; background: rgba(0, 0, 0, .6); font-size: 7.5px; letter-spacing: .08em; color: var(--warn); }
.nameplate.is-alert { box-shadow: 0 0 0 1px var(--fc); }
.nameplate.is-elite b { color: var(--warn); }
/* Breech Protocol */
.g-breech { left: 50%; top: 50%; translate: -50% -50%; width: min(460px, 92vw); pointer-events: auto; --c: var(--net); }
.g-bseq, .g-bbuf { display: flex; gap: 6px; align-items: center; margin: 6px 0; font: 700 11px/1 var(--mono); color: var(--muted); }
.g-bseq b { padding: 4px 6px; border: 1px solid var(--line-2); color: var(--text); } .g-bseq b.is-ok { background: var(--net); border-color: var(--net); }
.g-bbuf i { display: grid; place-items: center; width: 28px; height: 22px; border: 1px dashed var(--line-2); font-style: normal; color: var(--neon); }
.g-bgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 10px 0; }
.g-bgrid button { height: 40px; border: 1px solid var(--line); background: rgba(0, 0, 0, .4); font: 700 15px/1 var(--mono); color: var(--muted); cursor: pointer; }
.g-bgrid button.is-on { border-color: var(--net); color: var(--text); background: rgba(157, 92, 255, .12); }
.g-bgrid button.is-on:hover { background: var(--net); color: #fff; }
.g-bgrid button.is-used { opacity: .25; }
/* Sandavistan / Berzerk / Zeitlupe als Bildschirm-Tönung */
.game.os-sandavistan .g-view { filter: saturate(1.6) hue-rotate(-20deg) contrast(1.1); }
.game.os-berzerk .g-view { filter: saturate(1.3) sepia(.25) contrast(1.15); }
.game.is-scan .g-view { filter: saturate(.25) contrast(1.15) brightness(.9); }
/* Inventar */
.g-inv { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 20px; align-items: start; }
.g-eq { display: grid; gap: 12px; position: sticky; top: 0; }
.g-eqslot { display: grid; gap: 6px; }
.g-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 12px; }
.g-item .card-body { padding: 8px 10px; }
.g-item .card-list li { padding: 4px 6px; font-size: 10.5px; }
.g-iact { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 10px 10px; }
.g-filter { flex-wrap: wrap; }
.g-capbar { position: relative; height: 10px; margin: -6px 0 18px; background: var(--line); }
.g-capbar i { position: absolute; inset: 0 auto 0 0; background: var(--neon); box-shadow: 0 0 8px var(--glow); }
.g-capbar b { position: absolute; inset: 0 0 0 auto; background: repeating-linear-gradient(-45deg, var(--bad) 0 4px, transparent 4px 8px); }
@media (max-width: 1000px) { .g-inv { grid-template-columns: 1fr; } .g-eq { position: static; } }

.g-slot span { font-size: calc(8px * var(--ui)); letter-spacing: .02em; text-transform: uppercase; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; }
.g-weapon span[data-wname] { display: block; margin-top: 2px; }
.g-weapon b[data-ammo] { margin-right: 0; }
/* Inventar (Charakterbildschirm): Ausrüstung | Rucksack-Raster | Gegenstandskarte; --rc = Seltenheitsfarbe */
.gi { display: grid; grid-template-columns: 300px minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.gi-eq { display: grid; gap: 12px; }
.gi-weap { display: grid; gap: 14px; padding-top: 6px; }
.gi-tile { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 2px 10px; width: 100%; min-height: 58px; padding: 8px 10px; border: 1px solid var(--line-2); border-left: 3px solid var(--rc); background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 16%, transparent), rgba(0, 0, 0, .35) 65%); color: var(--text); font: 600 11px/1.25 var(--mono); text-align: left; cursor: pointer; transition: box-shadow .15s var(--ease), border-color .15s var(--ease); }
.gi-tile b { grid-row: span 2; display: grid; place-items: center; height: 40px; border: 1px solid color-mix(in srgb, var(--rc) 55%, transparent); color: var(--rc); font: 800 12px/1 var(--mono); letter-spacing: .04em; }
.gi-tile small { position: absolute; top: -8px; left: 8px; padding: 0 5px; background: var(--bg, #0b0d0f); color: var(--muted); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.gi-tile span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gi-tile i { font-style: normal; color: var(--muted); font-size: 10px; }
.gi-tile:hover, .gi-tile.is-sel { border-color: var(--rc); box-shadow: 0 0 0 1px var(--rc), 0 0 16px color-mix(in srgb, var(--rc) 35%, transparent); }
.gi-tile.is-sel { background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 30%, transparent), rgba(0, 0, 0, .35) 80%); }
.gi-tile.is-empty { grid-template-columns: 1fr; border-left-color: var(--line-2); background: rgba(0, 0, 0, .25); color: var(--muted); cursor: default; }
.gi-tile.is-empty:hover { box-shadow: none; border-color: var(--line-2); }
.gi-doll { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 10px; padding-top: 6px; }
.gi-doll .gi-ds { position: relative; z-index: 1; }
.gi-fig { position: absolute; inset: 0; display: grid; place-items: center; color: color-mix(in srgb, var(--neon) 14%, transparent); font-size: 150px; line-height: 1; pointer-events: none; }
.gi-cy { display: flex; flex-wrap: wrap; gap: 6px; }
.gi-tools { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.gi-filter, .gi-sort { display: flex; flex-wrap: wrap; gap: 6px; }
.gi .chip { cursor: pointer; background: transparent; }
.gi .chip.is-on { border-color: var(--neon); color: var(--neon); box-shadow: 0 0 10px var(--glow); }
.gi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; max-height: 64vh; overflow: auto; padding: 2px 4px 2px 2px; }
.gi-grid .gi-tile { grid-template-columns: 1fr; grid-template-rows: 38px auto auto; justify-items: center; min-height: 104px; border-left-width: 1px; border-top: 3px solid var(--rc); text-align: center; background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 16%, transparent), rgba(0, 0, 0, .35) 70%); }
.gi-grid .gi-tile b { grid-row: auto; width: 100%; height: 38px; font-size: 14px; }
.gi-grid .gi-tile span { max-width: 100%; }
.gi-card { position: sticky; top: 0; border-top: 3px solid var(--rc, var(--line-2)); }
.gi-card h3 { margin: 0 0 4px; font: 900 18px/1.15 var(--display); font-stretch: 112%; }
.gi-card h3 small { color: var(--muted); font: 600 12px var(--mono); }
.gi-rar { margin: 0 0 12px; color: var(--rc); font: 700 10.5px/1.4 var(--mono); letter-spacing: .06em; }
.gi-stats { display: grid; gap: 4px; margin: 0 0 6px; padding: 0; list-style: none; }
.gi-stats li { display: grid; grid-template-columns: 1fr auto 74px; gap: 8px; padding: 5px 8px; background: rgba(0, 0, 0, .3); font: 600 11px/1.2 var(--mono); }
.gi-stats b { color: var(--text); }
.gi-stats em { font-style: normal; text-align: right; }
.gi-stats em.is-up { color: var(--neon); }
.gi-stats em.is-down { color: var(--bad); }
.gi-cmp { margin: 0 0 10px; color: var(--muted); font-size: 10px; }
.gi-aff { display: grid; gap: 3px; margin: 0 0 10px; padding: 0; list-style: none; }
.gi-aff li { color: var(--rc); font: 600 11px/1.3 var(--mono); }
.gi-aff li::before { content: '+ '; }
.gi-desc { color: var(--muted); font-size: 12px; line-height: 1.45; }
.gi-act { display: flex; gap: 8px; margin-top: 12px; }
@media (max-width: 1240px) { .gi { grid-template-columns: 280px minmax(0, 1fr); } .gi-card { grid-column: 1 / -1; position: static; } }
@media (max-width: 760px) { .gi { grid-template-columns: 1fr; } }
