:root {
  --bg: #050505;
  --panel: #111111;
  --item: #1c1c1c;
  --item-hover: #262626;
  --border: #2a2a2a;
  --text: #f2f2f2;
  --muted: #8f8f8f;
  --accent: #ff8a00;
  --accent-text: #160a00;
  --ok: #22c55e;
  --danger: #ef4444;
  --warn: #facc15;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 14px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.error { color: var(--danger); min-height: 1em; }
h2 { margin: 0 0 16px; font-size: 20px; }
h3 { margin: 0 0 12px; font-size: 15px; }
code, pre { font-family: ui-monospace, Consolas, monospace; }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-box { width: 100%; max-width: 340px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 24px; display: grid; gap: 12px; }
.login-box h1 { margin: 0; font-size: 22px; display: flex; align-items: center; gap: 10px; }
.logo { width: 32px; height: 32px; border-radius: 8px; }

/* Layout */
.layout { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.sidebar { background: var(--bg); border-right: 1px solid var(--border); padding: 14px; overflow-y: auto; }
.side-head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); margin-bottom: 10px; font-weight: 600; }
.main { padding: 24px; overflow-y: auto; max-width: 1000px; width: 100%; }

.profile { margin-bottom: 10px; }
.profile-head .owner { color: var(--muted); font-weight: 500; }
.me { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.me-box { font-size: 13px; display: grid; gap: 2px; }
.banner { border-color: var(--warn); background: #2a2205; }
.profile-head { display: flex; align-items: center; gap: 8px; width: 100%; background: var(--item); border: 0; color: var(--text); padding: 10px 12px; border-radius: 10px; cursor: pointer; font-weight: 700; font-size: 14px; text-align: left; }
.profile-head:hover { background: var(--item-hover); }
.profile-head .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-head .count { font-variant-numeric: tabular-nums; }
.nav { display: grid; gap: 6px; padding: 8px 0 4px 26px; }
.nav button { display: flex; align-items: center; gap: 10px; background: var(--item); border: 0; color: var(--text); padding: 9px 12px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 14px; text-align: left; }
.nav button:hover { background: var(--item-hover); }
.nav button.active { background: var(--accent); color: var(--accent-text); }
.nav svg, .profile-head svg { width: 18px; height: 18px; flex: none; }

/* Elemente */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
label.field { display: grid; gap: 4px; color: var(--muted); font-size: 12px; }
label.check { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; margin-right: 12px; }
input, select, textarea { background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font: inherit; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
textarea { width: 100%; min-height: 90px; resize: vertical; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.btn { background: var(--item); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px; cursor: pointer; font: inherit; font-weight: 600; user-select: none; touch-action: manipulation; }
.btn:hover { background: var(--item-hover); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.danger { color: var(--danger); }
.btn.small { padding: 5px 10px; font-size: 13px; }
.icon-btn { background: none; border: 0; color: var(--text); font-size: 22px; cursor: pointer; line-height: 1; padding: 0 4px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.acc { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.acc:last-child { border-bottom: 0; }
.acc .who { flex: 1; min-width: 180px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.s-online { background: var(--ok); }
.dot.s-connecting, .dot.s-reconnecting, .dot.s-login { background: var(--warn); }
.code-box { width: 100%; background: #2a2205; border: 1px solid var(--warn); border-radius: 8px; padding: 10px; }
.code-box b { font-size: 18px; letter-spacing: 2px; }
.code-box a { color: var(--warn); }

.picker { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }

/* Chat */
.chatlog { height: 55vh; overflow-y: auto; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; white-space: pre-wrap; word-break: break-word; }
.chatlog .sys { color: var(--muted); }
.chatlog .t { color: #55555c; margin-right: 6px; }
.chat-send { display: flex; gap: 8px; margin-top: 8px; }
.chat-send input { flex: 1; }

/* Bewegung */
.stats { display: flex; gap: 18px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.stats b { color: var(--accent); }
.pad { display: grid; grid-template-columns: repeat(3, 64px); grid-template-rows: repeat(2, 48px); gap: 6px; }
.pad .btn { padding: 0; }
.btn.held { background: var(--accent); color: var(--accent-text); }

/* Inventar */
.slots { display: grid; grid-template-columns: repeat(9, minmax(0, 54px)); gap: 4px; margin-bottom: 10px; }
.slot { aspect-ratio: 1; background: #2b2b30; border: 1px solid #3a3a40; border-radius: 6px; cursor: pointer; position: relative; font-size: 9px; padding: 3px; overflow: hidden; color: var(--text); text-align: left; line-height: 1.15; }
.slot:hover { border-color: var(--accent); }
.slot.sel { outline: 2px solid var(--accent); }
.slot .cnt { position: absolute; right: 3px; bottom: 1px; font-size: 13px; font-weight: 800; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; }
.slot-img { position: absolute; inset: 14%; image-rendering: pixelated; background-size: 100% auto; background-position: top center; background-repeat: no-repeat; }
.slot-name { display: block; }
.slot.empty { opacity: .5; }

/* POV */
.pov-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.pov-main { padding: 10px; }
.pov-side .card { margin-bottom: 12px; padding: 12px; }
.pov-wrap { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: #000; }
.pov-frame { display: block; width: 100%; aspect-ratio: 16 / 10; border: 0; background: #000; }
.pov-overlay { position: absolute; inset: 0; cursor: grab; touch-action: none; }
.pov-overlay:active { cursor: grabbing; }
.pov-overlay::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; transform: translate(-50%, -50%);
  background: linear-gradient(#fff, #fff) center / 2px 100% no-repeat, linear-gradient(#fff, #fff) center / 100% 2px no-repeat; opacity: .75; pointer-events: none; }
/* Einblendung: nur im Vollbild sichtbar */
.pov-hud { display: none; }
.pov-wrap:fullscreen { border: 0; border-radius: 0; background: #000; }
.pov-wrap:fullscreen .pov-frame { width: 100%; height: 100%; aspect-ratio: auto; }
.pov-wrap:fullscreen .pov-hud { display: block; position: absolute; inset: 0; pointer-events: none; }
.hud-stats { position: absolute; top: 14px; left: 14px; background: rgba(0, 0, 0, .55); padding: 6px 12px; border-radius: 8px; font-weight: 700; }
.hud-bottom { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; }
.hud-hotbar { grid-template-columns: repeat(9, 52px) !important; margin: 0 !important; background: rgba(0, 0, 0, .55); padding: 6px; border-radius: 10px; pointer-events: auto; }
.hud-hint { background: rgba(0, 0, 0, .55); padding: 4px 10px; border-radius: 6px; font-size: 12px; color: #ddd; }
.pov-empty { min-height: 260px; display: grid; place-content: center; text-align: center; gap: 4px; padding: 24px; }
.pov-side .slots { grid-template-columns: repeat(9, minmax(0, 1fr)); margin: 0; }
.chatlog.small { height: 200px; font-size: 12px; }
@media (max-width: 1000px) { .pov-layout { grid-template-columns: 1fr; } }

/* Makros */
.macro { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }
.macro:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip { background: var(--item); color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; }
.chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.lib-card { background: var(--item); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.lib-card p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.lib-head { display: flex; align-items: center; gap: 10px; }
.lib-head > div { flex: 1; min-width: 0; }
.lib-head small { display: block; color: var(--muted); font-size: 12px; }
.lib-ico { font-size: 22px; width: 34px; height: 34px; display: grid; place-items: center; background: var(--bg); border-radius: 8px; flex: none; }
.help { font-size: 12px; color: var(--muted); line-height: 1.6; }
.help code { color: var(--text); }

/* Login / Registrieren */
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; }
.auth-tabs button { padding: 8px; }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #1f1f1f; border-color: #fff; text-decoration: none; }
.google-btn:hover { background: #ececec; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.small-print { font-size: 12px; margin: 0; }
.free-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-color: var(--accent); background: #1d1000; }
.free-banner .btn { margin-left: auto; }

/* Pakete (Tier) */
.lock-badge { margin-left: auto; font-size: 10px; font-weight: 800; background: #241400; color: var(--accent); border: 1px solid #4a2a00; border-radius: 5px; padding: 1px 5px; }
.nav button.active .lock-badge { background: rgba(0, 0, 0, .25); color: var(--accent-text); border-color: transparent; }
.btn .lock-badge { margin-left: 8px; }
.locked-btn { opacity: .7; }
.tier-pill { font-size: 11px; font-weight: 800; background: var(--accent); color: var(--accent-text); border-radius: 999px; padding: 1px 8px; vertical-align: 1px; }
.locked { text-align: center; padding: 32px 20px; }
.locked .lock-ico { font-size: 40px; }
.locked ul { list-style: none; padding: 0; margin: 14px auto 20px; max-width: 360px; text-align: left; }
.locked li { padding: 5px 0 5px 24px; position: relative; }
.locked li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* Accounts: Notiz und letzter Kick */
.note { display: inline-block; background: #2a1600; color: var(--accent); border-radius: 6px; padding: 1px 7px; font-size: 12px; font-weight: 700; margin-left: 4px; }
.kick { color: #f08a8a; font-size: 12px; }

/* Chat: klickbare Server-Buttons, Favoriten */
.chat-click { background: #2a1600; color: var(--accent); border: 1px solid #5a3200; border-radius: 5px; padding: 0 6px; margin-left: 6px; cursor: pointer; font: inherit; font-size: 12px; }
.chat-click:hover { background: var(--accent); color: var(--accent-text); }
.chatlog .hidden { display: none; }
.favs { margin: 8px 0 0; align-items: center; }
.chip.fav { display: inline-flex; padding: 0; overflow: hidden; }
.chip.fav button { background: none; border: 0; color: inherit; font: inherit; padding: 5px 10px; cursor: pointer; }
.chip.fav button + button { padding: 5px 8px; border-left: 1px solid var(--border); color: var(--muted); }

/* POV: Scoreboard und Spielerliste */
.scoreboard { background: rgba(0, 0, 0, .35); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 13px; max-width: 320px; }
.scoreboard b { display: block; text-align: center; margin-bottom: 4px; }
.scoreboard div { display: flex; justify-content: space-between; gap: 12px; }
.scoreboard div span:last-child { color: #f55; font-weight: 700; }
.players { display: flex; flex-wrap: wrap; gap: 4px; font-size: 12px; }
.players span { background: var(--item); border-radius: 5px; padding: 2px 7px; }

/* Makro-Liste */
.macro-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.macro-row:last-child { border-bottom: 0; }
.macro-row .who { flex: 1; min-width: 160px; }
.switch { position: relative; width: 38px; height: 22px; flex: none; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--item-hover); border-radius: 999px; transition: background .15s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(16px); }

/* Makro-Editor */
.medit { position: fixed; inset: 0; z-index: 20; background: var(--bg); display: flex; flex-direction: column; }
.medit-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--panel); flex-wrap: wrap; }
.medit-name { min-width: 160px; width: 260px; font-weight: 700; }
.seg { display: inline-flex; background: var(--item); border-radius: 8px; padding: 3px; }
.seg button { background: none; border: 0; color: var(--muted); padding: 6px 12px; border-radius: 6px; cursor: pointer; font: inherit; font-weight: 600; }
.seg button.active { background: var(--accent); color: var(--accent-text); }
.medit-body { flex: 1; display: grid; grid-template-columns: 1fr 380px; min-height: 0; }
.medit-canvas { overflow: auto; padding: 32px 24px 80px;
  background-image: radial-gradient(circle, #262626 1px, transparent 1px); background-size: 22px 22px; }
.medit-code { width: 100%; height: 100%; min-height: 60vh; font-size: 14px; background: var(--panel); }
.medit-side { border-left: 1px solid var(--border); background: var(--panel); padding: 16px; overflow-y: auto; }
.medit-side .field { margin-top: 10px; }
.side-head2 { display: flex; align-items: center; justify-content: space-between; }
.side-head2 h3 { margin: 0; }
.side-cat { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin: 14px 0 6px; }
.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pick { display: flex; align-items: center; gap: 8px; text-align: left; background: var(--item); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 8px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; }
.pick:hover { border-color: var(--accent); }
.pick.active { border-color: var(--accent); background: #2a1600; }
.pick span { width: 26px; height: 26px; display: grid; place-items: center; background: var(--bg); border-radius: 6px; flex: none; }

.mn-flow { max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; align-items: stretch; }
.mn-card { display: flex; align-items: center; gap: 12px; background: var(--item); border: 2px solid var(--border); border-radius: 12px;
  padding: 12px 14px; cursor: pointer; position: relative; }
.mn-card:hover { border-color: #4a4a4a; }
.mn-card.sel, .mn-block.sel > .mn-blockhead { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 138, 0, .18); }
.mn-card b { display: block; }
.mn-card span:not(.mn-ico) { display: block; color: var(--muted); font-size: 13px; word-break: break-word; }
.mn-card small { display: block; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.mn-ico { width: 34px; height: 34px; display: grid; place-items: center; background: var(--bg); border-radius: 8px; font-size: 18px; flex: none; }
.mn-ico.big { width: 46px; height: 46px; font-size: 24px; background: var(--accent); }
.mn-trigger { border-color: var(--accent); padding: 16px; }
.mn-trigger b { font-size: 18px; }
.mn-comment { background: transparent; border-style: dashed; }
.mn-link { display: flex; justify-content: center; position: relative; height: 34px; align-items: center; }
.mn-link::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #3a3a3a; }
.mn-link.last { height: 40px; }
.mn-link.last::before { bottom: 50%; }
.mn-plus { position: relative; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #3a3a3a; background: var(--panel); color: var(--text);
  cursor: pointer; font-size: 16px; line-height: 1; display: grid; place-items: center; opacity: .75; }
.mn-plus:hover, .mn-plus.active { opacity: 1; border-color: var(--accent); background: var(--accent); color: var(--accent-text); }
.mn-block { border: 2px dashed #3a3a3a; border-radius: 14px; padding: 8px; background: rgba(255, 255, 255, .015); }
.mn-blockhead { border-style: solid; }
.mn-inner { padding: 0 6px 0 22px; }
.mn-hint { text-align: center; }
@media (max-width: 860px) {
  .medit-body { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .medit-side { border-left: 0; border-top: 1px solid var(--border); max-height: 45vh; }
}

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--item); border: 1px solid var(--border); padding: 10px 16px; border-radius: 10px; z-index: 30; max-width: calc(100% - 32px); }
.toast.err { border-color: var(--danger); }

/* ==================== Gunni-Look ==================== */
/* Dunkler Hintergrund mit orangenem Schein, Minecraft-Items als Symbole, Karten mit Glas-Effekt */

body {
  background:
    radial-gradient(900px 500px at 100% -10%, rgba(255, 138, 0, .10), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(255, 138, 0, .06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
.main { max-width: 1100px; padding: 28px 32px 60px; }

/* Minecraft-Item als Symbol (pixelscharf) */
.mc-ico { width: 20px; height: 20px; flex: none; background: center / contain no-repeat; image-rendering: pixelated; }

/* Seitenleiste */
.sidebar { background: linear-gradient(180deg, #0b0b0b, #070707); padding: 18px 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); padding: 4px 6px 18px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 0 24px rgba(255, 138, 0, .35); }
.brand span { display: grid; line-height: 1.05; }
.brand b { font-size: 19px; font-weight: 900; letter-spacing: .04em; }
.brand small { font-size: 11px; font-weight: 800; letter-spacing: .22em; color: var(--accent); }
.side-head { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; padding: 0 4px; }
.side-head .icon-btn { width: 28px; height: 28px; border-radius: 8px; background: var(--item); font-size: 18px; display: grid; place-items: center; transition: background .15s, color .15s; }
.side-head .icon-btn:hover { background: var(--accent); color: var(--accent-text); }

.profile-head { background: linear-gradient(180deg, #1a1a1a, #141414); border: 1px solid var(--border); padding: 11px 12px; transition: border-color .15s; }
.profile-head:hover { background: linear-gradient(180deg, #1f1f1f, #171717); border-color: #3a3a3a; }
.profile-head.open { border-color: rgba(255, 138, 0, .45); }
.profile-head .mc-ico { width: 22px; height: 22px; }
.profile-head .count { font-size: 12px; background: var(--bg); border-radius: 999px; padding: 2px 8px; color: var(--muted); }
.profile-head .count.on { color: var(--ok); background: rgba(34, 197, 94, .12); }

.nav { gap: 3px; padding: 8px 0 6px 12px; margin-left: 10px; border-left: 2px solid #1f1f1f; }
.nav button { background: transparent; color: #cfcfcf; padding: 8px 10px; border-radius: 9px; transition: background .12s, color .12s, transform .12s; }
.nav button:hover { background: var(--item); color: var(--text); transform: translateX(2px); }
.nav button .mc-ico { transition: transform .15s; }
.nav button:hover .mc-ico { transform: scale(1.15) rotate(-6deg); }
.nav button.active { background: linear-gradient(90deg, rgba(255, 138, 0, .95), #ff6a00); color: var(--accent-text); box-shadow: 0 6px 20px rgba(255, 138, 0, .25); }
.nav button.active .mc-ico { filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .35)); }

.me { background: var(--item); border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-top: 18px; }

/* Seitenkopf */
.hero { position: relative; display: flex; align-items: center; gap: 18px; padding: 22px 24px; margin-bottom: 18px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(135deg, #171717 0%, #0d0d0d 60%), #111; border: 1px solid var(--border); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 160px at 0% 0%, rgba(255, 138, 0, .16), transparent 70%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--accent), transparent 70%); }
.hero-ico { position: relative; width: 64px; height: 64px; flex: none; border-radius: 16px; background-color: #1d1d1d; background-size: 40px; background-position: center;
  background-repeat: no-repeat; image-rendering: pixelated; border: 1px solid #333; box-shadow: inset 0 0 0 4px #141414, 0 10px 30px rgba(255, 138, 0, .15); }
.hero-text { position: relative; flex: 1; min-width: 0; }
.hero-text h1 { margin: 0; font-size: 26px; font-weight: 900; letter-spacing: -.01em; }
.hero-text p { margin: 4px 0 0; color: var(--muted); }
.hero-server { position: relative; display: flex; align-items: center; gap: 10px; background: rgba(0, 0, 0, .35); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; max-width: 280px; }
.hero-server .mc-ico { width: 28px; height: 28px; }
.hero-server b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-server span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hero-server .dot { width: 8px; height: 8px; }
.dot.s-online { box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }

/* Karten */
.card { background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0)), #0f0f0f; border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; }
.card h3 { display: flex; align-items: center; gap: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: #d8d8d8; }
.card h3::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--accent); }

/* Eingaben und Knöpfe */
input, select, textarea { background: #080808; border-color: #262626; border-radius: 10px; padding: 10px 12px; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: #353535; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 138, 0, .18); }
input::placeholder, textarea::placeholder { color: #5a5a5a; }
label.field { font-weight: 600; letter-spacing: .02em; }
.btn { border-radius: 10px; padding: 9px 16px; transition: background .15s, border-color .15s, transform .1s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, #ff9a1f, #ff7a00); border-color: #ff8a00; box-shadow: 0 6px 18px rgba(255, 138, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn.primary:hover { background: linear-gradient(180deg, #ffa83d, #ff8a00); box-shadow: 0 8px 24px rgba(255, 138, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn.danger { border-color: rgba(239, 68, 68, .35); background: rgba(239, 68, 68, .06); }
.btn.danger:hover { background: rgba(239, 68, 68, .15); }
input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; }

/* Accounts */
.acc { background: #0b0b0b; border: 1px solid #1f1f1f; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.acc:last-child { border-bottom: 1px solid #1f1f1f; }
.empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 26px 16px; border: 1px dashed #2e2e2e; border-radius: 14px; background: rgba(255, 255, 255, .015); }
.empty-ico { width: 44px; height: 44px; filter: drop-shadow(0 6px 14px rgba(255, 138, 0, .3)); }
.empty span { color: var(--muted); max-width: 420px; }

/* Connect: Account-Karten mit Skin-Kopf */
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head h3 { margin: 0; }
.count-chip { font-size: 11px; background: var(--item); color: var(--muted); border-radius: 999px; padding: 1px 8px; letter-spacing: 0; }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.acc-card { position: relative; display: grid; gap: 12px; padding: 14px; border-radius: 14px; background: linear-gradient(180deg, #151515, #0c0c0c); border: 1px solid #232323;
  transition: border-color .2s, box-shadow .2s, transform .15s; }
.acc-card:hover { border-color: #353535; transform: translateY(-1px); }
.acc-card.st-online { border-color: rgba(34, 197, 94, .35); box-shadow: 0 0 0 1px rgba(34, 197, 94, .08), 0 10px 30px rgba(34, 197, 94, .06); }
.acc-card.st-login { border-color: rgba(250, 204, 21, .45); }
.acc-top { display: flex; align-items: center; gap: 12px; }
.acc-head { width: 52px; height: 52px; border-radius: 10px; image-rendering: pixelated; background: #1d1d1d; flex: none; border: 2px solid #2a2a2a; transition: filter .2s; }
.acc-card.st-offline .acc-head { filter: grayscale(.85) brightness(.75); }
.acc-card.st-online .acc-head { border-color: var(--ok); box-shadow: 0 0 16px rgba(34, 197, 94, .35); }
.acc-who { flex: 1; min-width: 0; display: grid; }
.acc-who b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-who span { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 4px 9px; background: #1f1f1f; color: var(--muted); white-space: nowrap; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.st-online { background: rgba(34, 197, 94, .14); color: #4ade80; }
.pill.st-online i { box-shadow: 0 0 0 3px rgba(74, 222, 128, .25); animation: pulse 1.8s infinite; }
.pill.st-connecting, .pill.st-reconnecting, .pill.st-login { background: rgba(250, 204, 21, .12); color: var(--warn); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); } }
.acc-info { display: grid; gap: 4px; font-size: 12px; }
.acc-info .note { justify-self: start; margin: 0; }
.acc-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acc-actions select { padding: 7px 10px; }
.acc-actions .spacer { flex: 1; }
.btn.icon { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; }
.code-box { display: grid; gap: 4px; background: rgba(250, 204, 21, .08); border: 1px solid rgba(250, 204, 21, .5); border-radius: 12px; padding: 10px 12px; }
.code-box b { font-size: 22px; letter-spacing: 4px; color: var(--warn); }
.add-acc { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding: 12px; border: 1px dashed #2e2e2e; border-radius: 14px; background: rgba(255, 255, 255, .015); }
.add-acc input { flex: 1; min-width: 200px; }
.add-head { width: 36px; height: 36px; border-radius: 8px; image-rendering: pixelated; opacity: .5; filter: grayscale(1); }
.picker-head { width: 28px; height: 28px; border-radius: 6px; image-rendering: pixelated; }
.picker { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; display: inline-flex; }

/* Inventar-Slots im Minecraft-Stil (eingelassene Kästchen) */
.slot { background: #1a1a1a; border: 2px solid; border-color: #070707 #3a3a3a #3a3a3a #070707; border-radius: 4px; transition: background .1s; }
.slot:hover { background: #262626; border-color: #070707 var(--accent) var(--accent) #070707; }
.slot.sel { outline: 2px solid var(--accent); outline-offset: 1px; box-shadow: 0 0 14px rgba(255, 138, 0, .35); }

/* Chat wie im Spiel: dunkles Glas, Schrift mit Schatten */
.chatlog { background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .75)); border: 1px solid #222; border-radius: 12px; padding: 12px 14px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, .8); line-height: 1.5; }
.chatlog .t { color: #4a4a4a; text-shadow: none; }
.chat-send input { border-radius: 10px; }

/* Makro-Vorlagen */
.lib-card { background: linear-gradient(180deg, #151515, #0d0d0d); border-radius: 14px; transition: border-color .15s, transform .15s; }
.lib-card:hover { border-color: rgba(255, 138, 0, .45); transform: translateY(-2px); }
.lib-ico { border-radius: 10px; background: #1d1d1d; border: 1px solid #2a2a2a; }
.chip { transition: background .15s, border-color .15s; }
.chip:hover { border-color: #444; }

/* Aufklappbare Karte (Server-Einstellungen) */
details.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary h3 { margin: 0; }
details.fold > summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: transform .2s; }
details.fold[open] > summary { margin-bottom: 16px; }
details.fold[open] > summary::after { transform: rotate(180deg); }

/* Free-Hinweis */
.free-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 18px; border-radius: 14px;
  background: linear-gradient(90deg, rgba(255, 138, 0, .16), rgba(255, 138, 0, .04)); border: 1px solid rgba(255, 138, 0, .45); }
.free-banner > div { flex: 1; min-width: 220px; display: grid; gap: 2px; }
.free-banner > div > b { color: var(--accent); font-size: 15px; }
.free-banner span { color: #d6d6d6; }
.free-ico { width: 34px; height: 34px; }
.free-banner .btn { margin-left: 0; }

/* Login */
.login { background:
  radial-gradient(600px 400px at 50% 0%, rgba(255, 138, 0, .14), transparent 70%), var(--bg); }
.login-box { border-radius: 20px; padding: 28px; max-width: 380px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 138, 0, .08); }
.login-box .logo { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 0 24px rgba(255, 138, 0, .35); }

.tier-pill { background: linear-gradient(180deg, #ff9a1f, #ff7a00); }

@media (max-width: 760px) {
  .hero { padding: 16px; gap: 12px; flex-wrap: wrap; }
  .hero-ico { width: 52px; height: 52px; background-size: 32px; }
  .hero-text h1 { font-size: 21px; }
  .hero-server { max-width: none; width: 100%; }
  .main { padding: 16px 14px 40px; }
  .nav { margin-left: 0; border-left: 0; padding-left: 0; }
}

@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--border); }
  .main { padding: 16px; }
  .nav { grid-template-columns: repeat(2, 1fr); padding-left: 0; }
  .slots { grid-template-columns: repeat(9, minmax(0, 1fr)); }
}
