/* COLD IMPACT — mise en page : zone de jeu 16:9 centrée (letterbox), HUD canvas superposé. */
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; }
/* v010 : bloque le balayage deux doigts « page précédente » du trackpad Mac, qui faisait quitter la partie en visant */
html, body { overscroll-behavior: none; }
body { display: flex; align-items: center; justify-content: center; }
#game { position: relative; background: #000; }
#game canvas { position: absolute; left: 0; top: 0; display: block; image-rendering: pixelated; }
#game canvas.hud { cursor: crosshair; }
#cc-error { position: fixed; left: 16px; right: 16px; bottom: 16px; padding: 12px 16px; background: #300; color: #fcc; font: 13px/1.4 monospace; white-space: pre-wrap; z-index: 10; }

@font-face { font-family: 'Rajdhani'; src: url(assets/fonts/Rajdhani-Bold.ttf) format('truetype'); font-weight: 700; font-display: block; }   /* v170 : police de l'interface tactique (OFL) */
@font-face { font-family: 'Press Start 2P'; src: url(assets/fonts/PressStart2P.ttf) format('truetype'); font-display: block; }   /* v040 : police de l'interface (licence OFL) */
/* v022 : écran tactile — plein écran, aucun bouton sauf la pause (src/input/touch.js) */
:root { --cc-white: #f4f4f4; --cc-ink: #1a1a1a; --cc-glass: rgba(20, 20, 20, 0.45); }
body.cc-touch, body.cc-touch * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
body.cc-touch { touch-action: none; align-items: flex-start; justify-content: flex-start; }
.cc-pause {
  position: fixed; z-index: 5; box-sizing: border-box; touch-action: none;
  top: calc(env(safe-area-inset-top, 0px) + 10px); left: calc(env(safe-area-inset-left, 0px) + 10px);
  width: 52px; height: 52px; border-radius: 16px;
  /* v038i : verre sombre, liseré cyan, contour sombre, ombre nette (même langage que les pastilles du HUD) */
  background: linear-gradient(rgba(60,84,128,0.92), rgba(14,22,40,0.94)); border: 2.5px solid rgba(111,226,255,0.9);
  box-shadow: 0 0 0 2px rgba(4,8,16,0.95), 0 4px 0 rgba(4,8,16,0.55), inset 0 6px 8px rgba(255,255,255,0.14);
}
/* deux barres de pause, dessinées en CSS (aucune image à charger) */
.cc-pause::before, .cc-pause::after { content: ''; position: absolute; top: 13px; width: 8px; height: 20px; border-radius: 2px; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,0.25); }
.cc-pause::before { left: 12px; }
/* v038j : habillage pixel — bouton carré à coins taillés, aplats, ombre dure */
.cc-skin-pixel .cc-pause { border-radius: 0; border: 3px solid #5a6674; background: #262d36; clip-path: polygon(6px 0, calc(100% - 6px) 0, calc(100% - 6px) 3px, calc(100% - 3px) 3px, calc(100% - 3px) 6px, 100% 6px, 100% calc(100% - 6px), calc(100% - 3px) calc(100% - 6px), calc(100% - 3px) calc(100% - 3px), calc(100% - 6px) calc(100% - 3px), calc(100% - 6px) 100%, 6px 100%, 6px calc(100% - 3px), 3px calc(100% - 3px), 3px calc(100% - 6px), 0 calc(100% - 6px), 0 6px, 3px 6px, 3px 3px, 6px 3px); box-shadow: none; }
.cc-skin-pixel .cc-pause::before, .cc-skin-pixel .cc-pause::after { border-radius: 0; box-shadow: none; background: #fff; }
.cc-pause::after { right: 12px; }

/* v032 : saisie d'une graine (générateur de missions) — champ au-dessus du jeu, style du HUD */
#cc-seedbox {
  position: fixed; z-index: 20; left: 50%; top: 26%; transform: translate(-50%, -50%); display: none; gap: 10px; align-items: center;
  padding: 12px 14px; background: #101014; border: 3px solid #fdfd02; box-shadow: 0 0 0 2px #1a1a1a; font: bold 16px monospace; color: #fdfd02;
}
#cc-seedbox input {
  width: 13ch; padding: 8px; font: bold 20px monospace; text-transform: uppercase; background: #000; color: #f4f4f4; border: 2px solid #8a8a8a;
  -webkit-user-select: text; user-select: text; touch-action: auto;
}
#cc-seedbox button { min-width: 44px; min-height: 44px; font: bold 16px monospace; background: #1a1a1a; color: #f4f4f4; border: 2px solid #f4f4f4; }
