/* ========================================================
   타잔서버 (Tarzan Server) - 시네마틱 인트로 페이지 스타일
   ======================================================== */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
  --tarzan-primary: #10b981;
  --tarzan-primary-glow: rgba(16, 185, 129, 0.45);
  --tarzan-gold: #fbbf24;
  --tarzan-gold-glow: rgba(251, 191, 36, 0.45);
  --tarzan-bg-dark: #070d09;
  --tarzan-bg-surface: rgba(15, 27, 20, 0.85);
  --tarzan-border: rgba(52, 211, 153, 0.25);
  --tarzan-text-main: #f0fdf4;
  --tarzan-text-sub: #a7f3d0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.intro-body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--tarzan-bg-dark);
  color: var(--tarzan-text-main);
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  position: relative;
  user-select: none;
}

/* ==========================================
   1. 백그라운드 비디오 & 시네마틱 오버레이
   ========================================== */
.intro-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  background: #000;
}

.intro-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: brightness(1) saturate(1);
  transition: filter 1.6s ease-in, transform 2.4s cubic-bezier(0.55, 0, 1, 0.45);
  will-change: transform, filter;
  cursor: pointer;
}

/* 영상 감상을 해치지 않는 가벼운 시네마틱 비네팅 */
.intro-video-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(3, 7, 5, 0.55) 100%),
              linear-gradient(to bottom, rgba(4, 8, 5, 0.45) 0%, transparent 18%, transparent 82%, rgba(4, 8, 5, 0.55) 100%);
  pointer-events: none;
  transition: opacity 1.2s ease;
}

/* 미스티 파티클 & 정글 앰비언트 글로우 */
.intro-ambient-fog {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: radial-gradient(ellipse at 50% 60%, rgba(16, 185, 129, 0.12) 0%, transparent 60%);
  pointer-events: none;
  animation: ambientPulse 8s infinite alternate ease-in-out;
  transition: opacity 1s ease;
}

@keyframes ambientPulse {
  0% { opacity: 0.4; transform: scale(1); }
  100% { opacity: 0.85; transform: scale(1.08); }
}

/* ==========================================
   1-1. 피날레 전환 타임라인 (body.is-finale 기준, 0s = 영상 8초 지점)
   0.0s ~ 1.5s : 중앙에서 원형 광채가 퍼지며 자연스럽게 전환 (영상은 가려지지 않고 유지)
   1.0s ~ 2.0s : 가운데에서 바깥쪽으로 갈수록 반투명해지는 원형 피날레 배경 등장
   1.7s ~ 3.1s : 메인페이지 워드마크 로고 등장
   2.6s        : 슬로건 등장
   3.1s ~      : 서버 이동 안내 & 링크 버튼 등장
   ========================================== */
body.is-finale .intro-video-bg {
  animation: videoFinaleTone 2.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes videoFinaleTone {
  0% {
    filter: brightness(1) saturate(1) contrast(1);
    transform: scale(1.02);
  }
  45% {
    filter: brightness(1.35) saturate(1.15) contrast(0.95);
    transform: scale(1.06);
  }
  100% {
    filter: brightness(0.92) saturate(1.08) contrast(1.02);
    transform: scale(1.08);
  }
}

body.is-finale .intro-ambient-fog {
  opacity: 0.35;
}

/* 중앙 원형 화이트/골드 플래시 (외곽 영상은 가리지 않음) */
.intro-flash {
  position: absolute;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 253, 243, 0.82) 24%,
    rgba(255, 246, 214, 0.38) 50%,
    rgba(255, 246, 214, 0.08) 70%,
    transparent 85%
  );
}

body.is-finale .intro-flash {
  animation: finaleFlash 2.8s forwards;
}

@keyframes finaleFlash {
  0%   { opacity: 0; transform: scale(0.75); animation-timing-function: cubic-bezier(0.55, 0, 0.9, 0.5); }
  46%  { opacity: 1; transform: scale(1.04); animation-timing-function: cubic-bezier(0.2, 0.6, 0.35, 1); }
  100% { opacity: 0; transform: scale(1.12); }
}

/* 가운데에서 바깥쪽으로 갈수록 반투명해지는 원형 피날레 배경 */
.intro-finale-bg {
  position: absolute;
  inset: 0;
  z-index: 20;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 251, 235, 0.84) 18%,
    rgba(240, 253, 244, 0.66) 35%,
    rgba(209, 250, 229, 0.40) 52%,
    rgba(167, 243, 208, 0.18) 68%,
    rgba(16, 185, 129, 0.06) 82%,
    transparent 96%
  );
}

/* 원형 배경 중심부 은은한 골드-에메랄드 오라 보강 */
.intro-finale-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(254, 243, 199, 0.35) 0%,
    rgba(167, 243, 208, 0.18) 38%,
    transparent 70%
  );
}

body.is-finale .intro-finale-bg {
  visibility: visible;
  animation: finaleBgIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.95s forwards;
}

@keyframes finaleBgIn {
  0% {
    opacity: 0;
    transform: scale(0.82);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* 천천히 회전하는 골드 & 에메랄드 광선 */
.finale-rays {
  position: absolute;
  top: 44%;
  left: 50%;
  width: 220vmax;
  height: 220vmax;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(
    from 0deg,
    rgba(251, 191, 36, 0.16) 0deg 6deg,
    transparent 6deg 18deg,
    rgba(52, 211, 153, 0.12) 18deg 23deg,
    transparent 23deg 36deg
  );
  -webkit-mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, 0.6) 18%, transparent 42%);
  mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, 0.6) 18%, transparent 42%);
}

body.is-finale .finale-rays {
  animation: raysSpin 80s linear infinite;
}

@keyframes raysSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 떠오르는 골드 더스트 파티클 (JS에서 생성) */
.finale-particles {
  position: absolute;
  inset: 0;
}

.finale-particle {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, #fde68a 0%, rgba(251, 191, 36, 0.65) 45%, transparent 72%);
  opacity: 0;
}

body.is-finale .finale-particle {
  animation: particleRise var(--dur, 9s) linear var(--delay, 0s) infinite;
}

.finale-particle.is-emerald {
  background: radial-gradient(circle, #a7f3d0 0%, rgba(16, 185, 129, 0.6) 45%, transparent 72%);
}

@keyframes particleRise {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  12%  { opacity: 0.9; }
  85%  { opacity: 0.6; }
  100% { transform: translate3d(var(--drift, 30px), -105vh, 0); opacity: 0; }
}

/* ========================================================
   2. 상단 우측 액션 바 (leneague 인트로 우측상단 버튼 구조 이식)
   ======================================================== */
.intro-top-actions,
.intro-loader-actions {
  position: absolute;
  top: 24px;
  right: 32px;
  z-index: 100010;
  display: flex;
  align-items: center;
  gap: 16px;
  pointer-events: auto;
}

/* 순수 투명 그래픽 더이상 안보기 버튼 (배경 완전 제거) */
.btn-intro-dismiss-imgbtn,
.btn-loader-dismiss-imgbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 76px !important;
  line-height: 0;
  text-decoration: none;
  cursor: pointer;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  outline: none;
  vertical-align: middle;
  overflow: visible !important;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  user-select: none;
  -webkit-user-drag: none;
}

.btn-intro-dismiss-imgbtn .btn-dismiss-intro-img,
.btn-loader-dismiss-imgbtn .btn-dismiss-intro-img {
  height: 100% !important;
  width: auto !important;
  max-height: 76px !important;
  object-fit: contain;
  display: block;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  transition: filter 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}

.btn-intro-dismiss-imgbtn:hover,
.btn-intro-dismiss-imgbtn:focus-visible,
.btn-loader-dismiss-imgbtn:hover,
.btn-loader-dismiss-imgbtn:focus-visible {
  transform: translateY(-2px) scale(1.04);
}

.btn-intro-dismiss-imgbtn:hover .btn-dismiss-intro-img,
.btn-intro-dismiss-imgbtn:focus-visible .btn-dismiss-intro-img,
.btn-loader-dismiss-imgbtn:hover .btn-dismiss-intro-img,
.btn-loader-dismiss-imgbtn:focus-visible .btn-dismiss-intro-img {
  filter: drop-shadow(0 6px 18px rgba(16, 185, 129, 0.55)) brightness(1.08);
}

.btn-intro-dismiss-imgbtn:active,
.btn-loader-dismiss-imgbtn:active {
  transform: translateY(0) scale(0.96);
}

/* 인트로 보기 OFF (비활성화 상태) - 강조 제거 및 차분한 비활성화 UI 연출 */
.btn-intro-dismiss-imgbtn.dismissed,
.btn-loader-dismiss-imgbtn.dismissed {
  opacity: 0.52;
  filter: grayscale(0.85);
  transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

.btn-intro-dismiss-imgbtn.dismissed .btn-dismiss-intro-img,
.btn-loader-dismiss-imgbtn.dismissed .btn-dismiss-intro-img {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7)) brightness(0.8) !important;
}

.btn-intro-dismiss-imgbtn.dismissed:hover,
.btn-loader-dismiss-imgbtn.dismissed:hover {
  opacity: 0.82;
  filter: grayscale(0.35);
  transform: translateY(-1px) scale(1.02);
}

.btn-intro-dismiss-imgbtn.dismissed:hover .btn-dismiss-intro-img,
.btn-loader-dismiss-imgbtn.dismissed:hover .btn-dismiss-intro-img {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.85)) brightness(0.92) !important;
}

/* 신규 그래픽 이미지 공식 홈페이지 입장 버튼 (쉬머 스윕 장착) */
.btn-enter-home-imgbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 76px !important;
  line-height: 0;
  text-decoration: none;
  cursor: pointer;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  outline: none;
  vertical-align: middle;
  border-radius: 9999px;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  user-select: none;
  -webkit-user-drag: none;
}

.btn-enter-home-imgbtn .btn-enter-home-img {
  height: 100% !important;
  width: auto !important;
  max-height: 76px !important;
  object-fit: contain;
  display: block;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  image-rendering: -webkit-optimize-contrast;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 16px rgba(16, 185, 129, 0.45));
  transition: filter 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}

.btn-enter-home-imgbtn:hover,
.btn-enter-home-imgbtn:focus-visible {
  transform: translateY(-2px) scale(1.05);
}

.btn-enter-home-imgbtn:hover .btn-enter-home-img,
.btn-enter-home-imgbtn:focus-visible .btn-enter-home-img {
  filter: drop-shadow(0 8px 26px rgba(251, 191, 36, 0.75)) drop-shadow(0 0 24px rgba(16, 185, 129, 0.8)) brightness(1.12);
}

.btn-enter-home-imgbtn:active {
  transform: translateY(0) scale(0.96);
}

/* 광택 스윕 효과 (Shimmer Sweep) */
.btn-shimmer-sweep {
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
  animation: shimmerSweep 3.2s infinite ease-in-out;
}

@keyframes shimmerSweep {
  0% { left: -120%; }
  35%, 100% { left: 160%; }
}

/* 사운드 토글 버튼 */
.btn-audio-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(7, 18, 12, 0.7);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: var(--tarzan-text-sub);
  font-size: 20px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
}

.btn-audio-control:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: var(--tarzan-primary);
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 0 16px var(--tarzan-primary-glow);
}

/* ==========================================
   3. 피날레 콘텐츠 (메인 로고 & 서버 이동 링크)
   ========================================== */
.intro-finale {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 92%;
  max-width: 960px;
  pointer-events: none;
  visibility: hidden;
}

body.is-finale .intro-finale {
  visibility: visible;
}

body.is-finale.is-finale-ready .intro-finale {
  pointer-events: auto;
}

/* --- 로고 --- */
.finale-logo-wrap {
  position: relative;
  width: min(640px, 82vw);
  aspect-ratio: 1376 / 768;
  opacity: 0;
  transform: scale(0.78);
  filter: blur(14px) brightness(1.8);
}

body.is-finale .finale-logo-wrap {
  animation: logoReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) 1.7s forwards;
}

@keyframes logoReveal {
  0%   { opacity: 0; transform: scale(0.78); filter: blur(14px) brightness(1.8); }
  55%  { opacity: 1; filter: blur(0) brightness(1.25); }
  100% { opacity: 1; transform: scale(1); filter: blur(0) brightness(1); }
}

.finale-logo-img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(6, 40, 25, 0.35)) drop-shadow(0 0 22px rgba(251, 191, 36, 0.35));
  -webkit-user-drag: none;
}

body.is-finale .finale-logo-img {
  animation: logoFloat 5s ease-in-out 3.1s infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* 로고 뒤 골드 & 에메랄드 후광 */
.finale-logo-halo {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 115%;
  height: 135%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(253, 230, 138, 0.85) 0%, rgba(251, 191, 36, 0.35) 35%, rgba(52, 211, 153, 0.18) 58%, transparent 72%);
  filter: blur(18px);
}

body.is-finale .finale-logo-halo {
  animation: haloPulse 3.6s ease-in-out 2.4s infinite alternate;
}

@keyframes haloPulse {
  0%   { opacity: 0.7; transform: translate(-50%, -50%) scale(0.96); }
  100% { opacity: 1;   transform: translate(-50%, -50%) scale(1.06); }
}

/* 로고 모양대로 지나가는 광택 스윕 */
.finale-logo-shine {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, 0.9) 50%, transparent 62%);
  background-size: 260% 100%;
  background-position: 130% 0;
  mix-blend-mode: overlay;
  -webkit-mask: url('/images/tarzan_wordmark.png?v=classic') center / contain no-repeat;
  mask: url('/images/tarzan_wordmark.png?v=classic') center / contain no-repeat;
}

body.is-finale .finale-logo-shine {
  animation: logoShine 4.5s ease-in-out 2.7s infinite;
}

@keyframes logoShine {
  0%        { background-position: 130% 0; }
  35%, 100% { background-position: -30% 0; }
}

/* --- 슬로건 --- */
.finale-slogan {
  margin-top: 6px;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #065f46;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 0 18px rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translateY(14px);
}

body.is-finale .finale-slogan {
  animation: finaleFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 2.6s forwards;
}

/* --- 서버 이동 안내 & 링크 --- */
.finale-cta {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(18px);
}

body.is-finale .finale-cta {
  animation: finaleFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 3.1s forwards;
}

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

.finale-guide {
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 700;
  color: #1f3d31;
  letter-spacing: -0.2px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85), 0 0 14px rgba(255, 255, 255, 0.9);
}

.finale-guide strong {
  color: #b45309;
  font-weight: 900;
}

.btn-finale-enter {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 46px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-decoration: none;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  background: linear-gradient(135deg, #10b981 0%, #059669 45%, #047857 100%);
  border: 2px solid #fbbf24;
  border-radius: 9999px;
  box-shadow: 0 12px 30px rgba(4, 120, 87, 0.35), 0 0 26px rgba(251, 191, 36, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s ease, background 0.28s ease;
}

/* 펄스 링이 버튼 바깥으로 퍼지도록 래퍼에 배치 (버튼 자체는 광택 스윕을 잘라냄) */
.btn-finale-wrap {
  position: relative;
  display: inline-flex;
  border-radius: 9999px;
}

.btn-finale-enter .finale-enter-icon {
  color: #fde047;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.9));
  transition: transform 0.3s ease;
}

.btn-finale-enter .finale-enter-arrow {
  animation: arrowNudge 1.4s ease-in-out infinite;
}

@keyframes arrowNudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(5px); }
}

/* 시선을 끄는 펄스 링 */
.btn-finale-ring {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 2px solid rgba(251, 191, 36, 0.85);
  pointer-events: none;
  animation: ringPulse 2s ease-out infinite;
}

@keyframes ringPulse {
  0%   { transform: scale(1);    opacity: 0.9; }
  100% { transform: scale(1.28, 1.6); opacity: 0; }
}

.btn-finale-enter:hover,
.btn-finale-enter:focus-visible {
  transform: translateY(-3px) scale(1.05);
  background: linear-gradient(135deg, #34d399 0%, #10b981 45%, #059669 100%);
  box-shadow: 0 16px 40px rgba(4, 120, 87, 0.45), 0 0 38px rgba(251, 191, 36, 0.7);
  outline: none;
}

.btn-finale-enter:hover .finale-enter-icon {
  transform: rotate(72deg) scale(1.2);
}

.btn-finale-enter:active {
  transform: translateY(0) scale(0.97);
}

.finale-subhint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #1f3d31;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 0 12px rgba(255, 255, 255, 0.9);
}

.finale-subhint kbd {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 2px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: #065f46;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(6, 95, 70, 0.3);
  border-bottom-width: 2px;
  border-radius: 6px;
}

.finale-divider {
  opacity: 0.5;
}

.btn-finale-replay {
  font: inherit;
  font-weight: 700;
  color: #047857;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-finale-replay:hover {
  color: #b45309;
}

/* ==========================================
   3-1. 영상 재생 중 하단 컨트롤 (진행 바 & SKIP)
   ========================================== */
.intro-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  z-index: 50;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.intro-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #10b981, #fbbf24);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.7);
}

.btn-intro-skip {
  position: absolute;
  right: 32px;
  bottom: 30px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #ecfdf5;
  background: rgba(7, 18, 12, 0.55);
  border: 1px solid rgba(52, 211, 153, 0.45);
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  opacity: 0;
  animation: skipIn 0.6s ease 1.2s forwards;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, opacity 0.5s ease;
}

@keyframes skipIn {
  to { opacity: 0.85; }
}

.btn-intro-skip:hover {
  background: rgba(16, 185, 129, 0.35);
  border-color: #fbbf24;
  transform: translateX(-2px);
}

body.is-finale .intro-progress,
body.is-finale .btn-intro-skip {
  opacity: 0 !important;
  pointer-events: none;
  animation: none;
}

/* ==========================================
   4. 알림 토스트 (더이상 안보기 설정 시 피드백)
   ========================================== */
.intro-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: rgba(15, 23, 18, 0.95);
  border: 1px solid var(--tarzan-primary);
  color: #ffffff;
  padding: 12px 26px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 20px var(--tarzan-primary-glow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100020;
}

.intro-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================
   5. 모바일 반응형 처리
   ========================================== */
@media (max-width: 768px) {
  .intro-top-actions,
  .intro-loader-actions {
    top: 14px;
    right: 14px;
    gap: 8px;
  }

  .btn-intro-dismiss-imgbtn,
  .btn-loader-dismiss-imgbtn,
  .btn-enter-home-imgbtn {
    height: 54px !important;
  }

  .btn-intro-dismiss-imgbtn .btn-dismiss-intro-img,
  .btn-loader-dismiss-imgbtn .btn-dismiss-intro-img,
  .btn-enter-home-imgbtn .btn-enter-home-img {
    max-height: 54px !important;
  }

  .btn-audio-control {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  .finale-cta {
    margin-top: 22px;
    gap: 12px;
  }

  .btn-finale-enter {
    padding: 14px 28px;
    font-size: 15.5px;
  }

  .finale-subhint .finale-enter-hint,
  .finale-subhint .finale-divider {
    display: none;
  }

  .btn-intro-skip {
    right: 14px;
    bottom: 18px;
    padding: 8px 16px;
  }
}

/* 동작 줄이기 설정 사용자: 화려한 모션 최소화 */
@media (prefers-reduced-motion: reduce) {
  .finale-rays,
  .finale-particles,
  .finale-logo-shine,
  .btn-finale-ring {
    display: none;
  }

  body.is-finale .finale-logo-img,
  body.is-finale .finale-logo-halo,
  .btn-finale-enter .finale-enter-arrow {
    animation: none;
  }
}
