/* DEVMEMES – Retro-Terminal im Synthwave-Look.
   Bewusst ohne Flackern, Strobo oder Helligkeitssprünge: alles bewegt sich
   langsam und gleichmässig, und prefers-reduced-motion stellt es ganz ab. */

@font-face {
  font-family: "VT323";
  src: url("fonts/vt323.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Press Start 2P";
  src: url("fonts/press-start-2p.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg-top: #140a26;
  --bg-bottom: #2a0f3d;
  --fg: #ffb454;          /* Bernstein-Phosphor */
  --fg-dim: #b87a36;
  --accent: #ff4fa3;
  --accent-2: #3de0ff;
  --panel: rgba(12, 6, 24, 0.82);
  --glow: 0 0 6px rgba(255, 180, 84, 0.45);
  --sun-a: #ffd36e;
  --sun-b: #ff4fa3;
  --grid: rgba(255, 79, 163, 0.55);
  --radius: 6px;
}
:root[data-phosphor="green"] {
  --fg: #7dff9b;
  --fg-dim: #3fa35a;
  --glow: 0 0 6px rgba(125, 255, 155, 0.4);
}
:root[data-phosphor="cyan"] {
  --fg: #8feaff;
  --fg-dim: #4b9bb0;
  --glow: 0 0 6px rgba(143, 234, 255, 0.4);
}

* { box-sizing: border-box; }

html, body { height: 100%; }
html { overflow-x: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(var(--bg-top), var(--bg-bottom) 70%);
  color: var(--fg);
  font: 22px/1.35 "VT323", ui-monospace, Menlo, Consolas, monospace;
  /* Themenwechsel weich überblenden statt hart umschalten */
  transition: color 0.8s ease;
}

/* ---------- Hintergrund: Sterne, Sonne, Raster ---------- */

#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.horizon {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 42vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.sun {
  position: absolute;
  left: 50%;
  bottom: 38%;
  width: min(56vw, 300px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(var(--sun-a), var(--sun-b));
  opacity: 0.55;
  /* Horizontale Streifen, die langsam nach unten wandern */
  -webkit-mask: repeating-linear-gradient(to bottom, #000 0 14px, transparent 14px 18px);
          mask: repeating-linear-gradient(to bottom, #000 0 14px, transparent 14px 18px);
  -webkit-mask-size: 100% 36px;
          mask-size: 100% 36px;
  animation: sun-bands 9s linear infinite;
}
@keyframes sun-bands {
  to { -webkit-mask-position: 0 36px; mask-position: 0 36px; }
}

.grid {
  position: absolute;
  left: -50%; right: -50%;
  bottom: 0;
  height: 62%;
  background:
    linear-gradient(to top, transparent, var(--bg-bottom) 95%),
    repeating-linear-gradient(to right, var(--grid) 0 2px, transparent 2px 80px),
    repeating-linear-gradient(to bottom, var(--grid) 0 2px, transparent 2px 60px);
  background-size: 100% 100%, 100% 100%, 100% 60px;
  transform: perspective(300px) rotateX(62deg);
  transform-origin: bottom;
  animation: grid-roll 4s linear infinite;
}
@keyframes grid-roll {
  to { background-position: 0 0, 0 0, 0 60px; }
}

/* ---------- Inhalt ---------- */

.stage {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  padding: 7vh 16px 120px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.masthead { text-align: center; }

.logo {
  margin: 0;
  font: clamp(28px, 7vw, 64px)/1.1 "Press Start 2P", monospace;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #fff6d6 0%, var(--sun-a) 40%, var(--accent) 60%, #7a2cff 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  /* Dezenter, statischer Chrom-Schatten statt pulsierendem Leuchten */
  filter: drop-shadow(3px 3px 0 #2b0b4a) drop-shadow(0 0 10px rgba(255, 79, 163, 0.35));
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  50% { transform: translateY(-6px); }
}

.tagline {
  margin: 10px 0 0;
  color: var(--accent-2);
  font-size: 20px;
}

.terminal {
  background: var(--panel);
  border: 2px solid var(--fg-dim);
  border-radius: var(--radius);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.35), 0 18px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  transition: border-color 0.8s ease;
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-bottom: 2px solid var(--fg-dim);
  font-size: 18px;
  color: var(--fg-dim);
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--fg-dim);
}
.dot:nth-child(1) { background: var(--accent); }
.dot:nth-child(2) { background: var(--sun-a); }
.dot:nth-child(3) { background: var(--accent-2); }
.terminal__title { margin-left: auto; }

.terminal__body {
  padding: 18px 20px 22px;
  min-height: 230px;
  text-shadow: var(--glow);
}

.prompt { margin: 0 0 14px; color: var(--fg-dim); }
.ps1 { color: var(--accent-2); }

.quote { margin: 0; }
.quote p {
  display: inline;
  margin: 0;
  font-size: clamp(24px, 3.6vw, 34px);
  white-space: pre-wrap;
}
.quote footer {
  margin-top: 16px;
  color: var(--fg-dim);
  font-size: 20px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.quote footer.is-visible { opacity: 1; transform: none; }

/* Weich atmender Cursor statt hartem Blinken */
.cursor {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  margin-left: 4px;
  vertical-align: -0.12em;
  background: var(--fg);
  animation: breathe 1.8s ease-in-out infinite;
}
@keyframes breathe {
  50% { opacity: 0.35; }
}

/* ---------- Bedienelemente ---------- */

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  font: inherit;
  font-size: 22px;
  color: var(--fg);
  background: var(--panel);
  border: 2px solid var(--fg-dim);
  border-radius: var(--radius);
  padding: 6px 16px;
  cursor: pointer;
  box-shadow: 4px 4px 0 #0008;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.3s ease;
}
.btn:hover { border-color: var(--fg); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 #0008; }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #0008; }
.btn:focus-visible { outline: 2px dashed var(--accent-2); outline-offset: 3px; }
.btn--primary { border-color: var(--accent); color: #fff; background: #3a1240; }

kbd {
  font: inherit;
  font-size: 16px;
  color: var(--fg-dim);
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 0 4px;
  margin-left: 6px;
}

.filters {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.filters button {
  font: inherit;
  font-size: 19px;
  color: var(--fg-dim);
  background: var(--panel);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 2px 12px;
  cursor: pointer;
}
.filters button[aria-pressed="true"] { color: var(--bg-top); background: var(--accent-2); }
.filters button:hover { border-color: var(--accent-2); }
.filters button:focus-visible { outline: 2px dashed var(--accent-2); outline-offset: 2px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 6px 0 0;
  text-align: center;
}
.stats div {
  background: var(--panel);
  border: 1px dashed var(--fg-dim);
  border-radius: var(--radius);
  padding: 8px 4px;
}
.stats dt { font-size: 16px; color: var(--fg-dim); text-transform: uppercase; }
.stats dd { margin: 2px 0 0; font-size: 28px; }

/* ---------- Credits ---------- */

.credits {
  align-self: center;
  margin-top: 8px;
  padding: 8px 18px;
  text-align: center;
  font-size: 20px;
  color: var(--fg);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}
.credits p { margin: 2px 0; }
.credits a {
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
}
.credits a:hover { color: #fff; }
.credits a:focus-visible { outline: 2px dashed var(--accent-2); outline-offset: 3px; }
.heart {
  display: inline-block;
  color: var(--accent);
  animation: heartbeat 2.4s ease-in-out infinite;
}
/* Sanftes Schlagen über die Grösse, nicht über die Helligkeit */
@keyframes heartbeat {
  0%, 60%, 100% { transform: scale(1); }
  20% { transform: scale(1.18); }
  40% { transform: scale(1.05); }
}

/* ---------- Laufband unten ---------- */

.ticker {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  overflow: hidden;
  background: rgba(10, 4, 20, 0.88);
  border-top: 2px solid var(--accent);
  font-size: 20px;
  color: var(--accent-2);
  white-space: nowrap;
}
.ticker__track {
  display: inline-block;
  padding: 6px 0;
  animation: ticker 90s linear infinite;
}
.ticker__track span { margin: 0 2.5em; }
.ticker__track span::before { content: "\2605  "; color: var(--accent); }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Mauszeiger: Pixel-Pfeil und sanfte Pixel-Spur ---------- */

@media (pointer: fine) {
  html { cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' shape-rendering='crispEdges'><rect x='1' y='1' width='1' height='1' fill='%23140a26'/><rect x='1' y='2' width='1' height='1' fill='%23140a26'/><rect x='2' y='2' width='1' height='1' fill='%23140a26'/><rect x='1' y='3' width='1' height='1' fill='%23140a26'/><rect x='2' y='3' width='1' height='1' fill='%23ffd36e'/><rect x='3' y='3' width='1' height='1' fill='%23140a26'/><rect x='1' y='4' width='1' height='1' fill='%23140a26'/><rect x='2' y='4' width='1' height='1' fill='%23ffd36e'/><rect x='3' y='4' width='1' height='1' fill='%23ff4fa3'/><rect x='4' y='4' width='1' height='1' fill='%23140a26'/><rect x='1' y='5' width='1' height='1' fill='%23140a26'/><rect x='2' y='5' width='1' height='1' fill='%23ffd36e'/><rect x='3' y='5' width='1' height='1' fill='%23ff4fa3'/><rect x='4' y='5' width='1' height='1' fill='%23ff4fa3'/><rect x='5' y='5' width='1' height='1' fill='%23140a26'/><rect x='1' y='6' width='1' height='1' fill='%23140a26'/><rect x='2' y='6' width='1' height='1' fill='%23ffd36e'/><rect x='3' y='6' width='1' height='1' fill='%23ff4fa3'/><rect x='4' y='6' width='1' height='1' fill='%23ff4fa3'/><rect x='5' y='6' width='1' height='1' fill='%23ff4fa3'/><rect x='6' y='6' width='1' height='1' fill='%23140a26'/><rect x='1' y='7' width='1' height='1' fill='%23140a26'/><rect x='2' y='7' width='1' height='1' fill='%23ff4fa3'/><rect x='3' y='7' width='1' height='1' fill='%23ff4fa3'/><rect x='4' y='7' width='1' height='1' fill='%23ff4fa3'/><rect x='5' y='7' width='1' height='1' fill='%23ff4fa3'/><rect x='6' y='7' width='1' height='1' fill='%23ff4fa3'/><rect x='7' y='7' width='1' height='1' fill='%23140a26'/><rect x='1' y='8' width='1' height='1' fill='%23140a26'/><rect x='2' y='8' width='1' height='1' fill='%23ff4fa3'/><rect x='3' y='8' width='1' height='1' fill='%23ff4fa3'/><rect x='4' y='8' width='1' height='1' fill='%23ff4fa3'/><rect x='5' y='8' width='1' height='1' fill='%23ff4fa3'/><rect x='6' y='8' width='1' height='1' fill='%23ff4fa3'/><rect x='7' y='8' width='1' height='1' fill='%23ff4fa3'/><rect x='8' y='8' width='1' height='1' fill='%23140a26'/><rect x='1' y='9' width='1' height='1' fill='%23140a26'/><rect x='2' y='9' width='1' height='1' fill='%23ff4fa3'/><rect x='3' y='9' width='1' height='1' fill='%23ff4fa3'/><rect x='4' y='9' width='1' height='1' fill='%23ff4fa3'/><rect x='5' y='9' width='1' height='1' fill='%23ff4fa3'/><rect x='6' y='9' width='1' height='1' fill='%23ff4fa3'/><rect x='7' y='9' width='1' height='1' fill='%23ff4fa3'/><rect x='8' y='9' width='1' height='1' fill='%23ff4fa3'/><rect x='9' y='9' width='1' height='1' fill='%23140a26'/><rect x='1' y='10' width='1' height='1' fill='%23140a26'/><rect x='2' y='10' width='1' height='1' fill='%23ff4fa3'/><rect x='3' y='10' width='1' height='1' fill='%23ff4fa3'/><rect x='4' y='10' width='1' height='1' fill='%23ff4fa3'/><rect x='5' y='10' width='1' height='1' fill='%23ff4fa3'/><rect x='6' y='10' width='1' height='1' fill='%23ff4fa3'/><rect x='7' y='10' width='1' height='1' fill='%23ff4fa3'/><rect x='8' y='10' width='1' height='1' fill='%23ff4fa3'/><rect x='9' y='10' width='1' height='1' fill='%23ff4fa3'/><rect x='10' y='10' width='1' height='1' fill='%23140a26'/><rect x='1' y='11' width='1' height='1' fill='%23140a26'/><rect x='2' y='11' width='1' height='1' fill='%23ff4fa3'/><rect x='3' y='11' width='1' height='1' fill='%23ff4fa3'/><rect x='4' y='11' width='1' height='1' fill='%23ff4fa3'/><rect x='5' y='11' width='1' height='1' fill='%23ff4fa3'/><rect x='6' y='11' width='1' height='1' fill='%23ff4fa3'/><rect x='7' y='11' width='1' height='1' fill='%23ff4fa3'/><rect x='8' y='11' width='1' height='1' fill='%23ff4fa3'/><rect x='9' y='11' width='1' height='1' fill='%23ff4fa3'/><rect x='10' y='11' width='1' height='1' fill='%23ff4fa3'/><rect x='11' y='11' width='1' height='1' fill='%23140a26'/><rect x='1' y='12' width='1' height='1' fill='%23140a26'/><rect x='2' y='12' width='1' height='1' fill='%23ff4fa3'/><rect x='3' y='12' width='1' height='1' fill='%23ff4fa3'/><rect x='4' y='12' width='1' height='1' fill='%23ff4fa3'/><rect x='5' y='12' width='1' height='1' fill='%23ff4fa3'/><rect x='6' y='12' width='1' height='1' fill='%23ff4fa3'/><rect x='7' y='12' width='1' height='1' fill='%23ff4fa3'/><rect x='8' y='12' width='1' height='1' fill='%23140a26'/><rect x='9' y='12' width='1' height='1' fill='%23140a26'/><rect x='10' y='12' width='1' height='1' fill='%23140a26'/><rect x='11' y='12' width='1' height='1' fill='%23140a26'/><rect x='12' y='12' width='1' height='1' fill='%23140a26'/><rect x='1' y='13' width='1' height='1' fill='%23140a26'/><rect x='2' y='13' width='1' height='1' fill='%23ff4fa3'/><rect x='3' y='13' width='1' height='1' fill='%23ff4fa3'/><rect x='4' y='13' width='1' height='1' fill='%23ff4fa3'/><rect x='5' y='13' width='1' height='1' fill='%23140a26'/><rect x='6' y='13' width='1' height='1' fill='%23ff4fa3'/><rect x='7' y='13' width='1' height='1' fill='%23ff4fa3'/><rect x='8' y='13' width='1' height='1' fill='%23140a26'/><rect x='1' y='14' width='1' height='1' fill='%23140a26'/><rect x='2' y='14' width='1' height='1' fill='%23ff4fa3'/><rect x='3' y='14' width='1' height='1' fill='%23ff4fa3'/><rect x='4' y='14' width='1' height='1' fill='%23140a26'/><rect x='5' y='14' width='1' height='1' fill='%23140a26'/><rect x='6' y='14' width='1' height='1' fill='%23ff4fa3'/><rect x='7' y='14' width='1' height='1' fill='%23ff4fa3'/><rect x='8' y='14' width='1' height='1' fill='%23140a26'/><rect x='1' y='15' width='1' height='1' fill='%23140a26'/><rect x='2' y='15' width='1' height='1' fill='%23ff4fa3'/><rect x='3' y='15' width='1' height='1' fill='%23140a26'/><rect x='6' y='15' width='1' height='1' fill='%23140a26'/><rect x='7' y='15' width='1' height='1' fill='%23ff4fa3'/><rect x='8' y='15' width='1' height='1' fill='%23ff4fa3'/><rect x='9' y='15' width='1' height='1' fill='%23140a26'/><rect x='1' y='16' width='1' height='1' fill='%23140a26'/><rect x='2' y='16' width='1' height='1' fill='%23140a26'/><rect x='6' y='16' width='1' height='1' fill='%23140a26'/><rect x='7' y='16' width='1' height='1' fill='%23ff4fa3'/><rect x='8' y='16' width='1' height='1' fill='%23ff4fa3'/><rect x='9' y='16' width='1' height='1' fill='%23140a26'/><rect x='1' y='17' width='1' height='1' fill='%23140a26'/><rect x='7' y='17' width='1' height='1' fill='%23140a26'/><rect x='8' y='17' width='1' height='1' fill='%23ff4fa3'/><rect x='9' y='17' width='1' height='1' fill='%23ff4fa3'/><rect x='10' y='17' width='1' height='1' fill='%23140a26'/><rect x='7' y='18' width='1' height='1' fill='%23140a26'/><rect x='8' y='18' width='1' height='1' fill='%23ff4fa3'/><rect x='9' y='18' width='1' height='1' fill='%23ff4fa3'/><rect x='10' y='18' width='1' height='1' fill='%23140a26'/><rect x='8' y='19' width='1' height='1' fill='%23140a26'/><rect x='9' y='19' width='1' height='1' fill='%23140a26'/></svg>") 1 1, auto; }
  button, a { cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' shape-rendering='crispEdges'><rect x='1' y='1' width='1' height='1' fill='%23140a26'/><rect x='1' y='2' width='1' height='1' fill='%23140a26'/><rect x='2' y='2' width='1' height='1' fill='%23140a26'/><rect x='1' y='3' width='1' height='1' fill='%23140a26'/><rect x='2' y='3' width='1' height='1' fill='%23ffd36e'/><rect x='3' y='3' width='1' height='1' fill='%23140a26'/><rect x='1' y='4' width='1' height='1' fill='%23140a26'/><rect x='2' y='4' width='1' height='1' fill='%23ffd36e'/><rect x='3' y='4' width='1' height='1' fill='%23ff4fa3'/><rect x='4' y='4' width='1' height='1' fill='%23140a26'/><rect x='1' y='5' width='1' height='1' fill='%23140a26'/><rect x='2' y='5' width='1' height='1' fill='%23ffd36e'/><rect x='3' y='5' width='1' height='1' fill='%23ff4fa3'/><rect x='4' y='5' width='1' height='1' fill='%23ff4fa3'/><rect x='5' y='5' width='1' height='1' fill='%23140a26'/><rect x='1' y='6' width='1' height='1' fill='%23140a26'/><rect x='2' y='6' width='1' height='1' fill='%23ffd36e'/><rect x='3' y='6' width='1' height='1' fill='%23ff4fa3'/><rect x='4' y='6' width='1' height='1' fill='%23ff4fa3'/><rect x='5' y='6' width='1' height='1' fill='%23ff4fa3'/><rect x='6' y='6' width='1' height='1' fill='%23140a26'/><rect x='1' y='7' width='1' height='1' fill='%23140a26'/><rect x='2' y='7' width='1' height='1' fill='%23ff4fa3'/><rect x='3' y='7' width='1' height='1' fill='%23ff4fa3'/><rect x='4' y='7' width='1' height='1' fill='%23ff4fa3'/><rect x='5' y='7' width='1' height='1' fill='%23ff4fa3'/><rect x='6' y='7' width='1' height='1' fill='%23ff4fa3'/><rect x='7' y='7' width='1' height='1' fill='%23140a26'/><rect x='1' y='8' width='1' height='1' fill='%23140a26'/><rect x='2' y='8' width='1' height='1' fill='%23ff4fa3'/><rect x='3' y='8' width='1' height='1' fill='%23ff4fa3'/><rect x='4' y='8' width='1' height='1' fill='%23ff4fa3'/><rect x='5' y='8' width='1' height='1' fill='%23ff4fa3'/><rect x='6' y='8' width='1' height='1' fill='%23ff4fa3'/><rect x='7' y='8' width='1' height='1' fill='%23ff4fa3'/><rect x='8' y='8' width='1' height='1' fill='%23140a26'/><rect x='1' y='9' width='1' height='1' fill='%23140a26'/><rect x='2' y='9' width='1' height='1' fill='%23ff4fa3'/><rect x='3' y='9' width='1' height='1' fill='%23ff4fa3'/><rect x='4' y='9' width='1' height='1' fill='%23ff4fa3'/><rect x='5' y='9' width='1' height='1' fill='%23ff4fa3'/><rect x='6' y='9' width='1' height='1' fill='%23ff4fa3'/><rect x='7' y='9' width='1' height='1' fill='%23ff4fa3'/><rect x='8' y='9' width='1' height='1' fill='%23ff4fa3'/><rect x='9' y='9' width='1' height='1' fill='%23140a26'/><rect x='1' y='10' width='1' height='1' fill='%23140a26'/><rect x='2' y='10' width='1' height='1' fill='%23ff4fa3'/><rect x='3' y='10' width='1' height='1' fill='%23ff4fa3'/><rect x='4' y='10' width='1' height='1' fill='%23ff4fa3'/><rect x='5' y='10' width='1' height='1' fill='%23ff4fa3'/><rect x='6' y='10' width='1' height='1' fill='%23ff4fa3'/><rect x='7' y='10' width='1' height='1' fill='%23ff4fa3'/><rect x='8' y='10' width='1' height='1' fill='%23ff4fa3'/><rect x='9' y='10' width='1' height='1' fill='%23ff4fa3'/><rect x='10' y='10' width='1' height='1' fill='%23140a26'/><rect x='1' y='11' width='1' height='1' fill='%23140a26'/><rect x='2' y='11' width='1' height='1' fill='%23ff4fa3'/><rect x='3' y='11' width='1' height='1' fill='%23ff4fa3'/><rect x='4' y='11' width='1' height='1' fill='%23ff4fa3'/><rect x='5' y='11' width='1' height='1' fill='%23ff4fa3'/><rect x='6' y='11' width='1' height='1' fill='%23ff4fa3'/><rect x='7' y='11' width='1' height='1' fill='%23ff4fa3'/><rect x='8' y='11' width='1' height='1' fill='%23ff4fa3'/><rect x='9' y='11' width='1' height='1' fill='%23ff4fa3'/><rect x='10' y='11' width='1' height='1' fill='%23ff4fa3'/><rect x='11' y='11' width='1' height='1' fill='%23140a26'/><rect x='1' y='12' width='1' height='1' fill='%23140a26'/><rect x='2' y='12' width='1' height='1' fill='%23ff4fa3'/><rect x='3' y='12' width='1' height='1' fill='%23ff4fa3'/><rect x='4' y='12' width='1' height='1' fill='%23ff4fa3'/><rect x='5' y='12' width='1' height='1' fill='%23ff4fa3'/><rect x='6' y='12' width='1' height='1' fill='%23ff4fa3'/><rect x='7' y='12' width='1' height='1' fill='%23ff4fa3'/><rect x='8' y='12' width='1' height='1' fill='%23140a26'/><rect x='9' y='12' width='1' height='1' fill='%23140a26'/><rect x='10' y='12' width='1' height='1' fill='%23140a26'/><rect x='11' y='12' width='1' height='1' fill='%23140a26'/><rect x='12' y='12' width='1' height='1' fill='%23140a26'/><rect x='1' y='13' width='1' height='1' fill='%23140a26'/><rect x='2' y='13' width='1' height='1' fill='%23ff4fa3'/><rect x='3' y='13' width='1' height='1' fill='%23ff4fa3'/><rect x='4' y='13' width='1' height='1' fill='%23ff4fa3'/><rect x='5' y='13' width='1' height='1' fill='%23140a26'/><rect x='6' y='13' width='1' height='1' fill='%23ff4fa3'/><rect x='7' y='13' width='1' height='1' fill='%23ff4fa3'/><rect x='8' y='13' width='1' height='1' fill='%23140a26'/><rect x='1' y='14' width='1' height='1' fill='%23140a26'/><rect x='2' y='14' width='1' height='1' fill='%23ff4fa3'/><rect x='3' y='14' width='1' height='1' fill='%23ff4fa3'/><rect x='4' y='14' width='1' height='1' fill='%23140a26'/><rect x='5' y='14' width='1' height='1' fill='%23140a26'/><rect x='6' y='14' width='1' height='1' fill='%23ff4fa3'/><rect x='7' y='14' width='1' height='1' fill='%23ff4fa3'/><rect x='8' y='14' width='1' height='1' fill='%23140a26'/><rect x='1' y='15' width='1' height='1' fill='%23140a26'/><rect x='2' y='15' width='1' height='1' fill='%23ff4fa3'/><rect x='3' y='15' width='1' height='1' fill='%23140a26'/><rect x='6' y='15' width='1' height='1' fill='%23140a26'/><rect x='7' y='15' width='1' height='1' fill='%23ff4fa3'/><rect x='8' y='15' width='1' height='1' fill='%23ff4fa3'/><rect x='9' y='15' width='1' height='1' fill='%23140a26'/><rect x='1' y='16' width='1' height='1' fill='%23140a26'/><rect x='2' y='16' width='1' height='1' fill='%23140a26'/><rect x='6' y='16' width='1' height='1' fill='%23140a26'/><rect x='7' y='16' width='1' height='1' fill='%23ff4fa3'/><rect x='8' y='16' width='1' height='1' fill='%23ff4fa3'/><rect x='9' y='16' width='1' height='1' fill='%23140a26'/><rect x='1' y='17' width='1' height='1' fill='%23140a26'/><rect x='7' y='17' width='1' height='1' fill='%23140a26'/><rect x='8' y='17' width='1' height='1' fill='%23ff4fa3'/><rect x='9' y='17' width='1' height='1' fill='%23ff4fa3'/><rect x='10' y='17' width='1' height='1' fill='%23140a26'/><rect x='7' y='18' width='1' height='1' fill='%23140a26'/><rect x='8' y='18' width='1' height='1' fill='%23ff4fa3'/><rect x='9' y='18' width='1' height='1' fill='%23ff4fa3'/><rect x='10' y='18' width='1' height='1' fill='%23140a26'/><rect x='8' y='19' width='1' height='1' fill='%23140a26'/><rect x='9' y='19' width='1' height='1' fill='%23140a26'/></svg>") 1 1, pointer; }
}

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

/* ---------- CRT-Overlay: statisch, kein Flackern ---------- */

.crt {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 60px;
  z-index: 5;
  margin: 0;
  padding: 6px 14px;
  transform: translate(-50%, 10px);
  background: var(--panel);
  border: 2px solid var(--accent-2);
  border-radius: var(--radius);
  color: var(--accent-2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 560px) {
  body { font-size: 20px; }
  .terminal__body { padding: 14px; min-height: 260px; }
  .stats { gap: 6px; }
  .stats dt { font-size: 14px; }
  .stats dd { font-size: 22px; }
  .btn { font-size: 20px; padding: 6px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .ticker { display: none; }
}
