*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #05060a;
  --text: #aeb8cc;
  --accent: #ff2d55;
  --cyan: #3ad1ff;
}

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, sans-serif;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 3vh, 32px);
  padding: 16px;
  overflow: hidden;
}

.stage {
  position: relative;
  width: min(1100px, 100%);
  aspect-ratio: 3011 / 1512;
}

.scene,
.logo,
.scanlines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scene { opacity: 0; }

.logo {
  opacity: 0;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.slice { opacity: 0; }

.scanlines {
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px);
  -webkit-mask: url("../logo/p4g-logo.webp") center / contain no-repeat;
  mask: url("../logo/p4g-logo.webp") center / contain no-repeat;
}

.scanlines::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 18%;
  background: linear-gradient(to bottom, transparent, rgba(220, 235, 255, 0.07), transparent);
  animation: roll 7s linear infinite;
}

@keyframes roll {
  from { transform: translateY(-100%); }
  to { transform: translateY(560%); }
}

.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px clamp(16px, 5vw, 56px);
}

.menu .menu-link {
  opacity: 0;
  padding: 8px 0 8px 0.35em;
  color: var(--text);
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}

.menu .menu-link:hover,
.menu .menu-link:focus-visible,
.menu .dropdown:hover > .menu-link {
  color: var(--accent);
  text-shadow: -2px 0 rgba(58, 209, 255, 0.6), 2px 0 rgba(255, 45, 85, 0.6);
  outline: none;
}

.replay {
  position: fixed;
  right: 16px;
  bottom: 16px;
  padding: 8px 14px;
  background: transparent;
  color: #8a93a8;
  border: 1px solid #2a3142;
  border-radius: 6px;
  cursor: pointer;
}
.replay:hover { color: #fff; border-color: var(--accent); }

/* Impressum + privacy links: must be reachable from every page, so always visible (not animated) */
.home-legal {
  position: fixed;
  left: 16px;
  bottom: 16px;
  display: flex;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.05em;
}
.home-legal a { color: #6c768c; text-decoration: none; }
.home-legal a:hover, .home-legal a:focus-visible { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .scene { display: none; }
  .logo, .scanlines, .menu .menu-link { opacity: 1; }
  .scanlines::after { animation: none; display: none; }
}
