:root {
  color-scheme: dark;
  background: #080a0d;
  color: #f4eee0;
  font-family: system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  min-block-size: 100vh;
  min-block-size: 100svh;
  margin: 0;
  display: grid;
  padding: clamp(0.55rem, 2.2vmin, 1.6rem);
}

.title-card {
  --edge: clamp(0.9rem, 2.5vmin, 1.8rem);
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-inline-size: 0;
  min-block-size: 20rem;
  overflow: hidden;
  overflow: clip;
  border: 1px solid #d9d8d223;
  background:
    radial-gradient(ellipse 72% 86% at 50% 39%, #171e24 0%, #10151a 40%, #080a0d 81%),
    #080a0d;
}

.frame-marks {
  --mark: #e3d7b864;
  --line: linear-gradient(var(--mark), var(--mark));
  position: absolute;
  z-index: 2;
  inset: var(--edge);
  pointer-events: none;
  background:
    var(--line) top left / 13px 1px, var(--line) top left / 1px 13px,
    var(--line) top right / 13px 1px, var(--line) top right / 1px 13px,
    var(--line) bottom left / 13px 1px, var(--line) bottom left / 1px 13px,
    var(--line) bottom right / 13px 1px, var(--line) bottom right / 1px 13px;
  background-repeat: no-repeat;
}

.light {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(ellipse 32% 33% at 48% 40%, #ad845224, transparent 90%),
    radial-gradient(ellipse 57% 48% at 53% 59%, #375f7637, transparent 85%);
  opacity: 0.64;
  pointer-events: none;
}

.grain {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url('/grain.png');
  mix-blend-mode: soft-light;
  opacity: 0.28;
  pointer-events: none;
}

.composition {
  width: min(74vw, 30rem, 63svh);
  padding: 0;
  transform: translateY(-0.7rem);
}

.lockup {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.crescent, .raptor, .name, .entertainment {
  transform-box: fill-box;
  transform-origin: center;
}

.raptor {
  filter: drop-shadow(0 0.06rem 0.7rem #f4ddb51e);
}

.replay[hidden] { display: none; }

.replay {
  position: absolute;
  right: calc(var(--edge) + 0.8rem);
  bottom: calc(var(--edge) + 0.7rem);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-block-size: 2.75rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  color: #c9c2b4;
  background: transparent;
  font: 500 0.875rem/1 system-ui, sans-serif;
  cursor: pointer;
}

.replay svg { inline-size: 1.2rem; block-size: 1.2rem; }
.replay:hover { color: #fff8e9; border-color: #dad0bc42; }
.replay:focus-visible { outline: 2px solid #e3c395; outline-offset: 2px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .is-playing .light { animation: projector 4.6s ease-in-out both; }
  .is-playing .crescent { animation: moonrise 2.9s 0.18s cubic-bezier(.22, .71, .2, 1) both; }
  .is-playing .raptor { animation: glide 3.1s 0.34s cubic-bezier(.19, .77, .24, 1) both; }
  .is-playing .name { animation: credit 1.55s 1.65s ease-out both; }
  .is-playing .entertainment { animation: credit 1.55s 1.94s ease-out both; }
}

@keyframes projector {
  0% { opacity: 0.11; transform: translate(-9%, 5%) scale(.88); }
  48% { opacity: 0.94; }
  100% { opacity: 0.64; transform: none; }
}

@keyframes moonrise {
  0% { opacity: 0.03; clip-path: inset(0 95% 95% 0); }
  72% { opacity: 0.91; clip-path: inset(0); }
  100% { opacity: 1; clip-path: inset(0); }
}

@keyframes glide {
  0% { opacity: 0.04; transform: translate(-6%, 7%) rotate(-6deg) scale(.94); }
  100% { opacity: 1; transform: none; }
}

@keyframes credit {
  from { opacity: 0; transform: translateY(0.6rem); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .replay { display: none; }
}

@media (max-width: 35rem) {
  .composition { width: min(78vw, 29rem, 63svh); }
}
