/* Part Fleet — reserved-height arcade stage. Loaded only on /games/part-fleet/.
   Keeps the canvas box from shifting when JS or ads load. Avoids 100vw / negative
   gutters so a 390px phone does not grow a horizontal scrollbar from this block. */
.vf-pf { max-width: 52rem; overflow-x: clip; }
.vf-pf-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 220px;
  background: #07262c;
  border-radius: 12px;
  overflow: hidden;
  isolation: isolate;
}
.vf-pf-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.vf-pf-hud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 0.65rem;
  font-size: 1rem;
  color: #4a4a4a;
}
.vf-pf-hud strong { color: #123; }
.vf-pf-q {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.65rem;
  color: #123;
  min-height: 1.7em;
}
.vf-pf-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  align-items: center;
}
.vf-pf-controls .button { min-height: 2.75rem; min-width: 2.75rem; touch-action: manipulation; }
.vf-pf-controls .vf-pf-wide { flex: 1 1 8rem; }
.vf-pf-fb { min-height: 1.5rem; margin: 0.35rem 0 0; font-size: 1rem; }
.vf-pf-fb.is-ok { color: #1d6b3c; font-weight: 600; }
.vf-pf-fb.is-no { color: #b42318; font-weight: 600; }
.vf-pf-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem;
  text-align: center;
  background: rgba(7, 38, 44, 0.82);
  color: #e8f1f2;
  z-index: 2;
}
.vf-pf-overlay[hidden] { display: none !important; }
/* Bulma .button { display: inline-flex } would otherwise ignore the hidden attribute. */
.vf-pf-overlay button[hidden] { display: none !important; }
.vf-pf-overlay h2 { color: #f2c14e; font-size: 1.6rem; margin: 0; }
.vf-pf-overlay p { margin: 0; max-width: 28rem; }
.vf-pf-page { overflow-x: clip; max-width: 100%; }
@media (max-width: 480px) {
  .vf-pf-q { font-size: 1.15rem; }
  .vf-pf-stage { min-height: 280px; }
  .vf-pf-overlay { padding: 0.65rem 0.75rem; gap: 0.4rem; overflow-y: auto; }
  .vf-pf-overlay h2 { font-size: 1.25rem; }
  .vf-pf-overlay p { font-size: 0.95rem; }
}

/* This sheet is loaded only on /games/part-fleet/. Clip and zero the Bulma
   -0.75rem column gutters so a 390px phone does not get a horizontal scrollbar. */
html:has(.vf-pf-page),
body:has(.vf-pf-page) { overflow-x: clip; }
.vf-pf-page .columns { margin-left: 0; margin-right: 0; }
