@import url("https://fonts.googleapis.com/css2?family=Poiret+One&family=Viaoda+Libre&display=swap");

/* ==========================================================================
   Collection Item Card v7 - Neon Arcade Cyber Deck Hologram Trading Card
   ========================================================================== */

/* v7 반응형 그리드: PC 5열 / 태블릿 3열 / 모바일 2열 (세로형 카드로 축소 조정) */
@media (min-width: 1280px) {
  .grid:has(.collection-item-card-v7) {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .grid:has(.collection-item-card-v7) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .grid:has(.collection-item-card-v7) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 639px) {
  .grid:has(.collection-item-card-v7) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .collection-item-card-v7 {
    aspect-ratio: auto !important;
    padding: 5px 5px 4px 5px;
  }

  .collection-item-card-v7 .tcg-body-section {
    padding: 3px 4px;
    gap: 1.5px;
    min-height: 0;
  }

  .collection-item-card-v7 .tcg-ability-badge {
    font-size: 8px;
    padding: 1px 5px;
  }

  .collection-item-card-v7 .tcg-ability-title {
    font-size: 10px;
  }

  .collection-item-card-v7 .tcg-ability-desc {
    font-size: 8px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .collection-item-card-v7 .tcg-move-cost {
    font-size: 9.5px;
  }

  .collection-item-card-v7 .tcg-move-name {
    font-size: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .collection-item-card-v7 .tcg-move-damage {
    font-size: 10.5px;
  }
}

.v7-card-wrapper.is-floating {
  animation: v7Float var(--v7-dur, 4s) ease-in-out infinite;
  animation-delay: calc(var(--v7-delay, 0s));
}

@keyframes v7Float {

  0%,
  100% {
    transform: translateY(0px) rotateZ(0deg);
  }

  50% {
    transform: translateY(-8px) rotateZ(0.5deg);
  }
}

.collection-item-card-v7 {
  position: relative;
  background: var(--card-bg, #fef08a);
  border-radius: 12px;
  padding: 7px 7px 5px 7px;
  border: 4px solid var(--card-border, #eab308);
  box-shadow:
    0 14px 28px -4px rgba(0, 0, 0, 0.45),
    0 4px 10px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease;
  will-change: transform;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  aspect-ratio: 9 / 13;
  color: #1e293b;
}

.collection-item-card-v7:hover {
  box-shadow:
    0 22px 40px -6px rgba(0, 0, 0, 0.65),
    0 0 24px var(--card-border, #eab308);
  z-index: 10;
}

/* 1. 상단 TCG 헤더 (BASIC / 이름 / HP / 속성) */
.collection-item-card-v7 .tcg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-header-bg, #fef9c3);
  border-radius: 6px 6px 0 0;
  padding: 3px 6px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  margin-bottom: 4px;
}

.collection-item-card-v7 .tcg-stage {
  font-family: 'Outfit', sans-serif;
  font-size: 7.5px;
  font-weight: 900;
  color: #1e293b;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border: 1px solid rgba(0, 0, 0, 0.25);
  padding: 1px 5px;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
  display: inline-block;
  line-height: 1.1;
}

.collection-item-card-v7 .tcg-title {
  font-family: 'Outfit', 'Noto Sans KR', sans-serif;
  font-size: 11px;
  font-weight: 900;
  color: #0f172a;
}

.collection-item-card-v7 .tcg-hp-text {
  font-family: 'Outfit', sans-serif;
  font-size: 8px;
  font-weight: 800;
  color: #dc2626;
}

.collection-item-card-v7 .tcg-hp-num {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 900;
  color: #dc2626;
  margin-right: 2px;
}

.collection-item-card-v7 .tcg-element {
  font-size: 11px;
  line-height: 1;
}

/* 2. 카드 중앙 썸네일 아트 프레임 (실물 카드 일러스트 창) */
.collection-item-card-v7 .video-thumbnail {
  position: relative;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: #000000;
  border: 2px solid #cbd5e1;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.6);
  aspect-ratio: 16 / 11;
}

.collection-item-card-v7 .video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 카드 썸네일 전용 Galaxy / Cosmos Holofoil 오버레이 */
.collection-item-card-v7 .holo-foil-overlay {
  position: absolute;
  inset: 0;
  background-image:
    /* 1. 은하수 동그라미 스페클 (Cosmos Galaxy Dots & Circles) */
    radial-gradient(circle at 20% 35%, rgba(255, 255, 255, 0.9) 1.5px, transparent 2px),
    radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.8) 2px, transparent 3px),
    radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.85) 1.2px, transparent 2px),
    radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.9) 2.5px, transparent 3.5px),
    radial-gradient(circle at 10% 85%, rgba(255, 255, 255, 0.75) 1.8px, transparent 2.5px),
    radial-gradient(circle at 60% 45%, rgba(255, 255, 255, 0.95) 3px, transparent 4px),
    /* 2. 대각선 은하 빛 대역 (Diagonal Starlight Streaks) */
    repeating-linear-gradient(calc(var(--holo-angle, 135deg)),
      rgba(255, 0, 150, 0.45) 0%,
      rgba(0, 230, 255, 0.5) 15%,
      rgba(255, 220, 0, 0.5) 30%,
      rgba(150, 0, 255, 0.45) 45%,
      rgba(0, 255, 150, 0.5) 60%,
      rgba(255, 0, 150, 0.45) 75%),
    /* 3. 마우스 커서 스포트라이트 반사 (Cursor Glare Spotlight) */
    radial-gradient(circle at var(--holo-x, 50%) var(--holo-y, 50%),
      rgba(255, 255, 255, 0.85) 0%,
      rgba(255, 255, 255, 0.3) 25%,
      transparent 65%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 200% 200%, 100% 100%;
  background-position: var(--holo-x, 50%) var(--holo-y, 50%);
  background-blend-mode: screen, screen, screen, screen, screen, screen, color-dodge, overlay;
  mix-blend-mode: color-dodge;
  opacity: 0.2;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 4;
}

.collection-item-card-v7:hover .holo-foil-overlay,
.collection-item-card-v7:active .holo-foil-overlay {
  opacity: 0.85;
}

/* 재생 오버레이 버튼 */
.collection-item-card-v7 .play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.collection-item-card-v7:hover .play-overlay {
  opacity: 1;
}

.collection-item-card-v7 .play-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* 3. 썸네일 아래 서브 정보 바 */
.collection-item-card-v7 .tcg-sub-bar {
  font-family: 'Outfit', sans-serif;
  font-size: 7.5px;
  font-weight: 700;
  color: #475569;
  text-align: center;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  margin: 3px 0 4px 0;
  padding: 1px 0;
}

/* 4. 카드 하단 기술/스탯 바 (Pokemon Move Section) */
.collection-item-card-v7 .tcg-body-section {
  background: var(--card-body-bg, #fefce8);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  padding: 6px 7px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 75px;
  flex: 1;
  justify-content: space-between;
}

/* 포켓몬 TCG 어빌리티 (Ability) 영역 스타일 */
.collection-item-card-v7 .tcg-ability-block {
  padding-bottom: 3px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.15);
}

.collection-item-card-v7 .tcg-ability-badge {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: 10px;
  padding: 2px 9px;
  border-radius: 9999px;
  box-shadow: 0 1.5px 4px rgba(220, 38, 38, 0.45);
  letter-spacing: -0.01em;
  line-height: 1.2;
  border: 1px solid rgba(185, 28, 28, 0.4);
}

.collection-item-card-v7 .tcg-ability-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 12.5px;
  color: #dc2626;
  letter-spacing: -0.01em;
}

.collection-item-card-v7 .tcg-ability-desc {
  font-size: 9px;
  color: #334155;
  line-height: 1.25;
}

.collection-item-card-v7 .tcg-move-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Outfit', sans-serif;
}

.collection-item-card-v7 .tcg-move-cost {
  font-size: 12px;
  letter-spacing: -0.05em;
}

.collection-item-card-v7 .tcg-move-name {
  font-size: 12.5px;
  font-weight: 800;
  color: #0f172a;
  flex: 1;
  margin: 0 6px;
}

.collection-item-card-v7 .tcg-move-damage {
  font-size: 13px;
  font-weight: 900;
  color: #0f172a;
}

.collection-item-card-v7 .tcg-move-desc {
  font-size: 10.5px;
  color: #334155;
  line-height: 1.35;
}

/* 5. 카드 최하단 풋터 */
.collection-item-card-v7 .tcg-footer-bar {
  margin-top: 3px;
  padding-top: 1px;
  border-top: 1px dashed rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   v7.1 - 3D 액자 프레임 카드 (National Geographic Style)
   풀블리드 이미지 + 골드 이너 프레임 + 마우스 3D 틸팅
   동적 색상은 --v71-glow, --v71-frame-outer CSS 변수로 주입
   ========================================================================== */

/* 진입 애니메이션 */
@keyframes v7-1-fade-up {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.v7-1-card-wrapper {
  --v71-frame-outer: #d97706;
  --v71-frame-inner: #fef08a;
  --v71-glow: rgba(217, 119, 6, 0.7);
  --v71-paper-bg: linear-gradient(135deg, #18191c 0%, #0d0e11 60%);
  --v71-paper-text: #f8fafc;
}

/* 플로팅 애니메이션 (shouldAnimate=true 일 때, v7.0과 동일 패턴) */
.v7-1-card-wrapper.v7-1-floating {
  animation: v7Float var(--float-dur, 4s) ease-in-out var(--float-delay, 0s) infinite alternate !important;
}

/* 호버 — 플레이 버튼 노출 */
.v7-1-card-wrapper:hover .play-overlay {
  opacity: 1 !important;
}

/* 호버 — 카드 박스 그로우 (CSS 변수로 카드별 색상 소비) */
.v7-1-card-wrapper:hover .v7-1-card-inner {
  will-change: transform;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.8),
    0 0 24px var(--v71-glow, rgba(200, 168, 75, 0.5));
}

/* ── 프레임 컬러 프리셋 (리얼 액자 메탈 & 목재 톤) ── */
.v7-1-card-wrapper.frame-gold {
  --v71-frame-outer: #b4832c;
  --v71-frame-inner: #d4a359;
  --v71-glow: rgba(180, 131, 44, 0.25);
}

.v7-1-card-wrapper.frame-antique-gold {
  --v71-frame-outer: #855b14;
  --v71-frame-inner: #a67c33;
  --v71-glow: rgba(133, 91, 20, 0.25);
}

.v7-1-card-wrapper.frame-champagne {
  --v71-frame-outer: #9e8964;
  --v71-frame-inner: #c4b08c;
  --v71-glow: rgba(158, 137, 100, 0.2);
}

.v7-1-card-wrapper.frame-silver {
  --v71-frame-outer: #646e78;
  --v71-frame-inner: #94a3b8;
  --v71-glow: rgba(100, 110, 120, 0.2);
}

.v7-1-card-wrapper.frame-bronze {
  --v71-frame-outer: #5c331c;
  --v71-frame-inner: #8c5332;
  --v71-glow: rgba(92, 51, 28, 0.25);
}

.v7-1-card-wrapper.frame-ruby {
  --v71-frame-outer: #4a171d;
  --v71-frame-inner: #782d38;
  --v71-glow: rgba(74, 23, 29, 0.2);
}

.v7-1-card-wrapper.frame-emerald {
  --v71-frame-outer: #163e31;
  --v71-frame-inner: #2d6653;
  --v71-glow: rgba(22, 62, 49, 0.2);
}

.v7-1-card-wrapper.frame-sapphire {
  --v71-frame-outer: #162a63;
  --v71-frame-inner: #294794;
  --v71-glow: rgba(22, 42, 99, 0.2);
}

/* ── 페이퍼 컬러 프리셋 (시각적 구분이 명확한 10가지 파인아트 라벨 매트지) ── */
.v7-1-card-wrapper.paper-obsidian {
  --v71-paper-bg: linear-gradient(135deg, #1e2025 0%, #0f1013 60%);
  --v71-paper-text: #f8fafc;
}

.v7-1-card-wrapper.paper-antique-cream {
  --v71-paper-bg: linear-gradient(135deg, #faf6ee 0%, #ede3d1 60%);
  --v71-paper-text: #292524;
}

.v7-1-card-wrapper.paper-cobalt-blue {
  --v71-paper-bg: linear-gradient(135deg, #1e3a8a 0%, #0f172a 60%);
  --v71-paper-text: #eff6ff;
}

.v7-1-card-wrapper.paper-rose-ash {
  --v71-paper-bg: linear-gradient(135deg, #6b3a44 0%, #3d1e24 60%);
  --v71-paper-text: #fff1f2;
}

.v7-1-card-wrapper.paper-turf-green {
  --v71-paper-bg: linear-gradient(135deg, #14532d 0%, #052e16 60%);
  --v71-paper-text: #f0fdf4;
}

.v7-1-card-wrapper.paper-royal-purple {
  --v71-paper-bg: linear-gradient(135deg, #581c87 0%, #2e1065 60%);
  --v71-paper-text: #faf5ff;
}

.v7-1-card-wrapper.paper-warm-terracotta {
  --v71-paper-bg: linear-gradient(135deg, #7c2d12 0%, #451a03 60%);
  --v71-paper-text: #fffbeb;
}

.v7-1-card-wrapper.paper-mist-sage {
  --v71-paper-bg: linear-gradient(135deg, #3f4e4f 0%, #2c3639 60%);
  --v71-paper-text: #f1f5f9;
}

.v7-1-card-wrapper.paper-sand-gold {
  --v71-paper-bg: linear-gradient(135deg, #78590c 0%, #453003 60%);
  --v71-paper-text: #fefce8;
}

.v7-1-card-wrapper.paper-vintage-paper {
  --v71-paper-bg: linear-gradient(135deg, #d6c7b2 0%, #b8a68e 60%);
  --v71-paper-text: #1c1917;
}

/* 반응형 그리드 */
@media (min-width: 1280px) {

  .grid:has(.v7-1-card-wrapper),
  .grid:has(.collection-item-card-v7.v7_2) {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 640px) and (max-width: 1279px) {

  .grid:has(.v7-1-card-wrapper),
  .grid:has(.collection-item-card-v7.v7_2) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 639px) {

  .grid:has(.v7-1-card-wrapper),
  .grid:has(.collection-item-card-v7.v7_2) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ==========================================================================
   v7.2 - Art Deco Luxury Border Card
   원래 제공해주신 Art Deco CSS 기반의 고급 라인 코너 및 럭셔리 골드 테두리
   ========================================================================== */

.collection-item-card-v7.v7_2 {
  --art-bg: linear-gradient(135deg, hsl(280, 25%, 12%) 0%, hsl(270, 20%, 8%) 100%);
  --art-border: hsl(40, 65%, 80%);
  --art-text: hsl(40, 70%, 85%);
  --art-button-hover: rgba(255, 255, 255, 0.12);

  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--art-bg);
  background: radial-gradient(circle at 100% 0%, var(--art-bg), #050208);
  border: 1px solid var(--art-border);
  padding: 1rem;
  margin: 0.5rem 0;
  color: var(--art-text);
  border-radius: 0.25rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  overflow: visible !important;
}

/* ── v7.2 전용 아르데코 프레임 & 테두리 컬러 변주 ── */
.collection-item-card-v7.v7_2.frame-gold {
  --art-border: #f59e0b;
}

.collection-item-card-v7.v7_2.frame-antique-gold {
  --art-border: #d97706;
}

.collection-item-card-v7.v7_2.frame-emerald {
  --art-border: #34d399;
}

.collection-item-card-v7.v7_2.frame-ruby {
  --art-border: #f43f5e;
}

.collection-item-card-v7.v7_2.frame-sapphire {
  --art-border: #38bdf8;
}

.collection-item-card-v7.v7_2.frame-silver {
  --art-border: #cbd5e1;
}

.collection-item-card-v7.v7_2.frame-champagne {
  --art-border: #fef08a;
}

.collection-item-card-v7.v7_2.frame-bronze {
  --art-border: #fb923c;
}

/* ── v7.2 전용 아르데코 배경 그라데이션 변주 ── */
.collection-item-card-v7.v7_2.paper-royal-purple {
  --art-bg: linear-gradient(135deg, #3b0764 0%, #1e1b4b 100%);
}

.collection-item-card-v7.v7_2.paper-cobalt-blue {
  --art-bg: linear-gradient(135deg, #1e3a8a 0%, #090d16 100%);
}

.collection-item-card-v7.v7_2.paper-turf-green {
  --art-bg: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
}

.collection-item-card-v7.v7_2.paper-rose-ash {
  --art-bg: linear-gradient(135deg, #881337 0%, #4c0519 100%);
}

.collection-item-card-v7.v7_2:hover {
  box-shadow: 0 15px 40px rgba(245, 158, 11, 0.25), 0 0 15px rgba(217, 119, 6, 0.3);
  transform: translateY(-4px);
}

/* ==========================================
 * v7.2 애니메이션 활성화 (is-animated)
 * 럭셔리 아르데코 골드 빛번짐 쉼머 오버레이 & 코너 오라 펄스
 * ========================================== */
.collection-item-card-v7.v7_2.is-animated {
  animation: v72Float var(--v72-dur, 4.5s) ease-in-out var(--v72-delay, 0s) infinite alternate;
}

.collection-item-card-v7.v7_2.is-animated::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0.25rem;
  background: linear-gradient(120deg,
      transparent 0%,
      rgba(251, 191, 36, 0.01) 35%,
      rgba(251, 191, 36, 0.08) 50%,
      rgba(251, 191, 36, 0.01) 65%,
      transparent 100%);
  background-size: 200% 100%;
  animation: v72Shimmer 7s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
  z-index: 5;
}

.collection-item-card-v7.v7_2.is-animated .corner {
  animation: v72CornerGlow 3.5s ease-in-out infinite alternate;
}

@keyframes v72Float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-6px) rotate(0.4deg);
  }

  100% {
    transform: translateY(-10px) rotate(-0.4deg);
  }
}

@keyframes v72Shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes v72CornerGlow {
  0% {
    border-color: var(--art-border);
    box-shadow: none;
  }

  100% {
    border-color: var(--art-border);
    box-shadow: 0 0 8px var(--art-border);
  }
}

/* 4개 귀퉁이 코너 데코레이션 (.corner) */
.collection-item-card-v7.v7_2 .corner {
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid var(--art-border);
  position: absolute;
  z-index: 10;
  pointer-events: none;
}

.collection-item-card-v7.v7_2 .corner::after,
.collection-item-card-v7.v7_2 .corner::before {
  content: "";
  position: absolute;
}

.collection-item-card-v7.v7_2 .corner::after {
  width: 2rem;
  height: calc(1rem - 1px);
}

.collection-item-card-v7.v7_2 .corner::before {
  width: calc(1rem - 1px);
  height: 2rem;
}

.collection-item-card-v7.v7_2 .corner.left {
  left: -0.5rem;
}

.collection-item-card-v7.v7_2 .corner.left::after {
  left: calc(-2px + 1rem);
  border-left: 1px solid var(--art-border);
}

.collection-item-card-v7.v7_2 .corner.left::before {
  left: -1px;
  border-left: 1px solid var(--art-border);
}

.collection-item-card-v7.v7_2 .corner.right {
  right: -0.5rem;
}

.collection-item-card-v7.v7_2 .corner.right::after {
  right: calc(-2px + 1rem);
  border-right: 1px solid var(--art-border);
}

.collection-item-card-v7.v7_2 .corner.right::before {
  right: -1px;
  border-right: 1px solid var(--art-border);
}

.collection-item-card-v7.v7_2 .corner.top {
  top: -0.5rem;
}

.collection-item-card-v7.v7_2 .corner.top::after {
  top: -1px;
  border-top: 1px solid var(--art-border);
}

.collection-item-card-v7.v7_2 .corner.top::before {
  top: calc(-2px + 1rem);
  border-top: 1px solid var(--art-border);
}

.collection-item-card-v7.v7_2 .corner.bottom {
  bottom: -0.5rem;
}

.collection-item-card-v7.v7_2 .corner.bottom::after {
  bottom: -1px;
  border-bottom: 1px solid var(--art-border);
}

.collection-item-card-v7.v7_2 .corner.bottom::before {
  bottom: calc(-2px + 1rem);
  border-bottom: 1px solid var(--art-border);
}

/* 아르데코 타이포그래피 */
.collection-item-card-v7.v7_2 .art-deco-title {
  font-family: "Viaoda Libre", serif;
  text-align: center;
  color: var(--art-text);
  letter-spacing: 0.05em;
}

.collection-item-card-v7.v7_2 .art-deco-desc {
  font-family: "Poiret One", cursive, sans-serif;
  line-height: 1.4;
  opacity: 0.85;
  color: var(--art-text);
}

/* 아르데코 버튼 & 양쪽 다이아몬드 어치 */
.collection-item-card-v7.v7_2 .art-deco-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Viaoda Libre", serif;
  text-align: center;
  border-top: 1px solid var(--art-border);
  border-bottom: 1px solid var(--art-border);
  height: 2.2rem;
  padding: 0 1rem;
  position: relative;
  transition: background-color 200ms ease-in-out;
  margin: 0.5rem 1.5rem;
  cursor: pointer;
  color: var(--art-text);
  background: transparent;
}

.collection-item-card-v7.v7_2 .art-deco-btn .left,
.collection-item-card-v7.v7_2 .art-deco-btn .right {
  position: absolute;
  width: 1.3rem;
  height: 1.3rem;
  border-bottom: 1px solid var(--art-border);
  border-left: 1px solid var(--art-border);
  transition: background-color 200ms ease-in-out;
}

.collection-item-card-v7.v7_2 .art-deco-btn .left::before,
.collection-item-card-v7.v7_2 .art-deco-btn .right::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border: 1px solid var(--art-border);
  position: absolute;
  top: calc(0.85rem - 1px);
  left: calc(-0.35rem - 1px);
}

.collection-item-card-v7.v7_2 .art-deco-btn .left::after,
.collection-item-card-v7.v7_2 .art-deco-btn .right::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  background: var(--art-border);
  position: absolute;
  top: calc(0.85rem - 1px);
  left: calc(0rem - 1px);
}

.collection-item-card-v7.v7_2 .art-deco-btn .left {
  left: -0.65rem;
  transform: rotate(45deg);
}

.collection-item-card-v7.v7_2 .art-deco-btn .right {
  right: -0.65rem;
  transform: rotate(-135deg);
}

.collection-item-card-v7.v7_2:hover .art-deco-btn,
.collection-item-card-v7.v7_2 .art-deco-btn:hover {
  background-color: var(--art-button-hover);
}

.collection-item-card-v7.v7_2:hover .art-deco-btn .left,
.collection-item-card-v7.v7_2:hover .art-deco-btn .right,
.collection-item-card-v7.v7_2 .art-deco-btn:hover .left,
.collection-item-card-v7.v7_2 .art-deco-btn:hover .right {
  background-color: var(--art-button-hover);
}

/* ==========================================================================
   v7.3 - Stack Deck (인터랙티브 3D 카드 스택 슬라이더)
   ========================================================================== */
.v7-3-stack-deck-container {
  --t: 0.8s;
  --p: var(--k, 0);
  --abs-p: max(var(--k, 0) - var(--p, 0), var(--p, 0) - var(--k, 0));
  --end: clamp(0, var(--abs-p) - 1, 1);
  --dir: clamp(-1, (var(--k, 0) - var(--p, 0)) * 100000, 1);
  --fwd: calc(0.5 * (1 + var(--dir)));
  --v: var(--k, 0);
  --abs-v: max(var(--v, 0) - var(--p, 0), var(--p, 0) - var(--v, 0));
  --prg: calc(var(--abs-v) / (1 - var(--end) + var(--end) * (var(--n) - 1)));

  display: grid;
  grid-template: max-content max-content max-content max-content / max-content 1fr;
  grid-gap: 0.5rem 3.5rem;
  align-items: start;
  place-self: center;
  color: #f1f5f9;
  font-family: 'Poppins', system-ui, sans-serif;
  counter-reset: k calc(1 + var(--k, 0)) n var(--n);
  transition: --p 0s var(--t), --v var(--t);
  position: relative;
  width: 100%;
  max-width: 940px;
  margin: 1rem auto;
  padding: 0.5rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

.v7-3-stack-deck-container::before {
  grid-area: 1 / 2;
  width: auto;
  text-align: left;
  content: counter(k) ' / ' counter(n);
  font-family: 'Poppins', monospace, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #a5b4fc;
  margin-bottom: 0.2rem;
  align-self: start;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.v7-3-article-item {
  grid-area: 1 / 1 / -1 / -1;
  display: grid;
  grid-template: max-content max-content / subgrid;
  z-index: var(--z, 1);
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.34, 1.25, 0.64, 1), opacity 0.5s ease;
}

/* cardAnimate 옵션 켜짐(is-animated) 시 v7.1 스타일 둥둥 플로팅 무빙 애니메이션 작동 */
.v7-3-stack-deck-container.is-animated .v7-3-article-item {
  animation: v7_3_float calc(3.8s + var(--i, 0) * 0.4s) ease-in-out infinite alternate;
}

@keyframes v7_3_float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-9px) rotate(0.4deg);
  }

  100% {
    transform: translateY(2px) rotate(-0.3deg);
  }
}

.v7-3-article-item .v7-3-meta-box {
  grid-column: 2;
  grid-row: 1;
  margin-top: 2.2rem;
  align-self: start;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.8rem);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.v7-3-article-item.is-active .v7-3-meta-box {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.v7-3-article-item h2 {
  font-size: 2.1rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 0.35rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.v7-3-article-item em {
  font-style: normal;
  font-size: 1.05rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.4;
  margin-bottom: 1.25rem;
  text-shadow: none;
  background: rgba(15, 23, 42, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-block;
  max-width: fit-content;
}

.v7-3-article-item .v7-3-img-box {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 22rem;
  height: 22rem;
  border-radius: 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  transform: rotate(var(--a, 0deg)) scale(0.96);
  /* 맨 아래/위 스택으로 들어가 안착할 때 1.5s 동안 아주 여유롭고 부드럽게 복귀 */
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  pointer-events: auto;
}

/* 맨 위에 안착한 활성 카드도 자기 고유 회전각(--a)을 부드럽게 유지하면서 약간 확대 강조 */
.v7-3-article-item.is-active .v7-3-img-box {
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
  transform: rotate(var(--a, 0deg)) scale(1.03);
}

/* < 버튼 클릭 시: 맨 위 카드가 왼쪽으로 빠르게(0.35초) 슥 빠져나감 */
.v7-3-article-item.is-top-exiting .v7-3-img-box {
  transform: translate(-135%, 15px) rotate(-25deg) scale(0.9) !important;
  opacity: 0.7;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease !important;
}

/* > 버튼 클릭 시: 맨 아래 카드가 왼쪽으로 빠르게(0.35초) 슥 빠져나감 */
.v7-3-article-item.is-bottom-exiting .v7-3-img-box {
  transform: translate(-135%, 15px) rotate(-25deg) scale(0.9) !important;
  opacity: 0.7;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease !important;
}

.v7-3-btn-wrapper {
  display: flex;
  gap: 1.2rem;
  position: absolute;
  top: 25.8rem;
  left: 0.5rem;
  width: 22rem;
  justify-content: center;
  z-index: 999;
  pointer-events: auto;
}

.v7-3-nav-button {
  border: none;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}

.v7-3-nav-button:hover {
  background: rgba(99, 102, 241, 0.85);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(129, 140, 248, 0.8);
}

.v7-3-nav-button:active {
  transform: scale(0.95);
}

/* 모바일 뷰포트 대응 (@media screen and (max-width: 768px)) */
@media screen and (max-width: 768px) {
  .v7-3-stack-deck-container {
    grid-template: max-content max-content max-content max-content max-content / 1fr;
    grid-gap: 0.35rem;
    justify-items: center;
    align-content: start;
    text-align: center;
    padding: 0.5rem 1rem;
    margin: 0.25rem auto;
  }

  .v7-3-stack-deck-container::before {
    grid-area: 2 / 1;
    justify-self: center;
    margin-top: 0.35rem;
    margin-bottom: 0rem;
  }

  .v7-3-article-item {
    grid-template: subgrid / subgrid;
    align-content: start;
  }

  .v7-3-article-item .v7-3-img-box {
    grid-area: 1 / 1;
    width: 16rem;
    height: 16rem;
    margin: 0 auto;
  }

  .v7-3-btn-wrapper {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    grid-area: 3 / 1;
    justify-content: center;
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
  }

  .v7-3-article-item .v7-3-meta-box {
    grid-area: 4 / 1;
    margin-top: 0;
    align-self: start;
    justify-self: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .v7-3-article-item h2 {
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 0.25rem;
  }

  .v7-3-article-item em {
    font-size: 0.95rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.5rem;
  }

  /* 모바일에서 카드 좌측 이동 비율 소폭 조정 */
  .v7-3-article-item.is-top-exiting .v7-3-img-box,
  .v7-3-article-item.is-bottom-exiting .v7-3-img-box {
    transform: translate(-100%, 15px) rotate(-22deg) scale(0.85) !important;
  }
}