#splash {
  background: var(--white);
  overflow: hidden;
  justify-content: flex-start;
  align-items: center;
  padding: 0;
  cursor: pointer;
}

.splash-graphic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.splash-graphic-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transform-origin: 50% 50%;
  animation: splashIlluPulse 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  will-change: transform;
}

@keyframes splashIlluPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.015); }
}

.splash-content {
  position: absolute;
  top: 56%;
  left: 50%;
  transform: translateX(-50%);
  width: min(88%, 760px);
  text-align: center;
  z-index: 3;
}

.splash-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: clamp(56px, 15vw, 170px);
  line-height: 0.96;          /* -4% */
  letter-spacing: -0.02em;
  color: var(--yellow);
}

.splash-sub {
  margin-top: clamp(10px, 2vw, 22px);
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: clamp(14px, 3.6vw, 30px);
  line-height: 0.98;          /* -2% */
  letter-spacing: 0.02em;
  color: var(--yellow);
}

.splash-tap {
  position: absolute;
  left: 50%;
  bottom: 11.2%;
  transform: translateX(-50%);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(13px, 3vw, 20px);
  letter-spacing: 0.02em;
  color: #878F8E;
  z-index: 4;
  white-space: nowrap;
  will-change: opacity;
  animation: splashTapPulse 2.4s ease-in-out infinite;
}

@keyframes splashTapPulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

/* ── Looping card-flip reveal — each line flips in, holds, flips out, repeats.
     GPU-only: transform + opacity. ── */
.splash-content { perspective: 900px; }

.flip-line {
  display: block;
  overflow: visible;
  perspective: 900px;
  transform-style: preserve-3d;
}

.flip-inner {
  display: inline-block;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  will-change: transform, opacity;
  animation: cardFlipLoop 6s cubic-bezier(0.2, 0.8, 0.2, 1) infinite both;
}

.splash-title .flip-line:nth-child(1) .flip-inner { animation-delay: 0.00s; }
.splash-title .flip-line:nth-child(2) .flip-inner { animation-delay: 0.18s; }
.splash-sub   .flip-line:nth-child(1) .flip-inner { animation-delay: 0.42s; }
.splash-sub   .flip-line:nth-child(2) .flip-inner { animation-delay: 0.60s; }

@keyframes cardFlipLoop {
  0%   { transform: rotateX(-92deg);              opacity: 0; }
  7%   { transform: rotateX(8deg);                opacity: 1; }
  10%  { transform: rotateX(0deg);                opacity: 1; }
  88%  { transform: rotateX(0deg);                opacity: 1; }
  93%  { transform: rotateX(92deg);               opacity: 0; }
  100% { transform: rotateX(-92deg);              opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .flip-inner            { animation: none; }
  .splash-graphic-img    { animation: none; }
  .splash-tap            { animation: none; opacity: 0.8; }
}

/* ── Kiosk 1080×1920 portrait ── */
@media (orientation: portrait) and (min-width: 1000px) and (min-height: 1700px) {
  .splash-title { font-size: clamp(140px, 14vw, 220px); }
  .splash-sub   { font-size: clamp(32px, 3vw, 48px); margin-top: 28px; }
  .splash-tap   { font-size: 32px; font-weight: 600; bottom: 215px; }
}

/* ── Mobile small ── */
@media (max-width: 380px) {
  .splash-content { top: 54%; }
  .splash-tap     { bottom: 12%; }
}
