/* ══════════ 온파트너 시네마틱 인트로 ══════════ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at 50% 38%, #0c0c0c, #050505 72%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.8s ease;
}
.intro.hide { opacity: 0; pointer-events: none; }
.intro.gone { display: none; }

/* 배경 글로우 + 은은한 격자 */
.intro-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px circle at 50% 40%, rgba(190,255,0,0.18), transparent 60%),
    radial-gradient(1000px circle at 50% 120%, rgba(190,255,0,0.06), transparent 55%);
  animation: introBgPulse 4s ease-in-out infinite;
}
@keyframes introBgPulse {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}
.intro-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 45%, #000 25%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 25%, transparent 70%);
}

/* 대각선 라이트 스윕 */
.intro-sweep {
  position: absolute;
  top: -50%;
  left: -40%;
  width: 55%;
  height: 200%;
  background: linear-gradient(105deg, transparent, rgba(190,255,0,0.10), transparent);
  transform: rotate(8deg);
  animation: introSweep 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes introSweep {
  0%   { left: -45%; opacity: 0; }
  35%, 60% { opacity: 1; }
  100% { left: 125%; opacity: 0; }
}

/* 건너뛰기 */
.intro-skip {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 3;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform 0.15s, background 0.2s, color 0.2s;
}
.intro-skip:hover {
  background: rgba(190,255,0,0.12);
  color: var(--lime, #BEFF00);
  border-color: rgba(190,255,0,0.4);
  transform: translateY(-1px);
}
.intro-skip:active { transform: scale(0.94); }

/* 씬 공통 — 블러+스케일 시네마틱 전환 */
.intro-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
  filter: blur(7px);
  transition: opacity 0.7s ease, transform 0.75s cubic-bezier(.22,.61,.36,1), filter 0.7s ease;
  padding: 24px;
}
.intro-scene.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  filter: blur(0);
}

/* 라인 타이포 */
.intro-line {
  font-size: clamp(34px, 8vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #F5F5F5;
  line-height: 1.16;
}
.intro-line em {
  font-style: normal;
  color: var(--lime, #BEFF00);
  text-shadow: 0 0 42px rgba(190,255,0,0.5);
  position: relative;
}
/* 언더라인 드로잉 */
.intro-scene.active em[data-draw]::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.14em;
  height: 5px;
  width: 100%;
  background: var(--lime, #BEFF00);
  border-radius: 3px;
  box-shadow: 0 0 18px rgba(190,255,0,0.7);
  transform-origin: left;
  animation: drawLine 0.7s ease 0.4s both;
}
@keyframes drawLine {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.intro-line-sm {
  font-size: clamp(18px, 4.4vw, 27px);
  font-weight: 600;
  color: rgba(255,255,255,0.58);
  animation: fadeUp 0.6s ease both;
}

.intro-sub {
  font-size: clamp(14px, 3.4vw, 19px);
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  animation: fadeUp 0.6s ease 0.55s both;
}

/* SCENE 0 — 키커 */
.intro-kicker {
  font-size: clamp(12px, 3vw, 15px);
  font-weight: 800;
  letter-spacing: 0.5em;
  color: var(--lime, #BEFF00);
  opacity: 0.85;
  padding-left: 0.5em;
  animation: fadeUp 0.7s ease both;
}

/* SCENE 1 — 뱃지 */
.intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(190,255,0,0.08);
  border: 1px solid rgba(190,255,0,0.3);
  color: var(--lime, #BEFF00);
  font-size: clamp(13px, 3vw, 15px);
  font-weight: 700;
  animation: badgePop 0.6s cubic-bezier(.22,1.4,.36,1) both;
}
.intro-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime, #BEFF00);
  box-shadow: 0 0 10px var(--lime, #BEFF00);
  animation: dotBlink 1.3s ease-in-out infinite;
}
@keyframes badgePop {
  0%   { opacity: 0; transform: scale(0.6); }
  100% { opacity: 1; transform: scale(1); }
}

/* SCENE 2 — 카운터 */
.intro-earn {
  font-size: clamp(54px, 13vw, 108px);
  font-weight: 900;
  background: linear-gradient(180deg, #EAFFB0, var(--lime, #BEFF00) 58%, #8FD100);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
  line-height: 1;
  filter: drop-shadow(0 0 34px rgba(190,255,0,0.4));
}

/* SCENE 3 — 로고 */
.intro-logo {
  font-size: clamp(46px, 12vw, 104px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}
.intro-logo .on {
  display: inline-block;
  color: #060606;
  background: var(--lime, #BEFF00);
  border-radius: 18px;
  padding: 0.04em 0.16em;
  margin-right: 0.04em;
  box-shadow: 0 0 44px rgba(190,255,0,0.55);
  animation: logoOnDrop 0.7s cubic-bezier(.22,1.4,.36,1) both;
}
.intro-logo .rest {
  color: #F5F5F5;
  animation: logoRestSlide 0.6s ease 0.18s both;
}
@keyframes logoOnDrop {
  0%   { opacity: 0; transform: translateY(-40px) scale(0.6) rotate(-10deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}
@keyframes logoRestSlide {
  0%   { opacity: 0; transform: translateX(24px); letter-spacing: 0.2em; }
  100% { opacity: 1; transform: translateX(0); letter-spacing: -0.03em; }
}
.intro-tagline {
  font-size: clamp(16px, 3.6vw, 24px);
  font-weight: 600;
  color: rgba(255,255,255,0.62);
  animation: fadeUp 0.6s ease 0.5s both;
}
.intro-domain {
  font-size: clamp(14px, 3.4vw, 18px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--lime, #BEFF00);
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(190,255,0,0.25);
  background: rgba(190,255,0,0.05);
  animation: fadeUp 0.6s ease 0.75s both;
}

@keyframes fadeUp {
  0%   { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes dotBlink {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .intro-bg, .intro-sweep, .intro-badge-dot,
  .intro-badge, .intro-logo .on, .intro-logo .rest,
  .intro-tagline, .intro-domain, .intro-sub, .intro-kicker,
  .intro-line-sm, em[data-draw]::after {
    animation: none !important;
  }
  .intro-scene { filter: none !important; transition: opacity 0.4s ease !important; }
}
