/* =========================================================================
   CINEMATIC INTRO STAGE (/intro)
   ========================================================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.intro-body {
  margin: 0;
  min-height: 100vh;
  background: #06080d;
  color: #f3f5f9;
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  overflow: hidden;
  position: relative;
}

.intro-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1;
}

.intro-backdrop {
  overflow: hidden;
}

/* 팝업 배너 이미지의 바깥 프레임 테두리가 보이지 않도록 확대 크롭 */
.intro-backdrop-img {
  position: absolute;
  inset: -8%;
  background-size: cover;
  background-position: center 38%;
  opacity: 0.92;
  transform: scale(1.05);
  animation: introZoom 28s ease-in-out infinite alternate;
}

@keyframes introZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.09); }
}

.intro-backdrop-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(4, 8, 18, 0.52) 0%, transparent 62%),
    radial-gradient(circle at 50% 35%, rgba(56, 189, 248, 0.12), transparent 50%),
    radial-gradient(circle at 12% 30%, rgba(239, 68, 68, 0.14), transparent 45%),
    radial-gradient(circle at 88% 30%, rgba(239, 68, 68, 0.14), transparent 45%),
    linear-gradient(180deg, rgba(4, 8, 18, 0.35) 0%, rgba(4, 8, 18, 0.2) 30%, rgba(4, 8, 18, 0.6) 65%, rgba(2, 5, 12, 0.94) 100%);
}

#introCanvas {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.intro-topbar {
  position: fixed;
  top: 20px;
  left: 24px;
  right: 24px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.intro-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(12, 16, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 700;
}

.intro-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.intro-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 3px;
  background:
    linear-gradient(var(--accent, #38bdf8), var(--accent, #38bdf8)) top left / 10px 2px no-repeat,
    linear-gradient(var(--accent, #38bdf8), var(--accent, #38bdf8)) top left / 2px 10px no-repeat,
    linear-gradient(var(--secondary, #ef4444), var(--secondary, #ef4444)) bottom right / 10px 2px no-repeat,
    linear-gradient(var(--secondary, #ef4444), var(--secondary, #ef4444)) bottom right / 2px 10px no-repeat,
    linear-gradient(180deg, rgba(31, 42, 63, 0.88), rgba(7, 12, 24, 0.92));
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 18px rgba(0, 0, 0, 0.5);
  color: #e2e8f0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 0.18s ease;
}

.intro-ctrl-btn:hover {
  border-color: var(--accent, #38bdf8);
  color: #e0f2fe;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 18px rgba(56, 189, 248, 0.35);
}

.intro-ctrl-btn.is-on {
  border-color: var(--accent, #38bdf8);
  color: var(--accent, #38bdf8);
  box-shadow: inset 0 0 14px rgba(56, 189, 248, 0.25), 0 0 14px rgba(56, 189, 248, 0.25);
}

/* ===================================================================
   DIAGONAL FLYING SHIELD CHOREOGRAPHY -> CENTER MATERIALIZATION
   =================================================================== */
.intro-flying-shield-layer {
  position: fixed;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.flying-shield-streak {
  position: absolute;
  width: 170vmax;
  height: 180px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(56, 189, 248, 0.06) 24%,
    rgba(56, 189, 248, 0.45) 50%,
    rgba(239, 68, 68, 0.38) 64%,
    transparent 88%
  );
  filter: blur(22px);
  transform: rotate(-42deg);
  opacity: 0;
  will-change: transform, opacity;
}

.flying-shield-vessel {
  position: relative;
  width: min(440px, 74vw);
  aspect-ratio: 1;
  opacity: 0;
  will-change: transform, opacity;
  -webkit-mask-image: radial-gradient(circle, #000 44%, transparent 74%);
  mask-image: radial-gradient(circle, #000 44%, transparent 74%);
}

.flying-shield-echo {
  position: absolute;
  width: min(400px, 68vw);
  aspect-ratio: 1;
  opacity: 0;
  will-change: transform, opacity;
  -webkit-mask-image: radial-gradient(circle, #000 40%, transparent 72%);
  mask-image: radial-gradient(circle, #000 40%, transparent 72%);
  filter: blur(4px) saturate(1.4);
}

.flying-shield-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 36px rgba(56, 189, 248, 0.6)) drop-shadow(0 0 18px rgba(239, 68, 68, 0.4));
}

.intro-impact-shockwave {
  position: fixed;
  left: 50%;
  top: 42%;
  width: 150px;
  height: 150px;
  margin-left: -75px;
  margin-top: -75px;
  border-radius: 50%;
  border: 2.5px solid rgba(56, 189, 248, 0.85);
  box-shadow:
    0 0 42px rgba(56, 189, 248, 0.72),
    inset 0 0 28px rgba(239, 68, 68, 0.5);
  opacity: 0;
  pointer-events: none;
  z-index: 14;
  will-change: transform, opacity;
}

.intro-stage {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 24px 60px;
  text-align: center;
}

.intro-center-card {
  max-width: 960px;
  width: 100%;
  position: relative;
  padding: 16px 16px 24px;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.intro-crest-stage {
  position: relative;
  width: 184px;
  height: 184px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
}

.intro-bloom-halo {
  position: absolute;
  inset: -42px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--accent, #38bdf8) 42%, transparent) 0%,
    rgba(239, 68, 68, 0.18) 45%,
    transparent 72%
  );
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.intro-hud-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.intro-hud-svg path,
.intro-hud-svg circle {
  fill: none;
  stroke-linecap: round;
}

.intro-crest-ring {
  position: relative;
  z-index: 2;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  padding: 6px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent, #38bdf8) 28%, transparent), rgba(8, 14, 28, 0.92));
  border: 2px solid color-mix(in srgb, var(--secondary, #ef4444) 55%, var(--accent, #38bdf8));
  box-shadow:
    0 0 64px color-mix(in srgb, var(--accent, #38bdf8) 38%, transparent),
    0 0 28px rgba(239, 68, 68, 0.25);
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 0;
  will-change: transform, opacity;
}

.intro-seq {
  opacity: 0;
  will-change: transform, opacity;
}

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

.intro-crest-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.intro-kicker {
  display: inline-block;
  padding: 7px 22px;
  border-radius: 3px;
  background:
    linear-gradient(var(--accent, #38bdf8), var(--accent, #38bdf8)) top left / 10px 2px no-repeat,
    linear-gradient(var(--accent, #38bdf8), var(--accent, #38bdf8)) top left / 2px 10px no-repeat,
    linear-gradient(var(--secondary, #ef4444), var(--secondary, #ef4444)) bottom right / 10px 2px no-repeat,
    linear-gradient(var(--secondary, #ef4444), var(--secondary, #ef4444)) bottom right / 2px 10px no-repeat,
    rgba(7, 12, 24, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #bae6fd;
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.55);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 24px rgba(56, 189, 248, 0.2);
  backdrop-filter: blur(8px);
}

.intro-title {
  margin: 0;
  line-height: 1;
}

.intro-wordmark-img {
  display: block;
  margin: 12px auto 12px;
  width: min(420px, 84vw);
  height: auto;
  max-height: 170px;
  object-fit: contain;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.92)) drop-shadow(0 0 24px rgba(56, 189, 248, 0.38));
}

.intro-subtitle {
  margin: 0 auto 24px;
  max-width: 65ch;
  color: #f1f5f9;
  font-size: clamp(16px, 1.9vw, 19px);
  font-weight: 600;
  line-height: 1.5;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95), 0 0 20px rgba(0, 0, 0, 0.8);
}

.intro-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.intro-highlight-chip {
  padding: 8px 18px;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(31, 42, 63, 0.8), rgba(7, 12, 24, 0.85));
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-left: 2px solid var(--secondary, #ef4444);
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}

.intro-countdown-bar {
  display: inline-grid;
  grid-template-columns: repeat(4, minmax(80px, 98px));
  gap: 12px;
  padding: 10px 16px;
  border-radius: 4px;
  background:
    linear-gradient(var(--accent, #38bdf8), var(--accent, #38bdf8)) top left / 16px 2px no-repeat,
    linear-gradient(var(--accent, #38bdf8), var(--accent, #38bdf8)) top left / 2px 16px no-repeat,
    linear-gradient(var(--secondary, #ef4444), var(--secondary, #ef4444)) bottom right / 16px 2px no-repeat,
    linear-gradient(var(--secondary, #ef4444), var(--secondary, #ef4444)) bottom right / 2px 16px no-repeat,
    rgba(6, 11, 22, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.32);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.75),
    0 0 30px rgba(56, 189, 248, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  margin-bottom: 30px;
}

.intro-countdown-bar.is-live-running {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(380px, 90vw);
  min-height: 76px;
  padding: 14px 28px;
}

.intro-countdown-bar .slot-live-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.intro-countdown-bar .slot-live-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7), 0 0 12px #22c55e;
  animation: slotLivePulse 1.8s ease-out infinite;
  flex-shrink: 0;
}

.intro-countdown-bar .slot-live-text {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #f8fafc;
  text-shadow: 0 0 18px color-mix(in srgb, var(--accent, #38bdf8) 55%, rgba(34, 197, 94, 0.45));
  white-space: nowrap;
}

@keyframes slotLivePulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7), 0 0 12px #22c55e; }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0), 0 0 14px #22c55e; }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0), 0 0 12px #22c55e; }
}

.slot-cd-cell {
  text-align: center;
  padding: 8px 6px 6px;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(6, 10, 18, 0.96), rgba(12, 20, 36, 0.92));
  border: 1px solid rgba(56, 189, 248, 0.26);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.7);
}

.slot-cd-reels {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.slot-reel-window {
  position: relative;
  width: 25px;
  height: 40px;
  overflow: hidden;
  border-radius: 2px;
  background: #03060c;
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.9), inset 0 -4px 8px rgba(0, 0, 0, 0.9);
}

.slot-reel-window::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(3, 6, 12, 0.75) 0%,
    transparent 28%,
    transparent 72%,
    rgba(3, 6, 12, 0.75) 100%
  );
}

.slot-reel-track {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.slot-digit {
  height: 40px;
  line-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-size: 25px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #e0f2fe;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.7);
}

.cd-lbl {
  display: block;
  margin-top: 5px;
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #f87171;
}

/* =========================================================================
   IMAGE-DESIGNED GAME UI BUTTONS (중세 판타지 게임 UI 버튼 그래픽)
   ========================================================================= */
.intro-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.intro-sub-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* Image-designed Main Enter Button */
.intro-img-btn--enter {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(440px, 92vw);
  height: 74px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.22s ease;
  will-change: transform, filter;
}

.intro-img-btn-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.85));
  transition: filter 0.22s ease;
}

.intro-img-btn-label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-size: clamp(17px, 2.3vw, 20px);
  font-weight: 900;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #ffffff 25%, #bae6fd 65%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 14px rgba(56, 189, 248, 0.55));
}

.intro-img-btn-label .btn-icon {
  font-size: 15px;
  font-style: normal;
  -webkit-text-fill-color: initial;
  color: #ef4444;
  filter: drop-shadow(0 0 10px #ef4444);
  transition: transform 0.25s ease;
}

/* Light gleam sweep across main button */
.intro-img-btn--enter::before {
  content: '';
  position: absolute;
  inset: 6px 8px;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(186, 230, 253, 0.35) 50%,
    transparent 60%
  ) no-repeat;
  background-size: 300% 100%;
  background-position: 100% 0;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  transition: background-position 0.65s ease;
  pointer-events: none;
  z-index: 3;
}

.intro-img-btn--enter:hover {
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.15);
}

.intro-img-btn--enter:hover::before {
  background-position: 0 0;
}

.intro-img-btn--enter:hover .intro-img-btn-bg {
  filter: drop-shadow(0 0 22px rgba(56, 189, 248, 0.55));
}

.intro-img-btn--enter:hover .btn-icon {
  transform: translateX(4px) scale(1.18);
}

.intro-img-btn--enter:active {
  transform: translateY(1px) scale(0.99);
  filter: brightness(0.95);
}

/* Image-designed Sub Buttons (Download, Notice) */
.intro-img-btn--sub {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(220px, 44vw);
  height: 52px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.intro-img-btn--sub .intro-img-btn-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.75));
}

.intro-img-btn--sub .intro-img-btn-label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #f1f5f9;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
}

.intro-img-btn--sub:hover {
  transform: translateY(-2px) scale(1.04);
  filter: brightness(1.16);
}

.intro-img-btn--sub:hover .intro-img-btn-bg {
  filter: drop-shadow(0 10px 24px rgba(56, 189, 248, 0.4));
}

.intro-img-btn--sub:active {
  transform: translateY(1px) scale(0.98);
}

.intro-transition-veil {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent, #38bdf8) 45%, #fff), #060b16);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.42s ease;
}

.intro-transition-veil.is-active {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 600px) {
  .intro-countdown-bar {
    grid-template-columns: repeat(4, minmax(64px, 78px));
    gap: 8px;
    padding: 8px 10px;
  }
  .intro-countdown-bar.is-live-running {
    min-width: min(290px, 90vw);
    min-height: 62px;
    padding: 12px 18px;
  }
  .intro-countdown-bar .slot-live-text {
    font-size: 17px;
  }
  .slot-reel-window {
    width: 20px;
    height: 34px;
  }
  .slot-digit {
    height: 34px;
    line-height: 34px;
    font-size: 20px;
  }
  .cd-lbl {
    font-size: 9px;
  }
  .intro-img-btn--enter {
    width: 94vw;
    height: 64px;
  }
  .intro-img-btn-label {
    font-size: 16px;
    gap: 8px;
  }
  .intro-img-btn--sub {
    width: 44vw;
    height: 48px;
  }
  .intro-img-btn--sub .intro-img-btn-label {
    font-size: 13px;
  }
}
