/* CHRONO WING — Basislayout: Canvas füllt das gesamte Fenster */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0a0a12;
}

#game {
  display: block;
  width: 100vw;
  height: 100vh;
  cursor: default;
  image-rendering: pixelated;
  touch-action: none;          /* verhindert Scrollen/Zoomen durch Spielgesten */
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  overscroll-behavior: none;   /* kein Pull-to-Refresh auf Mobilgeräten */
}

.noscript {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e8e8f0;
  font-family: ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace;
  font-size: 18px;
  text-align: center;
  padding: 24px;
}

/* Reduzierte Bewegung auf Systemebene respektieren:
   Das Spiel selbst bietet zusätzlich Optionen für Shake/Blitze/Partikel. */
@media (prefers-reduced-motion: reduce) {
  #game { image-rendering: auto; }
}

/* Werbefeld: standardmäßig unsichtbar, wird nur im Hauptmenü und nur bei
   gültiger Konfiguration (js/config.js -> AD_CONFIG) eingeblendet */
#ad-container {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: calc(100vw - 24px);
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: rgba(8, 10, 20, 0.35);
  border-radius: 4px;
  overflow: hidden;
}


/* Anklickbare Projekt- und Rechtshinweise. Nur im Hauptmenü sichtbar. */
#site-links {
  display: none;
  position: fixed;
  left: 50%;
  bottom: max(8px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 20;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
  max-width: calc(100vw - 24px);
  padding: 5px 9px;
  color: #c8d0dc;
  background: rgba(8, 10, 20, 0.58);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 4px;
  font: 500 12px ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace;
  white-space: nowrap;
}

#site-links.visible { display: flex; }
#site-links a { color: #e8ecf4; text-decoration: none; }
#site-links a:hover, #site-links a:focus-visible { color: #ffe86a; text-decoration: underline; outline: none; }

@media (max-width: 480px), (max-height: 420px) {
  #site-links { font-size: 10px; gap: 0.35rem; padding: 4px 7px; }
}
