:root {
  --bg: #07050c;
  --panel: rgba(18, 11, 26, 0.84);
  --panel-2: rgba(30, 19, 42, 0.9);
  --line: #3b2747;
  --line-hi: #6b4a7a;
  --text: #f1e9f6;
  --muted: #a397b6;
  --dim: #6f6380;
  --gold: #f2c14e;
  --gold-2: #ffdf8a;
  --ember: #e0482f;
  --fire: #ff8a4c;
  --ice: #8fe6ff;
  --shadow: #c39bff;
  --danger: #ff5a5a;
  --ok: #7be495;
  --pixel: "Press Start 2P", ui-monospace, monospace;
  --body: "Pixelify Sans", ui-rounded, system-ui, sans-serif;
  --r: 4px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); overflow: hidden; }
body { font: 500 17px/1.4 var(--body); -webkit-font-smoothing: antialiased; }
canvas#screen { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; outline: none; }
#ui { position: fixed; inset: 0; overflow-y: auto; overflow-x: hidden; }
#ui.hidden { display: none; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--gold); color: #1a0f05; }

/* ---------- Grundbausteine ---------- */
.screen { min-height: 100%; display: flex; flex-direction: column; align-items: center; padding: 24px 16px 40px; animation: fadeIn .35s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.panel {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 0 0 2px #0b0710, 0 18px 50px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(6px);
  position: relative;
}
.panel::before {
  content: ""; position: absolute; inset: -2px; border-radius: var(--r); pointer-events: none;
  background: linear-gradient(135deg, rgba(242, 193, 78, .55), transparent 28%, transparent 72%, rgba(224, 72, 47, .45)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; border: 2px solid transparent;
}
.h-pixel { font-family: var(--pixel); letter-spacing: .02em; line-height: 1.5; }
.title { font-family: var(--pixel); font-size: 15px; color: var(--gold); margin: 0 0 4px; text-shadow: 0 2px 0 #4a2a00; }
.subtitle { color: var(--muted); margin: 0; }
.muted { color: var(--muted); }
.row { display: flex; gap: 10px; align-items: center; }
.spacer { flex: 1; }

.btn {
  --c: #2a1d38; --c2: #3a2a4c; --tx: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border: 0; border-radius: var(--r); cursor: pointer;
  background: linear-gradient(var(--c2), var(--c)); color: var(--tx);
  font-family: var(--pixel); font-size: 10px; letter-spacing: .04em; text-transform: uppercase;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 2px #0b0710;
  transition: transform .08s, filter .15s, box-shadow .15s;
  user-select: none; white-space: nowrap;
}
.btn:hover { filter: brightness(1.15); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .35), 0 0 0 2px #0b0710; }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; filter: none; transform: none; }
.btn.primary { --c: #c2410c; --c2: #f59e0b; --tx: #1c0b02; box-shadow: inset 0 -3px 0 rgba(90, 30, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 0 2px #0b0710, 0 0 22px rgba(245, 158, 11, .35); }
.btn.primary:hover { box-shadow: inset 0 -3px 0 rgba(90, 30, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 0 2px #0b0710, 0 0 32px rgba(245, 158, 11, .6); }
.btn.ghost { --c: transparent; --c2: transparent; box-shadow: inset 0 0 0 2px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--line-hi); filter: none; background: rgba(255, 255, 255, .04); }
.btn.danger { --c: #5a1520; --c2: #7a1e2c; }
.btn.big { padding: 15px 22px; font-size: 12px; }
.btn.block { width: 100%; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.input {
  width: 100%; padding: 12px 14px; border-radius: var(--r);
  background: rgba(5, 3, 9, .7); border: 2px solid var(--line); color: var(--text); font-size: 18px; font-weight: 500;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--dim); }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 193, 78, .18); }
.input.bad { border-color: var(--danger); }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 64px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 600; padding: 6px; }
.pw-toggle:hover { color: var(--text); }
.err { color: var(--danger); font-size: 14px; min-height: 1.2em; margin: -4px 0 10px; }

/* ---------- Logo ---------- */
.logo { width: min(560px, 92vw); aspect-ratio: 3 / 2; display: grid; place-items: center; filter: drop-shadow(0 10px 30px rgba(40, 90, 255, .25)); }
.logo canvas, .logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo-text { display: flex; flex-direction: column; align-items: center; font-family: var(--pixel); font-size: clamp(26px, 6vw, 46px); line-height: 1.25; }
.logo-text span:first-child { color: var(--gold); text-shadow: 0 4px 0 #6b3a00, 0 0 30px rgba(242, 193, 78, .4); }
.logo-text span:last-child { color: var(--ember); text-shadow: 0 4px 0 #4a0d06, 0 0 30px rgba(224, 72, 47, .4); }
.logo.small { width: 150px; filter: none; }

/* ---------- Auth ---------- */
.auth { justify-content: center; gap: 4px; }
.auth .logo { margin-bottom: -18px; }
.auth-card { width: min(420px, 100%); padding: 22px 24px 24px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 20px; padding: 4px; background: rgba(0, 0, 0, .35); border-radius: var(--r); }
.tab { border: 0; background: none; padding: 10px; border-radius: 3px; cursor: pointer; font-family: var(--pixel); font-size: 10px; color: var(--muted); }
.tab[aria-selected="true"] { background: linear-gradient(#3a2a4c, #2a1d38); color: var(--gold); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .35); }
.auth-foot { margin-top: 14px; text-align: center; font-size: 14px; color: var(--dim); }

/* ---------- Kopfzeile ---------- */
.topbar { width: min(1180px, 100%); display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.topbar .who { color: var(--muted); font-size: 15px; }
.topbar .who b { color: var(--text); }

/* ---------- Halle ---------- */
.hub { width: min(1180px, 100%); display: grid; grid-template-columns: 340px 1fr; gap: 18px; align-items: start; }
.roster { padding: 18px; }
.roster h2, .showcase h2 { margin: 0 0 14px; }
.roster-list { display: grid; gap: 10px; }
.char-card {
  display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 8px 12px 8px 8px;
  background: rgba(0, 0, 0, .3); border: 2px solid var(--line); border-radius: var(--r); cursor: pointer; text-align: left; width: 100%;
  transition: border-color .15s, background .15s, transform .1s;
}
.char-card:hover { border-color: var(--line-hi); background: rgba(255, 255, 255, .03); }
.char-card[aria-pressed="true"] { border-color: var(--gold); background: rgba(242, 193, 78, .07); box-shadow: 0 0 18px rgba(242, 193, 78, .12); }
.char-card canvas { width: 64px; height: 64px; image-rendering: pixelated; background: radial-gradient(circle at 50% 70%, rgba(255, 255, 255, .07), transparent 70%); border-radius: 3px; }
.char-card .nm { font-weight: 700; font-size: 18px; line-height: 1.1; }
.char-card .meta { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.tag { font-family: var(--pixel); font-size: 7px; padding: 4px 6px; border-radius: 3px; background: rgba(255, 255, 255, .06); letter-spacing: .04em; }
.tag.fire { color: var(--fire); background: rgba(255, 138, 76, .12); }
.tag.ice { color: var(--ice); background: rgba(143, 230, 255, .1); }
.tag.shadow { color: var(--shadow); background: rgba(195, 155, 255, .12); }
.add-card {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px; width: 100%;
  border: 2px dashed var(--line-hi); border-radius: var(--r); background: transparent; color: var(--muted); cursor: pointer;
  font-family: var(--pixel); font-size: 9px; transition: color .15s, border-color .15s, background .15s;
}
.add-card:hover { color: var(--gold); border-color: var(--gold); background: rgba(242, 193, 78, .05); }
.add-card .plus { font-size: 16px; }

.showcase { padding: 0; overflow: hidden; display: grid; grid-template-columns: minmax(260px, 1.1fr) 1fr; min-height: 440px; }
.stage-box { position: relative; min-height: 320px; display: grid; place-items: center; overflow: hidden; }
.stage-box::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, rgba(0, 0, 0, .45)); pointer-events: none; }
.stage-box.fire { background: radial-gradient(ellipse at 50% 75%, rgba(255, 120, 40, .32), transparent 60%), radial-gradient(ellipse at 50% 100%, #3a120a, #120610 70%); }
.stage-box.ice { background: radial-gradient(ellipse at 50% 75%, rgba(110, 210, 255, .3), transparent 60%), radial-gradient(ellipse at 50% 100%, #0c2238, #070a18 70%); }
.stage-box.shadow { background: radial-gradient(ellipse at 50% 75%, rgba(150, 90, 255, .3), transparent 60%), radial-gradient(ellipse at 50% 100%, #1d0c33, #08050f 70%); }
.stage-box canvas { width: 100%; height: 100%; image-rendering: pixelated; position: absolute; inset: 0; }
.info { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 12px; }
.info .big-name { font-family: var(--pixel); font-size: 18px; line-height: 1.4; word-break: break-word; }
.stats { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; font-size: 15px; color: var(--muted); }
.pips { display: flex; gap: 4px; }
.pips i { width: 22px; height: 8px; border-radius: 2px; background: #2c2038; }
.pips i.on { background: var(--c, var(--gold)); box-shadow: 0 0 8px var(--c, var(--gold)); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.record { display: flex; gap: 14px; font-size: 15px; }
.record b { font-family: var(--pixel); font-size: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

.empty { padding: 40px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; grid-column: 1 / -1; }

/* ---------- Editor ---------- */
.creator { width: min(1180px, 100%); display: grid; grid-template-columns: 1fr 470px; gap: 18px; align-items: start; }
.creator .preview { padding: 0; overflow: hidden; position: sticky; top: 16px; }
.creator .stage-box { min-height: 460px; }
.pose-bar { display: flex; gap: 6px; padding: 12px; border-top: 2px solid var(--line); background: rgba(0, 0, 0, .3); flex-wrap: wrap; }
.chip { border: 2px solid var(--line); background: rgba(0, 0, 0, .3); padding: 7px 12px; border-radius: 99px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); }
.chip:hover { border-color: var(--line-hi); color: var(--text); }
.chip[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
.form { padding: 20px 22px; }
.section { margin-bottom: 20px; }
.section > h3 { font-family: var(--pixel); font-size: 10px; color: var(--gold); margin: 0 0 12px; letter-spacing: .05em; }
.classes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cls {
  border: 2px solid var(--line); background: rgba(0, 0, 0, .3); border-radius: var(--r); padding: 10px 8px; cursor: pointer; text-align: center;
  display: flex; flex-direction: column; gap: 6px; align-items: center; transition: border-color .15s, background .15s;
}
.cls:hover { border-color: var(--line-hi); }
.cls[aria-checked="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); box-shadow: 0 0 16px color-mix(in srgb, var(--c) 25%, transparent); }
.cls .cn { font-family: var(--pixel); font-size: 7px; color: var(--c); line-height: 1.5; }
.cls .mini { display: grid; grid-template-columns: auto auto; gap: 2px 6px; font-size: 12px; color: var(--muted); align-items: center; }
.cls .mini .pips i { width: 8px; height: 5px; }
.cls-desc { margin-top: 10px; padding: 10px 12px; background: rgba(0, 0, 0, .3); border-radius: var(--r); font-size: 14px; color: var(--muted); }
.cls-desc b { color: var(--text); }
.swatch-row { margin-bottom: 14px; }
.swatch-row .lbl { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 7px; }
.swatches { display: flex; flex-wrap: wrap; gap: 7px; }
.sw {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .5); cursor: pointer; background: var(--c);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25), inset 0 2px 0 rgba(255, 255, 255, .25); transition: transform .1s;
}
.sw:hover { transform: scale(1.1); }
.sw[aria-checked="true"] { outline: 2px solid var(--gold); outline-offset: 2px; }
.sw.custom { position: relative; background: conic-gradient(#f55, #fd5, #5f8, #5cf, #a5f, #f5a, #f55); overflow: hidden; }
.sw.custom input { position: absolute; inset: -6px; opacity: 0; cursor: pointer; width: 150%; height: 150%; }
.form-foot { display: flex; gap: 10px; justify-content: flex-end; padding-top: 6px; border-top: 2px solid var(--line); margin-top: 6px; padding-top: 16px; }

/* ---------- Gegnerwahl ---------- */
.setup { width: min(980px, 100%); padding: 22px; }
.opp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 8px 0 18px; }
.opp {
  border: 2px solid var(--line); background: rgba(0, 0, 0, .3); border-radius: var(--r); padding: 10px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px; transition: border-color .15s, background .15s;
}
.opp:hover { border-color: var(--line-hi); }
.opp[aria-checked="true"] { border-color: var(--gold); background: rgba(242, 193, 78, .07); }
.opp canvas { width: 96px; height: 96px; image-rendering: pixelated; }
.opp .nm { font-weight: 700; }
.opp .rnd { width: 96px; height: 96px; display: grid; place-items: center; font-family: var(--pixel); font-size: 26px; color: var(--gold); }
.vs-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin-bottom: 14px; }
.vs-head .side { display: flex; align-items: center; gap: 12px; }
.vs-head .side.right { justify-content: flex-end; text-align: right; }
.vs-head canvas { width: 80px; height: 80px; image-rendering: pixelated; }
.vs { font-family: var(--pixel); font-size: 22px; color: var(--ember); text-shadow: 0 3px 0 #3a0a04, 0 0 20px rgba(224, 72, 47, .5); }
.keys { font-size: 14px; color: var(--muted); }
kbd { font-family: var(--pixel); font-size: 8px; padding: 3px 5px; border-radius: 3px; background: #241a30; border: 1px solid #3b2747; box-shadow: 0 2px 0 #0b0710; color: var(--text); }

/* ---------- Arenawahl ---------- */
.stage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; margin: 8px 0 18px; }
.stage-card {
  position: relative; border: 2px solid var(--line); background: #0b0710; border-radius: var(--r); padding: 0; cursor: pointer; overflow: hidden;
  display: flex; flex-direction: column; text-align: left; transition: border-color .15s, transform .12s, box-shadow .15s;
}
.stage-card canvas, .stage-card .stage-rnd { width: 100%; aspect-ratio: 16 / 9; image-rendering: pixelated; display: block; }
.stage-card .stage-rnd { display: grid; place-items: center; font-family: var(--pixel); font-size: 28px; color: var(--gold); background: radial-gradient(circle, #2a1838, #0b0710); }
.stage-card .st-name { font-family: var(--pixel); font-size: 8px; color: var(--c); padding: 8px 10px 2px; line-height: 1.5; }
.stage-card .st-desc { font-size: 13px; color: var(--muted); padding: 0 10px 9px; line-height: 1.25; }
.stage-card:hover { border-color: var(--line-hi); transform: translateY(-2px); }
.stage-card[aria-checked="true"] { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 0 22px color-mix(in srgb, var(--c) 35%, transparent); }

/* ---------- Ergebnis / Modal ---------- */
.overlay { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(4, 2, 8, .72); backdrop-filter: blur(3px); animation: fadeIn .25s both; z-index: 5; }
.modal { width: min(560px, 100%); padding: 24px; max-height: calc(100vh - 32px); overflow: auto; }
.result { text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.result .verdict { font-family: var(--pixel); font-size: 26px; }
.result .verdict.win { color: var(--gold); text-shadow: 0 4px 0 #6b3a00, 0 0 30px rgba(242, 193, 78, .45); }
.result .verdict.lose { color: var(--ember); text-shadow: 0 4px 0 #3a0a04; }
.ctable { width: 100%; border-collapse: collapse; font-size: 15px; }
.ctable th, .ctable td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.ctable th { color: var(--gold); font-family: var(--pixel); font-size: 8px; font-weight: 400; }
.loading { display: flex; flex-direction: column; align-items: center; gap: 16px; font-family: var(--pixel); font-size: 10px; color: var(--muted); }
.spinner { width: 34px; height: 34px; border: 4px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

#toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 10; pointer-events: none; }
.toast { padding: 12px 18px; border-radius: var(--r); background: var(--panel-2); border: 2px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); animation: fadeIn .2s both; font-weight: 600; }
.toast.bad { border-color: var(--danger); }
.toast.good { border-color: var(--ok); }

@media (max-width: 960px) {
  .hub, .creator { grid-template-columns: 1fr; }
  .creator .preview { position: static; }
  .creator .stage-box { min-height: 320px; }
  .showcase { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .classes { grid-template-columns: 1fr; }
  .topbar { flex-wrap: wrap; }
  .vs-head { grid-template-columns: 1fr; text-align: center; }
  .vs-head .side, .vs-head .side.right { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Portal: Navigation ---------- */
#ui { display: flex; flex-direction: column; }
#view { flex: 1; }
.nav { position: sticky; top: 0; z-index: 4; background: linear-gradient(rgba(10, 6, 16, .94), rgba(10, 6, 16, .82)); border-bottom: 2px solid var(--line); backdrop-filter: blur(8px); box-shadow: 0 8px 30px rgba(0, 0, 0, .45); }
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--ember) 70%, transparent); opacity: .55; }
.nav-inner { width: min(1240px, 100%); margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 22px; }
.nav-logo { display: block; height: 52px; flex: none; }
.nav-logo img { height: 100%; width: auto; display: block; filter: drop-shadow(0 0 10px rgba(80, 120, 255, .35)); transition: transform .2s; }
.nav-logo:hover img { transform: scale(1.04) rotate(-1deg); }
.nav-logo .logo-text { font-size: 11px; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a { position: relative; padding: 10px 14px; color: var(--muted); text-decoration: none; font-family: var(--pixel); font-size: 10px; letter-spacing: .04em; border-radius: var(--r); transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav-links a[aria-current="page"] { color: var(--gold); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.nav-links a.play { color: #1c0b02; background: linear-gradient(#f59e0b, #c2410c); box-shadow: inset 0 -2px 0 rgba(90, 30, 0, .45), 0 0 16px rgba(245, 158, 11, .3); margin-left: 6px; }
.nav-links a.play:hover { filter: brightness(1.12); }
.nav-links a.play[aria-current="page"]::after { display: none; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-right .btn { padding: 9px 13px; font-size: 9px; text-decoration: none; }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; flex-direction: column; gap: 4px; }
.nav-burger span { width: 22px; height: 3px; background: var(--text); border-radius: 2px; display: block; }

.pop-wrap { position: relative; }
.online-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 99px; border: 2px solid rgba(123, 228, 149, .35); background: rgba(123, 228, 149, .08); color: var(--text); cursor: pointer; font-size: 15px; font-weight: 600; }
.online-pill b { font-family: var(--pixel); font-size: 10px; color: var(--ok); }
.online-pill:hover { border-color: rgba(123, 228, 149, .7); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(123, 228, 149, .6); animation: livePulse 1.8s infinite; display: inline-block; flex: none; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(123, 228, 149, .6); } 70% { box-shadow: 0 0 0 9px rgba(123, 228, 149, 0); } 100% { box-shadow: 0 0 0 0 rgba(123, 228, 149, 0); } }
.pop { position: absolute; right: 0; top: calc(100% + 10px); min-width: 250px; max-width: 320px; background: var(--panel-2); border: 2px solid var(--line); border-radius: var(--r); box-shadow: 0 18px 40px rgba(0, 0, 0, .6); padding: 12px; z-index: 6; animation: fadeIn .15s both; }
.pop-head { display: flex; align-items: center; gap: 8px; font-family: var(--pixel); font-size: 9px; color: var(--ok); margin-bottom: 10px; }
.online-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 300px; overflow: auto; }
.online-list li { display: flex; flex-direction: column; padding: 7px 9px; background: rgba(0, 0, 0, .3); border-radius: 3px; border-left: 3px solid var(--ok); }
.online-list li span { font-size: 13px; color: var(--muted); }
.small { font-size: 13px; }
.user-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--r); border: 2px solid var(--line); background: rgba(0, 0, 0, .3); color: var(--text); cursor: pointer; font-weight: 700; font-size: 16px; }
.user-btn:hover { border-color: var(--line-hi); }
.chev { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); display: inline-block; }
.user-pop { min-width: 190px; display: flex; flex-direction: column; gap: 2px; padding: 6px; }
.user-pop a, .user-pop button { text-align: left; padding: 10px 12px; border-radius: 3px; color: var(--text); text-decoration: none; background: none; border: 0; cursor: pointer; font-weight: 600; }
.user-pop a:hover, .user-pop button:hover { background: rgba(255, 255, 255, .06); color: var(--gold); }

/* ---------- Portal: Seiten ---------- */
.page { width: min(1180px, 100%); margin: 0 auto; padding: 20px 16px 48px; animation: fadeIn .35s ease both; }
.page.narrow { width: min(900px, 100%); }
.page-title { font-family: var(--pixel); font-size: 20px; color: var(--gold); text-shadow: 0 3px 0 #4a2a00, 0 0 24px rgba(242, 193, 78, .3); margin: 10px 0 20px; }
.section-title { font-family: var(--pixel); font-size: 13px; color: var(--gold); margin: 0 0 16px; text-shadow: 0 2px 0 #4a2a00; }
.pad { padding: 20px; }
.link { color: var(--gold); text-decoration: none; font-weight: 600; background: none; border: 0; cursor: pointer; padding: 0; font-size: 15px; }
.link:hover { text-decoration: underline; }
.block { margin-top: 38px; }

.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 0 10px; }
.hero-logo { width: min(640px, 94vw); }
.auth-logo { width: min(380px, 80vw); }
.tagline { font-family: var(--pixel); font-size: clamp(10px, 1.6vw, 13px); color: var(--text); margin: -6px 0 22px; text-shadow: 0 2px 0 #000, 0 0 18px rgba(130, 160, 255, .45); letter-spacing: .04em; }
.hero-cta { justify-content: center; flex-wrap: wrap; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 26px; }
.stat-strip > div { padding: 18px 10px; text-align: center; display: flex; flex-direction: column; gap: 8px; border-right: 2px solid var(--line); }
.stat-strip > div:last-child { border-right: 0; }
.stat-strip b { font-family: var(--pixel); font-size: clamp(16px, 2.4vw, 24px); color: var(--gold); text-shadow: 0 3px 0 #4a2a00; }
.stat-strip b.on { color: var(--ok); text-shadow: 0 3px 0 #0d3a18, 0 0 18px rgba(123, 228, 149, .45); }
.stat-strip span { color: var(--muted); font-size: 15px; }
.class-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.class-card { overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.class-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 2px #0b0710, 0 24px 50px rgba(0, 0, 0, .6), 0 0 30px color-mix(in srgb, var(--c) 25%, transparent); }
.class-card .stage-box { min-height: 220px; }
.cc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.arena-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.arena { margin: 0; border: 2px solid var(--line); border-radius: var(--r); overflow: hidden; background: #0b0710; transition: border-color .2s, transform .2s; }
.arena:hover { border-color: var(--c); transform: translateY(-3px); }
.arena canvas { width: 100%; aspect-ratio: 16 / 9; display: block; image-rendering: pixelated; }
.arena figcaption { padding: 9px 11px 11px; display: flex; flex-direction: column; gap: 4px; }
.arena figcaption b { font-family: var(--pixel); font-size: 8px; color: var(--c); line-height: 1.5; }
.arena figcaption span { font-size: 13px; color: var(--muted); line-height: 1.25; }
.two-col { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; margin-top: 38px; align-items: start; }
.two-col .row { margin-bottom: 14px; }
.news-prev { display: grid; gap: 10px; }
.news-item { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: var(--r); background: rgba(0, 0, 0, .3); border-left: 3px solid var(--gold); text-decoration: none; color: var(--text); transition: background .15s; }
.news-item:hover { background: rgba(255, 255, 255, .05); }
.news-item .muted { font-size: 14px; }
.date { font-family: var(--pixel); font-size: 8px; color: var(--gold); }
.news-post { margin-bottom: 16px; }
.news-post h2 { font-family: var(--pixel); font-size: 14px; line-height: 1.5; margin: 10px 0 12px; color: var(--text); }
.news-body p { margin: 0 0 10px; color: #ddd3e6; }
.news-form { margin-bottom: 20px; }
textarea.input { resize: vertical; min-height: 120px; font-size: 16px; }
.rank-tabs { max-width: 520px; grid-template-columns: repeat(4, 1fr); }
.rank { width: 100%; border-collapse: collapse; font-size: 16px; }
.rank th { text-align: left; font-family: var(--pixel); font-size: 8px; color: var(--muted); font-weight: 400; padding: 8px; border-bottom: 2px solid var(--line); }
.rank td { padding: 6px 8px; border-bottom: 1px solid rgba(59, 39, 71, .6); vertical-align: middle; }
.rank canvas { width: 44px; height: 44px; image-rendering: pixelated; display: block; }
.rank.compact canvas { width: 36px; height: 36px; }
.rank .pos { font-family: var(--pixel); font-size: 11px; color: var(--muted); width: 34px; }
.rank tr.top1 .pos { color: #ffd34d; text-shadow: 0 0 10px rgba(255, 211, 77, .6); }
.rank tr.top2 .pos { color: #d7dde8; }
.rank tr.top3 .pos { color: #e09a5a; }
.rank tr.me { background: rgba(242, 193, 78, .07); }
.rank td.w { color: var(--ok); font-weight: 700; }
.rank td.l { color: var(--danger); font-weight: 700; }
.rank tbody tr { transition: background .15s; }
.rank tbody tr:hover { background: rgba(255, 255, 255, .04); }

.foot { border-top: 2px solid var(--line); background: rgba(8, 5, 12, .85); }
.foot-inner { width: min(1180px, 100%); margin: 0 auto; padding: 16px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; color: var(--dim); font-size: 14px; }
.foot-inner span { font-family: var(--pixel); font-size: 9px; color: var(--muted); margin-right: auto; }
.foot-inner a, .foot-inner .link { color: var(--muted); text-decoration: none; font-size: 14px; }
.foot-inner a:hover, .foot-inner .link:hover { color: var(--gold); }

@media (max-width: 1100px) {
  .arena-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .nav-burger { display: flex; order: 3; }
  .nav-inner { flex-wrap: wrap; gap: 10px; }
  .nav-right { margin-left: auto; }
  .nav-links { display: none; order: 4; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 6px; }
  .nav-links.open { display: flex; }
  .nav-links a.play { margin-left: 0; text-align: center; }
  .class-cards, .two-col { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip > div:nth-child(2) { border-right: 0; }
  .stat-strip > div:nth-child(-n+2) { border-bottom: 2px solid var(--line); }
}
@media (max-width: 560px) {
  .nav-logo { height: 40px; }
  .online-pill span { display: none; }
  .nav-right .btn.ghost { display: none; }
  .arena-row { grid-template-columns: repeat(2, 1fr); }
  .rank th:nth-child(5), .rank td:nth-child(5) { display: none; }
}
.pop[hidden] { display: none !important; }
a.btn { text-decoration: none; }

/* ---------- Navigation: Schriftzug-Logo ---------- */
.nav-logo { height: 46px; }
.nav-logo img { filter: drop-shadow(0 2px 0 #0b0710) drop-shadow(0 0 12px rgba(242, 193, 78, .25)); }

/* ---------- Drachengold ---------- */
.gold { display: inline-flex; align-items: center; gap: 6px; font-family: var(--pixel); font-size: 10px; color: var(--gold-2); white-space: nowrap; }
.coin { width: 14px; height: 14px; border-radius: 50%; display: inline-block; flex: none;
  background: radial-gradient(circle at 35% 30%, #fff6c8 0 18%, #f5c542 19% 55%, #b57d12 56% 100%);
  box-shadow: inset 0 -2px 0 rgba(90, 50, 0, .5), 0 0 8px rgba(245, 197, 66, .45); }
.gold-pill { display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 99px; border: 2px solid rgba(242, 193, 78, .35); background: rgba(242, 193, 78, .08); text-decoration: none; transition: border-color .15s; }
.gold-pill:hover { border-color: rgba(242, 193, 78, .8); }
.earned { font-family: var(--pixel); font-size: 11px; color: var(--gold-2); padding: 8px 14px; border: 2px solid rgba(242, 193, 78, .4); border-radius: 99px; background: rgba(242, 193, 78, .08); animation: fadeIn .4s .2s both; }
.title-badge { font-family: var(--pixel); font-size: 8px; color: var(--gold); letter-spacing: .06em; margin: 4px 0 8px; text-shadow: 0 0 10px rgba(242, 193, 78, .35); }
.rank-title { font-family: var(--pixel); font-size: 7px; color: var(--gold); margin-top: 3px; }
.shop-tag { color: var(--gold); background: rgba(242, 193, 78, .12); margin-left: 6px; }

/* ---------- Shop ---------- */
.shop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.wallet { padding: 14px 20px; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.wallet .gold { font-size: 16px; }
.wallet .coin { width: 20px; height: 20px; }
.shop-tabs { max-width: 720px; grid-template-columns: repeat(5, 1fr); margin-bottom: 18px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.shop-item { overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.shop-item:hover { transform: translateY(-4px); box-shadow: 0 0 0 2px #0b0710, 0 24px 50px rgba(0, 0, 0, .6), 0 0 26px color-mix(in srgb, var(--c) 25%, transparent); }
.shop-item .stage-box { min-height: 180px; }
.shop-item.owned .stage-box::before { content: ""; position: absolute; inset: 0; background: rgba(123, 228, 149, .06); z-index: 1; pointer-events: none; }
.owned-badge { position: absolute; top: 10px; right: 10px; z-index: 2; font-family: var(--pixel); font-size: 7px; padding: 5px 7px; border-radius: 3px; color: #0b2a14; background: var(--ok); box-shadow: 0 2px 0 #0b2a14; }
.si-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.si-body h3 { margin: 2px 0 0; font-family: var(--pixel); font-size: 11px; color: var(--c); line-height: 1.5; }
.si-body p { margin: 0; font-size: 14px; line-height: 1.35; flex: 1; }
.si-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.big-price .gold { font-size: 12px; }
.big-price .coin { width: 16px; height: 16px; }
.title-box { background: radial-gradient(ellipse at 50% 60%, rgba(242, 193, 78, .18), transparent 60%), radial-gradient(ellipse at 50% 100%, #2a1838, #0b0710 70%); }
.title-preview { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 0 12px; }
.title-preview b { font-family: var(--pixel); font-size: 13px; color: var(--gold); text-shadow: 0 3px 0 #4a2a00, 0 0 22px rgba(242, 193, 78, .5); text-align: center; line-height: 1.5; }
.title-preview .orn { width: 26px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold)); position: relative; }
.title-preview .orn:last-child { transform: scaleX(-1); }
.title-preview .orn::after { content: ""; position: absolute; right: -4px; top: -3px; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }

/* ---------- Editor: Ausruestung ---------- */
.gear-row { display: grid; grid-template-columns: 70px 1fr; gap: 10px; align-items: start; margin-bottom: 10px; }
.gear-row .lbl { font-size: 14px; color: var(--muted); font-weight: 600; padding-top: 8px; }
.gear-row .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gear-chip { font-size: 13px; padding: 6px 11px; }
.gear-chip.locked { opacity: .55; border-style: dashed; }
.gear-chip.locked:hover { opacity: .9; }
.gear-chip .price .gold { font-size: 7px; }
.gear-chip .price .coin { width: 10px; height: 10px; }

/* ---------- Feinschliff ---------- */
.section-title::before, .page-title::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--ember); transform: rotate(45deg) translateY(-2px); margin-right: 12px; box-shadow: 0 0 10px rgba(224, 72, 47, .6); }
.panel { transition: box-shadow .2s; }
@media (max-width: 900px) { .shop-tabs { grid-template-columns: repeat(3, 1fr); } .gold-pill .gold { font-size: 8px; } }
@media (max-width: 560px) { .nav-logo { height: 34px; } .gold-pill { padding: 6px 9px; } }

/* ---------- Level, XP, Talente ---------- */
.lv { font-family: var(--pixel); font-size: 7px; color: var(--ice); background: rgba(143, 230, 255, .1); padding: 3px 5px; border-radius: 3px; vertical-align: middle; }
.lv-badge { position: absolute; top: 12px; left: 12px; z-index: 2; font-family: var(--pixel); font-size: 9px; color: #0b0710; background: linear-gradient(#bff3ff, #5fc6ea); padding: 6px 8px; border-radius: 3px; box-shadow: 0 2px 0 #1b4b5e, 0 0 14px rgba(143, 230, 255, .4); }
.xp-top { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 6px; }
.xp-bar { height: 10px; background: #1a1428; border: 2px solid #0b0710; border-radius: 99px; overflow: hidden; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6); }
.xp-bar i { display: block; height: 100%; background: linear-gradient(90deg, #4aa3ff, #8fe6ff); box-shadow: 0 0 10px rgba(143, 230, 255, .6); border-radius: 99px; transition: width .6s ease; }
.pill-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: var(--ember); color: #fff; font-size: 8px; }
.talent { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.talent-ctl { display: flex; align-items: center; gap: 8px; }
.talent-ctl .btn { padding: 6px 11px; font-size: 12px; }
.talent-ctl .pips i { width: 14px; height: 10px; }
.xp-earned { color: var(--ice) !important; border-color: rgba(143, 230, 255, .4) !important; background: rgba(143, 230, 255, .08) !important; }
.levelup { font-family: var(--pixel); font-size: 16px; color: var(--ice); text-shadow: 0 3px 0 #10384a, 0 0 20px rgba(143, 230, 255, .6); animation: pop .5s .3s both; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.levelup span { font-size: 8px; color: var(--muted); text-shadow: none; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }
.ach-unlocked { display: grid; gap: 6px; width: 100%; }
.ach-unlocked div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: var(--r); background: rgba(242, 193, 78, .08); border: 2px solid rgba(242, 193, 78, .35); animation: fadeIn .4s .5s both; }
.ach-unlocked b { color: var(--gold); }
.ach-unlocked span { color: var(--muted); font-size: 14px; }

/* ---------- Navigation: Zaehler ---------- */
.claim-badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; border-radius: 99px; background: var(--ember); color: #fff; font-size: 8px; display: grid; place-items: center; padding: 0 4px; box-shadow: 0 0 10px rgba(224, 72, 47, .7); animation: livePulse 1.8s infinite; }
.claim-badge[hidden] { display: none; }

/* ---------- Shop: Kategorien + Vorschauen ---------- */
.cat-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.owned-badge.excl { color: #2a1a00; background: var(--gold); box-shadow: 0 2px 0 #4a2a00; }
.ko-preview { position: relative; z-index: 1; display: grid; place-items: center; width: 100%; height: 180px; overflow: hidden; }
.ko-preview b { font-family: var(--pixel); font-size: 34px; color: #ff3b2f; text-shadow: 0 4px 0 #3a0a04, 0 0 24px rgba(255, 59, 47, .6); z-index: 2; animation: koShake 1.6s infinite; }
@keyframes koShake { 0%, 60%, 100% { transform: none; } 62% { transform: translate(-3px, 2px); } 66% { transform: translate(3px, -2px); } 70% { transform: translate(-2px, -1px); } }
.ko-preview i { position: absolute; left: 50%; top: 50%; border-radius: 50%; }
.ko_drachenschrei i { width: 40px; height: 40px; margin: -20px; border: 3px solid #ffb04a; animation: ring 1.6s infinite; }
.ko_drachenschrei i:nth-child(3) { animation-delay: .25s; } .ko_drachenschrei i:nth-child(4) { animation-delay: .5s; }
@keyframes ring { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(5); opacity: 0; } }
.ko_funkenregen i { width: 4px; height: 4px; background: #ffd34d; box-shadow: 30px -60px #fff1a8, -50px -40px #f2c14e, 70px -20px #ffd34d, -80px -70px #fff, 10px -90px #f2c14e, -20px -30px #ffd34d, 90px -80px #fff1a8; animation: rain 1.4s linear infinite; }
.ko_funkenregen i:nth-child(3) { animation-delay: .45s; left: 30%; } .ko_funkenregen i:nth-child(4) { animation-delay: .9s; left: 70%; }
@keyframes rain { 0% { transform: translateY(-40px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(150px); opacity: 0; } }
.ko_eisexplosion i { width: 6px; height: 18px; border-radius: 2px; background: linear-gradient(#fff, #6fd0f5); animation: shard 1.5s ease-out infinite; }
.ko_eisexplosion i:nth-child(2) { --r: -40deg; } .ko_eisexplosion i:nth-child(3) { --r: 50deg; } .ko_eisexplosion i:nth-child(4) { --r: 180deg; }
@keyframes shard { 0% { transform: rotate(var(--r, 0deg)) translateY(0); opacity: 1; } 100% { transform: rotate(var(--r, 0deg)) translateY(-90px); opacity: 0; } }
.ko_schattenriss i { width: 220%; height: 6px; left: -60%; border-radius: 0; background: linear-gradient(90deg, transparent, #0a0510 20%, #7633b6 50%, #0a0510 80%, transparent); transform: rotate(-18deg); animation: rift 1.6s infinite; }
.ko_schattenriss i:nth-child(3), .ko_schattenriss i:nth-child(4) { display: none; }
@keyframes rift { 0% { transform: rotate(-18deg) scaleX(0); } 30%, 80% { transform: rotate(-18deg) scaleX(1); } 100% { transform: rotate(-18deg) scaleX(1); opacity: 0; } }
.frame-preview { position: relative; z-index: 1; display: grid; place-items: center; height: 180px; }
.frame-preview .fp-canvas { width: 96px; height: 96px; image-rendering: pixelated; display: block; }
.bubble { position: absolute; top: 18px; left: 50%; transform: translateX(-10%); z-index: 2; background: #fff; color: #120a1a; font-family: var(--pixel); font-size: 8px; padding: 8px 10px; border-radius: 4px; box-shadow: 0 3px 0 #0b0710; white-space: nowrap; }
.bubble::after { content: ""; position: absolute; left: 14px; bottom: -6px; border: 6px solid transparent; border-top-color: #fff; border-bottom: 0; }

/* ---------- Profilrahmen ---------- */
.pframe { display: inline-block; padding: 3px; border-radius: 6px; line-height: 0; position: relative; }
.pframe canvas { border-radius: 3px; }
.fr-frame_flamme { background: linear-gradient(135deg, #ffd34d, #e0482f 50%, #7a1408); box-shadow: 0 0 12px rgba(240, 98, 26, .55); }
.fr-frame_eis { background: linear-gradient(135deg, #ffffff, #8fe6ff 45%, #1d5cc0); box-shadow: 0 0 12px rgba(143, 230, 255, .5); }
.fr-frame_schatten { background: linear-gradient(135deg, #f2e2ff, #7633b6 45%, #12081c); box-shadow: 0 0 12px rgba(150, 90, 255, .55); }
.fr-frame_gold { background: linear-gradient(135deg, #fff6c8, #f2c14e 40%, #8a5a0e 75%, #f2c14e); box-shadow: 0 0 14px rgba(242, 193, 78, .55); }
.fr-frame_drache { background: repeating-linear-gradient(45deg, #2a6b3a 0 4px, #3fa35a 4px 8px), #2a6b3a; box-shadow: 0 0 0 2px #f2c14e, 0 0 16px rgba(80, 200, 120, .55); }
.fr-frame_veteran { background: linear-gradient(135deg, #e8e8f0, #9aa3b8 45%, #4a5068); box-shadow: 0 0 0 2px #c99a3a, 0 0 12px rgba(200, 210, 230, .4); }
.fr-frame_saison1 { background: conic-gradient(from 0deg, #f2c14e, #e0482f, #7633b6, #44b6f0, #f2c14e); box-shadow: 0 0 16px rgba(242, 193, 78, .6); animation: spinGlow 6s linear infinite; }
@keyframes spinGlow { to { filter: hue-rotate(360deg); } }

/* ---------- Banner (Hintergruende) ---------- */
.bn-banner_lava { background: radial-gradient(ellipse at 50% 100%, rgba(255, 120, 40, .55), transparent 60%), repeating-linear-gradient(170deg, #2a0a06 0 14px, #3a120a 14px 16px), #1a0604 !important; }
.bn-banner_kristall { background: radial-gradient(ellipse at 50% 90%, rgba(120, 220, 255, .45), transparent 60%), repeating-linear-gradient(60deg, rgba(160, 230, 255, .08) 0 2px, transparent 2px 22px), #071425 !important; }
.bn-banner_kerker { background: radial-gradient(ellipse at 50% 85%, rgba(150, 90, 255, .35), transparent 60%), repeating-linear-gradient(0deg, #1a1622 0 15px, #0e0b14 15px 17px), #0e0b14 !important; }
.bn-banner_tempel { background: linear-gradient(110deg, transparent 30%, rgba(120, 255, 170, .18) 45%, transparent 60%), radial-gradient(ellipse at 50% 100%, #0f3a2a, #061410 70%) !important; }
.bn-banner_mond { background: radial-gradient(circle at 75% 25%, #f6d9a8 0 9%, rgba(246, 217, 168, .25) 10%, transparent 18%), linear-gradient(#120c24, #3b1d3f 60%, #a1453a) !important; }
.bn-banner_saison1 { background: radial-gradient(ellipse at 50% 100%, rgba(242, 193, 78, .45), transparent 55%), conic-gradient(from 200deg at 50% 120%, #2a1838, #4a1e3a, #1d2a5a, #2a1838) !important; }
tr[class*="bn-"] td { background: transparent; }
tr[class*="bn-"] { background-size: cover !important; }

/* ---------- Belohnungen ---------- */
.rw-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
.streak { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.streak div { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: var(--r); background: rgba(0, 0, 0, .35); border: 2px solid var(--line); }
.streak span { font-size: 12px; color: var(--muted); }
.streak b { font-family: var(--pixel); font-size: 9px; color: var(--gold-2); }
.streak .done { border-color: rgba(123, 228, 149, .5); background: rgba(123, 228, 149, .08); }
.streak .done b { color: var(--ok); }
.streak .now { border-color: var(--gold); box-shadow: 0 0 16px rgba(242, 193, 78, .35); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat-grid div { display: flex; flex-direction: column; gap: 4px; padding: 10px; background: rgba(0, 0, 0, .3); border-radius: var(--r); }
.stat-grid b { font-family: var(--pixel); font-size: 12px; color: var(--gold); }
.stat-grid span { font-size: 13px; color: var(--muted); }
.quests { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.quest { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r); background: rgba(0, 0, 0, .3); border: 2px solid var(--line); }
.quest.ready { border-color: var(--gold); box-shadow: 0 0 18px rgba(242, 193, 78, .25); }
.quest.claimed { opacity: .55; }
.q-text { font-weight: 700; font-size: 16px; }
.q-foot { display: flex; justify-content: space-between; align-items: center; }
.season-bar { margin-bottom: 14px; }
.season-track { display: grid; grid-auto-flow: column; grid-auto-columns: 128px; gap: 10px; overflow-x: auto; padding-bottom: 10px; }
.tier { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 8px; border-radius: var(--r); background: rgba(0, 0, 0, .35); border: 2px solid var(--line); text-align: center; min-height: 140px; }
.tier .t-n { font-family: var(--pixel); font-size: 10px; color: var(--muted); }
.tier .t-r { flex: 1; display: grid; place-items: center; font-size: 14px; }
.tier.item .t-r b { color: var(--shadow); }
.tier.ready { border-color: var(--gold); box-shadow: 0 0 16px rgba(242, 193, 78, .3); }
.tier.ready .t-n { color: var(--gold); }
.tier.claimed { border-color: rgba(123, 228, 149, .4); }
.tier .t-ok { font-family: var(--pixel); font-size: 7px; color: var(--ok); }
.tier .btn { padding: 8px 10px; font-size: 8px; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ach { display: flex; gap: 12px; padding: 14px; align-items: flex-start; opacity: .55; filter: grayscale(.7); }
.ach.done { opacity: 1; filter: none; }
.ach p { margin: 4px 0 6px; }
.ach-icon { flex: none; width: 34px; height: 34px; transform: rotate(45deg) scale(.8); border-radius: 4px; background: linear-gradient(135deg, #5a4a6a, #2a1d38); border: 2px solid #0b0710; margin: 4px; }
.ach.done .ach-icon { background: linear-gradient(135deg, #fff6c8, #f2c14e 50%, #8a5a0e); box-shadow: 0 0 14px rgba(242, 193, 78, .6); }
.ach-rw { font-family: var(--pixel); font-size: 7px; color: var(--gold); }
@media (max-width: 900px) { .rw-top, .quests { grid-template-columns: 1fr; } .stat-grid { grid-template-columns: repeat(2, 1fr); } .streak { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Kampf-Chat ---------- */
#chatbar { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(560px, calc(100vw - 24px)); z-index: 7; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
#chatbar[hidden] { display: none; }
#chatbar > * { pointer-events: auto; }
.chat-log { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; pointer-events: none !important; }
.chat-msg { font-size: 15px; padding: 4px 10px; border-radius: 4px; background: rgba(8, 5, 14, .72); text-shadow: 0 1px 0 #000; transition: opacity .8s; max-width: 100%; overflow-wrap: anywhere; }
.chat-msg b { font-weight: 700; }
.chat-msg.p1 b { color: #9fc6ff; } .chat-msg.p2 b { color: #ff9f9f; }
.chat-msg.old { opacity: .35; }
.chat-row { display: flex; gap: 6px; align-items: center; }
.chat-row input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: var(--r); border: 2px solid var(--line); background: rgba(5, 3, 9, .85); color: var(--text); font: 600 15px var(--body); }
.chat-row input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 193, 78, .2); }
.chat-row .btn { padding: 10px 14px; }
.chat-who { font-family: var(--pixel); font-size: 9px; padding: 10px; border-radius: var(--r); border: 2px solid var(--line); background: rgba(5, 3, 9, .85); cursor: pointer; }
.chat-who.p1 { color: #9fc6ff; } .chat-who.p2 { color: #ff9f9f; }
.chat-hint { font-size: 13px; color: var(--muted); text-align: center; text-shadow: 0 1px 0 #000; }
#chatbar.compact { width: min(420px, calc(100vw - 24px)); left: auto; right: 14px; transform: none; bottom: 70px; }
#chatbar.compact .chat-row input:not(:focus) { opacity: .45; padding: 6px 10px; font-size: 13px; }
#chatbar.compact .chat-hint { display: none; }
/* dunkle Scrollleisten passend zum Design */
* { scrollbar-width: thin; scrollbar-color: #4a3458 rgba(0, 0, 0, .3); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, .3); border-radius: 99px; }
::-webkit-scrollbar-thumb { background: #4a3458; border-radius: 99px; border: 2px solid #0b0710; }
::-webkit-scrollbar-thumb:hover { background: #6b4a7a; }

/* ---------- Talentbaum ---------- */
.tree-modal { width: min(900px, 100%); }
.tree-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.tree-head .h-pixel { font-size: 10px; color: var(--gold); }
.tree { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.branch { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 14px 10px 18px; border-radius: var(--r); background: linear-gradient(color-mix(in srgb, var(--c) 10%, transparent), rgba(0, 0, 0, .35)); border: 2px solid color-mix(in srgb, var(--c) 35%, var(--line)); position: relative; }
.branch-head { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.branch-head b { font-family: var(--pixel); font-size: 11px; color: var(--c); }
.branch-head span { font-size: 13px; color: var(--muted); }
.node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; color: var(--text); width: 100%; padding: 0; }
.node + .node::before { content: ""; position: absolute; top: -22px; left: 50%; width: 3px; height: 20px; margin-left: -1.5px; background: #3a2a48; }
.node.on + .node::before, .node.on + .node.on::before { background: var(--c); box-shadow: 0 0 8px var(--c); }
.node .gem { width: 44px; height: 44px; transform: rotate(45deg); border-radius: 6px; background: linear-gradient(135deg, #3a2a48, #1a1028); border: 3px solid #4a3a5a; transition: transform .15s, box-shadow .15s; }
.node.cap .gem { width: 54px; height: 54px; border-radius: 8px; }
.node.on .gem { background: linear-gradient(135deg, #fff, var(--c) 45%, color-mix(in srgb, var(--c) 40%, #000)); border-color: #fff; box-shadow: 0 0 16px var(--c); }
.node.max .gem { box-shadow: 0 0 22px var(--c), 0 0 0 3px var(--gold); }
.node:hover .gem, .node:focus-visible .gem { transform: rotate(45deg) scale(1.1); }
.node.locked { opacity: .4; cursor: not-allowed; }
.node .nn { font-weight: 700; font-size: 14px; margin-top: 6px; text-align: center; }
.node .nr { font-family: var(--pixel); font-size: 8px; color: var(--muted); }
.node.on .nr { color: var(--c); }
.node:focus-visible { outline: none; }
.tree-desc { margin-top: 14px; padding: 12px 14px; min-height: 48px; border-radius: var(--r); background: rgba(0, 0, 0, .35); font-size: 15px; }
.levelup .btn { margin-top: 6px; font-size: 9px; padding: 8px 12px; }
@media (max-width: 760px) { .tree { grid-template-columns: 1fr; } }
/* Chat: versteckte Elemente wirklich verstecken, nicht ueber dem Kampf-HUD liegen */
#chatbar [hidden] { display: none !important; }
#chatbar { bottom: 92px; }
#chatbar.compact { bottom: 112px; right: 18px; width: min(340px, calc(100vw - 24px)); }
#chatbar.compact .chat-msg { font-size: 13px; }

/* ---------- Welt (MMO-Modus) ---------- */
#world { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 2; outline: none; background: #07060c; }
#worldui { position: fixed; left: 16px; bottom: 34px; z-index: 6; width: min(420px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 6px; }
.wchat-log { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; pointer-events: none; }
.wchat-msg { font-size: 14px; padding: 4px 9px; border-radius: 4px; background: rgba(8, 5, 14, .72); text-shadow: 0 1px 0 #000; transition: opacity .8s; max-width: 100%; overflow-wrap: anywhere; }
.wchat-msg b { color: #e8dcff; } .wchat-msg.me b { color: var(--gold); }
.wchat-msg.old { opacity: .35; }
.wchat-row input { width: 100%; padding: 9px 12px; border-radius: var(--r); border: 2px solid var(--line); background: rgba(5, 3, 9, .8); color: var(--text); font: 600 14px var(--body); }
.wchat-row input:not(:focus) { opacity: .55; }
.wchat-row input:focus { outline: none; border-color: var(--gold); opacity: 1; }

/* ---------- Welt-HUD (ersetzt die alte Chat-Zeile) ---------- */
#worldui { position: fixed; inset: 0; z-index: 6; pointer-events: none; width: auto; display: block; left: 0; bottom: 0; }
#worldui > * { pointer-events: auto; position: absolute; }
.whud-card, .whud-place, .whud-chat, .whud-keys {
  background: linear-gradient(rgba(24, 14, 34, .88), rgba(12, 7, 18, .88));
  border: 2px solid #c99a3a; border-radius: 6px;
  box-shadow: 0 0 0 2px #0b0710, inset 0 1px 0 rgba(255, 241, 160, .25), 0 10px 30px rgba(0, 0, 0, .45);
}
.whud-card { top: 14px; left: 14px; display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; }
.whud-port { width: 58px; height: 58px; border-radius: 4px; border: 2px solid #f2c14e; background: radial-gradient(circle at 50% 65%, #3a2450, #140a1e); box-shadow: 0 0 12px rgba(242, 193, 78, .35); overflow: hidden; }
.whud-port canvas { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.whud-name { font-family: var(--pixel); font-size: 12px; color: #f2c14e; text-shadow: 0 2px 0 #3a2000; }
.whud-sub { display: flex; gap: 8px; align-items: center; margin-top: 7px; }
.whud-lv { font-family: var(--pixel); font-size: 8px; color: #0b0710; background: linear-gradient(#bff3ff, #5fc6ea); padding: 3px 6px; border-radius: 3px; }
.whud-title { font-family: var(--pixel); font-size: 8px; color: #e8dcff; }
.whud-place { top: 14px; right: 14px; padding: 9px 16px; text-align: right; }
.whud-map { font-family: var(--pixel); font-size: 11px; color: #f2c14e; text-shadow: 0 2px 0 #3a2000; }
.whud-online { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 6px; font-size: 14px; color: #e8dcff; font-weight: 600; }
.wdot { width: 9px; height: 9px; border-radius: 50%; background: #ff9f5a; display: inline-block; }
.wdot.on { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.whud-chat { left: 14px; bottom: 14px; width: min(400px, calc(100vw - 28px)); display: flex; flex-direction: column; }
.wchat-head { display: flex; justify-content: space-between; align-items: center; padding: 7px 12px; border-bottom: 1px solid rgba(201, 154, 58, .45); font-family: var(--pixel); font-size: 9px; color: #f2c14e; }
.wchat-ch { font-size: 7px; color: #b9aecb; }
#worldui .wchat-log { height: 150px; overflow-y: auto; padding: 8px 12px; display: flex; flex-direction: column; gap: 4px; align-items: stretch; pointer-events: auto; }
#worldui .wchat-msg { background: none; padding: 0; font-size: 14px; line-height: 1.35; text-shadow: 0 1px 0 #000; }
#worldui .wchat-msg b { color: #9fc6ff; } #worldui .wchat-msg.me b { color: #f2c14e; }
#worldui .wchat-row { padding: 8px; border-top: 1px solid rgba(201, 154, 58, .45); }
#worldui .wchat-row input { width: 100%; opacity: 1; background: rgba(0, 0, 0, .45); border: 1px solid #4a3458; border-radius: 4px; padding: 8px 10px; font: 600 14px var(--body); color: var(--text); }
#worldui .wchat-row input:focus { outline: none; border-color: #f2c14e; }
.whud-keys { bottom: 14px; right: 14px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 14px; padding: 9px 14px; max-width: min(560px, calc(100vw - 450px)); font-size: 13px; color: #cfc4dc; font-weight: 600; }
.whud-keys kbd { margin-right: 3px; }
@media (max-width: 900px) { .whud-keys { display: none; } }
/* Welt-HUD kompakter: Spielfeld bleibt frei */
.whud-card { top: 10px; left: 10px; gap: 9px; padding: 5px 12px 5px 5px; }
.whud-port { width: 40px; height: 40px; }
.whud-name { font-size: 9px; }
.whud-sub { margin-top: 5px; }
.whud-lv, .whud-title { font-size: 7px; }
.whud-place { top: 10px; right: 10px; padding: 6px 11px; }
.whud-map { font-size: 8px; }
.whud-online { font-size: 12px; margin-top: 4px; }
.whud-chat { left: 10px; bottom: 10px; width: min(300px, calc(100vw - 20px)); background: linear-gradient(rgba(24, 14, 34, .72), rgba(12, 7, 18, .78)); }
.wchat-head { padding: 4px 9px; font-size: 7px; }
.wchat-ch { font-size: 6px; }
#worldui .wchat-log { height: 78px; padding: 5px 9px; gap: 2px; }
#worldui .wchat-msg { font-size: 12px; }
#worldui .wchat-row { padding: 5px; }
#worldui .wchat-row input { padding: 5px 8px; font-size: 12px; }
.whud-keys { right: 10px; bottom: 10px; max-width: none; flex-wrap: nowrap; gap: 10px; padding: 5px 10px; font-size: 11px; background: rgba(12, 7, 18, .6); border-width: 1px; }
.whud-keys kbd { font-size: 6px; padding: 2px 4px; }
@media (max-width: 1100px) { .whud-keys span:nth-child(n+5) { display: none; } }

/* ---------- Welt: Charakterschild oben links (gleiches Schild wie im Kampf) ---------- */
/* Bild 2000 x 667, Anzeige 360 breit -> Faktor 0.18; Fenster aus PLATE in game.js */
.wplate { top: 8px; left: 8px; width: 360px; height: 120px; }
.wplate .wp-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.wplate .wp-port { position: absolute; left: 21px; top: 23.6px; width: 55.8px; height: 56.9px; image-rendering: pixelated; background: radial-gradient(circle at 50% 65%, #3a2450, #140a1e); }
.wplate .wp-bar { position: absolute; left: 94.7px; top: 36px; width: 248px; height: 18.4px; background: #1a0d18;
  clip-path: polygon(0 0, 100% 0, 94.6% 100%, 0 100%); }
.wplate .wp-bar i { position: absolute; inset: 0; background: url(../assets/ui/hud/health_fill.png) 0 0 / 100% 100%; }
.wplate .wp-bar b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--pixel); font-size: 8px; color: #fff; text-shadow: 0 1px 0 #000, 0 0 3px #000; }
.wplate .wp-name { position: absolute; left: 105px; top: 67px; font-family: var(--pixel); font-size: 9px; color: #e8dcff; text-shadow: 0 2px 0 #0b0710; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.wplate .wp-sep { color: #f2c14e; font-size: 8px; }
.wplate .wp-lv { color: #8fd8ff; font-size: 8px; }
.wplate .wp-title { position: absolute; left: 112px; top: 87px; font-family: var(--pixel); font-size: 7px; color: #f2c14e; text-shadow: 0 1px 0 #0b0710; white-space: nowrap; }
.wplate .wp-xp { position: absolute; left: 14px; top: 124px; width: 170px; height: 12px; background: rgba(8, 5, 14, .8); border: 1px solid #c99a3a; border-radius: 99px; overflow: hidden; }
.wplate .wp-xp i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #4aa3ff, #8fe6ff); }
.wplate .wp-xp span { position: relative; display: block; text-align: center; font-family: var(--pixel); font-size: 6px; line-height: 12px; color: #fff; text-shadow: 0 1px 0 #000; }
.wplate .wp-gold { position: absolute; left: 194px; top: 121px; display: flex; align-items: center; gap: 5px; padding: 2px 9px; background: rgba(8, 5, 14, .8); border: 1px solid #c99a3a; border-radius: 99px; font-family: var(--pixel); font-size: 8px; color: var(--gold-2); }
/* Charakterschild: Level als Edelstein am Portraet, XP direkt unter dem Titelband */
.wplate .wp-lvgem { position: absolute; left: 27px; top: 84px; min-width: 22px; height: 16px; padding: 0 5px; border-radius: 4px; display: grid; place-items: center;
  font-family: var(--pixel); font-size: 7px; color: #0b0710; background: linear-gradient(#cff6ff, #5fc6ea); border: 1px solid #f2c14e; box-shadow: 0 0 0 1px #0b0710, 0 0 8px rgba(143, 230, 255, .5); z-index: 2; }
.wplate .wp-lvgem::before { content: "LV"; font-size: 5px; margin-right: 3px; opacity: .75; }
.wplate .wp-lvgem { display: flex; align-items: center; justify-content: center; }
.wplate .wp-name { width: 205px; overflow: hidden; }
.wplate .wp-xp { left: 102px; top: 104px; width: 150px; height: 9px; border-radius: 0; border: 1px solid #c99a3a; background: #12081c;
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%); box-shadow: none; }
.wplate .wp-xp span { font-size: 5px; line-height: 9px; }
.wplate .wp-gold { left: 258px; top: 101px; padding: 1px 8px; font-size: 7px; }
.wplate .wp-gold .coin { width: 11px; height: 11px; }
/* Shop als Fenster ueber der Welt */
#ui.over-world { z-index: 8; background: rgba(6, 3, 10, .82); backdrop-filter: blur(3px); }
#ui.over-world .nav, #ui.over-world .foot { display: none; }
.world-back { display: flex; justify-content: flex-end; width: min(1180px, 100%); margin: 16px auto 0; padding: 0 16px; }
.world-back { position: fixed; top: 16px; right: 16px; z-index: 9; width: auto; margin: 0; padding: 0; }

/* ---------- Eigener Mauszeiger (Schwert, Panzerhand auf Klickbarem) ---------- */
/* Cursor-Paket (assets/ui/cursor, aus cursor-pack-8.png) */
html, body, #ui, #world { cursor: url(../assets/ui/cursor/c_default.png) 13 1, auto; cursor: -webkit-image-set(url(../assets/ui/cursor/c_default.png) 1x, url(../assets/ui/cursor/c_default@2x.png) 2x) 13 1, auto; }
a, button, .btn, [role="tab"], [role="radio"], label, .chip, .islot, .node, .char-card, .opp, .stage-card, summary, .iv-s:not(.free), .iv-es[data-id] { cursor: url(../assets/ui/cursor/c_pointer.png) 13 1, pointer; cursor: -webkit-image-set(url(../assets/ui/cursor/c_pointer.png) 1x, url(../assets/ui/cursor/c_pointer@2x.png) 2x) 13 1, pointer !important; }
input, textarea, [contenteditable] { cursor: url(../assets/ui/cursor/c_text.png) 10 16, text; cursor: -webkit-image-set(url(../assets/ui/cursor/c_text.png) 1x, url(../assets/ui/cursor/c_text@2x.png) 2x) 10 16, text !important; }
#worldui .iv-thumb { cursor: url(../assets/ui/cursor/c_grab.png) 16 16, grab; cursor: -webkit-image-set(url(../assets/ui/cursor/c_grab.png) 1x, url(../assets/ui/cursor/c_grab@2x.png) 2x) 16 16, grab !important; }
#worldui .iv-thumb:active, .dragging, .dragging * { cursor: url(../assets/ui/cursor/c_grabbing.png) 16 16, grabbing; cursor: -webkit-image-set(url(../assets/ui/cursor/c_grabbing.png) 1x, url(../assets/ui/cursor/c_grabbing@2x.png) 2x) 16 16, grabbing !important; }
#worldui .iv-es.off, [data-help] { cursor: url(../assets/ui/cursor/c_help.png) 13 1, help; cursor: -webkit-image-set(url(../assets/ui/cursor/c_help.png) 1x, url(../assets/ui/cursor/c_help@2x.png) 2x) 13 1, help !important; }
button[disabled], .btn[disabled], [aria-disabled="true"] { cursor: url(../assets/ui/cursor/c_not-allowed.png) 16 16, not-allowed; cursor: -webkit-image-set(url(../assets/ui/cursor/c_not-allowed.png) 1x, url(../assets/ui/cursor/c_not-allowed@2x.png) 2x) 16 16, not-allowed !important; }
.cur-move { cursor: url(../assets/ui/cursor/c_move.png) 16 16, move; cursor: -webkit-image-set(url(../assets/ui/cursor/c_move.png) 1x, url(../assets/ui/cursor/c_move@2x.png) 2x) 16 16, move !important; }

/* ---------- Welt: Leben, Admin, Inventar ---------- */
.wplate .wp-bar i { right: auto; width: 100%; transition: width .25s; }
.wplate .wp-name .adm, .wchat-msg.adm b { color: #ff4a4a !important; }
.winv { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 24px)); background: linear-gradient(rgba(24, 14, 34, .96), rgba(12, 7, 18, .97));
  border: 2px solid #c99a3a; border-radius: 6px; box-shadow: 0 0 0 2px #0b0710, 0 20px 60px rgba(0, 0, 0, .7); z-index: 3; }
.winv[hidden] { display: none !important; }
.winv-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-bottom: 1px solid rgba(201, 154, 58, .5); font-family: var(--pixel); font-size: 10px; color: #f2c14e; }
.winv-x { background: none; border: 0; color: #f2c14e; font-size: 20px; line-height: 1; }
.winv-body { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 12px; }
.winv-eq { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.eqs { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--muted); }
.winv-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 6px; }
.winv-stats div { display: flex; flex-direction: column; align-items: center; background: rgba(0, 0, 0, .35); border-radius: 4px; padding: 5px 2px; }
.winv-stats b { font-family: var(--pixel); font-size: 9px; color: #f2c14e; }
.winv-stats span { font-size: 10px; color: var(--muted); }
.winv-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; align-content: start; }
.islot { position: relative; aspect-ratio: 1; min-width: 40px; border-radius: 4px; background: rgba(0, 0, 0, .45); border: 1px solid #3b2747; padding: 4px; display: grid; place-items: center; }
.islot-free { opacity: .5; }
.islot canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.islot i { position: absolute; right: 2px; bottom: 1px; font-style: normal; font-family: var(--pixel); font-size: 7px; color: #fff; text-shadow: 0 1px 0 #000; }
.islot.r1 { border-color: #6fb7ff; } .islot.r2 { border-color: #c38bff; box-shadow: inset 0 0 8px rgba(195, 139, 255, .4); } .islot.r3 { border-color: #ffb340; box-shadow: inset 0 0 10px rgba(255, 179, 64, .45); }
.islot.eq { width: 52px; }
.islot:hover { background: rgba(255, 255, 255, .08); }
.winv-tip { grid-column: 1 / -1; min-height: 64px; padding: 8px 10px; background: rgba(0, 0, 0, .35); border-radius: 4px; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.winv-tip b { font-family: var(--pixel); font-size: 9px; }
.winv-tip .t-r { font-size: 11px; } .winv-tip .t-l { color: #8fd8ff; } .winv-tip .t-l.bad { color: #ff6a5a; } .winv-tip .t-s { color: #7be495; } .winv-tip .t-p { color: #f2c14e; font-size: 11px; }
.islot { width: 46px; height: 46px; min-width: 0; aspect-ratio: auto; }
.islot canvas { width: 32px; height: 32px; }
.winv-grid { grid-template-columns: repeat(6, 46px); justify-content: start; }

/* ---------- Welt: Charakterkarte (Code statt Bild) ---------- */
.wcard { top: 10px; left: 10px; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; min-width: 300px;
  background: linear-gradient(180deg, rgba(36, 22, 50, .92), rgba(14, 8, 22, .92)); border: 1px solid #6b4a7a; border-radius: 10px;
  box-shadow: 0 0 0 1px #0b0710, inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 24px rgba(0, 0, 0, .45); }
.wc-port { position: relative; width: 50px; height: 50px; flex: none; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 70%, #3a2450, #140a1e); border: 2px solid #f2c14e; box-shadow: 0 0 0 2px #0b0710, 0 0 12px rgba(242, 193, 78, .35); }
.wc-port canvas { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.wc-lv { position: absolute; right: -2px; bottom: -2px; min-width: 20px; height: 18px; padding: 0 4px; border-radius: 9px; display: grid; place-items: center;
  font-family: var(--pixel); font-size: 7px; color: #0b0710; background: linear-gradient(#cff6ff, #5fc6ea); border: 2px solid #0b0710; }
.wcard .wc-port { overflow: visible; } .wcard .wc-port canvas { border-radius: 50%; }
.wc-main { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.wc-name { font-family: var(--pixel); font-size: 9px; color: #f1e9f6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 0 #000; }
.wc-name .clan { color: #9be36a; } .wc-name .adm { color: #ff4a4a; }
.wc-sub { font-size: 12px; color: #a397b6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-bar { position: relative; height: 12px; border-radius: 6px; background: #1a0f22; border: 1px solid #0b0710; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6); }
.wc-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; transition: width .25s; }
.wc-bar.hp i { background: linear-gradient(#ff7a6a, #d42a2a 60%, #8c1414); }
.wc-bar.hp.low i { animation: lowHp 1s infinite; }
@keyframes lowHp { 50% { filter: brightness(1.5); } }
.wc-bar.xp { height: 8px; } .wc-bar.xp i { background: linear-gradient(#bff3ff, #3e9be0); }
.wc-bar b { position: relative; display: block; text-align: center; font-family: var(--pixel); font-size: 6px; line-height: 12px; color: #fff; text-shadow: 0 1px 0 #000; }
.wc-bar.xp b { font-size: 5px; line-height: 8px; }
.wc-gold { align-self: flex-start; display: flex; align-items: center; gap: 4px; font-family: var(--pixel); font-size: 8px; color: var(--gold-2); padding-top: 2px; }
.wc-gold .coin { width: 12px; height: 12px; }

/* ---------- Welt: Fenster, Clan, Spieler, Einladung, Chat-Kanaele ---------- */
.wwin { width: min(400px, calc(100vw - 24px)); background: linear-gradient(rgba(30, 18, 42, .96), rgba(12, 7, 18, .97)); border: 1px solid #6b4a7a; border-radius: 10px;
  box-shadow: 0 0 0 1px #0b0710, 0 20px 50px rgba(0, 0, 0, .6); z-index: 3; }
.wwin[hidden], .winvite[hidden] { display: none !important; }
.wclan { right: 14px; top: 120px; }
.winsp { left: 50%; top: 80px; transform: translateX(-50%); width: min(340px, calc(100vw - 24px)); }
.wclan-body, .winsp-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.wtxt { margin: 0; font-size: 13px; color: #a397b6; }
.wlab { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #cfc4dc; }
.wlab input { padding: 7px 9px; border-radius: 6px; border: 1px solid #4a3458; background: rgba(0, 0, 0, .45); color: var(--text); font: 600 14px var(--body); }
.wclan-top { display: flex; align-items: center; gap: 8px; font-family: var(--pixel); font-size: 9px; }
.tag { color: #9be36a; }
.wclan-list { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow-y: auto; }
.wcm { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; background: rgba(0, 0, 0, .3); font-size: 13px; color: #8b7fa0; }
.wcm.on { color: #e8dcff; }
.wcm .rk { font-size: 11px; padding: 1px 6px; border-radius: 99px; background: rgba(255, 255, 255, .06); }
.wcm .rk.leader { color: #f2c14e; } .wcm .rk.officer { color: #8fd8ff; }
.mini { font: 600 11px var(--body); padding: 3px 7px; border-radius: 5px; border: 1px solid #4a3458; background: rgba(255, 255, 255, .05); color: #cfc4dc; }
.mini.bad { color: #ff8a8a; border-color: #6a2a3a; }
.wi-top { display: flex; gap: 12px; align-items: center; }
.wi-top .wc-port { width: 60px; height: 60px; overflow: visible; } .wi-top .wc-port canvas { border-radius: 50%; }
.wi-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wi-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.wi-stats div { display: flex; flex-direction: column; align-items: center; padding: 6px; border-radius: 6px; background: rgba(0, 0, 0, .3); }
.wi-stats b { font-family: var(--pixel); font-size: 10px; color: #f2c14e; } .wi-stats span { font-size: 11px; color: #a397b6; }
.wi-eq { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wi-eq div { display: flex; flex-direction: column; padding: 6px 8px; border-radius: 6px; background: rgba(0, 0, 0, .3); font-size: 11px; color: #8b7fa0; }
.wi-eq b { font-size: 13px; }
.winvite { left: 50%; bottom: 120px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 14px 18px;
  background: rgba(14, 8, 22, .95); border: 1px solid #9be36a; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); font-size: 14px; text-align: center; z-index: 4; }
.wch { font-family: var(--pixel); font-size: 7px; padding: 4px 8px; border-radius: 5px; border: 1px solid transparent; background: none; color: #8b7fa0; }
.wch.on { color: #f2c14e; border-color: rgba(201, 154, 58, .6); background: rgba(242, 193, 78, .08); }
.wchat-head { gap: 4px; }
#worldui .wchat-msg.ch-clan b, #worldui .wchat-msg.ch-clan span { color: #9be36a; }
#world.over-player { cursor: url(../assets/ui/cursor/c_pointer.png) 13 1, pointer; cursor: -webkit-image-set(url(../assets/ui/cursor/c_pointer.png) 1x, url(../assets/ui/cursor/c_pointer@2x.png) 2x) 13 1, pointer; }

/* Chat unten links: im Ruhezustand fast unsichtbar, beim Schreiben halbtransparent */
#worldui .whud-chat { left: 10px; bottom: 10px; width: min(360px, calc(100vw - 20px)); background: transparent; border-color: transparent; box-shadow: none; transition: background .2s, border-color .2s; }
#worldui .whud-chat .wchat-head { opacity: 0; transition: opacity .2s; }
#worldui .whud-chat .wchat-log { pointer-events: none; height: 96px; -webkit-mask-image: linear-gradient(transparent, #000 30%); mask-image: linear-gradient(transparent, #000 30%); }
#worldui .whud-chat .wchat-msg { text-shadow: 0 1px 0 #000, 0 0 3px #000, 1px 0 0 #000, -1px 0 0 #000; }
#worldui .whud-chat .wchat-row { border-top-color: transparent; }
#worldui .whud-chat .wchat-row input { background: rgba(0, 0, 0, .25); border-color: rgba(255, 255, 255, .08); opacity: .6; }
#worldui .whud-chat:focus-within { background: rgba(12, 7, 18, .72); border-color: rgba(201, 154, 58, .7); }
#worldui .whud-chat:focus-within .wchat-head { opacity: 1; }
#worldui .whud-chat:focus-within .wchat-log { pointer-events: auto; -webkit-mask-image: none; mask-image: none; }
#worldui .whud-chat:focus-within .wchat-row input { opacity: 1; background: rgba(0, 0, 0, .45); }
/* Ruhezustand sichtbarer: leichte Hinterlegung, Nachrichten als dunkle Streifen, keine Ausblendung oben */
#worldui .whud-chat { background: rgba(12, 7, 18, .28); }
#worldui .whud-chat .wchat-log { -webkit-mask-image: none; mask-image: none; }
#worldui .whud-chat .wchat-msg { align-self: flex-start; background: rgba(8, 5, 14, .6); padding: 2px 8px; border-radius: 3px; color: #f1ebf8; }
#worldui .whud-chat .wchat-msg.old { opacity: .75; }
#worldui .whud-chat .wchat-row input { opacity: .9; background: rgba(0, 0, 0, .45); border-color: rgba(201, 154, 58, .35); }
#worldui .whud-chat .wchat-row input::placeholder { color: #cfc4dc; }
#worldui .whud-chat:focus-within .wchat-msg { background: none; padding: 0; }
/* Meldungen in der Welt: klein, oben mittig */
#worldui .wtoasts { position: absolute; top: 104px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; z-index: 30; }
#worldui .wtoast { padding: 6px 14px; border-radius: 4px; background: rgba(12, 7, 18, .78); border: 1px solid rgba(201, 154, 58, .6); color: #f1ebf8; font: 600 13px var(--body); text-shadow: 0 1px 0 #000; animation: fadeIn .2s both; white-space: nowrap; }

/* ---------- Inventar (Grafik aus assets/ui/inventar/teile, Masse in Pixel-Art-Pixeln x --u) ---------- */
#worldui { --u: 2px; }
#worldui .winv { left: auto; right: 14px; top: 50%; transform: translateY(-50%); width: calc(135 * var(--u)); height: calc(246 * var(--u)); padding: 0; border: 0; border-radius: 0; box-shadow: none;
  background: url(../assets/ui/inventar/hd/inv_panel.png) 0 0 / 100% 100% no-repeat; image-rendering: auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .6)); }
#worldui .winv > * { position: absolute; }
#worldui .iv-title { left: calc(14 * var(--u)); top: calc(9 * var(--u)); height: calc(12 * var(--u)); display: flex; align-items: center; font: calc(4.5 * var(--u)) var(--pixel); color: #f2c14e; text-shadow: 0 1px 0 #000; }
#worldui .iv-x { left: calc(112 * var(--u)); top: calc(9 * var(--u)); width: calc(12 * var(--u)); height: calc(12 * var(--u)); padding: 0; border: 0; background: url(../assets/ui/inventar/hd/btn_close.png) 0 0 / 100% 100%; image-rendering: auto; }
#worldui .iv-x:hover { background-image: url(../assets/ui/inventar/hd/btn_close_hover.png); }
#worldui .iv-eq { left: calc(11 * var(--u)); top: calc(27 * var(--u)); width: calc(113 * var(--u)); height: calc(39 * var(--u)); display: grid; grid-template-columns: repeat(4, calc(18 * var(--u))); grid-auto-rows: calc(18 * var(--u)); justify-content: space-evenly; align-content: space-evenly; }
#worldui .iv-es { position: relative; padding: 0; border: 0; background: var(--img) 0 0 / 100% 100%; image-rendering: pixelated; display: grid; place-items: center; }
#worldui .iv-es.off { opacity: .45; }
#worldui .iv-es[data-id] { background-image: url(../assets/ui/inventar/hd/slot.png); }
#worldui .iv-stats { left: calc(11 * var(--u)); top: calc(74 * var(--u)); width: calc(113 * var(--u)); height: calc(12 * var(--u)); display: flex; justify-content: space-evenly; align-items: center; font: calc(3.4 * var(--u)) var(--pixel); color: #b9aecb; }
#worldui .iv-stats b { color: #f2c14e; font-weight: normal; }
#worldui .iv-tabs { left: calc(11 * var(--u)); top: calc(93 * var(--u)); width: calc(113 * var(--u)); height: calc(11 * var(--u)); display: flex; justify-content: space-between; padding: 0 calc(1 * var(--u)); box-sizing: border-box; }
#worldui .iv-tab { width: calc(27 * var(--u)); height: 100%; padding: 0; color: #b9aecb; font: calc(3 * var(--u)) var(--pixel); background: none; image-rendering: pixelated;
  border: solid transparent; border-width: calc(3 * var(--u)) calc(6 * var(--u)); border-image: url(../assets/ui/inventar/hd/tab.png) 28 64 fill; }
#worldui .iv-tab.on { color: #f2c14e; border-image-source: url(../assets/ui/inventar/hd/tab_active.png); }
#worldui .iv-tab:hover { color: #fff; }
#worldui .iv-bag { left: calc(11 * var(--u)); top: calc(113 * var(--u)); width: calc(104 * var(--u)); height: calc(100 * var(--u)); overflow-y: auto; scrollbar-width: none; display: grid; grid-template-columns: repeat(5, calc(20 * var(--u))); grid-auto-rows: calc(20 * var(--u)); gap: calc(1 * var(--u)); align-content: start; }
#worldui .iv-bag::-webkit-scrollbar { display: none; }
#worldui .iv-s { position: relative; padding: 0; border: 0; background: url(../assets/ui/inventar/hd/slot.png) 0 0 / 100% 100%; image-rendering: auto; display: grid; place-items: center; }
#worldui .iv-s.free { opacity: .7; }
#worldui .iv-s:not(.free):hover, #worldui .iv-es[data-id]:hover { background-image: url(../assets/ui/inventar/hd/slot_hover.png); }
#worldui .iv-s.sel, #worldui .iv-es.sel { background-image: url(../assets/ui/inventar/hd/slot_selected.png); }
#worldui .iv-r { position: absolute; inset: 0; background: url(../assets/ui/inventar/hd/slot_r0.png) 0 0 / 100% 100%; image-rendering: auto; pointer-events: none; }
#worldui .iv-r.r0 { display: none; }
#worldui .iv-r.r1 { background-image: url(../assets/ui/inventar/hd/slot_r1.png); }
#worldui .iv-r.r2 { background-image: url(../assets/ui/inventar/hd/slot_r2.png); }
#worldui .iv-r.r3 { background-image: url(../assets/ui/inventar/hd/slot_r3.png); }
#worldui .iv-s canvas, #worldui .iv-es canvas { width: calc(15 * var(--u)); height: calc(15 * var(--u)); image-rendering: auto; position: relative; }
#worldui .iv-s i, #worldui .iv-es i { position: absolute; right: calc(2 * var(--u)); bottom: calc(1 * var(--u)); font: normal calc(2.8 * var(--u)) var(--pixel); color: #fff; text-shadow: 0 1px 0 #000, 1px 0 0 #000; }
#worldui .iv-track { left: calc(116 * var(--u)); top: calc(113 * var(--u)); width: calc(7 * var(--u)); height: calc(100 * var(--u)); background: url(../assets/ui/inventar/hd/scroll_track.png) 0 0 / 100% 100% no-repeat; image-rendering: auto; }
#worldui .iv-track[hidden] { display: none !important; }
#worldui .iv-thumb { position: absolute; left: calc(-0.5 * var(--u)); width: calc(8 * var(--u)); display: flex; flex-direction: column; cursor: grab; touch-action: none; }
#worldui .iv-thumb i { flex: 0 0 calc(8 * var(--u)); background: url(../assets/ui/inventar/hd/scroll_top.png) 0 0 / 100% 100%; image-rendering: auto; }
#worldui .iv-thumb i:last-child { background-image: url(../assets/ui/inventar/hd/scroll_bot.png); }
#worldui .iv-thumb b { flex: 1; background: url(../assets/ui/inventar/hd/scroll_mid.png) 0 0 / 100% 100% no-repeat; image-rendering: auto; }
#worldui .iv-foot { left: calc(14 * var(--u)); top: calc(221 * var(--u)); width: calc(107 * var(--u)); height: calc(14 * var(--u)); display: flex; justify-content: space-between; align-items: center; font: calc(3.4 * var(--u)) var(--pixel); color: #f2e6c0; }
#worldui .iv-gold { display: flex; align-items: center; gap: calc(2 * var(--u)); color: #f2c14e; }
#worldui .iv-gold::before { content: ''; width: calc(8 * var(--u)); height: calc(8 * var(--u)); background: url(../assets/ui/inventar/hd/gold_icon.png) 0 0 / 100% 100%; image-rendering: auto; }
#worldui .iv-cap { color: #b9aecb; }
#worldui .iv-tip { position: fixed; z-index: 40; max-width: 230px; padding: 4px 6px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: #cfc4dc; pointer-events: none;
  border: solid transparent; border-width: 16px; border-image: url(../assets/ui/inventar/hd/tooltip.png) 57 fill; image-rendering: auto; }
#worldui .iv-tip[hidden] { display: none !important; }
#worldui .iv-tip .t-h { margin-top: 3px; font-size: 11px; color: #8f84a3; }
#worldui .iv-tip b { font-family: var(--pixel); font-size: 9px; }
#worldui .iv-tip .t-r { font-size: 11px; } #worldui .iv-tip .t-l { color: #8fd8ff; } #worldui .iv-tip .t-l.bad { color: #ff6a5a; } #worldui .iv-tip .t-s { color: #7be495; } #worldui .iv-tip .t-p { color: #f2c14e; font-size: 11px; }

/* ---------- Spiel-Client /play (Flyff-artig): kein Portal, Fenster ueber der Stadt-Kulisse ---------- */
body.client .nav, body.client .foot { display: none !important; }
body.client .client-bg { position: fixed; inset: 0; width: 100vw; height: 100vh; image-rendering: pixelated; z-index: 1; filter: saturate(1.05) brightness(.82); }
body.client #ui { z-index: 2; background: radial-gradient(ellipse at center, rgba(8, 4, 14, .05) 0%, rgba(8, 4, 14, .55) 100%); }
body.client #ui.over-world { background: rgba(6, 3, 10, .82); }
body.client .screen.auth { background: none; }
body.client .auth-card { background: linear-gradient(rgba(24, 14, 34, .94), rgba(12, 7, 18, .96)); border: 2px solid #c99a3a; box-shadow: 0 0 0 2px #120e1a, 0 18px 50px rgba(0, 0, 0, .6); }
.client-load { justify-content: center; gap: 22px; background: radial-gradient(ellipse at center, #241430 0%, #0b0610 70%); position: fixed; inset: 0; }
.client-load .load-logo { width: min(520px, 80vw); image-rendering: auto; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .6)); }
.load-bar { width: min(420px, 80vw); height: 14px; border: 2px solid #c99a3a; background: #120e1a; padding: 2px; box-shadow: 0 0 0 2px #120e1a; }
.load-bar i { display: block; height: 100%; width: 0; background: linear-gradient(#ffe08a, #f2c14e 50%, #b8862a); transition: width .35s ease; }
.load-txt { font: 10px var(--pixel); color: #f2e6c0; letter-spacing: .5px; margin: 0; }
.client-screen { justify-content: center; gap: 18px; }
.client-logo img { width: min(420px, 74vw); filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .7)); }
.cwin { width: min(760px, calc(100vw - 32px)); background: linear-gradient(rgba(24, 14, 34, .94), rgba(12, 7, 18, .96)); border: 2px solid #c99a3a; box-shadow: 0 0 0 2px #120e1a, inset 0 0 0 1px rgba(242, 193, 78, .25), 0 18px 50px rgba(0, 0, 0, .6); border-radius: 3px; }
.cwin-head { padding: 10px 16px; font: 11px var(--pixel); color: #f2c14e; border-bottom: 1px solid rgba(201, 154, 58, .5); text-shadow: 0 1px 0 #000; background: linear-gradient(rgba(242, 193, 78, .08), transparent); }
.cwin-body { padding: 16px; }
.cwin-foot { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid rgba(201, 154, 58, .35); }
.srv { width: 100%; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px; padding: 14px 16px; background: rgba(0, 0, 0, .35); border: 1px solid #4a3458; border-radius: 3px; text-align: left; }
.srv:hover { border-color: #f2c14e; background: rgba(242, 193, 78, .08); }
.srv-dot { width: 10px; height: 10px; border-radius: 50%; background: #7be495; box-shadow: 0 0 8px #7be495; }
.srv-dot.mid { background: #f2c14e; box-shadow: 0 0 8px #f2c14e; } .srv-dot.full { background: #ff6a5a; box-shadow: 0 0 8px #ff6a5a; }
.srv-name { font: 11px var(--pixel); color: #f2e6c0; } .srv-ch { color: #b9aecb; } .srv-load { color: #b9aecb; font-size: 14px; }
.cslots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cslot { position: relative; height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; padding: 8px; background: linear-gradient(transparent 40%, rgba(0, 0, 0, .45)); border: 1px solid #4a3458; border-radius: 3px; }
.cslot:hover { border-color: #c99a3a; }
.cslot.on { border-color: #f2c14e; box-shadow: inset 0 0 22px rgba(242, 193, 78, .25), 0 0 0 1px #f2c14e; }
.cslot-fig { width: 100%; height: 130px; image-rendering: pixelated; }
.cslot-name { font: 10px var(--pixel); color: #f2e6c0; } .cslot.on .cslot-name { color: #f2c14e; }
.cslot-lv { font-size: 13px; color: #b9aecb; }
.cslot.cslot-free { justify-content: center; color: #8f84a3; border-style: dashed; background: rgba(0, 0, 0, .25); }
.cslot.cslot-free .plus { font: 22px var(--pixel); color: #c99a3a; }
@media (max-width: 640px) { .cslots { grid-template-columns: repeat(2, 1fr); } }
