/* Vaultbound Launcher – Lila-Pixel-Design */
:root {
  --accent: #6d28d9;
  --radius: 0px;
  --bg: color-mix(in srgb, var(--accent) 7%, #040208);
  --side: color-mix(in srgb, var(--accent) 16%, #06030c);
  --panel: color-mix(in srgb, var(--accent) 13%, #07040d);
  --panel-2: color-mix(in srgb, var(--accent) 22%, #08040f);
  --line: color-mix(in srgb, var(--accent) 38%, #0b0614);
  --line-soft: color-mix(in srgb, var(--accent) 22%, #0b0614);
  --hi: color-mix(in srgb, var(--accent) 70%, #ffffff 30%);
  --head: color-mix(in srgb, var(--accent) 55%, #3a3550);
  --text: #f4f1fb;
  --muted: #9a93b3;
  --dim: #6d6787;
  --body-font: 'Pixelify Sans', monospace;
  --label-font: 'Silkscreen', monospace;
  color-scheme: dark;
}
body.font-system { --body-font: 'Inter', system-ui, sans-serif; --label-font: 'Inter', system-ui, sans-serif; }
body.font-mono { --body-font: 'JetBrains Mono', monospace; --label-font: 'JetBrains Mono', monospace; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; color: var(--text); overflow: hidden; }
body { font: 15px/1.35 var(--body-font); -webkit-font-smoothing: antialiased; user-select: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; opacity: .45; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--hi); outline-offset: 2px; }
img { image-rendering: pixelated; }
.fa-solid, .fa-brands { line-height: 1; }
.label, .nav-item span, .topbar .chip, .section-title, .card-label { font-family: var(--label-font); text-transform: uppercase; letter-spacing: .5px; }
body:not(.ready) * { transition: none !important; }
body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after { transition: none !important; animation: none !important; }

/* ---------- Rahmen ---------- */
#launcher { position: relative; display: grid; grid-template-columns: 100px 1fr; grid-template-rows: 72px 1fr; width: 100vw; height: 100vh; min-width: 1100px; min-height: 640px; background: var(--bg); }
#sidebar { grid-row: 1 / 3; display: flex; flex-direction: column; align-items: center; background: var(--side); border-right: 1px solid var(--line-soft); z-index: 3; }
.brand { height: 72px; display: grid; place-items: center; -webkit-app-region: drag; }
.brand img { width: 40px; height: 40px; image-rendering: auto; }
#navigation { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; width: 100%; align-items: center; }
.nav-item { width: 64px; min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: #fff; border: 1px solid transparent; border-radius: var(--radius); transition: background .15s, border-color .15s; }
.nav-item i { font-size: 24px; color: #e9e6f3; }
.nav-item span { font-size: 9px; color: var(--muted); }
.nav-item:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.nav-item.active { background: var(--panel-2); border-color: var(--line); box-shadow: inset 0 -2px 0 var(--line); }
.nav-item.active span { color: #fff; }
body.no-labels .nav-item span { display: none; }
body.no-labels .nav-item { min-height: 54px; }
.side-settings { margin-top: auto; margin-bottom: 24px; width: 56px; height: 56px; display: grid; place-items: center; font-size: 24px; color: #e9e6f3; border-radius: var(--radius); }
.side-settings:hover, .side-settings.active { background: var(--panel-2); }

/* ---------- Titelzeile ---------- */
.topbar { display: flex; align-items: center; gap: 12px; padding: 0 18px 0 30px; border-bottom: 1px solid var(--line-soft); background: var(--bg); -webkit-app-region: drag; z-index: 3; }
.topbar button, .topbar .popover-anchor { -webkit-app-region: no-drag; }
.history { display: flex; gap: 14px; margin-right: 28px; }
.history button { font-size: 14px; color: #fff; }
.history button:disabled { color: var(--dim); opacity: 1; }
.app-title { display: flex; flex-direction: column; gap: 2px; }
.app-title strong { font: 17px var(--label-font); letter-spacing: 1.5px; text-transform: uppercase; }
.app-title small { font-size: 10px; color: var(--muted); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-plain { width: 34px; height: 34px; display: grid; place-items: center; font-size: 16px; color: #d8d3e8; }
.icon-plain:hover { color: #fff; }
.chip { height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 16px; background: var(--panel); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: var(--radius); font-size: 11px; color: #fff; }
.chip:hover { background: var(--panel-2); }
.chip .profile-head { width: 24px; height: 24px; }
.chip.square { width: 40px; padding: 0; justify-content: center; font-size: 16px; }
.window-buttons { display: flex; gap: 6px; margin-left: 14px; }
.window-buttons button { width: 26px; height: 26px; display: grid; place-items: center; color: #d8d3e8; font-size: 15px; }
.window-buttons button:hover { color: #fff; }
.window-buttons .close:hover { color: #ff6b81; }
.profile-head { display: inline-block; background-image: url(assets/steve.png), url(assets/steve.png); background-size: 800% 800%, 800% 800%; background-position: 71.4286% 14.2857%, 14.2857% 14.2857%; image-rendering: pixelated; background-repeat: no-repeat; }

/* ---------- Inhalt + Hintergrund ---------- */
.viewport { position: relative; grid-column: 2; grid-row: 2; overflow: hidden; }
#bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
#bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#bg .custom { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(.55); }
#bg .vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 40% 50%, transparent 35%, rgba(0,0,0,.65) 100%); }
.retro { position: absolute; inset: 0; perspective: 420px; perspective-origin: 50% 50%; }
.retro .plane { position: absolute; left: -60%; right: -60%; height: 62%; background-image: linear-gradient(var(--grid) 2px, transparent 2px), linear-gradient(90deg, var(--grid) 2px, transparent 2px); background-size: 64px 64px; --grid: color-mix(in srgb, var(--accent) 75%, #ffffff 8%); opacity: .5; }
.retro .floor { bottom: 0; transform-origin: 50% 100%; transform: rotateX(72deg); mask-image: linear-gradient(to top, #000 10%, transparent 90%); -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 90%); }
.retro .ceil { top: 0; transform-origin: 50% 0; transform: rotateX(-72deg); mask-image: linear-gradient(to bottom, #000 10%, transparent 90%); -webkit-mask-image: linear-gradient(to bottom, #000 10%, transparent 90%); }
body.animate .retro .floor { animation: grid-run 6s linear infinite; }
body.animate .retro .ceil { animation: grid-run-up 6s linear infinite; }
@keyframes grid-run { to { background-position: 0 64px, 0 64px; } }
@keyframes grid-run-up { to { background-position: 0 -64px, 0 -64px; } }
#snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
#main { position: relative; height: 100%; z-index: 1; }

/* ---------- Spielen ---------- */
#main[data-page="play"] { display: grid; grid-template-columns: 1fr 370px; }
.stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; }
.anim-switch { position: absolute; top: 26px; right: 26px; display: flex; align-items: center; gap: 12px; font-size: 15px; color: #e4e0ef; }
.nametag { display: flex; align-items: center; gap: 10px; padding: 4px 12px; background: rgba(0,0,0,.45); font-size: 32px; line-height: 1.1; margin-bottom: -6px; z-index: 2; }
.nametag i { font-size: 24px; }
.skin-holder { width: 340px; height: 360px; cursor: grab; }
.skin-holder:active { cursor: grabbing; }
.skin-holder canvas { display: block; }
.stage-sub { margin-top: -38px; font: 11px var(--label-font); letter-spacing: 1px; text-transform: uppercase; color: #d9d4e8; text-shadow: 0 2px 0 #000; z-index: 2; }
.launch { position: relative; display: flex; margin-top: 10px; z-index: 2; }
.launch-main, .launch-more { background: color-mix(in srgb, var(--panel-2) 92%, transparent); border: 1px solid var(--line); border-bottom: 3px solid var(--line); border-radius: var(--radius); transition: background .15s, transform .1s; }
.launch-main { width: 318px; height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.launch-main strong { font: 22px var(--label-font); letter-spacing: 2px; }
.launch-main small { font: 11px var(--label-font); color: #d9d4e8; text-transform: uppercase; }
.launch-more { width: 66px; height: 76px; border-left: 0; font-size: 18px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.launch-main:hover, .launch-more:hover { background: color-mix(in srgb, var(--accent) 30%, #0b0614); }
.launch-main:active { transform: translateY(1px); }

.news { position: relative; display: flex; flex-direction: column; min-height: 0; background: color-mix(in srgb, var(--bg) 88%, transparent); border-left: 1px solid var(--line-soft); }
.news > header { display: flex; align-items: center; gap: 12px; padding: 22px 14px 14px; font: 12px var(--label-font); letter-spacing: 1px; text-transform: uppercase; }
.news > header i { font-size: 18px; }
.news-list { flex: 1; overflow-y: auto; padding: 0 14px 14px; display: flex; flex-direction: column; gap: 14px; }
.news-card { display: block; width: 100%; text-align: left; }
.news-card .card-label { display: block; font-size: 10px; color: #cfc9df; margin-bottom: 6px; }
.news-card .card-art { position: relative; display: block; border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--panel); transition: border-color .15s; }
.news-card canvas { display: block; width: 100%; height: 100%; }
.news-card .card-art i { position: absolute; right: 10px; bottom: 9px; font-size: 22px; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.5); }
.news-card:hover .card-art { border-color: var(--hi); }

/* ---------- Seiten ---------- */
.page { position: relative; height: 100%; overflow-y: auto; padding: 34px 40px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-head h1 { margin: 0 0 6px; font: 22px var(--label-font); letter-spacing: 2px; text-transform: uppercase; }
.page-head p { margin: 0; color: var(--muted); }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.list-row { display: flex; align-items: center; gap: 18px; padding: 14px 18px; background: color-mix(in srgb, var(--panel) 92%, transparent); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.list-row.selected { border-color: var(--line); box-shadow: inset 3px 0 0 var(--hi); }
.list-row .version { width: 64px; height: 48px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); font: 12px var(--label-font); }
.list-row .copy { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.list-row .copy strong { font-size: 18px; font-weight: 400; }
.list-row .copy small { color: var(--muted); }
.list-row .active-tag { font: 10px var(--label-font); text-transform: uppercase; color: var(--hi); display: flex; gap: 8px; align-items: center; }
/* ---------- Buttons + Steuerelemente ---------- */
.btn { height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 18px; background: var(--panel-2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: var(--radius); font: 11px var(--label-font); text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; transition: background .15s; }
.btn:hover { background: color-mix(in srgb, var(--accent) 34%, #0b0614); }
.btn.hot { background: color-mix(in srgb, var(--accent) 60%, #12081f); border-color: var(--hi); }
.btn.hot:hover { background: color-mix(in srgb, var(--accent) 78%, #12081f); }
.btn.ghost { background: transparent; }
.btn.danger:hover { background: #4a1020; border-color: #a3354f; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.icon-btn:hover { border-color: var(--line); color: #fff; }
.switch { width: 40px; height: 22px; padding: 3px; display: flex; background: color-mix(in srgb, var(--accent) 12%, #0e0a16); border: 1px solid var(--line-soft); border-radius: var(--radius); transition: background .15s; flex: none; }
.switch i { width: 14px; height: 14px; background: #e9e7ef; border-radius: calc(var(--radius) * .6); transition: transform .15s; }
.switch[aria-checked="true"] { background: color-mix(in srgb, var(--accent) 60%, #12081f); border-color: var(--line); }
.switch[aria-checked="true"] i { transform: translateX(18px); background: #fff; }
.field { height: 40px; padding: 0 12px; background: color-mix(in srgb, var(--accent) 8%, #050309); border: 1px solid var(--line-soft); border-radius: var(--radius); outline: none; min-width: 0; user-select: text; }
.field:focus { border-color: var(--hi); }
.field.number { width: 86px; text-align: center; }
select.field { padding-right: 8px; }
.times { color: var(--muted); }

/* ---------- Einstellungen ---------- */
#overlay:empty { display: none; }
.modal-backdrop { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(2,1,5,.6); backdrop-filter: blur(7px); animation: fade .15s ease-out; }
@keyframes fade { from { opacity: 0; } }
.settings-modal { width: min(1150px, calc(100% - 120px)); height: min(680px, calc(100% - 100px)); display: grid; grid-template-rows: 78px 1fr; background: color-mix(in srgb, var(--accent) 9%, #06030b); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.6); overflow: hidden; animation: pop .18s ease-out; }
@keyframes pop { from { transform: scale(.98); opacity: 0; } }
.settings-modal > header { display: flex; align-items: center; gap: 16px; padding: 0 28px; background: color-mix(in srgb, var(--accent) 22%, #07040d); border-bottom: 1px solid var(--line); }
.settings-modal > header > i { font-size: 26px; }
.settings-modal > header strong { font: 14px var(--label-font); letter-spacing: 1.5px; text-transform: uppercase; }
.settings-modal > header .open-dir { margin-left: auto; display: flex; align-items: center; gap: 8px; font: 11px var(--label-font); text-transform: uppercase; color: var(--hi); opacity: .8; }
.settings-modal > header .open-dir:hover { opacity: 1; }
.settings-modal > header .close-modal { width: 30px; height: 30px; display: grid; place-items: center; margin-left: 14px; font-size: 16px; }
.settings-body { display: grid; grid-template-columns: 300px 1fr; min-height: 0; }
.settings-nav { padding: 20px 22px; border-right: 1px solid var(--line-soft); margin: 0 0 18px; overflow-y: auto; }
.search { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; margin-bottom: 18px; background: #030205; border: 1px solid var(--line-soft); border-radius: var(--radius); }
.search i { font-size: 12px; color: var(--muted); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 16px; user-select: text; }
.search input::placeholder { color: var(--muted); }
.cat { width: 100%; height: 46px; display: flex; align-items: center; gap: 14px; padding: 0 14px; margin-bottom: 2px; font: 12px var(--label-font); letter-spacing: 1px; text-transform: uppercase; color: #d6d1e4; border-radius: var(--radius); }
.cat i { width: 20px; font-size: 18px; text-align: center; color: #cfc9df; }
.cat:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.cat.active { background: color-mix(in srgb, var(--accent) 22%, #0a0612); color: #fff; }
.cat.active i { color: var(--hi); }
.subs { margin: 4px 0 10px 20px; border-left: 1px solid var(--line-soft); }
.subs button { position: relative; display: block; width: 100%; text-align: left; padding: 9px 0 9px 16px; font: 10px/1.5 var(--label-font); text-transform: uppercase; letter-spacing: .8px; color: var(--dim); }
.subs button:hover { color: #cfc9df; }
.subs button.active { color: #fff; }
.subs button.active::before { content: ''; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 2px; background: var(--hi); }
.settings-scroll { position: relative; overflow-y: auto; padding: 8px 46px 40px 44px; scroll-behavior: smooth; }
body.reduce-motion .settings-scroll { scroll-behavior: auto; }
.sub { padding-top: 26px; }
.sub-head { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); font: 12px var(--label-font); letter-spacing: 1.2px; text-transform: uppercase; color: var(--hi); }
.sub-head i { font-size: 18px; }
.sub-desc { margin: 12px 0 6px; color: var(--muted); font-size: 14px; }
.row { display: flex; align-items: center; gap: 24px; padding: 14px 0; border-bottom: 1px solid color-mix(in srgb, var(--line-soft) 70%, transparent); }
.row:last-child { border-bottom: 0; }
.row-text { flex: 1; min-width: 0; }
.row-text strong { display: block; font-size: 19px; font-weight: 400; }
.row-text p { margin: 3px 0 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.row-control { display: flex; align-items: center; gap: 8px; flex: none; }
.row.block { display: block; }
.row.block .row-control { margin-top: 12px; display: block; }
.swatch-area { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; }
.swatches { display: grid; grid-template-columns: repeat(9, 48px); gap: 12px; }
.swatch { width: 48px; height: 48px; background: var(--swatch); border: 2px solid transparent; border-radius: var(--radius); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.swatch.active { border-color: #fff; }
.swatch:hover { filter: brightness(1.15); }
.custom-color { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 18px; border: 1px dashed var(--line); border-radius: var(--radius); cursor: pointer; }
.custom-color.active { border-style: solid; border-color: #fff; }
.custom-color .preview { width: 34px; height: 34px; background: var(--accent); border: 1px solid rgba(255,255,255,.2); }
.custom-color strong { display: block; font-size: 19px; font-weight: 400; }
.custom-color small { color: var(--muted); font: 11px var(--label-font); }
.custom-color input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.slider { padding: 6px 0 4px; }
.slider-scale { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 4px; }
.slider-scale output { color: #fff; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(to right, color-mix(in srgb, var(--accent) 70%, #1a0f2e) var(--fill), color-mix(in srgb, var(--accent) 16%, #0c0814) var(--fill)); border-radius: var(--radius); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; background: color-mix(in srgb, var(--accent) 45%, #160a2a); border: 1px solid var(--hi); border-radius: calc(var(--radius) * .6); box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--accent) 45%, #160a2a), inset 0 0 0 5px #fff; }
.font-options { display: flex; gap: 12px; flex-wrap: wrap; padding: 14px 0; }
.font-option { position: relative; height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 18px 0 14px; background: color-mix(in srgb, var(--accent) 8%, #050309); border: 2px solid var(--line-soft); border-radius: var(--radius); font-size: 19px; }
.font-option b { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #8f89a6; font-weight: 400; font-size: 17px; }
.font-option.active { border-color: #d6d1e4; }
.font-option.active::after { content: '\f00c'; position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; display: grid; place-items: center; background: #fff; color: #0b0614; border-radius: 50%; font: 900 10px 'Font Awesome 6 Free'; }
.font-option[data-font="minecraft"] { font-family: 'Pixelify Sans'; }
.font-option[data-font="system"] { font-family: 'Inter'; }
.font-option[data-font="mono"] { font-family: 'JetBrains Mono'; }
.effects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px 0; }
.effect { position: relative; aspect-ratio: 1 / .9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: color-mix(in srgb, var(--accent) 6%, #050309); border: 2px solid var(--line-soft); border-radius: var(--radius); }
.effect i { font-size: 38px; }
.effect span { font: 10px var(--label-font); letter-spacing: 1px; text-transform: uppercase; }
.effect:hover { border-color: var(--line); }
.effect.active { border-color: color-mix(in srgb, var(--accent) 50%, #9b95b0); background: color-mix(in srgb, var(--accent) 16%, #07040d); }
.effect.active::after { content: '\f00c'; position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 60%, #222); color: #fff; border-radius: 50%; font: 900 9px 'Font Awesome 6 Free'; }
.quality { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.quality .range { width: 120px; }
.bg-preview { width: 120px; height: 68px; border: 1px solid var(--line); border-radius: var(--radius); background-size: cover; background-position: center; }
.storage-total strong { font-size: 30px; font-weight: 400; }
.storage-total p { margin: 2px 0 12px; color: var(--muted); }
.storage-bar { display: flex; height: 12px; gap: 2px; margin-bottom: 8px; }
.storage-bar i { width: var(--w); background: var(--hi); opacity: var(--o); }
.rpc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding: 12px 0; }
.rpc-field { display: flex; flex-direction: column; gap: 6px; }
.rpc-field span { font: 10px var(--label-font); text-transform: uppercase; color: var(--muted); }
.rpc-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 8px 0 14px; }
.rpc-check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.rpc-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.rpc-actions { display: flex; gap: 10px; padding-top: 6px; }
.presence { display: flex; gap: 14px; align-items: center; padding: 14px; margin: 14px 0 6px; background: #111214; border-radius: 8px; font-family: 'Inter', sans-serif; }
.presence-art { position: relative; width: 72px; height: 72px; flex: none; }
.presence-art img { width: 72px; height: 72px; border-radius: 8px; image-rendering: auto; }
.presence-art .badge { position: absolute; right: -4px; bottom: -4px; width: 26px; height: 26px; border-radius: 50%; border: 3px solid #111214; }
.presence strong { font-family: 'Inter'; font-weight: 600; }
.presence p, .presence small { margin: 2px 0 0; font-family: 'Inter'; font-size: 13px; color: #b5bac1; }
.presence small { display: block; color: var(--hi); margin-top: 6px; }
.hint { color: var(--muted); font-size: 13px; margin: 6px 0; }
.no-results { color: var(--muted); padding: 40px 0; text-align: center; }

/* ---------- Popover, Dialog, Toast ---------- */
.popover { position: absolute; z-index: 15; min-width: 260px; max-width: 420px; max-height: calc(100vh - 110px); overflow-y: auto; padding: 8px; background: color-mix(in srgb, var(--accent) 12%, #06030b); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 50px rgba(0,0,0,.6); animation: fade .12s ease-out; }
.popover .label { display: block; padding: 8px 10px 6px; font-size: 10px; color: var(--hi); }
.popover .empty { padding: 6px 10px 10px; color: var(--muted); font-size: 14px; }
.pop-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px; text-align: left; border-radius: var(--radius); font-size: 15px; }
.pop-item:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.pop-item small { margin-left: auto; color: var(--muted); font: 10px var(--label-font); }
.pop-item.selected { color: var(--hi); }
.pop-item img { width: 24px; height: 24px; }
.pop-sep { height: 1px; margin: 6px 4px; background: var(--line-soft); }
#dialog { width: 470px; max-width: calc(100vw - 40px); padding: 0; color: var(--text); background: color-mix(in srgb, var(--accent) 10%, #06030b); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
#dialog::backdrop { background: rgba(2,1,5,.6); backdrop-filter: blur(5px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; background: color-mix(in srgb, var(--accent) 22%, #07040d); border-bottom: 1px solid var(--line); }
.dialog-heading strong { font: 13px var(--label-font); text-transform: uppercase; letter-spacing: 1.2px; }
.dialog-heading button { font-size: 16px; }
#dialog-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.dialog-text { margin: 0; color: #d6d1e4; user-select: text; }
.dialog-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.device-code { padding: 16px; text-align: center; font: 30px var(--label-font); letter-spacing: 4px; background: #030205; border: 1px solid var(--line); user-select: all; }
#toast { position: absolute; left: 50%; bottom: 24px; z-index: 30; transform: translateX(-50%); padding: 12px 20px; background: color-mix(in srgb, var(--accent) 25%, #07040d); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0,0,0,.5); }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: var(--radius); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Bibliothek: Tabs, Suche, Listen ---------- */
.library { display: flex; flex-direction: column; padding: 22px 28px 0; }
.tabs { display: flex; gap: 10px; margin-bottom: 18px; }
.tab { height: 38px; padding: 0 14px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: color-mix(in srgb, var(--bg) 80%, transparent); font: 12px var(--label-font); letter-spacing: 1px; text-transform: uppercase; color: #cfc9df; }
.tab:hover { border-color: var(--line); color: #fff; }
.tab.active { border-color: var(--hi); background: color-mix(in srgb, var(--accent) 22%, #07040d); color: #fff; }
.toolbar { display: flex; align-items: center; gap: 10px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.push { margin-left: auto; }
.searchbar { width: 414px; height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: color-mix(in srgb, var(--bg) 70%, #000); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.searchbar.wide { width: 448px; }
.searchbar > i { font-size: 13px; color: var(--muted); }
.searchbar input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 18px; user-select: text; }
.searchbar input::placeholder { color: var(--muted); }
.searchbar:focus-within { border-color: var(--line); }
.searchbar .divider { width: 1px; height: 22px; background: var(--line-soft); }
.sort-wrap { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.sort-wrap select { appearance: none; background: transparent; border: 0; outline: none; font: 11px var(--label-font); text-transform: uppercase; color: #d6d1e4; cursor: pointer; padding-right: 4px; }
.sort-wrap select option { background: #0b0614; color: #fff; }
.tool-btn { height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: color-mix(in srgb, var(--bg) 70%, #000); font: 11px var(--label-font); text-transform: uppercase; color: #d6d1e4; }
.tool-btn.square { width: 50px; padding: 0; justify-content: center; font-size: 15px; }
.tool-btn:hover, .tool-btn.active { border-color: var(--line); color: #fff; }
.btn.outline { height: 50px; padding: 0 20px; background: color-mix(in srgb, var(--bg) 70%, #000); border-color: var(--line-soft); border-bottom-width: 1px; font-size: 12px; }
.btn.outline:hover { border-color: var(--hi); background: color-mix(in srgb, var(--accent) 18%, #07040d); }
.btn.small { height: 32px; padding: 0 12px; font-size: 11px; border-bottom-width: 1px; background: color-mix(in srgb, var(--bg) 60%, #000); border-color: var(--line-soft); }
.btn.small:hover { border-color: var(--hi); background: color-mix(in srgb, var(--accent) 20%, #07040d); }
.list-empty { padding: 40px 20px; text-align: center; color: var(--muted); list-style: none; line-height: 2; }
.list-empty.small { padding: 16px; }
.page-note { color: var(--muted); margin: 18px 0 24px; }
.library .list { flex: 1; overflow-y: auto; padding-bottom: 24px; }
.profile-row { padding: 12px 16px; gap: 14px; }
.profile-row .copy strong { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.profile-row .copy strong em { font: normal 9px var(--label-font); text-transform: uppercase; color: var(--hi); border: 1px solid var(--line); padding: 3px 6px; }
.profile-row .copy small { display: flex; font-size: 15px; }
.profile-row .copy small > span + span::before { content: '|'; margin: 0 9px; color: var(--dim); }
.profile-row .copy small i { color: #6fbf4a; font-size: 11px; }
.profile-icon { position: relative; width: 62px; height: 62px; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--tone) 55%, #0b0614); border: 1px solid color-mix(in srgb, var(--tone) 60%, #000); border-radius: var(--radius); font-size: 26px; box-shadow: inset 0 0 0 4px rgba(0,0,0,.18); }
.profile-icon .star { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; display: grid; place-items: center; font-size: 13px; color: #5d5670; text-shadow: 0 1px 0 #000; }
.profile-icon .star.on, .profile-icon .star:hover { color: #f6c21c; }

/* ---------- Mods ---------- */
.mods-page { display: grid; grid-template-columns: 1fr 240px; gap: 18px; height: 100%; padding: 22px 18px 0 28px; }
.mods-page.no-filters { grid-template-columns: 1fr; }
.mods-page.no-filters .filters { display: none; }
.mods-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.mods-main .toolbar { border-bottom: 0; margin-bottom: 0; }
.sources { display: flex; padding: 3px; gap: 3px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: color-mix(in srgb, var(--bg) 70%, #000); }
.source { height: 42px; display: flex; align-items: center; gap: 9px; padding: 0 12px; font: 11px var(--label-font); text-transform: uppercase; color: #d6d1e4; border-radius: var(--radius); }
.source b { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; }
.source.modrinth b { color: #1bd96a; }
.source.modrinth.active { background: #1c6b3d; color: #fff; }
.source.active b { color: #fff; }
.mod-list { flex: 1; overflow-y: auto; margin-bottom: 18px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: color-mix(in srgb, var(--bg) 82%, transparent); }
.mod-row { display: flex; gap: 16px; padding: 14px 14px 12px; border-bottom: 1px solid var(--line-soft); }
.mod-icon { width: 78px; height: 78px; flex: none; display: grid; place-items: center; background: #0d0a14; border-radius: var(--radius); overflow: hidden; font-size: 28px; color: var(--muted); }
.mod-icon img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.mod-copy { flex: 1; min-width: 0; }
.mod-copy h3 { margin: 0 0 4px; font-size: 22px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mod-title { font-size: 22px; text-align: left; }
.mod-title:hover { color: var(--hi); text-decoration: underline; }
.mod-copy h3 small { font-size: 14px; color: var(--muted); }
.mod-copy p { margin: 0 0 8px; font-size: 15px; line-height: 1.05; color: #dcd8e8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; user-select: text; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tags span { padding: 1px 6px; font-size: 13px; color: var(--muted); background: color-mix(in srgb, var(--accent) 8%, #0a0710); }
.mod-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; flex: none; }
.downloads { font-size: 14px; color: var(--muted); }
.downloads i { font-size: 11px; }
.split { display: flex; gap: 4px; }
.split .more { width: 32px; padding: 0; }
.filters { overflow-y: auto; padding-bottom: 20px; }
.filter { border: 1px solid var(--line-soft); border-top-width: 0; background: color-mix(in srgb, var(--bg) 82%, transparent); }
.filter:first-child { border-top-width: 1px; }
.filter-head { width: 100%; min-height: 46px; display: flex; align-items: center; gap: 8px; padding: 0 12px; font: 11px var(--label-font); text-transform: uppercase; letter-spacing: .8px; text-align: left; }
.filter-head span { flex: 1; }
.filter-head em { font-style: normal; color: var(--hi); max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-head i { transition: transform .15s; }
.filter.open .filter-head i { transform: rotate(180deg); }
.filter-body { max-height: 260px; overflow-y: auto; padding: 0 6px 8px; }
.filter-option { width: 100%; display: flex; align-items: center; gap: 8px; padding: 6px 8px; text-align: left; font-size: 15px; color: #d6d1e4; border-radius: var(--radius); }
.filter-option i { width: 12px; font-size: 10px; color: var(--hi); }
.filter-option:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.filter-option.active { color: #fff; }
.clear-filters { margin-top: 10px; width: 100%; }
.key-box { max-width: 520px; margin: 40px auto; padding: 26px; text-align: center; border: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 90%, transparent); border-radius: var(--radius); }
.key-box > i { font-size: 30px; color: #f16436; }
.key-box h3 { margin: 12px 0 8px; font: 14px var(--label-font); text-transform: uppercase; letter-spacing: 1px; }
.key-box p { margin: 0 0 16px; color: var(--muted); }
.key-row { display: flex; gap: 8px; margin-bottom: 12px; }
.key-row .field { flex: 1; }
.key-field { width: 260px; }

/* ---------- Skins + Capes ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, 180px); gap: 16px; overflow-y: auto; padding-bottom: 24px; }
.skin-card, .cape-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px 16px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: color-mix(in srgb, var(--bg) 82%, transparent); text-align: center; cursor: pointer; transition: border-color .15s; }
.skin-card:hover { border-color: var(--hi); }
.skin-card canvas { width: 120px; height: 240px; image-rendering: pixelated; margin-bottom: 8px; }
.skin-card strong, .cape-card strong { font-size: 19px; font-weight: 400; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skin-card small, .cape-card small { color: var(--muted); font-size: 14px; }
.skin-card .badge { position: absolute; top: 10px; right: 10px; font: normal 9px var(--label-font); text-transform: uppercase; color: var(--hi); border: 1px solid var(--line); padding: 3px 6px; }
.skin-card.add { border-style: dashed; }
.skin-card.add .plus { position: absolute; top: 112px; width: 40px; height: 40px; display: grid; place-items: center; background: #d9d9de; color: #222; border-radius: 50%; font-size: 18px; }
.cape-card { cursor: default; }
.cape-card.selected { border-color: var(--hi); }
.cape-art { width: 120px; height: 192px; display: grid; place-items: center; margin-bottom: 8px; background: #0d0a14; }
.cape-art canvas { width: 120px; height: 192px; image-rendering: pixelated; }
.cape-art.none i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #2a2733; color: #8a8597; }
.dialog-skin { height: 330px; background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); cursor: grab; }

/* ---------- Dialog-Auswahl + Segmente ---------- */
#dialog.wide { width: 640px; }
.choice { width: 100%; display: flex; align-items: center; gap: 16px; padding: 14px 18px; text-align: left; border: 1px solid var(--line-soft); border-radius: var(--radius); background: color-mix(in srgb, var(--bg) 70%, #000); }
.choice:hover { border-color: var(--hi); }
.choice > span:nth-child(2) { flex: 1; }
.choice strong { display: block; font-size: 19px; font-weight: 400; }
.choice small { color: var(--muted); font-size: 14px; }
.choice.big { padding: 20px 24px; border-color: var(--line); }
.choice.big strong { font-size: 26px; }
.choice.big small { font-size: 16px; }
.choice-icon { width: 54px; height: 54px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 18%, #07040d); color: var(--hi); font-size: 22px; border-radius: var(--radius); }
.choice:not(.big) .choice-icon { width: 34px; height: 34px; font-size: 15px; color: var(--muted); background: transparent; }
.choice > i { color: var(--hi); }
.or { display: flex; align-items: center; gap: 12px; font: 10px var(--label-font); text-transform: uppercase; color: var(--dim); }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line-soft); }
.segmented { display: flex; gap: 4px; }
.segmented button { height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 6%, #050309); font-size: 15px; }
.segmented button:hover { border-color: var(--line); }
.segmented button.active { border-color: var(--hi); background: color-mix(in srgb, var(--accent) 22%, #07040d); }
.skin-card.add strong { white-space: normal; }
#bg { transition: opacity .2s; }
.viewport:has(#main:not([data-page="play"])) #bg { opacity: .35; }

/* ---------- Update ---------- */
.update-backdrop { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(2,1,5,.72); backdrop-filter: blur(8px); animation: fade .2s ease-out; }
.update-card { width: 520px; padding: 30px 32px; display: flex; flex-direction: column; align-items: center; text-align: center; background: color-mix(in srgb, var(--accent) 10%, #06030b); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: pop .2s ease-out; }
.update-card img { width: 64px; height: 64px; image-rendering: auto; margin-bottom: 14px; }
.update-kicker { font: 11px var(--label-font); letter-spacing: 2px; text-transform: uppercase; color: var(--hi); }
.update-card h2 { margin: 6px 0 18px; font: 24px var(--label-font); letter-spacing: 2px; text-transform: uppercase; }
.update-bar { width: 100%; display: grid; grid-template-columns: repeat(32, 1fr); gap: 3px; height: 24px; padding: 3px; border: 1px solid var(--line); background: color-mix(in srgb, var(--accent) 8%, #050309); }
.update-bar i { background: color-mix(in srgb, var(--accent) 12%, #0c0814); }
.update-bar i.on { background: var(--hi); box-shadow: inset 0 -4px 0 color-mix(in srgb, var(--accent) 70%, #000); }
.update-meta { width: 100%; display: flex; justify-content: space-between; margin-top: 10px; font-size: 14px; color: var(--muted); }
.update-text { margin: 0 0 4px; color: #d6d1e4; }
.update-text.bad { color: #ff7a93; user-select: text; }
.update-notes { width: 100%; margin: 18px 0 0; padding: 14px 16px 14px 34px; text-align: left; border: 1px solid var(--line-soft); color: #d6d1e4; font-size: 15px; }
.update-notes li + li { margin-top: 4px; }
.update-actions { display: flex; gap: 10px; margin-top: 20px; }

/* ==========================================================================
   Design 2: Silber und Weiß wie das V-Logo
   Neutrale dunkle Flächen, Chrom-Buttons, lesbare Schrift für Zahlen.
   ========================================================================== */
:root {
  --bg: color-mix(in srgb, var(--accent) 3%, #0a0a0d);
  --side: color-mix(in srgb, var(--accent) 4%, #0e0e12);
  --panel: color-mix(in srgb, var(--accent) 5%, #131317);
  --panel-2: color-mix(in srgb, var(--accent) 7%, #19191e);
  --line: rgba(255,255,255,.14);
  --line-soft: rgba(255,255,255,.07);
  --hi: color-mix(in srgb, var(--accent) 80%, #ffffff);
  --head: var(--hi);
  --text: #f2f2f5;
  --muted: #9c9ca7;
  --dim: #6b6b75;
  --on-accent: #0d0d11;
  --label-font: 'Pixelify Sans', monospace;
  --title-font: 'Silkscreen', monospace;
  --chrome: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--accent) 88%, #ffffff) 40%, color-mix(in srgb, var(--accent) 62%, #5d5d68) 100%);
  --glass: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.02));
  --glass-hover: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.045));
}
body.font-system { --title-font: 'Inter', system-ui, sans-serif; }
body.font-mono { --title-font: 'JetBrains Mono', monospace; }

/* Große Überschriften behalten die Pixel-Schrift, alles mit Zahlen wird lesbar */
.app-title strong, .launch-main strong, .page-head h1, .settings-modal > header strong, .update-card h2, .key-box h3, .dialog-heading strong { font-family: var(--title-font); }
.app-title small { font-size: 12px; letter-spacing: .5px; }
.chip { font: 14px var(--label-font); letter-spacing: .4px; }
.launch-main small { font: 14px var(--label-font); letter-spacing: .6px; }
.label, .nav-item span, .section-title, .card-label, .tab, .tool-btn, .btn, .source, .filter-head, .sub-head, .cat, .subs button, .effect span, .update-kicker, .stage-sub, .news > header { letter-spacing: .6px; }
.nav-item span { font-size: 11px; }
.tab, .tool-btn, .btn, .btn.outline, .source, .cat { font-size: 14px; }
.btn.small { font-size: 13px; }
.filter-head, .sub-head, .subs button, .effect span, .card-label, .news > header { font-size: 13px; }
.stage-sub { font-size: 13px; }
.list-row .version { font: 15px var(--label-font); }
.profile-row .copy small i { color: var(--hi); }

/* Seitenleiste + Titelzeile */
#sidebar { background: linear-gradient(180deg, #121216, #0b0b0e); border-right-color: var(--line-soft); }
.brand img { filter: drop-shadow(0 4px 14px rgba(255,255,255,.18)); }
.nav-item { border-radius: calc(var(--radius) + 2px); }
.nav-item i { color: #c9c9d2; }
.nav-item span { color: var(--dim); }
.nav-item:hover { background: rgba(255,255,255,.05); }
.nav-item.active { background: var(--glass); border-color: var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 1px rgba(0,0,0,.4); }
.nav-item.active i { color: #fff; filter: drop-shadow(0 0 8px rgba(255,255,255,.35)); }
.nav-item.active span { color: #fff; }
.topbar { background: rgba(10,10,13,.85); backdrop-filter: blur(8px); border-bottom-color: var(--line-soft); }

/* Zweitrangige Buttons: dunkles Glas */
.btn, .chip, .tool-btn, .tab, .icon-btn, .btn.outline, .btn.small, .segmented button, .sources, .launch-more, .pose, .font-option, .effect, .custom-color {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06); color: var(--text);
}
.btn:hover, .chip:hover, .tool-btn:hover, .tab:hover, .icon-btn:hover, .btn.outline:hover, .btn.small:hover, .segmented button:hover, .pose:hover, .font-option:hover, .effect:hover { background: var(--glass-hover); border-color: rgba(255,255,255,.26); color: #fff; }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.danger:hover { background: linear-gradient(180deg, #5a1424, #3a0c17); border-color: #b23a55; }
.chip.square { color: #e6e6ec; }

/* Hauptaktionen: Chrom wie das Logo */
.launch-main, .btn.hot, .tab.active, .segmented button.active, .tool-btn.active, .pose.active {
  background: var(--chrome); color: var(--on-accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, #000);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -3px 0 rgba(0,0,0,.18), 0 10px 28px -14px color-mix(in srgb, var(--accent) 70%, transparent);
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}
.launch-main:hover, .btn.hot:hover, .tab.active:hover, .segmented button.active:hover { background: var(--chrome); color: var(--on-accent); filter: brightness(1.06); border-color: color-mix(in srgb, var(--accent) 35%, #000); }
.launch-main:active, .btn.hot:active { transform: translateY(1px); filter: brightness(.97); }
.launch-main small { color: color-mix(in srgb, var(--on-accent) 68%, transparent); text-shadow: none; }
.launch-main { border-bottom-width: 1px; }
.launch-more { border-left: 0; }
.launch-more:hover { background: var(--glass-hover); }
.launch { box-shadow: 0 18px 40px -20px rgba(0,0,0,.9); }

/* Schalter, Regler, Felder */
.switch { background: rgba(255,255,255,.06); border-color: var(--line); border-radius: 999px; width: 42px; }
.switch i { border-radius: 50%; background: #8c8c96; }
.switch[aria-checked="true"] { background: var(--chrome); border-color: color-mix(in srgb, var(--accent) 35%, #000); }
.switch[aria-checked="true"] i { background: var(--on-accent); transform: translateX(18px); }
.range::-webkit-slider-runnable-track { background: linear-gradient(to right, var(--hi) var(--fill), rgba(255,255,255,.1) var(--fill)); }
.range::-webkit-slider-thumb { background: var(--chrome); border: 1px solid rgba(0,0,0,.4); border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.field, .search, .searchbar, .path-row input { background: rgba(0,0,0,.35); border-color: var(--line); }
.field:focus, .searchbar:focus-within { border-color: rgba(255,255,255,.4); }
.swatch.active, .custom-color.active { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.effect.active { background: var(--glass-hover); border-color: rgba(255,255,255,.55); }
.effect.active::after { background: var(--chrome); color: var(--on-accent); }
.font-option.active { border-color: rgba(255,255,255,.55); }

/* Listen, Karten, Fenster */
.list-row, .mod-list, .filter, .skin-card, .cape-card, .news-card .card-art, .wardrobe-panel { border-color: var(--line-soft); }
.list-row.selected { border-color: var(--line); box-shadow: inset 3px 0 0 var(--hi); }
.list-row .version, .profile-icon { border-radius: var(--radius); }
.cat.active { background: var(--glass); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.cat.active i, .sub-head, .popover .label, .rpc-field span, .update-kicker, .wardrobe-panel .label { color: var(--hi); }
.subs button.active::before { background: #fff; }
.settings-modal, .popover, #dialog, .update-card { background: linear-gradient(180deg, #16161b, #0f0f13); border-color: var(--line); }
.settings-modal > header, .dialog-heading { background: linear-gradient(180deg, #1c1c22, #141418); border-bottom-color: var(--line); }
.settings-modal > header .open-dir { color: var(--muted); }
.update-bar i.on, .bar i.on { background: var(--chrome); box-shadow: none; }
#toast { background: linear-gradient(180deg, #1c1c22, #141418); border-color: var(--line); }
.news { background: rgba(10,10,13,.88); }
.news-card:hover .card-art { border-color: rgba(255,255,255,.5); }
.nametag { background: rgba(0,0,0,.55); border-radius: var(--radius); }
.anim-switch { font-size: 14px; color: var(--muted); }

/* Studio-Hintergrund (Standard): Spot hinter der Figur, Boden, leichter Schleier */
#bg .studio { position: absolute; inset: 0; background:
  radial-gradient(ellipse 30% 9% at 36% 79%, rgba(0,0,0,.75), transparent 70%),
  radial-gradient(ellipse 38% 55% at 36% 42%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
  radial-gradient(ellipse 120% 90% at 36% 30%, #17171c 0%, #0b0b0e 55%, #060608 100%); }
#bg .studio::after { content: ''; position: absolute; inset: 0; opacity: .5; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 4px 4px; mask-image: radial-gradient(ellipse at 36% 40%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 36% 40%, #000 0%, transparent 70%); }
.viewport:has(#main:not([data-page="play"])) #bg { opacity: .55; }
.retro .plane { --grid: color-mix(in srgb, var(--accent) 60%, transparent); opacity: .22; }

/* Mods: Ziel-Profil */
.target-bar { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 9px 12px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: rgba(255,255,255,.03); color: var(--muted); font-size: 15px; }
.target-bar i { color: var(--hi); }
.target-bar select { height: 32px; padding: 0 8px; background: rgba(0,0,0,.4); color: #fff; border: 1px solid var(--line); border-radius: var(--radius); font: 15px var(--label-font); outline: none; cursor: pointer; }
.target-bar select option { background: #141418; }
.target-bar small { margin-left: auto; color: var(--dim); font-size: 13px; }
.mods-main .toolbar { margin-bottom: 10px; padding-bottom: 0; }

/* Skins in 3D */
.skin-card canvas { width: 132px; height: 220px; image-rendering: auto; margin-bottom: 10px; filter: drop-shadow(0 10px 12px rgba(0,0,0,.55)); }
.skin-card canvas.ghost { filter: brightness(.18) grayscale(1); opacity: .9; }
.skin-card { background: radial-gradient(ellipse 70% 55% at 50% 40%, rgba(255,255,255,.06), transparent 70%), rgba(10,10,13,.8); }
.skin-card:hover { border-color: rgba(255,255,255,.4); transform: translateY(-2px); }
.skin-card.add .plus { top: 104px; background: var(--chrome); color: var(--on-accent); }
.skin-card .badge, .profile-row .copy strong em { color: var(--hi); border-color: var(--line); border-radius: var(--radius); }

/* Startbildschirm vor dem Hauptmenü (deckend, kein Weichzeichner, damit nichts flackert) */
.update-backdrop.boot { background: radial-gradient(ellipse 60% 55% at 50% 42%, #17171c 0%, #0b0b0e 60%, #060608 100%); backdrop-filter: none; animation: none; }
.update-backdrop.boot .update-card { background: transparent; border-color: transparent; box-shadow: none; animation: fade .3s ease-out; }
.update-backdrop.closing { opacity: 0; transition: opacity .2s ease-out; }
.update-card img { width: 84px; height: 84px; filter: drop-shadow(0 8px 24px rgba(255,255,255,.18)); }
.update-meta { margin-top: 12px; }
.update-status.bad { color: #ff7a93; user-select: text; }
.update-bar[hidden] + .update-meta { justify-content: center; }

/* Installierte Inhalte im Profil */
.btn.small.is-installed { background: linear-gradient(180deg, #1f4d33, #163826); border-color: #2f7a50; color: #b9f5d0; }
.btn.small.is-installed:hover { background: linear-gradient(180deg, #25603f, #1b4630); border-color: #3a9663; color: #fff; }
.target-bar > .btn.small:first-child { margin-right: 6px; }
.mod-row.installed .mod-copy p { color: var(--muted); }
.mod-row.installed .tags span { font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.update-bar[hidden], .update-notes[hidden], .update-actions[hidden] { display: none; }

/* Modloader */
.loader-pick { flex-wrap: wrap; }
.loader-pick button { flex: 1; justify-content: center; }
.loader-hint { color: var(--muted); font-size: 14px; min-height: 0; }
.loader-hint:empty { display: none; }
.link-inline { color: var(--hi); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.loader-tag.fabric { color: #e3c89c; } .loader-tag.quilt { color: #c7a3ff; } .loader-tag.forge { color: #8fb7ff; } .loader-tag.neoforge { color: #ffae6b; }
.filter.locked .filter-head { cursor: default; color: var(--muted); }
.filter.locked .filter-head em { color: #fff; }
.filter.locked .filter-head i { transform: none; font-size: 11px; color: var(--dim); }
.btn.small.blocked { opacity: 1; color: #ff9aa9; background: rgba(120, 20, 40, .18); border-color: rgba(255, 92, 122, .35); cursor: not-allowed; }
.target-bar small.warn { color: #ffb4c0; display: flex; align-items: center; gap: 6px; }
.mod-row.mismatch { background: rgba(120, 20, 40, .12); }
.warn-tag { color: #ffb4c0 !important; background: rgba(120, 20, 40, .35) !important; }

/* Keine Ligaturen: Pixelify Sans macht aus „fi“/„fl“ sonst ein Zeichen, das wie „A“ aussieht („ProAl“ statt „Profil“). */
*, *::before, *::after, input, select, button, textarea { font-variant-ligatures: none; font-feature-settings: "liga" 0, "clig" 0, "dlig" 0, "calt" 0; }

/* Versteckte Elemente bleiben versteckt, auch wenn eine Regel display setzt (z. B. Loader-Version bei Vanilla). */
[hidden] { display: none !important; }

/* ---------- Profil-Seite ---------- */
.profile-page { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.crumbs { display: flex; align-items: center; gap: 10px; padding: 14px 28px; border-bottom: 1px solid var(--line-soft); font-size: 15px; color: var(--muted); }
.crumbs b { color: #fff; font-weight: 400; }
.crumb-back { display: flex; align-items: center; gap: 8px; color: var(--muted); font: 14px var(--label-font); text-transform: uppercase; letter-spacing: .6px; }
.crumb-back:hover { color: #fff; }
.crumb-actions { margin-left: auto; display: flex; gap: 4px; }
.profile-top { display: flex; align-items: center; gap: 20px; padding: 22px 28px 16px; }
.profile-icon.big { width: 96px; height: 96px; font-size: 42px; }
.profile-title { flex: 1; min-width: 0; }
.profile-title h1 { margin: 0 0 10px; font: 34px var(--title-font); letter-spacing: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.lock-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: rgba(255,255,255,.03); font: 15px var(--label-font); color: #d6d1e4; }
.lock-chip .fa-lock { font-size: 10px; color: var(--dim); }
.profile-actions { display: flex; align-items: center; gap: 10px; }
.profile-actions .launch-main { width: 200px; height: 56px; }
.profile-actions .launch-main strong { font-size: 17px; display: flex; gap: 10px; align-items: center; }
.icon-btn.big { width: 56px; height: 56px; font-size: 18px; }
.stats { display: flex; gap: 10px; padding: 0 28px 18px; border-bottom: 1px solid var(--line-soft); }
.stat { display: flex; align-items: center; gap: 14px; min-width: 170px; padding: 12px 16px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: rgba(255,255,255,.025); }
.stat > i { font-size: 18px; color: var(--muted); }
.stat small { display: block; font: 12px var(--label-font); text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.stat b { font-weight: 400; font-size: 18px; }
.profile-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 250px; }
.profile-main { display: flex; flex-direction: column; min-height: 0; padding: 16px 20px 0 28px; }
.profile-main .toolbar { margin-bottom: 12px; padding-bottom: 12px; }
.profile-section-title { margin: 0; font: 16px var(--title-font); text-transform: uppercase; letter-spacing: 1px; }
.profile-list { flex: 1; overflow-y: auto; padding-bottom: 24px; }
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.content-card { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: rgba(10,10,13,.85); transition: opacity .15s, border-color .15s; }
.content-card:hover { border-color: var(--line); }
.content-card .mod-icon { width: 56px; height: 56px; font-size: 22px; }
.content-card.off { opacity: .5; }
.content-card.mismatch { background: rgba(120, 20, 40, .14); }
.content-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.content-copy strong { font-size: 18px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content-copy small { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content-copy em { align-self: flex-start; font-style: normal; font-size: 13px; padding: 1px 6px; }
.icon-btn.ghost-icon { width: 34px; height: 34px; background: transparent; border-color: transparent; box-shadow: none; color: var(--dim); }
.icon-btn.ghost-icon:hover { color: #ff9aa9; border-color: var(--line-soft); }
.update-btn { width: 34px; height: 34px; background: linear-gradient(180deg, #e7c76a, #b8902c); color: #1b1404; border-color: #8a6a17; }
.update-btn:hover { filter: brightness(1.08); }
.profile-side { border-left: 1px solid var(--line-soft); padding: 16px 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.side-label { margin: 10px 10px 6px; font: 13px var(--label-font); text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.side-item { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: var(--radius); border: 1px solid transparent; font: 15px var(--label-font); text-transform: uppercase; letter-spacing: .4px; color: #d6d1e4; text-align: left; }
.side-item i { width: 18px; text-align: center; color: var(--muted); }
.side-item span { flex: 1; }
.side-item small { color: var(--muted); font-size: 13px; }
.side-item:hover { background: rgba(255,255,255,.05); }
.side-item.active { background: var(--glass); border-color: var(--line); color: #fff; }
.side-item.active i { color: #fff; }
.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.shot { display: flex; flex-direction: column; gap: 6px; padding: 6px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: rgba(10,10,13,.85); color: var(--muted); font-size: 13px; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; image-rendering: auto; border-radius: calc(var(--radius) * .6); }
.shot:hover { border-color: var(--line); color: #fff; }
.log-list { display: flex; flex-direction: column; gap: 6px; }
.log-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: rgba(10,10,13,.85); text-align: left; }
.log-row span { flex: 1; font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.log-row small { color: var(--muted); font-size: 13px; }
.log-row:hover { border-color: var(--line); }
.profile-row .copy, .profile-row .profile-icon { cursor: pointer; }
.profile-row .copy:hover strong { text-decoration: underline; text-underline-offset: 4px; }
