/* ===========================================================
   components.css — 버튼 · 카드 · 리스트 · 표 · 갤러리 · CTA
   =========================================================== */

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
  transition: transform .18s ease, background-color .2s, color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--primary {
  background: linear-gradient(135deg, var(--gold-lt), var(--gold));
  color: #10140c;
  border: 1px solid var(--gold-lt);
}
.btn--primary:hover { background: var(--gold-lt); color: #10140c; }

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(243, 239, 228, .04);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-lt); }

.btn--kakao {
  background: #FEE500;
  color: #191600;
  border: 1px solid #FEE500;
}
.btn--kakao:hover { background: #ffef4d; color: #191600; }

.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .86rem; }
.btn--block { width: 100%; }

/* ---------- 카드 ---------- */
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: var(--line); }
a.card:hover { transform: translateY(-3px); }

.card__media { position: relative; aspect-ratio: 16 / 10; background: var(--green-dk); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--tall { aspect-ratio: 3 / 4; }
.card__media--wide { aspect-ratio: 16 / 9; }

.card__body { flex: 1; padding: 20px; }
@media (min-width: 768px) { .card__body { padding: 24px; } }
.card__title { margin-bottom: 8px; color: var(--ink); }
.card__text { color: var(--ink-soft); font-size: .93rem; margin: 0; }

.card__num {
  position: absolute;
  top: 10px; left: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: rgba(7, 16, 12, .82);
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-lt);
  font-family: var(--font-en);
  font-size: .95rem;
  font-weight: 700;
}

/* 금테 강조 카드 */
.card--gold {
  background: linear-gradient(160deg, rgba(201, 162, 39, .10), rgba(14, 42, 34, .6));
  border-color: var(--line);
}

/* ---------- 스펙 리스트 (아이콘 + 라벨 + 값) ---------- */
.spec { display: grid; gap: 9px; margin: 0; }
.spec li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  font-size: .9rem;
  color: var(--ink-soft);
}
.spec svg { width: 17px; height: 17px; margin-top: 3px; color: var(--gold); flex-shrink: 0; }
.spec b { color: var(--ink); font-weight: 600; }

/* 불릿 리스트 */
.bullets { display: grid; gap: 7px; }
.bullets li {
  position: relative;
  padding-left: 16px;
  font-size: .89rem;
  color: var(--ink-soft);
  line-height: 1.65;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 2px; top: .62em;
  width: 5px; height: 5px;
  transform: rotate(45deg);
  background: var(--gold);
}

/* ---------- 수치 타일 ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.stat {
  padding: 18px 14px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}
.stat__num {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--gold-lt);
}
.stat__label { display: block; margin-top: 6px; font-size: .82rem; color: var(--muted); }

/* ---------- 표 ---------- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: .9rem; }
caption {
  padding: 12px 16px;
  color: var(--muted);
  font-size: .82rem;
  text-align: left;
}
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); }
thead th {
  background: rgba(11, 58, 46, .6);
  color: var(--gold);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(201, 162, 39, .04); }
td b { color: var(--ink); }
.scroll-hint { margin-top: 8px; color: var(--muted); font-size: .78rem; }
@media (min-width: 768px) { .scroll-hint { display: none; } }

/* ---------- 게임 구성 리스트 ---------- */
.game-list { display: grid; gap: 10px; }
.game-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}
.game-list .name { font-weight: 600; font-size: .98rem; }
.game-list .name small { display: block; color: var(--muted); font-size: .76rem; font-weight: 400; }
.game-list .qty {
  font-family: var(--font-en);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gold-lt);
  white-space: nowrap;
}
.game-list .qty span { font-family: var(--font-kr); font-size: .82rem; color: var(--muted); margin-left: 3px; }

/* ---------- 갤러리 ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--green-dk);
  aspect-ratio: 4 / 3;
}
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease, opacity .3s;
}
.gallery button:hover img { transform: scale(1.05); opacity: .92; }

/* 라이트박스 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 8, 6, .94);
}
.lightbox[data-open="true"] { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 84vh;
  border-radius: var(--radius-sm);
  object-fit: contain;
}
.lightbox__caption {
  position: absolute;
  left: 0; right: 0; bottom: 18px;
  padding-inline: 20px;
  text-align: center;
  color: var(--ink-soft);
  font-size: .85rem;
}
.lightbox__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(7, 16, 12, .8);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
}

/* ---------- 문의 CTA 밴드 ---------- */
.cta-band {
  background:
    radial-gradient(100% 120% at 50% 0%, rgba(201, 162, 39, .14), transparent 62%),
    var(--green-dk);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.cta-band .btn { min-width: 210px; }
.cta-band__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin-top: 26px;
}
@media (min-width: 560px) {
  .cta-band__actions { flex-direction: row; justify-content: center; }
}
.contact-line {
  margin-top: 20px;
  font-family: var(--font-en);
  font-size: clamp(1.3rem, 5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--gold-lt);
}

/* ---------- 모바일 고정 문의 바 ---------- */
.quick-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-soft);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.quick-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 54px;
  background: rgba(7, 16, 12, .97);
  color: var(--ink);
  font-size: .92rem;
  font-weight: 700;
}
.quick-bar a.is-kakao { color: #FEE500; }
.quick-bar a.is-call { color: var(--gold-lt); }
.quick-bar svg { width: 18px; height: 18px; }
body { padding-bottom: 54px; }
@media (min-width: 900px) {
  .quick-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- 알림 박스 ---------- */
.notice {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  padding: 16px 18px;
  background: rgba(201, 162, 39, .07);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: .86rem;
  line-height: 1.7;
}
.notice svg { width: 20px; height: 20px; color: var(--gold); margin-top: 2px; }

/* ---------- 태그 ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold-lt);
  font-size: .76rem;
  letter-spacing: .02em;
}

/* ---------- 스크롤 등장 ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}
