/* ══════════════════════════════════════════════
   DRAGON'S LAIR — 서브페이지 공용 테마 (자체 완결)
   main.css 없이 이 파일 하나로 동작
══════════════════════════════════════════════ */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0a070d;
  color: #e8ddcf;
  font-family: "Galmuri14", sans-serif;
  user-select: none;
}

@supports (height: 100dvh) {

  html,
  body {
    height: 100dvh;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video,
iframe {
  max-width: 100%;
}

.screen {
  display: none !important;
}

.screen.active {
  display: block !important;
}

/* 배경 캔버스 / 커서 스파크 / 비네트 */
#ember-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#spark-canvas {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 118%, rgba(255, 80, 0, 0.09), transparent 55%),
    radial-gradient(ellipse at center, transparent 52%, rgba(0, 0, 0, 0.6) 100%);
}

body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

/* ── 상단 바 ── */
.lair-bar {
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 26px;
  background: rgba(12, 5, 2, 0.93);
  border-bottom: 1px solid rgba(255, 160, 60, 0.3);
  box-shadow: 0 2px 24px rgba(255, 100, 0, 0.15);
  backdrop-filter: blur(6px);
}

.lair-back {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: #ffc94d;
  text-shadow: 0 0 8px #ff9500;
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 130, 30, 0.4);
  background: rgba(255, 110, 0, 0.06);
  transition: all 0.15s;
  white-space: nowrap;
}

.lair-back:hover {
  color: #ffd23f;
  border-color: rgba(255, 160, 60, 0.75);
  box-shadow: 0 0 14px rgba(255, 120, 20, 0.45);
}

.lair-brand {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 200, 120, 0.35);
}

.lair-brand span {
  font-size: 12px;
  font-weight: 400;
  color: #ff9e4d;
  text-shadow: 0 0 8px #ff640066;
}

.lair-links {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.lair-links a {
  font-size: 11px;
  color: #ff9e4d;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 120, 20, 0.3);
  padding: 5px 11px;
  border-radius: 4px;
  transition: all 0.15s;
}

.lair-links a:hover {
  color: #ffd23f;
  border-color: rgba(255, 160, 60, 0.7);
  text-shadow: 0 0 8px #ff9500;
  box-shadow: 0 0 10px rgba(255, 130, 20, 0.3);
}

/* ── 콘텐츠 스테이지 ── */
.lair-main {
  position: relative;
  z-index: 3;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 26px 44px 22px;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
}

.lair-eyebrow {
  font-size: 11px;
  letter-spacing: 0.35em;
  color: #ffc94d;
  text-shadow: 0 0 8px #ff9500;
  margin-bottom: 8px;
}

.lair-title {
  margin: 0 0 4px;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 110, 0, 0.45), 0 0 36px rgba(255, 110, 0, 0.2);
}

.lair-desc {
  font-size: 13px;
  color: #ff9e4d;
  letter-spacing: 0.08em;
  text-shadow: 0 0 8px #ff640055;
  margin: 0 0 16px;
}

/* ── 카루셀 ── */
.carousel {
  position: relative;
  flex: 1;
  min-height: 0;
}

.c-page {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(26px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  overflow-y: auto;
  padding-right: 6px;
}

.c-page.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.c-page.from-left {
  transform: translateX(-26px);
}

.c-page.active.from-left {
  transform: translateX(0);
}

.c-page::-webkit-scrollbar {
  width: 6px;
}

.c-page::-webkit-scrollbar-thumb {
  background: rgba(255, 120, 20, 0.35);
  border-radius: 3px;
}

.c-page::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

.c-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding-top: 14px;
}

.c-btn {
  font-family: inherit;
  font-size: 18px;
  cursor: pointer;
  color: #ffc94d;
  background: rgba(255, 110, 0, 0.08);
  border: 2px solid rgba(255, 130, 30, 0.5);
  border-radius: 4px;
  padding: 6px 22px;
  text-shadow: 0 0 8px #ff9500;
  transition: all 0.15s;
}

.c-btn:hover {
  background: rgba(255, 110, 0, 0.22);
  box-shadow: 0 0 16px rgba(255, 120, 20, 0.5);
}

.c-btn:active {
  transform: scale(0.93);
}

.c-count {
  font-size: 13px;
  color: #ffd23f;
  letter-spacing: 0.2em;
  text-shadow: 0 0 6px #ff9500;
  min-width: 70px;
  text-align: center;
}

/* ── 패널 / 요소 ── */
.panel {
  background: rgba(18, 11, 8, 0.82);
  border: 1px solid rgba(255, 150, 50, 0.22);
  border-radius: 10px;
  box-shadow: 0 0 24px rgba(255, 110, 0, 0.07), inset 0 0 40px rgba(0, 0, 0, 0.45);
}

.chip {
  display: inline-block;
  font-size: 11px;
  color: #d4af37;
  letter-spacing: 0.04em;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 3px;
  padding: 3px 10px;
  margin: 0 6px 6px 0;
  background: rgba(212, 175, 55, 0.06);
}

.chip.plat {
  color: #ff9e4d;
  border-color: rgba(255, 130, 30, 0.4);
  background: rgba(255, 110, 0, 0.06);
}

/* 카드 본문 */
.card-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.card-head h2 {
  margin: 0;
  font-size: 24px;
  color: #ffc94d;
  text-shadow: 0 0 6px #d4af3766;
}

.card-cols {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.card-media {
  flex-shrink: 0;
  width: 300px;
}

.card-media img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 160, 60, 0.35);
  box-shadow: 0 0 20px rgba(255, 110, 0, 0.12);
}

.card-info {
  flex: 1;
  min-width: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  font-size: 13.5px;
  line-height: 1.5;
}

.info-grid dt {
  color: #ffc94d;
  font-weight: 600;
  white-space: nowrap;
}

.info-grid dd {
  margin: 0;
  color: #c0b0a0;
}

.card-note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.85;
  color: #c0b0a0;
}

/* 섹션 소제목 */
.sec-title {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: #ffd23f;
  text-shadow: 0 0 8px #ff950066;
  margin: 22px 0 12px;
  border-left: 3px solid #ff7a1a;
  padding-left: 12px;
}

.sec-body {
  font-size: 13.5px;
  line-height: 1.95;
  color: #c0b0a0;
  padding: 16px 20px;
}

.sec-body b {
  color: #ffc94d;
}

/* 썸네일 행 (클릭 → 라이트박스) */
.shot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shot-row img {
  flex: 1 1 0;
  min-width: 120px;
  height: 160px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 8px;
  border: 1px solid rgba(255, 160, 60, 0.25);
  cursor: zoom-in;
  transition: all 0.15s;
}

.shot-row.tall img {
  height: 300px;
}

.shot-row img:hover {
  border-color: rgba(255, 170, 60, 0.8);
  box-shadow: 0 0 14px rgba(255, 120, 20, 0.4);
}

/* 라이트박스 */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  cursor: zoom-out;
}

#lightbox.show {
  display: flex;
}

#lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  border: 1px solid rgba(255, 160, 60, 0.4);
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(255, 110, 0, 0.3);
}

/* ── 모바일 ── */
@media (max-width: 860px) {
  .lair-bar {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 10px 14px;
  }

  .lair-brand {
    font-size: 15px;
  }

  .lair-brand span {
    display: none;
  }

  .lair-links {
    gap: 6px;
  }

  .lair-links a {
    padding: 4px 8px;
    font-size: 10px;
  }

  .lair-main {
    padding: 16px 14px 12px;
  }

  .lair-title {
    font-size: 24px;
  }

  .lair-eyebrow {
    font-size: 10px;
    letter-spacing: 0.25em;
  }

  .card-cols {
    flex-direction: column;
  }

  .card-media {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .card-head h2 {
    font-size: 19px;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 3px 0;
  }

  .info-grid dt {
    margin-top: 8px;
  }

  .shot-row img {
    flex: 1 1 44%;
    min-width: 0;
    height: 120px;
  }

  .shot-row.tall img {
    height: 200px;
  }

  .c-btn {
    padding: 5px 16px;
    font-size: 15px;
  }

  .c-count {
    font-size: 11px;
  }
}