html, body { margin: 0; height: 100%; background: #05070f; overflow: hidden; }
canvas { display: block; width: 100vw; height: 100vh; height: 100svh; }
.film-ui {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px max(18px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  font: 600 13px/1 "Pretendard Variable", Pretendard, -apple-system, sans-serif;
  color: #f3f5fb;
  transition: opacity .4s;
}
.film-ui.idle { opacity: 0; }
.film-ui a { color: #c5cbe4; text-decoration: none; }
.film-ui a:hover { color: #fff; }
.ctrl { display: flex; gap: 8px; }
.ctrl button {
  font: inherit; color: #0a0f26; background: #ffe100; border: 0; border-radius: 980px;
  padding: 10px 16px; cursor: pointer;
}
.ctrl button + button { background: rgba(243,245,251,.14); color: #f3f5fb; backdrop-filter: blur(12px); }
.ctrl button:focus-visible, .film-ui a:focus-visible { outline: 2px solid #ffe100; outline-offset: 3px; }
body.export .film-ui { display: none; }
body.export canvas { width: auto; height: auto; max-width: 100vw; max-height: 100vh; }
