/* Ghost Train Suplex — gemeinsames Stylesheet fuer alle vier Seiten.
   Nur visuelles Grundgeruest, keine Inhalte. */

@font-face {
  font-family: "VCR OSD Mono";
  src: url("assets/fonts/VCR_OSD_MONO_1.001.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --accent-primary: #cd1503;
  --accent-secondary: #ffe84d;
  --text: #a4dcf2;

  --font-retro: "VCR OSD Mono", monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-retro);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Pixel-Art-Bilder: kein Weichzeichnen beim Skalieren */
.pixel-art {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

/* ---------- Hero-Divider (direkt unter der Nav, volle Breite) ---------- */

.hero-divider {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin: 0;
}

.divider-line {
  width: 100%;
  height: 2px;
  background: var(--accent-primary);
}

.divider-pulse {
  display: block;
  width: 100%;
  height: 50px;
}

.divider-pulse path {
  fill: none;
  stroke: var(--accent-primary);
  stroke-width: 3;
  stroke-linecap: square;
  stroke-linejoin: miter;
  shape-rendering: crispEdges;
}

/* ---------- Play-Area ---------- */

.play-area {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
  text-align: center;
}

.play-headline {
  font-size: 2.5rem;
  text-decoration: underline;
  margin: 0 0 0.5rem;
}

.play-subheadline {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.play-text {
  font-size: 1rem;
  margin: 0 0 2rem;
}

.game-frame {
  border: 3px solid var(--accent-primary);
  padding: 1rem;
  margin-bottom: 2rem;
}

.game-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 640 / 380;
  overflow: hidden;
}

.game-placeholder-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.play-button {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-family: inherit;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.75rem;
  background: var(--accent-primary);
  color: var(--bg);
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.play-button:hover {
  background: var(--accent-secondary);
}

.game-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 640 / 380;
}

.game-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.howto-box {
  max-width: 500px;
  margin: 0 auto;
  padding: 1.5rem;
  border: 2px solid var(--accent-primary);
  text-align: center;
}

.howto-heading {
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

.howto-tagline {
  font-size: 1rem;
  margin: 0 0 1.25rem;
}

.howto-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.control-label {
  font-size: 1rem;
}

.key {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border: 2px solid var(--accent-primary);
  font-size: 0.9rem;
}

.howto-collectible {
  font-size: 1rem;
  margin: 1rem 0 0;
}

.howto-collectible + .howto-collectible {
  margin-top: 0.25rem;
}

/* ---------- Header / Nav ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 2px solid var(--accent-primary);
}

.site-logo {
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--accent-secondary);
  white-space: nowrap;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding-bottom: 0.25rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover {
  color: var(--accent-primary);
}

.site-nav a.active {
  color: var(--accent-secondary);
  border-bottom-color: var(--accent-secondary);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 1.5rem;
  margin-top: 2rem;
  border-top: 2px solid var(--accent-primary);
  font-size: 0.8rem;
  color: var(--text);
  opacity: 0.75;
  text-align: center;
}

.social-icons,
.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.social-icons img,
.social-links img {
  display: block;
  width: 20px;
  height: 20px;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.social-icons a:hover img,
.social-links a:hover img {
  opacity: 1;
}

.copyright {
  margin: 0;
}

/* ---------- Responsive Nav (kein Umbruch/Overflow auf schmalen Screens) ---------- */

@media (max-width: 600px) {
  .site-header {
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  .site-logo {
    font-size: 0.85rem;
  }

  .site-nav ul {
    gap: 0.75rem;
  }

  .site-nav a {
    font-size: 0.75rem;
  }
}

@media (max-width: 400px) {
  .site-nav ul {
    gap: 0.4rem;
  }

  .site-nav a {
    font-size: 0.65rem;
  }
}
