html[data-palette="ink"] { color-scheme: dark; }
* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}
body.share {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.05rem/1.35 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { filter: brightness(0.92); }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
  padding: 0.55rem 0.95rem;
  padding-top: calc(0.45rem + env(safe-area-inset-top, 0px));
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}
.brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.4rem;
  display: block;
}
.more {
  font: 700 0.62rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.28rem 0.5rem;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  border-radius: var(--radius);
}

.pitch {
  flex-shrink: 0;
  padding: 0.15rem 0.95rem 0.7rem;
}
.pitch h1 {
  margin: 0;
  font: 700 clamp(1.35rem, 6.4vw, 2.1rem)/1.12 var(--sans);
  letter-spacing: -0.04em;
  color: var(--ink);
  max-width: 18ch;
}

.film {
  flex: 1;
  min-height: 0;
  container-type: size;
  display: grid;
  align-items: start;
  justify-items: center;
  background: #000;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.stage {
  position: relative;
  aspect-ratio: 16 / 9;
  width: min(100cqw, calc(100cqh * 16 / 9));
  background: #000;
  overflow: hidden;
}
.stage video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border: 0;
  background: color-mix(in srgb, #000 16%, transparent);
  color: var(--accent-ink);
  cursor: pointer;
  padding: 0;
}
.play[hidden],
.film.playing .play { display: none; }
.play span {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  font-size: 0;
}
.play span::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--accent-ink);
  margin-left: 4px;
}
.play .hint {
  font: 500 0.78rem/1 var(--sans);
  color: #f0ebe4;
  text-shadow: 0 1px 8px #000;
}
.veil {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #000;
  opacity: 0;
  pointer-events: none;
}
.film.is-restarting .veil { opacity: 1; transition: none; }
.film.is-restarting.is-revealing .veil {
  opacity: 0;
  transition: opacity 0.55s ease;
}

@media (min-width: 720px) {
  .bar, .pitch { padding-left: clamp(1.25rem, 4vw, 2.25rem); padding-right: clamp(1.25rem, 4vw, 2.25rem); }
  .pitch h1 { max-width: 22ch; }
}
