:root {
  color-scheme: light;
  --red: #aa2222;
  --yellow: #ffc221;
  --white: #ffffff;
  --ink: #15100d;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei",
    sans-serif;
}

.stage {
  position: fixed;
  inset: 0;
  background: var(--ink);
}

.player {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: var(--ink);
  object-fit: contain;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  align-content: center;
  gap: clamp(24px, 5vw, 42px);
  width: 100%;
  min-height: 100svh;
  padding: 28px;
  color: var(--white);
  background: var(--red);
  overflow-y: auto;
  transition:
    opacity 260ms ease,
    transform 260ms ease,
    visibility 260ms ease;
}

.stage.is-video-loaded .splash {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.015);
  pointer-events: none;
}

.splash[hidden] {
  display: none;
}

.splash-tagline {
  margin: -18px 0 0;
  color: var(--white);
  font-size: clamp(18px, 4vw, 30px);
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  animation: sukisukiTaglineIn 680ms ease-out 120ms both;
}

.splash-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 12px;
  width: min(100%, 486px);
}

.splash-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  padding: 0 16px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 780;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
  animation: sukisukiActionIn 520ms ease-out 260ms both;
}

.splash-action:nth-child(2) {
  animation-delay: 360ms;
}

.splash-action:nth-child(3) {
  animation-delay: 460ms;
}

.splash-action:hover {
  transform: translateY(-1px);
}

.splash-primary {
  border: 1px solid var(--yellow);
  color: var(--ink);
  background: var(--yellow);
}

.splash-secondary {
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: rgba(255, 255, 255, 0.94);
  background: rgba(21, 16, 13, 0.14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.splash-action:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.72);
  outline-offset: 3px;
}

.logo {
  position: relative;
  width: min(78vw, 560px);
  aspect-ratio: 1;
  display: block;
  animation: sukisukiLogoIn 720ms cubic-bezier(0.2, 0.84, 0.22, 1) both;
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.back-home {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 4;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: rgba(21, 16, 13, 0.38);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 22px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.stage.is-video-loaded + .back-home {
  opacity: 1;
  transform: translateY(0);
}

.recruitment-panel {
  width: min(100%, 560px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 8px;
  color: var(--white);
  background: rgba(21, 16, 13, 0.24);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.recruitment-panel[hidden] {
  display: none;
}

.recruitment-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.recruitment-copy {
  min-width: 0;
  display: grid;
  gap: 12px;
  justify-items: start;
}

.author-note {
  display: grid;
  gap: 7px;
}

.author-note p {
  margin: 0;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.52;
}

.author-note-lead {
  color: var(--yellow);
  font-weight: 900;
}

.author-name {
  display: inline-block;
  color: var(--yellow);
  font-weight: 950;
  white-space: nowrap;
}

.recruitment-home-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.recruitment-home-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(21, 16, 13, 0.2);
}

.octopus-blink {
  position: relative;
  width: clamp(72px, 14vw, 104px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  animation: octopusFloat 2.4s ease-in-out infinite;
}

.octopus-blink img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.octopus-open {
  animation: octopusOpenEye 2.4s steps(1, end) infinite;
}

.octopus-closed {
  opacity: 0;
  animation: octopusClosedEye 2.4s steps(1, end) infinite;
}

@keyframes sukisukiLogoIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes sukisukiTaglineIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sukisukiActionIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes octopusOpenEye {
  0%,
  55%,
  68%,
  100% {
    opacity: 1;
  }

  56%,
  67% {
    opacity: 0;
  }
}

@keyframes octopusClosedEye {
  0%,
  55%,
  68%,
  100% {
    opacity: 0;
  }

  56%,
  67% {
    opacity: 1;
  }
}

@keyframes octopusFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo,
  .splash-tagline,
  .splash-action {
    animation: none;
  }

  .octopus-blink,
  .octopus-open,
  .octopus-closed {
    animation: none;
  }

  .octopus-open {
    opacity: 1;
  }

  .octopus-closed {
    opacity: 0;
  }
}

@media (max-width: 560px) {
  .logo {
    width: min(88vw, 560px);
  }

  .splash-actions {
    grid-template-columns: 1fr;
    width: min(100%, 260px);
  }

  .recruitment-panel {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .recruitment-copy {
    justify-items: center;
  }
}
