:root {
  --title-h: 150px;
}
@media (max-width: 700px) {
  :root { --title-h: 92px; }
}
@media (max-height: 500px) {
  :root { --title-h: 64px; }
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  background: #000;
  color: #fff;
  font-family: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
body {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  padding-top: env(safe-area-inset-top);
}
#title {
  flex: 0 0 var(--title-h);
  height: var(--title-h);
  position: relative;
}
#fire {
  display: block;
  width: 100%;
  height: 100%;
}
#stage {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 env(safe-area-inset-bottom);
}
#frame {
  width: min(100%, calc((100dvh - var(--title-h) - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * 16 / 9));
  aspect-ratio: 16 / 9;
  max-height: 100%;
  background: #000;
}
#frame iframe, #player {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
#unmute {
  position: absolute;
  inset: 0;
  margin: auto;
  width: max-content;
  height: max-content;
  padding: 14px 28px;
  font: inherit;
  font-size: 28px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid #ff7a00;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(255, 90, 0, 0.6);
  animation: pulse 1.6s ease-in-out infinite;
}
#unmute[hidden] { display: none; }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
