/* ===== Subnet — Default Skin ===== */
:root {
  --accent:        #0891b2;
  --accent-dark:   #0e7490;
  --accent-soft:   #e0f2fe;
  --ok:            #16a34a;
  --warn:          #d97706;
  --err:           #dc2626;
  --text:          #0f172a;
  --text-muted:    #64748b;
  --bg:            #f8fafc;
  --card:          #ffffff;
  --border:        #e2e8f0;
}

/* ===== Dark / Hacker Mode ===== */
body.theme-hacker {
  --accent:        #00e676;
  --accent-dark:   #00c853;
  --accent-soft:   #001a0d;
  --ok:            #00e676;
  --warn:          #ffab40;
  --err:           #ff5252;
  --text:          #c8ffd4;
  --text-muted:    #4a8a6a;
  --bg:            #050e08;
  --card:          #0a1a0e;
  --border:        #0d2e16;
}
body.theme-hacker {
  font-family: 'JetBrains Mono', 'Consolas', 'Courier New', monospace;
}
body.theme-hacker .header {
  background: #050e08;
  border-color: #0d2e16;
}
body.theme-hacker .header .logo { color: #00e676; text-shadow: 0 0 12px #00e676; }
body.theme-hacker .header .logo .slash { color: #00c853; }
body.theme-hacker .navigation li a { font-family: 'JetBrains Mono', monospace; }
body.theme-hacker .statbar .v { text-shadow: 0 0 8px currentColor; }
body.theme-hacker .statbar .item { border-color: #0d2e16; }
body.theme-hacker table.grid th { background: #050e08; }
body.theme-hacker .footer { background: #050e08; }
body.theme-hacker .btn {
  background: #001a0d;
  color: #00e676 !important;
  border: 1px solid #00e676;
  box-shadow: 0 0 6px rgba(0,230,118,.25);
}
body.theme-hacker .btn:hover { background: #00e676; color: #050e08 !important; }
body.theme-hacker input[type="text"],
body.theme-hacker input[type="password"],
body.theme-hacker input[type="number"],
body.theme-hacker select { background: #050e08; color: #c8ffd4; border-color: #0d2e16; }
body.theme-hacker input[type="submit"] { background: #00e676; color: #050e08; }
body.theme-hacker a { color: #00e676; }
body.theme-hacker .bonusbar { background: #001a0d; border-left-color: #00e676; color: #00e676; }

/* ===== Cyberpunk Mode ===== */
body.theme-cyberpunk {
  --accent:        #f700ff;
  --accent-dark:   #c400d4;
  --accent-soft:   #1a0020;
  --ok:            #00fff7;
  --warn:          #ffcc00;
  --err:           #ff2d55;
  --text:          #e8d5ff;
  --text-muted:    #7a5fa0;
  --bg:            #07000f;
  --card:          #0e0018;
  --border:        #2a0040;
  font-family: 'Inter', sans-serif;
}
body.theme-cyberpunk .header {
  background: #0e0018;
  border-color: #2a0040;
  border-bottom: 1px solid #f700ff44;
  box-shadow: 0 2px 20px rgba(247,0,255,.12);
}
body.theme-cyberpunk .header .logo {
  color: #f700ff;
  text-shadow: 0 0 14px #f700ff, 0 0 30px #f700ff88;
  font-style: italic;
}
body.theme-cyberpunk .header .logo .slash { color: #00fff7; }
body.theme-cyberpunk .header .logo .ver  { color: #7a5fa0; }
body.theme-cyberpunk .statbar .v { text-shadow: 0 0 10px currentColor; }
body.theme-cyberpunk .statbar .item {
  border-color: #2a0040;
  background: #0e0018;
  box-shadow: inset 0 0 12px rgba(247,0,255,.06);
}
body.theme-cyberpunk table.grid th {
  background: #0e0018;
  color: #f700ff;
  border-bottom: 1px solid #f700ff44;
}
body.theme-cyberpunk table.grid tr:hover td { background: #1a0028; }
body.theme-cyberpunk .footer {
  background: #0e0018;
  border-top: 1px solid #2a0040;
}
body.theme-cyberpunk .btn {
  background: #1a0028;
  color: #f700ff !important;
  border: 1px solid #f700ff;
  box-shadow: 0 0 8px rgba(247,0,255,.3), inset 0 0 4px rgba(247,0,255,.1);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
}
body.theme-cyberpunk .btn:hover {
  background: #f700ff;
  color: #07000f !important;
  box-shadow: 0 0 16px rgba(247,0,255,.7);
}
body.theme-cyberpunk .btn.disabled {
  border-color: #2a0040;
  color: #7a5fa0 !important;
  box-shadow: none;
}
body.theme-cyberpunk input[type="text"],
body.theme-cyberpunk input[type="password"],
body.theme-cyberpunk input[type="number"],
body.theme-cyberpunk select {
  background: #07000f;
  color: #e8d5ff;
  border-color: #2a0040;
  box-shadow: 0 0 6px rgba(247,0,255,.1);
}
body.theme-cyberpunk input[type="text"]:focus,
body.theme-cyberpunk input[type="password"]:focus,
body.theme-cyberpunk input[type="number"]:focus,
body.theme-cyberpunk select:focus { border-color: #f700ff; outline: none; }
body.theme-cyberpunk input[type="submit"] { background: #f700ff; color: #07000f; }
body.theme-cyberpunk a { color: #00fff7; }
body.theme-cyberpunk a:hover { color: #f700ff; }
body.theme-cyberpunk .bonusbar { background: #1a0028; border-left-color: #f700ff; color: #f700ff; }
body.theme-cyberpunk .navigation li a { letter-spacing: 0.02em; }
body.theme-cyberpunk .navigation li.active a { background: #1a0028; color: #f700ff; }
body.theme-cyberpunk .navigation li a:hover { background: #14001e; color: #f700ff; }
body.theme-cyberpunk .navigation li a .nav-icon { background-color: #7a5fa0; }
body.theme-cyberpunk .navigation li.active a .nav-icon,
body.theme-cyberpunk .navigation li a:hover .nav-icon { background-color: #f700ff; }
/* Neon-Glow auf Cards/Border */
body.theme-cyberpunk .card,
body.theme-cyberpunk .chaos-card,
body.theme-cyberpunk .phish-card,
body.theme-cyberpunk .btcshop-item,
body.theme-cyberpunk .cl-entry,
body.theme-cyberpunk .gacha-item,
body.theme-cyberpunk .savings-box {
  border-color: #2a0040;
  box-shadow: 0 0 10px rgba(247,0,255,.08);
}
/* Progress-Bar */
body.theme-cyberpunk .progress { background: #1a0028; }
body.theme-cyberpunk .progress .bar { background: linear-gradient(90deg, #f700ff, #00fff7); box-shadow: 0 0 8px #f700ff88; }
/* Statbar accent */
body.theme-cyberpunk .statbar .k { color: #f700ff; }
/* OK/Error Text */
body.theme-cyberpunk .ok-text { color: #00fff7; text-shadow: 0 0 8px #00fff7; }
body.theme-cyberpunk .error-text { color: #ff2d55; }
/* h2/h3 */
body.theme-cyberpunk h2 { color: #f700ff; text-shadow: 0 0 10px #f700ff66; border-bottom-color: #2a0040; }
body.theme-cyberpunk h3 { color: #00fff7; }
/* Phishing result */
body.theme-cyberpunk .phish-result.ok  { background: #00100f; border-left-color: #00fff7; }
body.theme-cyberpunk .phish-result.fail{ background: #1a0010; border-left-color: #ff2d55; }
/* Hack terminal stays green — override only frame */
body.theme-cyberpunk .story-terminal-modal { border-color: #f700ff44 !important; box-shadow: 0 0 30px rgba(247,0,255,.2); }
body.theme-cyberpunk .ph-game { background: #050010 !important; border-color: #f700ff44 !important; }
body.theme-cyberpunk .ph-email { background: #0a0020; border-color: #2a005a; }
body.theme-cyberpunk .ph-el-clickable { border-color: #5500aa; color: #cc88ff; }
body.theme-cyberpunk .cg-game { background: #050010 !important; border-color: #f700ff44 !important; }
body.theme-hacker .ph-game { background: #001a00 !important; }
body.theme-hacker .ph-el-clickable { border-color: #003300; color: #00cc44; }
body.theme-hacker .cg-game { background: #001a00 !important; }
body.theme-hacker .cg-btn { background: rgba(0,10,0,0.88) !important; }
body.theme-hacker .story-modal-inner { background: #001a00 !important; border-color: #004400; color: #c8ffd4; }
body.theme-hacker .ht-header { color: #00ff88 !important; border-left-color: #00ff88 !important; }
body.theme-hacker .mode-card-deep { border-color: #00ff88; }
body.theme-hacker .mode-card-deep .mode-card-title { color: #00ff88; }
body.theme-hacker .mode-reward-deep { color: #00ff88; }
body.theme-cyberpunk .mode-card-deep { border-color: #f700ff; }
body.theme-cyberpunk .mode-card-deep .mode-card-title { color: #f700ff; }
body.theme-cyberpunk .mode-reward-deep { color: #f700ff; }
/* Theme-Toggle */
body.theme-cyberpunk .theme-toggle {
  border-color: #f700ff;
  color: #f700ff;
  box-shadow: 0 0 8px rgba(247,0,255,.4);
}
/* Nav bottom bar mobile */
@media (max-width: 820px) {
  body.theme-cyberpunk #navi {
    box-shadow: 0 -2px 20px rgba(247,0,255,.2);
    border-top-color: #f700ff44;
  }
}

/* ─── Theme-Toggle Button ─── */
.theme-toggle {
  cursor: pointer; background: none; border: 1px solid var(--border);
  border-radius: 20px; padding: 4px 12px; font-size: 11px; font-family: inherit;
  color: var(--text-muted); transition: all .2s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
body.theme-hacker .theme-toggle {
  border-color: #00e676; color: #00e676;
  box-shadow: 0 0 8px rgba(0,230,118,.3);
  font-family: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

/* ===== Header ===== */
.header {
  background: var(--card); border-bottom: 1px solid var(--border);
  padding: 14px 28px; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 8px;
}
.header .logo {
  font-family: 'Inter', sans-serif; font-size: 22px; font-weight: 700;
  letter-spacing: -0.02em; color: var(--text);
}
.header .logo .slash { color: var(--accent); font-weight: 400; }
.header .logo .ver { color: var(--text-muted); font-size: 11px; vertical-align: super; margin-left: 6px; font-weight: 400; letter-spacing: 0; }
@keyframes blink { 50% { opacity: 0; } }
.header .tag { color: var(--text-muted); font-size: 12px; }
.header .session { font-size: 12px; color: var(--text-muted); }
.header .session b { color: var(--text); font-weight: 600; }
.header .session a { color: var(--accent); font-weight: 500; }
.header .session a[data-action="reload"] { font-weight: 600; }

/* ===== Bonus-Banner ===== */
.bonusbar {
  background: linear-gradient(90deg, var(--accent-soft) 0%, transparent 100%);
  border-left: 3px solid var(--accent);
  padding: 10px 28px; color: var(--accent-dark);
  font-weight: 600; font-size: 13px;
}

/* ===== Linke Navigation ===== */
#navi {
  list-style: none; padding: 16px 0; margin: 0;
  width: 200px; float: left;
  background: var(--card); border-right: 1px solid var(--border);
  min-height: calc(100vh - 53px);
}
.navigation li a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; color: var(--text);
  border-left: 3px solid transparent;
  font-size: 13px; font-weight: 500; text-decoration: none;
  transition: background 0.1s;
}
.navigation li a:hover { background: var(--accent-soft); text-decoration: none; }
.navigation li.active a {
  background: var(--accent-soft);
  border-left-color: var(--accent);
  color: var(--accent-dark);
}
.navigation .help { display: none; }
.nav-icon {
  display: inline-block; width: 16px; height: 16px; flex-shrink: 0;
  background-color: var(--text-muted);
  mask-size: contain; mask-repeat: no-repeat; mask-position: center;
  -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat; -webkit-mask-position: center;
  transition: background-color 0.1s;
}
.navigation li a:hover .nav-icon { background-color: var(--accent-dark); }
.navigation li.active a .nav-icon { background-color: var(--accent-dark); }

/* ── Nav-Icons per key ── */
[data-nav="startseite"] .nav-icon { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E"); }
[data-nav="system"]    .nav-icon { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='14' rx='2'/%3E%3Cline x1='8' y1='21' x2='16' y2='21'/%3E%3Cline x1='12' y1='17' x2='12' y2='21'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='14' rx='2'/%3E%3Cline x1='8' y1='21' x2='16' y2='21'/%3E%3Cline x1='12' y1='17' x2='12' y2='21'/%3E%3C/svg%3E"); }
[data-nav="hardware"]  .nav-icon { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.07 4.93a10 10 0 0 1 0 14.14M4.93 4.93a10 10 0 0 0 0 14.14'/%3E%3Cpath d='M15.54 8.46a5 5 0 0 1 0 7.07M8.46 8.46a5 5 0 0 0 0 7.07'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.07 4.93a10 10 0 0 1 0 14.14M4.93 4.93a10 10 0 0 0 0 14.14'/%3E%3Cpath d='M15.54 8.46a5 5 0 0 1 0 7.07M8.46 8.46a5 5 0 0 0 0 7.07'/%3E%3C/svg%3E"); }
[data-nav="programme"] .nav-icon { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='16 18 22 12 16 6'/%3E%3Cpolyline points='8 6 2 12 8 18'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='16 18 22 12 16 6'/%3E%3Cpolyline points='8 6 2 12 8 18'/%3E%3C/svg%3E"); }
[data-nav="netzwerk"]  .nav-icon { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E"); }
[data-nav="chaos"]     .nav-icon { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2L3 14h9l-1 8 10-12h-9l1-8z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2L3 14h9l-1 8 10-12h-9l1-8z'/%3E%3C/svg%3E"); }
[data-nav="phishing"]  .nav-icon { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l4-4 4 4 4-4 4 4'/%3E%3Cpath d='M3 15l4-4 4 4 4-4 4 4'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l4-4 4 4 4-4 4 4'/%3E%3Cpath d='M3 15l4-4 4 4 4-4 4 4'/%3E%3C/svg%3E"); }
[data-nav="btcshop"]   .nav-icon { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E"); }
[data-nav="btcmarket"] .nav-icon { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 7 13.5 15.5 8.5 10.5 2 17'/%3E%3Cpolyline points='16 7 22 7 22 13'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 7 13.5 15.5 8.5 10.5 2 17'/%3E%3Cpolyline points='16 7 22 7 22 13'/%3E%3C/svg%3E"); }
[data-nav="savings"]   .nav-icon { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20A10 10 0 0 0 12 2z'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20A10 10 0 0 0 12 2z'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E"); }
[data-nav="story"]     .nav-icon { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E"); }
[data-nav="miners"]    .nav-icon { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.531 12.469 6.619 20.38a1 1 0 1 1-3-3l7.912-7.912'/%3E%3Cpath d='M15.686 4.314A12.5 12.5 0 0 0 5.461 2.958 1 1 0 0 0 5.58 4.71a22 22 0 0 1 6.318 3.393'/%3E%3Cpath d='M17.7 3.7a1 1 0 0 0-1.4 0l-4.6 4.6a1 1 0 0 0 0 1.4l2.6 2.6a1 1 0 0 0 1.4 0l4.6-4.6a1 1 0 0 0 0-1.4z'/%3E%3Cpath d='M19.686 8.314a12.501 12.501 0 0 1 1.356 10.225 1 1 0 0 1-1.751-.119 22 22 0 0 0-3.393-6.319'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.531 12.469 6.619 20.38a1 1 0 1 1-3-3l7.912-7.912'/%3E%3Cpath d='M15.686 4.314A12.5 12.5 0 0 0 5.461 2.958 1 1 0 0 0 5.58 4.71a22 22 0 0 1 6.318 3.393'/%3E%3Cpath d='M17.7 3.7a1 1 0 0 0-1.4 0l-4.6 4.6a1 1 0 0 0 0 1.4l2.6 2.6a1 1 0 0 0 1.4 0l4.6-4.6a1 1 0 0 0 0-1.4z'/%3E%3Cpath d='M19.686 8.314a12.501 12.501 0 0 1 1.356 10.225 1 1 0 0 1-1.751-.119 22 22 0 0 0-3.393-6.319'/%3E%3C/svg%3E"); }
[data-nav="gacha"]     .nav-icon { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='14' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4'/%3E%3Ccircle cx='9' cy='10' r='1' fill='black'/%3E%3Ccircle cx='12' cy='10' r='1' fill='black'/%3E%3Ccircle cx='15' cy='10' r='1' fill='black'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='14' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4'/%3E%3Ccircle cx='9' cy='10' r='1' fill='black'/%3E%3Ccircle cx='12' cy='10' r='1' fill='black'/%3E%3Ccircle cx='15' cy='10' r='1' fill='black'/%3E%3C/svg%3E"); }
[data-nav="logs"]      .nav-icon { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cpolyline points='10 9 9 9 8 9'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cpolyline points='10 9 9 9 8 9'/%3E%3C/svg%3E"); }
[data-nav="postfach"]  .nav-icon { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E"); }
[data-nav="rangliste"] .nav-icon { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='20' x2='18' y2='10'/%3E%3Cline x1='12' y1='20' x2='12' y2='4'/%3E%3Cline x1='6' y1='20' x2='6' y2='14'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='20' x2='18' y2='10'/%3E%3Cline x1='12' y1='20' x2='12' y2='4'/%3E%3Cline x1='6' y1='20' x2='6' y2='14'/%3E%3C/svg%3E"); }
[data-nav="profil"]    .nav-icon { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); }
[data-nav="changelog"] .nav-icon { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E"); }
[data-nav="acp"]       .nav-icon { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.07 4.93a10 10 0 0 1 0 14.14M4.93 19.07a10 10 0 0 1 0-14.14'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.07 4.93a10 10 0 0 1 0 14.14M4.93 19.07a10 10 0 0 1 0-14.14'/%3E%3C/svg%3E"); }
[data-nav="downloads"] .nav-icon { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v13'/%3E%3Cpath d='M7 11l5 5 5-5'/%3E%3Cpath d='M3 19h18'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v13'/%3E%3Cpath d='M7 11l5 5 5-5'/%3E%3Cpath d='M3 19h18'/%3E%3C/svg%3E"); }
[data-nav="feedback"]  .nav-icon { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8z'/%3E%3C/svg%3E"); }
[data-nav="clans"]     .nav-icon { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
[data-nav="season"]    .nav-icon { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3Cpath d='M8 14h.01M12 14h.01M16 14h.01M8 18h.01M12 18h.01'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3Cpath d='M8 14h.01M12 14h.01M16 14h.01M8 18h.01M12 18h.01'/%3E%3C/svg%3E"); }
/* Feedback kenntlicher machen: Akzent-Icon + dezenter Akzentrahmen */
.navigation li[data-nav="feedback"] .nav-icon { background-color: var(--accent, #2563eb); }
.navigation li[data-nav="feedback"] .nav-label { font-weight: 700; }
.navigation li[data-nav="feedback"] a:hover .nav-icon { background-color: var(--accent-dark, #1e40af); }

/* ===== Per-Path Theme (gesetzt via JS --path-color / --path-glow) ===== */
body[data-path] .content {
  background: radial-gradient(ellipse at 50% 105%, var(--path-glow, transparent) 0%, transparent 55%);
}
body[data-path] .navigation li.active a {
  border-left-color: var(--path-color, var(--accent));
  color: var(--path-color, var(--accent-dark));
}
body[data-path] .navigation li.active a .nav-icon {
  background-color: var(--path-color, var(--accent-dark));
}
body[data-path] .navigation li a:hover .nav-icon {
  background-color: var(--path-color, var(--accent-dark));
}
body[data-path] .header .logo .slash {
  color: var(--path-color, var(--accent));
}
body[data-path] .btn:not([style*="background"]) {
  border-color: var(--path-color, var(--accent));
  color: var(--path-color, var(--accent));
}

/* ===== Volles Pfad-Theme (nur wenn "Pfad-Theme folgen" aktiv: body.path-themed) ===== */
body.path-themed { font-family: 'JetBrains Mono', 'Consolas', 'Courier New', monospace; }
body.path-themed .header .logo { color: var(--accent); text-shadow: 0 0 12px var(--accent); }
body.path-themed .statbar .v { text-shadow: 0 0 8px currentColor; }
body.path-themed[data-path="ghost"] {
  --accent:#38bdf8; --accent-dark:#0ea5e9; --accent-soft:#08243a;
  --ok:#38bdf8; --warn:#fbbf24; --err:#ff6b6b;
  --text:#d6f0ff; --text-muted:#5d87a3; --bg:#060f17; --card:#0b1a26; --border:#13344a;
}
body.path-themed[data-path="warlord"] {
  --accent:#ef4444; --accent-dark:#dc2626; --accent-soft:#2a0c0c;
  --ok:#4ade80; --warn:#fbbf24; --err:#ff8a8a;
  --text:#ffdcdc; --text-muted:#a86a6a; --bg:#140707; --card:#220c0c; --border:#3d1717;
}
body.path-themed[data-path="architekt"] {
  --accent:#f59e0b; --accent-dark:#d97706; --accent-soft:#2a1e06;
  --ok:#4ade80; --warn:#f59e0b; --err:#ff6b6b;
  --text:#ffeccb; --text-muted:#a3895a; --bg:#140f04; --card:#221a08; --border:#3d2f12;
}
body.path-themed[data-path="broker"] {
  --accent:#a3e635; --accent-dark:#84cc16; --accent-soft:#16240a;
  --ok:#a3e635; --warn:#fbbf24; --err:#ff6b6b;
  --text:#e9ffcf; --text-muted:#84a35a; --bg:#0c1404; --card:#16220a; --border:#243d12;
}
body.path-themed[data-path="phantom"] {
  --accent:#a78bfa; --accent-dark:#8b5cf6; --accent-soft:#1a1230;
  --ok:#4ade80; --warn:#fbbf24; --err:#ff6b6b;
  --text:#e8dcff; --text-muted:#8a7ab0; --bg:#0f0a1a; --card:#1a1230; --border:#2c2050;
}

/* Level-Up Overlay */
.levelup-overlay-anim {
  animation: levelup-pulse 0.5s ease-out;
}
@keyframes levelup-pulse {
  0%   { transform: scale(0.85); opacity: 0; }
  60%  { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1);    opacity: 1; }
}

/* ===== Inhalt ===== */
.content { margin-left: 200px; padding: 24px 32px 48px; min-height: 470px; }
h2 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text); margin: 0 0 16px; padding: 0;
  border-bottom: 1px solid var(--border); padding-bottom: 12px;
}
h3 {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.6px; color: var(--text-muted);
  margin: 24px 0 8px;
}
.content p, .content .indent { max-width: 660px; line-height: 1.6; }

/* ===== Formulare ===== */
table.form { border-collapse: collapse; font-size: 13px; margin: 8px 0 6px; }
table.form td { background: transparent; padding: 6px 10px 6px 0; vertical-align: middle; }
table.form td.label { font-weight: 600; color: var(--text-muted); white-space: nowrap; padding-right: 14px; }
input[type="text"], input[type="password"], input[type="number"], select, textarea {
  padding: 7px 10px; border: 1px solid var(--border); border-radius: 6px;
  background: var(--card); font-size: 13px; font-family: inherit; color: var(--text);
  width: 220px;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
input[type="submit"] {
  padding: 7px 18px; border-radius: 6px; width: auto;
  background: var(--accent); color: white; font-size: 13px;
  font-family: inherit; font-weight: 600; border: none; cursor: pointer;
  transition: background 0.15s;
}
input[type="submit"]:hover { background: var(--accent-dark); }

/* ===== Statbar ===== */
.statbar { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 20px; }
.statbar .item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 16px;
  min-width: 120px; flex: 1 1 120px;
  overflow: hidden;
}
.statbar .k {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--text-muted); font-weight: 600; display: block; margin-bottom: 3px;
  white-space: nowrap;
}
.statbar .v {
  font-size: 17px; font-weight: 700; color: var(--text);
  font-variant-numeric: tabular-nums;
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.statbar .v.credits { color: var(--warn); }
.statbar .v.income  { color: var(--ok); }

/* ===== Daten-Tabellen ===== */
table.grid {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; margin: 0 0 16px;
  font-size: 13px;
}
table.grid th {
  background: var(--bg); text-align: left; padding: 10px 14px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-muted); font-weight: 700;
  border-bottom: 1px solid var(--border);
}
table.grid td {
  padding: 11px 14px; color: var(--text);
  border-bottom: 1px solid var(--border);
}
table.grid tr:last-child td { border-bottom: none; }
table.grid tbody tr:hover td { background: var(--accent-soft); }
table.grid tr.building td { background: #fefce8; }
/* Eigene Zeile: themenbewusst über CSS-Variablen statt hardcoded Hellblau,
   damit der Highlight in Hacker-/Cyberpunk-Theme nicht weiß/hell leuchtet. */
table.grid tr.you td {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
}
table.grid tr.you td:first-child {
  border-left: 3px solid var(--accent);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 6px;
  background: var(--accent); color: white !important;
  font-size: 12px; font-weight: 500; font-family: inherit; cursor: pointer;
  border: none; text-decoration: none; transition: background 0.15s;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.btn.disabled, .btn[disabled] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn.danger { background: var(--err); }

/* BITS Boost Buttons */
.boost-half { background: #0d6e2a; color: #fff !important; font-size: 11px; padding: 2px 8px; }
.boost-instant { background: #7c2d12; color: #fff !important; font-size: 11px; padding: 2px 8px; }
.boost-half:hover:not(.disabled) { background: #15803d; }
.boost-instant:hover:not(.disabled) { background: #9a3412; }

/* Upgrade All Button */
.upgrade-all-bar { margin: 6px 0 10px 0; }
.upgrade-all-btn { background: var(--accent); color: var(--bg) !important; font-weight: bold; padding: 5px 14px; }

/* Buff-Multiplikator-Badge */
.buff-tag { font-size: 0.75rem; color: var(--ok); margin-left: 3px; font-weight: 600; }

/* Rangliste — Spielzeit, Online-Status, Last-Seen */
.rank-meta { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; vertical-align: middle; }
.rank-playtime { font-size: 0.70rem; color: var(--text-muted); white-space: nowrap; }
.rank-lastseen { font-size: 0.70rem; color: var(--text-muted); white-space: nowrap; }
.rank-online-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 4px #3ddc84; flex-shrink: 0; }
.rank-you { font-size: 0.75rem; color: var(--text-muted); }
.rank-status-text { font-size: 0.68rem; color: var(--text-muted); margin-left: 6px; font-style: italic; }

/* ── Kosmetik: Namens-Effekte ─────────────────────────────────────────── */
@keyframes nameRainbow { 0%,100% { filter: hue-rotate(0deg); } 50% { filter: hue-rotate(360deg); } }
@keyframes nameGlitch {
  0%,95%,100% { text-shadow: none; transform: none; }
  96% { text-shadow: 2px 0 #f00, -2px 0 #0ff; transform: skew(-2deg); }
  98% { text-shadow: -2px 0 #f0f, 2px 0 #0f0; transform: skew(1deg); }
}
@keyframes namePulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }
@keyframes nameScroll { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes nameShadowPulse { 0%,100% { text-shadow: 0 0 6px #a855f7, 0 0 14px #7c3aed; } 50% { text-shadow: 0 0 14px #a855f7, 0 0 28px #9333ea, 0 0 40px #6d28d9; } }

.player-name { display: inline; }
.player-name.name-rainbow {
  background: linear-gradient(90deg, #f00, #f80, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: nameRainbow 3s linear infinite;
}
.player-name.name-glitch { animation: nameGlitch 4s ease-in-out infinite; }
.player-name.name-pulse  { animation: namePulse 2s ease-in-out infinite; }
.player-name.name-fire {
  background: linear-gradient(90deg, #ff4500, #ff8c00, #ffd700, #ff6b00, #ff4500);
  background-size: 300% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: nameScroll 2s linear infinite;
}
.player-name.name-ice {
  background: linear-gradient(90deg, #87ceeb, #00bfff, #e0f7ff, #7dd3fc, #87ceeb);
  background-size: 300% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: nameScroll 3s linear infinite;
}
.player-name.name-gold {
  background: linear-gradient(90deg, #b8860b, #ffd700, #fffacd, #ffd700, #b8860b);
  background-size: 300% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: nameScroll 2.5s linear infinite;
}
.player-name.name-shadow {
  color: #a855f7;
  -webkit-text-fill-color: #a855f7;
  animation: nameShadowPulse 2.5s ease-in-out infinite;
}

/* ── Kosmetik: Profil-Hintergründe ────────────────────────────────────── */
/* Rangliste-Zeilen: sichtbare Farbakzente */
:root {
  --bg-matrix:    linear-gradient(135deg, rgba(0,180,0,0.13) 0%, rgba(0,80,0,0.22) 100%);
  --bg-neon:      linear-gradient(135deg, rgba(139,92,246,0.22) 0%, rgba(59,130,246,0.18) 100%);
  --bg-void:      linear-gradient(135deg, rgba(60,0,120,0.28) 0%, rgba(10,0,30,0.35) 100%);
  --bg-glitch:    linear-gradient(135deg, rgba(239,68,68,0.22) 0%, rgba(0,210,210,0.18) 100%);
  --bg-glitch-bg: linear-gradient(135deg, rgba(239,68,68,0.22) 0%, rgba(0,210,210,0.18) 100%);
  --bg-aurora:    linear-gradient(135deg, rgba(139,92,246,0.25) 0%, rgba(16,185,129,0.2) 100%);
  --bg-cyber:     linear-gradient(135deg, rgba(234,179,8,0.22) 0%, rgba(6,182,212,0.18) 100%);
  --bg-bloodmoon: linear-gradient(135deg, rgba(220,38,38,0.28) 0%, rgba(80,0,0,0.35) 100%);
}

/* Profil-Banner: voller sichtbarer Hintergrund-Block */
.profile-banner {
  width: 100%; border-radius: 10px; padding: 20px 24px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  margin-bottom: 14px; position: relative; overflow: hidden;
  border: 1px solid var(--border);
}
.profile-banner::before {
  content: ""; position: absolute; inset: 0; opacity: 0.18;
  pointer-events: none;
}
.profile-banner.bg-matrix   { background: linear-gradient(135deg, #002200 0%, #001a00 100%); border-color: #00ff4422; }
.profile-banner.bg-matrix::before   { background: repeating-linear-gradient(0deg, transparent, transparent 18px, #00ff4408 18px, #00ff4408 19px), repeating-linear-gradient(90deg, transparent, transparent 18px, #00ff4408 18px, #00ff4408 19px); opacity: 1; }
.profile-banner.bg-neon     { background: linear-gradient(135deg, #0d0821 0%, #110933 100%); border-color: #7c3aed55; box-shadow: 0 0 20px #7c3aed22 inset; }
.profile-banner.bg-void     { background: linear-gradient(135deg, #08001a 0%, #030010 100%); border-color: #6d28d944; box-shadow: 0 0 30px #6d28d915 inset; }
.profile-banner.bg-glitch   { background: linear-gradient(135deg, #1a0000 0%, #001a1a 100%); border-color: #ef444455; }
.profile-banner.bg-glitch-bg { background: linear-gradient(135deg, #1a0000 0%, #001a1a 100%); border-color: #ef444455; }
.profile-banner.bg-aurora   { background: linear-gradient(135deg, #0d0524 0%, #021a12 100%); border-color: #8b5cf655; box-shadow: 0 0 25px #10b98115 inset; }
.profile-banner.bg-cyber    { background: linear-gradient(135deg, #1a1200 0%, #001618 100%); border-color: #eab30855; }
.profile-banner.bg-bloodmoon { background: linear-gradient(135deg, #1a0000 0%, #0d0000 100%); border-color: #dc262655; box-shadow: 0 0 25px #dc262615 inset; }

/* Accent-Bar oben */
.profile-banner.bg-matrix::after    { content:""; position:absolute; top:0;left:0;right:0;height:2px; background:linear-gradient(90deg,#00c800,#00ff88,#00c800); }
.profile-banner.bg-neon::after      { content:""; position:absolute; top:0;left:0;right:0;height:2px; background:linear-gradient(90deg,#7c3aed,#a855f7,#2563eb); }
.profile-banner.bg-void::after      { content:""; position:absolute; top:0;left:0;right:0;height:2px; background:linear-gradient(90deg,#6d28d9,#4c1d95,#7c3aed); }
.profile-banner.bg-glitch::after,
.profile-banner.bg-glitch-bg::after { content:""; position:absolute; top:0;left:0;right:0;height:2px; background:linear-gradient(90deg,#ef4444,#00ffff,#ef4444); }
.profile-banner.bg-aurora::after    { content:""; position:absolute; top:0;left:0;right:0;height:2px; background:linear-gradient(90deg,#8b5cf6,#10b981,#06b6d4); }
.profile-banner.bg-cyber::after     { content:""; position:absolute; top:0;left:0;right:0;height:2px; background:linear-gradient(90deg,#eab308,#06b6d4,#eab308); }
.profile-banner.bg-bloodmoon::after { content:""; position:absolute; top:0;left:0;right:0;height:2px; background:linear-gradient(90deg,#dc2626,#7f1d1d,#dc2626); }

.profile-banner .pb-name { font-size: 1.3rem; font-weight: 800; letter-spacing: 0.5px; word-break: break-word; }
.profile-banner .pb-sub  { font-size: 0.72rem; color: rgba(255,255,255,0.45); letter-spacing: 0.3px; word-break: break-all; white-space: normal; }
@media (max-width: 600px) {
  .profile-banner { padding: 14px 14px; min-height: auto; }
  .profile-banner.img-banner { min-height: 110px; }
  .profile-banner .pb-name { font-size: 1.1rem; }
  .profile-banner .pb-sub  { font-size: 0.65rem; }
}

/* Rangliste (tr + td) + Startseite (div): Zeilen-Tint */
/* tr.has-bg-* allein reicht nicht — td-Hintergründe überdecken den tr-Hintergrund in Tabellen */
/* Gradient-Hintergründe: rgba statt var() — Variablen sind nicht global definiert */
tr.has-bg-matrix td,      div.has-bg-matrix    { background: rgba(0,200,0,0.14)     !important; }
tr.has-bg-neon td,        div.has-bg-neon      { background: rgba(124,58,237,0.16)  !important; }
tr.has-bg-void td,        div.has-bg-void      { background: rgba(109,40,217,0.16)  !important; }
tr.has-bg-glitch td,      div.has-bg-glitch    { background: rgba(239,68,68,0.14)   !important; }
tr.has-bg-glitch-bg td,   div.has-bg-glitch-bg { background: rgba(239,68,68,0.14)   !important; }
tr.has-bg-aurora td,      div.has-bg-aurora    { background: rgba(139,92,246,0.16)  !important; }
tr.has-bg-cyber td,       div.has-bg-cyber     { background: rgba(234,179,8,0.14)   !important; }
tr.has-bg-bloodmoon td,   div.has-bg-bloodmoon { background: rgba(220,38,38,0.16)   !important; }
/* Bild-Banner → echtes Banner-Foto füllt die ganze Zeile (dunkles Overlay für Lesbarkeit) */
tr.has-bg-banner_matrix,    div.has-bg-banner_matrix    { background: linear-gradient(rgba(0,0,0,0.60), rgba(0,0,0,0.60)), url('/banners/matrix_rain.jpg')    center/cover no-repeat !important; }
tr.has-bg-banner_terminal,  div.has-bg-banner_terminal  { background: linear-gradient(rgba(0,0,0,0.60), rgba(0,0,0,0.60)), url('/banners/terminal.jpg')       center/cover no-repeat !important; }
tr.has-bg-banner_cyber_hud, div.has-bg-banner_cyber_hud { background: linear-gradient(rgba(0,0,0,0.60), rgba(0,0,0,0.60)), url('/banners/cyber_hud.jpg')      center/cover no-repeat !important; }
tr.has-bg-banner_gaming,    div.has-bg-banner_gaming    { background: linear-gradient(rgba(0,0,0,0.60), rgba(0,0,0,0.60)), url('/banners/gaming.jpg')         center/cover no-repeat !important; }
tr.has-bg-banner_city,      div.has-bg-banner_city      { background: linear-gradient(rgba(0,0,0,0.60), rgba(0,0,0,0.60)), url('/banners/cyberpunk_city.jpg') center/cover no-repeat !important; }
tr.has-bg-banner_graffiti,  div.has-bg-banner_graffiti  { background: linear-gradient(rgba(0,0,0,0.60), rgba(0,0,0,0.60)), url('/banners/graffiti.jpg')       center/cover no-repeat !important; }
tr.has-bg-banner_manga,     div.has-bg-banner_manga     { background: linear-gradient(rgba(0,0,0,0.60), rgba(0,0,0,0.60)), url('/banners/manga.jpg')          center/cover no-repeat !important; }
tr.has-bg-banner_abstract,  div.has-bg-banner_abstract  { background: linear-gradient(rgba(0,0,0,0.60), rgba(0,0,0,0.60)), url('/banners/abstract.jpg')       center/cover no-repeat !important; }
tr.has-bg-banner_space,     div.has-bg-banner_space     { background: linear-gradient(rgba(0,0,0,0.60), rgba(0,0,0,0.60)), url('/banners/space.jpg')          center/cover no-repeat !important; }
/* Zellen transparent, sonst überdecken td-Hintergründe (tr.you, hover, Theme) das Zeilen-Banner */
tr[class*="has-bg-banner_"] td { background: transparent !important; }
/* Text auf Foto lesbar halten */
tr[class*="has-bg-banner_"] td, div[class*="has-bg-banner_"] { text-shadow: 0 1px 2px rgba(0,0,0,0.9), 0 0 4px rgba(0,0,0,0.6); }

/* ── Name-BG-Chip: profileBg als Mini-Kosmetik direkt hinter dem Spielernamen ──
   Wird von nameTag() überall gerendert wo ein Name auftaucht (Feed, Online,
   Rangliste, Startseite, Liga, Profil). Äußerer Span um .player-name, damit
   Name-Effekte (background-clip:text) nicht mit dem Chip-Hintergrund kollidieren. */
.name-bg {
  display: inline-block;
  padding: 0 6px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.10);
  line-height: 1.45;
  background: rgba(0,0,0,0.30);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}
/* Farb-Hintergründe */
.name-bg-matrix    { background: linear-gradient(135deg, rgba(0,180,0,0.35), rgba(0,80,0,0.45));      border-color: rgba(0,255,68,0.25); }
.name-bg-neon      { background: linear-gradient(135deg, rgba(139,92,246,0.40), rgba(59,130,246,0.35)); border-color: rgba(124,58,237,0.35); }
.name-bg-void      { background: linear-gradient(135deg, rgba(60,0,120,0.50), rgba(10,0,30,0.60));    border-color: rgba(109,40,217,0.30); }
.name-bg-glitch    { background: linear-gradient(135deg, rgba(239,68,68,0.40), rgba(0,210,210,0.30)); border-color: rgba(239,68,68,0.35); }
.name-bg-glitch-bg { background: linear-gradient(135deg, rgba(239,68,68,0.40), rgba(0,210,210,0.30)); border-color: rgba(239,68,68,0.35); }
.name-bg-aurora    { background: linear-gradient(135deg, rgba(139,92,246,0.40), rgba(16,185,129,0.35)); border-color: rgba(139,92,246,0.35); }
.name-bg-cyber     { background: linear-gradient(135deg, rgba(234,179,8,0.35), rgba(6,182,212,0.30)); border-color: rgba(234,179,8,0.35); }
.name-bg-bloodmoon { background: linear-gradient(135deg, rgba(220,38,38,0.45), rgba(80,0,0,0.55));    border-color: rgba(220,38,38,0.35); }
/* Bild-Banner: echtes Banner-Foto als Chip-Hintergrund, abgedunkelt für Lesbarkeit */
.name-bg[class*="name-bg-banner_"] {
  background-size: cover;
  background-position: center;
  background-color: rgba(0,0,0,0.45);
  background-blend-mode: darken;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.9), 0 0 4px rgba(0,0,0,0.6);
  border-color: rgba(255,255,255,0.18);
}
.name-bg-banner_matrix    { background-image: url('/banners/matrix_rain.jpg'); }
.name-bg-banner_terminal  { background-image: url('/banners/terminal.jpg'); }
.name-bg-banner_cyber_hud { background-image: url('/banners/cyber_hud.jpg'); }
.name-bg-banner_gaming    { background-image: url('/banners/gaming.jpg'); }
.name-bg-banner_city      { background-image: url('/banners/cyberpunk_city.jpg'); }
.name-bg-banner_graffiti  { background-image: url('/banners/graffiti.jpg'); }
.name-bg-banner_manga     { background-image: url('/banners/manga.jpg'); }
.name-bg-banner_abstract  { background-image: url('/banners/abstract.jpg'); }
.name-bg-banner_space     { background-image: url('/banners/space.jpg'); }

/* ── Bild-Banner (profile-banner mit echten Fotos) ─────────────────────── */
/* Gemeinsame Basis: dunkles Overlay via ::before, Bild via background */
.profile-banner.img-banner { border-color: transparent; min-height: 130px; }
.profile-banner.img-banner::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.52) 0%, rgba(0,0,0,0.62) 100%);
  opacity: 1; z-index: 0;
}
.profile-banner.img-banner .pb-name,
.profile-banner.img-banner .pb-sub,
.profile-banner.img-banner > * { position: relative; z-index: 1; }

/* Einzelne Banner-Bilder */
.profile-banner.bg-banner_matrix    { background: url('/banners/matrix_rain.jpg')   center/cover no-repeat; border-color: #00ff4433; }
.profile-banner.bg-banner_matrix::after    { content:""; position:absolute; top:0;left:0;right:0;height:2px;z-index:2; background:linear-gradient(90deg,#00c800,#00ff88,#00c800); }
.profile-banner.bg-banner_terminal  { background: url('/banners/terminal.jpg')       center/cover no-repeat; border-color: #00ff8033; }
.profile-banner.bg-banner_terminal::after  { content:""; position:absolute; top:0;left:0;right:0;height:2px;z-index:2; background:linear-gradient(90deg,#00ff80,#00c840,#00ff80); }
.profile-banner.bg-banner_cyber_hud { background: url('/banners/cyber_hud.jpg')      center/cover no-repeat; border-color: #06b6d433; }
.profile-banner.bg-banner_cyber_hud::after { content:""; position:absolute; top:0;left:0;right:0;height:2px;z-index:2; background:linear-gradient(90deg,#06b6d4,#38bdf8,#06b6d4); }
.profile-banner.bg-banner_gaming    { background: url('/banners/gaming.jpg')         center/cover no-repeat; border-color: #a855f733; }
.profile-banner.bg-banner_gaming::after    { content:""; position:absolute; top:0;left:0;right:0;height:2px;z-index:2; background:linear-gradient(90deg,#a855f7,#ec4899,#3b82f6); }
.profile-banner.bg-banner_city      { background: url('/banners/cyberpunk_city.jpg') center/cover no-repeat; border-color: #ec489933; }
.profile-banner.bg-banner_city::after      { content:""; position:absolute; top:0;left:0;right:0;height:2px;z-index:2; background:linear-gradient(90deg,#ec4899,#a855f7,#3b82f6); }
.profile-banner.bg-banner_graffiti  { background: url('/banners/graffiti.jpg')       center/cover no-repeat; border-color: #f43f5e33; }
.profile-banner.bg-banner_graffiti::after  { content:""; position:absolute; top:0;left:0;right:0;height:2px;z-index:2; background:linear-gradient(90deg,#f43f5e,#facc15,#f43f5e); }
.profile-banner.bg-banner_manga     { background: url('/banners/manga.jpg')           center/cover no-repeat; border-color: #ef444433; }
.profile-banner.bg-banner_manga::after     { content:""; position:absolute; top:0;left:0;right:0;height:2px;z-index:2; background:linear-gradient(90deg,#ef4444,#fff,#ef4444); }
.profile-banner.bg-banner_abstract  { background: url('/banners/abstract.jpg')       center/cover no-repeat; border-color: #ec489933; }
.profile-banner.bg-banner_abstract::after  { content:""; position:absolute; top:0;left:0;right:0;height:2px;z-index:2; background:linear-gradient(90deg,#ec4899,#fff,#ec4899); }
.profile-banner.bg-banner_space     { background: url('/banners/space.jpg')           center/cover no-repeat; border-color: #94a3b833; }
.profile-banner.bg-banner_space::after     { content:""; position:absolute; top:0;left:0;right:0;height:2px;z-index:2; background:linear-gradient(90deg,#94a3b8,#e2e8f0,#94a3b8); }

/* ── Season Pass ─────────────────────────────────────────────────────── */
.season-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.season-badge  { background: linear-gradient(90deg, #7c3aed, #2563eb); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 12px; letter-spacing: 0.5px; }
.season-badge.premium { background: linear-gradient(90deg, #b45309, #f59e0b); }
.season-progress-bar { background: var(--border); border-radius: 6px; height: 10px; flex: 1; min-width: 120px; overflow: hidden; }
.season-progress-bar > span { display: block; height: 100%; background: linear-gradient(90deg, #7c3aed, #a855f7 50%, #2563eb); border-radius: 6px; transition: width .5s ease; box-shadow: 0 0 8px #7c3aed55; }
.season-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 20px; }
.season-day {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 6px 8px; text-align: center; position: relative;
  transition: border-color .15s, box-shadow .15s, opacity .15s;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.season-day .sd-num {
  font-size: 0.58rem; font-weight: 700; color: var(--muted); letter-spacing: 0.6px;
  text-transform: uppercase; line-height: 1;
}
.season-day .sd-icon {
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--surface2); flex-shrink: 0; margin: 2px 0;
}
.season-day .sd-icon svg { width: 15px; height: 15px; }
.season-day .sd-label {
  font-size: 0.62rem; color: var(--fg); line-height: 1.35; text-align: center;
  word-break: break-word; min-height: 26px; display: flex; align-items: center; justify-content: center;
}
.season-day .sd-type {
  font-size: 0.52rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; line-height: 1;
}
/* States */
.season-day.claimed { border-color: #16a34a55; background: rgba(22,163,74,0.06); }
.season-day.claimed .sd-num   { color: #16a34a; }
.season-day.claimed .sd-icon  { background: rgba(22,163,74,0.18); }
.season-day.claimed .sd-label { color: var(--muted); }
.season-day.claimable {
  border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 14px #7c3aed33;
  background: rgba(124,58,237,0.05);
}
.season-day.claimable .sd-num  { color: var(--accent); }
.season-day.claimable .sd-icon { background: rgba(124,58,237,0.2); animation: namePulse 1.8s ease-in-out infinite; }
.season-day.future   { opacity: 0.35; cursor: default; }
.season-day.missed   { opacity: 0.22; cursor: default; filter: saturate(0.3); }
/* Milestone days (7, 10, 15, 20, final) */
.season-day.milestone { border-color: #f59e0b66; }
.season-day.milestone .sd-icon { background: rgba(245,158,11,0.16); }
.season-day.milestone.claimed  { border-color: #f59e0b88; background: rgba(245,158,11,0.06); }
.season-day.milestone.claimable{ border-color: #f59e0b; box-shadow: 0 0 0 1px #f59e0b, 0 0 16px #f59e0b33; }
.season-day .sd-milestone-dot {
  position: absolute; top: -5px; right: -5px; width: 14px; height: 14px;
  background: linear-gradient(135deg, #f59e0b, #b45309); border-radius: 50%;
  border: 2px solid var(--bg); display: flex; align-items: center; justify-content: center;
  font-size: 7px; color: #fff; font-weight: 900; line-height: 1;
}
/* Premium */
.season-day.premium-day { border-style: dashed; border-color: #f59e0b44; }
.season-claim-btn { margin-top: 3px; font-size: 0.63rem !important; padding: 3px 8px !important; line-height: 1.3 !important; }
.season-tracks { display: flex; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.season-track-label { font-weight: 700; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.7px; padding: 3px 10px; border-radius: 10px; }
.season-track-label.free    { background: rgba(124,58,237,0.12); color: #a78bfa; border: 1px solid #7c3aed44; }
.season-track-label.premium { background: rgba(245,158,11,0.12); color: #fbbf24; border: 1px solid #f59e0b44; }
.season-coming-soon { display: inline-block; background: rgba(245,158,11,0.12); color: #f59e0b; font-size: 0.65rem; font-weight: 700; padding: 2px 8px; border-radius: 8px; letter-spacing: 0.5px; border: 1px solid #f59e0b44; }
.season-reward-preview { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }

/* ── Wöchentliche Server-Challenge ────────────────────────────────────── */
.wc-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 14px; margin-bottom: 12px; }
.wc-title { font-weight: 700; font-size: 0.85rem; color: var(--accent); margin-bottom: 6px; }
.wc-bar-wrap { background: var(--border); border-radius: 4px; height: 10px; overflow: hidden; margin: 6px 0; }
.wc-bar { height: 100%; background: linear-gradient(90deg, var(--accent), #22d3ee); border-radius: 4px; transition: width 0.5s ease; }
.wc-stats { font-size: 0.75rem; color: var(--text-muted); display: flex; justify-content: space-between; }
.wc-completed { color: #22c55e; font-weight: 700; }

/* ── Referral-Code-Box ────────────────────────────────────────────────── */
.ref-code-box { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.ref-code { font-family: monospace; font-size: 1rem; font-weight: 700; color: var(--accent); letter-spacing: 2px; }
.ref-copy-btn { font-size: 0.75rem; cursor: pointer; background: var(--accent); color: #fff; border: none; border-radius: 4px; padding: 3px 10px; }

/* ── Kosmetik-System ─────────────────────────────────────────────────── */
.cosmetic-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.cosmetic-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; min-width: 150px; display: flex; flex-direction: column; gap: 6px; }
.cosmetic-card.cosmetic-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.cosmetic-card.cosmetic-locked { opacity: 0.45; }
.cosmetic-label { font-weight: 600; font-size: 0.9rem; }
.cosmetic-status { font-size: 0.75rem; color: var(--muted); }
.cosmetic-current { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; font-size: 0.88rem; }

/* ── Clan-Chat ────────────────────────────────────────────────────────── */
.clan-chat > div { padding: 3px 0; font-size: 0.83rem; border-bottom: 1px solid var(--border); }
.clan-detail-box h3 { margin-top: 0; }

/* Level-Pips (Komponenten) */
.lvl-pips { display: flex; gap: 2px; margin-bottom: 3px; }
.lvl-pip { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--border); }
.lvl-pip.active { background: var(--accent); }

/* ── Raid-Boss (Undertale 8-Bit Redesign) ────────────────────────────────── */
.rb-boss-wrap {
  font-family: 'Press Start 2P', monospace;
  background: #0a0005;
  border: 3px solid #ff2d7a;
  border-radius: 4px;
  padding: 14px 16px;
  margin: 8px 0 14px;
  color: #fff;
  position: relative;
}
.rb-arena {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
}
.rb-sprite-box {
  flex-shrink: 0;
  background: #000;
  border: 2px solid #ff2d7a;
  padding: 4px;
  position: relative;
}
.rb-sprite-box canvas {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  width: 96px;
  height: 96px;
}
.rb-info { flex: 1; min-width: 0; }
.rb-boss-name {
  font-size: 9px;
  color: #ff2d7a;
  text-shadow: 0 0 8px #ff2d7a88;
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.rb-boss-title { font-size: 7px; color: #888; margin-bottom: 10px; }
.rb-hp-segs {
  display: flex;
  gap: 2px;
  margin-bottom: 4px;
}
.rb-hp-seg {
  height: 14px;
  flex: 1;
  background: #ffcc00;
  border: 1px solid #aa8800;
  transition: background 0.3s;
}
.rb-hp-seg.empty { background: #222; border-color: #333; }
.rb-hp-label { font-size: 7px; color: #aaa; margin-bottom: 4px; }
.rb-phase-label { font-size: 7px; color: #ff2d7a; margin-bottom: 8px; }

/* HP-Bar low-HP blink */
@keyframes rb-hp-blink { 0%,100% { opacity:1; } 50% { opacity:0.4; } }
.rb-hp-seg.low { background: #ff2200; border-color: #cc1100; animation: rb-hp-blink 0.8s infinite; }

/* Phase colors */
.rb-boss-wrap.phase-2 { border-color: #ff4400; }
.rb-boss-wrap.phase-2 .rb-boss-name { color: #ff4400; text-shadow: 0 0 8px #ff440088; }
.rb-boss-wrap.phase-2 .rb-hp-seg { background: #ff8800; border-color: #cc5500; }
.rb-boss-wrap.phase-2 .rb-hp-seg.low { background: #ff2200; }
.rb-boss-wrap.phase-3 { border-color: #00b4ff; }
.rb-boss-wrap.phase-3 .rb-boss-name { color: #00b4ff; text-shadow: 0 0 8px #00b4ff88; }
.rb-boss-wrap.phase-3 .rb-hp-seg { background: #ff2200; animation: rb-hp-blink 0.8s infinite; }

/* Action row — Undertale-style 2×2 grid */
.rb-act-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 10px 0 8px;
}
.rb-soul { color: #ff2d7a; font-size: 12px; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.rb-act-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  background: #000;
  color: #fff;
  border: 2px solid #fff;
  padding: 6px 4px;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  display: block;
}
.rb-act-btn:hover:not(.rb-disabled) { background: #fff; color: #000; }
.rb-act-btn.rb-disabled { color: #555; border-color: #555; cursor: default; }
.rb-act-btn.rb-attack { border-color: #ff2d7a; color: #ff2d7a; }
.rb-act-btn.rb-attack:hover:not(.rb-disabled) { background: #ff2d7a; color: #000; }

/* Flavor text */
.rb-flavor {
  font-size: 7px;
  color: #ccc;
  line-height: 1.8;
  padding: 8px 0 0;
  border-top: 1px solid #333;
  min-height: 36px;
}
.rb-flavor::before { content: '* '; color: #ff2d7a; }

/* Damage float animation */
@keyframes rb-dmg-float {
  0%   { opacity: 1; transform: translateY(0) scale(1); }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-48px) scale(0.8); }
}
.rb-dmg-float {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  font-weight: bold;
  pointer-events: none;
  animation: rb-dmg-float 1.2s ease-out forwards;
  z-index: 10;
}
.rb-dmg-float.normal  { color: #ffcc00; text-shadow: 0 0 6px #ffcc00; }
.rb-dmg-float.crit    { color: #ff4400; text-shadow: 0 0 8px #ff4400; }
.rb-dmg-float.blocked { color: #666; }

/* Top-Schaden Pixel-Header */
.rb-top-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: #ff2d7a;
  margin: 12px 0 6px;
  letter-spacing: 1px;
}

/* Legacy classes (kept for compat) */
.raid-boss-card { display: none; }
.raid-boss-header { display: none; }
.raid-boss-hp-wrap { display: none; }
.raid-boss-hp-bar { display: none; }
.raid-boss-hp-label { display: none; }
.raid-boss-lore { display: none; }

/* ── Prolog-Terminal ─────────────────────────────────────────────────────── */
#prolog-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: #000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 2rem; box-sizing: border-box;
  cursor: pointer;
}
.prolog-terminal {
  font-family: "Courier New", Courier, monospace;
  font-size: 1rem; line-height: 1.7;
  color: #00e676; max-width: 680px; width: 100%;
}
.prolog-line { margin: 0; animation: prolog-fade 0.4s ease; }
@keyframes prolog-fade { from { opacity: 0; } to { opacity: 1; } }
.prolog-hint { position: absolute; bottom: 2rem; font-size: 0.78rem; color: #555; }

/* ── Tutorial-Overlay ────────────────────────────────────────────────────── */
#tutorial-overlay {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  z-index: 9000; pointer-events: none;
  display: flex; justify-content: center;
}
.tutorial-tooltip {
  background: var(--card); border: 2px solid var(--accent);
  border-radius: 8px; padding: 1rem 1.2rem; max-width: 400px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25); pointer-events: all;
}
.tutorial-step-num { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 6px; }
.tutorial-tooltip p { margin: 0 0 0.8rem; line-height: 1.5; }
.tutorial-actions { display: flex; gap: 8px; }
.tutorial-highlight { outline: 3px solid var(--accent) !important; outline-offset: 3px; border-radius: 4px; }

/* ── Feature-Unlock Modal ────────────────────────────────────────────────── */
#unlock-overlay {
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; box-sizing: border-box;
}
.unlock-modal {
  background: var(--card); border: 2px solid var(--accent);
  border-radius: 10px; padding: 1.6rem 1.8rem; max-width: 380px; width: 100%;
  box-shadow: 0 6px 32px rgba(0,0,0,0.35); text-align: center;
}
.unlock-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.unlock-title { font-size: 1.1rem; font-weight: 700; color: var(--accent); margin-bottom: 0.6rem; }
.unlock-text { margin: 0 0 1rem; line-height: 1.55; color: var(--text); font-size: 0.92rem; }
.unlock-actions { display: flex; gap: 8px; justify-content: center; }

/* Multi-Upgrade Buttons: Label + Kosten übereinander */
.btn.btn-upgrade { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.2; padding: 0.35rem 0.7rem; }
.multi-label { font-size: 0.95rem; font-weight: 700; }
.multi-cost { font-size: 0.68rem; opacity: 0.75; white-space: nowrap; }
.multi-bits { font-size: 0.6rem; color: #f59e0b; white-space: nowrap; opacity: 0.9; }
@media (max-width: 480px) {
  .btn.btn-upgrade { min-height: 44px; padding: 0.4rem 0.55rem; }
}
.upgrade-all-btn:hover:not(.disabled) { background: var(--accent-dark); }


.gacha-btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.gacha-multi-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px; }
.gacha-multi-card { border: 1px solid var(--border); padding: 8px; border-radius: 4px; text-align: center; font-size: 12px; }
.gacha-multi-card.rarity-common { border-color: #888; }
.gacha-multi-card.rarity-rare { border-color: #4fc3f7; background: #0d2233; }
.gacha-multi-card.rarity-epic { border-color: #ce93d8; background: #1a0d2e; }
.gacha-multi-card.rarity-legendary { border-color: #ffd54f; background: #2e1f00; }
.btn.danger:hover { background: #b91c1c; }

/* Story Mode */
.story-progress-bar { margin-bottom: 20px; font-size: 0.85rem; color: var(--text-muted); }
.progress-track { height: 6px; background: var(--border); border-radius: 3px; margin-top: 6px; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.4s ease; }
.story-arc { margin-bottom: 28px; }
.arc-title { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.arc-done .arc-title { color: var(--ok); }
.arc-locked { opacity: 0.4; pointer-events: none; }
.stage-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.stage-node { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: bold; cursor: default; position: relative;
  border: 2px solid var(--border); background: var(--card); color: var(--text-muted); }
.stage-node.status-completed { background: var(--ok); border-color: var(--ok); color: #fff; }
.stage-node.status-available { border-color: var(--accent); color: var(--accent); cursor: pointer; }
.stage-node.status-available:hover { background: var(--accent-soft); }
.stage-node.stage-current { box-shadow: 0 0 0 3px var(--accent-soft); }
.stage-node.stage-boss { border-radius: 6px; width: 42px; height: 42px; }
.stage-node.status-failed_cooldown { border-color: var(--err); color: var(--err); cursor: pointer; }
.stage-cooldown { position: absolute; top: -16px; font-size: 0.6rem; color: var(--err); white-space: nowrap; }
/* Story Modal */
.story-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 100; }
.story-modal-inner { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 24px; max-width: 480px; width: 90%; }
.modal-stage-number { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.boss-badge { display: inline-block; background: var(--err); color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 0.8rem; margin-bottom: 8px; }
.boss-phase { font-size: 0.85rem; color: var(--warn); margin-bottom: 8px; }
.modal-cooldown { margin-bottom: 8px; font-size: 0.85rem; }
.modal-lore { font-style: italic; color: var(--text-muted); margin: 12px 0; font-size: 0.88rem; }
.modal-requirements { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 6px; }
.modal-req-warn { font-size: 0.85rem; color: #ff4444; background: rgba(255,68,68,0.1); border: 1px solid rgba(255,68,68,0.3); border-radius: 4px; padding: 6px 10px; margin-bottom: 8px; }
/* ── Dual-Mode Wahl ── */
.modal-mode-choice { display: flex; gap: 10px; margin: 12px 0 8px; }
.mode-card { flex: 1; border: 2px solid var(--border); border-radius: 8px; padding: 12px 10px; cursor: pointer; text-align: center; transition: all 0.15s; background: var(--surface2); }
.mode-card:hover { border-color: var(--accent); background: var(--surface3); transform: translateY(-2px); }
.mode-card-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
.mode-card-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }
.mode-reward { font-size: 0.78rem; color: var(--ok); }
.mode-card-deep { border-color: #ffaa00; }
.mode-card-deep:hover { border-color: #ffcc00; background: rgba(255,170,0,0.08); }
.mode-card-deep .mode-card-title { color: #ffaa00; }
.mode-reward-deep { color: #ffaa00; font-weight: 700; }
.modal-reward { font-size: 0.82rem; color: var(--ok); margin-bottom: 16px; }
.modal-actions { display: flex; gap: 8px; }
.arc-outro pre.outro-text { white-space: pre-wrap; font-family: var(--mono); font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }
.story-terminal-modal { background: #0a0a0a !important; border-color: #1a1a1a !important; min-height: 200px; }
.story-term { font-family: var(--mono); font-size: 0.82rem; color: #00ff41; line-height: 1.5; margin: 0; white-space: pre-wrap; min-height: 160px; }

/* ── Story Arc-Map ── */
.mm-arc-map {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding: 10px 4px 16px;
  margin-bottom: 8px;
}
.mm-node {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid #444;
  background: var(--card);
  color: #555;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: bold;
  cursor: default;
  position: relative;
  transition: all 0.2s;
}
.mm-node.mm-done { background: var(--ok); border-color: var(--ok); color: #fff; }
.mm-node.mm-current { border-color: #ffcc00; color: #ffcc00; box-shadow: 0 0 8px #ffcc0088; cursor: pointer; }
.mm-node.mm-current:hover { background: rgba(255,204,0,0.15); }
.mm-node.mm-boss { border-radius: 6px; width: 40px; height: 40px; border-color: #ff2d7a; }
.mm-node.mm-boss.mm-done { background: var(--ok); }
.mm-node.mm-boss.mm-current { border-color: #ff2d7a; color: #ff2d7a; box-shadow: 0 0 8px #ff2d7a88; }
.mm-connector {
  flex-shrink: 0;
  height: 2px; width: 12px;
  background: #333;
  transition: background 0.3s;
}
.mm-connector.mm-done { background: var(--ok); }

/* ── Story Dialog-Scene ── */
.mm-scene {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.82);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 12px;
}
.mm-scene-inner {
  background: #07070f;
  border: 2px solid #1e293b;
  border-radius: 8px;
  max-width: 540px; width: 100%;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,0,0,0.9);
}
/* Arc-Header oben */
.mm-arc-header {
  background: #0a0a14;
  border-bottom: 2px solid #ff2d7a;
  padding: 8px 14px;
  display: flex; align-items: center; gap: 10px;
}
.mm-arc-badge {
  font-family: 'Press Start 2P', monospace;
  font-size: 6px; background: #ff2d7a; color: #fff;
  padding: 3px 7px; border-radius: 3px; flex-shrink: 0;
}
.mm-arc-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px; color: #ff6ec7;
}
.mm-arc-stage-info {
  font-family: 'Press Start 2P', monospace;
  font-size: 6px; color: #475569; margin-left: auto; white-space: nowrap;
}
/* Avatar-Bereich */
.mm-avatars {
  display: flex; align-items: flex-end; justify-content: space-between;
  background: #07070f;
  padding: 20px 20px 0;
  gap: 10px;
}
.mm-avatar-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: opacity 0.3s;
}
.mm-avatar-wrap.mm-dimmed { opacity: 0.3; }
.mm-avatar-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 6px; color: #475569;
  text-align: center;
}
.mm-avatar-name.mm-speaker-active { color: #ffcc00; }
.mm-avatar-canvas {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
}
/* Speech-Bubble */
.mm-speech-block { flex: 1; margin: 0 10px; align-self: center; }
.mm-speaker-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px; color: #ffcc00;
  margin-bottom: 6px;
}
.mm-speech-bubble {
  background: #111827;
  border: 1px solid #2d4060;
  border-radius: 5px;
  padding: 10px 12px;
  font-size: 0.78rem; line-height: 1.7; color: #e2e8f0;
  min-height: 52px; position: relative;
}
.mm-speech-bubble::after {
  content: '▮'; color: #ffcc00; font-size: 10px; margin-left: 3px;
  animation: mm-blink 1s steps(1) infinite;
}
@keyframes mm-blink { 0%,100%{opacity:1} 50%{opacity:0} }
/* Stage-Info-Leiste */
.mm-stage-info {
  padding: 8px 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid #1e293b;
  display: flex; gap: 14px; flex-wrap: wrap;
  background: #0a0a14;
}
.mm-stage-info span { color: var(--ok); font-weight: 600; }
.mm-actions {
  display: flex; gap: 8px; padding: 10px 16px 14px;
  background: #0a0a14;
  border-top: 1px solid #1e293b;
}

/* ── Hack Minigame (Fallout Terminal) ── */
.ht-game { max-width: 600px !important; padding: 18px 20px !important; }
.ht-header { font-family: var(--mono); font-size: 0.78rem; color: #00ff41; margin-bottom: 8px; line-height: 1.6; }
.ht-sub { color: #00cc33; }
.ht-blink { animation: ht-blink 1s step-end infinite; }
@keyframes ht-blink { 0%,100%{opacity:1} 50%{opacity:0} }
.ht-attempts { font-family: var(--mono); font-size: 0.72rem; color: #00cc33; margin-bottom: 8px; letter-spacing: 0.05em; }
.ht-attempt-pip { color: #004400; }
.ht-attempt-pip.active { color: #00ff41; }
.ht-dump { font-size: 0.72rem; line-height: 1.55; max-height: 320px; overflow-y: auto; padding: 4px 0; }
.ht-addr { color: #007700; user-select: none; }
.ht-junk { color: #005500; }
.ht-word { color: #00ff41; }
.ht-clickable { color: #00ff41; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.ht-clickable:hover { background: #00ff41; color: #000; }
.ht-used { color: #007700; text-decoration: none; }
.ht-correct { color: #00ff41 !important; background: #003300; font-weight: bold; }
.ht-wrong { color: #ff4444 !important; text-decoration: none; }
.ht-feedback { font-family: var(--mono); font-size: 0.75rem; color: #ffcc00; margin-top: 6px; }
.ht-feedback.ht-success { color: #00ff41; font-weight: bold; letter-spacing: 0.05em; }
.ht-feedback.ht-locked { color: #ff4444; font-weight: bold; letter-spacing: 0.05em; animation: ht-blink 0.4s step-end 3; }
.ht-likeness { color: #ff8800; }
.ht-hint { font-family: var(--mono); font-size: 0.65rem; color: #004400; margin-top: 6px; }
/* ── Hard-Mode Overlay (Chaos/Phishing Op-Start) ── */
.hm-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.82); z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.hm-modal { background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 22px 20px; max-width: 420px; width: 100%; box-shadow: 0 8px 40px rgba(0,0,0,0.8); }
.hm-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 2px; color: var(--text); }
.hm-subtitle { font-size: 0.82rem; color: var(--text); opacity: 0.65; margin-bottom: 16px; }
.hm-cards { display: flex; gap: 10px; }
.hm-card { flex: 1; border: 2px solid var(--accent); border-radius: 8px; padding: 14px 10px; text-align: center; cursor: pointer; transition: all 0.15s; background: var(--card); }
.hm-card:hover { border-color: var(--accent-dark); background: var(--accent-soft); transform: translateY(-2px); }
.hm-card-name { font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; color: var(--accent-dark); }
.hm-card-icon { font-size: 1.6rem; margin-bottom: 6px; color: var(--accent); }
.hm-card-desc { font-size: 0.8rem; color: var(--text); line-height: 1.5; }
.hm-card-reward { font-size: 0.8rem; font-weight: 600; color: var(--ok); }
.hm-card-hard { border-color: #ffaa00; }
.hm-card-hard:hover { border-color: #ffcc00; background: rgba(255,170,0,0.1); }
.hm-card-hard .hm-card-name { color: #ffaa00; }
.hm-card-hard .hm-card-icon { color: #ffaa00; text-shadow: 0 0 8px #ffaa0088; }
.hm-card-reward-hard { color: #ffaa00 !important; font-weight: 700; }
.hm-game-container { width: 100%; max-width: 640px; }
.hm-game-container .story-modal { position: static; background: transparent; padding: 0; }
.hm-game-container .story-modal-inner { margin: 0 auto; }

/* ── Grid-Hack Minigame ── */
.grid-hack-wrap { background: var(--bg); border-radius: 8px; overflow: hidden; font-family: var(--mono); }
.grid-hack-pw-display { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; padding: 12px 16px; }
.grid-hack-pw-slot {
  width: 36px; height: 40px;
  background: #0a0018; border: 2px solid #2d1a4e; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Press Start 2P', monospace; font-size: 13px; color: #2d1a4e;
  transition: all 0.15s;
}
.grid-hack-pw-slot.current { border-color: #ffcc00; color: #ffcc00; box-shadow: 0 0 0 2px #ffcc0033, 0 0 10px #ffcc0033; }
.grid-hack-pw-slot.correct { border-color: #00ff88; color: #00ff88; background: #001a0a; box-shadow: 0 0 8px #00ff8844; }
.grid-hack-timer-bar-bg { width: 80px; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.grid-hack-timer-bar { height: 100%; background: #00e5ff; border-radius: 3px; transition: width 0.1s linear, background 0.3s; }
.grid-hack-grid { display: grid; gap: 4px; user-select: none; }
.grid-hack-cell {
  width: 44px; height: 44px;
  background: #0d0020; border: 2px solid #2d1a4e; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Press Start 2P', monospace; font-size: 10px; color: #a78bfa;
  cursor: pointer; transition: all 0.1s;
}
.grid-hack-cell.cursor { border-color: #ffcc00; color: #ffcc00; background: #1a1500; box-shadow: 0 0 0 2px #ffcc0033, 0 0 12px #ffcc0044; }
.grid-hack-cell.adjacent { border-color: #4a3a6e; background: #12002a; }
.grid-hack-cell.correct-flash { border-color: #00ff88; color: #00ff88; background: #001a0a; }
.grid-hack-cell.wrong-flash { border-color: #ff2d7a; color: #ff2d7a; background: #1a0008; }
.grid-hack-pip { width: 10px; height: 10px; border-radius: 2px; background: #00ff88; display: inline-block; }
.grid-hack-pip.used { background: #333; }
.grid-hack-pip.last { background: #ffcc00; }
@media (max-width: 430px) {
  .grid-hack-cell { width: 36px; height: 36px; font-size: 8px; }
  .grid-hack-pw-slot { width: 28px; height: 34px; font-size: 10px; }
}
/* Hacker Theme */
body.theme-hacker .hm-modal { background: #0a1a0e; border-color: #0d2e16; }
body.theme-hacker .hm-card { background: #050e08; border-color: #00e676; }
body.theme-hacker .hm-card:hover { background: #001a0d; }
body.theme-hacker .hm-card-name { color: #00e676; }
body.theme-hacker .hm-card-icon { color: #00e676; }
body.theme-hacker .hm-card-desc { color: #c8ffd4; }
body.theme-hacker .hm-card-reward { color: #00e676; }
body.theme-hacker .hm-card-hard { background: #050e08; border-color: #00ff88; }
body.theme-hacker .hm-card-hard:hover { background: #001a0d; }
body.theme-hacker .hm-card-hard .hm-card-name,
body.theme-hacker .hm-card-hard .hm-card-icon,
body.theme-hacker .hm-card-reward-hard { color: #00ff88 !important; }
/* Cyberpunk Theme */
body.theme-cyberpunk .hm-modal { background: #0e0018; border-color: #2a0040; }
body.theme-cyberpunk .hm-card { background: #07000f; border-color: #f700ff; }
body.theme-cyberpunk .hm-card:hover { background: #1a0028; }
body.theme-cyberpunk .hm-card-name { color: #f700ff; }
body.theme-cyberpunk .hm-card-icon { color: #f700ff; }
body.theme-cyberpunk .hm-card-desc { color: #e8d5ff; }
body.theme-cyberpunk .hm-card-reward { color: #00fff7; }
body.theme-cyberpunk .hm-card-hard { background: #07000f; border-color: #f700ff; box-shadow: 0 0 12px rgba(247,0,255,0.3); }
body.theme-cyberpunk .hm-card-hard:hover { background: #1a0028; }
body.theme-cyberpunk .hm-card-hard .hm-card-name,
body.theme-cyberpunk .hm-card-hard .hm-card-icon,
body.theme-cyberpunk .hm-card-reward-hard { color: #f700ff !important; }

/* ── Sequenz-/Chaos-Minigame ── */
.story-modal { position: fixed; inset: 0; z-index: 8000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,0.85); }
.story-modal-inner { background: #111827; color: #e2e8f0; border: 1px solid #334155; border-radius: 10px; padding: 20px; max-width: 480px; width: 100%; box-shadow: 0 8px 40px rgba(0,0,0,0.7); }
.ht-header { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: #00e676; margin-bottom: 14px; line-height: 1.5; border-left: 3px solid #00e676; padding-left: 10px; }
.ht-sub { color: #94a3b8; font-size: 0.72rem; }
.ht-blink { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cg-game { font-family: 'JetBrains Mono', monospace; }
.cg-seq-display { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 14px 0; }
.cg-sym { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 2px solid; border-radius: 8px; font-size: 1.4rem; background: rgba(0,0,0,0.4); }
.cg-countdown-bar { height: 4px; background: #1e293b; border-radius: 2px; margin: 10px 0; overflow: hidden; }
.cg-countdown-fill { height: 100%; background: linear-gradient(to right, #00e676, #f700ff); border-radius: 2px; }
.cg-attempts { font-size: 0.72rem; color: #94a3b8; margin: 10px 0; }
.ht-attempt-pip { color: #334155; }
.ht-attempt-pip.active { color: #00e676; }
.cg-hint { font-size: 0.78rem; color: #94a3b8; margin-top: 10px; line-height: 1.5; }
.cg-progress { display: flex; gap: 10px; justify-content: center; font-size: 1.3rem; margin: 12px 0; flex-wrap: wrap; }
.cg-prog-done { opacity: 1; }
.cg-prog-next { color: #ffcc00; animation: blink 0.7s step-end infinite; }
.cg-prog-empty { color: #475569; }
.cg-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 14px 0; }
.cg-btn { width: 56px; height: 56px; border: 2px solid; border-radius: 10px; font-size: 1.3rem; cursor: pointer; background: rgba(0,0,0,0.5); transition: transform 0.1s, background 0.1s; display: flex; align-items: center; justify-content: center; }
.cg-btn:hover { background: rgba(255,255,255,0.07); transform: scale(1.05); }
.cg-btn:active { transform: scale(0.95); }
.cg-btn-ok { background: rgba(0,230,118,0.2) !important; }
.cg-btn-wrong { background: rgba(255,45,85,0.3) !important; animation: shake 0.3s; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
/* Cyberpunk-Override für Minigame */
body.theme-cyberpunk .story-modal-inner { background: #0e0018; border-color: #2a0040; color: #e8d5ff; }
body.theme-cyberpunk .ht-header { color: #f700ff; border-left-color: #f700ff; }
body.theme-cyberpunk .ht-attempt-pip.active { color: #00fff7; }
body.theme-cyberpunk .cg-btn { background: rgba(14,0,24,0.8); }
body.theme-cyberpunk .cg-btn:hover { background: rgba(247,0,255,0.1); }
body.theme-cyberpunk .cg-btn-ok { background: rgba(0,255,247,0.15) !important; }
/* Normal Theme (hell) — dunkler Hintergrund erzwingen damit Farben lesbar bleiben */
body:not(.theme-hacker):not(.theme-cyberpunk) .story-modal-inner { background: #1e293b; color: #f1f5f9; }
body:not(.theme-hacker):not(.theme-cyberpunk) .ht-header { color: #00e676; border-left-color: #00e676; }

/* ── Phishing Minigame ── */
.ph-game { max-width: 640px !important; padding: 18px 20px !important; background: #0a0a12 !important; }
.ph-stats { display: flex; align-items: center; gap: 16px; font-family: var(--mono); font-size: 0.78rem; margin-bottom: 10px; }
.ph-timer { color: #ffcc00; font-weight: bold; }
.ph-timer-warn { color: #ff4444; animation: ht-blink 0.7s step-end infinite; }
.ph-progress { color: #00b4ff; }
.ph-lives { display: flex; gap: 4px; font-size: 1rem; }
.ph-heart { opacity: 0.3; }
.ph-heart.active { opacity: 1; }
.ph-email { background: #0f0f1a; border: 1px solid #1a1a2e; border-radius: 6px; padding: 12px 14px; font-size: 0.82rem; }
.ph-email-row { padding: 4px 0; border-bottom: 1px solid #1a1a2e; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.ph-label { font-family: var(--mono); font-size: 0.72rem; color: #555; min-width: 60px; }
.ph-email-divider { height: 1px; background: #1a1a2e; margin: 8px 0; }
.ph-email-body { font-size: 0.82rem; color: #aaa; line-height: 1.6; }
.ph-email-body p { margin: 6px 0; }
.ph-el { cursor: default; border-radius: 3px; padding: 1px 4px; transition: all 0.15s; }
.ph-el-clickable { cursor: pointer; border: 1px dashed #3a3a5a; color: #8888ff; }
.ph-el-clickable:hover { background: #1a1a3a; border-color: #5555cc; color: #aaaaff; }
.ph-el-found { background: rgba(0,255,80,0.12); border: 1px solid #00ff50; color: #00ff50; cursor: default; text-decoration: line-through; }
.ph-el-wrong-click { background: rgba(255,50,50,0.12); border: 1px solid #ff3232; color: #ff5555; cursor: default; }
.ph-hint { font-family: var(--mono); font-size: 0.65rem; color: #556; margin-top: 10px; }
.ph-success-msg { color: #00ff88; font-weight: bold; font-family: var(--mono); font-size: 0.82rem; margin-top: 10px; }
.ph-fail-msg { color: #ff4444; font-weight: bold; font-family: var(--mono); font-size: 0.82rem; margin-top: 10px; animation: ht-blink 0.4s step-end 3; }
/* Köder-Zusammenstell-Minigame */
.ph-victim { background: #0f0f1a; border: 1px solid #22225a; border-radius: 6px; padding: 8px 12px; font-size: 0.82rem; margin-bottom: 10px; line-height: 1.6; }
.ph-victim-label { font-family: var(--mono); font-size: 0.7rem; color: #ff4466; margin-right: 6px; }
.ph-victim-trait { font-size: 0.75rem; color: #ff8866; }
.ph-opts { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 8px; }
.ph-opt { border: 1px solid #2a2a4a; border-radius: 6px; padding: 10px 12px; cursor: pointer; transition: all 0.12s; background: #0f0f1f; }
.ph-opt:hover { border-color: #5555aa; background: #141428; transform: translateX(3px); }
.ph-opt-text { font-size: 0.82rem; color: #ccccff; }
.ph-opt-hint { font-size: 0.7rem; margin-top: 3px; }
.ph-opt-selected-good { border-color: #00ff88 !important; background: rgba(0,255,80,0.1) !important; }
.ph-opt-selected-ok   { border-color: #ffaa00 !important; background: rgba(255,170,0,0.08) !important; }
.ph-opt-selected-bad  { border-color: #ff4444 !important; background: rgba(255,50,50,0.1) !important; }
.ph-result-breakdown { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; font-size: 0.78rem; }
.ph-result-row { display: flex; gap: 8px; flex-wrap: wrap; }
.ph-result-row > span:first-child { color: var(--text-muted); min-width: 70px; }
.ph-score-good { color: #00ff88; }
.ph-score-ok   { color: #ffaa00; }
.ph-score-bad  { color: #ff5555; }
.ph-result-score { font-family: var(--mono); font-size: 0.8rem; color: #aaa; margin-top: 6px; }

/* ── Chaos Sequenz-Minigame ── */
.cg-game { max-width: 560px !important; padding: 18px 20px !important; background: #0a0005 !important; }
.cg-seq-display { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; padding: 24px 10px; }
.cg-sym { font-size: 2.2rem; border: 2px solid; border-radius: 8px; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; font-weight: bold; text-shadow: 0 0 10px currentColor; animation: cg-pulse 1.5s ease-in-out infinite; }
@keyframes cg-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.7;transform:scale(0.95)} }
.cg-countdown { color: #ff8800; font-weight: bold; }
.cg-progress { display: flex; justify-content: center; gap: 14px; padding: 14px 10px; min-height: 60px; align-items: center; font-size: 1.8rem; }
.cg-prog-done { opacity: 1; text-shadow: 0 0 10px currentColor; }
.cg-prog-next { color: #fff; animation: ht-blink 0.6s step-end infinite; font-family: var(--mono); font-size: 1.5rem; }
.cg-prog-empty { color: #333; font-family: var(--mono); font-size: 1.5rem; }
.cg-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 10px 0 14px; }
.cg-btn { background: transparent; border: 2px solid; border-radius: 8px; width: 52px; height: 52px; font-size: 1.6rem; cursor: pointer; transition: all 0.12s; display: flex; align-items: center; justify-content: center; }
.cg-btn:hover { filter: brightness(1.4); transform: scale(1.1); }
.cg-btn-ok { animation: cg-ok 0.25s ease; background: rgba(0,255,80,0.2) !important; }
@keyframes cg-ok { 0%{transform:scale(1.3)} 100%{transform:scale(1)} }
.cg-btn-wrong { animation: cg-wrong 0.3s ease; background: rgba(255,50,50,0.3) !important; }
@keyframes cg-wrong { 0%,50%{transform:translateX(-4px)} 25%,75%{transform:translateX(4px)} 100%{transform:translateX(0)} }
.cg-attempts { font-family: var(--mono); font-size: 0.72rem; color: #cc44ff; text-align: center; margin-top: 4px; letter-spacing: 0.05em; }
/* Glatter Merkzeit-Countdown im Chaos-Minigame */
.cg-countdown-bar { width: 100%; max-width: 360px; height: 6px; margin: 4px auto 10px; background: rgba(204,68,255,0.18); border-radius: 3px; overflow: hidden; }
.cg-countdown-fill { height: 100%; width: 100%; background: linear-gradient(90deg, #00ff88, #cc44ff); border-radius: 3px; }

.story-result-modal { text-align: center; }
.result-icon { font-size: 3rem; margin-bottom: 8px; }
.result-subtitle { font-size: 0.95rem; color: var(--ok); margin: 8px 0 4px; font-weight: 600; }
.result-note { font-size: 0.82rem; margin-top: 4px; }
.result-success { border-color: var(--ok) !important; }
.result-fail { border-color: var(--err) !important; }
.result-fail .result-subtitle { color: var(--err); }

/* ===== Status & Hilfstexte ===== */
.muted { color: var(--text-muted); }
.note { margin: 6px 0 8px; color: var(--text-muted); font-size: 12px; max-width: 660px; line-height: 1.55; }
.error, .error-text { color: var(--err); }
.error { margin: 4px 0; font-size: 12px; min-height: 14px; }
.success, .ok-text { color: var(--ok); font-weight: 600; }
.warn-text { color: var(--warn); font-weight: 600; }

/* McAfee™ Popup */
.mcafee-popup { position: fixed; bottom: 20px; right: 20px; width: 300px;
  background: #c0c0c0; border: 2px solid #808080; box-shadow: 4px 4px 0 #000;
  font-family: "MS Sans Serif", Arial, sans-serif; font-size: 12px; z-index: 9999;
  animation: mcafee-slide-in 0.3s ease; }
.mcafee-header { background: linear-gradient(to right, #000080, #1084d0); color: #fff;
  padding: 4px 8px; display: flex; justify-content: space-between; align-items: center; }
.mcafee-header button { background: #c0c0c0; border: 1px solid #808080; color: #000; cursor: pointer; font-size: 11px; padding: 0 4px; }
.mcafee-body { padding: 10px 12px; background: #f0f0f0; color: #000; }
.mcafee-footer { padding: 6px 8px; display: flex; gap: 6px; justify-content: flex-end; background: #f0f0f0; }
.mcafee-footer button { padding: 2px 10px; border: 2px solid; border-color: #fff #808080 #808080 #fff;
  background: #c0c0c0; cursor: pointer; color: #000; }
@keyframes mcafee-slide-in { from { transform: translateX(110%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== Feature-Freischaltung: Tutorial-Overlay ===== */
.unlock-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 9500; padding: 16px; animation: unlock-fade-in 0.25s ease;
}
.unlock-card {
  background: var(--card); border: 2px solid var(--accent);
  border-radius: 12px; padding: 28px 24px; max-width: 420px; width: 100%;
  box-shadow: 0 0 40px rgba(0,255,136,0.15), 0 8px 32px rgba(0,0,0,0.5);
  animation: unlock-pop-in 0.3s cubic-bezier(0.34,1.56,0.64,1);
  text-align: center;
}
.unlock-badge {
  display: inline-block; background: var(--accent); color: #000;
  font-size: 0.75rem; font-weight: 700; padding: 4px 12px;
  border-radius: 20px; margin-bottom: 12px; letter-spacing: 0.05em;
}
.unlock-title { font-size: 1.3rem; font-weight: 700; margin: 0 0 10px; }
.unlock-text  { font-size: 0.9rem; color: var(--text-muted); margin: 0 0 20px; line-height: 1.5; }
.unlock-actions { display: flex; gap: 10px; justify-content: center; }
.unlock-try  { background: var(--accent); color: #000; font-weight: 700; }
.unlock-try:hover { opacity: 0.85; }
/* Nav-Tab kurz aufleuchten lassen wenn ein Feature neu freigeschaltet wird */
@keyframes nav-unlock-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,255,136,0.7); background: rgba(0,255,136,0.2); }
  50%  { box-shadow: 0 0 0 8px rgba(0,255,136,0); background: rgba(0,255,136,0.4); }
  100% { box-shadow: 0 0 0 0 rgba(0,255,136,0); background: transparent; }
}
li.nav-unlock-pulse { animation: nav-unlock-pulse 1s ease 3; border-radius: 4px; }
@keyframes unlock-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes unlock-pop-in  { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ===== Fortschrittsbalken ===== */
.timed-block { border: 1px solid var(--border); background: var(--card); border-radius: 8px; padding: 12px 16px; margin: 0 0 16px; }
.progress { height: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; margin: 6px 0; }
.progress .bar { height: 100%; background: var(--accent); border-radius: 4px; transition: width 0.4s; }
/* Boost-Buttons im timed-block: stabile Reihe, kein Layout-Jumping */
.timed-block .boost-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }

/* ===== Hack-Log ===== */
.logbox {
  border: 1px solid var(--border); background: var(--card); padding: 10px 14px;
  max-width: 660px; border-radius: 8px;
  font-family: 'JetBrains Mono', 'Consolas', 'Courier New', monospace;
  font-size: 12px; line-height: 1.8; color: var(--text);
}

/* ===== Monospace ===== */
code, .ip, .mono {
  font-family: 'JetBrains Mono', 'Consolas', 'Courier New', monospace;
  font-size: 0.9em;
}

/* ===== Hack-Terminal (Matrix-Atmosphaere) ===== */
.hack-term {
  position: relative; margin: 8px 0 16px; max-width: 780px;
  border: 1px solid var(--ok); background: #000; color: #0f0;
  font-family: 'JetBrains Mono', 'Consolas', 'Courier New', monospace; font-size: 11px;
  box-shadow: 0 0 14px rgba(0,255,0,.2), inset 0 0 30px rgba(0,80,0,.4);
  overflow: hidden; border-radius: 6px;
}
.hack-term .ht-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 10px; background: linear-gradient(90deg, #021 0%, #031 100%);
  border-bottom: 1px solid #0a0; font-size: 11px; color: #9f9; letter-spacing: 1px;
}
.hack-term .ht-bar .dots span {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  margin-right: 5px; background: #063; box-shadow: 0 0 6px #0f0;
}
.hack-term .ht-bar .dots span.r { background: #a00; box-shadow: 0 0 6px #f00; }
.hack-term .ht-bar .dots span.y { background: #aa0; box-shadow: 0 0 6px #ff0; }
.hack-term .ht-target { color: #ff6; }
.hack-term .ht-wrap { position: relative; height: 240px; }
.hack-term canvas.ht-rain { position: absolute; inset: 0; opacity: .35; pointer-events: none; }
.hack-term .ht-screen {
  position: absolute; inset: 0; padding: 8px 12px; overflow: hidden;
  white-space: pre; line-height: 1.4; text-shadow: 0 0 6px #0f0;
}
.hack-term .ht-screen .ln { display: block; }
.hack-term .ht-screen .cmd { color: #9f9; }
.hack-term .ht-screen .ok  { color: #0f0; }
.hack-term .ht-screen .warn{ color: #fc6; }
.hack-term .ht-screen .err { color: #f44; }
.hack-term .ht-screen .dim { color: #393; }
.hack-term .ht-screen .hex { color: #6cf; }
.hack-term .ht-screen .cursor {
  display: inline-block; width: 8px; height: 12px; background: #0f0;
  vertical-align: middle; animation: ht-blink 1s steps(2) infinite;
  box-shadow: 0 0 6px #0f0;
}
@keyframes ht-blink { 50% { opacity: 0; } }
.hack-term .ht-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 10px; border-top: 1px solid #0a0;
  background: #010; color: #7f7; font-size: 11px;
}
.hack-term .ht-progress { flex: 1; height: 7px; margin: 0 12px; border: 1px solid #0a0; background: #020; }
.hack-term .ht-progress > div { height: 100%; background: #0f0; box-shadow: 0 0 6px #0f0; width: 0%; }
.hack-term .ht-foot .ht-eta { min-width: 74px; text-align: right; color: #cfc; }
.hack-term .ht-cancel { color: #f99; cursor: pointer; text-decoration: underline; }
.hack-term .ht-cancel:hover { color: #fff; }
.hack-term::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0px, rgba(0,0,0,0) 2px, rgba(0,255,0,.05) 3px, rgba(0,0,0,0) 4px);
  mix-blend-mode: screen;
}

/* ===== Chaos-Operationen ===== */
.chaos-grid { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 12px; }
.chaos-card {
  border: 1px solid var(--border); background: var(--card);
  border-radius: 8px; padding: 14px 16px; width: 230px; font-size: 13px; line-height: 1.5;
}
.chaos-card-title { font-weight: 700; color: var(--accent-dark); font-size: 14px; margin-bottom: 4px; }
.chaos-card-flavor { font-style: italic; color: var(--text-muted); margin-bottom: 6px; font-size: 11px; }
.chaos-card-desc { color: var(--text); margin-bottom: 8px; font-size: 12px; }
.chaos-card-special { border-color: #00897b; background: color-mix(in srgb, var(--card) 92%, #00897b 8%); }
.chaos-card-avatar { float: right; margin: 0 0 6px 10px; image-rendering: pixelated; }
.chaos-result {
  margin: 0 0 14px; padding: 10px 14px;
  border-left: 3px solid var(--border); background: var(--bg);
  font-size: 13px; border-radius: 0 6px 6px 0;
}
.chaos-term {
  margin: 8px 0 16px; max-width: 640px;
  border: 1px solid var(--err); background: #0a0000; color: #f66;
  font-family: 'JetBrains Mono', 'Consolas', monospace; font-size: 11px;
  border-radius: 6px; overflow: hidden;
}
.chaos-term .ct-header {
  display: flex; justify-content: space-between;
  padding: 5px 10px; background: #180000; border-bottom: 1px solid #600;
  color: #f44; letter-spacing: 1px; font-size: 11px;
}
.chaos-term .ct-body { padding: 8px 12px; min-height: 100px; max-height: 180px; overflow: hidden; }
.chaos-term .ct-line { display: block; line-height: 1.5; }
.chaos-term .ct-foot {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 10px; border-top: 1px solid #600; background: #100000;
}
.chaos-term .ht-progress { flex: 1; height: 7px; border: 1px solid #600; background: #200000; }
.chaos-term .ht-progress > div { height: 100%; background: var(--err); box-shadow: 0 0 6px #f00; width: 0%; }

/* ===== Phishing-Kampagnen ===== */
.phish-stage {
  display: flex; gap: 16px; margin: 0 0 16px;
  border: 1px solid #333; background: #050505; padding: 12px;
  max-width: 640px; border-radius: 6px;
  color: #0f0; font-family: 'JetBrains Mono', 'Consolas', monospace; font-size: 11px;
}
.phish-spycam { flex: 0 0 auto; text-align: center; }
.spycam-label { color: #f00; font-size: 10px; letter-spacing: 2px; margin-bottom: 4px; animation: ht-blink 1s steps(2) infinite; }
.phish-info { margin-top: 6px; color: #aaa; font-size: 10px; line-height: 1.4; text-align: left; }
.phish-terminal { flex: 1; display: flex; flex-direction: column; }
.phish-terminal > div:first-child { flex: 1; padding: 4px 0; min-height: 80px; overflow: hidden; }
.phish-grid { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 12px; }
.phish-card {
  border: 1px solid var(--border); background: var(--card);
  border-radius: 8px; padding: 14px 16px; width: 230px; font-size: 13px; line-height: 1.5;
}
.phish-card.locked { opacity: 0.55; }
.phish-result { margin: 0 0 14px; padding: 10px 14px; border-left: 3px solid var(--border); font-size: 13px; border-radius: 0 6px 6px 0; color: var(--text); }
.phish-result.ok  { background: #f0fdf4; border-left-color: var(--ok); }
.phish-result.fail{ background: #fef2f2; border-left-color: var(--err); }
body.theme-hacker .phish-result.ok  { background: #001a0a; }
body.theme-hacker .phish-result.fail{ background: #1a0000; }
.phish-story-intro { font-style: italic; color: var(--text); margin: 0 0 12px; padding: 8px 12px; background: var(--card); border-left: 2px solid var(--ok); border-radius: 0 4px 4px 0; font-size: 13px; }
.phish-story-text { font-style: italic; color: var(--muted); font-size: 12px; display: block; margin: 4px 0; }
.lucky-hit { color: #ffd23f; font-weight: 700; text-shadow: 0 0 6px rgba(255,210,63,.6); animation: lucky-pulse 1s ease-in-out infinite; }
@keyframes lucky-pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

/* ===== Notification-Toast ===== */
.notif-toast {
  position: fixed; bottom: 24px; right: 24px; max-width: 380px;
  background: var(--text); color: #f8fafc;
  padding: 12px 16px; border-left: 4px solid var(--accent);
  font-size: 13px; line-height: 1.5;
  opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s;
  z-index: 9999; border-radius: 0 6px 6px 0; box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.notif-toast.notif-toast-in { opacity: 1; transform: translateY(0); }

/* ===== Postfach ===== */
.nav-badge {
  display: inline-block; margin-left: 6px; min-width: 16px; padding: 0 5px;
  font-size: 11px; line-height: 16px; text-align: center;
  background: var(--accent); color: #fff; border-radius: 8px; font-weight: bold;
}
.postfach td { font-size: 13px; vertical-align: top; line-height: 1.5; }
.postfach td:first-child { font-size: 15px; width: 28px; }            /* Icon-Spalte */
.postfach td:nth-child(2) { white-space: normal; overflow-wrap: anywhere; max-width: 560px; }
.postfach tr.msg-unread td { background: var(--accent-soft); }
.postfach tr.msg-unread td:nth-child(2) { font-weight: 600; }
.postfach tr.msg-read td { color: var(--text-muted); }
.postfach td:last-child { width: 28px; }
.msg-del { color: var(--text-muted); text-decoration: none; font-weight: 700; }
.msg-del:hover { color: #b91c1c; }
@media (max-width: 820px) {
  /* Postfach soll umbrechen statt horizontal zu scrollen */
  .content table.grid.postfach { white-space: normal; }
  .postfach td:nth-child(2) { max-width: none; }
}

/* ===== Fusszeile ===== */
.footer {
  clear: both; border-top: 1px solid var(--border); margin-top: 8px;
  padding: 10px 28px; color: var(--text-muted); font-size: 11px;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--card);
}
.footer .badge {
  background: var(--accent-soft); color: var(--accent-dark);
  padding: 3px 8px; border-radius: 4px; font-size: 10px; font-weight: 600;
}

/* ===== ACP (Tab-Layout) ===== */
.acp-tabs {
  display: flex; gap: 4px; flex-wrap: wrap; padding: 12px 24px 0;
  border-bottom: 1px solid var(--border); background: var(--bg);
}
.acp-tabs .acp-tab {
  padding: 7px 16px; border: 1px solid var(--border); border-bottom: none;
  border-radius: 6px 6px 0 0; background: var(--bg);
  color: var(--text-muted); font-weight: 600; font-size: 13px;
  text-decoration: none; position: relative; top: 1px;
}
.acp-tabs .acp-tab:hover { background: var(--accent-soft); color: var(--accent-dark); text-decoration: none; }
.acp-tabs .acp-tab.active { background: var(--card); color: var(--accent-dark); border-color: var(--border); border-bottom: 1px solid var(--card); }
.acp-tabs + .content {
  margin-left: 0; padding: 20px 24px 40px; font-size: 13px;
  /* Einheitlicher Karten-Hintergrund + Mindesthöhe, damit alle Tabs gleich
     gefüllt aussehen und kein heller Hintergrund "abgeschnitten" durchblitzt. */
  background: var(--card);
  border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 8px 8px;
  min-height: calc(100vh - 230px);
}
.acp-tabs + .content p, .acp-tabs + .content .indent { margin-left: 0; }
.acp-tabs + .content table.grid, .acp-tabs + .content table.form { margin-left: 0; }
.acp-tabs + .content h2 { padding-left: 0; font-size: 20px; margin: 0 0 14px; padding-bottom: 10px; }
.acp-tabs + .content h3 { margin: 20px 0 8px; }
.acp-tabs + .content .note { margin-left: 0; max-width: 720px; }

.acp-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0 0 16px; }
.acp-kpi { border: 1px solid var(--border); background: var(--card); border-radius: 8px; padding: 12px 14px; }
.acp-kpi-val { font-size: 22px; font-weight: 700; color: var(--text); line-height: 1.1; }
.acp-kpi-val.good { color: var(--ok); }
.acp-kpi-val.warn { color: var(--err); }
.acp-kpi-lbl { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

.acp-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.acp-toolbar input[type="search"] { padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px; min-width: 200px; font-family: inherit; font-size: 13px; }
.acp-toolbar select { padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; font-family: inherit; font-size: 13px; width: auto; }

/* ── Feedback Kategorie-Buttons ── */
.fb-type-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 8px; border-radius: 8px; cursor: pointer; font-family: inherit;
  border: 2px solid var(--border); background: var(--card);
  color: var(--text-muted); transition: all 0.15s;
}
.fb-type-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.fb-type-btn.fb-type-active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.fb-type-icon { display: flex; align-items: center; justify-content: center; }
.fb-type-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
body.theme-hacker .fb-type-btn { border-color: #0d2e16; background: #050e08; }
body.theme-hacker .fb-type-btn:hover,
body.theme-hacker .fb-type-btn.fb-type-active { border-color: #00e676; color: #00e676; background: #001a0d; }
body.theme-cyberpunk .fb-type-btn { border-color: #2a0040; background: #0e0018; }
body.theme-cyberpunk .fb-type-btn:hover,
body.theme-cyberpunk .fb-type-btn.fb-type-active { border-color: #f700ff; color: #f700ff; background: #1a0028; }

/* Changelog */
.cl-entry { border: 1px solid var(--border); border-radius: 8px; background: var(--card); padding: 12px 16px; margin: 0 0 12px; }
.cl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; border-bottom: 1px solid var(--border); padding-bottom: 6px; margin-bottom: 6px; }
.cl-ver { font-weight: 700; font-size: 16px; color: var(--accent-dark); }
.cl-title { font-weight: 600; color: var(--text); }
.cl-date { margin-left: auto; color: var(--text-muted); font-size: 12px; }
.cl-list { margin: 0; padding-left: 20px; line-height: 1.7; color: var(--text); }
.cl-list li { margin: 0; }
/* Interne Changelog-Zeilen — nur im ACP sichtbar, optisch hervorgehoben. */
.cl-list li.cl-internal { background: #3a2a08; border-left: 3px solid #ffb020; border-radius: 4px; padding: 2px 8px; margin: 2px 0 2px -8px; list-style: none; }
.cl-int-badge { display: inline-block; font-size: 10px; letter-spacing: .5px; text-transform: uppercase; color: #ffb020; border: 1px solid #5a4310; border-radius: 4px; padding: 0 5px; margin-left: 6px; vertical-align: middle; }

/* ===== Mobil / Smartphone + Tablet (PWA) ===== */
@media (max-width: 820px) {
  /* HINWEIS: overscroll-behavior-y NICHT auf html,body setzen — auf Android
     Blink kann das in Kombination mit der fixierten Bottom-Nav das Scrollen
     blockieren (iOS WebKit ignoriert es, daher dort kein Symptom). */
  html, body { overflow-x: hidden; max-width: 100%; }
  /* Tap auf untere Navigation soll kein verzögertes Scroll-/Zoom-Verhalten auslösen */
  #navi a { touch-action: manipulation; }

  /* ── Header ── */
  .header {
    padding: calc(10px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) 8px calc(12px + env(safe-area-inset-left));
    gap: 6px; flex-wrap: nowrap;
  }
  .header .logo { font-size: 17px; flex-shrink: 0; }
  .header .session { font-size: 11px; flex: 1; text-align: right; }
  /* Auf Mobil "Eingeloggt:" und "Neu laden" Text kürzen */
  .header .session .mob-hide { display: none; }
  .header .tag { display: none; }
  .theme-toggle { padding: 4px 8px; font-size: 10px; }
  /* Reload-Button auf Mobil als Touch-freundliches Target */
  .header .session a[data-action="reload"] {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; min-height: 36px; padding: 6px 10px;
    font-size: 18px; line-height: 1; border-radius: 6px;
    background: var(--accent-soft); color: var(--accent);
    text-decoration: none; touch-action: manipulation;
  }
  /* Online-Anzeige: auf Hochkant sichtbar aber kompakt */
  .online-chip { font-size: 0.72rem; padding: 2px 7px; }

  /* ── Bottom-Tab-Bar Navigation ── */
  #navi {
    float: none; width: 100%; margin: 0; padding: 0;
    border-right: none; border-top: 1px solid var(--border);
    background: var(--card);
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    display: flex; flex-direction: row; justify-content: stretch;
    padding-bottom: env(safe-area-inset-bottom);
    min-height: auto; overflow-x: auto; overflow-y: hidden;
  }
  /* Android: extra 16px Puffer gegen System-Gesture-Zone */
  html.android #navi {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
    scrollbar-width: none;
    box-shadow: 0 -2px 12px rgba(0,0,0,.10);
    -webkit-overflow-scrolling: touch;
  }
  #navi::-webkit-scrollbar { display: none; }
  .navigation li { flex: 0 0 auto; display: flex; }
  .navigation li a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 6px 10px 5px; white-space: nowrap; border-left: none; border-radius: 0;
    border: none; background: transparent; font-size: 9px; font-weight: 600;
    color: var(--text-muted); text-decoration: none; gap: 2px; line-height: 1.2;
    min-width: 52px;
  }
  .navigation li a .nav-icon { width: 22px; height: 22px; }
  .navigation li a .nav-label { display: block; font-size: 9px; }
  .navigation li.active a { background: var(--accent-soft); color: var(--accent-dark); }
  .navigation .help { display: none; }
  .nav-badge { font-size: 9px; min-width: 14px; padding: 0 3px; line-height: 14px; }

  /* Content bekommt Platz für Bottom-Bar */
  .content { margin-left: 0; padding: 14px 12px calc(70px + env(safe-area-inset-bottom)); }
  html.android .content { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px) + 16px); }

  /* ── ACP tabs (horizontal scroll) ── */
  .acp-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 8px 12px 0; scrollbar-width: none; }
  .acp-tabs::-webkit-scrollbar { display: none; }
  .acp-tabs .acp-tab { flex: 0 0 auto; }
  .acp-tabs + .content { padding: 12px 12px calc(70px + env(safe-area-inset-bottom)); }
  .acp-kpis { grid-template-columns: repeat(2, 1fr); }

  /* ── ACP Spieler-Tabelle: Kachel-Grid (kein Horizontal-Swipe) ── */
  .acp-player-grid { display: block; overflow-x: visible; }
  .acp-player-grid thead { display: none; }
  .acp-player-grid tbody { display: flex; flex-direction: column; gap: 10px; }
  .acp-player-grid tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    position: relative;
  }
  .acp-player-grid td { display: block; padding: 0; border: none; font-size: 12px; }
  .acp-player-grid td[data-label]::before {
    content: attr(data-label) ": ";
    color: var(--text-muted); font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.04em;
    display: block; margin-bottom: 1px;
  }
  /* Aktionen-Zelle über volle Breite */
  .acp-player-grid td.acp-player-actions {
    grid-column: 1 / -1;
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px;
  }
  .acp-player-grid td.acp-player-actions .btn { flex: 1 1 auto; text-align: center; }

  /* ── Typo ── */
  h2 { font-size: 18px; margin-bottom: 10px; padding-bottom: 10px; }
  h3 { margin-left: 0; font-size: 11px; }

  /* ── Allgemeine Element-Fixes ── */
  .content p, .content .indent, .note, .statbar, .progress, .logbox,
  table.form, table.grid, #game-msg, form, .hack-term { margin-left: 0 !important; }
  .statbar, .note, .logbox, .hack-term { max-width: 100% !important; }
  .content p, .content .indent, .note { max-width: 100% !important; overflow-wrap: break-word; }
  .progress { width: 100% !important; box-sizing: border-box; }

  /* ── Statbar: 2 pro Zeile ── */
  .statbar { gap: 8px; }
  .statbar .item { flex: 1 1 calc(50% - 4px); min-width: 0; padding: 8px 10px; }
  .statbar .v { font-size: 15px; }
  .statbar .k { font-size: 10px; }

  /* ── Inputs ── */
  input[type="text"], input[type="password"], input[type="number"], select, textarea {
    font-size: 16px; width: 100%;
  }
  input[type="submit"] { font-size: 14px; padding: 10px 18px; }
  .btn { padding: 9px 14px; font-size: 13px; touch-action: manipulation; }

  /* ── Tabellen (allgemein) ── */
  table.grid { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; max-width: 100%; }
  table.grid th, table.grid td { padding: 8px 8px; font-size: 12px; white-space: normal; word-break: break-word; }
  table.grid th { white-space: nowrap; }

  /* ── NPC / Spieler-Tabelle als Cards ── */
  table.npc-table { display: block; overflow-x: visible; }
  table.npc-table thead { display: none; }
  table.npc-table tbody { display: flex; flex-direction: column; gap: 8px; }
  table.npc-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 4px 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    position: relative;
  }
  table.npc-table td { display: block; padding: 0; border: none; font-size: 13px; white-space: normal; word-break: break-all; }
  table.npc-table td[data-label]::before {
    content: attr(data-label) ": ";
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 1px;
  }
  table.npc-table td.npc-cb {
    position: absolute; top: 10px; right: 12px;
    grid-column: unset; grid-row: unset;
  }
  table.npc-table td.npc-action {
    grid-column: 1 / -1;
    margin-top: 4px;
  }
  table.npc-table td.npc-action .btn {
    display: block; width: 100%; text-align: center; box-sizing: border-box;
  }
  .npc-ip { font-family: monospace; font-size: 12px; word-break: break-all; }

  /* ── Hardware / Programme als Kachel-Cards (kein Horizontal-Swipe mehr) ── */
  /* WICHTIG: Flexbox statt CSS-Grid auf tbody — display:grid auf <tbody>
     verhält sich auf manchen Android-Chrome-Versionen fehlerhaft. Die
     bewährte npc-table nutzt ebenfalls Flexbox. Zwei Spalten via flex-wrap. */
  table.grid.card-grid { display: block; overflow-x: visible; }
  table.grid.card-grid thead { display: none; }
  table.grid.card-grid tbody { display: flex; flex-wrap: wrap; gap: 10px; }
  table.grid.card-grid tr {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
    box-sizing: border-box;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 12px;
  }
  table.grid.card-grid td { display: block; padding: 0; border: none; font-size: 13px; white-space: normal; word-break: break-word; }
  table.grid.card-grid td[data-label]::before {
    content: attr(data-label) ": ";
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 1px;
  }
  table.grid.card-grid td.cardgrid-action { margin-top: 4px; }
  table.grid.card-grid td.cardgrid-action .btn { display: inline-block; width: 100%; text-align: center; box-sizing: border-box; margin: 2px 0; }
  table.grid.card-grid tr.you td { border-left: none; }

  table.form { width: 100%; }
  table.form td { display: block; width: 100%; box-sizing: border-box; padding: 4px 0; }
  table.form td.label { padding-bottom: 2px; border-bottom: none; }

  /* ── Cards (Chaos, Phishing, BTC-Shop) ── */
  .chaos-grid, .phish-grid { flex-direction: column; gap: 8px; }
  .chaos-card, .phish-card { width: 100%; box-sizing: border-box; }

  /* ── Hack-Terminal ── */
  .hack-term { font-size: 10px; }
  .hack-term .ht-wrap { height: 180px; }
  .hack-term .ht-screen { white-space: pre-wrap; word-break: break-all; padding: 5px 7px; }
  .hack-term .ht-bar { flex-wrap: wrap; gap: 3px 6px; padding: 5px 7px; }
  .hack-term .ht-target { word-break: break-all; }
  .hack-term .ht-foot { flex-wrap: wrap; gap: 3px 6px; }
  .hack-term .ht-progress { order: 3; flex: 1 1 100%; margin: 3px 0 0; }

  
  .gacha-multi-grid { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .gacha-multi-card { padding: 5px 3px; font-size: 10px; }

  /* ── Story ── */
  .stage-row { gap: 4px; }
  .stage-node { width: 32px; height: 32px; font-size: 0.65rem; }
  .stage-node.stage-boss { width: 38px; height: 38px; }
  .story-modal-inner { padding: 16px; max-width: 98vw; }
  /* ── Hack-Minigame mobil ── */
  .ht-game { padding: 12px 10px !important; }
  .ht-dump { font-size: 0.62rem; max-height: 240px; }
  .ht-header { font-size: 0.68rem; }
  .ht-attempts { font-size: 0.65rem; }
  /* ── Dual-Mode mobil ── */
  .modal-mode-choice { flex-direction: column; gap: 8px; }
  /* ── Phishing-Minigame mobil ── */
  .ph-game { padding: 12px 10px !important; }
  .ph-email { font-size: 0.75rem; padding: 8px 10px; }
  .ph-stats { font-size: 0.7rem; gap: 10px; }
  /* ── Chaos-Minigame mobil ── */
  .cg-game { padding: 12px 10px !important; }
  .cg-sym { font-size: 1.6rem; width: 44px; height: 44px; }
  .cg-btn { width: 42px; height: 42px; font-size: 1.3rem; }
  .cg-progress { font-size: 1.4rem; gap: 10px; }

  /* ── Timed-Block / Build ── */
  .timed-block { padding: 10px 12px; }
  .boost-half, .boost-instant { padding: 5px 10px; font-size: 12px; }

  /* ── BTC-Market ── */
  .btcmarket-header { flex-direction: column; gap: 8px; padding: 10px 12px; }
  .btcmarket-form { flex-direction: column; align-items: stretch; gap: 6px; }
  .btcmarket-quick { flex-wrap: wrap; gap: 6px; }

  /* ── Footer ── */
  .footer { flex-direction: column; gap: 4px; align-items: flex-start; padding: 10px 12px; margin-left: 0; }

  /* ── Toast ── */
  .notif-toast { bottom: calc(60px + env(safe-area-inset-bottom)); right: 10px; left: 10px; max-width: none; }

  /* ── McAfee Popup ── */
  .mcafee-popup { right: 8px; bottom: calc(64px + env(safe-area-inset-bottom)); width: calc(100% - 16px); max-width: 320px; }

  /* ── Phishing Spycam (zu breit auf Handy) ── */
  .phish-stage { flex-direction: column; gap: 8px; }

  /* ── Savings ── */
  .savings-grid { grid-template-columns: 1fr 1fr; }
  .savings-forms { grid-template-columns: 1fr; }

  /* ── Bonus-Banner ── */
  .bonusbar { padding: 8px 12px; font-size: 12px; }
}

/* ===== BTC-Shop Aktive Boosts ===== */
.btcshop-active { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.btcshop-boost-active {
  padding: 6px 12px; border-radius: 20px; font-size: 12px;
  background: var(--accent-soft); border: 1px solid var(--accent);
}

/* ===== BTC-Markt ===== */
.btcmarket-header {
  display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start;
  margin: 0 0 16px; padding: 14px 18px;
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
}
.btcmarket-rate { flex: 1 1 auto; line-height: 1.4; }
.btcmarket-balances {
  display: flex; gap: 20px; flex-wrap: wrap; align-items: center;
  font-size: 13px; padding-top: 4px;
}
.btcmarket-balances .k {
  display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .8px;
  color: var(--text-muted); font-weight: 700; margin-bottom: 2px;
}
.btcmarket-balances .btc-val  { font-size: 15px; font-weight: 700; color: #f0a000; font-family: 'JetBrains Mono', monospace; }
.btcmarket-balances .cred-val { font-size: 15px; font-weight: 700; color: var(--accent); }
.btcmarket-chart-wrap { margin: 0 0 20px; }
.btcmarket-chart-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-muted); margin-bottom: 4px; font-weight: 700;
}
.btcmarket-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 8px 0 12px; }
.btcmarket-quick { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 16px; }
.cred-val { color: var(--accent); }

/* Hacker-Mode Trading Chart Glow */
body.theme-hacker .btcmarket-chart-wrap svg { box-shadow: 0 0 18px rgba(0,230,118,.12); }
body.theme-hacker .btcmarket-header { background: #050e08; border-color: #0d2e16; }

/* ===== Mobile BTC-Markt ===== */
@media (max-width: 820px) {
  .btcmarket-header { flex-direction: column; gap: 10px; }
  .btcmarket-form { flex-direction: column; align-items: flex-start; }
  .btcmarket-quick { flex-direction: column; }
}

/* ===== Profil Unterreiter ===== */
.profil-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 18px 24px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.profil-tab-btn {
  font-family: inherit;
  font-size: 0.82rem;
  padding: 7px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 3px solid transparent;
  border-radius: 4px 4px 0 0;
  color: var(--muted);
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
  margin-bottom: -2px;
}
.profil-tab-btn:hover { color: var(--fg); background: var(--card-hover, rgba(255,255,255,.04)); }
.profil-tab-btn.active {
  color: var(--accent);
  border-color: var(--border) var(--border) var(--bg);
  background: var(--bg);
  font-weight: 600;
}
.profil-tab-content { padding: 0 0 0 0; }
.profil-card {
  background: var(--card-bg, rgba(255,255,255,.03));
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px 24px;
  margin: 0 0 16px 24px;
  max-width: 560px;
}
.profil-section {
  margin: 0 0 16px 24px;
}
.profil-section-title {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 10px;
}

/* ===== Aktiv-Spielen: Quest/Momentum/Heat/Combo/Liga ===== */
.quest-row, .momentum-box, .heat-box, .combo-box, .league-box {
  margin-bottom: 10px;
}
.quest-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.quest-label { font-size: 0.8rem; color: var(--text); }
.quest-prog  { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; margin-left: 8px; }
.quest-bar {
  height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; margin-bottom: 4px;
}
.quest-bar span {
  display: block; height: 100%; background: var(--accent);
  border-radius: 3px; transition: width 0.4s ease;
}
.quest-done .quest-bar span { background: var(--ok); }
.quest-reward { margin-top: 2px; }

/* Liga-Rangliste Board */
.league-list { margin-top: 6px; display: flex; flex-direction: column; gap: 3px; }
.league-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; padding: 3px 6px; border-radius: 4px;
  background: var(--card); border: 1px solid var(--border);
}
.league-row.me { border-color: var(--accent); color: var(--accent); }
.league-rank  { width: 22px; color: var(--text-muted); font-size: 0.72rem; }
.league-name  { flex: 1; }
.league-pts   { color: var(--warn); font-size: 0.72rem; white-space: nowrap; }


/* ── Netzwerk Tab-Kacheln ── */
.netz-tabs {
  display: flex;
  gap: 10px;
  margin: 12px 0 16px;
  flex-wrap: wrap;
}
.netz-tab {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  min-width: 130px;
  position: relative;
  overflow: hidden;
}
.netz-tab::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}
.netz-tab:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  transform: translateY(-1px);
}
.netz-tab.active {
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, var(--card));
}
.netz-tab.active::before { opacity: 1; }
.netz-tab-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.netz-tab.active .netz-tab-label { color: var(--accent); }
.netz-tab-count {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  line-height: 1;
}
.netz-tab.active .netz-tab-count { color: var(--accent); }
.netz-tab-sub {
  font-size: 9px;
  color: var(--text-muted);
}
/* Raid-Boss Tab — rot */
.netz-tab.netz-tab-raidboss::before { background: var(--err); }
.netz-tab.netz-tab-raidboss:hover { border-color: color-mix(in srgb, var(--err) 40%, transparent); }
.netz-tab.netz-tab-raidboss.active {
  border-color: color-mix(in srgb, var(--err) 50%, transparent);
  background: color-mix(in srgb, var(--err) 8%, var(--card));
}
.netz-tab.netz-tab-raidboss.active .netz-tab-label { color: var(--err); }
.netz-tab.netz-tab-raidboss.active .netz-tab-count { color: var(--err); }
.netz-tab.netz-tab-raidboss .netz-tab-label { display: flex; align-items: center; gap: 4px; }

/* ===== Inventar ===== */
.inv-tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.inv-tab-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px; padding: 6px 10px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer; border-radius: 4px;
  transition: all 0.15s;
}
.inv-tab-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.inv-tab-btn:hover:not(.active) { border-color: var(--accent); color: var(--text); }

.inv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 6px;
  margin-bottom: 16px;
}
.inv-slot {
  aspect-ratio: 1;
  max-width: 64px;
  border: 2px solid #333;
  border-radius: 4px;
  background: #0a0a0a;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  cursor: pointer; font-size: 10px;
  position: relative; transition: all 0.15s;
}
.inv-slot:hover { border-color: var(--accent); }
.inv-slot.selected { border-color: #ffcc00; box-shadow: 0 0 6px #ffcc0088; }
.inv-slot.empty { cursor: default; opacity: 0.3; }
.inv-slot .inv-qty {
  position: absolute; bottom: 2px; right: 3px;
  font-size: 8px; color: #aaa; font-family: 'Press Start 2P', monospace;
}
.inv-slot.rarity-common   { border-color: #555; }
.inv-slot.rarity-rare     { border-color: #4fc3f7; }
.inv-slot.rarity-epic     { border-color: #ce93d8; background: #0d001a; }
.inv-slot.rarity-legendary { border-color: #ffd54f; background: #1a1000; box-shadow: 0 0 4px #ffd54f44; }

.inv-detail {
  border: 1px solid var(--border); border-radius: 6px;
  padding: 14px 16px; background: var(--card); margin-bottom: 12px;
  min-height: 80px;
}
.inv-detail-name { font-family: 'Press Start 2P', monospace; font-size: 9px; margin-bottom: 6px; }
.inv-detail-rarity { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 6px; }
.inv-detail-desc  { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 10px; }
.inv-detail-actions { display: flex; gap: 8px; }
.inv-rarity-common   { color: #999; }
.inv-rarity-rare     { color: #4fc3f7; }
.inv-rarity-epic     { color: #ce93d8; }
.inv-rarity-legendary { color: #ffd54f; }

/* Story-Boni sub-tab */
.inv-story-bonus-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-bottom: 1px solid #1a1a1a;
  font-size: 0.82rem;
}
.inv-story-bonus-row .bonus-stage { font-family: 'Press Start 2P', monospace; font-size: 7px; color: #888; min-width: 60px; }
.inv-story-bonus-row .bonus-desc { flex: 1; color: var(--text); }
.inv-story-bonus-row .bonus-state { font-size: 0.75rem; }
.bonus-active { color: var(--ok); }
.bonus-locked { color: #444; }


/* ── Legacy (compat) ── */
.gacha-header { display:none; }
.gacha-box-wrap { display:none; }
.gacha-box-info { display:none; }
.gacha-open-btn.disabled, .gb-draw-btn.disabled { opacity:.45; pointer-events:none; }



/* Outer 3-Spalten: Panel | Box | Panel */





/* Side panel title (used in gb-info-panel and gb-bottom-col) */



/* Shared side styles */


/* Letzte Ziehungen */

.gb-recent-row:last-child { border-bottom: none; }


/* Drop-Chancen */

.gb-rate-row:last-child { border-bottom: none; }


.rarity-legendary-bg { background: #ffd54f; }
.rarity-epic-bg      { background: #ce93d8; }
.rarity-rare-bg      { background: #4fc3f7; }
.rarity-uncommon-bg  { background: #81c784; }
.rarity-common-bg    { background: #9e9e9e; }

/* Topbar */








/* Stage */




/* Orbit-Container dreht sich langsam — Partikel sind fix platziert auf dem Kreis */

/* Position via top/left relativ zur Mitte des .gb-orbit (0,0) */

.gacha-box-art {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent); transition: transform .3s ease; position: relative; z-index: 1;
}
.gacha-box-art svg {
  width: 100px; height: 100px;
  filter: drop-shadow(0 0 18px rgba(139,92,246,.7)) drop-shadow(0 0 6px currentColor);
}
.gacha-box-art.gacha-opening { animation: gacha-shake .5s ease; }
@keyframes gacha-shake {
  0%,100% { transform: rotate(0); }
  20%  { transform: rotate(-12deg) scale(1.1); }
  40%  { transform: rotate(12deg)  scale(1.2); }
  60%  { transform: rotate(-8deg)  scale(1.15); }
  80%  { transform: rotate(8deg)   scale(1.1); }
}


/* Stat pills */

.gb-stat:last-child { border-right: none; }




/* Pity bar */

.gb-pity-bar.warn-bar { background: #f59e0b; }
.gb-pity-bar.ok-bar   { background: #22c55e; }

/* Draw buttons */

.gb-draw-btn:hover { border-color: var(--accent); background: rgba(139,92,246,.1); transform: translateY(-1px); }

.gb-draw-btn-multi:hover { background: linear-gradient(135deg, rgba(139,92,246,.28) 0%, rgba(99,102,241,.15) 100%); }




/* Legacy pity (used in old layout, keep compat) */
.gacha-pity-wrap { display:none; }
.gacha-pity-bar  { height: 100%; border-radius: 3px; background: var(--accent); transition: width .5s; }

.gacha-missions-col h3 { font-size: 13px; margin: 0 0 10px; }
.gacha-mission {
  padding: 10px 12px; margin: 0 0 8px;
  background: var(--card); border: 1px solid var(--border); border-radius: 6px;
}
.gacha-mission.done     { border-color: #4caf50; }
.gacha-mission.claimed  { opacity: .55; }
.gacha-mission.all-done { opacity: .4; border-color: var(--border); }
/* Tier-Pips */
.gacha-tier-pips { display: flex; gap: 3px; align-items: center; }
.gacha-tier-pip {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  transition: background .2s;
}
.gacha-tier-pip.done    { background: #4caf50; border-color: #4caf50; }
.gacha-tier-pip.active  { background: var(--accent); border-color: var(--accent); }
.gacha-tier-pip.pending { background: transparent; }
body.theme-hacker   .gacha-tier-pip.active { background: #00e676; border-color: #00e676; }
body.theme-cyberpunk .gacha-tier-pip.active { background: #f700ff; border-color: #f700ff; }
.gacha-mission-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 4px; }
.gacha-mission-title { font-weight: 700; font-size: 13px; flex: 1; }
.gacha-mission-reward { font-size: 11px; color: var(--accent); font-weight: 700; white-space: nowrap; }
.gacha-mission-desc { font-size: 11px; margin: 0 0 6px; }
.gacha-mission-count { font-size: 10px; text-align: right; }
.gacha-progress-wrap { height: 5px; background: var(--border); border-radius: 3px; margin: 3px 0; }
.gacha-progress-bar  { height: 100%; border-radius: 3px; background: var(--accent); transition: width .5s; }

.gacha-result-wrap { margin: 0 0 20px; }
.gacha-result {
  padding: 20px 24px; border-radius: 10px; text-align: center;
  border: 2px solid var(--glow, #aaa);
  box-shadow: 0 0 18px var(--glow, #aaa);
  animation: gacha-reveal .5s cubic-bezier(.17,.67,.52,1.4);
}
@keyframes gacha-reveal {
  from { transform: scale(0.6) rotate(-6deg); opacity: 0; }
  to   { transform: scale(1)   rotate(0deg);  opacity: 1; }
}
/* Zentriertes Ergebnis-Popup mit Oval-Rahmen + Fade-out */
.gacha-result-overlay {
  position: fixed; inset: 0; z-index: 4000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.55);
  transition: opacity .7s ease;
}
.gacha-result-overlay.gacha-result-fade { opacity: 0; }
.gacha-result-overlay .gacha-result {
  min-width: 240px; max-width: 80vw;
  padding: 28px 40px;
  border-radius: 999px / 60px;
  background: rgba(12,6,20,.96);
  border: 2px solid var(--glow, #aaa);
  box-shadow: 0 0 40px var(--glow, #aaa), inset 0 0 24px rgba(255,255,255,.05);
}
/* 10x-Ziehung: zentriertes Overlay mit Karten-Grid */
.gacha-multi-overlay {
  position: fixed; inset: 0; z-index: 4000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.6);
}
.gacha-multi-box {
  background: rgba(12,6,20,.97);
  border: 1px solid var(--bb-stroke, rgba(255,255,255,.1));
  border-radius: 18px;
  padding: 22px 24px;
  max-width: 92vw; max-height: 86vh; overflow: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.gacha-multi-head { text-align: center; font-weight: 800; font-size: 18px; margin-bottom: 16px; color: var(--text, #fff); }
.gacha-multi-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.gacha-card {
  border: 1px solid var(--bb-stroke2, rgba(255,255,255,.08));
  border-radius: 12px; padding: 12px 10px; text-align: center;
  background: rgba(255,255,255,.02);
  animation: gacha-reveal .45s cubic-bezier(.17,.67,.52,1.4) both;
}
.gacha-card-rarity { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; font-weight: 700; }
.gacha-card-label { display: block; font-size: 12px; color: var(--text, #fff); }
.gacha-multi-hint { text-align: center; font-size: 12px; color: var(--bb-faint, #888); margin-top: 16px; }
@media (max-width: 640px) { .gacha-multi-cards { grid-template-columns: repeat(2, 1fr); } }
.gacha-result-rarity { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; margin: 0 0 6px; }
.gacha-result-label  { font-size: 1.4em; font-weight: 800; }

.gacha-perms { padding: 10px 16px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; margin: 0 0 20px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.gacha-perms h3 { margin: 0; font-size: 13px; }

.rarity-common    { color: #aaa; }
.rarity-uncommon  { color: #4fc3f7; }
.rarity-rare      { color: #9c27b0; font-weight: 700; }
.rarity-epic      { color: #ff9800; font-weight: 700; }
.rarity-legendary { color: #ffd700; font-weight: 800; text-shadow: 0 0 8px #ffd700; }

body.theme-hacker .gacha-header,
body.theme-hacker .gacha-box-wrap,
body.theme-hacker .gacha-mission,
body.theme-hacker .gacha-perms,
body.theme-hacker .gacha-result { background: #050e08; border-color: #0d2e16; }

@media (max-width: 820px) {

  .gacha-box-wrap      { flex-direction: column; }
}

/* ── Sparkonto ─────────────────────────────────────────────────────────── */
.savings-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 14px 0 18px;
}
.savings-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px;
}
.savings-label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.savings-value { font-size: 18px; font-weight: 700; font-family: 'JetBrains Mono', monospace; }
.savings-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.savings-form {
  background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 16px;
}
.savings-form h3 { margin: 0 0 8px; }
.savings-form input {
  width: 100%; box-sizing: border-box; margin: 8px 0; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: 6px; font-family: 'JetBrains Mono', monospace;
}
.savings-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.savings-forms { grid-template-columns: repeat(3, 1fr); }
.savings-tier-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; background: var(--accent); color: #fff; font-size: 0.8rem; font-weight: 600; }
.savings-tier-progress { margin: -6px 0 14px; }
.savings-tier-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 4px; }
.savings-tier-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.savings-tier-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.3s; }

body.theme-hacker .savings-card,
body.theme-hacker .savings-form { background: #050e08; border-color: #0d2e16; }

@media (max-width: 1024px) {
  .savings-forms { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .savings-grid  { grid-template-columns: 1fr 1fr; }
  .savings-forms { grid-template-columns: 1fr; }
}

/* ─── Online-Anzeige im Header ──────────────────────────────────── */
/* Eigenes Element damit es auf Mobile (wo .tag display:none) trotzdem sichtbar ist */
.header-online {
  display: flex;
  align-items: center;
  order: 3;
}
.online-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 2px 10px;
  border-radius: 20px;
  border: 1px solid var(--border, #444);
  font-size: 0.8rem;
  user-select: none;
}
.online-chip:hover { border-color: var(--accent, #6cf); }
.online-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #2ecc71; box-shadow: 0 0 4px #2ecc71;
  flex-shrink: 0;
}
.online-caret { font-size: 0.65rem; opacity: 0.7; }
.online-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0; left: auto;
  min-width: 180px; max-width: 90vw; background: var(--card, #1c1c1c);
  border: 1px solid var(--border, #444); border-radius: 6px;
  box-shadow: 0 4px 16px #0006; z-index: 100; overflow: hidden; text-align: left;
}
.online-user { padding: 5px 10px; font-size: 0.85rem; border-bottom: 1px solid var(--border, #444); display: flex; align-items: center; gap: 6px; overflow: hidden; }
.online-user:last-child { border-bottom: none; }
.online-user span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.online-user-abbr {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 4px;
  font-size: 0.7rem; font-weight: 700; color: #fff;
  line-height: 1;
}
.online-empty { padding: 8px 12px; font-size: 0.8rem; font-style: italic; opacity: 0.7; }

/* ═══ Postfach / Mail-UI ════════════════════════════════════════════════════ */
.mail-toolbar { margin-bottom: 8px; }
.mail-layout {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  min-height: 300px;
}
.mail-list {
  flex: 0 0 300px;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  max-height: 600px;
}
.mail-detail-pane {
  flex: 1;
  padding: 16px 20px;
  display: none;
  overflow-y: auto;
  max-height: 600px;
}
.mail-row {
  display: grid;
  grid-template-columns: 100px 1fr 46px;
  align-items: center;
  gap: 0 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.1s;
}
.mail-row:last-child { border-bottom: none; }
.mail-row:hover { background: var(--accent-soft); }
.mail-row.mail-unread { background: color-mix(in srgb, var(--accent) 8%, var(--card)); }
.mail-row.mail-unread .mail-row-subject { font-weight: 700; }
.mail-row-from { font-size: 0.8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-row-body { font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-row-subject { }
.mail-row-preview { color: var(--text-muted); }
.mail-row-time { font-size: 0.75rem; color: var(--text-muted); text-align: right; white-space: nowrap; }
.mail-empty { padding: 24px 16px; color: var(--text-muted); font-style: italic; font-size: 0.85rem; }
.mail-detail-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.mail-detail-subject { margin: 0 0 8px; font-size: 1.1rem; }
.mail-detail-meta { display: flex; gap: 16px; font-size: 0.82rem; margin-bottom: 14px; color: var(--text-muted); }
.mail-detail-body { font-size: 0.9rem; line-height: 1.65; white-space: pre-wrap; word-break: break-word; padding: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; margin-bottom: 16px; }
.mail-reply-box { margin-top: 8px; }
.mail-reply-ta { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--card); color: var(--text); font-size: 0.88rem; resize: vertical; margin-bottom: 8px; }
.mail-reply-actions { display: flex; gap: 8px; }
@media (max-width: 700px) {
  .mail-layout { flex-direction: column; }
  .mail-list { flex: none; border-right: none; border-bottom: 1px solid var(--border); max-height: 250px; }
  .mail-detail-pane { max-height: none; }
}

@media (max-width: 1000px) {

  
}
@media (max-width: 600px) {

}

/* ═══ System-Tab Grid ═══════════════════════════════════════════════════════ */
.sys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin: 12px 0 16px;
}

.sys-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 14px 10px;
  overflow: hidden;
  min-width: 0;
}
.sys-card-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.sys-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
  padding: 2px 0;
  gap: 8px;
}
.sys-label { color: var(--text-muted); white-space: nowrap; }
.sys-val   { font-weight: 600; white-space: nowrap; }
.sys-perf  { font-weight: 400; color: var(--text-muted); margin-left: 4px; }
.sys-row-full { font-size: 0.85rem; padding: 2px 0; }
.sys-hw-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.sys-hw-table tr { line-height: 1.8; }
.sys-hw-name  { color: var(--text-muted); padding-right: 10px; white-space: nowrap; width: 1%; }
.sys-hw-level { font-weight: 600; white-space: nowrap; padding-right: 8px; width: 1%; }
.sys-hw-perf  { color: var(--text-muted); }

/* ═══ Maik Neubauer — Endboss Row ════════════════════════════════════════════ */
tr.npc-row-maik {
  background: color-mix(in srgb, #ff2d55 8%, var(--bg2, var(--bg)));
  border-left: 3px solid #ff2d55;
  animation: maik-pulse 3s ease-in-out infinite;
}
@keyframes maik-pulse {
  0%, 100% { box-shadow: inset 0 0 0px #ff2d5500; }
  50%       { box-shadow: inset 0 0 18px #ff2d5522; }
}
.maik-name {
  font-weight: 800;
  color: #ff2d55;
  text-shadow: 0 0 8px #ff2d5588;
  letter-spacing: 0.5px;
}
.maik-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ff2d55;
  border: 1px solid #ff2d55;
  border-radius: 3px;
  padding: 1px 5px;
  margin-left: 6px;
  vertical-align: middle;
  opacity: 0.85;
}
.maik-ip {
  color: #ff2d55;
  font-weight: 700;
  opacity: 0.7;
}
.maik-fw {
  color: #ff2d55;
  font-weight: 700;
}
.btn-maik {
  background: #ff2d55 !important;
  border-color: #ff2d55 !important;
  color: #fff !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px;
  box-shadow: 0 0 8px #ff2d5566;
  transition: box-shadow .2s, transform .1s;
}
.btn-maik:hover {
  box-shadow: 0 0 18px #ff2d55aa !important;
  transform: scale(1.04);
}

/* Hacker-Mode */
body.theme-hacker tr.npc-row-maik {
  background: color-mix(in srgb, #ff2d55 12%, #050e08);
}

/* Cyberpunk-Mode */
body.theme-cyberpunk tr.npc-row-maik {
  background: linear-gradient(90deg, #1a001a 0%, #0d000d 100%);
  border-left-color: #f700ff;
  animation: maik-pulse-cp 3s ease-in-out infinite;
}
@keyframes maik-pulse-cp {
  0%, 100% { box-shadow: inset 0 0 0px #f700ff00; }
  50%       { box-shadow: inset 0 0 18px #f700ff22; }
}
body.theme-cyberpunk .maik-name,
body.theme-cyberpunk .maik-ip,
body.theme-cyberpunk .maik-fw,
body.theme-cyberpunk .maik-badge { color: #f700ff; text-shadow: 0 0 8px #f700ff88; border-color: #f700ff; }
/* Maik-Button: Kontrast in beiden Themes sichern — Text war auf hellem Grund unlesbar */
body.theme-cyberpunk .btn-maik,
body.theme-cyberpunk .btn-maik:hover {
  background: #f700ff !important;
  border-color: #f700ff !important;
  color: #14001e !important;        /* dunkler Text auf hellem Magenta = lesbar (Theme-Konvention) */
  text-shadow: none !important;
  box-shadow: 0 0 8px #f700ff66;
}
body.theme-hacker .btn-maik,
body.theme-hacker .btn-maik:hover {
  background: #ff2d55 !important;
  border-color: #ff2d55 !important;
  color: #fff !important;           /* verhindert das dunkle Hover-Text-Override des Hacker-Themes */
  text-shadow: 0 0 4px rgba(0,0,0,.55);
}

/* Mobile — Maik-Row als Karte mit rotem Rahmen */
@media (max-width: 820px) {
  tr.npc-row-maik {
    border: 2px solid #ff2d55 !important;
    border-radius: 10px !important;
    background: color-mix(in srgb, #ff2d55 8%, var(--bg2, var(--bg))) !important;
  }
  body.theme-cyberpunk tr.npc-row-maik { border-color: #f700ff !important; }
}

/* ===== PWA Install-Banner ===== */
#pwa-install-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px;
  background: var(--accent-soft); border-bottom: 1px solid var(--accent);
  font-size: 13px;
}
#pwa-install-bar[hidden] { display: none; }
#pwa-install-bar .pwa-text { flex: 1; color: var(--text); }
#pwa-install-bar .pwa-text b { color: var(--accent); }
.pwa-install-btn {
  padding: 6px 14px; font-size: 12px; font-weight: 700;
  background: var(--accent); color: #fff; border: none; border-radius: 5px;
  cursor: pointer; white-space: nowrap;
}
.pwa-install-btn:hover { background: var(--accent-dark); }
.pwa-dismiss-btn {
  padding: 4px 10px; font-size: 12px;
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 5px; cursor: pointer;
}
.pwa-dismiss-btn:hover { border-color: var(--text-muted); }

body.theme-hacker #pwa-install-bar {
  background: #001a0d; border-color: #00e676;
}
body.theme-cyberpunk #pwa-install-bar {
  background: #1a001a; border-color: #f700ff;
}

/* iOS: kein beforeinstallprompt — eigene Anleitung */
.pwa-ios-hint {
  display: none; padding: 10px 16px;
  background: var(--accent-soft); border-bottom: 1px solid var(--accent);
  font-size: 13px; line-height: 1.6;
}
.pwa-ios-hint[hidden] { display: none; }
body.theme-hacker .pwa-ios-hint { background: #001a0d; border-color: #00e676; }
body.theme-cyberpunk .pwa-ios-hint { background: #1a001a; border-color: #f700ff; }

@media (max-width: 600px) {
  #pwa-install-bar { font-size: 12px; }
  .pwa-install-btn { padding: 5px 12px; }
}

@media (max-width: 460px) {
  /* Auf sehr schmalen Geräten Hardware/Programme einspaltig stapeln */
  table.grid.card-grid tr { flex: 1 1 100%; }
}

/* ===== Miner-Tab ===== */
/* ── Miner Stats Bar ── */
.miner-stats-bar {
  display: flex; gap: 16px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 6px; padding: 10px 14px; margin-bottom: 12px;
}
.miner-stat-item { display: flex; flex-direction: column; gap: 2px; min-width: 70px; }
.miner-stat-label { font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.miner-stat-value { font-size: 14px; font-weight: 700; font-family: 'JetBrains Mono', monospace; }

/* ── Collect-All Bar ── */
.miner-collect-all-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.miner-collect-all-btn {
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  border: 2px solid var(--accent) !important;
  background: color-mix(in srgb, var(--accent) 15%, transparent) !important;
  color: var(--accent) !important;
  padding: 7px 18px;
}
.miner-collect-all-btn:hover { background: color-mix(in srgb, var(--accent) 30%, transparent) !important; }

/* ── Miner Grid ── */
.miner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin: 0 0 20px;
}

/* ── Miner Card ── */
.miner-card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
/* Farben pro data-type → --mc wird von allem genutzt */
.miner-card[data-type="cpu"]     { --mc: #ff2d7a; }
.miner-card[data-type="gpu"]     { --mc: #a855f7; }
.miner-card[data-type="asic"]    { --mc: #00e5ff; }
.miner-card[data-type="hdd"]     { --mc: #00ff88; }
.miner-card[data-type="botnet"]  { --mc: #ff6600; }
.miner-card[data-type="quantum"] { --mc: #ffcc00; }
.miner-card[data-type="cloud"]   { --mc: #4fc3f7; }
.miner-card[data-type="solar"]   { --mc: #ff8c00; }

/* Glow & Hover via --mc */
.miner-card { box-shadow: 0 0 0 1px color-mix(in srgb, var(--mc, var(--accent)) 18%, transparent), 0 4px 20px #00000044; }
.miner-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--mc, var(--accent)) 55%, transparent), 0 8px 24px #00000066, 0 0 20px color-mix(in srgb, var(--mc, var(--accent)) 15%, transparent); }
/* Radiale Glow via --mc */
.miner-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at top left, color-mix(in srgb, var(--mc, var(--accent)) 8%, transparent) 0%, transparent 60%);
}
.miner-card.miner-locked { opacity: 0.5; }
.miner-card.miner-unowned { border-style: dashed; }

/* Card Header — Gradient via --mc */
.card-head {
  padding: 12px 14px 10px; border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 10px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--mc, var(--accent)) 10%, transparent) 0%, transparent 60%);
}
/* Icon — Farbe, Border, Glow, Puls via --mc */
.card-icon {
  width: 36px; height: 36px; border-radius: 6px;
  border: 1px solid var(--mc, var(--accent));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--mc, var(--accent)) 10%, transparent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--mc, var(--accent)) 30%, transparent);
  position: relative;
  color: var(--mc, var(--accent));
  font-size: 16px;
}
/* SVG innerhalb card-icon erbt Farbe */
.card-icon svg { width: 20px; height: 20px; }
/* Puls-Ring */
.card-icon::after {
  content: ''; position: absolute; inset: -3px; border-radius: 8px;
  border: 1px solid var(--mc, var(--accent)); opacity: 0;
  animation: miner-icon-pulse 2.5s ease-out infinite;
}
@keyframes miner-icon-pulse {
  0%   { opacity: 0.55; transform: scale(1); }
  100% { opacity: 0;    transform: scale(1.45); }
}
.card-title-wrap { flex: 1; }
/* Title — Farbe & Glow via --mc */
.card-title {
  font-size: 11px; font-weight: 700; margin-bottom: 2px;
  color: var(--mc, var(--accent));
  text-shadow: 0 0 8px color-mix(in srgb, var(--mc, var(--accent)) 55%, transparent);
}
.card-stage { font-size: 9px; color: var(--text-muted); }
.miner-max-badge { color: var(--ok); font-size: 8px; font-weight: 700; margin-left: 4px; }

/* Stage Bar — Farbe via --mc */
.stage-bar-wrap { padding: 0 14px 8px; }
.stage-bar-bg { height: 3px; background: var(--bg); border-radius: 2px; overflow: hidden; margin-top: 4px; }
.stage-bar-fill {
  height: 100%; border-radius: 2px; transition: width .3s;
  background: var(--mc, var(--accent));
  box-shadow: 0 0 6px color-mix(in srgb, var(--mc, var(--accent)) 60%, transparent);
}

/* Card Body */
.card-body { padding: 10px 14px; flex: 1; }
/* Desc — Links-Border via --mc (wie Mockup) */
.card-desc {
  font-size: 10px; color: var(--text-muted); line-height: 1.6;
  margin-bottom: 10px; font-style: italic;
  border-left: 2px solid color-mix(in srgb, var(--mc, var(--accent)) 35%, transparent);
  padding-left: 8px;
}
/* Rate — Farbe & Flicker via --mc */
.card-rate { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.card-rate-value {
  font-size: 18px; font-weight: 700;
  color: var(--mc, var(--accent));
  text-shadow: 0 0 10px color-mix(in srgb, var(--mc, var(--accent)) 60%, transparent);
  animation: miner-rate-flicker 4s ease-in-out infinite;
}
@keyframes miner-rate-flicker {
  0%,100%{ opacity:1 } 92%{ opacity:1 } 93%{ opacity:.7 } 94%{ opacity:1 } 96%{ opacity:.8 } 97%{ opacity:1 }
}
.card-rate-unit { font-size: 10px; color: var(--text-muted); }
/* Accumulated */
.card-accumulated { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; margin-bottom: 10px; }
.card-accumulated .ok-text { color: var(--mc, var(--accent)); }
.miner-acc-unit { font-size: 9px; }

/* Mini-Chart — Balken in --mc Farbe */
.mini-chart {
  height: 28px; display: flex; align-items: flex-end; gap: 2px;
  margin-bottom: 10px; opacity: 0.75;
}
.mini-bar {
  flex: 1;
  background: var(--mc, var(--accent));
  border-radius: 1px 1px 0 0;
  min-height: 2px; opacity: 0.45;
  transition: height 0.5s ease;
}
.mini-bar:last-child { opacity: 1; animation: mini-bar-grow 1s ease-out; }
@keyframes mini-bar-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Card Footer */
.card-footer { padding: 0 14px 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.card-footer .miner-upgrade-btn, .card-footer .miner-buy-btn { flex: 1 1 auto; text-align: center; }

/* Collect Button — Farbe via --mc */
.miner-collect-btn {
  flex: 1;
  font-size: 9px !important; font-weight: 700; letter-spacing: 1px;
  border: 1px solid var(--mc, var(--accent)) !important;
  background: color-mix(in srgb, var(--mc, var(--accent)) 12%, transparent) !important;
  color: var(--mc, var(--accent)) !important;
  text-shadow: 0 0 6px color-mix(in srgb, var(--mc, var(--accent)) 60%, transparent);
  padding: 7px 10px !important; border-radius: 3px;
  transition: all .15s;
}
.miner-collect-btn:hover {
  background: color-mix(in srgb, var(--mc, var(--accent)) 28%, transparent) !important;
  box-shadow: 0 0 12px color-mix(in srgb, var(--mc, var(--accent)) 35%, transparent) !important;
}
/* Upgrade / Buy — dezent, Hover via --mc */
.miner-upgrade-btn, .miner-buy-btn {
  font-size: 11px !important; font-weight: 700; letter-spacing: 0.5px;
  border: 1px solid color-mix(in srgb, var(--mc, var(--accent)) 40%, transparent) !important;
  background: color-mix(in srgb, var(--mc, var(--accent)) 12%, var(--card)) !important;
  color: var(--text) !important;
  padding: 7px 10px !important; border-radius: 3px;
  transition: all .15s; white-space: nowrap;
}
.miner-upgrade-btn:hover, .miner-buy-btn:hover {
  border-color: color-mix(in srgb, var(--mc, var(--accent)) 80%, transparent) !important;
  background: color-mix(in srgb, var(--mc, var(--accent)) 22%, var(--card)) !important;
  color: var(--mc, var(--accent)) !important;
}

/* ── Float Numbers ── */
.miner-float-number {
  position: fixed; font-size: 14px; font-weight: 700;
  pointer-events: none; z-index: 9000;
  animation: miner-float-up 1.4s ease-out forwards;
  font-family: 'JetBrains Mono', monospace;
}
@keyframes miner-float-up {
  0%   { opacity:1; transform: translateY(0) scale(1); }
  60%  { opacity:1; transform: translateY(-40px) scale(1.1); }
  100% { opacity:0; transform: translateY(-80px) scale(0.9); }
}

/* ── Terminal Box ── */
.miner-terminal-box {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 6px; height: 160px; overflow: hidden; position: relative;
  font-family: 'JetBrains Mono', 'Consolas', monospace; font-size: 11px;
  margin-bottom: 8px;
}
.miner-terminal-box::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40px;
  background: linear-gradient(transparent, var(--bg)); pointer-events: none;
}
.miner-terminal-inner {
  padding: 10px 12px; display: flex; flex-direction: column-reverse;
  gap: 2px; height: 100%; overflow: hidden;
}
.miner-log-row {
  display: flex; gap: 10px; align-items: baseline;
  padding: 1px 0; opacity: 1;
}
.miner-log-new { animation: miner-log-appear .3s ease forwards; }
@keyframes miner-log-appear {
  from { opacity:0; transform: translateX(-8px); }
  to   { opacity:1; transform: translateX(0); }
}
.miner-log-time { color: var(--text-muted); flex-shrink: 0; min-width: 60px; }
.miner-log-empty { padding: 6px 0; font-size: 12px; }

/* Legacy Fallback */
.miner-log {
  border: 1px solid var(--border); background: var(--card); border-radius: 6px;
  padding: 8px 12px; max-height: 220px; overflow-y: auto;
  font-family: 'JetBrains Mono', 'Consolas', monospace; font-size: 11px;
}

.miner-cred-balance {
  display: inline-block;
  margin-left: 8px;
  color: var(--accent);
  font-size: 12px;
  opacity: 0.85;
}

/* ─── Massenangriff: Koop-Info + Power-Bar ───────────────────────────────── */
.mass-lender-row {
  margin: 6px 0 10px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mass-lender-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
/* Subtiles Info-Pill das erscheint sobald ein Koop-Partner gewählt ist */
.koop-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  border-radius: 20px;
  border: 1px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  font-size: 12px;
  animation: koop-fadein 0.25s ease;
}
@keyframes koop-fadein {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}
.koop-info-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
.koop-info-val {
  font-weight: 700;
  color: var(--accent);
  font-size: 13px;
}
.koop-info-sub {
  font-size: 10px;
  color: var(--muted);
}

/* Power-Bar */
.mass-power-bar-wrap {
  margin: 4px 24px 6px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mass-power-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.mass-power-bar-title {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 10px;
}
.mass-power-bar-nums {
  font-size: 12px;
  color: var(--fg);
}
.mass-power-bar-track {
  height: 7px;
  border-radius: 4px;
  background: var(--border);
  overflow: hidden;
}
.mass-power-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: hsl(120, 80%, 45%);
  transition: width 0.2s ease, background 0.3s ease;
}
.mass-power-bar-hint {
  font-size: 11px;
  color: var(--muted);
}
.mass-power-bar-hint.ok   { color: #4caf50; }
.mass-power-bar-hint.warn { color: #e53935; font-weight: 700; }

/* ─── Rang-Badges ─────────────────────────────────────────────────────────── */
.rank-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  letter-spacing: 0.03em;
  vertical-align: middle;
  margin-left: 4px;
  white-space: nowrap;
}
.rank-badge--lg {
  font-size: 14px;
  padding: 3px 12px;
  margin-left: 0;
}
/* Rang-Block im Profil-Tab */
.rank-profile-block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0 24px 12px 24px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card-bg, var(--bg2));
  flex-wrap: wrap;
}
.rank-bonuses {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rank-bonus-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 2px;
}
.rank-bonus-line {
  font-size: 12px;
  color: var(--fg);
}
.rank-bonus-plus {
  display: inline-block;
  min-width: 38px;
  font-weight: 700;
  color: var(--accent);
}
.rank-bonus-none {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
}

/* ─── NPC-Paginierung ──────────────────────────────────────────────────────── */
.npc-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 12px;
}
.npc-page-info {
  font-size: 12px;
  color: var(--muted);
}
.btn-sm {
  padding: 2px 10px;
  font-size: 12px;
}

/* Hacker / Cyberpunk */
body.theme-hacker .miner-card { background: #050e08; border-color: #0d2e16; }
body.theme-hacker .miner-card:hover { border-color: #00e676; }
body.theme-hacker .miner-log  { background: #030c06; border-color: #0d2e16; }
body.theme-cyberpunk .miner-card { background: #0d000d; border-color: #2a002a; }
body.theme-cyberpunk .miner-card:hover { border-color: #f700ff; }
body.theme-cyberpunk .miner-log  { background: #080008; border-color: #2a002a; }

@media (max-width: 820px) {
  .miner-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}
@media (max-width: 460px) {
  .miner-grid { grid-template-columns: 1fr; }
}

/* ─── Koop-Empfehlungs-Box ─────────────────────────────────────────────────── */
.koop-suggestion {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 12px 0;
}


/* Side panels */






.gb-all-link:hover { color: var(--accent); }

/* Mission cards */

.gm-icon-wrap svg { width: 18px; height: 18px; }








.gm-claim-btn:hover { background: #6d28d9; }

/* Center panel */


/* Stage */


/* Stat row under stage */






/* Drop-chancen toggle */

.gb-drop-toggle:hover { color: var(--text); }


/* Pity bar */


.gb-pity-bar.ok-bar  { background: #10b981; }
.gb-pity-bar.warn-bar { background: #f59e0b; }

/* Draw buttons */


.gb-draw-btn:hover { opacity: .9; transform: translateY(-1px); }
.gb-draw-btn.disabled { opacity: .4; pointer-events: none; }





/* Pity note */


/* Perm boni */


/* Responsive */
@media (max-width: 1100px) {
  
}
@media (max-width: 900px) {
  
  
  
}


/* ============================================================
   BLACK BOX UI — from mockup blackbox-gacha-ui.html
   ============================================================ */
:root {
  --bb-pink:   #ff39df;
  --bb-pink2:  #ff67ef;
  --bb-cyan:   #22e6ff;
  --bb-gold:   #ffbf47;
  --bb-purple: #b76dff;
  --bb-green:  #79f0b5;
  --bb-muted:  #b996cd;
  --bb-faint:  #7f5b95;
  --bb-stroke: rgba(214,93,255,.16);
  --bb-stroke2: rgba(255,255,255,.06);
  --bb-surface: rgba(19,8,29,.9);
}
/* Black-Box-Akzent folgt dem aktiven Theme.
   --bb-pink / --bb-pink2 sind die Hauptakzentfarben der Box. */
body.theme-cyberpunk {
  --bb-pink:  #ff39df; --bb-pink2: #ff67ef;
  --bb-muted: #b996cd; --bb-faint: #7f5b95;
  --bb-stroke: rgba(214,93,255,.16);
}
body.theme-hacker {
  --bb-pink:  #00e676; --bb-pink2: #5dffa0;
  --bb-purple:#33d17a; --bb-muted: #7fcf9a; --bb-faint: #3d6b4f;
  --bb-stroke: rgba(0,230,118,.18);
  --bb-surface: rgba(5,20,12,.92);
}
body.theme-hacker .bb-panel { background: linear-gradient(180deg, rgba(6,20,12,.94), rgba(3,12,7,.96)); }
body.theme-hacker .bb-hero-stage {
  background:
    radial-gradient(circle at 50% 42%, rgba(0,230,118,.14), transparent 22%),
    radial-gradient(circle at 50% 50%, rgba(0,120,60,.20), transparent 36%);
}
/* Hacker: Abholen-Button = dunkler Text auf hellgrünem Grund (sonst grün auf grün) */
body.theme-hacker .bb-claim-btn { color: #050e08; }
body.theme-hacker .bb-claim-btn span { color: #050e08; opacity: .75; }
/* Standard-/Normal-Theme: cyan Akzent passend zu --accent #0891b2 */
/* ===== Normal Mode: HELLES, cleanes Design (passend zur weißen Seite) ===== */
body:not(.theme-cyberpunk):not(.theme-hacker) {
  --bb-pink:  #0891b2; --bb-pink2: #0e7490;
  --bb-cyan:  #0891b2; --bb-purple: #7c3aed; --bb-gold: #d97706; --bb-green: #16a34a;
  --bb-muted: #64748b; --bb-faint: #94a3b8;
  --bb-stroke: rgba(8,145,178,.25);
  --bb-stroke2: #e2e8f0;
  --bb-surface: #ffffff;
}
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-panel {
  background: #ffffff; border: 1px solid #e2e8f0; box-shadow: 0 1px 3px rgba(15,23,42,.06);
}
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-section-head { color: #64748b; }
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-mission { background: #f8fafc; border-color: #e2e8f0; }
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-mission-title { color: #0f172a; }
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-mission-desc { color: #64748b; }
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-icon-hex {
  color: #0891b2; border-color: rgba(8,145,178,.3);
  background: #e0f2fe; box-shadow: none;
}
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-bar { background: #e2e8f0; }
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-bar > span { box-shadow: none; }
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-row-meta { color: #64748b; }
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-token-badge { color: #0891b2; border-color: rgba(8,145,178,.3); background: #e0f2fe; }
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-reward-box { border-left-color: #e2e8f0; }
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-reward-text { color: #0891b2; }
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-reward-text span { color: #64748b; }
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-claim-btn { background: #0891b2; color: #fff; }
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-all-btn,
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-drop-btn { background: #f8fafc; border-color: #e2e8f0; color: #475569; }
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-all-btn:hover,
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-drop-btn:hover { border-color: #0891b2; color: #0f172a; background: #fff; }
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-hero-top { border-bottom-color: #e2e8f0; }
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-chip { background: #f8fafc; border-color: #e2e8f0; color: #475569; }
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-chip-action { color: #0891b2; border-color: rgba(8,145,178,.4); }
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-hero-stage {
  background:
    radial-gradient(circle at 50% 42%, rgba(8,145,178,.06), transparent 30%),
    #ffffff;
}
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-hero-title h1 { color: #0f172a; }
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-hero-title p { color: #64748b; }
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-cube-ring { border-color: #e2e8f0; box-shadow: none; }
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-cube-ring::before { border-color: #e2e8f0; }
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-cube-glow { background: radial-gradient(circle, rgba(8,145,178,.14), transparent 60%); filter: blur(20px); }
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-face {
  border-color: #0891b2;
  background: linear-gradient(180deg, rgba(8,145,178,.14), rgba(8,145,178,.05));
  box-shadow: 0 0 16px rgba(8,145,178,.25), inset 0 0 12px rgba(8,145,178,.1);
}
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-face::before { background: #0891b2; filter: none; }
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-orb { background: #fff; box-shadow: 0 0 14px rgba(8,145,178,.2); }
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-stat { background: #f8fafc; border-color: #e2e8f0; }
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-stat strong { color: #0f172a; }
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-stat span { color: #64748b; }
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-draw-btn {
  border-color: rgba(8,145,178,.3); color: #0891b2;
  background: #f0f9ff; box-shadow: none;
}
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-draw-btn:hover { background: #0891b2; color: #fff; opacity: 1; }
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-draw-sub { color: #0e7490; }
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-draw-btn:hover .bb-draw-sub { color: #e0f2fe; }
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-hint { color: #94a3b8; }
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-recent { border-top-color: #e2e8f0; }
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-recent-head { color: #64748b; }
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-recent-label { color: #0f172a; }
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-recent-row { border-bottom-color: #eef2f6; }
body:not(.theme-cyberpunk):not(.theme-hacker) .bb-recent-time { color: #94a3b8; }

/* 3-column layout */
.bb-outer {
  display: grid;
  grid-template-columns: 1fr 1.22fr 1fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 1200px) { .bb-outer { grid-template-columns: 1fr 1.1fr 1fr; gap: 12px; } }
@media (max-width: 960px) {
  .bb-outer { grid-template-columns: 1fr; }
  .bb-hero-panel { order: -1; }
  .bb-hero-stage { min-height: auto; }
  .bb-orb { display: none; }
  .bb-cube-ring { width: 280px; height: 280px; }
  .bb-stats { grid-template-columns: repeat(2,1fr); }
  .bb-draws { grid-template-columns: 1fr; }
}

/* Panels */
.bb-panel {
  background: linear-gradient(180deg, rgba(18,8,28,.92), rgba(11,5,18,.94));
  border: 1px solid var(--bb-stroke2);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.bb-panel-inner { padding: 20px; }
.bb-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--bb-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.bb-mission-list { display: grid; gap: 12px; }

/* Mission cards */
.bb-mission {
  display: grid;
  grid-template-columns: 74px 1fr 92px;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--bb-stroke2);
  border-radius: 20px;
  background: rgba(255,255,255,.018);
}
.bb-icon-hex {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--bb-pink);
  font-weight: 900;
  font-size: 22px;
  border: 1px solid rgba(255,105,239,.34);
  background: radial-gradient(circle at 30% 30%, rgba(255,99,240,.30), rgba(86,16,104,.18) 45%, transparent 70%);
  box-shadow: inset 0 0 24px rgba(255,57,223,.12), 0 0 24px rgba(255,57,223,.18);
}
.bb-mission-body { min-width: 0; overflow: hidden; }
.bb-mission-title { margin: 0 0 4px; font-size: 14px; font-weight: 700; color: var(--text); overflow-wrap: break-word; word-break: break-word; }
.bb-mission-desc  { margin: 0 0 10px; color: var(--bb-muted); font-size: 13px; overflow-wrap: break-word; }
@media (max-width: 430px) {
  .bb-mission {
    grid-template-columns: 54px 1fr 76px;
    gap: 10px;
    padding: 12px;
  }
  .bb-icon-hex { width: 46px; height: 46px; font-size: 18px; border-radius: 13px; }
  .bb-mission-title { font-size: 12px; }
  .bb-mission-desc  { font-size: 11px; }
}
.bb-bar {
  height: 6px; border-radius: 999px;
  background: rgba(255,255,255,.07); overflow: hidden;
}
.bb-bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--bb-pink), var(--bb-pink2));
  box-shadow: 0 0 16px rgba(255,57,223,.5);
}
.bb-row-meta {
  display: flex; justify-content: space-between;
  color: var(--bb-muted); font-size: 12px; margin-top: 6px;
}
.bb-reward-box {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  border-left: 1px solid rgba(255,255,255,.05);
  padding-left: 12px;
}
.bb-token-badge {
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,105,239,.35);
  display: grid; place-items: center;
  color: #f9c0ff;
  background: rgba(255,57,223,.08);
}
.bb-reward-text {
  font-weight: 800;
  color: var(--bb-pink);
  text-align: center;
  font-size: 14px;
  line-height: 1.3;
}
.bb-reward-text span { font-size: 11px; color: var(--bb-muted); }
.bb-claim-btn {
  text-align: center;
  font-weight: 800;
  color: #fff;
  background: var(--bb-pink);
  border-radius: 10px;
  padding: 8px 10px;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.3;
  display: block;
}
.bb-claim-btn span { font-size: 10px; display: block; opacity: .8; }
.bb-all-btn {
  margin-top: 16px; width: 100%; padding: 16px;
  border-radius: 18px; border: 1px solid var(--bb-stroke2);
  background: rgba(255,255,255,.02); color: var(--bb-muted);
  font-weight: 700; cursor: pointer; font-size: 12px;
  letter-spacing: .06em; transition: border-color .15s, color .15s;
}
.bb-all-btn:hover { border-color: var(--bb-pink); color: var(--text); }

/* Hero/center panel */
.bb-hero-panel { padding: 0; overflow: hidden; }
.bb-hero-top {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  gap: 10px;
}
.bb-chip {
  padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--bb-stroke2);
  background: rgba(255,255,255,.025);
  color: var(--bb-muted); font-size: 13px; font-weight: 600;
}
.bb-chip-action {
  color: var(--bb-pink);
  border-color: rgba(255,57,223,.3);
  text-decoration: none;
  transition: background .15s;
}
.bb-chip-action:hover { background: rgba(255,57,223,.08); }

.bb-hero-stage {
  position: relative;
  padding: 28px 26px 22px;
  min-height: 520px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,57,223,.15), transparent 22%),
    radial-gradient(circle at 50% 50%, rgba(109,0,170,.24), transparent 36%);
}
.bb-hero-title { text-align: center; margin-bottom: 16px; }
.bb-hero-title h1 {
  margin: 0; font-size: clamp(1.65rem, 1.2rem + 1.5vw, 2.4rem);
  letter-spacing: .12em; color: var(--text);
}
.bb-hero-title p { margin: 8px 0 0; color: var(--bb-muted); font-size: 15px; }

/* Floating orbs */
.bb-orb {
  position: absolute; width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; font-size: 18px;
  border: 2px solid currentColor;
  background: radial-gradient(circle, rgba(255,255,255,.15), rgba(255,255,255,.03));
  box-shadow: 0 0 25px currentColor;
}
.bb-orb-b    { left: 34px;  top: 220px; color: var(--bb-pink); }
.bb-orb-cr   { left: 86px;  top:  90px; color: var(--bb-gold); }
.bb-orb-xp   { right: 86px; top:  90px; color: var(--bb-cyan); }
.bb-orb-star { right: 34px; top: 220px; color: var(--bb-purple); }

/* 3D Cube */
.bb-cube-wrap {
  position: relative; height: 260px;
  display: grid; place-items: center; margin-top: 20px;
}
.bb-cube-wrap, .bb-cube-glow, .bb-cube-ring, .bb-cube3d, .bb-orb { pointer-events: none; }
.bb-cube-glow {
  position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,57,223,.32), rgba(255,57,223,.10) 34%, transparent 62%);
  filter: blur(18px);
}
.bb-cube-ring {
  position: absolute; width: 400px; height: 400px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.05);
  box-shadow: inset 0 0 80px rgba(255,57,223,.06);
}
.bb-cube-ring::before {
  content: ""; position: absolute; inset: 36px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.06);
}
.bb-cube3d {
  position: relative; width: 150px; height: 150px;
  transform-style: preserve-3d;
  transform: rotateX(-18deg) rotateY(45deg);
  animation: bb-spin 12s linear infinite;
}
@keyframes bb-spin {
  from { transform: rotateX(-18deg) rotateY(45deg); }
  to   { transform: rotateX(-18deg) rotateY(405deg); }
}
.bb-face {
  position: absolute; inset: 0;
  border: 4px solid var(--bb-pink);
  background: linear-gradient(180deg, rgba(255,57,223,.10), rgba(255,57,223,.04));
  box-shadow: 0 0 30px rgba(255,57,223,.45), inset 0 0 25px rgba(255,57,223,.18);
}
.bb-face::before {
  content: ""; position: absolute; inset: 28%;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: rgba(255,176,248,.9);
  filter: drop-shadow(0 0 10px rgba(255,57,223,.7));
}
.bb-front  { transform: translateZ(75px); }
.bb-back   { transform: rotateY(180deg) translateZ(75px); }
.bb-right  { transform: rotateY(90deg) translateZ(75px); }
.bb-left   { transform: rotateY(-90deg) translateZ(75px); }
.bb-top    { transform: rotateX(90deg) translateZ(75px); }
.bb-bottom { transform: rotateX(-90deg) translateZ(75px); }

/* Drop toggle */
.bb-drop-btn {
  display: block; margin: 18px auto 0; padding: 12px 18px;
  border-radius: 16px; border: 1px solid var(--bb-stroke);
  background: rgba(255,255,255,.03); color: var(--text);
  font-weight: 700; cursor: pointer; font-size: 13px;
  transition: background .15s;
}
.bb-drop-btn:hover { background: rgba(255,255,255,.06); }
.bb-drop-panel {
  padding: 14px 0 4px;
  display: flex; flex-direction: column; gap: 8px;
}
.bb-drop-panel.bb-drop-open { display: flex !important; }
.bb-rate-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
}
.bb-rate-bar-bg {
  flex: 1; height: 5px; background: rgba(255,255,255,.07);
  border-radius: 999px; overflow: hidden;
}
.bb-rate-bar { height: 100%; border-radius: 999px; }

/* Stats row */
.bb-stats {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 12px; margin-top: 18px;
}
.bb-stat {
  padding: 16px; border: 1px solid var(--bb-stroke2);
  border-radius: 18px; background: rgba(255,255,255,.02);
  text-align: center;
}
.bb-stat strong {
  display: block; font-size: 1.7rem; color: var(--text);
}
.bb-stat span {
  color: var(--bb-muted); font-size: 10px;
  text-transform: uppercase; letter-spacing: .08em;
}

/* Draw buttons */
.bb-draws {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; margin-top: 16px;
}
.bb-draw-btn {
  position: relative;
  padding: 20px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,57,223,.28);
  font-weight: 900; font-size: 1.05rem;
  color: #4ef0ff;
  background: linear-gradient(180deg, rgba(55,15,71,.96), rgba(28,8,41,.96));
  box-shadow: inset 0 0 30px rgba(255,57,223,.08);
  text-decoration: none;
  display: block;
  text-align: center;
  transition: opacity .15s, transform .1s;
}
.bb-draw-btn:hover { opacity: .88; transform: translateY(-1px); }
.bb-draw-disabled  { opacity: .38; pointer-events: none; }
.bb-draw-sub { display: block; margin-top: 8px; color: #ffa7f5; font-size: 13px; font-weight: 600; }
.bb-discount {
  position: absolute; top: -8px; right: 14px;
  background: linear-gradient(180deg, #ffcf5e, #ff9f2f);
  color: #411500; padding: 6px 10px;
  border-radius: 10px; font-size: .82rem; font-weight: 800;
}
.bb-hint { text-align: center; color: var(--bb-faint); margin-top: 12px; font-size: 12px; }

.bb-recent { margin-top: 18px; border-top: 1px solid var(--bb-stroke2); padding-top: 14px; }
.bb-recent-head { color: var(--bb-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.bb-recent-list { display: flex; flex-direction: column; gap: 6px; }
.bb-recent-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; font-size: 13px; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.bb-recent-row:last-child { border-bottom: none; }
.bb-recent-rarity { font-weight: 700; }
.bb-recent-label { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-recent-time { color: var(--bb-faint); font-size: 12px; }
.bb-recent-empty { color: var(--bb-faint); font-size: 13px; padding: 6px 0; }

@media (max-width: 1200px) { .bb-outer { grid-template-columns: 1fr 1.1fr 1fr; gap: 12px; } }
@media (max-width: 960px) {
  .bb-outer { grid-template-columns: 1fr; }
  .bb-hero-panel { order: -1; }
  .bb-hero-stage { min-height: auto; }
  .bb-orb { display: none; }
  .bb-cube-ring { width: 280px; height: 280px; }
  .bb-stats { grid-template-columns: repeat(2,1fr); }
  .bb-draws { grid-template-columns: 1fr; }
}

/* === BLACK BOX — RETRO (16-bit / Undertale) THEME === */
.bb-retro, .bb-retro * { font-family: 'Press Start 2P', monospace !important; }
.bb-retro.bb-outer { gap: 14px; }
.bb-retro .bb-panel { background: #0a0005; border: 3px solid var(--bb-pink); border-radius: 0; box-shadow: none; }
.bb-retro .bb-section-head { font-size: 8px; color: var(--bb-pink); letter-spacing: 1px; }
.bb-retro .bb-mission { border: 2px solid #5a1030; border-radius: 0; background: #11000a; grid-template-columns: 46px 1fr 78px; gap: 10px; }
.bb-retro .bb-icon-hex { border-radius: 0; border: 2px solid var(--bb-pink); background: #1a0010; width: 40px; height: 40px; font-size: 13px; box-shadow: none; }
.bb-retro .bb-mission-title { font-size: 8px; color: var(--bb-cyan); line-height: 1.5; }
.bb-retro .bb-mission-desc { font-size: 7px; line-height: 1.6; color: var(--bb-muted); }
.bb-retro .bb-bar { border-radius: 0; height: 8px; background: #220018; border: 1px solid #3a0020; }
.bb-retro .bb-bar > span { border-radius: 0; box-shadow: none; background: var(--bb-pink); }
.bb-retro .bb-row-meta { font-size: 7px; }
.bb-retro .bb-token-badge { border-radius: 0; border: 2px solid var(--bb-pink); background: #1a0010; width: 30px; height: 30px; }
.bb-retro .bb-reward-text { font-size: 7px; line-height: 1.7; }
.bb-retro .bb-reward-text span { font-size: 6px; }
.bb-retro .bb-claim-btn { border-radius: 0; background: var(--bb-pink); font-size: 7px; }
.bb-retro .bb-all-btn, .bb-retro .bb-drop-btn { border-radius: 0; background: #000; border: 2px solid #fff; color: #fff; font-size: 7px; }
.bb-retro .bb-all-btn:hover, .bb-retro .bb-drop-btn:hover { background: #fff; color: #000; }
.bb-retro .bb-hero-panel { border-radius: 0; }
.bb-retro .bb-hero-top { border-bottom: 2px solid #3a0020; }
.bb-retro .bb-chip { border-radius: 0; border: 2px solid #5a1030; background: #11000a; font-size: 7px; }
.bb-retro .bb-chip-action { color: var(--bb-pink); border-color: var(--bb-pink); }
.bb-retro .bb-hero-stage { background: #0a0005; min-height: auto; }
.bb-retro .bb-hero-title h1 { font-size: 18px; letter-spacing: 2px; text-shadow: none; color: var(--bb-pink); }
.bb-retro .bb-hero-title p { font-size: 7px; line-height: 1.7; }
/* Retro: echter 3D-Würfel beibehalten, aber Pixel-Look (scharfe Kanten, kein Glow/Blur) */
.bb-retro .bb-cube-glow { display: none; }
.bb-retro .bb-cube-ring { border-radius: 0; box-shadow: none; border: 2px solid rgba(255,255,255,.06); width: 300px; height: 300px; }
.bb-retro .bb-cube-ring::before { border-radius: 0; }
.bb-retro .bb-cube3d { image-rendering: pixelated; }
.bb-retro .bb-face {
  border-radius: 0;
  border: 4px solid var(--bb-pink);
  box-shadow: none;
  background: linear-gradient(180deg, rgba(255,57,223,.14), rgba(255,57,223,.05));
  image-rendering: pixelated;
}
.bb-retro .bb-face::before { filter: none; background: #ffb0d8; }
.bb-retro .bb-orb { border-radius: 0; border: 3px solid currentColor; background: #000; box-shadow: none; font-size: 8px; width: 46px; height: 46px; }
.bb-retro .bb-stat { border-radius: 0; border: 2px solid #5a1030; background: #11000a; }
.bb-retro .bb-stat strong { font-size: 13px; }
.bb-retro .bb-stat span { font-size: 6px; }
.bb-retro .bb-draw-btn { border-radius: 0; border: 2px solid var(--bb-pink); background: #000; color: var(--bb-cyan); font-size: 9px; box-shadow: none; }
.bb-retro .bb-draw-btn:hover { background: var(--bb-pink); color: #000; opacity: 1; }
.bb-retro .bb-draw-sub { font-size: 7px; color: var(--bb-gold); }
.bb-retro .bb-discount { border-radius: 0; border: 2px solid #aa8800; font-size: 6px; }
.bb-retro .bb-rate-bar-bg, .bb-retro .bb-rate-bar { border-radius: 0; }
.bb-retro .bb-hint { font-size: 6px; line-height: 1.7; }
.bb-retro .bb-recent-row { font-size: 7px; line-height: 1.6; }
.bb-retro .bb-recent-head { font-size: 7px; }

/* end of stylesheet */

/* ── Titel-System ────────────────────────────────────────────── */
.title-list  { display: flex; flex-direction: column; gap: 8px; }
.title-row   { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.title-badge {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
.title-active {
  box-shadow: 0 0 8px currentColor;
}
.title-buff-desc {
  font-size: 11px;
  color: #4ade80;
  opacity: .85;
  font-family: monospace;
  letter-spacing: .03em;
}

/* ── Rangliste Tabs + Hall of Fame ───────────────────────────── */
.rl-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.rl-tab {
  padding: 8px 18px;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted, #888);
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.rl-tab:hover { color: var(--text); }
.rl-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.rl-panel { }
.hof-season {
  margin-bottom: 24px;
}
.hof-season-head {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

/* ===== Erste-Schritte-Checkliste (Onboarding) ===== */
.ob-panel {
  background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 8px; padding: 14px 16px; margin-bottom: 18px; max-width: 680px;
}
.ob-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px;
}
.ob-title { font-size: 14px; font-weight: 700; color: var(--text); }
.ob-progress { font-size: 12px; color: var(--text-muted); }
.ob-steps { display: flex; flex-direction: column; gap: 6px; }
.ob-step {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 10px; border-radius: 6px;
  background: var(--bg-2, #1a1a1a); border: 1px solid var(--border);
}
.ob-step.ob-done {
  opacity: 0.55; background: color-mix(in srgb, var(--accent) 6%, var(--card));
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
}
.ob-check { font-size: 16px; flex-shrink: 0; margin-top: 1px; color: var(--accent); }
.ob-info { flex: 1; }
.ob-label { font-size: 13px; font-weight: 600; color: var(--text); display: block; }
.ob-desc { display: block; margin-top: 1px; }
.ob-reward { font-size: 12px; color: #10b981; font-weight: 700; flex-shrink: 0; white-space: nowrap; }

/* ===== Tägliche Login-Box (7-Tage-Kalender) ===== */
.dlb-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.dlb-box {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 24px; max-width: 520px; width: 100%;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  animation: dlb-in 0.25s ease;
}
@keyframes dlb-in {
  from { opacity: 0; transform: scale(0.95) translateY(-10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.dlb-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.dlb-title { font-size: 17px; font-weight: 700; color: var(--text); }
.dlb-close {
  background: none; border: none; color: var(--text-muted);
  font-size: 18px; cursor: pointer; line-height: 1; padding: 2px 6px;
}
.dlb-close:hover { color: var(--text); }
.dlb-streak { margin: 0 0 8px; font-size: 13px; color: var(--text-muted); }
.dlb-days {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
  margin: 16px 0;
}
.dlb-day {
  display: flex; flex-direction: column; align-items: center;
  gap: 3px; padding: 8px 4px;
  background: var(--bg-2, #1a1a1a); border: 1px solid var(--border);
  border-radius: 8px; text-align: center;
  opacity: 0.5; font-size: 11px;
}
.dlb-day-done {
  opacity: 0.65; border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--card));
}
.dlb-day-today {
  opacity: 1; border-color: #f59e0b; border-width: 2px;
  background: color-mix(in srgb, #f59e0b 12%, var(--card));
  box-shadow: 0 0 10px rgba(245,158,11,0.3);
}
.dlb-day-icon { font-size: 18px; }
.dlb-day-label { font-size: 9px; color: var(--text-muted); font-weight: 600; }
.dlb-day-cr { font-size: 10px; color: var(--accent); font-weight: 700; }
.dlb-token { font-size: 9px; color: #f59e0b; }
.dlb-today-reward {
  text-align: center; font-size: 13px; color: var(--text);
  margin: 0 0 14px; padding: 10px; background: var(--bg-2, #1a1a1a);
  border-radius: 6px; border: 1px solid var(--border);
}
.dlb-claim-btn { width: 100%; margin-bottom: 10px; }
.dlb-msg { text-align: center; font-size: 13px; color: var(--accent); font-weight: 600; padding: 4px 0; }

@media (max-width: 520px) {
  .dlb-days { grid-template-columns: repeat(4, 1fr); }
}

/* ===== Aktions-Feed (Startseite) ===== */
.feed-entry {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
  animation: feed-in 0.25s ease;
}
@keyframes feed-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.feed-icon { flex-shrink: 0; font-size: 15px; }
.feed-text { flex: 1; color: var(--text); }
.feed-time { flex-shrink: 0; font-size: 11px; white-space: nowrap; }

/* ===== Startseite (Homepage Dashboard) ===== */
.hs-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  align-items: start;
}
@media (max-width: 820px) {
  .hs-layout { grid-template-columns: 1fr; }
  .hs-side { display: contents; }
}
.hs-main { min-width: 0; }
.hs-side { display: flex; flex-direction: column; gap: 16px; }

/* On mobile: side cards come after the main feed but within the grid flow */
@media (max-width: 820px) {
  .hs-side { display: flex; flex-direction: column; gap: 16px; }
}

.hs-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.hs-card + .hs-card { margin-top: 16px; }
@media (max-width: 820px) {
  .hs-card + .hs-card { margin-top: 0; }
}
.hs-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}
.hs-card-title { font-weight: 700; font-size: 13px; }

.hs-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 600px;
  overflow-y: auto;
}
.hs-feed .feed-entry {
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
}
.hs-feed .feed-entry:last-child { border-bottom: none; }
.hs-empty {
  padding: 16px 14px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* Online widget */
.hs-online-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
}
.hs-online-row:last-child { border-bottom: none; }
.hs-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ecc71;
  flex-shrink: 0;
  box-shadow: 0 0 5px rgba(46,204,113,.7);
}

/* Leaderboard widget */
.hs-rank { padding: 4px 0; }
.hs-rank-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
}
.hs-rank-row:last-child { border-bottom: none; }
.hs-rank-me { background: rgba(var(--accent-rgb, 0,230,118), .08); }
.hs-rank-pos { width: 24px; text-align: center; flex-shrink: 0; font-size: 14px; }
.hs-rank-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-rank-cr { flex-shrink: 0; font-size: 11px; color: var(--muted); }

/* Changelog widget */
.hs-cl { padding: 8px 0; }
.hs-cl-entry {
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.hs-cl-entry:last-of-type { border-bottom: none; }
.hs-cl-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.hs-cl-ver { font-weight: 700; font-size: 11px; background: var(--accent); color: #000; border-radius: 3px; padding: 1px 5px; }
.hs-cl-title { flex: 1; font-weight: 600; color: var(--text); }
.hs-cl-date { font-size: 10px; }
.hs-cl-list { margin: 4px 0 0 14px; padding: 0; list-style: disc; color: var(--muted); line-height: 1.6; }
.hs-cl-list li { font-size: 11px; }
.hs-cl-more { display: block; text-align: center; padding: 8px; font-size: 11px; color: var(--accent); text-decoration: none; border-top: 1px solid var(--border); }
.hs-cl-more:hover { text-decoration: underline; }

/* Changelog-Platzhalter: unscharf bis zur fertigen Ansicht */
.hs-cl-blur {
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
  opacity: 0.6;
  position: relative;
}
.hs-cl-blur-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 8px 8px;
}
.hs-cl-blur-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  pointer-events: none;
}

/* ── Startseite: Liga-Banner ────────────────────────────────────────────── */
.hs-liga-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb,0,230,118),.06) 0%, rgba(var(--accent-rgb,0,230,118),.02) 100%);
  border: 1px solid rgba(var(--accent-rgb,0,230,118),.2);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.hs-liga-banner-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hs-liga-banner-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.hs-liga-tier-icon { display: flex; align-items: center; }
.hs-liga-tier-label { font-weight: 700; font-size: 13px; }
.hs-liga-rank { font-size: 12px; }
.hs-liga-week { font-size: 11px; }
.hs-liga-pts { font-size: 13px; white-space: nowrap; }
.hs-liga-goal-wrap { display: flex; flex-direction: column; gap: 2px; min-width: 100px; }
.hs-liga-goal-bar {
  width: 100%;
  height: 5px;
  background: rgba(255,255,255,.1);
  border-radius: 3px;
  overflow: hidden;
}
.hs-liga-goal-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width .4s;
}

/* ── Startseite: Liga-Missionen ─────────────────────────────────────────── */
.hs-mission-pts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 6px 0 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.hs-mission-pt-row {
  font-size: 11px;
  color: var(--muted);
}
.hs-missions { display: flex; flex-direction: column; gap: 6px; }
.hs-mission-row {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.hs-mission-row:last-child { border-bottom: none; }
.hs-mission-done .hs-mission-label { opacity: .55; }
.hs-mission-weekly { border-top: 1px solid rgba(var(--accent-rgb,0,230,118),.2); margin-top: 4px; padding-top: 8px; }
.hs-mission-label {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.hs-mission-liga-badge {
  font-size: 10px;
  font-weight: 700;
  background: rgba(var(--accent-rgb,0,230,118),.12);
  color: var(--accent);
  border-radius: 3px;
  padding: 1px 5px;
}
.hs-mission-prog { display: flex; flex-direction: column; gap: 2px; }
.hs-mission-bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,.1);
  border-radius: 2px;
  overflow: hidden;
}
.hs-mission-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width .4s;
}
.ok-text { color: var(--accent); font-weight: 700; }

