body.intro-active { overflow: hidden; }
.intro {
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  transition: opacity .45s ease;
}
.intro-stage {
  position: relative;
  width: min(72vw, 320px);
  height: 320px;
}
.intro-studio, .intro-game {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
}
.intro-studio { gap: 20px; }
.studio-symbol {
  width: 110px;
  height: 80px;
  overflow: hidden;
}
.studio-symbol img {
  display: block;
  width: 110px;
  height: 110px;
}
.intro-studio > span {
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 1px;
}
.intro-studio strong { font-weight: 650; }
.intro-mark {
  width: 160px;
  height: 160px;
  margin-bottom: 28px;
  stroke: currentColor;
  stroke-width: 9;
  fill: none;
  overflow: visible;
}
.mark-vertical, .mark-horizontal {
  stroke-dasharray: 191;
  stroke-dashoffset: 191;
}
.mark-dot {
  fill: currentColor;
  stroke: none;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.intro-wordmark {
  text-align: center;
  font-size: 26px;
  font-weight: 450;
  line-height: 1.3;
  letter-spacing: 4px;
  opacity: 0;
}
.intro-property {
  position: absolute;
  bottom: max(36px, env(safe-area-inset-bottom));
  left: 64px;
  right: 64px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--muted);
}
.intro-skip {
  position: absolute;
  bottom: max(22px, env(safe-area-inset-bottom));
  right: max(20px, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
}
.intro-skip:hover { color: var(--text); }
.intro.playing .intro-studio { animation: studio-arrive 1.25s ease both; }
.intro.playing .intro-game { animation: game-arrive .6s 1.05s ease both; }
.intro.playing .mark-dot { animation: dot-arrive .5s 1.15s ease both; }
.intro.playing .mark-vertical { animation: ink-draw .7s 1.3s ease both; }
.intro.playing .mark-horizontal { animation: ink-draw .7s 1.5s ease both; }
.intro.playing .intro-wordmark { animation: game-arrive .7s 1.85s ease both; }
@keyframes studio-arrive {
  0% { opacity: 0; transform: translateY(6px); }
  30%, 65% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes game-arrive {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes dot-arrive {
  from { opacity: 0; transform: scale(.65); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes ink-draw { to { stroke-dashoffset: 0; } }
@media (max-height: 450px) {
  .intro-stage { height: 230px; }
  .intro-mark { width: 100px; height: 100px; margin-bottom: 16px; }
  .intro-wordmark { font-size: 20px; }
  .intro-property { bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .intro { transition: none; }
  .intro.playing * { animation: none; }
  .intro.playing .intro-game, .intro.playing .intro-wordmark,
  .intro.playing .mark-dot { opacity: 1; }
  .intro.playing .mark-vertical, .intro.playing .mark-horizontal {
    stroke-dashoffset: 0;
  }
}
