/* =========================================================
   NEXPLAYX GAME STUDIOS — Stylesheet
   Design concept: "compromised interface" — a terminal/status-log
   motif layered over a dark, atmospheric horror-studio look.
   Cyan/amber duotone instead of a plain near-black+red/green default.
   ========================================================= */

:root {
  --void: #0a0d0f;
  --surface: #11171a;
  --surface-2: #161d20;
  --signal: #3fe8cf;
  --static: #ffb454;
  --rec: #ff4d4d;
  --ink: #eef4f3;
  --ink-dim: #8b9997;
  --line: rgba(238, 244, 243, 0.09);

  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Inter', sans-serif;

  --container-w: 1180px;
  --radius-sm: 3px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.1; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }

.container { max-width: var(--container-w); margin-inline: auto; padding-inline: 1.5rem; }

.mono { font-family: var(--font-mono); }
.small { font-size: 0.8rem; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--signal); color: var(--void);
  padding: 0.6rem 1rem; z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

*:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

/* [hidden] muss immer gewinnen, auch gegen Klassen mit eigenem display-Wert
   (z. B. .site-banner) -- verhindert die Klasse der Bugs, bei der ein
   Element trotz hidden=true sichtbar bleibt. */
[hidden] { display: none !important; }

/* ---------- Banner ---------- */
.site-banner {
  background: var(--signal);
  color: var(--void);
}
.banner__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.site-banner button {
  font-size: 1.1rem; line-height: 1; color: var(--void);
  opacity: 0.7;
}
.site-banner button:hover { opacity: 1; }

/* ---------- Eyebrow / section title ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--signal);
  margin-bottom: 0.75rem;
}
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.95rem 1.8rem;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 96% 100%, 0 100%);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn--primary { background: var(--signal); color: var(--void); }
.btn--primary:hover { transform: translateY(-2px); background: #59efd9; }
.btn--ghost { background: transparent; color: var(--signal); border: 1px solid var(--signal); clip-path: none; }
.btn--ghost:hover { background: rgba(63, 232, 207, 0.08); }
.btn--outline { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--outline:hover { border-color: var(--signal); color: var(--signal); }

/* =========================================================
   STATUS BAR + HEADER
   ========================================================= */
.site-header { position: relative; z-index: 20; background: var(--void); border-bottom: 1px solid var(--line); }

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 1.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.status-bar__item { display: inline-flex; align-items: center; gap: 0.4rem; }
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 6px var(--signal);
}

.main-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
}

.logo { display: flex; flex-direction: column; line-height: 1; }
.logo__image { max-height: 44px; width: auto; display: block; }
.logo__line1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--signal), var(--static));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo__line2 {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--ink-dim);
  margin-top: 0.2rem;
}

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a:hover { color: var(--signal); }
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--signal);
  transition: width 0.2s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-tools { display: flex; align-items: center; gap: 1.25rem; }
.lang-switch { display: flex; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-dim); }
.lang-switch button:hover { color: var(--signal); }
.social-icons { display: flex; gap: 0.75rem; }
.social-icons a {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}
.social-icons a:hover { background: var(--signal); color: var(--void); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 14vw, 9rem) 0 clamp(4rem, 10vw, 6rem);
  background: radial-gradient(ellipse at 50% -10%, #132321 0%, var(--void) 60%);
}
.hero__noise {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 18% 30%, rgba(63, 232, 207, 0.14), transparent 40%),
    radial-gradient(circle at 82% 75%, rgba(255, 180, 84, 0.10), transparent 45%);
  pointer-events: none;
}
.hero__photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.hero__photo-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--void) 0%, rgba(10,13,15,0.75) 45%, rgba(10,13,15,0.35) 100%),
    linear-gradient(to top, var(--void) 0%, transparent 35%);
}
.hero__scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.035) 0px,
    rgba(255,255,255,0.035) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero__content { position: relative; max-width: 760px; }
.hero__title {
  position: relative;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}
.hero__sub { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--ink-dim); max-width: 560px; margin-bottom: 2rem; }

@media (prefers-reduced-motion: no-preference) {
  .glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute; left: 0; top: 0;
    width: 100%;
  }
  .glitch::before { color: var(--signal); clip-path: inset(0 0 60% 0); animation: glitch-1 0.7s steps(2, end) 1; }
  .glitch::after { color: var(--static); clip-path: inset(60% 0 0 0); animation: glitch-2 0.7s steps(2, end) 1; }
  @keyframes glitch-1 {
    0% { transform: translate(0,0); opacity: 0; }
    20% { transform: translate(-6px,-2px); opacity: 0.9; }
    45% { transform: translate(4px,1px); }
    70% { transform: translate(-2px,0); }
    100% { transform: translate(0,0); opacity: 0; }
  }
  @keyframes glitch-2 {
    0% { transform: translate(0,0); opacity: 0; }
    20% { transform: translate(6px,2px); opacity: 0.9; }
    45% { transform: translate(-4px,-1px); }
    70% { transform: translate(2px,0); }
    100% { transform: translate(0,0); opacity: 0; }
  }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about__text { max-width: 640px; color: var(--ink-dim); }
.about__text.mono { color: var(--ink-dim); opacity: 0.7; }

/* =========================================================
   GAMES GRID
   ========================================================= */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.game-card {
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.game-card__cover {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
}
.cover--1 { background: radial-gradient(circle at 30% 20%, rgba(63,232,207,0.35), var(--void) 75%); }
.cover--2 { background: radial-gradient(circle at 70% 60%, rgba(139,153,151,0.18), var(--void) 75%); }
.cover--3 { background: radial-gradient(circle at 30% 70%, rgba(255,180,84,0.30), var(--void) 75%); }
.cover__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.tag {
  position: absolute; top: 0.75rem; right: 0.75rem;
  background: var(--static); color: var(--void);
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.05em;
  padding: 0.3rem 0.6rem;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}
.game-card__body { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.rating { color: var(--static); letter-spacing: 0.15em; font-size: 0.9rem; }
.game-card__body h3 { font-size: 1.15rem; text-transform: uppercase; margin-bottom: 0.2rem; }
.game-card__body p { color: var(--ink-dim); font-size: 0.92rem; flex: 1; }
.download-row { display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem; margin-top: 0.5rem; }
.download-label { color: var(--ink-dim); }
.download-row a { color: var(--signal); font-weight: 600; }
.download-row a:hover { text-decoration: underline; }
.age-rating { color: var(--static); font-size: 0.75rem; margin-top: 0.4rem; margin-bottom: 0; }

.game-card__progress { margin-top: 0.5rem; }
.game-card__progress-label {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-dim);
  margin-bottom: 0.3rem;
}
.game-card__progress-track {
  height: 5px; background: var(--surface-2); border-radius: 3px; overflow: hidden;
}
.game-card__progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--signal), var(--static));
}

/* =========================================================
   UPCOMING / FEATURE SLIDER
   ========================================================= */
.upcoming { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.upcoming__slider { position: relative; display: flex; align-items: center; gap: 1rem; }
.upcoming__track { position: relative; flex: 1; min-height: 220px; }
.upcoming__slide {
  display: none;
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}
.upcoming__slide.is-active { display: block; }
.upcoming__label { color: var(--ink-dim); letter-spacing: 0.15em; font-size: 0.75rem; margin-bottom: 0.75rem; }
.upcoming__title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--ink);
}
.upcoming__quote { font-style: italic; color: var(--ink-dim); max-width: 480px; margin-inline: auto 1.25rem; margin-top: 0; }
.upcoming__status { color: var(--signal); font-size: 0.75rem; letter-spacing: 0.1em; margin-bottom: 1.5rem; }
.upcoming__arrow {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-dim);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.upcoming__arrow:hover { border-color: var(--signal); color: var(--signal); }
.upcoming__dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.upcoming__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.upcoming__dot.is-active { background: var(--signal); }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonial-bubble {
  max-width: 640px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px solid var(--signal);
  padding: 1.5rem 1.75rem;
}
.testimonial-bubble p:first-child { font-size: 1.05rem; }
.testimonial-meta { color: var(--static); font-weight: 600; margin: 0; }
.testimonial-meta .mono { color: var(--ink-dim); font-weight: 400; }

/* ---------- static / torn divider ---------- */
.static-divider {
  height: 56px;
  background: linear-gradient(90deg, var(--surface-2), var(--surface));
  clip-path: polygon(
    0% 45%, 4% 60%, 8% 35%, 12% 58%, 16% 30%, 20% 55%, 24% 42%,
    28% 62%, 32% 38%, 36% 58%, 40% 32%, 44% 55%, 48% 40%, 52% 60%,
    56% 35%, 60% 58%, 64% 38%, 68% 55%, 72% 42%, 76% 60%, 80% 35%,
    84% 58%, 88% 40%, 92% 55%, 96% 38%, 100% 50%, 100% 100%, 0% 100%
  );
}

/* =========================================================
   TRAILER
   ========================================================= */
.trailer { background: var(--surface-2); }
.trailer__inner { text-align: center; }
.trailer__media { margin-bottom: 1.5rem; }
.play-btn {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--signal);
  color: var(--void);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.play-btn:hover { transform: scale(1.06); box-shadow: 0 0 30px rgba(63,232,207,0.4); }
.trailer__title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); text-transform: uppercase; margin-bottom: 0.75rem; }
.trailer__hint { color: var(--ink-dim); opacity: 0.7; }
.trailer__media iframe, .trailer__media video {
  width: 100%; max-width: 720px; aspect-ratio: 16/9; border: 0;
}

/* =========================================================
   NEXT EPISODE
   ========================================================= */
.episode-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  max-width: 720px;
}
.episode-card__cover {
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.episode-card__cover .cover__title { font-size: 1.3rem; }
.episode-card__body { padding: 1.75rem; display: flex; flex-direction: column; justify-content: center; gap: 0.4rem; }
.episode-card__body h3 { font-size: 1.3rem; text-transform: uppercase; }
.episode-meta { color: var(--ink-dim); font-size: 0.8rem; letter-spacing: 0.05em; }

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
  text-align: center;
  background: radial-gradient(ellipse at 50% 100%, #1a2a27 0%, var(--void) 70%);
  border-top: 1px solid var(--line);
}
.cta-band h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); text-transform: uppercase; margin-bottom: 2rem; max-width: 640px; margin-inline: auto 2rem; }
.cta-band__buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 3.5rem 0 1.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-grid h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--signal); margin-bottom: 1rem; }
.footer-grid ul li { margin-bottom: 0.5rem; }
.footer-grid a:hover { color: var(--signal); }
.footer-grid p { color: var(--ink-dim); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line);
  padding: 1.25rem 0;
}
.footer-copy { color: var(--ink-dim); opacity: 0.6; margin: 0; }
.footer-copy a { text-decoration: underline; opacity: 0.8; }
.footer-copy a:hover { opacity: 1; color: var(--signal); }

/* =========================================================
   BACK TO TOP
   ========================================================= */
.back-to-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--signal);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 30;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { border-color: var(--signal); }

/* =========================================================
   LEGAL / IMPRESSUM / DATENSCHUTZ PAGES
   ========================================================= */
.legal__warning {
  background: rgba(255, 180, 84, 0.1);
  border: 1px solid var(--static);
  color: var(--static);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
  max-width: 760px;
}
.legal__block { max-width: 640px; }
.legal__block h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--signal); margin: 1.75rem 0 0.5rem; }
.legal__block p { color: var(--ink-dim); }

/* =========================================================
   MAINTENANCE PAGE
   ========================================================= */
.maintenance-screen {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 2rem;
  background: radial-gradient(ellipse at 50% 30%, #132321 0%, var(--void) 65%);
}
.maintenance-screen .logo { align-items: center; margin-bottom: 2.5rem; }
.maintenance-screen .dot { margin-right: 0.4rem; }
.maintenance-screen h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.maintenance-screen p { color: var(--ink-dim); max-width: 480px; }
.maintenance-screen .status-line { margin-top: 2rem; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--void);
    border-bottom: 1px solid var(--line);
    padding: 1.5rem;
    gap: 1.25rem;
    display: none;
  }
  .main-nav.is-open .nav-links { display: flex; }
  .main-nav-wrap { position: relative; flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  .lang-switch { display: none; }
  .games-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .episode-card { grid-template-columns: 1fr; }
  .upcoming__slider { flex-direction: column; }
}

@media (max-width: 560px) {
  .status-bar { font-size: 0.62rem; }
  .cta-band__buttons { flex-direction: column; align-items: stretch; }
  .banner__inner { font-size: 0.78rem; }
}
