/* A small playable world, edited through three cumulative ideas. */
.vg-editor { min-width: 0; align-self: center; background: #fff; padding: 24px; }
.vg-editor [hidden] { display: none; }
.vg-editor__header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.vg-editor__header > strong { font-size: 20px; font-weight: 600; line-height: 1.35; letter-spacing: -.025em; }
.vg-editor__reset { width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: #f2f2ee; font-size: 28px; line-height: 1; transition: transform 180ms; }
.vg-editor__reset:disabled { opacity: .35; cursor: default; }
.vg-editor__reset:not(:disabled):hover { transform: rotate(-20deg); }
.vg-editor__viewport { position: relative; width: 100%; aspect-ratio: 16 / 11; overflow: hidden; background: #e8f1e8; }
.vg-editor__canvas, .vg-editor__poster { display: block; width: 100%; height: 100%; object-fit: cover; }
.vg-editor__hud { position: absolute; inset: 16px 16px auto; display: flex; align-items: start; justify-content: space-between; gap: 10px; pointer-events: none; }
.vg-editor__hud > span { font-size: 13px; line-height: 1.4; color: #273c37; background: #fff; padding: 6px 9px; }
.vg-editor__score { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.vg-editor__tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.vg-editor__tools > button { min-width: 0; min-height: 48px; padding: 10px 8px; background: #f2f2ee; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 14px; font-weight: 500; line-height: 1.35; transition: transform 150ms, background-color 150ms; }
.vg-editor__tools > button > span { flex: none; font-size: 19px; line-height: 1; }
.vg-editor__tools > button[aria-pressed="true"] { background: #f5b5e9; }
.vg-editor__tools > button:hover { transform: translateY(-2px); }
.vg-editor__tools > button:active { transform: translateY(0); }
.vg-editor__caption { min-height: 42px; margin-top: 14px; font-size: 14px; line-height: 1.5; color: #454545; }
.vg-editor button:focus-visible { outline: 3px solid #121212; outline-offset: 3px; }
@media (max-width: 960px) {
  .vg-editor { align-self: start; }
}
@media (max-width: 560px) {
  .vg-editor { padding: 20px; }
  .vg-editor__header > strong { font-size: 19px; }
  .vg-editor__viewport { aspect-ratio: 6 / 5; min-height: 220px; }
  .vg-editor__hud { inset: 12px 10px auto; }
  .vg-editor__hud > span { font-size: 12px; padding: 5px 7px; }
  .vg-editor__tools { gap: 6px; }
  .vg-editor__tools > button { font-size: 13px; padding-inline: 5px; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .vg-editor button { transition: none; }
  .vg-editor__tools > button:hover, .vg-editor__reset:not(:disabled):hover { transform: none; }
}
