.ga-dialog {
  width: min(810px, calc(100vw - 24px), max(410px, calc(125svh - 168px)));
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  color: #f3f3eb;
  background: #181b19;
  border: 1px solid #545a51;
}
.ga-dialog::backdrop { background: rgb(12 15 14 / 91%); }
:root:has(.ga-dialog[open]) { overflow: hidden; scrollbar-gutter: stable; }
.ga-bar, .ga-controls { display: flex; align-items: center; }
.ga-bar {
  justify-content: space-between;
  gap: 10px;
  padding: 6px clamp(12px, 2.2vw, 24px);
}
.ga-bar h2 { margin: 0; font-size: clamp(1.15rem, 2.3vw, 1.65rem); letter-spacing: -.045em; }
.ga-dialog button {
  min-height: 44px;
  color: inherit;
  background: transparent;
  border: 0;
  font-family: inherit;
}
.ga-close { display: inline-flex; gap: 8px; align-items: center; padding: 0 5px; font-size: .875rem; }
.ga-close span { color: var(--orange); font-size: 1.35rem; line-height: 1; }
.ga-stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 5 / 4;
  width: 100%;
  background: #272d2b;
  touch-action: pan-y pinch-zoom;
}
.ga-view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
}
.ga-view.is-current { opacity: 1; z-index: 1; }
.ga-view.is-turning { opacity: 1; z-index: 2; }
.ga-joint {
  position: absolute;
  z-index: 3;
  left: 62.9%;
  top: 18.2%;
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border: 1px solid var(--orange);
  background: rgb(25 27 24 / 34%);
  box-shadow: 0 0 0 1px rgb(25 27 24 / 55%);
  transform: rotate(45deg);
  opacity: 0;
  pointer-events: none;
}
.ga-controls { gap: 2px; padding: 4px clamp(8px, 1.8vw, 18px); }
.ga-controls button {
  flex: 1;
  position: relative;
  padding: 5px 10px;
  color: #d6dad2;
  font-size: .92rem;
  font-weight: 610;
}
.ga-controls button::after {
  content: '';
  position: absolute;
  right: 8px;
  bottom: 1px;
  left: 8px;
  height: 2px;
  background: #4a5049;
}
.ga-controls button[aria-pressed=true] { color: var(--orange); }
.ga-controls button[aria-pressed=true]::after { background: currentColor; }
.ga-controls button:disabled { opacity: .5; cursor: default; }
.ga-dialog button:focus-visible { outline: 2px solid #ffac69; outline-offset: -2px; }
.ga-status { margin: 0; padding: 8px 14px 0; font-size: .83rem; }
.ga-status:empty { display: none; }
@media (hover: hover) {
  .ga-dialog button:enabled:hover { color: var(--orange); }
}
@media (orientation: landscape) and (max-height: 500px) {
  .ga-dialog { width: min(90vw, max(255px, calc(125svh - 158px))); }
}
