/* ============================================================
   GAMING-TRAINER
   Das Spiel selbst wird komplett im Canvas gezeichnet –
   hier geht es nur um die Seite drumherum.
   ============================================================ */

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 16px 50px;
  background:
    radial-gradient(ellipse at 50% -10%, #2a2450 0%, transparent 60%),
    #0b0b18;
  color: #e8e8f5;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
}

header {
  position: relative;
  padding: 28px 0 18px;
  text-align: center;
}

.zurueck {
  position: absolute;
  top: 28px;
  left: 0;
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid #33334a;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #8a8aa8;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.zurueck:hover,
.zurueck:focus-visible {
  border-color: #ffd447;
  background: rgba(255, 212, 71, 0.12);
  color: #e8e8f5;
  outline: none;
}

h1 {
  margin: 0;
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 800;
  color: #ffd447;
}

main { max-width: 940px; margin: 0 auto; }

#spielfeld {
  aspect-ratio: 900 / 540;
  width: 100%;
  border: 2px solid #33334a;
  border-radius: 12px;
  overflow: hidden;
  background: #0d1020;
  box-shadow: 0 0 70px rgba(255, 212, 71, 0.10);
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  /* Ohne das zoomt oder scrollt das Handy beim schnellen Tippen –
     und beim CPS-Test tippt man sehr schnell. */
  touch-action: none;
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body { touch-action: manipulation; }

#hilfe {
  margin: 14px 0 0;
  text-align: center;
  color: #8a8aa8;
  font-size: 13.5px;
}

.tipp {
  display: block;
  margin-top: 6px;
  color: #6a6a88;
  font-size: 13px;
}

kbd {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid #3a3a5c;
  border-bottom-width: 3px;
  border-radius: 5px;
  background: #1a1a2e;
  color: #dcdcf0;
  font-family: inherit;
  font-size: 0.85em;
  font-weight: 600;
}

/* ---------------- Erklärungen ---------------- */

.infos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.infos article {
  padding: 20px 22px;
  border: 1px solid #33334a;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.infos h2 { margin: 0 0 10px; font-size: 18px; }
.infos p { margin: 0 0 10px; font-size: 14.5px; }

.infos code {
  color: #ffd447;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
}

.notiz {
  margin: 12px 0 0 !important;
  padding-top: 10px;
  border-top: 1px solid #33334a;
  color: #8a8aa8;
  font-size: 13px !important;
}

footer {
  max-width: 940px;
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid #33334a;
  text-align: center;
  color: #8a8aa8;
  font-size: 13.5px;
}

footer a { color: #ffd447; }

@media (max-width: 620px) {
  header { padding: 18px 0 14px; }
  .zurueck { position: static; display: inline-block; margin-bottom: 10px; }
  body { padding: 0 10px 40px; }
}
