#root .gr-startup-video {
  display: grid;
  place-items: center;
  inline-size: 100%;
  block-size: 100vh;
  block-size: 100dvh;
  background: #0b0a0b;
}

#root .gr-startup-video-stage {
  --startup-controls-top: max(12px, env(safe-area-inset-top, 0px));
  --startup-controls-left: max(12px, env(safe-area-inset-left, 0px));
  --startup-controls-right: max(12px, env(safe-area-inset-right, 0px));
  --startup-sound-size: 46px;
  --startup-controls-paper: rgb(255 249 241 / 96%);
  --startup-controls-ink: #5e292d;
  position: relative;
  inline-size: min(100%, 56.25vh);
  inline-size: min(100%, 56.25dvh);
  aspect-ratio: 9 / 16;
}

#root .gr-startup-video video {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: contain;
}

#root :is(.gr-startup-video-skip, .gr-startup-video-sound) {
  position: absolute;
  z-index: 1;
  inset-block-start: var(--startup-controls-top);
  border: 1px solid rgb(156 100 82 / 34%);
  background: var(--startup-controls-paper);
  box-shadow: 0 2px 8px rgb(63 29 25 / 16%);
  color: var(--startup-controls-ink);
  cursor: pointer;
}

#root .gr-startup-video-skip {
  inset-inline-end: var(--startup-controls-right);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px 6px;
  inline-size: max-content;
  min-inline-size: 44px;
  max-inline-size: calc(100% - var(--startup-controls-left) - var(--startup-controls-right) - var(--startup-sound-size) - 8px);
  min-block-size: var(--startup-sound-size);
  padding: 5px clamp(8px, 3.4%, 13px);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
}

#root .gr-startup-video-seconds {
  font-variant-numeric: tabular-nums;
}

#root .gr-startup-video-skip-mark {
  display: block;
  inline-size: 6px;
  block-size: 6px;
  margin-inline-start: 1px;
  border-block-start: 1.4px solid currentColor;
  border-inline-end: 1.4px solid currentColor;
  transform: rotate(45deg);
}

@media (hover: hover) {
  #root :is(.gr-startup-video-skip, .gr-startup-video-sound):hover { background: #fff5e8; }
}

#root :is(.gr-startup-video-skip, .gr-startup-video-sound):active { background: #f3e2d7; }
#root :is(.gr-startup-video-skip, .gr-startup-video-sound):focus-visible {
  outline: 2px solid #632629;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgb(255 249 241 / 90%);
}

#root .gr-startup-video-sound {
  inset-inline-start: var(--startup-controls-left);
  display: grid;
  place-items: center;
  inline-size: var(--startup-sound-size);
  block-size: var(--startup-sound-size);
  padding: 0;
  border-radius: 14px;
}

#root .gr-startup-video-sound-icon {
  position: relative;
  inline-size: 24px;
  block-size: 20px;
}

#root .gr-startup-video-sound-icon::before {
  position: absolute;
  inset: 6px auto auto 2px;
  inline-size: 5px;
  block-size: 8px;
  border: 1.5px solid currentColor;
  border-inline-end: 0;
  border-radius: 2px 0 0 2px;
  content: "";
}

#root .gr-startup-video-sound-icon::after {
  position: absolute;
  inset: 2px auto 2px 6px;
  inline-size: 8px;
  background: currentColor;
  clip-path: polygon(evenodd, 0 27%, 100% 0, 100% 100%, 0 73%, 0 27%,
    1.4px 33%, 1.4px 67%, calc(100% - 1.4px) 84%, calc(100% - 1.4px) 16%, 1.4px 33%);
  content: "";
}

#root .gr-startup-video-sound-detail {
  position: absolute;
  inset: 3px 2px 3px auto;
  inline-size: 7px;
  border-inline-end: 1.5px solid currentColor;
  border-radius: 50%;
}

#root .gr-startup-video-sound-detail::after {
  position: absolute;
  inset: 2px 2px 2px auto;
  inline-size: 5px;
  border-inline-end: 1.5px solid currentColor;
  border-radius: 50%;
  content: "";
}

#root .gr-startup-video-sound[data-muted="true"] .gr-startup-video-sound-detail {
  z-index: 1;
  inset: 9px 1px auto;
  inline-size: auto;
  block-size: 1.5px;
  border: 0;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 0 0 1.5px var(--startup-controls-paper);
  transform: rotate(-43deg);
}

#root .gr-startup-video-sound[data-muted="true"] .gr-startup-video-sound-detail::after {
  content: none;
}

@media (max-height: 440px), (max-width: 290px) {
  #root .gr-startup-video-skip-mark { display: none; }
}
