/* styles.css — page shell + HUD. Game visuals live in three.js. */

:root {
  --bg: #000000;
  --fg: #eef3f8;
  --dim: #8e9aab;
  --accent: #5cc8ff;
  --warn: #ff6b6b;
  --panel: rgba(6, 9, 13, 0.62);
  --edge: rgba(92, 200, 255, 0.18);
  --mono: "Consolas", "Menlo", "Monaco", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
}

/* 3D viewport */
#stage {
  position: fixed;
  inset: 0;
  z-index: 0;
}

#stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Vignette: keeps the corners black so the glowing cube is the focal point. */
#stage::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 46%, transparent 38%, rgba(0, 0, 0, 0.85) 100%);
}

/* HUD overlay */
#hud {
  position: fixed;
  left: 16px;
  top: 14px;
  z-index: 10;
  pointer-events: none;
  font-size: 13px;
  line-height: 1.55;
  padding: 10px 14px 12px;
  border-radius: 14px;
  background: var(--panel);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  border: 1px solid var(--edge);
  box-shadow: 0 2px 26px rgba(0, 0, 0, 0.75), 0 0 1px rgba(92, 200, 255, 0.22);
}

#hud > div {
  display: block;
  white-space: pre;
}

.hud-status {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(92, 200, 255, 0.55);
}

.hud-face {
  color: var(--accent);
  opacity: 0.9;
  text-shadow: 0 0 10px rgba(92, 200, 255, 0.45);
}

.hud-moves,
.hud-time {
  color: var(--fg);
}

.hud-scramble {
  color: var(--dim);
}

.hud-help {
  color: var(--dim);
  max-width: 34ch;
  opacity: 0.75;
}

.fatal {
  color: var(--warn);
  font-size: 15px;
  padding: 12px;
}

