/* =========================================================================
   CINEMATIC INTRO STAGE (/intro) — HULK GAMMA TITAN EDITION
   ========================================================================= */
.intro-body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface-tint, #05120a);
  color: #f3faf5;
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  overflow: hidden;
  position: relative;
}

.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% 35%, rgba(34, 197, 94, 0.16), transparent 52%),
    radial-gradient(circle at 12% 30%, rgba(163, 230, 53, 0.12), transparent 45%),
    radial-gradient(circle at 88% 30%, rgba(163, 230, 53, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(5, 18, 10, 0.42) 0%, rgba(5, 18, 10, 0.25) 30%, rgba(5, 18, 10, 0.68) 65%, rgba(3, 10, 5, 0.96) 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(5, 18, 10, 0.8);
  border: 1px solid rgba(34, 197, 94, 0.28);
  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, #22c55e), var(--accent, #22c55e)) top left / 10px 2px no-repeat,
    linear-gradient(var(--accent, #22c55e), var(--accent, #22c55e)) top left / 2px 10px no-repeat,
    linear-gradient(var(--secondary, #a3e635), var(--secondary, #a3e635)) bottom right / 10px 2px no-repeat,
    linear-gradient(var(--secondary, #a3e635), var(--secondary, #a3e635)) bottom right / 2px 10px no-repeat,
    linear-gradient(180deg, rgba(16, 43, 25, 0.9), rgba(5, 18, 10, 0.94));
  border: 1px solid rgba(34, 197, 94, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 18px rgba(0, 0, 0, 0.55);
  color: #ecfdf5;
  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, #22c55e);
  color: #dcfce7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 18px rgba(34, 197, 94, 0.42);
}

.intro-ctrl-btn.is-on {
  border-color: var(--accent, #22c55e);
  color: var(--secondary, #a3e635);
  box-shadow: inset 0 0 14px rgba(34, 197, 94, 0.28), 0 0 14px rgba(34, 197, 94, 0.28);
}

/* ===================================================================
   GAMMA SMASH CHOREOGRAPHY -> IMPACT CRATER -> CREST LOCK
   =================================================================== */
.intro-gamma-smash-layer {
  position: fixed;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.gamma-surge-beam {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(260px, 44vw);
  height: 75vh;
  margin-left: calc(min(260px, 44vw) / -2);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(34, 197, 94, 0.18) 25%,
    rgba(163, 230, 53, 0.65) 70%,
    rgba(220, 252, 231, 0.85) 90%,
    transparent 100%
  );
  filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
}

.gamma-smash-vessel {
  position: relative;
  width: min(500px, 84vw);
  aspect-ratio: 1;
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
  -webkit-mask-image: radial-gradient(circle, #000 46%, transparent 76%);
  mask-image: radial-gradient(circle, #000 46%, transparent 76%);
}

.gamma-smash-echo {
  position: absolute;
  width: min(460px, 78vw);
  aspect-ratio: 1;
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
  -webkit-mask-image: radial-gradient(circle, #000 42%, transparent 74%);
  mask-image: radial-gradient(circle, #000 42%, transparent 74%);
  filter: blur(5px) saturate(1.5);
}

.gamma-smash-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 38px rgba(34, 197, 94, 0.72)) drop-shadow(0 0 22px rgba(163, 230, 53, 0.55));
}

.intro-gamma-flash {
  position: fixed;
  left: 50%;
  top: 40%;
  width: 340px;
  height: 340px;
  margin-left: -170px;
  margin-top: -170px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(236, 253, 245, 0.92) 0%,
    rgba(163, 230, 53, 0.62) 28%,
    rgba(34, 197, 94, 0.32) 55%,
    transparent 76%
  );
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 16;
  will-change: transform, opacity;
}

.intro-impact-shockwave {
  position: fixed;
  left: 50%;
  top: 40%;
  width: 150px;
  height: 150px;
  margin-left: -75px;
  margin-top: -75px;
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 14;
  will-change: transform, opacity;
}

.intro-impact-shockwave.shockwave-emerald {
  border: 3px solid rgba(34, 197, 94, 0.92);
  box-shadow:
    0 0 46px rgba(34, 197, 94, 0.78),
    inset 0 0 30px rgba(163, 230, 53, 0.52);
}

.intro-impact-shockwave.shockwave-lime {
  border: 2px solid rgba(163, 230, 53, 0.85);
  box-shadow:
    0 0 38px rgba(163, 230, 53, 0.65),
    inset 0 0 22px rgba(34, 197, 94, 0.45);
}

.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;
  will-change: transform;
}

.intro-center-card {
  max-width: 960px;
  width: 100%;
  position: relative;
  padding: 16px 16px 24px;
  background: transparent;
  border: none;
  box-shadow: 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: -44px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--accent, #22c55e) 46%, transparent) 0%,
    rgba(163, 230, 53, 0.22) 44%,
    transparent 72%
  );
  opacity: 0;
  visibility: hidden;
  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,
.intro-hud-svg polygon {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: 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, #22c55e) 32%, transparent), rgba(5, 18, 10, 0.94));
  border: 2px solid color-mix(in srgb, var(--secondary, #a3e635) 58%, var(--accent, #22c55e));
  box-shadow:
    0 0 64px color-mix(in srgb, var(--accent, #22c55e) 44%, transparent),
    0 0 28px rgba(163, 230, 53, 0.28);
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
}

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

.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, #22c55e), var(--accent, #22c55e)) top left / 10px 2px no-repeat,
    linear-gradient(var(--accent, #22c55e), var(--accent, #22c55e)) top left / 2px 10px no-repeat,
    linear-gradient(var(--secondary, #a3e635), var(--secondary, #a3e635)) bottom right / 10px 2px no-repeat,
    linear-gradient(var(--secondary, #a3e635), var(--secondary, #a3e635)) bottom right / 2px 10px no-repeat,
    rgba(5, 18, 10, 0.78);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #bbf7d0;
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.65), 0 0 24px rgba(34, 197, 94, 0.24);
  backdrop-filter: blur(8px);
}

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

.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(34, 197, 94, 0.42));
}

.intro-subtitle {
  margin: 0 auto 24px;
  max-width: 65ch;
  color: #ecfdf5;
  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(16, 43, 25, 0.84), rgba(5, 18, 10, 0.9));
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-left: 2px solid var(--secondary, #a3e635);
  font-size: 13.5px;
  font-weight: 700;
  color: #f0fdf4;
  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, #22c55e), var(--accent, #22c55e)) top left / 16px 2px no-repeat,
    linear-gradient(var(--accent, #22c55e), var(--accent, #22c55e)) top left / 2px 16px no-repeat,
    linear-gradient(var(--secondary, #a3e635), var(--secondary, #a3e635)) bottom right / 16px 2px no-repeat,
    linear-gradient(var(--secondary, #a3e635), var(--secondary, #a3e635)) bottom right / 2px 16px no-repeat,
    rgba(5, 18, 10, 0.78);
  border: 1px solid rgba(34, 197, 94, 0.36);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.78),
    0 0 32px rgba(34, 197, 94, 0.2),
    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, #22c55e) 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(4, 14, 8, 0.96), rgba(10, 28, 16, 0.92));
  border: 1px solid rgba(34, 197, 94, 0.28);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.75);
}

.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: #030b06;
  border: 1px solid rgba(34, 197, 94, 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(3, 11, 6, 0.75) 0%,
    transparent 28%,
    transparent 72%,
    rgba(3, 11, 6, 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: #dcfce7;
  text-shadow: 0 0 14px rgba(34, 197, 94, 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: #a3e635;
}

/* =========================================================================
   IMAGE-DESIGNED GAME UI 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 25%, #bbf7d0 65%, #22c55e 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(34, 197, 94, 0.58));
}

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

.intro-img-btn--enter::before {
  content: '';
  position: absolute;
  inset: 6px 8px;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(187, 247, 208, 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(34, 197, 94, 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: #f0fdf4;
  background: none;
  -webkit-text-fill-color: #f0fdf4;
  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(34, 197, 94, 0.45));
}

.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, #22c55e) 45%, #fff), #05120a);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.42s ease;
}

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

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

@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;
  }
}
