/* ============================================================================
   FIGHT//SIM – Stil. Token und Formensprache aus dem Hub v3 (hub/public/css/v3.css, als Kopie): dunkle Platten mit
   Eckklammern, Papier als Kontrast, ein Akzent aus theme.js (--neon/--on-neon), Oxanium/Archivo/IBM Plex Mono,
   Einläufe in Stufen, Hover ohne Übergang. Englische System-Labels, deutsche Inhalte.
   ========================================================================== */
:root {
  --void: #0b0c0d; --plate: rgba(17, 19, 20, .9); --plate-2: #1b1d1f; --plate-3: #26292b;
  --ink: #ecebe6; --ink-2: #a8a9a4; --ink-3: #6b6d6a; --line: rgba(236, 235, 230, .1); --line-2: rgba(236, 235, 230, .22);
  --paper: #d8d8d3; --paper-ink: #0d0e0f; --alert: #ff2a1f; --teamB: #ff2a1f;
  --disp: "Oxanium", "Archivo", system-ui, sans-serif; --mono: "IBM Plex Mono", ui-monospace, monospace; --grot: "Archivo", system-ui, sans-serif;
  --top: 56px; --pad: 14px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--void); color: var(--ink); font: 400 14px/1.45 var(--grot); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--neon); color: var(--on-neon); }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
[hidden] { display: none !important; }
.bx { font-style: normal; color: var(--neon); }
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; touch-action: none; }
#ui { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
#ui > * { pointer-events: auto; }
#ui > .pass { pointer-events: none; }
.crt { position: fixed; inset: 0; z-index: 60; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .28) 0 1px, transparent 1px 3px); opacity: .22; mix-blend-mode: multiply; }
html.lite .crt { display: none; }

/* ---------------------------------------------------------------- Bausteine */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px 3px; background: var(--ink); color: var(--void); font: 600 10px/1.1 var(--mono); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.tag--acc { background: var(--neon); color: var(--on-neon); }
.tag--line { background: none; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.lbl { font: 600 10px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.pl { --b: var(--neon); position: relative; background:
  linear-gradient(var(--b), var(--b)) 0 0 / 10px 1.5px no-repeat, linear-gradient(var(--b), var(--b)) 0 0 / 1.5px 10px no-repeat,
  linear-gradient(var(--b), var(--b)) 100% 0 / 10px 1.5px no-repeat, linear-gradient(var(--b), var(--b)) 100% 0 / 1.5px 10px no-repeat,
  linear-gradient(var(--b), var(--b)) 0 100% / 10px 1.5px no-repeat, linear-gradient(var(--b), var(--b)) 0 100% / 1.5px 10px no-repeat,
  linear-gradient(var(--b), var(--b)) 100% 100% / 10px 1.5px no-repeat, linear-gradient(var(--b), var(--b)) 100% 100% / 1.5px 10px no-repeat,
  var(--plate); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(6px); }
html.lite .pl { backdrop-filter: none; background-color: #111314; }
.btn { --cut: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding: 0 18px; border: 0; background: var(--neon); color: var(--on-neon);
  font: 600 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; text-decoration: none;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.btn:hover, .btn:focus-visible { background: var(--ink); color: var(--void); outline: 0; }
.btn:active { transform: translateY(1px); }
.btn--ink { background: var(--plate-3); color: var(--ink); }
.btn--ink:hover { background: var(--neon); color: var(--on-neon); }
.btn--big { min-height: 48px; padding: 0 30px; font-size: 13px; --cut: 12px; }
.btn[disabled] { opacity: .35; pointer-events: none; }
.ib { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 34px; height: 34px; padding: 0 10px; border: 0; background: transparent; color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line); font: 600 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.ib:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); background: rgba(236, 235, 230, .05); }
.ib.on { background: var(--neon); color: var(--on-neon); box-shadow: none; }
.ib svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ib kbd { font: inherit; opacity: .5; }
input[type=range] { accent-color: var(--neon); width: 100%; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field input { height: 40px; padding: 0 12px; border: 0; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px var(--line-2); font: 500 13px var(--mono); }
.field input:focus { outline: 0; box-shadow: inset 0 0 0 1px var(--neon); }
@keyframes stepIn { 0% { opacity: 0; clip-path: inset(0 0 100% 0); } 50% { opacity: 1; } 100% { opacity: 1; clip-path: inset(0); } }
@keyframes flick { 0%, 100% { opacity: 1; } 30% { opacity: .2; } 60% { opacity: .8; } }
[data-rv] { animation: stepIn .25s steps(5) both; animation-delay: calc(var(--i, 0) * 42ms); }
@media (prefers-reduced-motion: reduce) { [data-rv] { animation: none; } }

/* ---------------------------------------------------------------- Boot */
.boot { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; justify-content: flex-end; padding: 40px; background: var(--void); font: 500 12px/1.7 var(--mono); letter-spacing: .06em; color: var(--ink-2); }
.boot b { color: var(--neon); font-weight: 600; }
.boot .big { font: 800 clamp(60px, 11vw, 190px)/.85 var(--disp); color: transparent; -webkit-text-stroke: 1px rgba(236, 235, 230, .22); margin-top: 18px; white-space: nowrap; }
.boot .bar { height: 3px; margin-top: 16px; background: var(--line); }
.boot .bar i { display: block; height: 100%; width: 0; background: var(--neon); }
.boot.off { animation: crtOff .34s cubic-bezier(.6, 0, .9, .4) forwards; }
@keyframes crtOff { 55% { transform: scale(1, .004); filter: brightness(3); } 100% { transform: scale(0, .004); opacity: 0; } }

/* ---------------------------------------------------------------- Menü */
.menu { position: fixed; inset: 0; display: grid; grid-template-columns: minmax(320px, 520px) 1fr minmax(260px, 340px); gap: 24px; padding: 34px 40px; pointer-events: none; }
.menu > * { pointer-events: auto; }
.menu::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(11, 12, 13, .9) 0%, rgba(11, 12, 13, .72) 30%, rgba(11, 12, 13, 0) 52%), linear-gradient(270deg, rgba(11, 12, 13, .7) 0%, rgba(11, 12, 13, 0) 28%); }
.m-brand { font: 600 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); display: flex; gap: 12px; align-items: center; }
.m-title { margin: 22px 0 6px; font: 800 clamp(56px, 7.4vw, 124px)/.84 var(--disp); letter-spacing: -.01em; text-transform: uppercase; text-shadow: 0 0 18px rgba(0, 0, 0, .6); }
.m-title i { font-style: normal; color: var(--neon); }
.m-sub { max-width: 440px; color: var(--ink-2); font-size: 14px; }
.m-list { display: flex; flex-direction: column; gap: 6px; margin-top: 30px; max-width: 420px; }
.m-item { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border: 0; background: var(--plate); box-shadow: inset 0 0 0 1px var(--line); text-align: left; cursor: pointer; }
.m-item i { font: 600 10px var(--mono); color: var(--ink-3); font-style: normal; }
.m-item b { font: 700 19px/1 var(--disp); letter-spacing: .03em; text-transform: uppercase; }
.m-item span { font: 600 9.5px/1 var(--mono); letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; }
.m-item:hover, .m-item:focus-visible { background: var(--neon); color: var(--on-neon); outline: 0; }
.m-item:hover i, .m-item:hover span { color: inherit; }
.m-item.dim { opacity: .5; }
.m-side { align-self: start; display: flex; flex-direction: column; gap: 12px; }
.acc { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.acc h3 { margin: 0; font: 700 16px/1 var(--disp); text-transform: uppercase; letter-spacing: .04em; }
.acc .err { color: var(--alert); font: 500 12px var(--mono); min-height: 16px; }
.acc .row { display: flex; gap: 8px; flex-wrap: wrap; }
.m-foot { position: fixed; left: 40px; right: 40px; bottom: 16px; display: flex; justify-content: space-between; font: 600 9.5px/1 var(--mono); letter-spacing: .18em; color: var(--ink-3); text-transform: uppercase; pointer-events: none; }
.mock { position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 70; padding: 4px 10px; background: var(--alert); color: #fff; font: 700 10px var(--mono); letter-spacing: .18em; }

/* ---------------------------------------------------------------- Sandbox-HUD */
.top { position: fixed; left: 0; right: 0; top: 0; height: var(--top); display: flex; align-items: center; gap: 14px; padding: 0 var(--pad); background: linear-gradient(rgba(11, 12, 13, .92), rgba(11, 12, 13, .6)); border-bottom: 1px solid var(--line); font: 600 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.brand { font: 700 18px/1 var(--disp); letter-spacing: .02em; cursor: pointer; border: 0; background: none; padding: 0; }
.brand i { font-style: normal; color: var(--neon); }
.teamchip { display: flex; align-items: center; gap: 8px; padding: 6px 10px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.teamchip .sw { width: 10px; height: 10px; background: var(--c); box-shadow: 0 0 10px var(--c); }
.teamchip b { font: 700 14px/1 var(--disp); color: var(--ink); }
.teamchip.on { box-shadow: inset 0 0 0 1.5px var(--c); }
.top .grow { flex: 1; }
.sim-btn { min-width: 210px; }
.top .modelbl { color: var(--ink-3); }

.roster { position: fixed; left: var(--pad); top: calc(var(--top) + 10px); bottom: 96px; width: 318px; display: flex; flex-direction: column; }
.roster-head { padding: 12px 12px 8px; display: flex; flex-direction: column; gap: 8px; }
.roster-head input { height: 30px; padding: 0 10px; border: 0; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px var(--line); font: 500 12px var(--mono); }
.cats { display: flex; flex-wrap: wrap; gap: 4px; }
.cat { height: 24px; padding: 0 7px; border: 0; background: rgba(236, 235, 230, .05); color: var(--ink-2); font: 600 9px/1 var(--mono); letter-spacing: .1em; cursor: pointer; text-transform: uppercase; }
.cat:hover { color: var(--ink); background: rgba(236, 235, 230, .1); }
.cat.on { background: var(--neon); color: var(--on-neon); }
.cards { flex: 1; overflow-y: auto; padding: 4px 12px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-content: start; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.card { position: relative; display: flex; flex-direction: column; padding: 0 0 6px; border: 0; background: rgba(236, 235, 230, .04); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; text-align: left; overflow: hidden; }
.card:hover { box-shadow: inset 0 0 0 1px var(--line-2); background: rgba(236, 235, 230, .08); }
.card.on { box-shadow: inset 0 0 0 1.5px var(--neon); background: rgba(236, 235, 230, .08); }
.card .th { height: 86px; background: radial-gradient(ellipse at 50% 70%, rgba(236, 235, 230, .08), transparent 70%); display: flex; align-items: center; justify-content: center; }
.card .th img { width: 100%; height: 100%; object-fit: contain; image-rendering: auto; }
.card b { padding: 4px 8px 0; font: 700 12.5px/1.1 var(--disp); letter-spacing: .02em; }
.card span { padding: 2px 8px 0; font: 600 10px/1 var(--mono); color: var(--neon); letter-spacing: .08em; }
.card.locked { opacity: .55; }
.card.locked .th::after { content: "???"; font: 700 22px var(--disp); color: var(--ink-3); }
.card .grp { position: absolute; top: 6px; right: 6px; font: 600 9px var(--mono); color: var(--ink-2); background: rgba(0, 0, 0, .5); padding: 2px 4px; }

.tools { position: fixed; left: var(--pad); right: var(--pad); bottom: var(--pad); min-height: 70px; display: flex; align-items: center; gap: 8px; padding: 10px 14px; flex-wrap: wrap; }
.tools .sep { width: 1px; align-self: stretch; background: var(--line); margin: 0 4px; }
.opts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.opts label { display: flex; align-items: center; gap: 6px; font: 600 9.5px var(--mono); color: var(--ink-3); letter-spacing: .12em; text-transform: uppercase; }
.opts input[type=range] { width: 110px; }
.opts select { height: 30px; background: var(--plate-2); border: 0; box-shadow: inset 0 0 0 1px var(--line); padding: 0 6px; font: 500 11px var(--mono); }
.hint { margin-left: auto; font: 500 10px/1.35 var(--mono); color: var(--ink-3); letter-spacing: .04em; max-width: 360px; text-align: right; }

.insp { position: fixed; right: var(--pad); top: calc(var(--top) + 10px); width: 300px; max-height: calc(100vh - var(--top) - 116px); overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.insp h2 { margin: 0; font: 800 26px/.95 var(--disp); text-transform: uppercase; }
.insp .stats { display: grid; grid-template-columns: 74px 1fr 52px; gap: 5px 8px; align-items: center; font: 600 10px var(--mono); letter-spacing: .1em; color: var(--ink-3); }
.insp .stats i { height: 5px; background: var(--line); position: relative; }
.insp .stats i::after { content: ""; position: absolute; inset: 0; width: var(--v); background: var(--neon); }
.insp .stats em { font-style: normal; color: var(--ink); text-align: right; }
.insp .abil { display: flex; flex-wrap: wrap; gap: 4px; }
.insp .lore { margin: 0; padding: 10px 12px; background: var(--paper); color: var(--paper-ink); font: 500 12.5px/1.45 var(--grot); }
.insp .x { position: absolute; top: 8px; right: 8px; }

.battle { position: fixed; left: 50%; bottom: var(--pad); transform: translateX(-50%); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; padding: 10px 12px; width: max-content; max-width: calc(100vw - 28px); }
.battle .time { font: 700 18px/1 var(--disp); min-width: 64px; text-align: center; }
.tbar { position: fixed; top: calc(var(--top) + 10px); left: 50%; transform: translateX(-50%); width: min(560px, 60vw); display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 14px; font: 700 15px/1 var(--disp); }
.tbar .bars { position: relative; height: 8px; background: var(--teamB); }
.tbar .bars i { position: absolute; inset: 0 auto 0 0; background: var(--neon); }

.win { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(11, 12, 13, .55); }
.win .box { width: min(640px, 92vw); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.win h1 { margin: 0; font: 800 clamp(44px, 7vw, 92px)/.85 var(--disp); text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.5px var(--c, var(--neon)); }
.win h1 b { color: var(--c, var(--neon)); -webkit-text-stroke: 0; }
.win .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.win .grid div { padding: 10px 12px; box-shadow: inset 0 0 0 1px var(--line); }
.win .grid b { display: block; font: 700 22px/1 var(--disp); margin-top: 6px; }
.win .row { display: flex; gap: 8px; flex-wrap: wrap; }

.toast { position: fixed; left: 50%; top: calc(var(--top) + 64px); transform: translateX(-50%); padding: 8px 14px; background: var(--neon); color: var(--on-neon); font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; z-index: 80; pointer-events: none; animation: stepIn .2s steps(4) both; }
.float { position: fixed; left: 0; top: 0; z-index: 4; pointer-events: none; transform: translate(-50%, -100%); padding: 3px 7px; background: rgba(11, 12, 13, .82); color: var(--ink); font: 600 11px/1.2 var(--mono); letter-spacing: .06em; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line-2); }
.float.holy { background: #fff6d8; color: #1a1408; box-shadow: 0 0 22px rgba(255, 230, 160, .7); font-family: var(--disp); font-size: 14px; }
.float.quip { background: var(--paper); color: var(--paper-ink); }

/* ---------------------------------------------------------------- Codex / Einstellungen */
.page { position: fixed; inset: 0; display: grid; grid-template-columns: 380px 1fr; gap: 0; padding-top: var(--top); }
.page .list { overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: rgba(11, 12, 13, .86); border-right: 1px solid var(--line); }
.page .list .cards { overflow: visible; padding: 0; }
.cx-view { position: relative; display: flex; align-items: flex-end; padding: 30px; pointer-events: none; }
.cx-view .insp { position: static; pointer-events: auto; width: 360px; max-height: none; }
.set { width: min(560px, 92vw); margin: calc(var(--top) + 30px) auto; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.set h2 { margin: 0; font: 800 34px/.9 var(--disp); text-transform: uppercase; }
.set .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sw-acc { width: 34px; height: 34px; border: 0; cursor: pointer; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3); }
.sw-acc.on { outline: 2px solid var(--ink); outline-offset: 2px; }

@media (max-width: 900px) {
  .menu { grid-template-columns: 1fr; padding: 22px 18px; overflow-y: auto; }
  .roster { width: 220px; }
  .insp { display: none; }
  .hint { display: none; }
  .page { grid-template-columns: 1fr; }
  .cx-view { display: none; }
}
