:root { color-scheme: dark; font: 500 14px system-ui, sans-serif; color: #eeeae5; background: #141618; }
* { box-sizing: border-box; }
body { margin: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.preview-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: max(10px, env(safe-area-inset-top)) 12px 10px;
  border-bottom: 1px solid #413739;
  background: #221e21;
}
.preview-tools a { color: #f5bc93; padding: 10px 0; }
.preview-tools button, .preview-tools select {
  min-height: 44px;
  min-width: 0;
  max-width: 100%;
  border: 1px solid #66555a;
  border-radius: 7px;
  padding: 0 8px;
  background: #302a2e;
  color: #fff4e9;
  font: inherit;
}
.preview-tools button { cursor: pointer; }
.preview-tools button[aria-pressed='true'] { border-color: #f3ad7c; color: #ffd8ba; }
.preview-tools :focus-visible { outline: 2px solid #ffba83; outline-offset: 2px; }
#dimensions { color: #c7bec0; font: 12px/1.3 ui-monospace, monospace; }
#preview-area { flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; }
#frame-slot { position: relative; overflow: hidden; box-shadow: 0 0 0 1px #625859, 0 8px 30px #070809b3; }
#game-frame { position: absolute; top: 0; left: 0; border: 0; transform-origin: top left; }
