/* Keep the scene and all overlaid objects in the same 16:9 coordinate system. */
.suite-training :is(#attempt, #next).primary:not(.next):not(:disabled) {
  color: #142e28; border-color: var(--suite-mint); background: var(--suite-mint);
}
.suite-training :is(#attempt, #next).primary:not(.next):hover:not(:disabled) { background: #e3fff0; }
.suite-training .game-mark {
  width: 2.45rem; height: 2.45rem; flex: none; place-content: center;
  border: 1px solid #789a9260; border-radius: 6px; background: #152b2dde;
}
.suite-training .tools button {
  display: grid; place-content: center; width: 2.45rem; height: 2.45rem;
  min-width: 0; min-height: 0; padding: 0; border: 1px solid #b8d5ca42;
  border-radius: 6px; color: #f2f8f5; background: #1b3139db; font-size: 1.12rem;
}
.suite-training .tools button:hover { background: #38554f; }
.suite-fiber .spot[data-label-edge="left"]::after { left: 0; transform: none; }
.suite-fiber .spot[data-label-edge="right"]::after { left: auto; right: 0; transform: none; }
.suite-fiber .spot[data-label-above]::after { top: auto; bottom: 100%; }

@media (min-width: 761px) {
  .suite-height #game, .suite-fiber .stage-wrap, .suite-pc #viewport {
    position: relative; isolation: isolate; overflow: hidden; background: #26383a;
  }
  .suite-height #game::before, .suite-fiber .stage-wrap::before, .suite-pc #viewport::before {
    content: ""; position: absolute; pointer-events: none; inset: -24px; z-index: -1;
    background: linear-gradient(#172a32b8, #182c31bf), var(--scene-image) center / cover;
    filter: blur(18px);
  }
  .suite-fiber #app {
    display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
    width: 100%; max-width: none; height: 100dvh; min-height: 0; margin: 0;
  }
  .suite-fiber .play-layout, .suite-fiber .stage-wrap { width: 100%; height: 100%; min-height: 0; }
  .suite-fiber .stage-wrap, .suite-pc #viewport { container-type: size; }
  .suite-fiber #stage, .suite-pc:not(.boot-bios) #viewport #stage {
    width: min(100cqw, calc(100cqh * 16 / 9));
    height: auto; max-height: none; aspect-ratio: 16 / 9;
  }
  .suite-fiber .topbar { min-height: 4rem; padding-block: .55rem; }
  .suite-fiber #footer {
    min-height: 4.2rem; gap: 1.25rem; padding: .65rem clamp(1rem, 2vw, 2.5rem);
  }
  .suite-fiber .progress {
    flex: 1 1 0; min-width: 0; flex-wrap: wrap; justify-content: flex-start;
    gap: .2rem clamp(.48rem, .72vw, 1rem); font-size: clamp(.72rem, .83vw, .9rem);
  }
  .suite-fiber .progress span { padding: .25rem 0; }
  .suite-fiber .footer-action { flex: 0 1 auto; }
  .suite-fiber .footer-action button { max-width: min(28vw, 26rem); }
  .suite-pc #game { height: 100dvh; min-height: 0; }
  .suite-pc #game > :is(header, #taskbar, #ram-help, footer) { flex: none; }
  .suite-pc #viewport { min-height: 0; }
  .suite-pc.boot-bios #viewport #stage { width: min(100%, 100rem); height: 100%; min-height: 0; }
  .suite-pc #boot-panel { overscroll-behavior: contain; }
  .suite-pc #controls { flex-wrap: wrap; }
  .suite-pc #view-controls { flex-wrap: wrap; }
  .suite-pc #action-controls { margin-left: auto; }
}
@media (min-width: 761px) and (max-width: 1490px) {
  .suite-fiber #interaction { display: none; }
}
@media (min-width: 761px) and (max-height: 800px) {
  .suite-pc #game > header { height: 3.6rem; padding-block: .4rem; }
  .suite-pc #controls { min-height: 3.7rem; padding-block: .5rem; }
}
