/*
 * base.css — Design-Tokens, Reset, Typografie, Hintergrund-Atmosphäre.
 * Aesthetik: "Vintage Sports Almanach" — warmes Anthrazit-Papier, Korn,
 * übergroße Condensed-Headlines, Vermillion-Akzent, dezentes Gold.
 */

:root {
  /* Papier & Tinte */
  --ink-900: #100e0b;   /* tiefster Hintergrund */
  --ink-800: #16130f;
  --ink-700: #1d1915;   /* Karten */
  --ink-600: #272019;   /* Ränder/erhöhte Flächen */
  --paper:   #f3ebdc;   /* Haupttext, "Druckfarbe" */
  --paper-dim: #c4b9a4;  /* gedämpfter Text */
  --paper-faint: #8a8169; /* sehr leise */

  /* Akzente */
  --vermilion: #e8442d; /* Tipp-Kick-Rot, Primärakzent */
  --vermilion-deep: #b32f1e;
  --gold: #d8a657;      /* Highlights, Linien */
  --pitch: #2f9e44;     /* Grün, sparsam */

  /* Funktion */
  --win:  #4cae72;
  --draw: #c9a24b;
  --loss: #cf5a45;

  /* Schrift */
  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Fraunces", Georgia, serif;
  --font-mono: "Space Mono", "Courier New", monospace;

  /* Maße */
  --maxw: 1180px;
  --gut: clamp(1.1rem, 3vw, 2.4rem);
  --radius: 3px;
  --line: rgba(243, 235, 220, 0.12);
  --line-strong: rgba(243, 235, 220, 0.26);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(232, 68, 45, 0.10), transparent 60%),
    radial-gradient(90% 60% at 100% 0%, rgba(216, 166, 87, 0.06), transparent 55%),
    var(--ink-900);
  color: var(--paper);
  font-family: var(--font-body);
  font-optical-sizing: auto;
  line-height: 1.6;
  letter-spacing: 0.005em;
  overflow-x: hidden;
}

/* Feines Druck-Korn über der gesamten Seite */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--vermilion); color: var(--ink-900); }

/* Typografie-Grundformen */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.mono { font-family: var(--font-mono); }

/* Scrollbar im Stil */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink-900); }
::-webkit-scrollbar-thumb { background: var(--ink-600); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--vermilion-deep); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
