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

html, body {
  width: 100%;
  height: 100%;
  background: #1e2533;
  overflow: hidden;
  font-family: 'Roboto', system-ui, sans-serif;
}

#game-container {
  width: 100vw;
  height: 100vh;
}

/* Canvas füllt immer das komplette Fenster (Backing-Store = Fenster × DPR,
   siehe display.js) — kein Letterboxing. */
canvas {
  display: block;
  width: 100vw;
  height: 100vh;
}

/* ─── LINK DISPLAY (links oben): Mirror-Verbindung per Lobby-Code ─────
   Lobby-Pixel-Design (Palette 1:1 aus LobbyScene.js) */
#link-ui {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
#link-ui button {
  font-family: "Press Start 2P", "Courier New", monospace;
  -webkit-font-smoothing: none;
  font-smooth: never;
  font-size: 10px;
  color: #4a2a0c;
  background: #de9040;
  border: 3px solid #5f3410;
  border-radius: 0;
  box-shadow: inset 4px 4px 0 #f4c288, inset -4px -4px 0 #a25a1e;
  padding: 10px 12px;
  cursor: pointer;
  opacity: 0.85;
}
#link-ui button:active {
  background: #b06018;
  color: #fff4e4;
  box-shadow: inset -4px -4px 0 #f4c288, inset 4px 4px 0 #a25a1e;
}
#link-form { display: flex; gap: 8px; }
#link-form input {
  font-family: "Press Start 2P", "Courier New", monospace;
  -webkit-font-smoothing: none;
  font-size: 12px;
  width: 100px;
  text-transform: uppercase;
  text-align: center;
  color: #4a2a0c;
  background: #fff4e4;
  border: 3px solid #5f3410;
  border-radius: 0;
  padding: 9px 6px;
  outline: none;
}
#link-form input::placeholder { color: #c2a684; }

/* ─── Mirror-Modus: Vollbild-Video, sonst nichts ────────────────────── */
#mirror-ui {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: #1e2533;
  display: flex;
  align-items: center;
  justify-content: center;
}
#mirror-video {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  background: #000;
}
#mirror-status {
  position: absolute;
  z-index: 401;
  font-family: "Press Start 2P", "Courier New", monospace;
  -webkit-font-smoothing: none;
  font-size: 14px;
  line-height: 2;
  color: #fff4e4;
  text-align: center;
  padding: 0 24px;
}

/* ─── Pause Overlay (controlled from phone) ────────────────────────────
   Helle Design-Sprache (CLAUDE.md): Pastell-Orange-Pixel statt Dunkel-UI.
   Palette: BG #f9d8b2 · Titel #a8551c · Bevel #f4c288/#a25a1e ·
   Outline #5f3410 · Text #4a2a0c · Creme #fff4e4. Schrift Press Start 2P,
   Kanten hart (kein border-radius, kein Blur) — 2D-Relief wie Lobby/Endscreen. */
#pause-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(249, 216, 178, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pause-card {
  background: #fff4e4;
  /* Blockiges Pixel-Relief: heller Bevel oben/links, dunkler unten/rechts,
     außen die kräftige Outline. */
  border: 8px solid;
  border-color: #f4c288 #a25a1e #a25a1e #f4c288;
  outline: 8px solid #5f3410;
  border-radius: 0;
  padding: 56px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  min-width: 420px;
  image-rendering: pixelated;
}

.pause-title {
  font-family: "Press Start 2P", "Courier New", monospace;
  -webkit-font-smoothing: none;
  font-size: 48px;
  color: #a8551c;
  letter-spacing: 8px;
  margin: 0;
  /* Harter Pixel-Schatten statt Weichzeichnung */
  text-shadow: 4px 4px 0 #f4c288;
}

.pause-by-text {
  font-family: "Press Start 2P", "Courier New", monospace;
  -webkit-font-smoothing: none;
  font-size: 20px;
  line-height: 1.6;
  color: #4a2a0c;
  text-align: center;
  min-height: 32px;
}

.pause-hint {
  font-family: "Press Start 2P", "Courier New", monospace;
  -webkit-font-smoothing: none;
  font-size: 14px;
  line-height: 1.8;
  color: #a25a1e;
  text-align: center;
}
