/* Original 450 × 920 frame; screen extends slightly beneath the bezel. */
.training-demo {
  position: relative;
  width: min(100%, calc(min(82svh, 800px) * 450 / 920));
  height: auto;
  flex: none;
  max-width: 100%;
  aspect-ratio: 450 / 920;
}
.training-demo__screen {
  position: absolute;
  left: 5.11%;
  top: 2.39%;
  width: 89.78%;
  height: 95.22%;
  border-radius: 17% / 7.8%;
  object-fit: cover;
  background: #f5f5f5;
}
.training-demo__frame {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.training-demo__toggle {
  position: absolute;
  right: 8%;
  bottom: 5%;
  z-index: 1;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  background: rgba(21,30,32,.85);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.training-demo__toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.training-demo__toggle svg { width: 18px; height: 18px; fill: currentColor; }
.training-demo__toggle .training-demo__play { display: none; }
.training-demo__toggle.is-paused .training-demo__play { display: block; }
.training-demo__toggle.is-paused .training-demo__pause { display: none; }
@media (min-width: 641px) and (max-width: 1024px) {
  .training-demo { width: min(100%, calc(min(58svh, 570px) * 450 / 920)); }
}
@media (max-width: 640px) {
  .training-demo { width: 100%; height: auto; }
}
