@font-face {
  font-family: "Orbitron";
  src: url("fonts/orbitron.ttf") format("truetype");
  font-display: swap;
}
:root {
  --bg: #000a0b;
  --muted: #8cbfbf;
  --neutral: 122, 189, 255;
  --yes: 255, 168, 0;
  --no: 255, 77, 0;
}
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--muted);
  font-family: "Orbitron", system-ui, sans-serif;
  letter-spacing: 0.08em;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: manipulation;
  outline: none;
  cursor: pointer;
}
#glow, #word { position: fixed; left: 0; top: 0; pointer-events: none; will-change: transform; }
#glow {
  border-radius: 50%;
  --c: var(--neutral);
  background: radial-gradient(closest-side, rgba(var(--c), 0.32), rgba(var(--c), 0.1) 55%, rgba(var(--c), 0) 100%);
  transition: background 0.3s;
}
#glow[data-mood="yes"] { --c: var(--yes); }
#glow[data-mood="no"] { --c: var(--no); }
#word {
  font-size: clamp(18px, 6vw, 34px);
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
}
#word.on { opacity: 1; }
#word[data-mood="yes"] { color: rgb(var(--yes)); text-shadow: 0 0 14px rgba(var(--yes), 0.7); }
#word[data-mood="no"] { color: rgb(var(--no)); text-shadow: 0 0 14px rgba(var(--no), 0.7); }
#hint {
  position: fixed;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  pointer-events: none;
}
#hint {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 9vh);
  font-size: clamp(12px, 3.6vw, 16px);
  line-height: 1.8;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(56, 242, 224, 0.35);
  transition: opacity 1s;
}
#hint.gone { opacity: 0; }
#toggles {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  right: calc(env(safe-area-inset-right, 0px) + 10px);
  display: flex;
  gap: 6px;
  z-index: 2;
}
#toggles button {
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  opacity: 0.3;
  -webkit-tap-highlight-color: transparent;
}
#toggles button[aria-pressed="false"] { opacity: 0.18; }
#toggles button:focus-visible { outline: 1px solid var(--muted); }
#toggles svg { width: 100%; height: 100%; display: block; }
#toggles .ic { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#toggles [aria-pressed="true"] .off-only, #toggles [aria-pressed="false"] .on-only { display: none; }
