/* ============================================
   Ocean Blue Theme — Nuages de Pi
   Deep ocean blues, teals, glassmorphism
   ============================================ */

:root {
  --ocean-deep:    #0a2540;
  --ocean-mid:     #0d3b6e;
  --ocean-surface: #1a5276;
  --accent-cyan:   #00b4d8;
  --accent-teal:   #48cae4;
  --accent-light:  #90e0ef;
  --text-primary:  rgba(240, 248, 255, 0.95);
  --text-muted:    rgba(144, 224, 239, 0.7);
  --glass-bg:      rgba(13, 59, 110, 0.45);
  --glass-border:  rgba(72, 202, 228, 0.25);
  --glass-blur:    12px;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--ocean-deep);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
}

/* ── Canvas container ──────────────────────── */
#PIclouds,
#game canvas {
  display: block;
}

#game {
  cursor: none;
  position: absolute;
  top: 0;
  left: 0;
  image-rendering: optimizeSpeed;
  image-rendering: -moz-crisp-edges;
  image-rendering: -o-crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: optimize-contrast;
  -ms-interpolation-mode: nearest-neighbor;
  image-rendering: pixelated;
}

/* ── Glassmorphism utility ─────────────────── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}

/* ── Title overlay ─────────────────────────── */
#hud {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  padding: 10px 28px;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 24px rgba(0, 180, 216, 0.18),
              inset 0 1px 0 rgba(144, 224, 239, 0.15);
}

#hud h1 {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-teal);
  text-shadow: 0 0 18px rgba(72, 202, 228, 0.6);
}

#hud span {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-top: 2px;
}

/* ── Corner badge ──────────────────────────── */
#corner-badge {
  position: fixed;
  bottom: 18px;
  right: 22px;
  z-index: 10;
  padding: 6px 14px;
  pointer-events: none;
}

#corner-badge p {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Accent glow on canvas edge ───────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  box-shadow: inset 0 0 80px rgba(0, 180, 216, 0.08),
              inset 0 0 2px rgba(72, 202, 228, 0.12);
}
