@font-face {
  font-family: "Fredoka";
  src: url("assets/fonts/Fredoka-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("assets/fonts/Fredoka-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --starlight: #E8F1FF;
  --silver: #B8C7DB;
  --accent: #339AF0;
  --sky: #1C2A3D;
  --sky-deep: #0E1520;
  --night: #141B26;
  --muted: #8A9BB3;
  --card: rgba(28, 42, 61, 0.55);
  --line: rgba(184, 199, 219, 0.18);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--silver);
  background: radial-gradient(ellipse at 50% -10%, var(--sky) 0%, var(--sky-deep) 60%) fixed, var(--sky-deep);
  min-height: 100vh;
}

#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

a { color: var(--starlight); }
h1, h2, h3 { color: var(--starlight); font-weight: 600; line-height: 1.15; margin: 0; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(14, 21, 32, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--silver);
  font-size: 20px;
}
.brand b { color: var(--starlight); font-weight: 600; }
.nav nav { display: flex; gap: clamp(12px, 3vw, 28px); }
.nav nav a { text-decoration: none; color: var(--silver); font-size: 17px; }
.nav nav a:hover { color: var(--starlight); }

/* Hero */
.hero {
  min-height: calc(100vh - 66px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px 80px;
}
.hero-mark {
  width: clamp(160px, 28vw, 260px);
  height: auto;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) { .hero-mark { animation: none; } }
.hero h1 { font-size: clamp(44px, 8vw, 84px); margin-top: 12px; }
.hero h1 .games { color: var(--silver); font-weight: 400; }
.tagline { font-size: clamp(18px, 2.4vw, 24px); margin: 12px 0 32px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(51, 154, 240, .35); }
.btn.ghost { background: transparent; color: var(--starlight); border: 1.5px solid var(--silver); }
.btn.ghost:hover { border-color: var(--starlight); box-shadow: none; }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Sections */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 96px clamp(20px, 4vw, 40px);
}
.label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.section h2 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 32px; }

/* Game card */
.game {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.game-art { position: relative; min-height: 100%; }
.game-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 50%;
  display: block;
}
.game-body { padding: clamp(24px, 3vw, 40px); }
.game-body h3 { font-size: 32px; margin: 12px 0; }
.chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(51, 154, 240, .12);
  border: 1px solid rgba(51, 154, 240, .35);
}
.facts { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 6px; font-size: 16px; }
.facts li { display: flex; gap: 12px; }
.facts span { min-width: 92px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* About / contact */
.about p { max-width: 680px; font-size: 20px; }
.contact { text-align: center; }
.contact p { margin: -12px 0 28px; font-size: 20px; }
.socials {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}
.socials a { color: var(--silver); text-decoration: none; }
.socials a:hover { color: var(--starlight); }

/* Footer */
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 32px 20px 40px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .game { grid-template-columns: 1fr; }
  .game-art { aspect-ratio: 1232 / 706; min-height: 0; }
  .brand span { display: none; }
  .section { padding-top: 72px; padding-bottom: 72px; }
}

.game + .game { margin-top: 32px; }

.content-error {
  position: relative;
  z-index: 20;
  margin: 0;
  padding: 12px 20px;
  background: #5c1f24;
  color: #ffe3e3;
  font-size: 15px;
  text-align: center;
}

.btn.copied { background: #2f9e6e; }
.btn.copied:hover { box-shadow: 0 8px 24px rgba(47, 158, 110, .35); }

/* Footer legal links */
.footer { flex-wrap: wrap; }
.footer a { color: var(--muted); text-decoration: none; margin-left: 12px; }
.footer a:hover { color: var(--starlight); text-decoration: underline; }

/* Impressum / Datenschutz */
.legal { max-width: 760px; padding-top: 64px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 24px; }
.legal h2 { font-size: 22px; margin: 36px 0 8px; }
.legal p, .legal li { font-size: 17px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--accent); }
.legal-date { color: var(--muted); margin-top: -12px; }
.legal-links { margin-top: 48px; }
