:root {
  color-scheme: dark;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  overscroll-behavior: none;
  touch-action: none;
  /* Pure black void with the faintest warm ember glow rising from below. */
  background:
    radial-gradient(60% 42% at 50% 96%, rgba(150, 50, 10, 0.22) 0%, transparent 60%),
    radial-gradient(70% 55% at 50% 50%, rgba(90, 28, 6, 0.12) 0%, transparent 60%),
    radial-gradient(120% 100% at 50% 55%, #0a0402 0%, #060200 50%, #020100 78%, #000000 100%);
}

/* Soft vignette for depth. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 100% at 50% 45%, transparent 52%, rgba(0, 0, 0, 0.55) 100%);
  z-index: 5;
}

#app {
  position: fixed;
  inset: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
}

#scene {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

/* ---- Remix link (top banner) ---- */
#remix {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 18px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  pointer-events: auto; /* clickable above the canvas */
  max-width: calc(100% - 28px);
  padding: 8px 12px;
  text-align: center;
  text-decoration: none;
  /* dim + small, in the same key as the .hint line below */
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.34);
}

#remix em {
  font-style: normal;
  font-weight: 600;
  /* just a touch brighter than the body, no loud gradient */
  color: rgba(255, 255, 255, 0.5);
}

#remix span {
  font-weight: 500;
  white-space: nowrap; /* keep the URL on one piece */
  color: rgba(255, 255, 255, 0.42);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* ---- HUD ---- */
#hud {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(env(safe-area-inset-bottom) + 28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  pointer-events: none;
  user-select: none;
  z-index: 6;
}

#hud .title {
  font-size: 13px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  text-indent: 0.5em;
  font-weight: 600;
  /* flame palette: deep red -> orange -> hot yellow */
  background: linear-gradient(90deg, #ff5a1e, #ff9a2e, #ffd86a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(255, 120, 40, 0.3);
}

#hud .hint {
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: rgba(255, 226, 200, 0.7);
  text-shadow: 0 0 12px rgba(255, 130, 50, 0.25);
}

#hud .credit {
  margin-top: 2px;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.22);
  pointer-events: auto;
}

#hud .credit a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

