@font-face {
  font-family: 'Inter';
  src: url('/docs/studio-demo/fonts/InterVariable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f6f6f6;
  color: #181818;
  font:
    14px 'Inter',
    Arial,
    sans-serif;
}
header,
footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #fff;
}
header {
  justify-content: space-between;
  border-bottom: 1px solid #e4e4e4;
}
header a {
  white-space: nowrap;
  color: #181818;
  font-weight: 600;
  text-decoration: none;
}
h1 {
  text-align: right;
  min-width: 0;
  font-size: 14px;
  margin: 0 0 0 auto;
  font-weight: 600;
}
header a,
header h1 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.scene {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  background: #fff;
}
iframe {
  width: 1600px;
  height: 900px;
  position: absolute;
  inset: 0;
  border: 0;
  transform-origin: 0 0;
}
footer {
  border-top: 1px solid #e5e5e5;
  gap: 20px;
  padding: 16px 20px;
  min-height: 80px;
  background: #fff;
}
.icon-button {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  font: inherit;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #4f4f4f;
  cursor: pointer;
  transition: background 150ms, color 150ms, box-shadow 150ms;
}
.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-button:hover:not(:disabled) {
  background: #e8e8e8;
  color: #181818;
}
.icon-button:active:not(:disabled) {
  background: #dedede;
}
.icon-button:focus-visible {
  outline: 2px solid #555;
  outline-offset: 3px;
}
.icon-button::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 9px;
  border-radius: 6px;
  background: #222;
  color: #fff;
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  z-index: 10000;
  transition: opacity 120ms;
}
.icon-button:hover:not(:disabled)::after,
.icon-button:focus-visible::after {
  opacity: 1;
}
.player-controls,
.playback-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}
.player-controls {
  gap: 12px;
}
.playback-controls {
  padding: 4px;
  border: 1px solid #e4e4e4;
  border-radius: 28px;
  background: #f7f7f7;
}
#play {
  width: 44px;
  height: 44px;
  background: #222;
  color: #fff;
  box-shadow: 0 2px 5px #0000001a;
}
#play:hover:not(:disabled) {
  background: #444;
  color: #fff;
}
#play .play-icon {
  fill: currentColor;
  stroke: none;
  margin-left: 1px;
}
#play .pause-icon,
#play[data-playing='true'] .play-icon,
.collapse-icon,
:fullscreen .expand-icon {
  display: none;
}
#play[data-playing='true'] .pause-icon,
:fullscreen .collapse-icon {
  display: block;
}
button:disabled {
  opacity: 0.3;
  cursor: default;
}
.caption {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
  line-height: 1.5;
  color: #333;
}
.counter {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid #dedede;
  border-radius: 8px;
  background: #f3f3f3;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #444;
  white-space: nowrap;
}
@media (max-width: 620px) {
  footer { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px; }
  .player-controls { justify-content: center; }
  .caption { gap: 10px; font-size: 13px; }
  header { gap: 8px; padding: 12px 16px; }
  h1 { font-size: 14px; }
}
.cursor {
  pointer-events: none;
  position: absolute;
  width: 18px;
  height: 24px;
  opacity: 0;
  z-index: 9999;
  transition:
    left 0.35s,
    top 0.35s;
  filter: drop-shadow(0 2px 2px #0004);
}
.scene iframe {
  pointer-events: none;
}
.interaction-shield {
  position: absolute;
  inset: 0;
  z-index: 9998;
  user-select: none;
  touch-action: pan-y;
}
.cursor::before {
  content: '';
  display: block;
  width: 16px;
  height: 23px;
  background: #171717;
  clip-path: polygon(0 0, 0 100%, 34% 76%, 55% 100%, 72% 92%, 50% 68%, 90% 65%);
}
#gallery {
  max-width: 1120px;
  margin: 36px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  padding: 0 20px;
}
#gallery a {
  display: block;
  background: #fff;
  padding: 24px;
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}
#gallery small {
  color: #555;
}
#gallery h2 {
  font-size: 18px;
}
#gallery p {
  line-height: 1.6;
  color: #525252;
}
[hidden] {
  display: none !important;
}
:fullscreen {
  background: #fff;
}
:fullscreen body {
  height: 100vh;
  display: flex;
  flex-direction: column;
}
:fullscreen header,
:fullscreen footer {
  flex-shrink: 0;
}
:fullscreen #player {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
:fullscreen .scene {
  flex: 1;
  min-height: 0;
  aspect-ratio: auto;
}
@media (prefers-reduced-motion: reduce) {
  .icon-button, .icon-button::after { transition: none; }
}
