/* =========================================================================
   CINEMATIC INTRO STAGE (/intro) — IRON MAN · STARK HUD & ARC REACTOR
   ========================================================================= */
.intro-body {
  margin: 0;
  min-height: 100vh;
  background: #0d0705;
  color: #fef3c7;
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  overflow: hidden;
  position: relative;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

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

.intro-backdrop-img {
  position: absolute;
  inset: -8%;
  background-size: cover;
  background-position: center 38%;
  opacity: 0.9;
  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(circle at 50% 34%, rgba(56, 189, 248, 0.14), transparent 46%),
    radial-gradient(circle at 14% 28%, rgba(245, 158, 11, 0.18), transparent 46%),
    radial-gradient(circle at 86% 28%, rgba(220, 38, 38, 0.16), transparent 46%),
    linear-gradient(180deg, rgba(16, 9, 6, 0.42) 0%, rgba(16, 9, 6, 0.25) 30%, rgba(16, 9, 6, 0.65) 65%, rgba(10, 5, 4, 0.95) 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(18, 10, 7, 0.82);
  border: 1px solid rgba(245, 158, 11, 0.3);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 700;
  color: #fef3c7;
}

.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, #f59e0b), var(--accent, #f59e0b)) top left / 10px 2px no-repeat,
    linear-gradient(var(--accent, #f59e0b), var(--accent, #f59e0b)) top left / 2px 10px no-repeat,
    linear-gradient(var(--secondary, #38bdf8), var(--secondary, #38bdf8)) bottom right / 10px 2px no-repeat,
    linear-gradient(var(--secondary, #38bdf8), var(--secondary, #38bdf8)) bottom right / 2px 10px no-repeat,
    linear-gradient(180deg, rgba(42, 22, 14, 0.9), rgba(18, 10, 7, 0.94));
  border: 1px solid rgba(245, 158, 11, 0.34);
  box-shadow: inset 0 1px 0 rgba(254, 243, 199, 0.08), 0 6px 18px rgba(0, 0, 0, 0.55);
  color: #fde68a;
  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, #f59e0b);
  color: #fffbeb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 18px rgba(245, 158, 11, 0.38);
}

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

/* ===================================================================
   STARK HUD BOOT & ARC REACTOR IGNITION CHOREOGRAPHY
   =================================================================== */
.intro-arc-ignition-layer {
  position: fixed;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.repulsor-beam {
  position: absolute;
  width: 140vmax;
  height: 110px;
  filter: blur(18px);
  opacity: 0;
}

.repulsor-beam-left {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(220, 38, 38, 0.22) 20%,
    rgba(245, 158, 11, 0.62) 50%,
    rgba(254, 243, 199, 0.52) 66%,
    transparent 92%
  );
  transform: rotate(-28deg);
}

.repulsor-beam-right {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(56, 189, 248, 0.16) 24%,
    rgba(56, 189, 248, 0.65) 50%,
    rgba(224, 242, 254, 0.55) 66%,
    transparent 92%
  );
  transform: rotate(28deg);
}

.arc-reactor-vessel {
  position: relative;
  width: min(420px, 74vw);
  aspect-ratio: 1;
  opacity: 0;
  -webkit-mask-image: radial-gradient(circle, #000 44%, transparent 74%);
  mask-image: radial-gradient(circle, #000 44%, transparent 74%);
}

.arc-reactor-echo {
  position: absolute;
  width: min(390px, 68vw);
  aspect-ratio: 1;
  opacity: 0;
  -webkit-mask-image: radial-gradient(circle, #000 40%, transparent 72%);
  mask-image: radial-gradient(circle, #000 40%, transparent 72%);
  filter: blur(4px) saturate(1.45);
}

.arc-reactor-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 38px rgba(56, 189, 248, 0.72)) drop-shadow(0 0 22px rgba(245, 158, 11, 0.45));
}

.intro-impact-shockwave {
  position: fixed;
  left: 50%;
  top: 42%;
  width: 154px;
  height: 154px;
  margin-left: -77px;
  margin-top: -77px;
  border-radius: 50%;
  border: 2.5px solid rgba(56, 189, 248, 0.9);
  box-shadow:
    0 0 44px rgba(56, 189, 248, 0.78),
    0 0 24px rgba(245, 158, 11, 0.65),
    inset 0 0 28px rgba(245, 158, 11, 0.5);
  opacity: 0;
  pointer-events: none;
  z-index: 14;
}

.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: 196px;
  height: 196px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
}

.intro-bloom-halo {
  position: absolute;
  inset: -44px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.4) 0%,
    rgba(245, 158, 11, 0.28) 42%,
    rgba(220, 38, 38, 0.14) 60%,
    transparent 74%
  );
  opacity: 0;
  pointer-events: none;
}

.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: 138px;
  height: 138px;
  border-radius: 50%;
  padding: 6px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28), rgba(18, 10, 7, 0.94));
  border: 2px solid color-mix(in srgb, var(--accent, #f59e0b) 65%, var(--secondary, #38bdf8));
  box-shadow:
    0 0 64px rgba(56, 189, 248, 0.36),
    0 0 32px rgba(245, 158, 11, 0.34),
    0 0 18px rgba(220, 38, 38, 0.24);
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 0;
}

.intro-seq {
  opacity: 0;
}

.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, #f59e0b), var(--accent, #f59e0b)) top left / 10px 2px no-repeat,
    linear-gradient(var(--accent, #f59e0b), var(--accent, #f59e0b)) top left / 2px 10px no-repeat,
    linear-gradient(var(--secondary, #38bdf8), var(--secondary, #38bdf8)) bottom right / 10px 2px no-repeat,
    linear-gradient(var(--secondary, #38bdf8), var(--secondary, #38bdf8)) bottom right / 2px 10px no-repeat,
    rgba(18, 10, 7, 0.78);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fde68a;
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.65);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.65), 0 0 24px rgba(245, 158, 11, 0.22);
  backdrop-filter: blur(8px);
}

.intro-title {
  position: relative;
  display: inline-block;
  margin: 0;
  line-height: 1;
  isolation: isolate;
}

.intro-title::before {
  content: '';
  position: absolute;
  inset: -14px -38px;
  border-radius: 999px;
  background: radial-gradient(
    ellipse 68% 58% at 50% 54%,
    rgba(255, 249, 224, 0.46) 0%,
    rgba(253, 224, 71, 0.26) 36%,
    rgba(56, 189, 248, 0.16) 62%,
    transparent 82%
  );
  filter: blur(18px);
  pointer-events: none;
  z-index: -1;
}

.intro-wordmark-img {
  position: relative;
  z-index: 1;
  display: block;
  margin: 12px auto 12px;
  width: min(420px, 84vw);
  height: auto;
  max-height: 170px;
  object-fit: contain;
  filter:
    brightness(1.16)
    contrast(1.06)
    drop-shadow(0 0 2px rgba(255, 251, 235, 0.88))
    drop-shadow(0 0 12px rgba(254, 240, 138, 0.72))
    drop-shadow(0 0 28px rgba(245, 158, 11, 0.55))
    drop-shadow(0 10px 26px rgba(0, 0, 0, 0.85));
}

.intro-subtitle {
  margin: 0 auto 24px;
  max-width: 65ch;
  color: #fef3c7;
  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.85);
}

.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(42, 22, 14, 0.85), rgba(18, 10, 7, 0.9));
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-left: 2px solid var(--secondary, #38bdf8);
  font-size: 13.5px;
  font-weight: 700;
  color: #fef3c7;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.65);
  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, #f59e0b), var(--accent, #f59e0b)) top left / 16px 2px no-repeat,
    linear-gradient(var(--accent, #f59e0b), var(--accent, #f59e0b)) top left / 2px 16px no-repeat,
    linear-gradient(var(--secondary, #38bdf8), var(--secondary, #38bdf8)) bottom right / 16px 2px no-repeat,
    linear-gradient(var(--secondary, #38bdf8), var(--secondary, #38bdf8)) bottom right / 2px 16px no-repeat,
    rgba(18, 10, 7, 0.78);
  border: 1px solid rgba(245, 158, 11, 0.36);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.78),
    0 0 32px rgba(245, 158, 11, 0.18),
    inset 0 1px 0 rgba(254, 243, 199, 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, #f59e0b) 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(16, 9, 6, 0.96), rgba(28, 15, 10, 0.94));
  border: 1px solid rgba(245, 158, 11, 0.28);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.72);
}

.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: #0b0604;
  border: 1px solid rgba(56, 189, 248, 0.28);
  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(11, 6, 4, 0.78) 0%,
    transparent 28%,
    transparent 72%,
    rgba(11, 6, 4, 0.78) 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: #fef3c7;
  text-shadow: 0 0 14px rgba(245, 158, 11, 0.75);
}

.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: #38bdf8;
}

/* =========================================================================
   IMAGE-DESIGNED GAME UI BUTTONS (STARK ARMOR TACTICAL BUTTONS)
   ========================================================================= */
.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;
}

.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 20%, #fde68a 62%, #f59e0b 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(245, 158, 11, 0.55));
}

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

.intro-img-btn--enter::before {
  content: '';
  position: absolute;
  inset: 6px 8px;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(254, 243, 199, 0.38) 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(245, 158, 11, 0.6));
}

.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);
}

.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: #fef3c7;
  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.42));
}

.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(--secondary, #38bdf8) 42%, #fff), #120a07);
  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;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-backdrop-img {
    animation: none;
  }
}
