/* Skatetour: Hamburg → München · eigenes Design, eigene Grafik */
@font-face {
  font-family: "PixelSchrift";
  src: url("fonts/press-start-2p.woff2") format("woff2");
  font-display: swap;
}
:root {
  --bg: #0e0b1f;
  --bg2: #1b1538;
  --text: #f6f1ff;
  --muted: #b8aed6;
  --pink: #ff5fb0;
  --pink-dark: #c23c85;
  --yellow: #ffd23f;
  --line: rgba(255, 255, 255, 0.12);
  --pixel: "PixelSchrift", "Courier New", monospace;
  --breite: 1600px;   /* so breit darf die Spielfläche auf dem Desktop werden */
  --textbreite: 980px; /* Knöpfe, Texte, Fußzeile bleiben lesbar schmal */
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(1200px 600px at 50% -10%, var(--bg2), var(--bg) 70%);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}
header {
  width: 100%;
  max-width: var(--breite);
  padding: 14px 16px 4px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
h1 {
  margin: 0;
  font-family: var(--pixel);
  font-size: clamp(14px, 3.4vw, 22px);
  letter-spacing: 1px;
  color: var(--pink);
  text-shadow: 3px 3px 0 var(--pink-dark);
  line-height: 1.4;
}
.pfeil { font-family: system-ui, sans-serif; font-weight: 700; }
h1 small {
  display: block;
  font-size: clamp(8px, 1.8vw, 11px);
  color: var(--yellow);
  text-shadow: 2px 2px 0 #7a5a00;
  margin-top: 6px;
}
.kdh {
  font-family: var(--pixel);
  font-size: clamp(9px, 2vw, 12px);
  color: var(--muted);
}
main {
  width: 100%;
  max-width: var(--breite);
  padding: 8px 16px 0;
}
#buehne {
  position: relative;
  width: 100%;
  margin: 0 auto;
  background: #000;
  border: 4px solid #2a2350;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px #000;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}
#spiel {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  cursor: pointer;
}
#buehne:fullscreen { border: 0; border-radius: 0; box-shadow: none; display: flex; align-items: center; justify-content: center; background: #000; }
.leiste {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0 4px;
  align-items: center;
  max-width: var(--textbreite);
  margin: 0 auto;
}
button {
  font-family: var(--pixel);
  font-size: 10px;
  line-height: 1;
  padding: 12px 14px;
  border: 0;
  border-radius: 4px;
  background: #2a2350;
  color: var(--text);
  box-shadow: 0 4px 0 #15102e;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.05s;
}
button:active { transform: translateY(3px); box-shadow: 0 1px 0 #15102e; }
button.primaer { background: var(--pink); color: #2a0b1b; box-shadow: 0 4px 0 var(--pink-dark); }
button.primaer:active { box-shadow: 0 1px 0 var(--pink-dark); }
button.aktiv { background: #3d7a3f; box-shadow: 0 4px 0 #214522; }
button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.leiste .rechts { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.regler { display: inline-flex; align-items: center; gap: 6px; padding: 0 4px; font-size: 14px; }
.regler input[type="range"] { width: 90px; accent-color: var(--pink); cursor: pointer; margin: 0; }
#chatstatus {
  font-size: 13px;
  color: var(--muted);
  min-height: 18px;
  padding: 2px 0 6px;
  max-width: var(--textbreite);
  margin: 0 auto;
}
/* Nachricht an Berat */
.nachricht {
  max-width: var(--textbreite);
  margin: 6px auto 8px;
  padding: 12px 14px;
  border: 2px solid var(--pink);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 95, 176, 0.18), rgba(255, 210, 63, 0.10));
  box-shadow: 0 6px 0 rgba(194, 60, 133, 0.35);
  font-size: 15px;
  line-height: 1.55;
}
.nachricht .kopf {
  font-family: var(--pixel);
  font-size: 11px;
  color: var(--yellow);
  text-shadow: 2px 2px 0 #7a5a00;
  margin-bottom: 8px;
}
.nachricht p { margin: 0 0 10px; }
.nachricht a { color: var(--yellow); }
.nachricht .discord { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nachricht code {
  font-family: var(--pixel);
  font-size: 12px;
  background: #15102e;
  color: #fff;
  padding: 7px 10px;
  border-radius: 4px;
  border: 1px solid var(--line);
  user-select: all;
}
#chatstatus b { color: var(--yellow); }
details {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  margin: 6px auto;
  max-width: var(--textbreite);
  font-size: 14px;
  color: var(--muted);
}
details summary { cursor: pointer; color: var(--text); font-weight: 600; }
details p { margin: 8px 0; line-height: 1.5; }
details code { background: rgba(255,255,255,0.08); padding: 1px 5px; border-radius: 3px; color: var(--yellow); }
.chatform { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.chatform input {
  font: 14px system-ui, sans-serif;
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #15102e;
  color: var(--text);
  min-width: 180px;
}
footer {
  width: 100%;
  max-width: var(--textbreite);
  padding: 16px 16px 28px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
footer a { color: var(--yellow); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .zeile { display: flex; gap: 14px; flex-wrap: wrap; }
.hinweis { font-size: 12px; color: var(--muted); margin: 6px 0 0; line-height: 1.5; }

/* Overlay-Modus für OBS (?overlay=1): nur Spielfläche, grüner Hintergrund zum Ausstanzen */
body.overlay { background: #00ff00; }
body.overlay header, body.overlay footer, body.overlay .leiste, body.overlay details, body.overlay #chatstatus, body.overlay .nachricht { display: none; }
body.overlay main { padding: 0; max-width: none; }
body.overlay #buehne { border: 0; border-radius: 0; box-shadow: none; }

@media (max-width: 520px) {
  button { padding: 12px 10px; font-size: 9px; }
  .leiste .rechts { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  button { transition: none; }
}
