/* =========================================================================
   Etappe 4: Spielerauswahl, Kontoauszug, Protokoll, Devlog, Kolonie-Leitstand.
   Baut auf den Variablen aus luna.css auf.
   ========================================================================= */

/* ------------------------------------------------------- Spieler-Picker */
.pp-list {
  position: absolute; z-index: 400; display: none;
  background: #0b1020; border: 1px solid var(--line-strong); border-radius: 9px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.55); overflow: hidden; max-height: 320px; overflow-y: auto;
}
.pp-list.open { display: block; }
.pp-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 12px; background: none; border: 0; color: var(--text); text-align: left;
  font: inherit; cursor: pointer; border-bottom: 1px solid rgba(96,140,220,0.08);
}
.pp-item:last-child { border-bottom: 0; }
.pp-item:hover, .pp-item.on { background: rgba(47,224,228,0.10); color: var(--text-bright); }
.pp-name { font-weight: 600; }
.pp-user { color: var(--text-dim); font-size: 0.8rem; margin-left: auto; }
.pp-empty { padding: 12px; color: var(--text-dim); font-size: 0.84rem; }
.pp-ava {
  width: 26px; height: 26px; border-radius: 50%; flex: none; object-fit: cover;
  background: rgba(96,140,220,0.18);
}
.pp-ava-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: var(--cyan); font-size: 0.85rem;
}
.input.pp-picked { border-color: var(--green); box-shadow: 0 0 0 3px rgba(52,224,127,0.10); }
.pp-chip { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.pp-chip > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-chip .pp-ava { width: 22px; height: 22px; font-size: 0.75rem; }

/* --------------------------------------------------------- Kontoauszug */
.ledger { display: flex; flex-direction: column; gap: 2px; }
.ledger-row {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: 8px; background: rgba(4,7,13,0.45);
}
.ledger-row .ico { font-size: 1.15rem; text-align: center; }
.ledger-row .what { min-width: 0; }
.ledger-row .what b { display: block; color: var(--text-bright); font-weight: 600; font-size: 0.9rem; }
.ledger-row .what small { color: var(--text-dim); font-size: 0.74rem; }
.ledger-row .amt { font-family: var(--font-mono); font-size: 0.92rem; white-space: nowrap; }
.ledger-row .amt.plus { color: var(--green); }
.ledger-row .amt.minus { color: var(--red); }
.ledger-day {
  font-size: 0.7rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-dim);
  margin: 14px 0 6px; padding-left: 4px;
}
.ledger-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.chip-row .chip-toggle.on { border-color: var(--cyan); color: var(--cyan); }

/* ---------------------------------------------------------- Protokoll */
.audit-row {
  display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 10px 12px;
  border-left: 3px solid var(--line-strong); background: rgba(4,7,13,0.45); border-radius: 0 8px 8px 0;
  margin-bottom: 6px; font-size: 0.85rem;
}
.audit-row.fail { border-left-color: var(--red); }
.audit-row.danger { border-left-color: var(--gold); }
.audit-row time { color: var(--text-dim); font-family: var(--font-mono); font-size: 0.76rem; }
.audit-row .who { color: var(--text-bright); font-weight: 600; }
.audit-row code { font-size: 0.78rem; }

/* ------------------------------------------------------------- Devlog */
.devlog-layout { display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: start; }
.devlog-index { position: sticky; top: 12px; max-height: calc(100vh - 140px); overflow-y: auto; padding-right: 4px; }
.devlog-index button {
  display: block; width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 8px 10px; border-radius: 7px; color: var(--text-dim); font: inherit; font-size: 0.84rem;
}
.devlog-index button b { color: var(--text); font-family: var(--font-display); font-size: 0.95rem; margin-right: 6px; }
.devlog-index button:hover, .devlog-index button.on { background: rgba(47,224,228,0.08); color: var(--text-bright); }
.devlog-index .yr { font-size: 0.68rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-dim); margin: 12px 10px 4px; }
.devlog-entry { margin-bottom: 26px; scroll-margin-top: 16px; }
.devlog-more { display: flex; gap: 6px; align-items: baseline; margin: 0 auto 24px; }
.devlog-more small { color: var(--text-dim); }
.devlog-entry .dl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; margin-bottom: 12px; }
.devlog-entry .dl-ver {
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; letter-spacing: 1px;
  padding: 3px 10px; border-radius: 999px; border: 1px solid var(--cyan); color: var(--cyan);
}
.devlog-entry .dl-ver.news { border-color: var(--gold); color: var(--gold); }
.devlog-entry .dl-ver.draft { border-color: var(--text-dim); color: var(--text-dim); }
.devlog-entry h2 { font-family: var(--font-display); font-size: 1.45rem; margin: 0; color: var(--text-bright); line-height: 1.2; }
.devlog-entry .dl-meta { color: var(--text-dim); font-size: 0.78rem; width: 100%; }
.md { font-size: 0.92rem; line-height: 1.62; color: var(--text); overflow-wrap: anywhere; }
.md h3 { font-family: var(--font-display); color: var(--cyan); font-size: 1.12rem; letter-spacing: 0.5px; margin: 20px 0 8px; }
.md h4 { font-family: var(--font-display); color: var(--text-bright); font-size: 1rem; margin: 16px 0 6px; }
.md p { margin: 0 0 10px; }
.md ul { margin: 0 0 12px; padding-left: 20px; }
.md li { margin: 4px 0; }
.md li::marker { color: var(--cyan); }
.md b, .md strong { color: var(--text-bright); }
.md code { font-family: var(--font-mono); font-size: 0.84em; background: rgba(47,224,228,0.08); color: var(--cyan); padding: 1px 6px; border-radius: 5px; }
.md blockquote { margin: 10px 0; padding: 10px 14px; border-left: 3px solid var(--violet); background: rgba(168,85,247,0.07); border-radius: 0 8px 8px 0; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.md a { color: var(--cyan); }
.devlog-editor textarea {
  width: 100%; min-height: 320px; resize: vertical; font-family: var(--font-mono); font-size: 0.86rem; line-height: 1.5;
  background: var(--bg-slot); color: var(--text-bright); border: 1px solid var(--line); border-radius: 8px; padding: 12px;
}
.devlog-editor .split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.devlog-editor .preview { background: rgba(4,7,13,0.5); border: 1px dashed var(--line); border-radius: 8px; padding: 14px; min-height: 320px; max-height: 520px; overflow-y: auto; }
.devlog-new-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-left: 6px; box-shadow: 0 0 8px var(--gold); }

@media (max-width: 900px) {
  .devlog-layout { grid-template-columns: 1fr; }
  .devlog-index { position: static; max-height: none; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
  .devlog-index .yr { display: none; }
  .devlog-index button { flex: none; width: auto; white-space: nowrap; border: 1px solid var(--line); }
  .devlog-editor .split { grid-template-columns: 1fr; }
  .audit-row { grid-template-columns: 1fr; gap: 4px; }
}

/* "Neu"-Punkt am Devlog-Eintrag der Navigation */
.rail-btn .devlog-new-dot { position: absolute; top: 9px; left: 41px; margin: 0; }

/* =========================================================================
   Kolonie-Kommando: Radar, Schiffsstatus, Bau-Kosten, Enthüllung
   ========================================================================= */
#colony-command { margin-bottom: 20px; }
.col-cmd { display: grid; grid-template-columns: 230px 1fr; gap: 26px; align-items: center; }
.col-cmd.locked, .col-cmd.blueprint { display: block; }
.col-cmd.blueprint { display: grid; grid-template-columns: 120px 1fr; gap: 22px; }
.col-bp-art { font-size: 4.2rem; text-align: center; filter: drop-shadow(0 0 22px rgba(47,224,228,0.45)); animation: bob 4s ease-in-out infinite; }
.col-bp-text p { color: var(--text-dim); font-size: 0.9rem; margin: 6px 0 12px; }
.col-bp-text .btn { margin-top: 12px; }
.col-kicker { font-size: 0.7rem; letter-spacing: 1.8px; text-transform: uppercase; color: var(--text-dim); }
.col-info h2 { font-family: var(--font-display); font-size: 1.55rem; color: var(--text-bright); margin: 2px 0 6px; }
.col-cmd.state-returned .col-info h2 { color: var(--green); }
.col-cmd.state-broken .col-info h2 { color: var(--red); }
.col-sub { color: var(--text-dim); font-size: 0.86rem; margin: 4px 0 8px; }
.col-eta { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--cyan); font-variant-numeric: tabular-nums; line-height: 1.1; text-shadow: 0 0 22px rgba(47,224,228,0.4); }
.col-hp { margin: 12px 0; max-width: 420px; }
.col-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.col-actions .btn { width: auto; }
.col-actions .btn small { opacity: 0.75; font-size: 0.78em; }
.col-hint { width: 100%; font-size: 0.78rem; color: var(--text-dim); }
.odds { display: flex; gap: 3px; margin: 10px 0 4px; max-width: 460px; font-size: 0.72rem; border-radius: 6px; overflow: hidden; }
.odds span { padding: 5px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.odds .o-good { background: rgba(52,224,127,0.16); color: var(--green); }
.odds .o-mid  { background: rgba(96,140,220,0.14); color: var(--text); }
.odds .o-bad  { background: rgba(255,77,106,0.16); color: var(--red); }

/* Radar */
.radar { position: relative; width: 210px; height: 210px; margin: 0 auto; border-radius: 50%; }
.radar-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.radar-ring circle { fill: none; stroke-width: 2.2; }
.rr-track { stroke: rgba(96,140,220,0.18); }
.rr-fill { stroke: var(--cyan); stroke-linecap: round; transition: stroke-dasharray 1s linear; }
.radar.returned .rr-fill { stroke: var(--green); }
.radar.broken .rr-fill { stroke: var(--red); }
.radar-scope {
  position: absolute; inset: 12px; border-radius: 50%; overflow: hidden; -webkit-mask-image: radial-gradient(circle, #000 70%, #000 71%); mask-image: radial-gradient(circle, #000 70%, #000 71%);
  background: radial-gradient(circle, rgba(47,224,228,0.10) 0%, rgba(4,7,13,0.95) 72%);
  border: 1px solid rgba(47,224,228,0.28);
}
.radar-grid {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 31%, rgba(47,224,228,0.16) 31.5%, transparent 32.5%),
    radial-gradient(circle, transparent 63%, rgba(47,224,228,0.16) 63.5%, transparent 64.5%),
    linear-gradient(90deg, transparent 49.6%, rgba(47,224,228,0.14) 50%, transparent 50.4%),
    linear-gradient(0deg, transparent 49.6%, rgba(47,224,228,0.14) 50%, transparent 50.4%);
}
.radar-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(47,224,228,0.55), rgba(47,224,228,0.10) 50deg, transparent 90deg);
  animation: radarSpin 4s linear infinite; opacity: 0.35;
}
.radar.flying .radar-sweep { opacity: 1; animation-duration: 2.6s; }
.radar.returned .radar-sweep { opacity: 0.9; background: conic-gradient(from 0deg, rgba(52,224,127,0.6), rgba(52,224,127,0.1) 50deg, transparent 90deg); }
.radar.broken .radar-sweep { animation: none; opacity: 0; }
.radar.decoding .radar-sweep { opacity: 1; animation-duration: 0.45s; }
.radar.decoding .radar-scope { box-shadow: 0 0 30px rgba(47,224,228,0.5) inset; }
@keyframes radarSpin { to { transform: rotate(360deg); } }
.radar .blip {
  position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 10px var(--gold);
  transform: rotate(var(--a)) translateY(calc(var(--r) * -1)) ;
  animation: blip 2.6s ease-out infinite; opacity: 0;
}
.radar.returned .blip { background: var(--green); box-shadow: 0 0 10px var(--green); }
@keyframes blip { 0% { opacity: 0; } 10% { opacity: 1; } 70% { opacity: 0.2; } 100% { opacity: 0; } }
.radar-ship {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: 2.1rem; filter: drop-shadow(0 0 10px rgba(47,224,228,0.7));
}
.radar.flying .radar-ship { animation: shipOrbit 7s linear infinite; }
.radar.broken .radar-ship { filter: grayscale(1) drop-shadow(0 0 8px var(--red)); animation: flicker 1.6s steps(2) infinite; }
.radar.returned .radar-ship { animation: bob 2.2s ease-in-out infinite; }
@keyframes shipOrbit {
  from { transform: translate(-50%, -50%) rotate(0deg) translateX(46px) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg) translateX(46px) rotate(-360deg); }
}
@keyframes flicker { 50% { opacity: 0.45; } }

.btn.pulse { animation: btnPulse 1.6s ease-in-out infinite; }
@keyframes btnPulse { 50% { box-shadow: 0 0 0 6px rgba(52,224,127,0.14), 0 0 24px rgba(52,224,127,0.35); } }

/* Kosten-Liste (haben / brauchen) */
.cost-list { display: flex; flex-direction: column; gap: 3px; margin: 8px 0 10px; }
.cost { display: flex; justify-content: space-between; gap: 10px; font-size: 0.8rem; padding: 4px 8px; border-radius: 6px; background: rgba(4,7,13,0.45); }
.cost b { font-family: var(--font-mono); font-weight: 500; white-space: nowrap; }
.cost.ok   { color: var(--text); }
.cost.ok span:first-child { color: var(--green); }
.cost.miss { color: var(--text-dim); }
.cost.miss span:first-child, .cost.miss b { color: var(--red); }
.up-box { margin-top: 10px; padding: 10px; border: 1px dashed var(--line-strong); border-radius: 9px; }
.up-title { display: flex; justify-content: space-between; gap: 8px; font-size: 0.86rem; color: var(--text); }
.up-title span { color: var(--gold); font-family: var(--font-mono); font-size: 0.78rem; }
.lvl-box { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.lvl-box summary { cursor: pointer; font-size: 0.84rem; color: var(--text); list-style: none; display: flex; justify-content: space-between; }
.lvl-box summary::-webkit-details-marker { display: none; }
.lvl-box summary span { color: var(--green); font-size: 0.78rem; }
.lvl-box .btn { width: 100%; }
.build-done { text-align: center; color: var(--green); font-family: var(--font-display); font-size: 1.05rem; padding: 8px 0; }
.build-anim { display: flex; justify-content: center; gap: 6px; margin: 2px 0 8px; }
.build-anim i { width: 9px; height: 9px; border-radius: 2px; background: var(--gold); animation: buildBlink 1.2s ease-in-out infinite; }
.build-anim i:nth-child(2) { animation-delay: 0.2s; }
.build-anim i:nth-child(3) { animation-delay: 0.4s; }
@keyframes buildBlink { 0%, 100% { opacity: 0.2; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }
.planet-card.celebrate { animation: cardGlow 1.5s ease-out; }
@keyframes cardGlow { 0% { box-shadow: 0 0 0 0 rgba(52,224,127,0.7); } 100% { box-shadow: 0 0 0 26px rgba(52,224,127,0); } }

/* Enthuellung im Modal */
.reveal { text-align: center; }
.reveal-kicker { font-size: 0.72rem; letter-spacing: 1.8px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; }
.reveal.good .reveal-kicker { color: var(--green); }
.reveal.bad .reveal-kicker { color: var(--red); }
.reveal-planet { animation: materialize 1.3s cubic-bezier(.2,.8,.2,1) both; margin: 6px auto 4px; }
@keyframes materialize {
  0% { opacity: 0; transform: scale(0.2) rotate(-40deg); filter: blur(12px) brightness(3); }
  60% { opacity: 1; filter: blur(0) brightness(1.4); }
  100% { transform: scale(1) rotate(0); filter: none; }
}
.reveal-big { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--red); text-shadow: 0 0 26px rgba(255,77,106,0.5); animation: materialize 0.7s ease-out both; }
body.col-shake main.stage { animation: shake 0.32s linear 2; }

@media (max-width: 760px) {
  .col-cmd, .col-cmd.blueprint { grid-template-columns: 1fr; gap: 14px; text-align: center; }
  .radar { width: 170px; height: 170px; }
  .col-hp, .odds { margin-left: auto; margin-right: auto; }
  .col-actions { justify-content: center; }
  .col-actions .btn { width: 100%; }
  .col-eta { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .radar-sweep, .radar-ship, .blip, .btn.pulse, .build-anim i, .col-bp-art, .reveal-planet, .reveal-big { animation: none !important; }
}

/* =========================================================================
   Handy-Feinschliff (Etappe 4)
   ========================================================================= */
.kv > span { min-width: 0; }
.kv > span:last-child { text-align: right; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .kv { gap: 8px; }
  .kv > span:first-child { flex: 1 1 auto; }
  .kv > span:last-child { flex: 0 1 auto; }
}
/* Zwei Karten nebeneinander sind auf dem Handy zu schmal fuer Zahlen wie
   "29.983.685.915 LC" - unter 560 px stapeln wir die Inhaltskarten. */
@media (max-width: 560px) {
  .grid.cols-auto { grid-template-columns: minmax(0, 1fr); }
  .grid > * { min-width: 0; }
  .pcard-grid { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 1.35rem; overflow-wrap: anywhere; }
  .panel-title { overflow-wrap: anywhere; }
  .modal { padding: 18px 16px; }
  .modal-actions { flex-wrap: wrap; }
  .modal-actions .btn { flex: 1 1 140px; }
  .colony-bar .stat { min-width: 72px; }
  .ledger-row { grid-template-columns: 26px 1fr; }
  .ledger-row .amt { grid-column: 2; }
  .chip-row { flex-wrap: wrap; }
  input, select, textarea { font-size: 16px; }   /* iOS zoomt sonst beim Antippen */
}

/* =========================================================================
   Imperium (nur Web)
   ========================================================================= */
.plus { color: var(--green) !important; }
.minus { color: var(--red) !important; }
.em-top { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 18px; margin-bottom: 18px; }
.em-worth { text-align: center; }
.em-kicker { font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); }
.em-total { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--gold); line-height: 1.15; overflow-wrap: anywhere; text-shadow: 0 0 24px rgba(245,166,35,0.3); }
.em-total small { font-size: 0.9rem; color: var(--text-dim); }
.em-rank { font-size: 0.82rem; color: var(--text-dim); margin: 4px 0 12px; }
.em-rank b { color: var(--text-bright); }
.em-donut { position: relative; width: 210px; height: 210px; margin: 0 auto; }
.donut { width: 100%; height: 100%; }
.dn-seg { transition: stroke-width 0.2s; animation: dnIn 1s cubic-bezier(.2,.8,.2,1) both; }
.dn-seg:hover { stroke-width: 15; }
@keyframes dnIn { from { stroke-dasharray: 0 999; } }
.em-donut-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.em-donut-c b { font-family: var(--font-display); font-size: 1.4rem; color: var(--text-bright); }
.em-donut-c span { font-size: 0.7rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-dim); }
.em-leg { display: grid; grid-template-columns: 12px 1fr auto 44px; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px solid rgba(96,140,220,0.08); font-size: 0.88rem; }
.em-leg:last-of-type { border-bottom: 0; }
.em-leg i { width: 12px; height: 12px; border-radius: 3px; }
.em-leg .n small { display: block; color: var(--text-dim); font-size: 0.72rem; }
.em-leg b { font-family: var(--font-mono); font-weight: 500; color: var(--text-bright); white-space: nowrap; }
.em-leg .pc { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim); text-align: right; }
.em-leg.zero { opacity: 0.45; }
.em-note { margin-top: 12px; font-size: 0.76rem; color: var(--text-dim); line-height: 1.5; }
.em-hist-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.em-delta { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; margin-top: 4px; }
.em-delta.up { color: var(--green); } .em-delta.down { color: var(--red); }
.em-delta span { font-family: var(--font-body, inherit); font-size: 0.8rem; font-weight: 400; color: var(--text-dim); }
.chart-wrap { position: relative; }
.em-chart { width: 100%; height: 240px; display: block; overflow: visible; touch-action: pan-y; }
.em-chart .axis { stroke: rgba(96,140,220,0.25); stroke-width: 1; vector-effect: non-scaling-stroke; }
.em-chart .em-line { fill: none; stroke: var(--cyan); stroke-width: 2.4; vector-effect: non-scaling-stroke; stroke-linejoin: round; animation: fadeIn 0.9s ease-out both; filter: drop-shadow(0 0 5px rgba(47,224,228,0.5)); }
@keyframes drawLine { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.em-chart .em-area { animation: fadeIn 1.4s ease-out both; }
@keyframes fadeIn { from { opacity: 0; } }
.em-chart .bar-in { fill: rgba(52,224,127,0.65); }
.em-chart .bar-out { fill: rgba(255,77,106,0.6); }
.em-chart .tick { fill: var(--text-dim); font-size: 11px; font-family: var(--font-mono); }
.em-chart .em-cursor { stroke: rgba(255,255,255,0.35); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0; }
.em-chart .em-dot { fill: var(--cyan); stroke: #04070d; stroke-width: 2; vector-effect: non-scaling-stroke; opacity: 0; }
.em-chart.hover .em-cursor, .em-chart.hover .em-dot { opacity: 1; }
.em-tip {
  position: absolute; top: -6px; transform: translate(-50%, -100%); pointer-events: none; opacity: 0; z-index: 5;
  background: #0b1020; border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 11px; font-size: 0.78rem; white-space: nowrap;
  box-shadow: 0 10px 26px rgba(0,0,0,0.5); transition: opacity 0.12s;
}
.em-tip.on { opacity: 1; }
.em-tip b { color: var(--text-bright); display: block; margin-bottom: 2px; }
.em-tip .dim { color: var(--text-dim); }
.em-legend-mini { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.74rem; color: var(--text-dim); margin-top: 8px; }
.em-legend-mini i { display: inline-block; width: 12px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.em-legend-mini i.l { background: var(--cyan); } .em-legend-mini i.in { background: var(--green); } .em-legend-mini i.out { background: var(--red); }
.src-row { display: grid; grid-template-columns: minmax(110px, 1fr) 1.2fr auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 0.84rem; }
.src-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-bars { display: flex; flex-direction: column; gap: 3px; }
.src-bars i { display: block; height: 5px; border-radius: 3px; min-width: 0; }
.src-bars i.in { background: var(--green); } .src-bars i.out { background: var(--red); }
.src-v { font-family: var(--font-mono); font-size: 0.78rem; text-align: right; white-space: nowrap; }
.em-rec { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; margin-top: 10px; padding: 9px 12px; border-radius: 8px; background: rgba(4,7,13,0.45); font-size: 0.84rem; }
.em-rec b { font-family: var(--font-mono); }
.em-rec small { grid-column: 1 / -1; color: var(--text-dim); font-size: 0.74rem; }
.em-rec.plus b { color: var(--green); } .em-rec.minus b { color: var(--red); }
.em-rec.plus, .em-rec.minus { color: var(--text) !important; }
@media (max-width: 900px) { .em-top { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .em-total { font-size: 1.55rem; }
  .em-donut { width: 170px; height: 170px; }
  .em-chart { height: 200px; }
  .src-row { grid-template-columns: 1fr auto; }
  .src-bars { grid-column: 1 / -1; order: 3; }
  .em-leg { grid-template-columns: 12px 1fr auto; }
  .em-leg .pc { display: none; }
}
@media (prefers-reduced-motion: reduce) { .em-chart .em-line, .em-chart .em-area, .dn-seg { animation: none; } }

/* ---------------------------------------------------------------- Wiki */
.wiki-search { max-width: 320px; }
.wiki-where { font-family: var(--font-body, inherit); font-size: 0.66rem; letter-spacing: 0.4px; font-weight: 600; padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: middle; white-space: nowrap; border: 1px solid var(--line); color: var(--text-dim); }
.wiki-where.web { color: var(--cyan); border-color: rgba(47,224,228,0.4); }
.wiki-where.discord { color: #8b9bff; border-color: rgba(139,155,255,0.45); }
.wiki-entry p code { font-size: 0.82em; }
.wiki-sec + .wiki-sec.active { margin-top: 16px; }
@media (max-width: 560px) { .wiki-search { max-width: none; width: 100%; } }

/* =========================================================================
   Sektorenkarte (Etappe 5)
   ========================================================================= */
.map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.map-board { padding: 10px; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, rgba(20,30,60,0.9), rgba(4,7,13,0.95)); }
.map-svg { width: 100%; height: auto; display: block; }
.ms-star { fill: #fff; opacity: 0.5; animation: msTwinkle 3.6s ease-in-out infinite; }
@keyframes msTwinkle { 50% { opacity: 0.12; } }
.ms-lane { stroke: rgba(47,224,228,0.22); stroke-width: 1.5; stroke-dasharray: 4 7; animation: msLane 12s linear infinite; }
@keyframes msLane { to { stroke-dashoffset: -110; } }
.ms-row { fill: var(--text-dim); font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: 2px; text-anchor: middle; opacity: 0.5; }
.ms-hex { cursor: pointer; outline: none; }
.ms-hex .glow { fill: none; stroke: var(--c); stroke-width: 2; opacity: 0.35; transition: opacity 0.2s, stroke-width 0.2s; }
.ms-hex .body { fill: var(--c); fill-opacity: 0.16; stroke: var(--c); stroke-width: 2; stroke-opacity: 0.75; transition: fill-opacity 0.2s; }
.ms-hex.neutral .body { fill: #0b1020; fill-opacity: 0.85; stroke: rgba(96,140,220,0.35); stroke-dasharray: 5 5; }
.ms-hex.neutral .glow { stroke: rgba(96,140,220,0.25); }
.ms-hex:hover .body, .ms-hex:focus .body { fill-opacity: 0.3; }
.ms-hex:hover .glow, .ms-hex:focus .glow { opacity: 0.9; }
.ms-hex.sel .glow { opacity: 1; stroke-width: 4; stroke: var(--cyan); filter: drop-shadow(0 0 8px var(--cyan)); }
.ms-hex.mine .glow { stroke: var(--gold); opacity: 1; animation: msMine 2.4s ease-in-out infinite; }
@keyframes msMine { 50% { stroke-width: 5; opacity: 0.55; } }
.ms-ico { font-size: 26px; text-anchor: middle; dominant-baseline: middle; }
.ms-id { fill: #fff; font-family: var(--font-display); font-weight: 700; font-size: 26px; text-anchor: middle; dominant-baseline: middle; letter-spacing: 1px; }
.ms-owner { fill: var(--text-dim); font-size: 12.5px; text-anchor: middle; dominant-baseline: middle; font-family: var(--font-mono); }
.ms-hex.owned .ms-owner { fill: var(--c); font-weight: 700; }
.ms-lock { font-size: 15px; text-anchor: middle; dominant-baseline: middle; }
.map-aside { display: flex; flex-direction: column; gap: 14px; }
.map-aside .panel { margin: 0; }
.ms-detail { border-top: 3px solid var(--c); }
.ms-d-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.ms-d-ico { font-size: 2.2rem; }
.ms-d-id { font-size: 0.7rem; letter-spacing: 1.8px; text-transform: uppercase; color: var(--text-dim); }
.ms-detail h3 { font-family: var(--font-display); font-size: 1.25rem; color: var(--text-bright); margin: 0; }
.ms-buff { margin: 10px 0; padding: 10px 12px; border-radius: 8px; background: rgba(52,224,127,0.08); border: 1px solid rgba(52,224,127,0.3); color: var(--green); font-weight: 600; font-size: 0.92rem; }
.ms-dim { color: var(--text-dim); font-size: 0.84rem; line-height: 1.5; }
.ms-empty { text-align: center; }
.ms-leg { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 0.86rem; border-bottom: 1px solid rgba(96,140,220,0.08); }
.ms-leg:last-child { border-bottom: 0; }
.ms-leg i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.ms-leg span { margin-left: auto; color: var(--text-dim); font-size: 0.78rem; }
@media (max-width: 900px) { .map-wrap { grid-template-columns: 1fr; } .map-board { padding: 4px; } }
@media (prefers-reduced-motion: reduce) { .ms-star, .ms-lane, .ms-hex.mine .glow { animation: none; } }

/* --------------------------------------------------------------- Codes */
.codes-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.fl { display: block; font-size: 0.78rem; color: var(--text-dim); margin: 10px 0 6px; }
.fl .input { margin-top: 6px; }
.code-name-row { display: flex; gap: 8px; margin-top: 6px; }
.code-name-row .input { margin: 0; font-family: var(--font-mono); letter-spacing: 1px; }
.code-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pc-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.pc-row .input, .pc-row .select { margin: 0; min-width: 0; flex: 1; }
.pc-row .pc-small { flex: 0 0 110px; }
.pc-row-pet { flex-wrap: wrap; }
.pc-row-pet .pc-small { flex-basis: 80px; }
.pc-row-pet .pc-type { flex-basis: 100%; }
.pc-row-pet .select { flex: 1 1 40%; }
.pc-type { flex: 0 0 150px; font-size: 0.84rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-unit { font-size: 0.8rem; color: var(--text-dim); }
.pc-row .btn.slim { flex: none; }
.pc-preview { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: rgba(4,7,13,0.5); border: 1px dashed var(--line); font-size: 0.85rem; overflow-wrap: anywhere; }
.pc-preview span { color: var(--text-dim); }
.pc-preview b { font-family: var(--font-mono); color: var(--cyan); }
.pc-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.pc-item:last-child { border-bottom: 0; }
.pc-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pc-code { font-family: var(--font-mono); font-size: 1rem; color: var(--text-bright); background: rgba(47,224,228,0.08); padding: 2px 8px; border-radius: 6px; }
.pc-st { font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-dim); }
.pc-st.on { color: var(--green); border-color: rgba(52,224,127,0.45); }
.pc-st.off { color: var(--red); border-color: rgba(255,77,106,0.4); }
.pc-st.bc { color: var(--gold); border-color: rgba(245,166,35,0.45); }
.pc-text { margin: 6px 0 2px; font-size: 0.88rem; }
.pc-meta { font-size: 0.76rem; color: var(--text-dim); }
.pc-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pc-actions .btn { width: auto; }
.pc-uses { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
@media (max-width: 900px) { .codes-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .pc-row { flex-wrap: wrap; } .pc-type { flex-basis: 100%; } .code-two { grid-template-columns: 1fr; } }

/* ------------------------------------------------- Web-Login-Kalender */
.lc h2 { text-align: center; }
.lc .sub { text-align: center; }
.lc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 16px 0 10px; }
.lc-day {
  position: relative; border-radius: 10px; padding: 10px 6px 12px; text-align: center;
  background: rgba(4,7,13,0.55); border: 1px solid var(--line); min-height: 128px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; transition: transform 0.2s var(--ease);
}
.lc-n { font-size: 0.66rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-dim); }
.lc-ico { font-size: 1.8rem; line-height: 1; }
.lc-r { font-size: 0.7rem; line-height: 1.35; color: var(--text); overflow-wrap: anywhere; }
.lc-day.done { opacity: 0.55; border-color: rgba(52,224,127,0.35); }
.lc-day.today { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(47,224,228,0.25), 0 0 22px rgba(47,224,228,0.25); transform: translateY(-4px); animation: lcPulse 1.8s ease-in-out infinite; }
.lc-day.jackpot { background: linear-gradient(170deg, rgba(245,166,35,0.18), rgba(4,7,13,0.6)); border-color: rgba(245,166,35,0.5); }
.lc-day.jackpot .lc-n { color: var(--gold); }
.lc-day.opening { animation: lcOpen 0.65s ease-out forwards; }
@keyframes lcPulse { 50% { box-shadow: 0 0 0 4px rgba(47,224,228,0.12), 0 0 30px rgba(47,224,228,0.4); } }
@keyframes lcOpen { 40% { transform: translateY(-10px) scale(1.12) rotate(-3deg); filter: brightness(2); } 100% { transform: scale(1); filter: none; } }
.lc-stats { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 0.82rem; color: var(--text-dim); }
.lc-stats b { color: var(--text-bright); }
.lc-got { margin-top: 14px; padding: 12px; border-radius: 10px; text-align: center; font-weight: 600; color: var(--green); background: rgba(52,224,127,0.1); border: 1px solid rgba(52,224,127,0.4); animation: materialize 0.6s ease-out both; }
.lc-got.jackpot { color: var(--gold); background: rgba(245,166,35,0.12); border-color: rgba(245,166,35,0.5); font-size: 1.05rem; }
@media (max-width: 640px) {
  .lc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lc-day.jackpot { grid-column: span 2; }
  .lc-day { min-height: 112px; }
}
@media (prefers-reduced-motion: reduce) { .lc-day.today, .lc-day.opening { animation: none; } }
.modal:has(.lc) { max-width: 860px; width: calc(100vw - 32px); }
.lc-r { font-size: 0.76rem; }

/* ------------------------------------------------------------- Erfolge */
.ach-sum { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; }
.ach-big { text-align: center; padding-right: 26px; border-right: 1px solid var(--line); }
.ach-big b { display: block; font-family: var(--font-display); font-size: 2.6rem; color: var(--gold); line-height: 1; text-shadow: 0 0 22px rgba(245,166,35,0.35); }
.ach-big span { font-size: 0.7rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-dim); }
.ach-tiers { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 0.8rem; color: var(--text-dim); }
.ach-tiers i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: 6px; box-shadow: 0 0 6px var(--c); }
.ach-tiers b { color: var(--text-bright); margin-left: 4px; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.ach { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 12px; background: rgba(4,7,13,0.55); border: 1px solid var(--line); opacity: 0.72; transition: transform 0.15s; }
.ach:hover { transform: translateY(-2px); }
.ach-ico { font-size: 1.9rem; width: 52px; height: 52px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(96,140,220,0.1); filter: grayscale(1); }
.ach.got { opacity: 1; border-color: color-mix(in srgb, var(--c) 55%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 12%, transparent), rgba(4,7,13,0.55)); }
.ach.got .ach-ico { filter: none; background: color-mix(in srgb, var(--c) 20%, transparent); box-shadow: 0 0 0 2px var(--c), 0 0 18px color-mix(in srgb, var(--c) 45%, transparent); }
.ach-txt { min-width: 0; flex: 1; }
.ach-txt b { display: block; color: var(--text-bright); font-family: var(--font-display); font-size: 1.02rem; letter-spacing: 0.4px; }
.ach-txt span { display: block; font-size: 0.8rem; color: var(--text-dim); margin: 2px 0 6px; }
.ach-txt small { font-size: 0.7rem; color: var(--text-dim); }
.ach.got .ach-txt small { color: var(--c); }
.ach .bar { height: 5px; margin-bottom: 4px; }
.pc-toggle { display: flex; gap: 10px; align-items: center; margin: 16px 0 10px; font-weight: 600; cursor: pointer; }
.pc-link { padding: 10px 12px; border-radius: 8px; background: rgba(47,224,228,0.08); border: 1px solid rgba(47,224,228,0.3); overflow-wrap: anywhere; }
.pc-link code { color: var(--cyan); font-size: 0.9rem; }
@media (max-width: 560px) { .ach-sum { grid-template-columns: 1fr; gap: 12px; } .ach-big { border-right: 0; padding: 0; border-bottom: 1px solid var(--line); padding-bottom: 12px; } }

/* ------------------------------------------------ Oeffentliche Karte */
.pc-page { position: relative; z-index: 5; max-width: 860px; margin: 0 auto; padding: 48px 16px 60px; }
.pc-missing { text-align: center; padding: 40px 20px; }
.pc-missing h1 { font-family: var(--font-display); color: var(--text-bright); margin: 10px 0; }
.pc-missing p { color: var(--text-dim); margin-bottom: 18px; }
.pc-card { position: relative; overflow: hidden; border-radius: 20px; padding: 28px; border: 1px solid rgba(47,224,228,0.35);
  background: linear-gradient(155deg, rgba(20,32,62,0.96), rgba(6,9,18,0.97) 60%, rgba(34,14,52,0.95));
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(168,85,247,0.15) inset; }
.pc-holo { position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, rgba(47,224,228,0.08), transparent 30%, rgba(168,85,247,0.08), transparent 60%); animation: pSpin 30s linear infinite; pointer-events: none; }
.pc-card > *:not(.pc-holo) { position: relative; }
.pc-head { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; margin-bottom: 24px; }
.pc-ava { position: relative; width: 112px; height: 112px; border-radius: 50%; padding: 4px; background: conic-gradient(var(--cyan), var(--violet), var(--gold), var(--cyan)); }
.pc-ava img, .pc-ava span { width: 100%; height: 100%; border-radius: 50%; display: flex; align-items: center; justify-content: center; object-fit: cover; background: #0b1020; font-family: var(--font-display); font-size: 2.8rem; color: var(--cyan); }
.pc-p { position: absolute; bottom: -4px; right: -4px; background: var(--violet); color: #fff; font-family: var(--font-display); font-size: 0.9rem; padding: 3px 9px; border-radius: 999px; border: 2px solid #0b1020; }
.pc-kicker { font-size: 0.7rem; letter-spacing: 2.2px; text-transform: uppercase; color: var(--cyan); }
.pc-id h1 { font-family: var(--font-display); font-size: 2.3rem; color: var(--text-bright); margin: 2px 0 8px; line-height: 1.1; overflow-wrap: anywhere; }
.pc-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pc-rank { text-align: center; padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(245,166,35,0.4); background: rgba(245,166,35,0.08); }
.pc-rank span { display: block; font-size: 0.66rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-dim); }
.pc-rank b { font-family: var(--font-display); font-size: 1.8rem; color: var(--gold); }
.pc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.pc-stat { padding: 12px; border-radius: 12px; background: rgba(4,7,13,0.5); border: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; }
.pc-stat .i { grid-row: span 2; font-size: 1.5rem; }
.pc-stat .l { font-size: 0.7rem; color: var(--text-dim); letter-spacing: 0.6px; text-transform: uppercase; }
.pc-stat b { font-family: var(--font-display); color: var(--text-bright); font-size: 1.1rem; }
.pc-sec-title { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-display); color: var(--text-bright); font-size: 1.05rem; letter-spacing: 0.6px; margin-bottom: 8px; }
.pc-sec-title span { font-family: inherit; font-size: 0.8rem; color: var(--text-dim); letter-spacing: 0; }
.pc-ach, .pc-col { margin-bottom: 22px; }
.pc-show { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 12px; }
.pc-medal { text-align: center; padding: 10px 4px; border-radius: 12px; background: rgba(4,7,13,0.5); border: 1px solid var(--line); }
.pc-medal span { font-size: 1.7rem; display: block; }
.pc-medal small { display: block; font-size: 0.66rem; color: var(--text-dim); margin-top: 4px; line-height: 1.2; }
.pc-medal.tier-platin { border-color: #7ff3ff; box-shadow: 0 0 14px rgba(127,243,255,0.25); }
.pc-medal.tier-gold { border-color: #f5c542; }
.pc-medal.tier-silber { border-color: #c0c8d8; }
.pc-medal.tier-bronze { border-color: #cd7f32; }
.pc-planets { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-planet { width: 64px; height: 64px; }
.pc-dim { color: var(--text-dim); font-size: 0.86rem; }
.pc-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--text-dim); letter-spacing: 1px; }
.pc-actions { display: flex; gap: 8px; }
.pc-actions .btn { width: auto; }
@media (max-width: 640px) {
  .pc-card { padding: 20px 16px; }
  .pc-head { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .pc-chips { justify-content: center; }
  .pc-id h1 { font-size: 1.8rem; }
  .pc-stats { grid-template-columns: repeat(2, 1fr); }
  .pc-show { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .pc-holo { animation: none; } }

/* =========================================================================
   Startseite (Etappe 5)
   ========================================================================= */
.lp .btn-play { display: inline-block; margin-top: 0; text-decoration: none; }
.lp-nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(16px, calc((100vw - 1180px) / 2)); background: rgba(5,7,13,0.72); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.lp-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: 5px; color: var(--text-bright); text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.lp-brand small { font-size: 0.55rem; letter-spacing: 3px; color: var(--cyan); margin-top: 3px; }
.lp-nav nav { display: flex; align-items: center; gap: 20px; }
.lp-nav nav a:not(.btn) { color: var(--text-dim); text-decoration: none; font-size: 0.9rem; }
.lp-nav nav a:not(.btn):hover { color: var(--text-bright); }
.lp-nav .btn { width: auto; }
.lp-main { position: relative; z-index: 5; max-width: 1180px; margin: 0 auto; padding: 0 16px 40px; }
.lp-main > section { margin-top: 84px; }
.lp-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, 400px); gap: 48px; align-items: center; margin-top: 64px !important; }
.lp-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(47,224,228,0.4); background: rgba(47,224,228,0.08); color: var(--cyan); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.4px; }
.lp-kicker .dot, .lp-status .live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: lpPulse 1.6s ease-in-out infinite; display: inline-block; }
@keyframes lpPulse { 50% { opacity: 0.35; } }
.lp-hero h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 5.6vw, 4.2rem); line-height: 1.02; color: var(--text-bright); margin: 20px 0 18px; letter-spacing: 1px; }
.lp-hero h1 span { background: linear-gradient(90deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-lead { color: var(--text-dim); font-size: 1.08rem; line-height: 1.75; max-width: 580px; }
.lp-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 30px; }
.lp-ghost { color: var(--text); text-decoration: none; font-weight: 600; }
.lp-ghost:hover { color: var(--cyan); }
.lp-login { padding: 24px; border-color: rgba(47,224,228,0.35); box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 40px rgba(47,224,228,0.08); }
.lp-login-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.lp-login-ico { font-size: 2rem; width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: rgba(47,224,228,0.1); border: 1px solid rgba(47,224,228,0.3); }
.lp-login-head b { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--text-bright); letter-spacing: 0.6px; }
.lp-login-head span { font-size: 0.84rem; color: var(--text-dim); }
.lp-discord { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 15px; border-radius: 10px; background: #5865f2; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem; box-shadow: 0 10px 26px rgba(88,101,242,0.4); transition: transform 0.15s, box-shadow 0.15s; }
.lp-discord:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(88,101,242,0.55); }
.lp-discord svg { width: 26px; height: 26px; }
.lp-checks { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 8px; font-size: 0.88rem; color: var(--text); }
.lp-checks li::before { content: '✓'; color: var(--green); font-weight: 700; margin-right: 10px; }
.lp-status { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.84rem; color: var(--text-dim); }
.lp-status .live { color: var(--green); display: inline-flex; align-items: center; gap: 8px; }
.lp-status b { color: var(--text-bright); }
.lp-season { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 10px; background: rgba(168,85,247,0.08); border: 1px solid rgba(168,85,247,0.3); font-size: 0.86rem; }
.lp-season b { font-family: var(--font-mono); color: var(--violet); }
.lp-beta { margin-top: 14px; font-size: 0.74rem; color: var(--text-dim); text-align: center; }
.lp-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 56px !important; }
.lp-stats > div { text-align: center; padding: 18px 10px; border-radius: 14px; background: rgba(11,16,32,0.7); border: 1px solid var(--line); }
.lp-stats b { display: block; font-family: var(--font-display); font-size: 1.8rem; color: var(--text-bright); }
.lp-stats span { font-size: 0.72rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-dim); }
.lp-h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--text-bright); text-align: center; margin-bottom: 26px; letter-spacing: 1px; }
.lp-tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.lp-tabs button { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(11,16,32,0.7); color: var(--text-dim); font: inherit; font-weight: 600; font-size: 0.9rem; cursor: pointer; }
.lp-tabs button.on { color: var(--cyan); border-color: var(--cyan); background: rgba(47,224,228,0.1); }
.lp-browser { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(47,224,228,0.08); background: #070a14; }
.lp-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #0d1222; border-bottom: 1px solid var(--line); }
.lp-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.lp-bar i:nth-child(2) { background: #febc2e; } .lp-bar i:nth-child(3) { background: #28c840; }
.lp-bar span { margin-left: 14px; flex: 1; max-width: 480px; padding: 4px 12px; border-radius: 7px; background: rgba(255,255,255,0.05); font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-view { aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; background: #05070d; }
.lp-view img { width: 100%; height: 100%; object-fit: contain; display: block; transition: opacity 0.18s; }
.lp-view img.fade { opacity: 0; }
.lp-caption { text-align: center; color: var(--text-dim); margin-top: 16px; font-size: 0.95rem; min-height: 1.5em; }
.lp-split { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 48px; align-items: center; }
.lp-phone-wrap { display: flex; justify-content: center; padding: 28px; background: radial-gradient(circle at 50% 30%, rgba(168,85,247,0.2), transparent 70%), rgba(11,16,32,0.7); }
.lp-phone { width: 260px; border-radius: 34px; padding: 10px; background: #0b0f1c; border: 2px solid #2a3350; box-shadow: 0 24px 60px rgba(0,0,0,0.6); }
.lp-phone img { width: 100%; height: auto; border-radius: 24px; display: block; }
.lp-split-text p { color: var(--text-dim); line-height: 1.75; font-size: 1.02rem; }
.lp-list { margin: 18px 0; padding-left: 18px; color: var(--text); line-height: 1.7; }
.lp-list li { margin-bottom: 8px; }
.lp-list li::marker { color: var(--cyan); }
.lp-news { display: inline-flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 10px; border: 1px solid rgba(245,166,35,0.4); background: rgba(245,166,35,0.07); }
.lp-news span { font-size: 0.7rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); }
.lp-news b { color: var(--text-bright); }
.lp-faq { max-width: 820px; margin-left: auto; margin-right: auto; }
.lp-faq details { border: 1px solid var(--line); border-radius: 12px; background: rgba(11,16,32,0.7); margin-bottom: 10px; }
.lp-faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--text-bright); list-style: none; display: flex; justify-content: space-between; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; color: var(--cyan); font-size: 1.3rem; line-height: 1; }
.lp-faq details[open] summary::after { content: '–'; }
.lp-faq details p { padding: 0 20px 16px; color: var(--text-dim); line-height: 1.7; }
.lp-final { text-align: center; padding: 56px 20px; border-radius: 20px; background: radial-gradient(ellipse at 50% 0%, rgba(47,224,228,0.18), transparent 70%), rgba(11,16,32,0.7); border: 1px solid var(--line); }
.lp-final h2 { font-family: var(--font-display); font-size: 2.2rem; color: var(--text-bright); margin-bottom: 22px; }
@media (max-width: 960px) {
  .lp-hero, .lp-split { grid-template-columns: 1fr; gap: 32px; }
  .lp-stats { grid-template-columns: repeat(3, 1fr); }
  .lp-split .lp-phone-wrap { order: 2; }
}
@media (max-width: 560px) {
  .lp-nav nav a:not(.btn) { display: none; }
  .lp-main > section { margin-top: 56px; }
  .lp-hero { margin-top: 36px !important; }
  .lp-stats { grid-template-columns: repeat(2, 1fr); }
  .lp-stats > div:last-child { grid-column: span 2; }
  .lp .btn-play { padding: 15px 28px; font-size: 1.1rem; }
  .lp-view { aspect-ratio: 16 / 11; }
}
@media (prefers-reduced-motion: reduce) { .lp-kicker .dot, .lp-status .live i { animation: none; } }

/* ============================================ Tablets im Querformat (Touch)
   Auf Tablets gibt es kein "Ueberfahren" mit der Maus: die Leiste klappte
   nie auf, Beschriftungen fehlten, und bei 834 px Hoehe wurden die Symbole
   zusammengeschoben statt zu scrollen. Die Aktionsleiste schwebte mitten
   ueber dem Inhalt. */
.rail > * { flex-shrink: 0; }
@supports (height: 100dvh) { .shell { height: 100dvh; } }

@media (hover: none) and (min-width: 901px) {
  :root { --rail-w: 92px; --rail-w-open: 92px; }
  .rail { padding: 10px 0 18px; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail:hover { width: var(--rail-w); }
  .rail-group {
    opacity: 1; padding: 12px 0 4px; text-align: center; font-size: 0.5rem; letter-spacing: 1.2px;
    border-top: 1px solid var(--line); margin: 8px 12px 0;
  }
  .rail-search + .rail-group { border-top: 0; margin-top: 0; }
  .rail-btn {
    flex-direction: column; justify-content: center; gap: 3px;
    height: 60px; padding: 4px 2px; margin: 0 6px; width: calc(100% - 12px); text-align: center;
  }
  .rail-btn .ico { margin: 0; font-size: 1.3rem; }
  .rail-btn .label {
    opacity: 1; font-size: 0.64rem; letter-spacing: 0.2px; font-weight: 600;
    max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  }
  .rail-search .label kbd { display: none; }
  .rail-btn.active::before { top: 12px; bottom: 12px; }
  .rail-count {
    position: absolute; top: 5px; right: 10px; margin: 0; opacity: 1;
    font-size: 0.6rem; padding: 0 5px;
  }
  .rail-btn .devlog-new-dot { top: 6px; left: auto; right: 16px; }

  .stage { padding: 26px 28px 132px; }
  .actionbar {
    left: var(--rail-w); right: 0; bottom: 0;
    justify-content: center; flex-wrap: nowrap; gap: 10px;
    padding: 12px 24px max(12px, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(5,7,13,0) 0%, rgba(5,7,13,0.9) 30%, rgba(5,7,13,0.98) 100%);
    backdrop-filter: blur(10px);
    pointer-events: auto;
  }
  .act {
    width: auto; flex: 0 1 230px; min-width: 0;
    flex-direction: row; gap: 12px; padding: 10px 14px; justify-content: flex-start;
    background: #0d1220;
  }
  .act:hover:not(:disabled) { transform: none; }
  .act .ring, .act .ring svg { width: 40px; height: 40px; flex-shrink: 0; }
  .act .ring .glyph { font-size: 1.15rem; }
  .act .key { display: none; }
  .act .txt { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
  .act .act-name { font-size: 0.78rem; white-space: nowrap; }
  .act .act-state { font-size: 0.72rem; white-space: nowrap; }
}

/* ============================================ Impressum & Datenschutz */
.site-foot { text-align: center; font-size: .8rem; color: var(--text-dim); padding: 28px 0 8px; }
.site-foot a, .landing-foot a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; }
.site-foot a:hover, .landing-foot a:hover { color: var(--cyan); }
.legal { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; padding: 24px 16px 40px; }
.legal-nav { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.legal-nav div { display: flex; gap: 16px; flex-wrap: wrap; }
.legal-nav a { color: var(--text-dim); text-decoration: none; font-family: var(--font-display); font-weight: 600; }
.legal-nav a.on, .legal-nav a:hover { color: var(--cyan); }
.legal-brand { font-size: 1.4rem; letter-spacing: 4px; color: var(--text-bright) !important; }
.legal-brand small { display: block; font-size: .55rem; letter-spacing: 3px; color: var(--cyan); }
.legal-card { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px 30px; line-height: 1.7; }
.legal-card h1 { font-family: var(--font-display); font-size: 2rem; margin: 0; color: var(--text-bright); }
.legal-updated { color: var(--text-dim); margin: 2px 0 18px; font-size: .85rem; }
.legal-card h2 { font-family: var(--font-display); font-size: 1.2rem; color: var(--cyan); margin: 24px 0 6px; letter-spacing: .3px; }
.legal-card p, .legal-card li { color: var(--text); font-size: .94rem; }
.legal-card ul { padding-left: 20px; }
.legal-card a { color: var(--cyan); }
.legal-card code { font-size: .85em; background: var(--bg-slot); padding: 1px 6px; border-radius: 5px; }
@media (max-width: 560px) { .legal-card { padding: 20px 16px; } .legal-card h1 { font-size: 1.5rem; } }
.legal-card p { margin: 0 0 10px; }

/* Labor: Pet-Werkstatt */
.lab-section { grid-column: 1 / -1; margin: 18px 0 2px; padding: 14px 16px; border-radius: 14px;
  background: linear-gradient(120deg, rgba(255,79,216,.12), rgba(47,224,228,.08)); border: 1px solid rgba(255,79,216,.28); }
.lab-section h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.2rem; color: var(--text-bright); letter-spacing: .04em; }
.lab-section p { margin: 0; font-size: .85rem; color: var(--text-dim); }
.panel.lab-pet { border-color: rgba(255,79,216,.25); }
/* Planet aufwerten: immer sichtbar statt eingeklappt */
.lvl-box.open { margin-top: 12px; padding: 10px 12px; border: 1px solid rgba(52, 224, 127, .28); border-radius: 12px; background: rgba(52, 224, 127, .05); }
.lvl-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 4px 10px; font-size: .9rem; color: var(--text-bright); margin-bottom: 6px; }
.lvl-head span { flex-basis: 100%; color: var(--green); font-size: .78rem; }
.lvl-btns { display: flex; gap: 8px; margin-top: 8px; }
.lvl-btns .btn { flex: 1 1 0; width: auto; }
/* Ring-SVGs werden gedreht, damit der Fortschritt oben beginnt – die Icons darin nicht */
.act .ring svg.li, .arc-card svg.li, .pt-incub .ring svg.li, .ob-ring svg.li, .radar-ring svg.li { transform: none; }
.act .ring .glyph svg.li { width: 30px; height: 30px; }
.arc-card svg.li { flex: 0 0 auto; width: 1.4em; height: 1.4em; }
/* Zahl der bereiten Dinge an der Zentrale – immer sichtbar, gruen */
.rail-count.rail-ready { opacity: 1; background: rgba(62, 230, 142, .2); color: var(--green); }
.rail-count.rail-ready[hidden] { display: none !important; }
/* Anfaenger-Bonus in der Auftragsboerse */
.ct-beginner { display: flex; gap: 12px; align-items: center; margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(62,230,142,.45); background: linear-gradient(90deg, rgba(62,230,142,.12), rgba(47,224,228,.06)); }
.ct-beginner .ct-bg-ico { font-size: 1.8rem; line-height: 1; }
.ct-beginner b { display: block; color: var(--green); font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .03em; }
.ct-beginner small { color: var(--text); font-size: .82rem; }

/* ============================================ Dev-Panel: Statistik */
#dev-stats .panel-title small { font-family: var(--font-body); font-size: .72rem; color: var(--text-dim); letter-spacing: 0; text-transform: none; margin-left: 6px; }
.ds-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 16px; }
.ds-kpi { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.ds-kpi small { color: var(--text-dim); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.ds-kpi b { font-family: var(--font-display); font-size: 1.7rem; color: var(--text-bright); line-height: 1.1; }
.ds-kpi span { font-size: .72rem; color: var(--text-dim); }
.ds-kpi em { font-style: normal; } .ds-kpi em.up { color: var(--green); } .ds-kpi em.down { color: var(--red); }
.ds-kpi.live b { color: var(--green); } .ds-kpi.new b { color: var(--cyan); }
.ds-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; align-items: start; }
@media (max-width: 1000px) { .ds-grid2 { grid-template-columns: 1fr; } }
.ds-bars { display: flex; align-items: flex-end; gap: 2px; height: 170px; padding: 6px 0 18px; border-bottom: 1px solid var(--line); }
.ds-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; cursor: default; }
.ds-bar i { display: block; background: var(--cyan); opacity: .75; border-radius: 4px 4px 0 0; min-height: 0; transition: opacity .15s; }
.ds-bar.today i { opacity: 1; box-shadow: 0 0 10px rgba(47,224,228,.5); }
.ds-bar:hover i { opacity: 1; }
.ds-bar em { position: absolute; bottom: -17px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: .62rem; color: var(--text-dim); white-space: nowrap; }
.ds-heat { display: grid; grid-template-columns: 22px repeat(24, minmax(0, 1fr)); gap: 2px; font-size: .6rem; color: var(--text-dim); min-width: 0; }
.ds-heat > div { min-width: 0; overflow: hidden; }
#ds-body, .ds-grid2 > * { min-width: 0; }
.ds-ret { table-layout: fixed; }
@media (max-width: 520px) { .ds-heat { gap: 1px; } .ds-ret { font-size: .72rem; } .ds-ret th { font-size: .6rem; padding: 3px; } .ds-ret td { padding: 4px 2px; } }
.ds-hh { text-align: center; } .ds-hd { display: flex; align-items: center; }
.ds-hc { aspect-ratio: 1; border-radius: 3px; background: rgba(47,224,228, calc(.06 + var(--a) * .9)); }
.ds-hc:hover { outline: 1px solid #fff; }
.ds-note { font-size: .72rem; color: var(--text-dim); margin-top: 8px; }
.ds-exbtns { display: flex; flex-wrap: wrap; gap: 10px; }
.ds-exbtns .btn { width: auto; flex: 0 0 auto; margin: 0; padding: 10px 18px; }
.ds-exbtns .btn[disabled] { opacity: .6; cursor: wait; }
.ds-ret { width: 100%; border-collapse: separate; border-spacing: 2px; font-size: .82rem; }
.ds-ret th { color: var(--text-dim); font-weight: 500; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; text-align: left; padding: 4px 6px; }
.ds-ret td { padding: 6px; border-radius: 6px; background: rgba(255,255,255,.03); color: var(--text-bright); }
.ds-ret td[style] { background: rgba(62,230,142, calc(.08 + var(--p) / 100 * .6)); text-align: center; }
.ds-ret td.ds-na { color: var(--text-dim); text-align: center; }
.ds-top { display: grid; grid-template-columns: minmax(0, 1.3fr) 1fr 60px 50px; gap: 8px; align-items: center; font-size: .82rem; padding: 4px 0; }
.ds-top span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.ds-top i { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--cyan) var(--w), rgba(255,255,255,.06) var(--w)); }
.ds-top b { text-align: right; color: var(--text-bright); } .ds-top small { color: var(--text-dim); text-align: right; }
.ds-empty { color: var(--text-dim); font-size: .82rem; margin: 6px 0; }
.ds-feed { max-height: 520px; overflow: auto; display: flex; flex-direction: column; }
.ds-ev, .ds-res { display: grid; grid-template-columns: 44px 38px minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px; align-items: center; padding: 6px 4px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--text); font: inherit; font-size: .8rem; text-align: left; cursor: pointer; }
.ds-ev:hover, .ds-res:hover { background: rgba(47,224,228,.06); }
.ds-ev time, .ds-tle time { color: var(--text-dim); font-family: var(--font-mono); font-size: .74rem; }
.ds-ev b { color: var(--text-bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-ev > span:last-child { color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src { font-size: .6rem; font-weight: 700; padding: 1px 5px; border-radius: 5px; text-align: center; letter-spacing: .04em; }
.src.web { background: rgba(47,224,228,.16); color: var(--cyan); } .src.discord { background: rgba(88,101,242,.22); color: #aab3ff; }
.ds-live i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 5px; animation: gxPulse 1.8s infinite; }
#ds-q { width: 100%; margin: 4px 0 6px; }
.ds-res { grid-template-columns: 28px minmax(0, 1fr) auto; }
.ds-res img, .ds-ph img { width: 28px; height: 28px; border-radius: 50%; }
.ds-res small { color: var(--text-dim); font-size: .7rem; }
.ds-ph { display: flex; gap: 10px; align-items: center; margin: 12px 0 10px; }
.ds-ph img { width: 42px; height: 42px; } .ds-ph b { display: block; color: var(--text-bright); font-size: 1.1rem; } .ds-ph small { color: var(--text-dim); font-size: .72rem; }
.ds-pk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ds-pk .ds-kpi { padding: 7px 10px; } .ds-pk .ds-kpi b { font-size: 1.05rem; }
.ds-sub { font-family: var(--font-display); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin: 14px 0 6px; }
.ds-days { display: grid; grid-template-columns: repeat(30, 1fr); gap: 2px; }
.ds-days i, .ds-legend i { display: block; aspect-ratio: 1; border-radius: 3px; background: rgba(255,255,255,.05); }
.ds-days i.w, .ds-legend i.w { background: var(--cyan); } .ds-days i.d, .ds-legend i.d { background: #7c86ff; }
.ds-days i.b, .ds-legend i.b { background: var(--green); } .ds-days i.x, .ds-legend i.x { background: rgba(255,255,255,.35); }
.ds-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: .68rem; color: var(--text-dim); margin-top: 6px; }
.ds-legend span { display: flex; align-items: center; gap: 4px; } .ds-legend i { width: 10px; }
.ds-hours { display: flex; align-items: flex-end; gap: 2px; height: 60px; }
.ds-hours i { flex: 1; background: var(--cyan); opacity: .8; border-radius: 3px 3px 0 0; }
.ds-hl { display: flex; justify-content: space-between; font-size: .62rem; color: var(--text-dim); }
.ds-tl { max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 4px 8px; }
.ds-tld { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin: 10px 0 4px; }
.ds-tle { display: grid; grid-template-columns: 44px 38px 1fr; gap: 8px; align-items: center; font-size: .8rem; padding: 3px 0; color: var(--text); }
.ds-tle small { color: var(--text-dim); }
.ds-tip { position: fixed; z-index: 950; pointer-events: none; background: #0d1424; border: 1px solid var(--line-strong); border-radius: 8px; padding: 5px 9px; font-size: .74rem; color: var(--text-bright); box-shadow: 0 8px 20px rgba(0,0,0,.5); max-width: 280px; }
.ds-tip[hidden] { display: none; }
@media (max-width: 640px) { .ds-pk { grid-template-columns: 1fr 1fr; } .ds-ev { grid-template-columns: 40px 34px minmax(0, 1fr); } .ds-ev > span:last-child { grid-column: 3; } }

/* Frachtraum: Filter, Sperrliste, Verkauf unter X */
.inv-tools { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 10px; }
.inv-filter { margin: 0; }
.inv-sort { width: auto; padding: 7px 10px; font-size: .84rem; }
.inv-under { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; font-size: .84rem; color: var(--text-dim); padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); }
.inv-under .input { width: 130px; padding: 7px 10px; }
.inv-under small { flex-basis: 100%; font-size: .74rem; }
.slot { position: relative; }
.slot .val { position: absolute; top: 6px; right: 6px; font-size: .6rem; color: var(--gold); line-height: 1; background: rgba(0,0,0,.35); padding: 2px 4px; border-radius: 5px; }
.slot-lock { position: absolute; top: 4px; left: 4px; z-index: 2; width: 24px; height: 24px; border-radius: 7px; border: 0; background: rgba(0,0,0,.45); font-size: .78rem; line-height: 24px; padding: 0; cursor: pointer; opacity: .45; transition: opacity .15s; }
.slot:hover .slot-lock, .slot-lock.on { opacity: 1; }
.slot-lock.on { background: rgba(255,197,66,.22); box-shadow: 0 0 0 1px rgba(255,197,66,.5); }
.slot.user-locked { opacity: .8; }
.slot.user-locked::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(135deg, rgba(255,197,66,.06) 0 6px, transparent 6px 12px); pointer-events: none; }
@media (hover: none) { .slot-lock { opacity: .8; } }

/* Werft: Rendite + Bis Level X */
.wf-best { border-color: rgba(62,230,142,.5) !important; box-shadow: 0 0 22px rgba(62,230,142,.12); }
.wf-roi { margin-top: 10px; font-size: .74rem; color: var(--text-dim); padding: 7px 9px; border-radius: 9px; background: rgba(255,255,255,.03); border: 1px solid var(--line); line-height: 1.4; }
.wf-roi b { color: var(--text); }
.wf-roi.best { background: rgba(62,230,142,.08); border-color: rgba(62,230,142,.35); }
.wf-roi.best > b:first-child { display: block; color: var(--green); margin-bottom: 2px; }
.wf-to { margin-top: 10px; display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; font-size: .78rem; color: var(--text-dim); }
.wf-to label { display: flex; align-items: center; gap: 6px; }
.wf-to .input { width: 90px; padding: 6px 8px; font-size: .85rem; }
.wf-to small { grid-column: 1 / -1; font-size: .72rem; }
.wf-to small b { color: var(--gold); }

/* Spielerprofil */
.pp-chip.pp-link { cursor: pointer; border-radius: 999px; transition: background .15s; }
.pp-chip.pp-link:hover { background: rgba(47,224,228,.1); }
.pf { text-align: left; max-height: 80vh; overflow-y: auto; }
.pf-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.pf-head img, .pf-ini { width: 64px; height: 64px; border-radius: 50%; border: 2px solid rgba(47,224,228,.5); flex: none; }
.pf-ini { display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.8rem; background: rgba(47,224,228,.12); color: var(--cyan); }
.pf-head h2 { margin: 0; font-family: var(--font-display); color: var(--text-bright); }
.pf-head h2 small { font-size: .8rem; color: var(--text-dim); }
.pf-sub { color: var(--text); font-size: .86rem; } .pf-sub b { color: var(--violet); }
.pf-seen { color: var(--text-dim); font-size: .74rem; margin-top: 2px; }
.pf-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pf-badge { font-size: .72rem; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--c); color: var(--c); background: rgba(255,255,255,.03); }
.pf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pf-stats div { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.pf-stats span { font-size: 1.1rem; } .pf-stats small { color: var(--text-dim); font-size: .68rem; } .pf-stats b { color: var(--text-bright); font-size: .88rem; }
.pf-sec { font-family: var(--font-display); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-bright); margin: 16px 0 8px; }
.pf-sec small { color: var(--text-dim); letter-spacing: 0; text-transform: none; font-family: var(--font-body); margin-left: 6px; }
.pf-pets { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.pf-pet { display: flex; flex-direction: column; align-items: center; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.02); text-align: center; }
.pf-pet.on { border-color: rgba(47,224,228,.5); }
.pf-pa { width: 70px; height: 70px; } .pf-pa svg { width: 100%; height: 100%; }
.pf-pet b { font-size: .78rem; color: var(--text-bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pf-pet small { font-size: .66rem; }
.pf-ach { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-ach span { font-size: .76rem; padding: 4px 9px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent); color: var(--text); }
.pf-pls { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-pl { position: relative; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.pf-pl i { position: absolute; bottom: -4px; right: -4px; font-style: normal; font-size: .62rem; background: var(--bg-panel-2, #10172a); border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 4px; color: var(--text); }
.pf-guild { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); } .pf-guild b { display: block; color: var(--text-bright); } .pf-guild small { color: var(--text-dim); }
.pf-none { color: var(--text-dim); font-size: .8rem; margin: 0; }
@media (max-width: 520px) { .pf-stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Dev-Statistik: Wirtschaft & Spielstand (7.9.0) ---------- */
.ds-sect { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; font-family: var(--font-display); font-size: 1.15rem; color: var(--text-bright); }
.ds-sect span { font-size: 1.4rem; }
.ds-sect small { font-family: inherit; font-size: .72rem; color: var(--text-dim); letter-spacing: .08em; text-transform: uppercase; }
.ds-sect::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.ds-kpi.gold b { color: var(--gold); } .ds-kpi.warn b { color: #ffb86b; }
.ds-kpi { animation: dsIn .4s ease both; }
.ds-kpis .ds-kpi:nth-child(2) { animation-delay: .04s; } .ds-kpis .ds-kpi:nth-child(3) { animation-delay: .08s; } .ds-kpis .ds-kpi:nth-child(4) { animation-delay: .12s; }
.ds-kpis .ds-kpi:nth-child(5) { animation-delay: .16s; } .ds-kpis .ds-kpi:nth-child(6) { animation-delay: .2s; } .ds-kpis .ds-kpi:nth-child(n+7) { animation-delay: .24s; }
@keyframes dsIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ds-legend i.g { background: var(--green); } .ds-legend i.r { background: var(--red); }
.ds-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; align-items: start; }
.ds-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
@media (max-width: 1200px) { .ds-grid3 { grid-template-columns: 1fr 1fr; } .ds-grid4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .ds-grid3, .ds-grid4 { grid-template-columns: 1fr; } }

.ds-flow { position: relative; display: flex; align-items: stretch; gap: 3px; height: 180px; padding-bottom: 16px; }
.ds-flow::before { content: ''; position: absolute; left: 0; right: 0; top: calc(50% - 8px); height: 1px; background: rgba(255, 255, 255, .12); }
.ds-fcol { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; cursor: help; border-radius: 4px; }
.ds-fcol:hover { background: rgba(255, 255, 255, .04); }
.ds-fcol i { display: block; width: 70%; margin: 0 auto; transform-origin: bottom; animation: dsGrow .6s cubic-bezier(.2, 1.2, .4, 1) both; }
.ds-fcol i.up { margin-top: auto; border-radius: 4px 4px 0 0; background: linear-gradient(0deg, rgba(52, 224, 127, .5), #34e07f); }
.ds-fcol i.dn { margin-bottom: auto; border-radius: 0 0 4px 4px; background: linear-gradient(180deg, rgba(255, 77, 106, .5), #ff4d6a); transform-origin: top; }
.ds-fcol.today i { box-shadow: 0 0 12px -2px currentColor; }
.ds-fcol em { position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: .6rem; color: var(--text-dim); }
@keyframes dsGrow { from { transform: scaleY(0); } }

.ds-hb { display: grid; grid-template-columns: minmax(90px, 1fr) 1.3fr auto; gap: 8px; align-items: center; padding: 4px 0; font-size: .8rem; }
.ds-hb > span { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-hb > i { position: relative; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.ds-hb > i::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--c); box-shadow: 0 0 10px -2px var(--c); animation: dsBar .7s ease both; }
.ds-hb > b { color: var(--text-bright); font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.ds-hb > b small { color: var(--text-dim); font-weight: 400; }
@keyframes dsBar { from { width: 0; } }

.ds-dist { display: flex; align-items: flex-end; gap: 6px; height: 130px; padding-top: 16px; }
.ds-dist > div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; cursor: help; }
.ds-dist i { position: relative; display: block; width: 100%; border-radius: 6px 6px 2px 2px; background: linear-gradient(0deg, color-mix(in srgb, var(--c) 35%, transparent), var(--c)); transform-origin: bottom; animation: dsGrow .6s cubic-bezier(.2, 1.2, .4, 1) both; }
.ds-dist i b { position: absolute; top: -16px; left: 0; right: 0; text-align: center; font-size: .66rem; color: var(--text-bright); font-weight: 600; }
.ds-dist small { margin-top: 4px; font-size: .58rem; color: var(--text-dim); white-space: nowrap; }

.ds-rich { display: grid; gap: 4px; }
.ds-rich button { display: grid; grid-template-columns: 22px 26px 1fr auto auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 10px; border: 1px solid transparent; background: rgba(255, 255, 255, .02);
                  color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, transform .15s; }
.ds-rich button:hover { border-color: rgba(255, 77, 106, .45); transform: translateX(3px); }
.ds-rich em { font-style: normal; font-weight: 800; color: var(--text-dim); text-align: center; }
.ds-rich button:nth-child(1) em { color: #f5c542; } .ds-rich button:nth-child(2) em { color: #c0c8d8; } .ds-rich button:nth-child(3) em { color: #cd7f32; }
.ds-rich img, .ds-rich i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: rgba(255, 255, 255, .06); font-size: .75rem; }
.ds-rich b { color: var(--text-bright); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-rich small { color: var(--text-dim); font-size: .7rem; }
.ds-rich span { color: var(--gold); font-variant-numeric: tabular-nums; font-weight: 600; }
.ds-species { display: flex; flex-wrap: wrap; gap: 6px; }
.ds-species span { font-size: .76rem; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.ds-species b { color: var(--cyan); }
.ds-ph .ds-insp { margin-left: auto; }
@media (prefers-reduced-motion: reduce) { .ds-kpi, .ds-fcol i, .ds-hb > i::before, .ds-dist i { animation: none; } }

.wf-nano { margin-top: 8px; font-size: .78rem; color: #ff9aae; text-align: center; }
.wf-nano a { color: #9fe3ff; }

/* ---------------------------------------------------------- Dev-Panel: Verdachts-Radar */
#dev-cheat .ac-card { background: rgba(13,18,32,.85); border: 1px solid var(--line-strong); border-left: 4px solid #e8c547; border-radius: 12px; padding: 14px 16px; margin: 12px 0; }
#dev-cheat .ac-card.lv-mittel { border-left-color: #ff9a3c; }
#dev-cheat .ac-card.lv-stark { border-left-color: #ff4d6a; box-shadow: 0 0 0 1px rgba(255,77,106,.25), 0 8px 28px rgba(255,77,106,.08); }
#dev-cheat .ac-card.done { opacity: .55; }
#dev-cheat .ac-head { display: flex; align-items: center; gap: 12px; }
#dev-cheat .ac-head img, #dev-cheat .ac-av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; display: grid; place-items: center; background: #1b2236; font-weight: 700; }
#dev-cheat .ac-who { flex: 1; min-width: 0; }
#dev-cheat .ac-who b { display: block; }
#dev-cheat .ac-who small { color: var(--text-dim); }
#dev-cheat .ac-score { text-align: right; }
#dev-cheat .ac-score b { font-size: 1.5rem; display: block; line-height: 1; }
#dev-cheat .ac-score small { color: var(--text-dim); font-size: .68rem; }
#dev-cheat .ac-hits { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 6px; font-size: .86rem; }
#dev-cheat .ac-hits li { background: rgba(255,255,255,.03); border-radius: 8px; padding: 7px 10px; }
#dev-cheat .ac-hits em { color: var(--text-dim); font-style: normal; margin-left: 4px; }
#dev-cheat .ac-pair { margin: 0 0 10px; line-height: 1.55; font-size: .82rem; }
#dev-cheat .ac-ev { display: flex; gap: 6px; margin: 4px 0 8px; flex-wrap: wrap; }
#dev-cheat .ac-k { display: inline-block; min-width: 118px; color: var(--text-dim); font-size: .78rem; margin-right: 6px; }
#dev-cheat .ac-btns { display: flex; flex-wrap: wrap; gap: 8px; }
#dev-cheat .ac-btns .btn { width: auto; margin: 0; }
.dv-badge { position: absolute; top: 6px; right: 8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ff4d6a; color: #fff; font-size: .68rem; font-style: normal; font-weight: 700; display: grid; place-items: center; }
.dv-badge[hidden] { display: none; }
#dev-tabs .chip-toggle { position: relative; }
.rail-btn .cheat-dot { position: absolute; top: 8px; right: 12px; width: 9px; height: 9px; border-radius: 50%; background: #ff4d6a; box-shadow: 0 0 8px #ff4d6a; }
.rail-btn { position: relative; }

/* ---------------------------------------------------------- Regeln bestaetigen (js/regeln.js) */
html.rules-open, html.rules-open body { overflow: hidden; }
.rules-gate { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 16px;
    background: rgba(3, 5, 10, .86); backdrop-filter: blur(6px); transition: opacity .25s; }
.rules-gate.done { opacity: 0; }
.rules-box { width: min(760px, 100%); max-height: min(88vh, 900px); display: flex; flex-direction: column;
    background: linear-gradient(180deg, rgba(18, 24, 40, .98), rgba(9, 13, 22, .98)); border: 1px solid var(--line-strong);
    border-top: 3px solid var(--gold); border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); overflow: hidden; }
.rules-head { display: flex; gap: 16px; align-items: center; padding: 22px 26px 18px; border-bottom: 1px solid var(--line); }
.rules-seal { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem;
    border: 2px solid var(--gold); box-shadow: inset 0 0 0 4px rgba(245, 166, 35, .15); background: rgba(245, 166, 35, .06); }
.rules-head small { color: var(--gold); font-size: .74rem; letter-spacing: .08em; }
.rules-head h2 { margin: 2px 0 4px; font-family: var(--font-display); font-size: 1.45rem; color: var(--text-bright); }
.rules-head p { margin: 0; color: var(--text-dim); font-size: .86rem; }
.rules-body { overflow-y: auto; padding: 6px 26px 14px; counter-reset: none; }
.rules-body section { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.rules-body section:last-child { border-bottom: 0; }
.rules-body h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 1rem; color: var(--text-bright); }
.rules-body p { margin: 0; color: var(--text); font-size: .9rem; line-height: 1.6; }
.rules-body a { color: var(--cyan); }
.rules-foot { padding: 16px 26px 20px; border-top: 1px solid var(--line); background: rgba(4, 7, 13, .6); }
.rules-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 12px 14px; border-radius: 10px;
    border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .02); color: var(--text-bright); font-size: .92rem; line-height: 1.45; }
.rules-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--gold); cursor: pointer; }
.rules-check:has(input:checked) { border-color: var(--gold); background: rgba(245, 166, 35, .07); }
.rules-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.rules-actions a { color: var(--text-dim); font-size: .84rem; }
.rules-actions .btn { min-width: 160px; }
.rules-err { margin: 10px 0 0; color: var(--red); font-size: .86rem; }
@media (max-width: 560px) { .rules-head { padding: 18px 16px 14px; } .rules-body, .rules-foot { padding-left: 16px; padding-right: 16px; } .rules-seal { width: 44px; height: 44px; font-size: 1.3rem; } .rules-actions .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .rules-gate { transition: none; } }
#dev-cheat .ac-rules.ok { color: var(--green); }
#dev-cheat .ac-rules.skip { color: var(--gold); }
#dev-cheat .ac-rules.no { color: var(--red); }
#dev-cheat .ac-rulesum { margin-bottom: 12px; }
#dev-cheat .ac-skip { margin-top: 8px; font-size: .84rem; }
#dev-cheat .ac-skip ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }

/* ---------------------------------------------------------- Fair-Play-Strafe (devcheat.js) */
.pen-gate { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 16px; background: rgba(3, 5, 10, .8); backdrop-filter: blur(4px); }
.pen-box { width: min(720px, 100%); max-height: 90vh; display: flex; flex-direction: column; background: rgba(12, 16, 28, .98);
    border: 1px solid var(--line-strong); border-top: 3px solid var(--red); border-radius: 14px; overflow: hidden; }
.pen-box header, .pen-box footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.pen-box footer { border-bottom: 0; border-top: 1px solid var(--line); background: rgba(4, 7, 13, .6); }
.pen-box footer small { color: var(--text-dim); }
.pen-box h2 { margin: 0; font-family: var(--font-display); font-size: 1.2rem; color: var(--text-bright); }
.pen-body { overflow-y: auto; padding: 8px 20px 16px; font-size: .88rem; line-height: 1.55; }
.pen-body h3 { margin: 14px 0 4px; font-size: .92rem; color: var(--text-bright); }
.pen-body ul { margin: 0; padding-left: 18px; }
.pen-body small { color: var(--text-dim); }
.pen-body textarea { width: 100%; margin: 4px 0 6px; background: var(--bg-slot); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px; font: inherit; font-size: .84rem; resize: vertical; }
.pen-who { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.pen-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; cursor: pointer; }
.pen-check input { margin-top: 3px; accent-color: var(--red); }
.pen-check.strong { padding: 10px 12px; border: 1px solid rgba(255, 77, 106, .45); border-radius: 10px; background: rgba(255, 77, 106, .06); color: var(--text-bright); }
.pen-why { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.pen-why textarea { width: 100%; resize: vertical; min-height: 64px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border, rgba(255,255,255,.15)); background: rgba(0,0,0,.25); color: inherit; font: inherit; }
.pen-hint { margin: 6px 0 0; opacity: .8; }
.pen-warn { color: var(--gold); } .pen-done { color: var(--green); font-weight: 600; }
#dev-cheat .pen-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .84rem; }
#dev-cheat .pen-list li.on { color: var(--text-bright); }
