/* ===== Noahs Spieleecke — gemeinsames Stylesheet ===== */

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

:root {
  --bg1: #1a1040;
  --bg2: #2d1b69;
  --card: #ffffff12;
  --accent: #ffd93d;
  --accent2: #6bcbff;
  --text: #f4f1ff;
}

html { height: 100%; }

body {
  min-height: 100%;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, var(--bg1), var(--bg2) 60%, #17355e);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Startseite ---------- */

.hero {
  text-align: center;
  padding: 48px 16px 24px;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  text-shadow: 0 4px 18px #0008;
  letter-spacing: 1px;
}

.hero p {
  margin-top: 10px;
  font-size: 1.15rem;
  opacity: .85;
}

.games {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  padding: 24px 16px;
  max-width: 900px;
}

.game-card {
  background: var(--card);
  border: 1px solid #ffffff22;
  border-radius: 20px;
  padding: 28px 24px;
  width: 260px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: transform .15s ease, box-shadow .15s ease;
  backdrop-filter: blur(6px);
}

.game-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 30px #0006;
}

.game-card.coming-soon { opacity: .55; }
.game-card.coming-soon:hover { transform: none; box-shadow: none; }

.game-icon { font-size: 3.5rem; margin-bottom: 12px; }

.game-card h2 { font-size: 1.4rem; margin-bottom: 8px; }

.game-card p { font-size: .95rem; opacity: .8; line-height: 1.45; }

.play-btn {
  display: inline-block;
  margin-top: 16px;
  background: var(--accent);
  color: #241a00;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 999px;
  box-shadow: 0 4px 14px #0005;
}

footer {
  margin-top: auto;
  padding: 24px;
  font-size: .85rem;
  opacity: .6;
  text-align: center;
}

footer a { color: var(--accent2); }

/* ---------- Spiel-Seiten ---------- */

.game-page {
  width: 100%;
  max-width: 560px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-topbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 4px;
}

.game-topbar a {
  color: var(--accent2);
  text-decoration: none;
  font-weight: 600;
}

.game-topbar h1 { font-size: 1.3rem; }

canvas {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 40px #0008;
  touch-action: none;
  display: block;
}

.hint {
  margin-top: 10px;
  font-size: .85rem;
  opacity: .65;
  text-align: center;
}
