/**
 * Native Flash 4 timeline player (P4.9 side quest; smoke page only).
 *
 * Stage = HTML embed 320×216; the SVG keeps the 342×228 SWF stage with
 * showAll scaling (xMidYMid meet), like Flash. Poster JPEG shows
 * until the SVG is built; <noscript> shows the same still.
 */

.swf-native-figure {
  margin: 0;
}

.swf-native {
  --swfn-w: 320;
  --swfn-h: 216;
}

.swf-native-stage {
  position: relative;
  width: calc(var(--swfn-w) * 1px);
  max-width: 100%;
  aspect-ratio: var(--swfn-w) / var(--swfn-h);
  background-color: var(--color-bg, #000);
  background-image: var(--swfn-poster);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  overflow: hidden;
}

.swf-native--ready .swf-native-stage {
  background-image: none;
}

html:not(.js) .swf-native-stage {
  display: none;
}

.swf-native-svg {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.swf-native-sound {
  position: absolute;
  top: 6px;
  left: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--color-text-raeume, #ffcc99);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid currentColor;
  cursor: pointer;
}

.swf-native-sound[hidden] {
  display: none;
}

.swf-native-fallback {
  display: block;
  width: calc(var(--swfn-w) * 1px);
  max-width: 100%;
  height: auto;
  aspect-ratio: var(--swfn-w) / var(--swfn-h);
  background: var(--color-bg, #000);
}

.swf-native-controls {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2, 10px);
  margin-top: var(--space-1, 5px);
}

.swf-native--manual .swf-native-controls {
  display: flex;
}

.swf-native--manual .swf-native-sound {
  display: none;
}

.swf-native-btn {
  font-family: var(--font-body, Geneva, "Helvetica Neue", Arial, sans-serif);
  font-size: var(--font-size-2, 13px);
  color: var(--color-link, #ff0000);
  background: transparent;
  border: 1px solid var(--color-link, #ff0000);
  padding: var(--space-1, 5px) var(--space-2, 10px);
  cursor: pointer;
}

.swf-native-btn:focus-visible,
.swf-native-sound:focus-visible {
  outline: var(--focus-ring, 2px solid #ff0000);
  outline-color: var(--color-text, #ffcc99);
  outline-offset: 2px;
}

.swf-native-frame {
  margin: var(--space-1, 5px) 0 0;
  color: #996633;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
