/* =========================================================================
   L.U.N.A. Web-Terminal - NovaCorp HUD
   Ein Designsystem statt verstreuter Inline-Styles.
   ========================================================================= */

:root {
  /* Flaechen */
  --bg-void:      #05070d;
  --bg-deep:      #080b14;
  --bg-panel:     rgba(15, 20, 33, 0.82);
  --bg-panel-2:   rgba(21, 28, 44, 0.9);
  --bg-slot:      rgba(4, 7, 13, 0.75);

  /* Linien */
  --line:         rgba(96, 140, 220, 0.18);
  --line-strong:  rgba(96, 140, 220, 0.38);

  /* Akzente */
  --cyan:         #2fe0e4;
  --cyan-dim:     #12898c;
  --gold:         #f5a623;
  --violet:       #a855f7;
  --red:          #ff4d6a;
  --green:        #34e07f;
  --blue:         #4a8dff;

  /* Text */
  --text:         #cdd7e8;
  --text-dim:     #7d8aa3;
  --text-bright:  #ffffff;

  /* Seltenheit */
  --r-junk:       #6b7688;
  --r-common:     #9aa7bd;
  --r-rare:       #3fa7ff;
  --r-epic:       #b478ff;
  --r-legendary:  #ffc542;

  /* Struktur */
  --hud-h:        64px;
  --rail-w:       76px;
  --rail-w-open:  228px;
  --radius:       10px;
  --cut:          14px;

  --font-display: 'Rajdhani', 'Segoe UI', sans-serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;
  --font-mono:    ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --ease:         cubic-bezier(0.22, 0.75, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--bg-void);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(47, 224, 228, 0.10), transparent 70%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(168, 85, 247, 0.07), transparent 70%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-scrollable { overflow: auto; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); }
::-webkit-scrollbar-thumb { background: rgba(96,140,220,0.25); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(96,140,220,0.45); }

/* ---------------------------------------------------------------- Sterne */
.starfield { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.starfield i {
  position: absolute; background: #fff; border-radius: 50%;
  animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.12; } to { opacity: 0.9; } }

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

/* =============================================================== HUD-Bar */
.hud {
  position: fixed; top: 0; left: 0; right: 0; height: var(--hud-h);
  display: flex; align-items: center; gap: 22px; padding: 0 22px;
  background: linear-gradient(180deg, rgba(8,11,20,0.97), rgba(8,11,20,0.86));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  z-index: 60;
}
.hud::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.5;
}

.hud-brand {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  letter-spacing: 5px; color: var(--text-bright);
  text-shadow: 0 0 18px rgba(47, 224, 228, 0.55);
  white-space: nowrap;
}
.hud-brand small {
  display: block; font-size: 0.55rem; letter-spacing: 3px;
  color: var(--cyan-dim); font-weight: 600; margin-top: -4px;
}

.hud-res { display: flex; gap: 10px; margin-left: auto; }

.res-pod {
  position: relative;
  display: flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 11px;
  background: var(--bg-slot);
  border: 1px solid var(--line);
  border-radius: 999px;
  min-width: 118px;
}
.res-pod .ico { font-size: 1.05rem; line-height: 1; filter: drop-shadow(0 0 6px currentColor); }
.res-pod .val {
  font-family: var(--font-display); font-weight: 700; font-size: 1.12rem;
  color: var(--text-bright); letter-spacing: 0.5px; font-variant-numeric: tabular-nums;
}
.res-pod.lc      { border-color: rgba(245,166,35,0.3); color: var(--gold); }
.res-pod.dust    { border-color: rgba(168,85,247,0.3); color: var(--violet); }
.res-pod.shield  { border-color: rgba(74,141,255,0.3); color: var(--blue); }
.res-pod.bump { animation: podBump 0.5s var(--ease); }
@keyframes podBump {
  0% { transform: scale(1); }
  35% { transform: scale(1.09); box-shadow: 0 0 22px currentColor; }
  100% { transform: scale(1); }
}

/* Aufsteigende +Betrag-Anzeige */
.float-gain {
  position: fixed; z-index: 90; pointer-events: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.9);
  animation: floatUp 1.5s var(--ease) forwards;
}
@keyframes floatUp {
  0%   { opacity: 0; transform: translateY(6px) scale(0.9); }
  18%  { opacity: 1; transform: translateY(-2px) scale(1.05); }
  100% { opacity: 0; transform: translateY(-46px) scale(1); }
}

.hud-user {
  display: flex; align-items: center; gap: 11px; padding-left: 18px;
  border-left: 1px solid var(--line);
}
.hud-user img { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line-strong); }
.hud-user .name { font-family: var(--font-display); font-weight: 600; color: var(--text-bright); line-height: 1.1; }
.hud-user .rank { font-size: 0.7rem; letter-spacing: 1.4px; color: var(--text-dim); text-transform: uppercase; }
.hud-user a { color: var(--text-dim); text-decoration: none; font-size: 1.15rem; padding: 4px 6px; border-radius: 6px; }
.hud-user a:hover { color: var(--red); background: rgba(255,77,106,0.1); }
.hud-icon { background: none; border: 0; cursor: pointer; color: var(--text-dim); font-size: 1.1rem; padding: 4px 6px; border-radius: 6px; line-height: 1; }
.hud-icon:hover { color: var(--cyan); background: rgba(47,224,228,0.1); }
.hud-icon[aria-pressed="true"] { color: var(--cyan); }
.hud-icon:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.p-badge {
  display: inline-block; padding: 1px 7px; border-radius: 4px;
  background: rgba(168,85,247,0.16); color: var(--violet);
  border: 1px solid rgba(168,85,247,0.4);
  font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; letter-spacing: 1px;
}

/* ============================================================ Icon-Rail */
.shell { display: flex; height: 100vh; padding-top: var(--hud-h); position: relative; z-index: 10; }

.rail {
  width: var(--rail-w); flex-shrink: 0;
  background: linear-gradient(180deg, rgba(6,9,16,0.95), rgba(6,9,16,0.8));
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 3px;
  padding: 14px 0; overflow-y: auto; overflow-x: hidden;
  transition: width 0.22s var(--ease);
  z-index: 40;
}
.rail:hover { width: var(--rail-w-open); }

.rail-group {
  font-size: 0.6rem; letter-spacing: 2px; color: var(--text-dim);
  text-transform: uppercase; padding: 14px 0 6px 26px; white-space: nowrap;
  opacity: 0; transition: opacity 0.18s;
}
.rail:hover .rail-group { opacity: 1; }
.rail-group:first-child { padding-top: 0; }

.rail-btn {
  display: flex; align-items: center; gap: 16px;
  height: 46px; padding: 0 0 0 25px; margin: 0 8px;
  border-radius: 8px; cursor: pointer; position: relative;
  color: var(--text-dim); white-space: nowrap; overflow: hidden;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s;
  background: none; width: calc(100% - 16px); text-align: left;
  font-family: inherit; font-size: inherit;
}
.rail-btn .ico { font-size: 1.24rem; flex-shrink: 0; margin-left: -1px; }
.rail-btn .label {
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; letter-spacing: 0.4px;
  opacity: 0; transition: opacity 0.18s;
}
.rail:hover .rail-btn .label { opacity: 1; }
.rail-btn:hover { background: rgba(47,224,228,0.07); color: var(--text); }
.rail-btn.active {
  background: linear-gradient(90deg, rgba(47,224,228,0.16), rgba(47,224,228,0.02));
  color: var(--cyan); border-color: rgba(47,224,228,0.25);
}
.rail-btn.active::before {
  content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px;
  background: var(--cyan); border-radius: 0 3px 3px 0; box-shadow: 0 0 10px var(--cyan);
}
.rail-btn.danger { color: var(--red); }
.rail-btn.danger:hover, .rail-btn.danger.active { background: rgba(255,77,106,0.1); border-color: rgba(255,77,106,0.3); color: var(--red); }

.rail-count {
  margin-left: auto; margin-right: 14px;
  background: rgba(47,224,228,0.16); color: var(--cyan);
  font-family: var(--font-display); font-weight: 700; font-size: 0.75rem;
  padding: 1px 7px; border-radius: 999px;
  opacity: 0; transition: opacity 0.18s;
}
.rail:hover .rail-count { opacity: 1; }

/* ============================================================== Inhalt */
.stage { flex: 1; overflow-y: auto; padding: 30px 38px 130px; position: relative; }

.page { display: none; animation: pageIn 0.3s var(--ease); }
.page.active { display: block; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* 7.9.0: Seitenwechsel mit Richtung, gestaffeltem Inhalt und Warp-Linie */
:root[data-pg-dir="down"] .page.active { animation: pageInDown .42s cubic-bezier(.2, .9, .25, 1); }
:root[data-pg-dir="up"] .page.active { animation: pageInUp .42s cubic-bezier(.2, .9, .25, 1); }
@keyframes pageInDown { from { opacity: 0; transform: translateY(26px) scale(.99); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes pageInUp { from { opacity: 0; transform: translateY(-26px) scale(.99); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.page.active.pg-enter > * { animation: pageChild .5s cubic-bezier(.2, .9, .25, 1) both; }
.page.pg-enter > *:nth-child(2) { animation-delay: .05s; } .page.pg-enter > *:nth-child(3) { animation-delay: .1s; }
.page.pg-enter > *:nth-child(4) { animation-delay: .15s; } .page.pg-enter > *:nth-child(n+5) { animation-delay: .2s; }
@keyframes pageChild { from { opacity: 0; transform: translateY(12px); } }
#pg-sweep { position: fixed; left: 0; right: 0; top: var(--hud-h, 64px); height: 2px; z-index: 60; pointer-events: none; opacity: 0;
            background: linear-gradient(90deg, transparent, var(--cyan) 40%, #fff 50%, var(--violet) 60%, transparent); background-size: 50% 100%; background-repeat: no-repeat; }
#pg-sweep.go { animation: pgSweep .55s cubic-bezier(.4, 0, .2, 1); }
@keyframes pgSweep { 0% { opacity: 1; background-position: -60% 0; } 80% { opacity: 1; } 100% { opacity: 0; background-position: 160% 0; } }
@media (prefers-reduced-motion: reduce) { .page.active, .page.pg-enter > *, #pg-sweep.go { animation: none !important; } }

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-bottom: 26px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.page-head h1 {
  font-family: var(--font-display); font-size: 2.05rem; font-weight: 700;
  color: var(--text-bright); letter-spacing: 1.5px; text-transform: uppercase; line-height: 1.1;
}
.page-head h1 .slash { color: var(--cyan); opacity: 0.55; margin-right: 8px; }
.page-head p { color: var(--text-dim); font-size: 0.92rem; margin-top: 3px; }

/* Banner fuer laufende Events */
.event-strip {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 9px; font-family: var(--font-display); font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase; font-size: 0.95rem;
  border-bottom: 1px solid var(--line);
}
.event-strip.global { background: linear-gradient(90deg, transparent, rgba(245,166,35,0.22), transparent); color: var(--gold); }
.event-strip.season { background: linear-gradient(90deg, transparent, rgba(168,85,247,0.22), transparent); color: var(--violet); }

/* =============================================================== Panels */
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.panel::before {
  content: ''; position: absolute; top: 0; left: var(--cut); right: 22px; height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent); opacity: 0.55;
}
.panel.accent-gold::before   { background: linear-gradient(90deg, var(--gold), transparent); }
.panel.accent-violet::before { background: linear-gradient(90deg, var(--violet), transparent); }
.panel.accent-red::before    { background: linear-gradient(90deg, var(--red), transparent); }
.panel.accent-red { border-color: rgba(255,77,106,0.3); }

.panel-title {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 14px; display: flex; align-items: center; gap: 9px;
}
.panel.accent-gold .panel-title   { color: var(--gold); }
.panel.accent-violet .panel-title { color: var(--violet); }
.panel.accent-red .panel-title    { color: var(--red); }

.grid { display: grid; gap: 20px; }
.grid.cols-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid.cols-wide { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.grid.cols-2    { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* ============================================================== Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  letter-spacing: 1.2px; text-transform: uppercase;
  padding: 11px 20px; border-radius: 7px; cursor: pointer;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(74,141,255,0.22), rgba(74,141,255,0.06));
  color: var(--text-bright);
  transition: transform 0.12s var(--ease), box-shadow 0.15s, background 0.15s;
  text-decoration: none; width: 100%;
}
.btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(74,141,255,0.3); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; filter: grayscale(0.6); }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.btn.green  { background: linear-gradient(180deg, rgba(52,224,127,0.25), rgba(52,224,127,0.06)); border-color: rgba(52,224,127,0.45); }
.btn.green:hover:not(:disabled)  { box-shadow: 0 6px 20px rgba(52,224,127,0.3); }
.btn.gold   { background: linear-gradient(180deg, rgba(245,166,35,0.25), rgba(245,166,35,0.06)); border-color: rgba(245,166,35,0.45); }
.btn.gold:hover:not(:disabled)   { box-shadow: 0 6px 20px rgba(245,166,35,0.3); }
.btn.red    { background: linear-gradient(180deg, rgba(255,77,106,0.25), rgba(255,77,106,0.06)); border-color: rgba(255,77,106,0.45); }
.btn.red:hover:not(:disabled)    { box-shadow: 0 6px 20px rgba(255,77,106,0.3); }
.btn.ghost  { background: transparent; border-color: var(--line); color: var(--text-dim); }
.btn.ghost:hover:not(:disabled)  { color: var(--text-bright); border-color: var(--line-strong); box-shadow: none; }
.btn.slim   { padding: 7px 14px; font-size: 0.85rem; width: auto; }

.input, .select {
  width: 100%; background: var(--bg-slot); border: 1px solid var(--line);
  color: var(--text-bright); padding: 11px 13px; border-radius: 7px;
  font-family: var(--font-display); font-size: 1.05rem;
}
.input:focus, .select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(47,224,228,0.12); }
.input::placeholder { color: var(--text-dim); }

/* ========================================================== Action-Bar */
.actionbar {
  position: fixed; bottom: 22px; left: calc(var(--rail-w) + 38px); right: 38px;
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  z-index: 50; pointer-events: none;
}
.actionbar .act { pointer-events: auto; }
/* Am PC lag die Leiste frei ueber dem Inhalt: zwischen und neben den Kacheln schien Text halb durch.
   Jetzt hat sie einen eigenen dunklen Streifen, und die Seite bekommt unten genug Platz zum Ausrollen. */
@media (min-width: 961px) and (hover: hover) {
  .actionbar {
    bottom: 0; padding: 26px 38px 18px;
    background: linear-gradient(180deg, rgba(5,7,13,0) 0%, rgba(5,7,13,0.88) 34%, rgba(5,7,13,0.97) 100%);
    backdrop-filter: blur(8px);
  }
  .stage { padding-bottom: 176px; }
}

.act {
  position: relative; width: 132px; padding: 14px 10px 12px;
  background: linear-gradient(180deg, rgba(17,23,37,0.96), rgba(9,13,22,0.96));
  border: 1px solid var(--line-strong); border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  cursor: pointer; color: var(--text);
  box-shadow: 0 10px 34px rgba(0,0,0,0.6);
  transition: transform 0.14s var(--ease), border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.act:hover:not(:disabled) { transform: translateY(-4px); border-color: var(--cyan); box-shadow: 0 14px 40px rgba(47,224,228,0.22); }
.act:disabled { cursor: not-allowed; opacity: 0.55; }
.act:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.act .ring { position: relative; width: 52px; height: 52px; }
.act .ring svg { width: 52px; height: 52px; transform: rotate(-90deg); }
.act .ring circle { fill: none; stroke-width: 3.5; }
.act .ring .track { stroke: rgba(255,255,255,0.08); }
.act .ring .prog  { stroke: var(--cyan); stroke-linecap: round; transition: stroke-dashoffset 0.5s linear; }
.act .ring .glyph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.act .txt { display: contents; }
.act .act-name {
  font-family: var(--font-display); font-weight: 700; font-size: 0.92rem;
  letter-spacing: 1.3px; text-transform: uppercase; color: var(--text-bright);
}
.act .act-state { font-size: 0.75rem; color: var(--text-dim); font-variant-numeric: tabular-nums; min-height: 1.1em; }
.act.ready .ring .prog { stroke: var(--green); }
.act.ready .act-state { color: var(--green); }
.act .key {
  position: absolute; top: 7px; right: 8px; font-size: 0.64rem; color: var(--text-dim);
  border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; font-family: var(--font-mono);
}

/* ============================================================ Inventar */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 11px; }

.slot {
  position: relative; aspect-ratio: 1; border-radius: 9px; cursor: pointer;
  background: var(--bg-slot); border: 2px solid var(--r-common);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  transition: transform 0.14s var(--ease), box-shadow 0.15s;
  padding: 6px; text-align: center;
}
.slot:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.65); z-index: 5; }
.slot .glyph { font-size: 1.9rem; line-height: 1; }
.slot .qty {
  position: absolute; right: 6px; bottom: 5px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  color: var(--text-bright); text-shadow: 0 1px 3px #000;
}
.slot .nm {
  font-size: 0.58rem; color: var(--text-dim); line-height: 1.15;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.slot.r-Junk       { border-color: var(--r-junk); }
.slot.r-Common     { border-color: var(--r-common); }
.slot.r-Rare       { border-color: var(--r-rare);      box-shadow: inset 0 0 14px rgba(63,167,255,0.18); }
.slot.r-Epic       { border-color: var(--r-epic);      box-shadow: inset 0 0 14px rgba(180,120,255,0.22); }
.slot.r-Legendary  { border-color: var(--r-legendary); box-shadow: inset 0 0 18px rgba(255,197,66,0.26); }
.slot.selected {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(47,224,228,0.35), 0 0 22px rgba(47,224,228,0.35);
  transform: translateY(-3px) scale(1.04);
}
.slot.locked { cursor: not-allowed; opacity: 0.75; }
.slot.locked::after {
  content: '\1F512'; position: absolute; top: 4px; left: 5px; font-size: 0.7rem; opacity: 0.85;
}
.slot.pop { animation: slotPop 0.45s var(--ease); }
@keyframes slotPop {
  0% { opacity: 0; transform: scale(0.5) rotate(-8deg); }
  60% { opacity: 1; transform: scale(1.12) rotate(2deg); }
  100% { transform: scale(1); }
}

.sell-bar {
  position: sticky; bottom: 0; margin-top: 18px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 18px; background: var(--bg-panel-2);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
.sell-bar .info { font-family: var(--font-display); font-size: 1.05rem; }
.sell-bar .info b { color: var(--gold); }
.sell-bar .btn { width: auto; }

/* ========================================================== Fortschritt */
.bar { height: 9px; background: rgba(0,0,0,0.55); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan-dim), var(--cyan)); transition: width 0.6s var(--ease); }
.bar.gold > i   { background: linear-gradient(90deg, #a86c10, var(--gold)); }
.bar.green > i  { background: linear-gradient(90deg, #17a256, var(--green)); }
.bar.violet > i { background: linear-gradient(90deg, #6d28a8, var(--violet)); }
.bar.red > i    { background: linear-gradient(90deg, #a01f37, var(--red)); }

.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 0.88rem; padding: 4px 0; }
.kv span:last-child { color: var(--text-bright); font-family: var(--font-mono); font-size: 0.85rem; }

.stat-tile {
  background: var(--bg-slot); border: 1px solid var(--line); border-radius: 9px;
  padding: 15px 17px;
}
.stat-tile .lbl { font-size: 0.68rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-dim); }
.stat-tile .val {
  font-family: var(--font-display); font-weight: 700; font-size: 1.65rem;
  color: var(--text-bright); line-height: 1.2; font-variant-numeric: tabular-nums;
}
.stat-tile .val.gold   { color: var(--gold); }
.stat-tile .val.violet { color: var(--violet); }
.stat-tile .val.cyan   { color: var(--cyan); }
.stat-tile .sub { font-size: 0.78rem; color: var(--text-dim); }

/* ============================================================= Planeten */
.planet {
  width: 128px; height: 128px; border-radius: 50%; margin: 6px auto 16px;
  position: relative; animation: spin 48s linear infinite;
}
.planet::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at 30% 28%, rgba(255,255,255,0.16) 0%, rgba(0,0,0,0.86) 78%);
  box-shadow: inset -10px -10px 22px rgba(0,0,0,0.92);
}
@keyframes spin { to { transform: rotate(360deg); } }
.planet-lvl {
  position: absolute; bottom: -2px; right: -2px; z-index: 3;
  background: rgba(0,0,0,0.85); border: 1px solid var(--cyan); color: var(--text-bright);
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem;
  padding: 1px 8px; border-radius: 999px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; position: absolute; top: 14px; right: 14px; }
.dot.on  { background: var(--green); box-shadow: 0 0 10px var(--green); }
.dot.off { background: var(--r-junk); }

/* ========================================================== Season-Pass */
.pass-track { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding: 8px 2px 18px; }
.pass-node {
  flex: 0 0 152px; background: var(--bg-slot); border: 1px solid var(--line);
  border-radius: 9px; padding: 13px 11px; text-align: center;
}
.pass-node .lv { font-family: var(--font-display); font-weight: 700; letter-spacing: 1.5px; color: var(--text-dim); font-size: 0.8rem; }
.pass-node .ic { font-size: 1.6rem; margin: 5px 0; }
.pass-node .rw { font-size: 0.76rem; color: var(--text); line-height: 1.35; min-height: 2.6em; }
.pass-node.ready { border-color: var(--green); box-shadow: 0 0 18px rgba(52,224,127,0.2); }
.pass-node.ready .lv { color: var(--green); }
.pass-node.done { opacity: 0.5; }
.pass-node.milestone { border-color: var(--gold); }
.pass-node.milestone .lv { color: var(--gold); }
.pass-link { flex: 0 0 18px; align-self: center; height: 3px; background: var(--line); }
.pass-link.on { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

/* ============================================================== Tabelle */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: 11px 13px; text-align: left; border-bottom: 1px solid var(--line); }
.tbl th {
  font-family: var(--font-display); font-size: 0.76rem; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--text-dim); font-weight: 600;
}
.tbl td { font-size: 0.9rem; }
.tbl tr:last-child td { border-bottom: none; }
.up { color: var(--green); } .down { color: var(--red); } .flat { color: var(--text-dim); }

/* =============================================================== Listen */
.row-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 13px; background: var(--bg-slot);
  border-left: 3px solid var(--line-strong); border-radius: 0 7px 7px 0;
  margin-bottom: 7px; font-size: 0.9rem;
}
.row-item.gold { border-left-color: var(--gold); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; background: var(--bg-slot); border: 1px solid var(--line);
  border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.notice {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 15px 18px; border-radius: 9px;
  background: rgba(74,141,255,0.07); border: 1px solid rgba(74,141,255,0.24);
  font-size: 0.9rem; line-height: 1.6;
}
.notice .ico { font-size: 1.3rem; line-height: 1.2; }
.notice.warn { background: rgba(245,166,35,0.07); border-color: rgba(245,166,35,0.28); }
.notice code {
  font-family: var(--font-mono); background: rgba(0,0,0,0.5); padding: 1px 6px;
  border-radius: 4px; color: var(--cyan); font-size: 0.86em;
}
.empty { text-align: center; color: var(--text-dim); padding: 46px 20px; font-size: 0.95rem; }
.empty .big { font-size: 2.6rem; display: block; margin-bottom: 10px; opacity: 0.5; }

/* Lade-Platzhalter (Skeletons): Form des Inhalts statt "Wird geladen..." */
.skel { display: block; position: relative; overflow: hidden; background: rgba(96, 140, 220, 0.07); border-radius: 6px; }
.skel::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(47, 224, 228, 0.09), transparent);
  animation: skelSweep 1.5s ease-in-out infinite;
}
@keyframes skelSweep { to { transform: translateX(100%); } }
.skel-card {
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; min-height: 150px; display: flex; flex-direction: column; gap: 12px;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.skel-line { display: block; height: 11px; width: 100%; border-radius: 6px; background: rgba(96, 140, 220, 0.13); }
.skel-line.h { height: 17px; margin-bottom: 4px; background: rgba(96, 140, 220, 0.2); }
.skel-line.w40 { width: 40%; } .skel-line.w60 { width: 60%; } .skel-line.w80 { width: 80%; }
.skel-rows { display: grid; gap: 10px; padding: 6px 0; }
.skel-row { height: 48px; border-radius: 8px; border: 1px solid var(--line); }
.skel-row:nth-child(2) { opacity: .75; } .skel-row:nth-child(3) { opacity: .5; }
.skel-inline { display: inline-block; width: 9em; max-width: 100%; height: 0.95em; vertical-align: middle; border-radius: 4px; background: rgba(96, 140, 220, 0.13); }
.skel-host.in-grid { display: contents; }
.skel-host.in-grid .skel-card:nth-child(2) { opacity: .75; } .skel-host.in-grid .skel-card:nth-child(3) { opacity: .5; }
.pg-skel { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; animation: skelIn .25s ease both; }
.pg-skel .skel-card:nth-child(2) { opacity: .75; } .pg-skel .skel-card:nth-child(3) { opacity: .5; }
@keyframes skelIn { from { opacity: 0; } }
@media (max-width: 640px) {
  .pg-skel { grid-template-columns: 1fr; gap: 14px; }
  .pg-skel .skel-card:nth-child(3) { display: none; }
}

/* ================================================================ Modal */
.overlay {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(2,4,8,0.82); backdrop-filter: blur(9px);
}
.overlay.open { display: flex; animation: fadeIn 0.2s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  width: 100%; max-width: 560px; max-height: 86vh; overflow-y: auto;
  background: linear-gradient(180deg, rgba(18,24,39,0.99), rgba(10,14,24,0.99));
  border: 1px solid var(--line-strong); border-radius: 14px; padding: 28px;
  box-shadow: 0 28px 70px rgba(0,0,0,0.8);
  animation: modalIn 0.25s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }
.modal h2 {
  font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 1.2px;
  color: var(--text-bright); text-transform: uppercase; margin-bottom: 6px;
}
.modal .sub { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 11px; margin-top: 22px; flex-wrap: wrap; }
.modal-actions .btn { flex: 1; min-width: 140px; }

/* Minispiel */
.mini { text-align: center; }
.mini-hint {
  background: var(--bg-slot); border: 1px solid var(--line); border-left: 3px solid var(--cyan);
  border-radius: 0 8px 8px 0; padding: 13px 16px; text-align: left;
  font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.6; margin-bottom: 18px;
}
.mini-choices { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.mini-choice {
  width: 88px; height: 88px; font-size: 2.3rem; cursor: pointer;
  background: var(--bg-slot); border: 2px solid var(--line-strong); border-radius: 11px;
  transition: transform 0.12s var(--ease), border-color 0.15s;
}
.mini-choice:hover { transform: translateY(-4px); border-color: var(--cyan); }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 8px; margin: 16px 0; }
.mini-grid span {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; background: var(--bg-slot); border: 1px solid var(--line); border-radius: 7px;
}
.mini-timer { height: 5px; background: rgba(0,0,0,0.6); border-radius: 999px; overflow: hidden; margin-bottom: 16px; }
.mini-timer > i { display: block; height: 100%; background: var(--cyan); width: 100%; }
.mini-temp {
  font-family: var(--font-display); font-size: 3.2rem; font-weight: 700;
  color: var(--green); font-variant-numeric: tabular-nums; margin: 6px 0;
}
.mini-temp.hot { color: var(--gold); }
.mini-temp.crit { color: var(--red); animation: pulse 0.4s infinite alternate; }
@keyframes pulse { to { transform: scale(1.06); } }
.mini-code {
  font-family: var(--font-mono); font-size: 3rem; letter-spacing: 12px;
  color: var(--cyan); text-shadow: 0 0 22px rgba(47,224,228,0.6); margin: 14px 0;
}

/* =============================================================== Toasts */
.toasts {
  position: fixed; top: calc(var(--hud-h) + 16px); right: 20px;
  display: flex; flex-direction: column; gap: 10px; z-index: 120;
  max-width: min(380px, calc(100vw - 40px)); pointer-events: none;
}
.toast {
  display: flex; gap: 11px; align-items: flex-start;
  background: linear-gradient(180deg, rgba(18,24,39,0.98), rgba(10,14,24,0.98));
  border: 1px solid var(--line-strong); border-left: 3px solid var(--cyan);
  border-radius: 9px; padding: 13px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
  animation: toastIn 0.3s var(--ease); pointer-events: auto; font-size: 0.89rem;
}
.toast.out { animation: toastOut 0.3s var(--ease) forwards; }
.toast.ok   { border-left-color: var(--green); }
.toast.bad  { border-left-color: var(--red); }
.toast.warn { border-left-color: var(--gold); }
.toast .ico { font-size: 1.15rem; line-height: 1.3; }
.toast b { color: var(--text-bright); display: block; font-family: var(--font-display); letter-spacing: 0.5px; }
@keyframes toastIn  { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }

/* ================================================================= Wiki */
.wiki { display: grid; grid-template-columns: 230px 1fr; gap: 22px; align-items: start; }
.wiki-nav { display: flex; flex-direction: column; gap: 6px; }
.wiki-nav button {
  text-align: left; padding: 11px 14px; border-radius: 8px; cursor: pointer;
  background: var(--bg-slot); border: 1px solid var(--line); color: var(--text-dim);
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.4px;
}
.wiki-nav button:hover { color: var(--text); border-color: var(--line-strong); }
.wiki-nav button.active { background: rgba(47,224,228,0.1); border-color: rgba(47,224,228,0.35); color: var(--cyan); }
.wiki-sec { display: none; }
.wiki-sec.active { display: block; }
.wiki-entry { padding: 15px 0; border-bottom: 1px solid var(--line); }
.wiki-entry:last-child { border-bottom: none; }
.wiki-entry h4 { font-family: var(--font-display); font-size: 1.1rem; color: var(--text-bright); margin-bottom: 6px; letter-spacing: 0.6px; }
.wiki-entry p { font-size: 0.88rem; color: var(--text-dim); line-height: 1.7; }

/* ================================================================ Mobil */
@media (max-width: 900px) {
  :root { --hud-h: 56px; }
  .hud { padding: 0 12px; gap: 10px; }
  .hud-brand { font-size: 1.15rem; letter-spacing: 2px; }
  .hud-brand small { display: none; }
  .hud-res { gap: 5px; margin-left: auto; min-width: 0; flex: 1 1 auto; justify-content: flex-end; }
  .res-pod { min-width: 0; padding: 4px 8px 4px 7px; gap: 5px; }
  .res-pod .ico { font-size: 0.8rem; }
  .res-pod .val { font-size: 0.8rem; white-space: nowrap; }
  .res-pod.shield { display: none; }
  .hud-user { padding-left: 8px; }
  .hud-user .meta { display: none; }

  .shell { display: block; height: auto; padding-bottom: 168px; }
  .rail {
    position: fixed; bottom: 0; left: 0; right: 0; top: auto;
    width: 100%; height: 66px; flex-direction: row; gap: 0;
    padding: 6px 4px; border-right: none; border-top: 1px solid var(--line-strong);
    overflow-x: auto; overflow-y: hidden;
    /* Vorher halbtransparent - der Seiteninhalt schimmerte durch die Leiste. */
    background: rgba(5, 7, 13, 0.97);
    backdrop-filter: blur(14px);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.7);
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    height: calc(66px + env(safe-area-inset-bottom));
  }
  .rail:hover { width: 100%; }
  .rail-group { display: none; }
  .rail-btn {
    flex-direction: column; gap: 3px; height: 54px; width: auto; min-width: 66px;
    padding: 5px 4px; margin: 0; justify-content: center; flex-shrink: 0;
  }
  .rail-btn .ico { font-size: 1.2rem; margin: 0; }
  .rail-btn .label { opacity: 1; font-size: 0.6rem; letter-spacing: 0; }
  .rail-btn.active::before { top: auto; bottom: 0; left: 14px; right: 14px; width: auto; height: 3px; border-radius: 3px 3px 0 0; }
  .rail-count { display: none; }

  .stage { padding: 18px 16px 24px; overflow: visible; }
  .page-head h1 { font-size: 1.5rem; }
  /* Die Aktionsleiste bleibt auch mobil griffbereit - vorher rutschte sie als
     statisches Element ans Ende der Seite, also unter allen Inhalt. */
  .actionbar {
    left: 0; right: 0; bottom: calc(66px + env(safe-area-inset-bottom));
    justify-content: stretch; flex-wrap: nowrap; gap: 6px;
    padding: 8px 8px 10px;
    /* Eigener Untergrund: sonst scheint der Seiteninhalt zwischen den Kacheln durch. */
    background: linear-gradient(180deg, rgba(5,7,13,0) 0%, rgba(5,7,13,0.92) 32%, rgba(5,7,13,0.98) 100%);
    backdrop-filter: blur(10px);
    pointer-events: auto;
  }
  .actionbar.hidden { display: none; }
  .act {
    width: auto; flex: 1 1 0; min-width: 0; max-width: none; overflow: hidden;
    flex-direction: row; gap: 9px; padding: 8px 9px; justify-content: flex-start;
    background: #0d1220;            /* deckend, kein Durchscheinen */
    box-shadow: 0 6px 18px rgba(0,0,0,0.55);
  }
  .act .ring, .act .ring svg { width: 34px; height: 34px; flex-shrink: 0; }
  .act .ring .glyph { font-size: 1.05rem; }
  .act .key { display: none; }
  .act .act-name {
    font-size: 0.64rem; letter-spacing: 0; max-width: 100%;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .act .act-state { font-size: 0.63rem; white-space: nowrap; }
  .act .txt { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; overflow: hidden; }
  .grid { gap: 12px; }
  .grid.cols-auto { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .grid.cols-2, .grid.cols-wide { grid-template-columns: 1fr; }
  .stat-tile { padding: 12px 13px; }
  .stat-tile .val { font-size: 1.3rem; }
  .wiki { grid-template-columns: 1fr; }
  .wiki-nav { flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .wiki-nav button { flex-shrink: 0; }
  .toasts { top: auto; bottom: 80px; right: 12px; left: 12px; max-width: none; }
  .slot-grid { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
  .modal { padding: 20px; }
}

/* Kopfleiste auf dem Handy: das Avatarbild ist dort ohnehin ohne Namen,
   der Platz gehoert den Ressourcen. */
@media (max-width: 640px) {
  .hud-user img { display: none; }
  .hud-user { gap: 2px; padding-left: 6px; }
  .hud-user a, .hud-icon { padding: 4px 4px; font-size: 1rem; }
  .res-pod .val { overflow: hidden; text-overflow: ellipsis; max-width: 30vw; }
}

@media (max-width: 480px) {
  .hud-brand { font-size: 0; letter-spacing: 0; }
  .hud-brand::before { content: '\1F319'; font-size: 1.4rem; letter-spacing: normal; }
  .stage { padding-left: 12px; padding-right: 12px; }
}

body.is-scrollable { overflow-y: auto; }
@media (max-width: 900px) { body { overflow: auto; } }

/* ============================================================= Landing */
.landing { max-width: 1120px; margin: 0 auto; padding: 72px 22px 60px; position: relative; z-index: 5; }
.hero { text-align: center; margin-bottom: 78px; }
.hero-logo {
  font-family: var(--font-display); font-size: clamp(3.4rem, 13vw, 7rem); font-weight: 700;
  letter-spacing: clamp(6px, 3vw, 18px); color: var(--text-bright); line-height: 1;
  text-shadow: 0 0 46px rgba(47,224,228,0.55), 0 4px 4px rgba(0,0,0,0.8);
}
.hero-sub {
  font-family: var(--font-display); font-size: clamp(0.85rem, 2.4vw, 1.2rem); font-weight: 600;
  letter-spacing: clamp(3px, 1.4vw, 7px); text-transform: uppercase; color: var(--cyan); margin-top: 8px;
}
.hero-lead { max-width: 620px; margin: 30px auto 0; color: var(--text-dim); font-size: 1.05rem; line-height: 1.75; }
.btn-play {
  margin-top: 36px; padding: 17px 46px; border-radius: 9px; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem;
  letter-spacing: 3px; text-transform: uppercase; color: #04121a;
  background: linear-gradient(135deg, var(--cyan), #3fa7ff);
  border: none; box-shadow: 0 12px 34px rgba(47,224,228,0.35);
  transition: transform 0.16s var(--ease), box-shadow 0.16s;
}
.btn-play:hover { transform: translateY(-4px); box-shadow: 0 18px 46px rgba(47,224,228,0.5); }
.btn-play:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hero-note { margin-top: 16px; color: var(--text-dim); font-size: 0.85rem; letter-spacing: 0.4px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.feature-grid .panel { transition: transform 0.2s var(--ease), border-color 0.2s; }
.feature-grid .panel:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.feature-grid .f-ico { font-size: 2.6rem; margin-bottom: 12px; }
.feature-grid h3 {
  font-family: var(--font-display); font-size: 1.4rem; color: var(--text-bright);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
}
.feature-grid p { color: var(--text-dim); font-size: 0.92rem; line-height: 1.65; }

.landing-foot {
  margin-top: 62px; padding-top: 26px; border-top: 1px solid var(--line);
  text-align: center; color: var(--text-dim); font-size: 0.8rem;
  letter-spacing: 2px; text-transform: uppercase;
}
.hidden { display: none !important; }

/* ======================================================= Planeten (neu) */
.planet-svg { display: block; margin: 0 auto; overflow: visible; }
.planet-spin      { transform-origin: 50px 50px; animation: pSpin 54s linear infinite; }
.planet-spin-slow { transform-origin: 50px 50px; animation: pSpin 120s linear infinite; }
.planet-clouds    { transform-origin: 50px 50px; animation: pSpin 34s linear infinite; }
@keyframes pSpin { to { transform: rotate(360deg); } }

.colony-bar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  padding: 13px 16px; margin-bottom: 20px;
  background: var(--bg-panel-2); border: 1px solid var(--line); border-radius: var(--radius);
}
.colony-bar .stat { display: flex; flex-direction: column; min-width: 86px; }
.colony-bar .stat b { font-family: var(--font-display); font-size: 1.2rem; color: var(--text-bright); line-height: 1.15; }
.colony-bar .stat span { font-size: 0.66rem; letter-spacing: 1.3px; text-transform: uppercase; color: var(--text-dim); }
.colony-bar .spacer { flex: 1; }
.colony-bar .stat.warn b { color: var(--red); }
.colony-bar .stat.good b { color: var(--green); }

.colony-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.colony-tools .select { width: auto; padding: 8px 12px; font-size: 0.92rem; }
.chip-toggle {
  padding: 7px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  background: var(--bg-slot); border: 1px solid var(--line); color: var(--text-dim);
  font-family: var(--font-display); font-weight: 600; font-size: 0.86rem;
}
.chip-toggle:hover { border-color: var(--line-strong); color: var(--text); }
.chip-toggle.on { background: rgba(47,224,228,0.14); border-color: var(--cyan); color: var(--cyan); }

.pcard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 18px; }

.planet-card { position: relative; overflow: hidden; }
.planet-card.is-full   { border-color: rgba(255,77,106,0.45); }
.planet-card.is-ready  { border-color: rgba(52,224,127,0.4); }
.planet-card .rar {
  position: absolute; top: 14px; left: 16px; font-size: 0.78rem; letter-spacing: 1px;
}
.planet-card .stage-tag {
  position: absolute; top: 12px; right: 14px;
  font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 1.4px;
  color: var(--cyan); border: 1px solid rgba(47,224,228,0.35); border-radius: 999px; padding: 2px 9px;
}
.planet-card h3 {
  font-family: var(--font-display); font-size: 1.25rem; color: var(--text-bright);
  text-align: center; margin-top: 8px; line-height: 1.25;
}
.planet-card .lvl-line { text-align: center; font-size: 0.8rem; color: var(--text-dim); margin-bottom: 12px; }
.planet-card .yield-list { margin: 10px 0 6px; }
.planet-card .yield-list .kv { padding: 3px 0; font-size: 0.84rem; }
.silo-line { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-dim); margin: 8px 0 5px; }
.silo-line b { color: var(--text-bright); }
.build-timer {
  font-family: var(--font-mono); font-size: 1.05rem; color: var(--gold);
  text-align: center; padding: 8px 0;
}

/* ==================================================== Expeditions-Flug */
.flight {
  position: relative; height: 260px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, #05070d 0%, #0a1020 55%, #05070d 100%);
  border: 1px solid var(--line);
}
.flight-stars { position: absolute; inset: 0; }
.flight-stars i {
  position: absolute; background: #fff; border-radius: 50%; opacity: 0.7;
  animation: warpStreak linear infinite;
}
@keyframes warpStreak {
  from { transform: translateX(0); opacity: 0; }
  10%  { opacity: 0.9; }
  to   { transform: translateX(-120vw); opacity: 0; }
}

.flight-lane {
  position: absolute; left: 7%; right: 7%; top: 50%; height: 2px;
  background: linear-gradient(90deg, var(--cyan-dim), rgba(47,224,228,0.15) 50%, var(--gold));
  transform: translateY(-50%);
}
.flight-lane::before, .flight-lane::after {
  content: ''; position: absolute; top: 50%; width: 13px; height: 13px;
  border-radius: 50%; transform: translateY(-50%);
}
.flight-lane::before { left: -6px;  background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.flight-lane::after  { right: -6px; background: var(--gold); box-shadow: 0 0 14px var(--gold); }

.flight-progress {
  position: absolute; left: 7%; top: 50%; height: 3px;
  background: var(--cyan); box-shadow: 0 0 12px var(--cyan);
  transform: translateY(-50%); transition: width 1s linear;
}

.fleet {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  font-size: 2rem; transition: left 1s linear; z-index: 3;
  filter: drop-shadow(0 0 12px rgba(47,224,228,0.6));
}
.fleet .escort { position: absolute; font-size: 0.95rem; opacity: 0.75; }
.fleet .escort.a { top: -20px; left: -16px; animation: bob 3.2s ease-in-out infinite; }
.fleet .escort.b { top: 18px;  left: -22px; animation: bob 4.1s ease-in-out infinite reverse; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.fleet-trail {
  position: absolute; top: 50%; height: 3px; transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, rgba(47,224,228,0.65));
  transition: width 1s linear, left 1s linear; z-index: 2;
}

.flight-endpoint {
  position: absolute; top: calc(50% + 24px); font-size: 0.7rem;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-dim);
}
.flight-endpoint.start { left: 7%; transform: translateX(-50%); }
.flight-endpoint.end   { right: 7%; transform: translateX(50%); }

.flight-hud {
  position: absolute; top: 16px; left: 0; right: 0; text-align: center; z-index: 4;
}
.flight-hud .route {
  font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-bright);
}
.flight-hud .eta {
  font-family: var(--font-display); font-size: 2.5rem; 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.45);
}
.flight-hud .pct { font-size: 0.78rem; color: var(--text-dim); }
.flight.arrived .fleet { animation: arrive 1.4s var(--ease) infinite alternate; }
@keyframes arrive { to { transform: translate(-50%, -50%) scale(1.14); } }
.flight.arrived .flight-hud .eta { color: var(--green); text-shadow: 0 0 22px rgba(52,224,127,0.5); }

.route-card { cursor: pointer; text-align: left; width: 100%; font-family: inherit; color: var(--text); }
.route-card:hover { border-color: var(--cyan); }
.route-card .rt-name { font-family: var(--font-display); font-size: 1.15rem; color: var(--text-bright); letter-spacing: 0.6px; }
.route-card .rt-time { color: var(--cyan); font-family: var(--font-display); font-size: 0.9rem; letter-spacing: 1px; }
