/* ============================================================================
   game-updraft.css — visual layer owned exclusively by updraft.
   Loaded only on updraft pages, after site.css / themes.css / games.css, so rules
   here win without touching any shared stylesheet.
   Flight-deck framing: a cold instrument glow around the stage plus the
   in-stage camera-view / throttle control cluster.
   ========================================================================== */

/* stage vignette — a canopy edge, not a spotlight */
#stage { position: relative; }
#stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow:
    inset 0 0 70px rgb(4 10 24 / .30),
    inset 0 -30px 64px rgb(2 6 16 / .28);
}
body[data-fx="off"] #stage::after { display: none; }

#stage {
  box-shadow:
    0 0 0 1px color-mix(in oklch, var(--obj-line, #123), transparent 30%),
    0 0 44px color-mix(in oklch, var(--obj, #58a6ff), transparent 82%),
    0 18px 50px rgb(0 0 0 / .6);
}

#gamecanvas { border-radius: inherit; display: block; touch-action: none; }

/* ---------- in-stage controls: camera view + throttle ---------------------
   These sit over the canvas rather than in the page chrome so they stay within
   thumb reach on a phone. They are siblings of the canvas, so pressing one can
   never be mistaken for an elevator input. */
.uv-bar {
  position: absolute;
  right: .55rem;
  bottom: .55rem;
  display: flex;
  gap: .4rem;
  align-items: center;
  z-index: 3;
}
.uv-btn {
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  cursor: pointer;
  font: 700 .78rem/1 "Geist Mono", ui-monospace, monospace;
  letter-spacing: .04em;
  color: #dff0fb;
  background: rgb(6 14 22 / .62);
  border: 1px solid color-mix(in oklch, var(--obj, #58a6ff), transparent 62%);
  border-radius: 999px;
  padding: .5rem .78rem;
  backdrop-filter: blur(6px);
  transition: background .12s ease, border-color .12s ease, transform .08s ease;
  min-width: 4.6rem;
  text-align: center;
  user-select: none;
}
.uv-btn.uv-sm { min-width: 3.3rem; padding: .5rem .55rem; }
.uv-btn:hover { background: rgb(10 22 34 / .8); }
.uv-btn:active { transform: translateY(1px); background: rgb(18 40 58 / .9); }
.uv-btn:focus-visible {
  outline: 2px solid var(--accent-hi, #7fe3ff);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .uv-bar { right: .4rem; bottom: .4rem; gap: .3rem; }
  .uv-btn { font-size: .7rem; padding: .55rem .6rem; min-width: 3.9rem; }
  .uv-btn.uv-sm { min-width: 2.9rem; }
}

/* duel banner picks up the flight blue instead of the generic accent surface */
.duel {
  border-color: color-mix(in oklch, var(--obj, #58a6ff), transparent 55%);
}
