/* ============================================================
   Base: reset, tokens, typography, layout
   ============================================================ */

@font-face {
  font-family: 'Black Ops One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/black-ops-one-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/inter-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2');
}

:root {
  --bg-0: #0B0F0A;
  --bg-1: #141A12;
  --bg-2: #1F2A1A;
  --bg-3: #2A3624;
  --fg-1: #E8EDE3;
  --fg-2: #A8B09E;
  --fg-3: #5C6B52;
  --olive: #6B7F3A;
  --olive-light: #A4B86A;
  --pink: #FF2E6E;
  --orange: #FF7A1A;
  --blue: #00C2FF;
  --yellow: #FFD60A;
  --purple: #9D4EDD;
  --toxic: #00E676;

  --radius: 2px;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;

  --font-stencil: 'Black Ops One', 'Stardos Stencil', Impact, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
}

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

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg-1);
  background: var(--bg-0);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Eigener Cursor: OS-Cursor nur auf dem "leeren" Hintergrund ausblenden,
   auf allem interaktiven/inhaltlichen Content bleibt der normale Cursor */
body { cursor: none; }
.app-header, .app-main, section, .card, .panel, table, ul, ol,
h1, h2, h3, p, span, div.grow, .game-banner, .game-banner-head {
  cursor: default;
}
button, a, label, [role="button"], select, summary { cursor: pointer; }
input[type="text"], input[type="password"], input[type="email"],
input[type="number"], input[type="search"], input[type="date"],
textarea { cursor: text; }

/* Scene-Slider: fullscreen SVG-Szenen die beim Menuewechsel horizontal durchgleiten
   (inspiriert von tympanus.net/Development/AnimatedFrameSlideshow/index2) */
.scene-slider {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: #000;
}
.scene-slider .scene {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: translateX(100%) scale(1.05);
  transition:
    transform 900ms cubic-bezier(0.76, 0.00, 0.24, 1.00),
    opacity   700ms cubic-bezier(0.76, 0.00, 0.24, 1.00),
    filter    900ms cubic-bezier(0.76, 0.00, 0.24, 1.00);
  filter: saturate(1) brightness(1);
  will-change: transform, opacity;
}
.scene-slider .scene.is-prev {
  transform: translateX(-100%) scale(1.05);
  opacity: 0;
}
.scene-slider .scene.is-active {
  transform: translateX(0) scale(1);
  opacity: .65;
  filter: saturate(1.1) brightness(1.0);
}
/* Vignette darueber fuer bessere Textlesbarkeit */
.scene-slider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(11,15,10,.55) 75%, rgba(11,15,10,.92) 100%);
  pointer-events: none;
}

/* Mouse-Follow Spotlight (Taschenlampen-Effekt) */
.bg-spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    circle 360px at var(--mx, 50%) var(--my, 50%),
    rgba(164, 184, 106, 0.10) 0%,
    rgba(107, 127, 58, 0.04) 30%,
    transparent 70%
  );
  transition: background 120ms ease-out;
}

/* Crosshair, das der Maus folgt */
.bg-crosshair {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  width: 200px;
  height: 200px;
  left: 0;
  top: 0;
  transform: translate(calc(var(--mx, 50vw) - 100px), calc(var(--my, 50vh) - 100px));
  background-image: url('/static/assets/patterns/crosshair.svg');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 220ms ease;
  mix-blend-mode: screen;
}
body.pointer-active .bg-crosshair { opacity: .6; }

/* Langsam driftende Paintball-Tropfen */
@keyframes drift-down {
  0%   { transform: translate3d(0, -5vh, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: .35; }
  100% { transform: translate3d(20px, 105vh, 0) rotate(20deg); opacity: 0; }
}
.bg-drops {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-drop {
  position: absolute;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  filter: blur(1px);
  animation: drift-down 28s linear infinite;
  will-change: transform, opacity;
}
.bg-drop:nth-child(1) { left: 8%;  animation-duration: 32s; animation-delay: 0s;   background: radial-gradient(circle, rgba(255,46,110,.5), rgba(255,46,110,0) 70%); }
.bg-drop:nth-child(2) { left: 22%; animation-duration: 25s; animation-delay: -8s;  background: radial-gradient(circle, rgba(255,122,26,.4), rgba(255,122,26,0) 70%); }
.bg-drop:nth-child(3) { left: 40%; animation-duration: 38s; animation-delay: -4s;  background: radial-gradient(circle, rgba(0,194,255,.35), rgba(0,194,255,0) 70%); }
.bg-drop:nth-child(4) { left: 55%; animation-duration: 30s; animation-delay: -15s; background: radial-gradient(circle, rgba(255,214,10,.4), rgba(255,214,10,0) 70%); }
.bg-drop:nth-child(5) { left: 72%; animation-duration: 35s; animation-delay: -20s; background: radial-gradient(circle, rgba(157,78,221,.4), rgba(157,78,221,0) 70%); }
.bg-drop:nth-child(6) { left: 88%; animation-duration: 27s; animation-delay: -12s; background: radial-gradient(circle, rgba(0,230,118,.4), rgba(0,230,118,0) 70%); }

/* Klick-Splatter als SVG-Paint-Kleks.
   Phase 1 (0-100ms): waechst blitzartig von 0 auf final scale, opacity 1.
   Phase 2 (100ms-5100ms): verblasst ueber 5s auf 40% und bleibt dauerhaft sichtbar. */
@keyframes splat-grow {
  0%   { transform: translate(-50%, -50%) scale(0) rotate(var(--rot-start, -10deg)); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(var(--final-scale, 1.8)) rotate(var(--rot-end, 28deg)); opacity: 1; }
}
@keyframes splat-fade {
  from { opacity: 1; }
  to   { opacity: 0.4; }
}
.bg-splash {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  width: 80px;
  height: 80px;
  animation:
    splat-grow 100ms ease-out forwards,
    splat-fade 5s ease-out 100ms forwards;
  mix-blend-mode: screen;
}
.bg-splash svg { width: 100%; height: 100%; }

/* ================================================================
   TAB-INDICATOR — HUD-Frame gleitet zwischen aktiven Tabs
   (inspiriert von https://tympanus.net/Development/AnimatedFrameSlideshow/)
   ================================================================ */
.tabs { position: relative; }
.tab-indicator {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0;
  transition:
    transform 520ms cubic-bezier(0.22, 0.61, 0.36, 1),
    width     520ms cubic-bezier(0.22, 0.61, 0.36, 1),
    height    520ms cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity   260ms ease-out;
  color: var(--olive-light);
}
.tab-indicator.is-ready { opacity: 1; }
.tab-indicator svg { width: 100%; height: 100%; overflow: visible; }

@keyframes indicator-pulse {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(164,184,106,.45)); }
  50%      { filter: drop-shadow(0 0 8px rgba(164,184,106,.9)); }
}
.tab-indicator.is-moving { animation: indicator-pulse 520ms ease-out; }

.tab {
  position: relative;
  transition: color 300ms ease, transform 300ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.tab.is-active { transform: translateY(-1px); }

/* ================================================================
   NAV-LINK HOVER — Corner-Brackets fliegen aus der Mitte an die Ecken
   ================================================================ */
.nav-link { position: relative; padding: .35rem .6rem; isolation: isolate; }
.nav-link::before, .nav-link::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid var(--olive-light);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, top 360ms cubic-bezier(0.22, 0.61, 0.36, 1),
              left 360ms cubic-bezier(0.22, 0.61, 0.36, 1),
              right 360ms cubic-bezier(0.22, 0.61, 0.36, 1),
              bottom 360ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.nav-link::before {
  top: 50%; left: 50%;
  border-right: none;
  border-bottom: none;
  transform: translate(-50%, -50%);
}
.nav-link::after {
  bottom: 50%; right: 50%;
  border-left: none;
  border-top: none;
  transform: translate(50%, 50%);
}
.nav-link:hover { color: var(--olive-light); }
.nav-link:hover::before { top: 0; left: 0; opacity: 1; }
.nav-link:hover::after  { bottom: 0; right: 0; opacity: 1; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11,15,10,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bg-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-6);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--fg-1);
}
.brand-mark {
  color: var(--pink);
  font-size: 1.2rem;
}
.brand-text {
  font-family: var(--font-stencil);
  letter-spacing: .1em;
  font-size: 1.1rem;
}

.main-nav {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
}
.nav-link {
  color: var(--fg-2);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: .85rem;
}
.nav-link:hover { color: var(--olive-light); }

.app-main {
  position: relative;
  z-index: 1;
  padding: var(--space-6);
  max-width: 1400px;
  margin: 0 auto;
}

h1, h2, h3, .stencil {
  font-family: var(--font-stencil);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 400;
}
h1 { font-size: 2rem; margin: 0 0 var(--space-6); }
h2 { font-size: 1.25rem; margin: 0 0 var(--space-4); }
h3 { font-size: 1rem; margin: var(--space-4) 0 var(--space-2); }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--fg-2); }
.center { text-align: center; }
.inline { display: inline-block; }

a { color: var(--olive-light); }
a:hover { color: var(--fg-1); }

hr {
  border: none;
  border-top: 1px solid var(--bg-3);
  margin: var(--space-6) 0;
}
