:root {
  --accent: #4cc9f0;
  --bg: #0b0f1a;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: #e8eef7;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

#game {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* Fadenkreuz */
#crosshair {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 22px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transition: opacity 0.2s;
}
body.playing #crosshair { opacity: 1; }

/* HUD */
#hud {
  position: fixed;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  background: rgba(11, 15, 26, 0.55);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
  backdrop-filter: blur(6px);
}
#hud #net-status { color: var(--accent); }

/* Overlay */
#overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 30%, rgba(76, 201, 240, 0.12), transparent 60%),
              rgba(6, 9, 17, 0.85);
  backdrop-filter: blur(4px);
  z-index: 10;
  transition: opacity 0.3s;
}
#overlay.hidden { opacity: 0; pointer-events: none; }

.panel {
  text-align: center;
  max-width: 420px;
  padding: 36px 40px;
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.panel h1 {
  font-size: 40px;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #4cc9f0, #b388ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.subtitle { color: #9fb0c7; margin-top: 4px; margin-bottom: 22px; }

#play {
  font-size: 16px;
  font-weight: 600;
  color: #06121f;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(76, 201, 240, 0.35);
}
#play:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(76, 201, 240, 0.5); }
#play:active { transform: translateY(0); }

.controls {
  list-style: none;
  margin: 24px auto 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
  text-align: left;
  font-size: 14px;
  color: #c7d2e0;
}
.controls b {
  display: inline-block;
  min-width: 78px;
  color: #fff;
}
.hint {
  margin-top: 18px;
  font-size: 12px;
  color: #7e8aa0;
  line-height: 1.5;
}

.map-info {
  margin-bottom: 18px;
  font-size: 13px;
  color: #cdd8e8;
}
.map-info b { color: var(--accent); }

.editor-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  color: #c7d2e0;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
  padding-bottom: 2px;
}
.editor-link:hover { color: #fff; }

#loading {
  position: fixed;
  bottom: 16px;
  right: 16px;
  font-size: 12px;
  color: #7e8aa0;
  z-index: 11;
}
#loading.hidden { display: none; }
