/* Walnaro Panel v2 – dunkles Walnaro-Design mit Glas-Karten und Animationen */
:root {
  --bg: #08070e;
  --panel: rgba(22, 19, 34, .72);
  --panel-solid: #16131f;
  --panel2: rgba(38, 32, 60, .62);
  --panel3: #221d33;
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .15);
  --text: #f1eefb;
  --muted: #a09abb;
  --accent: #8b5cf6;
  --accent2: #c4b5fd;
  --cyan: #22d3ee;
  --pink: #ec4899;
  --good: #22c55e;
  --warn: #f59e0b;
  --bad: #ef4444;
  --brand: linear-gradient(120deg, #22d3ee, #8b5cf6 50%, #ec4899);
  --radius: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Segoe UI Variable Display", "SF Pro Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 600px at 85% -10%, rgba(139, 92, 246, .22), transparent 60%), radial-gradient(700px 500px at -5% 30%, rgba(34, 211, 238, .1), transparent 60%), radial-gradient(800px 600px at 50% 120%, rgba(236, 72, 153, .1), transparent 60%); }
.hidden { display: none !important; }
a { color: var(--accent2); cursor: pointer; }
code { background: rgba(255, 255, 255, .07); padding: 1px 6px; border-radius: 6px; font: 12.5px var(--mono); color: #e4dcff; }
h1 { font: 800 28px/1.15 var(--display); margin: 0 0 18px; letter-spacing: -.01em; }
h1 small { color: var(--muted); font-size: 16px; font-weight: 500; }
h2 { font: 700 16px var(--display); margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
h3 { font-size: 12.5px; margin: 18px 0 8px; color: var(--accent2); text-transform: uppercase; letter-spacing: .1em; }
.muted { color: var(--muted); }
.mt { margin-top: 18px; }
.err { color: #fca5a5; min-height: 20px; font-size: 14px; }
::selection { background: rgba(139, 92, 246, .45); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .1); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }

input, select, textarea { background: rgba(0, 0, 0, .28); border: 1px solid var(--line2); color: var(--text); border-radius: 12px; padding: 10px 12px; font: inherit; min-width: 0; transition: border-color .2s, box-shadow .2s, background .2s; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(139, 92, 246, .18); background: rgba(0, 0, 0, .4); }
textarea { font: 13px/1.5 var(--mono); resize: vertical; }
select option { background: var(--panel3); }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
label.chk { flex-direction: row; align-items: center; gap: 10px; color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; }
label.chk input { width: 18px; height: 18px; accent-color: var(--accent); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.btn { background: var(--panel2); border: 1px solid var(--line2); color: var(--text); border-radius: 12px; padding: 9px 15px; font: inherit; font-weight: 650; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s; }
.btn:hover { border-color: rgba(139, 92, 246, .7); background: rgba(60, 48, 96, .6); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn.primary { background: var(--brand); background-size: 160% 100%; border-color: transparent; color: #fff; box-shadow: 0 8px 24px rgba(139, 92, 246, .3); }
.btn.primary:hover { background-position: 100% 0; box-shadow: 0 10px 30px rgba(236, 72, 153, .35); }
.btn.good { border-color: rgba(34, 197, 94, .5); color: #86efac; }
.btn.good:hover { background: rgba(34, 197, 94, .14); }
.btn.warnb { border-color: rgba(245, 158, 11, .5); color: #fcd34d; }
.btn.warnb:hover { background: rgba(245, 158, 11, .12); }
.btn.bad { border-color: rgba(239, 68, 68, .5); color: #fca5a5; }
.btn.bad:hover { background: rgba(239, 68, 68, .12); }
.btn.ghost { background: transparent; }
.btn.small { padding: 6px 11px; font-size: 13px; border-radius: 10px; }
.btn.wide { width: 100%; padding: 12px; }
.btn:disabled { opacity: .5; pointer-events: none; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }

.row { display: flex; gap: 10px; align-items: center; }
.row > input { flex: 1; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row .grow { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* Login */
.login { min-height: 100%; display: grid; place-items: center; padding: 16px; }
.login-box { width: 100%; max-width: 390px; background: var(--panel); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--line2); border-radius: 26px; padding: 30px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 40px 100px rgba(0, 0, 0, .55); animation: pop .5s var(--ease) both; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand b { display: block; font: 800 18px var(--display); }
.brand small { color: var(--muted); font-size: 12.5px; }
.brand.big b { font-size: 24px; }
.logo { width: 42px; height: 42px; border-radius: 13px; flex: none; display: block; box-shadow: 0 8px 24px rgba(139, 92, 246, .45); }

/* Layout */
.app { display: flex; min-height: 100%; }
.side { width: 248px; flex-shrink: 0; background: rgba(12, 10, 20, .75); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.kbtn { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(0, 0, 0, .25); color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer; transition: border-color .2s, color .2s; }
.kbtn:hover { border-color: var(--accent); color: var(--text); }
.kbtn kbd { margin-left: auto; font: 11px var(--mono); padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); }
nav { display: flex; flex-direction: column; gap: 2px; }
.nav-h { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #6f6889; padding: 12px 12px 4px; }
nav a { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 12px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14.5px; transition: background .2s, color .2s; }
nav a i { font-style: normal; width: 22px; text-align: center; transition: transform .3s var(--ease); }
nav a:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
nav a:hover i { transform: scale(1.18) rotate(-6deg); }
nav a.active { background: linear-gradient(120deg, rgba(34, 211, 238, .14), rgba(139, 92, 246, .22)); color: var(--text); box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .35); }
nav a.active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--brand); }
nav a .nb { margin-left: auto; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 99px; background: rgba(34, 197, 94, .18); color: #86efac; }
nav a .nb.live { background: var(--pink); color: #fff; animation: pulse-b 1.6s infinite; }
@keyframes pulse-b { 50% { box-shadow: 0 0 0 5px rgba(236, 72, 153, 0); } 0% { box-shadow: 0 0 0 0 rgba(236, 72, 153, .6); } }
.side-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 13.5px; padding-top: 12px; border-top: 1px solid var(--line); }
main { flex: 1; padding: 30px 34px 60px; max-width: 1380px; min-width: 0; }

.warn { background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .4); color: #fed7aa; padding: 12px 16px; border-radius: 14px; margin-bottom: 18px; }

/* Tabs blenden weich ein */
.tab:not(.hidden) { animation: tabIn .45s var(--ease) both; }
.tab:not(.hidden) .card, .tab:not(.hidden) .stat, .tab:not(.hidden) .tpl, .tab:not(.hidden) .rule { animation: rise .5s var(--ease) both; }
.tab:not(.hidden) .cards > :nth-child(2), .tab:not(.hidden) .grid2 > :nth-child(2) { animation-delay: .05s; }
.tab:not(.hidden) .cards > :nth-child(3) { animation-delay: .1s; }
.tab:not(.hidden) .cards > :nth-child(4) { animation-delay: .15s; }
@keyframes tabIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes pop { from { opacity: 0; transform: scale(.95); } }

.card { background: var(--panel); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; min-width: 0; transition: border-color .3s; }
.card:hover { border-color: rgba(255, 255, 255, .12); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { margin: 0; display: flex; flex-direction: column; gap: 2px; position: relative; overflow: hidden; }
.stat > span { color: var(--muted); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.stat > span .si { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 15px; background: rgba(139, 92, 246, .18); }
.stat b { font: 800 26px var(--display); margin-top: 6px; }
.stat small { color: var(--muted); font-size: 12.5px; position: relative; z-index: 1; }
.stat .spark { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; opacity: .55; pointer-events: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid2 > .card { margin-bottom: 0; }
.grid2 + .card, .grid2 { margin-bottom: 18px; }
.grid3 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin-bottom: 18px; }
.grid3 > .card { margin-bottom: 0; }

.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.on { color: #86efac; } .off { color: #fca5a5; } .mid { color: #fcd34d; }
.dot.on { background: var(--good); box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: ping 2s infinite; }
.dot.off { background: var(--bad); }
.dot.mid { background: var(--warn); animation: ping 1s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.badge { padding: 4px 11px; border-radius: 99px; font-size: 12px; font-weight: 800; background: var(--panel2); display: inline-flex; align-items: center; gap: 6px; }
.badge.on { background: rgba(34, 197, 94, .16); color: #86efac; } .badge.off { background: rgba(239, 68, 68, .14); color: #fca5a5; } .badge.mid { background: rgba(245, 158, 11, .16); color: #fcd34d; }

/* Diagramm */
.chart { position: relative; height: 190px; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .ax { fill: var(--muted); font-size: 11px; }
.chart .tip { position: absolute; pointer-events: none; padding: 6px 10px; border-radius: 10px; background: rgba(16, 13, 28, .95); border: 1px solid var(--line2); font-size: 12.5px; white-space: nowrap; transform: translate(-50%, -120%); opacity: 0; transition: opacity .15s; }
.chart:hover .tip:not(:empty) { opacity: 1; }
.chart .tip:empty { display: none; }
.seg-mini { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(0, 0, 0, .3); }
.seg-mini button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 8px; cursor: pointer; }
.seg-mini button.on { background: var(--accent); color: #fff; }

/* Schnellaktionen */
.qgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.qa { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border-radius: 14px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; transition: transform .25s var(--ease), border-color .2s, background .2s; }
.qa i { font-style: normal; font-size: 22px; transition: transform .3s var(--ease); }
.qa:hover { transform: translateY(-3px); border-color: rgba(139, 92, 246, .6); background: rgba(139, 92, 246, .1); }
.qa:hover i { transform: scale(1.2); }
.qa.warnb { border-color: rgba(245, 158, 11, .35); } .qa.bad { border-color: rgba(239, 68, 68, .35); } .qa.good { border-color: rgba(34, 197, 94, .35); }

.feed { height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding-right: 4px; margin-bottom: 10px; font-size: 14px; }
.feed.short { height: 210px; }
.feed.tall { height: 70vh; }
.feed .e { padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); word-break: break-word; animation: feedIn .35s var(--ease) both; }
@keyframes feedIn { from { opacity: 0; transform: translateX(-8px); } }
.feed .e.sys { color: var(--muted); font-style: italic; background: transparent; }
.feed .e .tm { color: var(--muted); font-size: 11.5px; margin-right: 8px; font-family: var(--mono); }
.feed .e b { color: var(--accent2); }

.console { height: 62vh; overflow: auto; background: #05040a; border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 12px 0; font: 12.5px/1.55 var(--mono); white-space: pre-wrap; word-break: break-all; box-shadow: inset 0 0 40px rgba(139, 92, 246, .06); }
.console .w { color: #fcd34d; } .console .x { color: #fca5a5; } .console .c { color: #c4b5fd; } .console .j { color: #86efac; }
.prompt { color: var(--cyan); font-weight: 900; font-family: var(--mono); }

.players { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 18px; }
.pl { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; animation: rise .4s var(--ease) both; transition: transform .25s var(--ease), border-color .2s; }
.pl:hover { transform: translateY(-3px); border-color: rgba(139, 92, 246, .5); }
.pl .top { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.pl img { width: 38px; height: 38px; border-radius: 10px; image-rendering: pixelated; background: var(--panel2); }
.pl .btns .btn { padding: 5px 8px; font-size: 12px; }
.empty { color: var(--muted); padding: 24px; text-align: center; border: 1px dashed var(--line2); border-radius: 14px; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 7px 16px; margin-bottom: 14px; font-size: 14px; }
.kv span { color: var(--muted); }
.msa { border-color: var(--accent); background: linear-gradient(135deg, rgba(76, 29, 149, .5), var(--panel)); }
.msa .code { font: 900 34px/1 var(--mono); letter-spacing: .15em; padding: 14px; background: #0b0913; border-radius: 12px; text-align: center; margin: 10px 0; user-select: all; }
.hotbar { display: flex; gap: 4px; }
.hotbar button { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line2); background: rgba(0, 0, 0, .25); color: var(--text); cursor: pointer; font-weight: 700; transition: all .2s; }
.hotbar button.sel { border-color: var(--accent); background: rgba(139, 92, 246, .3); }
.inv { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.inv div { background: rgba(0, 0, 0, .22); border-radius: 10px; padding: 8px 10px; font-size: 13px; border: 1px solid var(--line); }
.inv div b { float: right; color: var(--accent2); }

/* Regeln */
.rules { display: flex; flex-direction: column; gap: 10px; }
.rule { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; gap: 14px; align-items: center; transition: border-color .2s, transform .2s var(--ease), opacity .3s; }
.rule:hover { border-color: rgba(139, 92, 246, .45); }
.rule.off { opacity: .5; }
.rule .ric { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: rgba(139, 92, 246, .16); }
.rule .body { flex: 1; min-width: 0; }
.rule .body b { display: block; font-size: 15px; }
.rule .body small { color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rule .rs { font-size: 11.5px; font-weight: 700; color: var(--accent2); white-space: nowrap; text-align: right; }
.rule .rs small { display: block; color: var(--muted); font-weight: 500; }
.rule.flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, .8); background: rgba(139, 92, 246, .25); } 100% { box-shadow: 0 0 0 14px rgba(139, 92, 246, 0); } }
.switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #3a3450; border-radius: 99px; cursor: pointer; transition: background .25s; }
.switch span::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: white; border-radius: 50%; transition: transform .3s var(--ease); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::before { transform: translateX(20px); }
.rtools { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.rtools input { flex: 1; min-width: 200px; }
.tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-bottom: 22px; }
.tpl { position: relative; text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); color: var(--text); font: inherit; cursor: pointer; transition: transform .25s var(--ease), border-color .2s, background .2s; }
.tpl:hover { transform: translateY(-3px); border-color: rgba(34, 211, 238, .5); background: rgba(34, 211, 238, .06); }
.tpl .ti { font-size: 24px; }
.tpl b { font-size: 14.5px; }
.tpl span { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.tpl .add { position: absolute; top: 12px; right: 12px; font-size: 11.5px; font-weight: 800; color: var(--cyan); opacity: 0; transition: opacity .2s; }
.tpl:hover .add { opacity: 1; }
.phs { display: flex; flex-wrap: wrap; gap: 6px; }
.phs button { border: 1px dashed var(--line2); background: rgba(255, 255, 255, .04); color: var(--accent2); font: 12px var(--mono); padding: 3px 8px; border-radius: 8px; cursor: pointer; }
.phs button:hover { border-color: var(--accent); background: rgba(139, 92, 246, .15); }
.preview { padding: 10px 12px; border-radius: 12px; background: rgba(34, 211, 238, .06); border: 1px solid rgba(34, 211, 238, .25); font-size: 13.5px; }
.preview b { color: var(--cyan); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: 4px; }
.preview div { font-family: var(--mono); font-size: 12.5px; color: #dff9ff; word-break: break-word; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { background: var(--panel2); border-radius: 99px; padding: 5px 8px 5px 12px; display: flex; align-items: center; gap: 6px; font-size: 14px; animation: pop .3s var(--ease) both; }
.chip button { background: none; border: 0; color: #fca5a5; cursor: pointer; font-size: 14px; }

.modal { position: fixed; inset: 0; background: rgba(5, 4, 10, .66); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; padding: 16px; z-index: 60; overflow-y: auto; animation: fadeIn .2s both; }
@keyframes fadeIn { from { opacity: 0; } }
.modal-box { width: 100%; max-width: 680px; background: rgba(20, 17, 32, .96); border: 1px solid var(--line2); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: 0 40px 100px rgba(0, 0, 0, .6); animation: pop .35s var(--ease) both; }
.actions { display: flex; flex-direction: column; gap: 8px; }
.act { display: flex; gap: 8px; align-items: center; animation: rise .3s var(--ease) both; }
.act select { width: 200px; flex-shrink: 0; }
.act input { flex: 1; }
.act .x { background: none; border: 0; color: #fca5a5; font-size: 18px; cursor: pointer; }

/* Dialog statt prompt()/confirm() */
.dlg { max-width: 430px; }
.dlg h2 { font-size: 19px; margin: 0; }
.dlg p { margin: 0; color: var(--muted); }

/* Befehls-Palette */
.pal { max-width: 560px; padding: 10px; gap: 6px; align-self: start; margin-top: 12vh; }
.pal input { font-size: 16px; padding: 14px 16px; border-radius: 14px; }
.pal-list { display: flex; flex-direction: column; gap: 2px; max-height: 50vh; overflow-y: auto; }
.pal-list button { display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; }
.pal-list button i { font-style: normal; width: 24px; text-align: center; }
.pal-list button small { margin-left: auto; color: var(--muted); font-size: 12px; }
.pal-list button.sel, .pal-list button:hover { background: rgba(139, 92, 246, .2); }

.toasts { position: fixed; bottom: 18px; right: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 99; }
.toast { background: rgba(28, 24, 44, .96); backdrop-filter: blur(10px); border: 1px solid var(--line2); border-left: 4px solid var(--accent); padding: 11px 15px; border-radius: 14px; max-width: 360px; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); animation: toastIn .35s var(--ease) both; font-weight: 600; font-size: 14px; }
.toast.bad { border-left-color: var(--bad); }
.toast.good { border-left-color: var(--good); }
@keyframes toastIn { from { transform: translateX(30px); opacity: 0; } }

textarea { background: rgba(0, 0, 0, .28); }
.grid2.tight { gap: 12px; margin-bottom: 0; }
.servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; margin-bottom: 18px; }
.sv { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; transition: transform .25s var(--ease), border-color .2s; }
.sv:hover { transform: translateY(-2px); }
.sv.cur { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 14px 40px rgba(139, 92, 246, .18); }
.sv .top { display: flex; gap: 12px; align-items: center; }
.sv .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--panel2); display: grid; place-items: center; font-size: 22px; flex-shrink: 0; overflow: hidden; }
.sv .ico img { width: 100%; height: 100%; image-rendering: pixelated; }
.sv .top b { display: block; }
.sv .top small { color: var(--muted); word-break: break-all; }
.sv .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: var(--panel2); color: var(--muted); }
.tag.own { background: rgba(34, 197, 94, .15); color: #86efac; }
.tag.ext { background: rgba(59, 130, 246, .15); color: #93c5fd; }
.tag.cur { background: rgba(139, 92, 246, .22); color: #ddd6fe; }
.sv .motd { font-size: 13px; color: var(--muted); min-height: 18px; }
.ping { background: var(--panel2); border-radius: 12px; padding: 12px; margin-top: 12px; display: flex; gap: 12px; align-items: center; font-size: 14px; }
.ping img { width: 48px; height: 48px; border-radius: 8px; image-rendering: pixelated; }
.rule .where { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; margin-left: 8px; vertical-align: 2px; }
.rule .where.ext { background: rgba(59, 130, 246, .15); color: #93c5fd; }
option:disabled { color: #5c5572; }

/* Giveaway */
.ga-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 22px; border-radius: 22px; margin-bottom: 18px; background: linear-gradient(120deg, rgba(34, 211, 238, .1), rgba(139, 92, 246, .16), rgba(236, 72, 153, .12)); border: 1px solid var(--line2); position: relative; overflow: hidden; }
.ga-hero.live { border-color: rgba(236, 72, 153, .6); box-shadow: 0 0 0 1px rgba(236, 72, 153, .3), 0 20px 60px rgba(236, 72, 153, .15); }
.ring { position: relative; width: 120px; height: 120px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .bgc { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 10; }
.ring .fgc { fill: none; stroke: url(#ringGrad); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.ring .rt { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font: 800 22px var(--display); }
.ring .rt small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.ga-info b { font: 800 22px var(--display); display: block; }
.ga-info span { color: var(--muted); }
.ga-nums { display: flex; gap: 18px; }
.ga-nums div { text-align: center; }
.ga-nums b { display: block; font: 800 30px var(--display); background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ga-nums span { font-size: 12px; color: var(--muted); }
.ga-list { display: flex; flex-wrap: wrap; gap: 8px; max-height: 340px; overflow-y: auto; }
.ga-list .chip img { width: 20px; height: 20px; border-radius: 4px; image-rendering: pixelated; }
.ga-list .chip.win { background: linear-gradient(90deg, #f59e0b, #ec4899); color: #fff; }
.winner { margin-top: 16px; padding: 22px; border-radius: 18px; text-align: center; background: linear-gradient(135deg, #3b1d6e, #6d28d9 50%, #db2777); animation: pop .4s var(--ease); position: relative; overflow: hidden; }
.winner small { display: block; color: #e9d5ff; margin-bottom: 4px; }
.winner b { font: 900 30px var(--display); }
.winner img { width: 64px; height: 64px; border-radius: 12px; image-rendering: pixelated; display: block; margin: 0 auto 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); animation: pop .5s var(--ease); }
.rolling b { display: inline-block; animation: roll .12s linear infinite; }
@keyframes roll { 50% { transform: translateY(-4px); opacity: .7; } }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.preset { display: inline-flex; align-items: center; gap: 4px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line2); overflow: hidden; }
.preset button { border: 0; background: none; color: var(--text); font: inherit; font-size: 13.5px; font-weight: 650; padding: 8px 12px; cursor: pointer; }
.preset button:first-child:hover { background: rgba(139, 92, 246, .2); }
.preset button.del { color: #fca5a5; padding: 8px 10px; border-left: 1px solid var(--line); }
.days { display: flex; gap: 4px; flex-wrap: wrap; }
.days label { flex-direction: row; }
.days input { display: none; }
.days span { display: inline-block; width: 38px; text-align: center; padding: 6px 0; border-radius: 9px; border: 1px solid var(--line2); color: var(--muted); font-weight: 700; cursor: pointer; transition: all .2s; }
.days input:checked + span { background: var(--accent); color: #fff; border-color: transparent; }

.pay { font-size: 12px; margin-left: 6px; }
.pay.ok { color: #4ade80; } .pay.fail { color: #f87171; } .pay.wait, .pay.unknown { color: #fbbf24; }

/* Shop */
.rule .pico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--panel2); flex-shrink: 0; }
.rule .pprice { font-weight: 800; white-space: nowrap; }
.feed .e .st { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; margin-left: 6px; }
.st.delivered { background: rgba(34, 197, 94, .15); color: #86efac; } .st.test { background: rgba(245, 158, 11, .15); color: #fcd34d; }
.st.failed { background: rgba(239, 68, 68, .15); color: #fca5a5; } .st.paid, .st.waiting { background: rgba(59, 130, 246, .15); color: #93c5fd; }
.feed .e .redo { float: right; padding: 2px 8px; font-size: 12px; }
.seg { display: inline-flex; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { border: 0; background: none; color: var(--muted); padding: 7px 12px; border-radius: 9px; font: inherit; font-weight: 650; cursor: pointer; transition: all .2s; }
.seg button.on { background: var(--accent); color: #fff; }

/* Webseiten-Links */
.weblinks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.wl { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 650; font-size: 14px; transition: transform .25s var(--ease), border-color .2s; }
.wl:hover { transform: translateY(-2px); border-color: var(--cyan); }
.wl i { font-style: normal; font-size: 18px; }
.wl small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 500; }

#confetti { position: fixed; inset: 0; z-index: 100; pointer-events: none; width: 100%; height: 100%; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .ga-hero { grid-template-columns: auto 1fr; }
  .ga-nums { grid-column: 1 / -1; justify-content: space-around; }
}
@media (max-width: 780px) {
  .app { flex-direction: column; }
  .side { width: 100%; height: auto; position: sticky; top: 0; z-index: 10; flex-direction: row; align-items: center; padding: 10px 12px; gap: 10px; overflow-x: auto; overflow-y: hidden; }
  .side .brand small, .side-foot span, .nav-h, .kbtn { display: none; }
  .side .brand b { display: none; }
  nav { flex-direction: row; gap: 2px; }
  nav a { padding: 8px 10px; font-size: 13px; white-space: nowrap; }
  nav a.active::before { display: none; }
  nav a i { display: none; }
  .side-foot { margin: 0; padding: 0; border: 0; }
  main { padding: 16px 16px 50px; }
  h1 { font-size: 23px; }
  .act { flex-wrap: wrap; }
  .act select { width: 100%; }
  .rule { flex-wrap: wrap; }
  .rule .rs { display: none; }
  .cards { gap: 10px; }
}

label > span code { display: inline; }
label.chk > span { display: inline; }

/* Shop-Tracker */
.scprog { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; margin: 6px 0 10px; }
.scprog i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #22d3ee, #8b5cf6, #ec4899); transition: width .6s; }
.scfilters { gap: 10px; margin-bottom: 12px; }
.scfilters select { width: auto; }
.scwrap { overflow: auto; max-height: 62vh; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .06); }
.sctable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.sctable th { position: sticky; top: 0; z-index: 1; text-align: left; padding: 10px 12px; background: #17122a; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; }
.sctable td { padding: 9px 12px; border-top: 1px solid rgba(255, 255, 255, .05); vertical-align: top; }
.sctable tr:hover td { background: rgba(139, 92, 246, .06); }
.sctable tr.hot td { background: rgba(239, 68, 68, .08); }
.sctable tr.hot .scleft { color: #fca5a5; font-weight: 700; }
.sctable tr.warm .scleft { color: #fcd34d; font-weight: 700; }
.scowner { font-weight: 700; }

/* Platzhalter-Uebersicht + Shop-Platzhalter */
.phidx summary { cursor: pointer; list-style: none; }
.phidx summary::-webkit-details-marker { display: none; }
.phgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 14px; }
.phgrid h4 { margin: 0 0 8px; color: var(--accent2); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; }
.phrow { display: flex; align-items: baseline; gap: 10px; padding: 4px 0; font-size: 13px; }
.phrow button { flex-shrink: 0; padding: 3px 8px; border-radius: 8px; border: 1px solid rgba(139, 92, 246, .45); background: rgba(139, 92, 246, .14); color: #e9e4ff; font: 600 12px ui-monospace, monospace; cursor: pointer; }
.phrow span { color: var(--muted); }
#rPhs .shopph { border-color: rgba(34, 211, 238, .45) !important; }
