/* ============================================================
   VIRENALARM
   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%, #0e2b17 0%, transparent 60%),
    #07070f;
  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: #7ee787;
  background: rgba(126, 231, 135, 0.12);
  color: #e8e8f5;
  outline: none;
}

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

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

#spielfeld {
  aspect-ratio: 900 / 540;
  width: 100%;
  border: 2px solid #2f4a34;
  border-radius: 12px;
  overflow: hidden;
  background: #04120a;
  box-shadow: 0 0 70px rgba(126, 231, 135, 0.12);
}

canvas {
  display: block;
  width: 100%;
  height: 100%;

  /* Ohne das zoomt oder scrollt das Handy beim Wischen */
  touch-action: none;
}

/* Im Menü zeigt man auf kleine Kästchen – da muss der ganz
   normale Mauszeiger sichtbar bleiben. Im Spiel wird ein
   Fadenkreuz daraus, weil man dort zielt. */
canvas.spielt { cursor: crosshair; }

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

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

kbd {
  padding: 1px 6px;
  border: 1px solid #3a3a55;
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #191926;
  color: #9a9ab8;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
}

/* ---------------------------------------------------------
   DIE ERKLÄRUNGEN GANZ UNTEN
   --------------------------------------------------------- */
.infos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid #24243a;
}

.infos article {
  padding: 16px 18px;
  border: 1px solid #24243a;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.infos h2 { margin: 0 0 6px; font-size: 16px; color: #7ee787; }
.infos p { margin: 0 0 8px; color: #9a9ab8; font-size: 14px; }
.infos p:last-child { margin-bottom: 0; }
.infos b { color: #e8e8f5; }

.infos code {
  padding: 1px 5px;
  border-radius: 4px;
  background: #191926;
  color: #7ee787;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
}

@media (max-width: 640px) {
  .zurueck { position: static; margin-bottom: 12px; }

  /* Am Handy ist der Finger der Zeiger – der muss sichtbar
     bleiben, sonst weiß man nicht, wo man hinfasst */
  canvas { cursor: default; }
}
