/* Blockhaus – Panel-Styles. Handgeschrieben, kein Framework. */

:root {
  --font: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;

  --ink: #f3efe6;
  --ink-2: rgba(243, 239, 230, .72);
  --ink-3: rgba(243, 239, 230, .46);
  --bg: #0b130f;
  --glass: rgba(255, 255, 255, .075);
  --glass-2: rgba(255, 255, 255, .12);
  --glass-strong: rgba(24, 34, 28, .62);
  --rim: rgba(255, 255, 255, .17);
  --rim-hi: rgba(255, 255, 255, .42);
  --shade: rgba(0, 0, 0, .42);
  --field: rgba(0, 0, 0, .26);

  --amber: #f0a93b;
  --amber-ink: #2a1a03;
  --moss: #7fcf88;
  --coral: #ff7a66;
  --sky: #7cc4ff;
  --ok: #7fd68c;
  --warn: #f2b84b;
  --bad: #ff7a66;

  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --r-btn: 14px;
  --blur: 26px;
  --pad: 20px;
  --orb1: rgba(240, 169, 59, .42);
  --orb2: rgba(90, 170, 120, .34);
  --orb3: rgba(40, 110, 100, .46);
  --orb4: rgba(190, 90, 60, .26);
  --font-display: var(--font-serif);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

[data-theme="papier"] {
  --ink: #26221a;
  --ink-2: rgba(38, 34, 26, .74);
  --ink-3: rgba(38, 34, 26, .5);
  --bg: #ece6d8;
  --glass: rgba(255, 255, 255, .5);
  --glass-2: rgba(255, 255, 255, .72);
  --glass-strong: rgba(255, 252, 244, .78);
  --rim: rgba(255, 255, 255, .85);
  --rim-hi: rgba(255, 255, 255, 1);
  --shade: rgba(70, 52, 20, .2);
  --field: rgba(60, 45, 20, .07);
  --amber: #d98a12;
  --amber-ink: #fff9ec;
  --moss: #2f8f43;
  --coral: #d9472f;
  --sky: #2b78c5;
  --ok: #2f8f43;
  --warn: #b97800;
  --bad: #c93b27;
  --orb1: rgba(255, 190, 90, .6); --orb2: rgba(150, 210, 160, .55); --orb3: rgba(130, 190, 200, .55); --orb4: rgba(240, 150, 120, .4);
  color-scheme: light;
}

* { box-sizing: border-box; }
svg[viewBox="0 0 24 24"] { width: 20px; height: 20px; flex: none; }
html, body { height: 100%; }
body {
  margin: 0; font: 15px/1.5 var(--font); color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 .6em; }
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--amber) 45%, transparent); }
code, kbd { font-family: var(--font-mono); font-size: .88em; background: var(--field); padding: .1em .4em; border-radius: 6px; }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.mono { font-family: var(--font-mono); }
.hide { display: none !important; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.right { margin-left: auto; }
.gap-lg { gap: 18px; }
.small { font-size: .86em; }
.center { text-align: center; }

/* ---------- Hintergrund: Wald bei Dämmerung, mit Körnung ---------- */
.scene { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: var(--bg); }
.scene::before, .scene::after { content: ""; position: absolute; inset: -20%; }
.scene::before {
  background:
    radial-gradient(40% 36% at 18% 12%, var(--orb1), transparent 70%),
    radial-gradient(34% 30% at 86% 18%, var(--orb2), transparent 70%),
    radial-gradient(46% 40% at 70% 92%, var(--orb3), transparent 70%),
    radial-gradient(30% 28% at 8% 86%, var(--orb4), transparent 70%);
  animation: drift 38s ease-in-out infinite alternate;
}
.scene::after {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.5'/></svg>");
  opacity: .07; mix-blend-mode: overlay; inset: 0;
}
@keyframes drift { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(3%, 2%, 0) scale(1.08); } }

/* ---------- Glas ---------- */
.glass {
  position: relative; background: var(--glass); border-radius: var(--r-lg);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.7); backdrop-filter: blur(var(--blur)) saturate(1.7);
  box-shadow: inset 0 1px 0 var(--rim-hi), inset 0 0 0 1px var(--rim), inset 0 -10px 24px -14px rgba(0, 0, 0, .35), 0 18px 40px -18px var(--shade);
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .20), rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .06));
  mix-blend-mode: soft-light;
}
[data-theme="papier"] .glass { box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px var(--rim), 0 16px 34px -18px var(--shade); }
.card { padding: var(--pad); }
.card > h3 { font-size: 1rem; margin-bottom: 12px; }
.card.tight { padding: 14px; }
.inset { background: var(--field); border-radius: var(--r-md); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .25); }

/* ---------- Layout ---------- */
#app { min-height: 100%; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; padding: 18px; max-width: 1560px; margin: 0 auto; }
.side { position: sticky; top: 18px; height: calc(100vh - 36px); padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; overflow: auto; }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 16px; }
.brand svg { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35)); }
.brand b { font-family: var(--font-display); font-size: 1.28rem; font-weight: 700; letter-spacing: -.01em; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav a, .nav button {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--r-btn); color: var(--ink-2);
  background: none; border: 0; cursor: pointer; text-align: left; text-decoration: none; transition: background .2s, color .2s, transform .35s var(--spring);
}
.nav a:hover, .nav button:hover { background: var(--glass-2); color: var(--ink); text-decoration: none; }
.nav a.on { background: var(--glass-2); color: var(--ink); box-shadow: inset 0 1px 0 var(--rim-hi), inset 0 0 0 1px var(--rim); }
.nav a:active { transform: scale(.97); }
.nav .count { margin-left: auto; font-size: .78rem; color: var(--ink-3); }
.nav-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); padding: 14px 12px 4px; }
.side .spacer { flex: 1; }
.me { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: var(--field); }
.me .who { line-height: 1.2; min-width: 0; }
.me .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 700; flex: none; color: #fff;
  background: linear-gradient(145deg, hsl(var(--h, 30) 62% 52%), hsl(calc(var(--h, 30) + 30) 55% 36%)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); }
.main { min-width: 0; padding-bottom: 60px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin: 8px 4px 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 1.9rem; }
.page-head .sub { color: var(--ink-2); }
.hello { font-family: var(--font-display); font-style: italic; font-size: 2.1rem; letter-spacing: -.01em; }

/* ---------- Buttons & Formulare ---------- */
.btn {
  --b: var(--glass-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: var(--r-btn); cursor: pointer; border: 0;
  background: var(--b); color: var(--ink); font-weight: 600; white-space: nowrap;
  box-shadow: inset 0 1px 0 var(--rim-hi), inset 0 0 0 1px var(--rim), 0 6px 14px -8px var(--shade);
  transition: transform .35s var(--spring), filter .2s, background .2s;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: scale(.95); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn.primary { --b: var(--amber); color: var(--amber-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 8px 18px -8px color-mix(in srgb, var(--amber) 70%, transparent); }
.btn.danger { --b: color-mix(in srgb, var(--bad) 80%, black 0%); color: #fff; }
.btn.ghost { --b: transparent; box-shadow: none; }
.btn.ghost:hover { --b: var(--glass-2); }
.btn.sm { padding: 6px 11px; border-radius: 11px; font-size: .88rem; }
.btn.icon { padding: 8px; }
.btn svg { width: 18px; height: 18px; flex: none; }

label.field { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; color: var(--ink-2); }
label.field > span.hint { color: var(--ink-3); font-size: .82rem; }
input[type="text"], input[type="password"], input[type="number"], input[type="search"], input[type="time"], input:not([type]), select, textarea {
  width: 100%; padding: 10px 13px; border-radius: var(--r-btn); border: 0; outline: 0; background: var(--field); color: var(--ink);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .3), inset 0 0 0 1px var(--rim); transition: box-shadow .2s;
}
input:focus, select:focus, textarea:focus { box-shadow: inset 0 1px 3px rgba(0, 0, 0, .3), inset 0 0 0 1.5px var(--amber), 0 0 0 4px color-mix(in srgb, var(--amber) 22%, transparent); }
select { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
select option { background: #18221c; color: #f3efe6; }
textarea { resize: vertical; min-height: 90px; font-family: var(--font-mono); font-size: .9rem; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input[type="range"] { width: 100%; accent-color: var(--amber); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px 18px; }

.switch { position: relative; width: 46px; height: 28px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--field); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .35), inset 0 0 0 1px var(--rim); transition: background .25s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); transition: transform .4s var(--spring); }
.switch input:checked + i { background: var(--moss); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 2px solid var(--amber); outline-offset: 2px; }
.toggle-row { display: flex; align-items: center; gap: 14px; padding: 8px 0; }
.toggle-row .grow small { display: block; color: var(--ink-3); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 13px; border-radius: 99px; background: var(--field); border: 0; cursor: pointer; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rim); transition: all .25s var(--spring); }
.chip:hover { color: var(--ink); }
.chip.on { background: var(--amber); color: var(--amber-ink); box-shadow: none; transform: scale(1.04); }

/* Tabs als Glas-Pille */
.tabs { display: flex; gap: 2px; padding: 5px; border-radius: 20px; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 15px; color: var(--ink-2); white-space: nowrap; text-decoration: none; transition: all .25s; position: relative; z-index: 1; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { background: var(--glass-2); color: var(--ink); box-shadow: inset 0 1px 0 var(--rim-hi), inset 0 0 0 1px var(--rim), 0 4px 10px -4px var(--shade); }
.tabs a svg { width: 17px; height: 17px; }

/* ---------- Badges, Status ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: .8rem; background: var(--field); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rim); }
.badge.ok { color: var(--ok); } .badge.warn { color: var(--warn); } .badge.bad { color: var(--bad); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); flex: none; }
.dot.running { background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: pulse 2.4s infinite; }
.dot.starting, .dot.stopping, .dot.installing { background: var(--warn); animation: blink 1s infinite; }
.dot.crashed, .dot.failed { background: var(--bad); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes blink { 50% { opacity: .35; } }

.bar { height: 8px; border-radius: 9px; background: var(--field); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3); }
.bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--moss), var(--amber)); transition: width .6s var(--ease); min-width: 3px; }
.bar.hot > i { background: linear-gradient(90deg, var(--amber), var(--coral)); }

/* ---------- Dashboard ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.server-card { display: block; padding: 18px; color: inherit; text-decoration: none; transition: transform .4s var(--spring), box-shadow .3s; overflow: hidden; }
.server-card:hover { transform: translateY(-4px) rotate(-.2deg); text-decoration: none; }
.server-card .glow { position: absolute; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: hsl(var(--h, 30) 80% 55% / .28); filter: blur(40px); pointer-events: none; }
.server-card .top { display: flex; gap: 14px; align-items: center; position: relative; }
.sicon { width: 56px; height: 56px; border-radius: 15px; flex: none; image-rendering: pixelated; object-fit: cover; box-shadow: 0 6px 14px -6px var(--shade), inset 0 0 0 1px var(--rim); display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; color: #fff;
  background: linear-gradient(145deg, hsl(var(--h, 30) 60% 50%), hsl(calc(var(--h, 30) + 40) 50% 32%)); }
.server-card h3 { font-size: 1.12rem; }
.server-card .meta { display: flex; gap: 12px; margin-top: 16px; position: relative; }
.stat { flex: 1; }
.stat small { display: block; color: var(--ink-3); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
.stat b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.tile-add { display: grid; place-items: center; min-height: 170px; border: 2px dashed var(--rim); border-radius: var(--r-lg); color: var(--ink-2); text-decoration: none; transition: all .3s var(--spring); gap: 6px; text-align: center; padding: 20px; }
.tile-add:hover { border-color: var(--amber); color: var(--amber); transform: scale(1.02); text-decoration: none; }
.tile-add svg { width: 34px; height: 34px; }
.sys { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.sys .stat b { display: block; margin: 2px 0 6px; }

/* ---------- Konsole ---------- */
.console { font-family: var(--font-mono); font-size: .82rem; line-height: 1.5; height: min(62vh, 640px); overflow: auto; padding: 14px 16px; background: rgba(5, 9, 7, .72); border-radius: var(--r-md); box-shadow: inset 0 2px 8px rgba(0, 0, 0, .5), inset 0 0 0 1px var(--rim); word-break: break-word; color: #dfe8df; }
[data-theme="papier"] .console { background: rgba(28, 34, 28, .88); }
.console div { white-space: pre-wrap; }
.console .sys { color: #8fb4ff; } .console .err { color: #ff9a8a; } .console .ok { color: #9fe3a6; } .console .in { color: #ffd479; } .console .old { opacity: .6; }
.console .warn-l { color: #f2cf7a; } .console .err-l { color: #ff9a8a; }
.cmdline { display: flex; gap: 10px; margin-top: 12px; }
.cmdline input { font-family: var(--font-mono); }

/* ---------- Dateien ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: .92rem; }
.crumbs a, .crumbs span.sep { color: var(--ink-2); } .crumbs span.sep { opacity: .4; }
.crumbs a:last-child { color: var(--ink); font-weight: 600; }
.flist { width: 100%; border-collapse: collapse; }
.flist td { padding: 9px 10px; border-top: 1px solid var(--rim); } .flist tr:first-child td { border-top: 0; }
.flist tr.item { cursor: pointer; } .flist tr.item:hover td { background: var(--glass); }
.flist td.n { display: flex; align-items: center; gap: 10px; } .flist td.n svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.flist tr.dir td.n svg { color: var(--amber); }
.flist .actions { opacity: 0; transition: opacity .2s; white-space: nowrap; text-align: right; } .flist tr:hover .actions { opacity: 1; }
@media (hover: none) { .flist .actions { opacity: 1; } }
.drop { border: 2px dashed var(--rim); border-radius: var(--r-lg); padding: 28px; text-align: center; color: var(--ink-2); transition: all .25s var(--spring); cursor: pointer; }
.drop.over { border-color: var(--amber); background: color-mix(in srgb, var(--amber) 14%, transparent); transform: scale(1.015); color: var(--ink); }
.drop svg { width: 38px; height: 38px; color: var(--amber); margin-bottom: 6px; }
.editor { width: 100%; min-height: 56vh; font-family: var(--font-mono); font-size: .86rem; line-height: 1.5; tab-size: 2; white-space: pre; overflow: auto; }

/* ---------- Tabellen & Listen ---------- */
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 8px 10px; }
table.t td { padding: 10px; border-top: 1px solid var(--rim); vertical-align: middle; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--glass); box-shadow: inset 0 0 0 1px var(--rim); }
.list-item + .list-item { margin-top: 8px; }
.thumb { width: 42px; height: 42px; border-radius: 11px; object-fit: cover; background: var(--field); flex: none; }

/* ---------- Modal, Toast ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .45); backdrop-filter: blur(6px); animation: fade .2s; }
.modal { width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 24px; background: var(--glass-strong); animation: pop .45s var(--spring); }
.modal.wide { width: min(860px, 100%); }
.modal h2 { font-size: 1.25rem; margin-bottom: 10px; }
.modal .foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: scale(.9) translateY(10px); } }
#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; max-width: min(380px, 90vw); padding: 12px 16px; background: var(--glass-strong); animation: slide .5s var(--spring); display: flex; gap: 10px; align-items: flex-start; border-radius: 18px; }
.toast.err { box-shadow: inset 0 0 0 1.5px var(--bad), 0 12px 28px -12px var(--shade); }
.toast.ok svg { color: var(--ok); } .toast.err svg { color: var(--bad); }
.toast svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.toast.out { opacity: 0; transform: translateX(30px); transition: all .35s; }
@keyframes slide { from { opacity: 0; transform: translateY(20px) scale(.9); } }
.achv { align-items: center; padding: 12px 18px 12px 12px; border-radius: 14px; background: #2b2b2b; color: #fff; box-shadow: inset 0 0 0 2px #7c7c7c, 0 14px 30px -10px #000; font-family: var(--font); }
.achv .ico { width: 44px; height: 44px; border-radius: 8px; background: #4a4a4a; display: grid; place-items: center; box-shadow: inset 0 0 0 2px #1a1a1a; flex: none; }
.achv .ico svg { width: 26px; height: 26px; color: #ffd046; margin: 0; }
.achv small { display: block; color: #ffd046; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.achv b { font-size: .98rem; }

/* ---------- Auth-Seiten ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth { width: min(440px, 100%); padding: 32px 30px; }
.auth .brand { padding: 0 0 18px; }
.auth h1 { font-size: 1.6rem; margin-bottom: 4px; }
.auth form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.err-box { padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--bad) 22%, transparent); color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 60%, transparent); font-size: .92rem; }
.note-box { padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--amber) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--amber) 40%, transparent); font-size: .92rem; }
.qr { background: #fff; padding: 10px; border-radius: 14px; width: 190px; height: 190px; margin: 0 auto; } .qr svg { width: 100%; height: 100%; display: block; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-family: var(--font-mono); padding: 14px; border-radius: 14px; background: var(--field); }
.otp { letter-spacing: .5em; text-align: center; font-size: 1.4rem; font-family: var(--font-mono); }

/* ---------- Wizard ---------- */
.steps { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.steps span { padding: 5px 13px; border-radius: 99px; font-size: .84rem; background: var(--field); color: var(--ink-3); }
.steps span.on { background: var(--amber); color: var(--amber-ink); font-weight: 700; } .steps span.done { color: var(--ink); }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.choice { text-align: left; padding: 15px; border-radius: var(--r-md); border: 0; cursor: pointer; background: var(--glass); box-shadow: inset 0 0 0 1px var(--rim); transition: all .3s var(--spring); display: flex; flex-direction: column; gap: 4px; }
.choice:hover { transform: translateY(-3px); background: var(--glass-2); }
.choice.on { box-shadow: inset 0 0 0 2px var(--amber), 0 10px 22px -12px var(--amber); background: color-mix(in srgb, var(--amber) 12%, var(--glass)); }
.choice b { font-size: 1.02rem; } .choice small { color: var(--ink-2); line-height: 1.35; }
.vlist { max-height: 270px; overflow: auto; display: flex; flex-wrap: wrap; gap: 8px; padding: 4px; }

/* ---------- Sonstiges ---------- */
.empty { text-align: center; padding: 44px 20px; color: var(--ink-2); }
.empty svg { width: 54px; height: 54px; color: var(--ink-3); margin-bottom: 8px; }
.spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--rim); border-top-color: var(--amber); animation: rot .8s linear infinite; display: inline-block; }
@keyframes rot { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--glass), var(--glass-2), var(--glass)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 12px; min-height: 18px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.pixel-grid { display: grid; grid-template-columns: repeat(16, 1fr); width: min(320px, 100%); aspect-ratio: 1; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--rim); touch-action: none; cursor: crosshair; }
.pixel-grid i { background-image: linear-gradient(45deg, #0002 25%, transparent 25%, transparent 75%, #0002 75%), linear-gradient(45deg, #0002 25%, transparent 25%, transparent 75%, #0002 75%); background-size: 8px 8px; background-position: 0 0, 4px 4px; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; max-width: 320px; } .swatches button { width: 26px; height: 26px; border-radius: 8px; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); transition: transform .25s var(--spring); } .swatches button.on { transform: scale(1.25); box-shadow: 0 0 0 2px var(--amber); }
.motd-prev { background: #1a1a1a url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><rect width='16' height='16' fill='%232b2118'/><rect width='8' height='8' fill='%23332819'/><rect x='8' y='8' width='8' height='8' fill='%23332819'/></svg>"); padding: 10px 14px; border-radius: 8px; font-family: var(--font-mono); font-size: .95rem; color: #aaa; min-height: 3.4em; line-height: 1.35; box-shadow: inset 0 0 0 2px #000; }
.creeper { position: fixed; bottom: -4px; left: -80px; width: 64px; height: 64px; z-index: 70; pointer-events: none; animation: creep 5s linear forwards; image-rendering: pixelated; }
@keyframes creep { to { left: calc(100vw + 80px); } }
.mobile-bar { display: none; }

/* ---------- Mobil ---------- */

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
