/* ===================================================================
   MidlifeGamerTV — Design tokens
   Farben, Typo & Motion abgeleitet aus dem Logo (Schwarz / Rot / Weiß)
   und dem ZX81-Retro-Boot-Terminal als Signature-Element.
=================================================================== */

:root{
  --bg:        #0a0a0c;
  --bg-alt:    #111114;
  --panel:     #17171b;
  --panel-2:   #1d1d22;
  --line:      #2a2a31;

  --white:     #f4f3ef;
  --muted:     #9a99a3;

  --red:       #e31f2d;
  --red-dim:   #7a1017;
  --red-glow:  rgba(227,31,45,.35);

  --amber:     #f2a93b;
  --amber-glow:rgba(242,169,59,.28);

  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-pixel:   'Press Start 2P', monospace;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wrap: 1140px;
  --radius: 10px;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *,*::before,*::after{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--white);
  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; }

.wrap{
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.text-red{ color: var(--red); }

::selection{ background: var(--red); color: #fff; }

:focus-visible{
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===================== Utility text styles ===================== */

.eyebrow{
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--amber);
  text-transform: uppercase;
  margin: 0 0 18px;
}

.section-title{
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 46px);
  letter-spacing: .01em;
  line-height: 1.05;
  margin: 0 0 16px;
  text-transform: uppercase;
}

/* ===================== Buttons ===================== */

.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .02em;
  padding: 14px 24px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }

.btn--red{
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 0 0 var(--red-glow);
}
.btn--red:hover{ box-shadow: 0 8px 26px -6px var(--red-glow); background:#ef2a38; }

.btn--ghost{
  background: transparent;
  color: var(--white);
  border-color: var(--line);
}
.btn--ghost:hover{ border-color: var(--amber); color: var(--amber); }

.btn--small{ padding: 9px 16px; font-size: 12px; }

.dot-live{
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(255,255,255,.6);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
.btn--ghost .dot-live{ background: var(--red); }
@keyframes pulse-dot{
  0%,100%{ box-shadow: 0 0 0 0 rgba(255,255,255,.45); }
  50%{ box-shadow: 0 0 0 6px rgba(255,255,255,0); }
}

/* ===================================================================
   BOOT SCREEN (signature intro)
=================================================================== */

.boot-screen{
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #050506;
  color: #ff5a63;
  font-family: var(--font-mono);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 6vw;
  transition: opacity .5s ease, visibility .5s ease;
}
.boot-screen.is-done{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.boot-screen__scanlines{
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    to bottom, rgba(255,255,255,.035) 0px, rgba(255,255,255,.035) 1px,
    transparent 2px, transparent 3px
  );
  mix-blend-mode: overlay;
  pointer-events: none;
}
.boot-screen__term{ max-width: 640px; position: relative; }
.boot-screen__text{
  margin: 0;
  font-size: clamp(12px, 1.6vw, 15px);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  text-shadow: 0 0 6px rgba(255,90,99,.55);
}
.boot-screen__cursor{
  display: inline-block;
  animation: blink 1s steps(1) infinite;
  font-size: 14px;
}
@keyframes blink{ 50%{ opacity: 0; } }

.boot-screen__skip{
  position: absolute;
  bottom: 6vh;
  right: 6vw;
  background: transparent;
  border: 1px solid rgba(255,90,99,.4);
  color: #ff5a63;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
}
.boot-screen__skip:hover{ background: rgba(255,90,99,.12); }

@media (prefers-reduced-motion: reduce){
  .boot-screen{ display: none; }
}

/* ===================================================================
   HEADER
=================================================================== */

.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,12,.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand__logo{ height: 42px; width: auto; }

.site-nav{
  display: flex;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .02em;
}
.site-nav a{ color: var(--muted); transition: color .15s ease; position: relative; }
.site-nav a:hover{ color: var(--white); }
.site-nav a::after{
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--red);
  transition: width .2s ease;
}
.site-nav a:hover::after{ width: 100%; }

@media (max-width: 720px){
  .site-nav{ display: none; }
}

/* ===================================================================
   HERO
=================================================================== */

.hero{
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 100px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(227,31,45,.16), transparent 60%),
    linear-gradient(180deg, #0a0a0c 0%, #0a0a0c 100%);
}

.hero__grid{
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(227,31,45,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(227,31,45,.07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black, transparent 75%);
}

.hero__scanlines{
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    to bottom, rgba(255,255,255,.018) 0px, rgba(255,255,255,.018) 1px,
    transparent 2px, transparent 4px
  );
  pointer-events: none;
}

.hero__inner{ position: relative; z-index: 1; max-width: 760px; }

.hero__title{
  font-family: var(--font-display);
  font-size: clamp(38px, 10vw, 96px);
  line-height: .98;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0 0 24px;
  overflow-wrap: break-word;
}

.hero__sub{
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 34px;
}

.hero__cta{ display: flex; flex-wrap: wrap; gap: 14px; }

.hero__scroll{
  position: absolute;
  bottom: 34px;
  left: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  z-index: 1;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(6px); }
}

@media (max-width: 640px){
  .hero{ padding-bottom: 80px; }
  .hero__scroll{ left: 0; right: 0; width: fit-content; margin-inline: auto; bottom: 20px; }
}

/* reveal-on-scroll */
.reveal{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* ===================================================================
   SECTIONS (general)
=================================================================== */

.section{ padding: 110px 0; }
.section--alt{ background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ===================== Player card ===================== */

.player-card{
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 64px;
}
.player-card__photo{
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 5/6;
}
.player-card__photo img{ width: 100%; height: 100%; object-fit: cover; }
.player-card__badge{
  position: absolute;
  top: 12px; left: 12px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 10px;
  padding: 6px 9px;
  border-radius: 4px;
}
.player-card__name{
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  text-transform: uppercase;
  letter-spacing: .01em;
  margin: 0 0 14px;
}
.player-card__bio{ color: var(--muted); margin: 0 0 28px; max-width: 520px; }

.stat-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin: 0;
}
.stat-grid__item{ background: var(--panel-2); padding: 16px 18px; }
.stat-grid__item dt{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 6px;
}
.stat-grid__item dd{ margin: 0; font-weight: 600; font-size: 15px; }

@media (max-width: 760px){
  .player-card{ grid-template-columns: 1fr; }
  .player-card__photo{ max-width: 280px; margin: 0 auto; }
}

/* ===================== Gallery ===================== */

.gallery{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery__item{
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 1/1;
}
.gallery__item img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease, filter .5s ease;
  filter: grayscale(.25);
}
.gallery__item:hover img{ transform: scale(1.06); filter: grayscale(0); }

@media (max-width: 640px){
  .gallery{ grid-template-columns: 1fr 1fr; }
  .gallery__item:first-child{ grid-column: 1 / -1; }
}

/* ===================== Channel select grid ===================== */

.channel-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.channel-card{
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.channel-card:hover{
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: 0 14px 34px -18px var(--red-glow);
}
.channel-card--twitch{ border-color: var(--red-dim); }

.channel-card__icon{
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}
.channel-card__icon svg{ width: 26px; height: 26px; }

.channel-card__body{ display: flex; flex-direction: column; gap: 4px; }
.channel-card__platform{
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.channel-card__handle{ font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.channel-card__cta{
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 900px){
  .channel-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px){
  .channel-grid{ grid-template-columns: 1fr; }
}

/* ===================== Feature panel (Rest Rauschen) ===================== */

.feature-panel{
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: center;
  background: linear-gradient(155deg, var(--panel), #0f0f11);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}
.feature-panel__art{
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 1/1;
}
.feature-panel__text p{ color: var(--muted); max-width: 480px; }

@media (max-width: 760px){
  .feature-panel{ grid-template-columns: 1fr; padding: 28px; }
  .feature-panel__art{ max-width: 220px; margin: 0 auto; }
  .feature-panel__text{ text-align: center; }
  .feature-panel__text p{ margin-left: auto; margin-right: auto; }
}

/* ===================== Shop banner ===================== */

.shop-banner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  background:
    radial-gradient(ellipse 60% 120% at 100% 50%, var(--red-glow), transparent 70%),
    var(--panel);
}
.shop-banner__text p{ color: var(--muted); margin: 0; max-width: 460px; }
.shop-banner__text .section-title{ margin-bottom: 8px; }

/* ===================================================================
   FOOTER
=================================================================== */

.site-footer{ padding: 60px 0 40px; border-top: 1px solid var(--line); background: var(--bg-alt); }
.site-footer__inner{ display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.site-footer__logo{ height: 56px; width: auto; opacity: .9; }
.site-footer__links{ display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; font-family: var(--font-mono); font-size: 13px; }
.site-footer__links a{ color: var(--muted); transition: color .15s ease; }
.site-footer__links a:hover{ color: var(--red); }
.site-footer__meta{ font-size: 12px; color: #5f5e66; margin: 0; }
.site-footer__meta a{ color: #5f5e66; text-decoration: underline; text-underline-offset: 3px; }
.site-footer__meta a:hover{ color: var(--amber); }
