.fh-hi {
  --arcade-black: #000;
  --arcade-white: #f4f3ef;
  --arcade-red: #ff4351;
  --arcade-cyan: #16b9dc;
  color: var(--arcade-white);
  font-family: "Courier New", Courier, monospace;
  margin: 2rem auto;
  max-width: 1200px;
  width: 100%;
}

.fh-hi *,
.fh-hi *::before,
.fh-hi *::after { box-sizing: border-box; }

.fh-hi__shell {
  background: var(--arcade-black);
  border: 2px solid #252525;
  box-shadow: 0 18px 55px rgb(0 0 0 / 28%);
  overflow: hidden;
}

.fh-hi__stage {
  aspect-ratio: 16 / 9;
  background: #000;
  position: relative;
  width: 100%;
}

.fh-hi__canvas {
  background: #000;
  display: block;
  height: 100%;
  image-rendering: pixelated;
  outline: 0;
  touch-action: none;
  width: 100%;
}

.fh-hi__canvas:focus-visible { box-shadow: inset 0 0 0 3px var(--arcade-cyan); }

.fh-hi__screen {
  align-items: center;
  background: rgb(0 0 0 / 92%);
  display: flex;
  flex-direction: column;
  inset: 0;
  justify-content: center;
  padding: clamp(1rem, 5vw, 3rem);
  position: absolute;
  text-align: center;
  transition: opacity 120ms linear, visibility 120ms linear;
}

.fh-hi__screen.is-hidden { opacity: 0; pointer-events: none; visibility: hidden; }
.fh-hi__screen h2 {
  color: var(--arcade-white);
  font: 700 clamp(1.8rem, 6vw, 4.8rem)/0.95 "Courier New", Courier, monospace;
  letter-spacing: 0.03em;
  margin: 0 0 1rem;
  max-width: 900px;
  text-shadow: 5px 5px 0 #333;
  text-transform: uppercase;
}

.fh-hi__screen > p:not(.fh-hi__eyebrow, .fh-hi__hint) {
  color: #c7c7c7;
  font-size: clamp(0.8rem, 1.8vw, 1.1rem);
  margin: 0 auto 1.5rem;
  max-width: 600px;
}

.fh-hi__eyebrow {
  color: var(--arcade-red);
  font-size: clamp(0.65rem, 1.5vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  margin: 0 0 0.9rem;
}

.fh-hi__hint { color: #8b8b8b; font-size: clamp(0.58rem, 1.25vw, 0.75rem); margin: 1.25rem 0 0; }

.fh-hi__button,
.fh-hi__controls button {
  appearance: none;
  background: var(--arcade-red);
  border: 0;
  border-radius: 0;
  box-shadow: 5px 5px 0 #8d1e28;
  color: #fff;
  cursor: pointer;
  font: 700 0.9rem/1 "Courier New", Courier, monospace;
  letter-spacing: 0.08em;
  min-height: 46px;
  padding: 0.9rem 1.4rem;
  text-transform: uppercase;
}

.fh-hi__button:hover { background: #ff6370; }
.fh-hi__button:active,
.fh-hi__controls button:active,
.fh-hi__controls button.is-active { box-shadow: 2px 2px 0 #8d1e28; transform: translate(3px, 3px); }
.fh-hi button:focus-visible { outline: 3px solid var(--arcade-cyan); outline-offset: 4px; }

.fh-hi__controls {
  align-items: center;
  background: #101010;
  display: none;
  gap: 0.7rem;
  justify-content: center;
  padding: 0.85rem;
}

.fh-hi__controls button { flex: 0 1 88px; font-size: 1rem; padding: 0.75rem; }
.fh-hi__controls button[data-control="fire"] { background: var(--arcade-cyan); box-shadow: 5px 5px 0 #09657a; color: #001a20; flex-basis: 112px; }
.fh-hi__controls button.fh-hi__utility { background: #333; box-shadow: 5px 5px 0 #171717; flex-basis: 52px; min-width: 46px; }
.fh-hi__rotate { background: #101010; color: #8d8d8d; display: none; font-size: 0.68rem; letter-spacing: 0.08em; margin: 0; padding: 0 0 0.75rem; text-align: center; text-transform: uppercase; }

.fh-hi:fullscreen { align-items: center; background: #000; display: flex; margin: 0; max-width: none; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.fh-hi:fullscreen .fh-hi__shell { border: 0; margin: auto; width: min(100vw, calc(100vh * 16 / 9)); }

@media (hover: none), (pointer: coarse), (max-width: 700px) {
  .fh-hi { margin: 1rem auto; }
  .fh-hi__controls { display: flex; }
  .fh-hi__hint { display: none; }
}

@media (max-width: 500px) and (orientation: portrait) {
  .fh-hi__controls { gap: 0.5rem; }
  .fh-hi__controls button { flex-basis: 62px; min-width: 52px; }
  .fh-hi__controls button[data-control="fire"] { flex-basis: 88px; }
  .fh-hi__controls button.fh-hi__utility { display: none; }
  .fh-hi__rotate { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .fh-hi__screen { transition: none; }
}

