.banner-gallery { max-width: 100%; margin: 0; padding: 0; color: #f4eee0; }

/* 서브페이지 최상단 배너: 새로 생성된 황금 노을 공성전 & 불씨 캔버스 적용 */
.subpage-header-banner.banner-subpage-hero {
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(18, 11, 5, 0.35) 0%, rgba(14, 9, 4, 0.72) 68%, rgba(11, 7, 4, 0.96) 100%),
    radial-gradient(ellipse 75% 65% at 62% 35%, rgba(251, 191, 36, 0.28) 0%, transparent 72%),
    url('/images/banners/bg_intro_siege_wide.jpg') !important;
  background-position: center 28% !important;
  background-size: cover !important;
}

.banner-fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.banner-subpage-hero .subpage-banner-content {
  position: relative;
  z-index: 2;
}

/* =========================================================================
   상단 인트로 쇼케이스 헤더 (/intro 시네마틱 다층 레이아웃 이식)
   ========================================================================= */
.banner-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  align-items: center;
  gap: 24px;
  padding: 28px 30px;
  background: #0c0805;
  border: 1px solid rgba(245, 189, 86, .52);
  border-radius: 10px;
  box-shadow:
    0 20px 46px rgba(0, 0, 0, .72),
    inset 0 0 32px rgba(245, 158, 11, .12);
  overflow: hidden;
}

.banner-intro-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(95deg, rgba(10, 6, 3, .95) 0%, rgba(14, 9, 4, .85) 48%, rgba(14, 9, 4, .42) 100%),
    url('/images/banners/bg_intro_comet_strip.jpg') center center / cover no-repeat;
  filter: brightness(1.04) saturate(1.18);
  pointer-events: none;
}

.banner-intro-godrays {
  position: absolute;
  inset: -15%;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    -42deg,
    transparent 0px,
    transparent 42px,
    rgba(254, 240, 138, 0.06) 46px,
    rgba(245, 158, 11, 0.12) 52px,
    transparent 58px,
    transparent 108px
  );
  mix-blend-mode: screen;
}

.banner-intro-copy {
  position: relative;
  z-index: 3;
  min-width: 0;
}

.banner-eyebrow, .banner-index {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fde047;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  margin: 0;
}

.banner-live-dot {
  width: 7px;
  height: 7px;
  background: linear-gradient(135deg, #ffffff, #f59e0b);
  transform: rotate(45deg);
  box-shadow: 0 0 9px rgba(251, 191, 36, .95);
}

.banner-intro h1 {
  font-size: clamp(23px, 2.8vw, 32px);
  line-height: 1.26;
  letter-spacing: -.035em;
  margin: 10px 0 12px;
  font-weight: 900;
  color: #fffbeb;
  text-shadow: 0 4px 16px rgba(0, 0, 0, .92);
  word-break: keep-all;
}

.banner-intro h1 span {
  background: linear-gradient(180deg, #ffffff 0%, #fef08a 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: #fde047;
  -webkit-text-fill-color: transparent;
}

.banner-lead {
  color: #e2d5be;
  line-height: 1.65;
  margin: 0 0 14px;
  font-size: 13.5px;
  word-break: keep-all;
}

.banner-lead strong {
  color: #fef08a;
  font-weight: 800;
}

.banner-intro-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.banner-intro-specs span {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 800;
  color: #fef3c7;
  background: rgba(24, 15, 7, .88);
  border: 1px solid rgba(245, 189, 86, .48);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}

.banner-intro-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.banner-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e11d48 0%, #991b1b 60%, #500709 100%);
  color: #fffbeb;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(254, 240, 138, .85);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .7), 0 0 18px rgba(220, 38, 38, .45);
  text-decoration: none;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.banner-cta-primary:hover {
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .85), 0 0 24px rgba(245, 158, 11, .55);
  transform: translateY(-1px);
}

.banner-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 15px;
  border-radius: 999px;
  background: rgba(22, 14, 8, .88);
  border: 1px solid rgba(245, 189, 86, .45);
  color: #f3e5c8;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}

.banner-cta-secondary:hover {
  background: rgba(42, 27, 14, .95);
  border-color: #fef08a;
  color: #ffffff;
  transform: translateY(-1px);
}

/* =========================================================================
   우측 인트로 미니 디오라마 (3D 로고 + 3D 로켓 + 보물상자 + 구름)
   ========================================================================= */
.banner-hero-emblem {
  position: relative;
  z-index: 3;
  width: 270px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-hero-glow {
  position: absolute;
  width: 220px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, .38) 0%, rgba(217, 119, 6, .12) 55%, transparent 75%);
  pointer-events: none;
}

.banner-hero-ring {
  position: absolute;
  width: 176px;
  height: 176px;
  border-radius: 50%;
  border: 1px dashed rgba(254, 240, 138, .38);
  pointer-events: none;
  animation: dioramaRingSpin 24s linear infinite;
}

@keyframes dioramaRingSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.diorama-cloud-back {
  position: absolute;
  width: 210px;
  left: -10px;
  top: 22px;
  opacity: .75;
  z-index: 1;
}

.diorama-rocket-wrap {
  position: absolute;
  right: 12px;
  top: -6px;
  width: 78px;
  z-index: 4;
  transform: rotate(42deg);
  animation: dioramaRocketFloat 2.2s ease-in-out infinite alternate;
}

@keyframes dioramaRocketFloat {
  0% { transform: rotate(42deg) translate3d(-3px, 4px, 0); }
  100% { transform: rotate(42deg) translate3d(5px, -6px, 0); }
}

.diorama-rocket-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .9)) drop-shadow(0 0 16px rgba(245, 158, 11, .55));
}

.diorama-rocket-plume {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 84%;
  width: 46%;
  height: 70%;
  transform: translateX(-50%);
  transform-origin: 50% 0%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 18%, #ffffff 0%, #fef08a 30%, #f97316 62%, transparent 95%);
  filter: blur(3px) drop-shadow(0 0 12px rgba(245, 158, 11, .95));
  animation: dioramaPlumePulse 0.14s ease-in-out infinite alternate;
}

@keyframes dioramaPlumePulse {
  0% { transform: translateX(-50%) scaleY(0.9) scaleX(0.92); }
  100% { transform: translateX(-50%) scaleY(1.22) scaleX(1.08); }
}

.diorama-logo-stack {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 205px;
  margin-top: -12px;
  margin-left: -14px;
}

.diorama-logo-kor {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .92)) drop-shadow(0 0 20px rgba(245, 158, 11, .45));
}

.diorama-logo-eng {
  width: 62%;
  height: auto;
  margin-top: -4%;
  margin-left: 6%;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .9)) drop-shadow(0 0 14px rgba(245, 158, 11, .38));
}

.diorama-chest-supply {
  position: absolute;
  z-index: 4;
  left: 8px;
  bottom: 4px;
  width: 76px;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .88)) drop-shadow(0 0 14px rgba(56, 189, 248, .45));
  animation: dioramaChestFloat 2.4s ease-in-out infinite alternate-reverse;
}

.diorama-chest-royal {
  position: absolute;
  z-index: 6;
  right: 4px;
  bottom: 2px;
  width: 98px;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .92)) drop-shadow(0 0 18px rgba(251, 191, 36, .55));
  animation: dioramaChestFloat 2.1s ease-in-out infinite alternate;
}

@keyframes dioramaChestFloat {
  0% { transform: translateY(0px) rotate(-2deg); }
  100% { transform: translateY(-6px) rotate(2deg); }
}

.diorama-cloud-front {
  position: absolute;
  width: 190px;
  right: -18px;
  bottom: -18px;
  opacity: .88;
  z-index: 3;
}

/* 규격 바로가기 바 */
.banner-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 18px 0 14px;
}

.banner-sizes > span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  color: #cbb894;
  margin-right: auto;
}

.banner-sizes a {
  border: 1px solid rgba(245, 189, 86, .42);
  border-radius: 5px;
  background: rgba(20, 13, 8, .88);
  padding: 8px 12px;
  color: #f3e4c6;
  font: 700 11.5px Consolas, monospace;
  text-decoration: none;
  transition: border-color .2s, transform .2s, background .2s;
}

.banner-sizes a b {
  color: #fde047;
  margin-right: 4px;
}

.banner-sizes a:hover {
  border-color: #fef08a;
  background: rgba(42, 27, 14, .95);
  transform: translateY(-1px);
}

.banner-note {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: rgba(22, 14, 8, 0.88);
  border: 1px solid rgba(245, 189, 86, 0.42);
  border-radius: 8px;
  color: #d6c8b2;
  font-size: 12.5px;
  line-height: 1.65;
  margin: 4px 0 22px;
}

.banner-note > span {
  white-space: nowrap;
  color: #fde047;
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: .1em;
}

.banner-note p { max-width: 720px; margin: 0; }

/* 배너 그리드 & 카드 */
.banner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.banner-card {
  min-width: 0;
  background: linear-gradient(180deg, #160e08 0%, #0b0704 100%);
  border: 1px solid rgba(245, 189, 86, .38);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .65);
  scroll-margin-top: 110px;
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}

.banner-card:hover {
  border-color: rgba(254, 240, 138, .82);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .82), 0 0 26px rgba(245, 158, 11, .18);
}

.banner-card-wide { grid-column: 1 / -1; }
.banner-card:has(.banner-preview[data-width="450"]) { grid-column: 1 / -1; }
.banner-card:has(.banner-preview[data-width="450"]) .banner-stage { min-height: 180px; padding: 20px; }

.banner-card-heading {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.banner-card-heading h2 { margin: 4px 0 0; font-size: 18px; color: #fff8e6; }

.banner-dimension {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 4px;
  background: rgba(14, 9, 4, .9);
  border: 1px solid rgba(245, 189, 86, .42);
  color: #f3e4c6;
  font: 700 11.5px Consolas, monospace;
  white-space: nowrap;
}

.banner-dimension small { color: #fde047; }

.banner-stage {
  position: relative;
  min-height: 240px;
  display: grid;
  place-items: center;
  padding: 20px;
  border-top: 1px solid rgba(245, 189, 86, .22);
  background:
    radial-gradient(ellipse at center, rgba(68, 42, 16, .45) 0%, #090603 76%),
    repeating-linear-gradient(-45deg, rgba(254, 240, 138, .016) 0 2px, transparent 2px 10px);
}

.banner-card-wide .banner-stage { min-height: 150px; padding: 22px 18px; }

.banner-player-shell {
  position: relative;
  width: 100%;
  max-width: var(--banner-width, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-preview {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .88), 0 0 26px rgba(245, 158, 11, .22);
  background: #090603;
  border-radius: 4px;
}

.banner-preview hyperframes-player { display: block; width: 100%; height: 100%; position: absolute; inset: 0; }
.banner-preview iframe { border: 0; position: absolute; left: 0; top: 0; transform-origin: top left; }
.banner-loading { position: absolute; inset: 0; display: grid; place-items: center; color: #fde047; font-size: 12px; font-weight: 700; }

/* 배너 타임라인 컨트롤 바 */
.banner-hf-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 20px;
  background: #0b0704;
  border-block: 1px solid rgba(245, 189, 86, .22);
}

.hf-badge {
  font: 800 10px/1 Consolas, monospace;
  letter-spacing: .14em;
  color: #fde047;
  padding: 4px 7px;
  border-radius: 3px;
  background: rgba(245, 158, 11, .16);
  border: 1px solid rgba(251, 191, 36, .48);
}

.hf-scrubber {
  flex: 1;
  height: 6px;
  background: #24170b;
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.hf-scrubber-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #d97706, #fef08a);
  box-shadow: 0 0 10px rgba(254, 240, 138, .8);
  transition: width .05s linear;
}

.hf-timecode {
  font: 11px Consolas, monospace;
  color: #cbb894;
  min-width: 82px;
  text-align: right;
}

.banner-card-bottom { padding: 16px 20px; }
.banner-card-bottom p { color: #d8c8af; font-size: 13px; line-height: 1.6; margin: 0 0 14px; }

.banner-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.banner-actions button, .banner-actions a {
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  color: #f3e4c6;
  border: 1px solid rgba(245, 189, 86, .42);
  border-radius: 5px;
  background: rgba(24, 15, 8, .9);
  padding: 8px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
}

.banner-actions button[data-play]:not(:disabled) {
  background: linear-gradient(135deg, rgba(245, 158, 11, .28), rgba(180, 83, 9, .18));
  border-color: #fbbf24;
  color: #fffbeb;
}

.banner-actions button:disabled { opacity: .5; cursor: default; }

.banner-actions a:hover, .banner-actions button:not(:disabled):hover {
  color: #ffffff;
  border-color: #fef08a;
  background: rgba(48, 31, 16, .95);
  transform: translateY(-1px);
}

.banner-gallery :focus-visible { outline: 2px solid #fef08a; outline-offset: 4px; }
.banner-status { color: #fde047; font-size: 12px; font-weight: 700; margin: 0 20px 14px; }
.banner-status:empty { display: none; }

.banner-usage {
  margin-top: 36px;
  padding: 24px 28px;
  border-radius: 8px;
  background: rgba(18, 11, 6, .85);
  border: 1px solid rgba(245, 189, 86, .35);
}

.banner-usage h2 { font-size: 16px; color: #fef08a; margin-top: 0; margin-bottom: 12px; }
.banner-usage p { color: #d6c8b2; font-size: 13px; line-height: 1.8; max-width: 880px; margin-bottom: 8px; }

@media (max-width: 820px) {
  .banner-intro {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 24px 18px;
    gap: 18px;
  }
  .banner-intro-specs,
  .banner-intro-links { justify-content: center; }
  .banner-hero-emblem { width: 240px; height: 180px; order: -1; }
}

@media (max-width: 700px) {
  .banner-gallery { padding: 0; }
  .subpage-quick-tabs { gap: 6px; margin-bottom: 16px; }
  .quick-tab-link { padding: 7px 11px; font-size: 12px; gap: 6px; }
  .banner-grid { grid-template-columns: 1fr; gap: 16px; }
  .banner-note { flex-direction: column; align-items: flex-start; gap: 8px; }
  .banner-sizes > span { width: 100%; }
  .banner-card-heading { flex-direction: column; align-items: flex-start; padding: 14px 16px; }
  .banner-stage { min-height: 0; padding: 16px 10px; }
  .banner-card-wide .banner-stage { padding: 18px 10px; min-height: 0; }
  .banner-hf-bar { padding: 8px 14px; gap: 8px; }
  .banner-card-bottom { padding: 14px 16px; }
  .banner-usage { padding: 18px 14px; }
}
