/* ========================================
   TalkCARD — Responsive Design
   Mobile-first, scales up for desktop
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;900&family=Outfit:wght@400;600;700;800;900&display=swap');
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #fff;
  --text: #111;
  --muted: #888;
  --border: #111;
  --gray: #f5f5f5;
  --white: #fff;
  --cyber: linear-gradient(135deg, #333, #888);
  --glow: 0 0 16px rgba(0, 0, 0, 0.2), 0 0 28px rgba(0, 0, 0, 0.1);
}
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  /* 강화 효과 후 터치 기반 좌우 패닝 차단 — 세로 스크롤만 허용 */
  touch-action: pan-y;
}
body.landing-page {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans KR', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  touch-action: pan-y;
}

/* ========================
   PAGE — Each section
   ======================== */
.page {
  /* 1~2페이지가 끊기지 않고 자연스럽게 이어지는 연속 스크롤. */
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 0 24px;
  position: relative;
}

/* ========================
   TOP BAR
   ======================== */
.topbar {
  width: 100%;
  height: 56px;
  background: var(--white, #fff);
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}
.topbar-inner {
  width: 100%;
  max-width: 1200px;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
}
.topbar__btn {
  display: inline-block;
  padding: 7px 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  text-align: center;
  line-height: 1.3;
  background: var(--white);
  transition: 0.2s;
}
.topbar__btn:hover {
  background: var(--text);
  color: var(--white);
}
.topbar__btn:active {
  background: var(--text);
  color: var(--white);
}

/* Topbar Right Group */
.topbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar__user {
  position: relative;
  cursor: pointer;
}
.topbar__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--text);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: 0.2s;
}
.topbar__avatar:hover {
  opacity: 0.7;
}
.topbar__dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 140px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: 0.2s;
  z-index: 100;
}
.topbar__user.open .topbar__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.topbar__dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
  transition: 0.15s;
}
.topbar__dropdown a:hover {
  background: var(--gray);
}
.topbar__dropdown a:last-child {
  color: #999;
}

/* Logo */
.topbar__logo {
  text-decoration: none;
  transition: opacity 0.2s;
}
.topbar__logo:hover {
  opacity: 0.6;
}
.topbar__logo-text {
  font-family: 'Outfit', 'Arial Black', sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: #000;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.topbar__logo-text strong {
  font-weight: 900;
}
.page--dark .topbar__logo-text {
  color: #fff;
}

/* ========================
   PAGE CONTENT AREA
   ======================== */
.page__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 0 32px;
  gap: 32px;
}

/* ========================
   TYPOGRAPHY
   ======================== */
.headline {
  font-size: clamp(1.4rem, 5.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.55;
  letter-spacing: -0.5px;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.headline--lg {
  font-size: clamp(1.4rem, 5vw, 2.6rem);
  line-height: 1.4;
  text-align: center;
}
.br-desktop {
  display: none;
}
@media (min-width: 768px) {
  .br-desktop {
    display: inline;
  }
}
.subtext {
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  font-weight: 400;
  color: var(--muted);
  line-height: 1.7;
}
.cyber-text {
  background: var(--cyber);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

/* 강화 데모 specs 패널 — 값 텍스트("Uncommon ×2.51" 등)가 길어져도
   줄바꿈으로 행 높이를 키우지 않도록 한 줄 고정(넘치면 …처리). 높이 안정화. */
.hero-specs-panel span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== 강화 배너 — 시도 · 성공 · 실패 통합 럭셔리 배지 ===== */
.hero-enhance-zone {
  position: relative;
  width: 100%;
  max-width: 320px;
  display: flex;
  justify-content: center;
}
/* ===========================================================
   강화 배너 — 카드 정중앙 오버레이 (화려 · 강렬)
   =========================================================== */
.enhance-banner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 30;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.enhance-banner.is-trying,
.enhance-banner.is-success,
.enhance-banner.is-failure {
  opacity: 1;
}

/* 뒤편 회전 광선 (sunburst rays) */
.enhance-banner::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(380px, 92vw);
  height: min(380px, 92vw);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: 0;
  z-index: -2;
  pointer-events: none;
  -webkit-mask: radial-gradient(
    circle,
    transparent 13%,
    #000 24%,
    transparent 62%
  );
  mask: radial-gradient(circle, transparent 13%, #000 24%, transparent 62%);
}
/* 뒤편 부드러운 광채 (radial bloom) */
.enhance-banner::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 320px;
  height: 320px;
  transform: translate(-50%, -50%) scale(0.85);
  border-radius: 50%;
  opacity: 0;
  z-index: -3;
  pointer-events: none;
}

/* ── 공통 알약 베이스 — 다크 글래스 ── */
.enhance-banner__inner {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 1.16rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(16, 13, 9, 0.95),
    rgba(7, 6, 5, 0.95)
  );
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 2px solid transparent;
}
/* 빛 흐름 레이어 (shimmer sweep) */
.enhance-banner__inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    transparent 30%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 70%
  );
  background-size: 220% 100%;
  opacity: 0;
  pointer-events: none;
}
.enhance-banner__icon {
  display: inline-block;
  font-style: normal;
  font-size: 0.82rem;
  line-height: 1;
}
.enhance-banner__text {
  display: inline-block;
}

/* ── is-trying: 앰버 에너지 ── */
.enhance-banner.is-trying .enhance-banner__inner {
  color: #ffd24a;
  border-color: rgba(245, 170, 30, 0.72);
  background: linear-gradient(
    135deg,
    rgba(54, 30, 4, 0.95),
    rgba(16, 10, 3, 0.95)
  );
  box-shadow:
    0 0 30px rgba(245, 158, 11, 0.6),
    0 0 78px rgba(245, 158, 11, 0.3),
    inset 0 1px 0 rgba(255, 230, 120, 0.3);
  text-shadow: 0 0 16px rgba(245, 158, 11, 0.9);
  animation: tryingPulse 1.15s ease-in-out infinite;
}
.enhance-banner.is-trying .enhance-banner__inner::after {
  opacity: 1;
  animation: bannerShimmer 1.8s linear infinite;
}
.enhance-banner.is-trying .enhance-banner__icon {
  animation: iconSpin 2.4s linear infinite;
}
.enhance-banner.is-trying::before {
  background: repeating-conic-gradient(
    from 0deg,
    rgba(245, 180, 40, 0.85) 0deg 3deg,
    transparent 3deg 16deg
  );
  animation:
    raySpin 9s linear infinite,
    rayFlicker 1.15s ease-in-out infinite;
}
.enhance-banner.is-trying::after {
  background: radial-gradient(
    circle,
    rgba(245, 158, 11, 0.45) 0%,
    rgba(245, 158, 11, 0.12) 40%,
    transparent 70%
  );
  animation: bloomPulse 1.15s ease-in-out infinite;
}

/* ── is-success: 골드 폭발 ── */
.enhance-banner.is-success .enhance-banner__inner {
  color: #fff2c4;
  border-color: rgba(255, 215, 90, 0.9);
  background: linear-gradient(
    135deg,
    rgba(70, 52, 12, 0.95),
    rgba(24, 18, 6, 0.95)
  );
  box-shadow:
    0 0 40px rgba(255, 200, 70, 0.7),
    0 0 100px rgba(255, 190, 50, 0.4),
    inset 0 1px 0 rgba(255, 245, 180, 0.35);
  text-shadow: 0 0 20px rgba(255, 210, 90, 0.95);
  animation:
    badgeEntry 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
    successGlow 1.4s ease-in-out 0.5s infinite;
}
.enhance-banner.is-success .enhance-banner__inner::after {
  opacity: 1;
  animation: bannerShimmer 0.9s ease-out 0.15s infinite;
}
.enhance-banner.is-success .enhance-banner__icon {
  animation: iconBurst 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.12s both;
}
.enhance-banner.is-success::before {
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 220, 110, 0.95) 0deg 3.5deg,
    transparent 3.5deg 15deg
  );
  animation:
    raySpin 6s linear infinite,
    rayReveal 0.6s ease-out both;
}
.enhance-banner.is-success::after {
  background: radial-gradient(
    circle,
    rgba(255, 210, 90, 0.6) 0%,
    rgba(255, 190, 60, 0.18) 40%,
    transparent 70%
  );
  animation:
    bloomBurst 0.6s cubic-bezier(0.16, 1, 0.3, 1) both,
    bloomPulse 1.4s ease-in-out 0.6s infinite;
}

/* ── is-failure: 크림슨 ── */
.enhance-banner.is-failure .enhance-banner__inner {
  color: #ff8585;
  border-color: rgba(239, 68, 68, 0.7);
  background: linear-gradient(
    135deg,
    rgba(54, 8, 8, 0.95),
    rgba(18, 5, 5, 0.95)
  );
  box-shadow:
    0 0 28px rgba(239, 68, 68, 0.5),
    0 0 60px rgba(239, 68, 68, 0.22),
    inset 0 1px 0 rgba(255, 160, 160, 0.18);
  text-shadow: 0 0 14px rgba(239, 68, 68, 0.75);
  animation:
    badgeEntry 0.32s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
    failureShake 0.45s ease-out 0.08s;
}
.enhance-banner.is-failure .enhance-banner__icon {
  animation: iconBurst 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s both;
}
.enhance-banner.is-failure::before {
  background: repeating-conic-gradient(
    from 0deg,
    rgba(239, 68, 68, 0.85) 0deg 3deg,
    transparent 3deg 16deg
  );
  animation:
    raySpin 11s linear infinite reverse,
    rayReveal 0.45s ease-out both;
}
.enhance-banner.is-failure::after {
  background: radial-gradient(
    circle,
    rgba(239, 68, 68, 0.45) 0%,
    rgba(239, 68, 68, 0.12) 42%,
    transparent 70%
  );
  animation: bloomBurst 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── 공통 키프레임 ── */
@keyframes tryingPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}
@keyframes bannerShimmer {
  0% {
    background-position: 160% 0;
  }
  100% {
    background-position: -60% 0;
  }
}
@keyframes iconSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes badgeEntry {
  0% {
    transform: scale(0.55);
    opacity: 0;
  }
  65% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes successGlow {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}
@keyframes iconBurst {
  0% {
    transform: scale(0) rotate(-90deg);
    opacity: 0;
  }
  70% {
    transform: scale(1.45) rotate(8deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.9;
  }
}
@keyframes failureShake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}
@keyframes raySpin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
@keyframes rayFlicker {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.85;
  }
}
@keyframes rayReveal {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 0.9;
  }
}
@keyframes bloomPulse {
  0%,
  100% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(0.85);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
  }
}
@keyframes bloomBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }
  60% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
  }
  100% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .enhance-banner.is-trying .enhance-banner__inner,
  .enhance-banner.is-trying .enhance-banner__inner::after,
  .enhance-banner.is-trying .enhance-banner__icon,
  .enhance-banner.is-trying::before,
  .enhance-banner.is-trying::after,
  .enhance-banner.is-success .enhance-banner__inner,
  .enhance-banner.is-success .enhance-banner__inner::after,
  .enhance-banner.is-success .enhance-banner__icon,
  .enhance-banner.is-success::before,
  .enhance-banner.is-success::after,
  .enhance-banner.is-failure .enhance-banner__inner,
  .enhance-banner.is-failure .enhance-banner__icon,
  .enhance-banner.is-failure::before,
  .enhance-banner.is-failure::after {
    animation: none;
  }
}

/* ========================
   INFO LINK BOX
   ======================== */
.info-link-box {
  flex: 1;
  min-width: 260px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 22px 24px;
  padding-right: 60px; /* 우측 화살표 버튼 공간 확보 */
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 18px;
  text-decoration: none;
  color: var(--text);
  position: relative;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 6px 18px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
/* 호버 시 상단에 은은하게 드러나는 헤어라인 액센트 */
.info-link-box::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--text), rgba(0, 0, 0, 0));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.info-link-box:hover {
  transform: translateY(-6px);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.05),
    0 20px 44px rgba(0, 0, 0, 0.13);
  border-color: rgba(0, 0, 0, 0.12);
}
.info-link-box:hover::before {
  opacity: 0.9;
}
.info-link-box:active {
  transform: translateY(-2px);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}
.info-link-box__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 14px;
  background: linear-gradient(
    145deg,
    rgba(0, 0, 0, 0.055),
    rgba(0, 0, 0, 0.02)
  );
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 2px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.info-link-box:hover .info-link-box__icon {
  transform: scale(1.06) rotate(-3deg);
}
.info-link-box__title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text);
}
.info-link-box__desc {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.55;
}
.info-link-box__arrow {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.info-link-box:hover .info-link-box__arrow {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
  transform: translateY(-50%) translateX(3px);
}

/* ========================
   TALKCARD COMPONENT — Reference design
   Gray outer frame, Logo left + QR right
   ======================== */
.tc {
  width: 260px;
  max-width: 100%;
  aspect-ratio: 1/1.4;
  container-type: inline-size;
  background: #262524;
  border-radius: 12px;
  --tc-border: 10px;
  padding: 0 var(--tc-border) var(--tc-border) var(--tc-border);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  color: #faf9f6;
  position: relative;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    background 0.3s ease,
    color 0.3s ease;
  overflow: hidden;
}
.tc:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.35);
}

/* Gold/Silver/Bronze Halo Effect behind card */
.card-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 106%;
  height: 106%;
  transform: translate(-50%, -50%)
    scale(calc(0.95 + 0.25 * var(--halo-intensity, 0)));
  border-radius: 20px;
  background: radial-gradient(
    circle,
    var(--halo-color, rgba(212, 175, 55, 0.95)) 0%,
    var(--halo-color-mid, rgba(212, 175, 55, 0.6)) 40%,
    var(--halo-color-low, rgba(212, 175, 55, 0.15)) 70%,
    transparent 90%
  );
  filter: blur(24px) brightness(calc(1 + 0.5 * var(--halo-intensity, 0)));
  z-index: -1;
  opacity: var(--halo-intensity, 0);
  pointer-events: none;
  transition:
    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* — Ornament Overlay & Particles — */
.tc__ornament-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.5s ease-in-out;
}

.tc__particle {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.65))
    drop-shadow(0 0 1px rgba(212, 175, 55, 0.45));
  transition: opacity 0.3s ease-in-out;
}

.tc__particle-svg {
  width: 100%;
  height: 100%;
}

/* — Brand Header — */
.tc__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
  padding: calc(var(--tc-border) * 0.4) 0;
  flex-shrink: 0;
  line-height: 1;
  position: relative;
  z-index: 2;
}
.tc__brand-text {
  font-family: 'Outfit', 'Arial Black', sans-serif;
  font-size: 17px;
  font-size: 6.5cqi;
  font-weight: 400;
  color: inherit;
  letter-spacing: -0.2px;
  letter-spacing: -0.1cqi;
  white-space: nowrap;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.tc__brand-text strong {
  font-weight: 900;
}

/* — White Top Box: Star Badge (left) + QR (right) — */
.tc__top-box {
  background: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 30px;
  padding: 2.5cqi 12cqi;
  box-sizing: border-box;
  margin-bottom: 5px;
  margin-bottom: 2cqi;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.tc__star-badge {
  width: 78px;
  width: 30cqi;
  height: 78px;
  height: 30cqi;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  padding: 1.2cqi;
  box-sizing: border-box;
}
.tc__star-icon-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tc__star-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  fill: #e2e2e0;
  transition:
    fill 0.35s ease,
    filter 0.35s ease;
}
.tc__star-number {
  position: relative;
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-size: 9.5cqi;
  font-weight: 900;
  color: #1c1917;
  line-height: 1;
  z-index: 1;
  margin-top: 1px;
  margin-top: 0.5cqi;
  transition: color 0.35s ease;
}
.tc__qr {
  width: 78px;
  width: 30cqi;
  height: 78px;
  height: 30cqi;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tc__qr img {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.tc__qr canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* — Title bar — */
.tc__title {
  background: transparent;
  padding: 5px 10px 10px 10px;
  padding: 2cqi 4cqi 4cqi 4cqi;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-height: 20cqi;
  text-align: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.tc__title span {
  font-family: 'Noto Sans KR', 'Outfit', sans-serif;
  font-size: 19px;
  font-size: 7.5cqi;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  letter-spacing: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  line-height: 1.35;
}

/* — Photo area — */
.tc__photo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #ffffff;
  min-height: 0;
  padding: 0;
  border-radius: 6px;
  margin: 0;
  position: relative;
  z-index: 2;
}
.tc__photo-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  border: none;
}
.tc__photo-empty {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 13px;
  font-size: 5cqi;
  font-weight: 500;
  color: #78716c;
  background: #faf9f6;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  gap: 2cqi;
  line-height: 1.8;
}

/* === level-specific star badge colors and glow effects === */
.tc .tc__star-svg {
  fill: #e2e2e0;
}
.tc .tc__star-number {
  color: #1c1917;
}

/* 1★ Sage Green */
.tc[data-star='1'] {
  background: linear-gradient(135deg, #6e8477, #48594f);
  color: #faf9f6;
}
.tc[data-star='1'] .tc__star-svg {
  fill: #5b7065;
  filter: drop-shadow(0 0 5px rgba(91, 112, 101, 0.5));
}
.tc[data-star='1'] .tc__star-number {
  color: #faf9f6;
}

/* 2★ Clay Taupe */
.tc[data-star='2'] {
  background: linear-gradient(135deg, #b8a690, #8b7862);
  color: #faf9f6;
}
.tc[data-star='2'] .tc__star-svg {
  fill: #a18e78;
  filter: drop-shadow(0 0 5px rgba(161, 142, 120, 0.5));
}
.tc[data-star='2'] .tc__star-number {
  color: #faf9f6;
}

/* 3★ Slate Blue */
.tc[data-star='3'] {
  background: linear-gradient(135deg, #5f7588, #3b4b59);
  color: #faf9f6;
}
.tc[data-star='3'] .tc__star-svg {
  fill: #4e6172;
  filter: drop-shadow(0 0 5px rgba(78, 97, 114, 0.5));
}
.tc[data-star='3'] .tc__star-number {
  color: #faf9f6;
}

/* 4★ Dusty Rose */
.tc[data-star='4'] {
  background: linear-gradient(135deg, #b48589, #82565a);
  color: #faf9f6;
}
.tc[data-star='4'] .tc__star-svg {
  fill: #9c6d71;
  filter: drop-shadow(0 0 5px rgba(156, 109, 113, 0.5));
}
.tc[data-star='4'] .tc__star-number {
  color: #faf9f6;
}

/* 5★ Deep Teal */
.tc[data-star='5'] {
  background: linear-gradient(135deg, #2c5c60, #163234);
  color: #faf9f6;
}
.tc[data-star='5'] .tc__star-svg {
  fill: #22484b;
  filter: drop-shadow(0 0 5px rgba(34, 72, 75, 0.5));
}
.tc[data-star='5'] .tc__star-number {
  color: #faf9f6;
}

/* 6★ Rich Burgundy */
.tc[data-star='6'] {
  background: linear-gradient(135deg, #743443, #3c161e);
  color: #faf9f6;
}
.tc[data-star='6'] .tc__star-svg {
  fill: #582531;
  filter: drop-shadow(0 0 5px rgba(88, 37, 49, 0.5));
}
.tc[data-star='6'] .tc__star-number {
  color: #faf9f6;
}

/* 7★ Midnight Sapphire */
.tc[data-star='7'] {
  background: linear-gradient(135deg, #22374d, #0d1621);
  color: #faf9f6;
}
.tc[data-star='7'] .tc__star-svg {
  fill: #172535;
  filter: drop-shadow(0 0 5px rgba(23, 37, 53, 0.5));
}
.tc[data-star='7'] .tc__star-number {
  color: #faf9f6;
}

/* 8★ to 9★ Holographic Foil Card Frame & Background Overrides */
.tc[data-star='8'],
.tc[data-star='9'] {
  background-image:
    var(--tech-pattern-image, none),
    linear-gradient(
      125deg,
      rgba(255, 0, 127, 0.85) 0%,
      rgba(127, 0, 255, 0.85) 20%,
      rgba(0, 240, 255, 0.85) 40%,
      rgba(255, 183, 0, 0.85) 60%,
      rgba(0, 240, 255, 0.85) 80%,
      rgba(127, 0, 255, 0.85) 100%
    ) !important;
  background-size:
    var(--tech-pattern-size, auto),
    200% 200% !important;
  background-position:
    var(--tech-pattern-pos, 0 0),
    0 0 !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.3),
    inset 0 0 15px rgba(255, 255, 255, 0.25) !important;
  animation: holo-sheen 8s ease infinite !important;
}

/* 10★ (10강) Premium White Card Override */
.tc[data-star='10'] {
  background-image:
    var(--tech-pattern-image, none),
    linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%) !important;
  background-size:
    var(--tech-pattern-size, auto),
    100% 100% !important;
  background-position:
    var(--tech-pattern-pos, 0 0),
    0 0 !important;
  color: #1c1917 !important; /* Dark text */
  border: 2px solid #d4af37 !important; /* Elegant gold border trim */
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.25),
    0 0 15px rgba(212, 175, 55, 0.4),
    /* Gold glow */ inset 0 0 15px rgba(255, 255, 255, 1) !important;
  animation: none !important; /* Disable holo-sheen animation */
}

/* Twinkle stars on white card: soft silver/gold glitter */
.tc[data-star='10']::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, #d4af37 100%, transparent),
    radial-gradient(1.5px 1.5px at 75% 40%, #748590 100%, transparent),
    radial-gradient(1px 1px at 10% 85%, #d4af37 100%, transparent),
    radial-gradient(1.5px 1.5px at 90% 15%, #748590 100%, transparent),
    radial-gradient(1px 1px at 45% 70%, #d4af37 100%, transparent),
    radial-gradient(1.5px 1.5px at 30% 90%, #748590 100%, transparent),
    radial-gradient(1px 1px at 80% 80%, #d4af37 100%, transparent),
    radial-gradient(1.5px 1.5px at 60% 10%, #748590 100%, transparent);
  background-size: 150px 150px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.75;
  animation: glitter-twinkle 4s ease-in-out infinite alternate;
}

/* Ensure brand logo and title span text are dark on 10★ white card */
.tc[data-star='10'] .tc__brand-text,
.tc[data-star='10'] .tc__title span {
  color: #1c1917 !important;
  text-shadow: none !important;
}

/* Soft gold background star pattern on white card */
.tc[data-star='10'] .tc__bg-stars polygon {
  fill: rgba(212, 175, 55, 0.45) !important;
}

/* Vertical Linear Holo Lines & Diamond Dust Glitter on 8-9 star cards */
.tc[data-star='8']::before,
.tc[data-star='9']::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.05) 2px,
    transparent 2px,
    transparent 8px
  );
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

.tc[data-star='8']::after,
.tc[data-star='9']::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, #fff 100%, transparent),
    radial-gradient(1.5px 1.5px at 75% 40%, #fff 100%, transparent),
    radial-gradient(1px 1px at 10% 85%, #fff 100%, transparent),
    radial-gradient(1.5px 1.5px at 90% 15%, #fff 100%, transparent),
    radial-gradient(1px 1px at 45% 70%, #fff 100%, transparent),
    radial-gradient(1.5px 1.5px at 30% 90%, #fff 100%, transparent),
    radial-gradient(1px 1px at 80% 80%, #fff 100%, transparent),
    radial-gradient(1.5px 1.5px at 60% 10%, #fff 100%, transparent);
  background-size: 150px 150px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
  animation: glitter-twinkle 4s ease-in-out infinite alternate;
}

/* Star SVG specific overrides for 3-tier system */
.tc[data-star='1'] .tc__star-svg,
.tc[data-star='2'] .tc__star-svg,
.tc[data-star='3'] .tc__star-svg,
.tc[data-star='4'] .tc__star-svg {
  fill: url(#grad-bronze) !important;
  filter: drop-shadow(0 0 5px rgba(205, 127, 50, 0.6)) !important;
}
.tc[data-star='1'] .tc__star-number,
.tc[data-star='2'] .tc__star-number,
.tc[data-star='3'] .tc__star-number,
.tc[data-star='4'] .tc__star-number {
  color: #ffffff !important;
}

.tc[data-star='5'] .tc__star-svg,
.tc[data-star='6'] .tc__star-svg,
.tc[data-star='7'] .tc__star-svg {
  fill: url(#grad-platinum) !important;
  filter: drop-shadow(0 0 8px rgba(168, 192, 216, 0.8)) !important;
}
.tc[data-star='5'] .tc__star-number,
.tc[data-star='6'] .tc__star-number,
.tc[data-star='7'] .tc__star-number {
  color: #1c1917 !important;
}

.tc[data-star='8'] .tc__star-svg,
.tc[data-star='9'] .tc__star-svg,
.tc[data-star='10'] .tc__star-svg,
.tc[data-star='11'] .tc__star-svg,
.tc[data-star='12'] .tc__star-svg {
  fill: url(#grad-gold) !important;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.8)) !important;
}
.tc[data-star='8'] .tc__star-number,
.tc[data-star='9'] .tc__star-number,
.tc[data-star='10'] .tc__star-number,
.tc[data-star='11'] .tc__star-number,
.tc[data-star='12'] .tc__star-number {
  color: #1c1917 !important;
}

/* === Card Enhancement Animations === */
#card-wrapper:has(.tc-tension-vibrate)::before,
#hero-card-wrap:has(.tc-tension-vibrate)::before {
  content: '';
  position: absolute;
  top: -120px;
  bottom: -120px;
  left: 50%;
  width: min(560px, 100vw);
  transform: translateX(-50%);
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.45) 0%,
    rgba(217, 119, 6, 0.25) 40%,
    rgba(138, 109, 59, 0.1) 70%,
    transparent 80%
  );
  border-radius: 50%;
  filter: blur(55px);
  z-index: -1;
  animation: goldAmbient var(--tension-duration, 2.2s) ease-in forwards;
  pointer-events: none;
}

@keyframes goldAmbient {
  0% {
    transform: scale(0.6);
    opacity: 0.3;
    background: radial-gradient(
      circle,
      rgba(212, 175, 55, 0.3) 0%,
      rgba(217, 119, 6, 0.1) 50%,
      transparent 70%
    );
  }
  40% {
    transform: scale(1);
    opacity: 0.7;
    background: radial-gradient(
      circle,
      rgba(212, 175, 55, 0.5) 0%,
      rgba(217, 119, 6, 0.25) 50%,
      transparent 70%
    );
  }
  75% {
    transform: scale(1.4);
    opacity: 0.9;
    background: radial-gradient(
      circle,
      rgba(212, 175, 55, 0.7) 0%,
      rgba(217, 119, 6, 0.4) 50%,
      transparent 70%
    );
  }
  90% {
    transform: scale(1.6);
    opacity: 0.98;
    background: radial-gradient(
      circle,
      rgba(255, 255, 255, 0.8) 0%,
      rgba(212, 175, 55, 0.6) 30%,
      rgba(217, 119, 6, 0.4) 60%,
      transparent 80%
    );
  }
  96% {
    transform: scale(1.9);
    opacity: 1;
    background: radial-gradient(
      circle,
      rgba(255, 255, 255, 1) 0%,
      rgba(212, 175, 55, 0.85) 25%,
      rgba(255, 80, 0, 0.6) 55%,
      transparent 80%
    );
  }
  100% {
    transform: scale(2.2);
    opacity: 1;
    background: radial-gradient(
      circle,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.9) 20%,
      rgba(212, 175, 55, 0.9) 45%,
      transparent 80%
    );
    filter: blur(20px);
  }
}

.tc-tension-vibrate {
  animation:
    tcTension var(--tension-duration, 2.2s) ease-in forwards,
    goldGlow var(--tension-duration, 2.2s) ease-in forwards;
  border-color: rgba(
    212,
    175,
    55,
    calc(0.8 * var(--glow-intensity, 1))
  ) !important;
  box-shadow:
    0 0 calc(35px * var(--glow-intensity, 1))
      rgba(212, 175, 55, calc(0.8 * var(--glow-intensity, 1))),
    inset 0 0 calc(15px * var(--glow-intensity, 1))
      rgba(255, 255, 255, calc(0.3 * var(--glow-intensity, 1))) !important;
}

@keyframes tcTension {
  /* Phase 1: Micro-shaking, scale 0.99 (0% - 25%) */
  0% {
    transform: scale(1) translate(0, 0) rotate(0deg);
  }
  2% {
    transform: scale(0.99) translate(0.5px, 0.5px) rotate(0.1deg);
  }
  4% {
    transform: scale(0.99) translate(-0.5px, -0.5px) rotate(-0.1deg);
  }
  6% {
    transform: scale(0.99) translate(0.5px, -0.5px) rotate(0.1deg);
  }
  8% {
    transform: scale(0.99) translate(-0.5px, 0.5px) rotate(-0.1deg);
  }
  10% {
    transform: scale(0.99) translate(0.5px, 0.5px) rotate(0.1deg);
  }
  12% {
    transform: scale(0.99) translate(-0.5px, -0.5px) rotate(-0.1deg);
  }
  14% {
    transform: scale(0.99) translate(0.5px, -0.5px) rotate(0.1deg);
  }
  16% {
    transform: scale(0.99) translate(-0.5px, 0.5px) rotate(-0.1deg);
  }
  18% {
    transform: scale(0.99) translate(0.5px, 0.5px) rotate(0.1deg);
  }
  20% {
    transform: scale(0.99) translate(-0.5px, -0.5px) rotate(-0.1deg);
  }
  22% {
    transform: scale(0.99) translate(0.5px, -0.5px) rotate(0.1deg);
  }
  24% {
    transform: scale(0.99) translate(-0.5px, 0.5px) rotate(-0.1deg);
  }

  /* Phase 2: Moderate vibration, scale 0.98 (25% - 50%) */
  25% {
    transform: scale(0.98) translate(1.2px, 1.2px) rotate(0.2deg);
  }
  27% {
    transform: scale(0.98) translate(-1.2px, -1.2px) rotate(-0.2deg);
  }
  29% {
    transform: scale(0.98) translate(1.2px, -1.2px) rotate(0.2deg);
  }
  31% {
    transform: scale(0.98) translate(-1.2px, 1.2px) rotate(-0.2deg);
  }
  33% {
    transform: scale(0.98) translate(1.8px, 1.2px) rotate(0.3deg);
  }
  35% {
    transform: scale(0.98) translate(-1.8px, -1.2px) rotate(-0.3deg);
  }
  37% {
    transform: scale(0.98) translate(1.2px, -1.8px) rotate(0.2deg);
  }
  39% {
    transform: scale(0.98) translate(-1.2px, 1.8px) rotate(-0.2deg);
  }
  41% {
    transform: scale(0.98) translate(1.8px, 1.8px) rotate(0.3deg);
  }
  43% {
    transform: scale(0.98) translate(-1.8px, -1.8px) rotate(-0.3deg);
  }
  45% {
    transform: scale(0.98) translate(1.8px, -1.8px) rotate(0.3deg);
  }
  47% {
    transform: scale(0.98) translate(-1.8px, 1.8px) rotate(-0.3deg);
  }
  49% {
    transform: scale(0.98) translate(1.8px, 1.8px) rotate(0.3deg);
  }

  /* Phase 3: Intense vibration, scale 0.96 (50% - 75%) */
  50% {
    transform: scale(0.96) translate(2.5px, 2.5px) rotate(0.5deg);
  }
  52% {
    transform: scale(0.96) translate(-2.5px, -2.5px) rotate(-0.6deg);
  }
  54% {
    transform: scale(0.96) translate(3px, -2.5px) rotate(0.5deg);
  }
  56% {
    transform: scale(0.96) translate(-3px, 2.5px) rotate(-0.6deg);
  }
  58% {
    transform: scale(0.96) translate(3.5px, 3px) rotate(0.7deg);
  }
  60% {
    transform: scale(0.96) translate(-3.5px, -3px) rotate(-0.7deg);
  }
  62% {
    transform: scale(0.96) translate(3px, -3.5px) rotate(0.5deg);
  }
  64% {
    transform: scale(0.96) translate(-3px, 3.5px) rotate(-0.5deg);
  }
  66% {
    transform: scale(0.96) translate(3.5px, 3.5px) rotate(0.7deg);
  }
  68% {
    transform: scale(0.96) translate(-3.5px, -3.5px) rotate(-0.7deg);
  }
  70% {
    transform: scale(0.96) translate(4px, -3.5px) rotate(0.8deg);
  }
  72% {
    transform: scale(0.96) translate(-4px, 3.5px) rotate(-0.8deg);
  }
  74% {
    transform: scale(0.96) translate(4px, 4px) rotate(0.8deg);
  }

  /* Phase 4: Extreme shake, scale 0.94 (75% - 94%) */
  75% {
    transform: scale(0.94) translate(4.5px, 4.5px) rotate(1.2deg);
  }
  77% {
    transform: scale(0.94) translate(-4.5px, -4.5px) rotate(-1.3deg);
  }
  79% {
    transform: scale(0.94) translate(5px, -4.5px) rotate(1.2deg);
  }
  81% {
    transform: scale(0.94) translate(-5px, 5px) rotate(-1.3deg);
  }
  83% {
    transform: scale(0.94) translate(6px, 5px) rotate(1.6deg);
  }
  85% {
    transform: scale(0.94) translate(-6px, -5px) rotate(-1.6deg);
  }
  87% {
    transform: scale(0.94) translate(5px, -6px) rotate(1.3deg);
  }
  89% {
    transform: scale(0.94) translate(-5px, 6px) rotate(-1.3deg);
  }
  91% {
    transform: scale(0.94) translate(6px, 6px) rotate(1.6deg);
  }
  93% {
    transform: scale(0.93) translate(-6px, 6px) rotate(-1.6deg);
  }

  /* Phase 5: 원래 크기로 복귀 (94% - 100%) — scale > 1 금지 (레이아웃 snap 방지) */
  94% {
    transform: scale(0.98) translate(0, 0) rotate(0deg);
    filter: brightness(1.4) contrast(1.2);
  }
  97% {
    transform: scale(0.99) translate(0, 0) rotate(0deg);
    filter: brightness(1.2) contrast(1.1);
  }
  100% {
    transform: scale(1) translate(0, 0) rotate(0deg);
    filter: none;
  }
}

@keyframes goldGlow {
  0% {
    box-shadow:
      0 0 calc(20px * var(--glow-intensity, 1))
        rgba(212, 175, 55, calc(0.45 * var(--glow-intensity, 1))),
      inset 0 0 calc(10px * var(--glow-intensity, 1))
        rgba(255, 255, 255, calc(0.15 * var(--glow-intensity, 1)));
    filter: brightness(calc(1 + 0 * var(--glow-intensity, 1))) contrast(1);
  }
  30% {
    box-shadow:
      0 0 calc(35px * var(--glow-intensity, 1))
        rgba(212, 175, 55, calc(0.65 * var(--glow-intensity, 1))),
      0 0 calc(45px * var(--glow-intensity, 1))
        rgba(217, 119, 6, calc(0.35 * var(--glow-intensity, 1))),
      inset 0 0 calc(15px * var(--glow-intensity, 1))
        rgba(255, 255, 255, calc(0.25 * var(--glow-intensity, 1)));
    filter: brightness(calc(1 + 0.1 * var(--glow-intensity, 1))) contrast(1.05);
  }
  60% {
    box-shadow:
      0 0 calc(55px * var(--glow-intensity, 1))
        rgba(212, 175, 55, calc(0.85 * var(--glow-intensity, 1))),
      0 0 calc(80px * var(--glow-intensity, 1))
        rgba(217, 119, 6, calc(0.6 * var(--glow-intensity, 1))),
      inset 0 0 calc(25px * var(--glow-intensity, 1))
        rgba(255, 255, 255, calc(0.35 * var(--glow-intensity, 1)));
    filter: brightness(calc(1 + 0.25 * var(--glow-intensity, 1))) contrast(1.15);
  }
  85% {
    box-shadow:
      0 0 calc(85px * var(--glow-intensity, 1))
        rgba(212, 175, 55, var(--glow-intensity, 1)),
      0 0 calc(120px * var(--glow-intensity, 1))
        rgba(217, 119, 6, calc(0.85 * var(--glow-intensity, 1))),
      0 0 calc(160px * var(--glow-intensity, 1))
        rgba(255, 255, 255, calc(0.4 * var(--glow-intensity, 1))),
      inset 0 0 calc(35px * var(--glow-intensity, 1))
        rgba(255, 255, 255, calc(0.45 * var(--glow-intensity, 1)));
    filter: brightness(calc(1 + 0.45 * var(--glow-intensity, 1))) contrast(1.3);
  }
  94% {
    box-shadow:
      0 0 calc(70px * var(--glow-intensity, 1))
        rgba(255, 255, 255, calc(0.7 * var(--glow-intensity, 1))),
      0 0 calc(100px * var(--glow-intensity, 1))
        rgba(212, 175, 55, calc(0.8 * var(--glow-intensity, 1))),
      0 0 calc(120px * var(--glow-intensity, 1))
        rgba(217, 119, 6, calc(0.7 * var(--glow-intensity, 1))),
      inset 0 0 calc(30px * var(--glow-intensity, 1))
        rgba(255, 255, 255, calc(0.4 * var(--glow-intensity, 1)));
    filter: brightness(calc(1 + 0.6 * var(--glow-intensity, 1))) contrast(1.3);
  }
  100% {
    box-shadow:
      0 0 calc(80px * var(--glow-intensity, 1))
        rgba(255, 255, 255, calc(0.6 * var(--glow-intensity, 1))),
      0 0 calc(120px * var(--glow-intensity, 1))
        rgba(212, 175, 55, calc(0.7 * var(--glow-intensity, 1))),
      0 0 calc(140px * var(--glow-intensity, 1))
        rgba(217, 119, 6, calc(0.6 * var(--glow-intensity, 1))),
      inset 0 0 calc(35px * var(--glow-intensity, 1))
        rgba(255, 255, 255, calc(0.45 * var(--glow-intensity, 1)));
    filter: brightness(calc(1 + 0.7 * var(--glow-intensity, 1))) contrast(1.4);
  }
}

.tc-success-bang {
  animation: tcSuccessBang 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes tcSuccessBang {
  0% {
    transform: scale(1.15);
    filter: brightness(2.2) blur(3px);
  }
  30% {
    transform: scale(0.97);
    filter: brightness(1.2) blur(0);
  }
  100% {
    transform: scale(1);
    filter: brightness(1) blur(0);
  }
}

.tc-failure-bang {
  animation: tcFailureBang 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes tcFailureBang {
  0% {
    transform: translateY(-25px) scale(0.9) rotate(2deg);
    filter: grayscale(0.5) brightness(0.6);
  }
  25% {
    transform: translateY(15px) scale(1.05) rotate(-2deg);
    filter: grayscale(0.2) brightness(0.9);
  }
  60% {
    transform: translateY(-5px) scale(0.98);
  }
  100% {
    transform: translateY(0) scale(1);
    filter: none;
  }
}

/* hero-card-shaker: 카드만 감싸는 셰이크 레이어 (스탯 패널 제외) */
#hero-card-shaker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  isolation: isolate;
}

/* 애니메이션 중 transition 충돌 방지 */
.tc.tc-tension-vibrate,
.tc.tc-success-bang,
.tc.tc-failure-bang {
  transition: none;
}

/* === Camera / Viewport Rumble === */
/* 대상: #hero-card-shaker (홈), #card-wrapper (상세) — body/page 전체 아님 */
.tc-viewport-rumble {
  animation: viewportRumble 0.08s infinite;
  will-change: transform;
}
@keyframes viewportRumble {
  0% {
    transform: translate(1.5px, 1.5px) rotate(0.2deg);
  }
  20% {
    transform: translate(-1.5px, -2.5px) rotate(-0.5deg);
  }
  40% {
    transform: translate(-3.5px, 0px) rotate(0.5deg);
  }
  60% {
    transform: translate(0px, 2.5px) rotate(0deg);
  }
  80% {
    transform: translate(2.5px, -1.5px) rotate(0.5deg);
  }
  100% {
    transform: translate(-1.5px, 2.5px) rotate(-0.5deg);
  }
}

/* === Failure Shatter Screen Shake === */
.tc-shatter-shake {
  animation: shatterShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
@keyframes shatterShake {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  15% {
    transform: translate3d(-10px, 5px, 0) scale(1.02);
  }
  30% {
    transform: translate3d(12px, -8px, 0) scale(0.98);
  }
  45% {
    transform: translate3d(-12px, 8px, 0);
  }
  60% {
    transform: translate3d(8px, -4px, 0);
  }
  75% {
    transform: translate3d(-5px, 3px, 0);
  }
  90% {
    transform: translate3d(2px, -1px, 0);
  }
}

/* === Vortex Particles (Implosion) === */
.vortex-particle {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #ffffff 0%,
    rgba(212, 175, 55, 0.9) 60%,
    transparent 100%
  );
  box-shadow:
    0 0 12px rgba(212, 175, 55, 0.9),
    0 0 20px rgba(255, 255, 255, 0.6);
  z-index: 999;
}

/* === Failure Flash === */
.flash-overlay.failure-flash {
  animation: flashAnimFailure 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes flashAnimFailure {
  0% {
    background: rgba(255, 0, 0, 0.4);
    opacity: 1;
  }
  15% {
    background: rgba(139, 0, 0, 0.5);
    opacity: 0.9;
  }
  100% {
    background: transparent;
    opacity: 0;
  }
}

/* === Outcome Overlay === */
.tc-result-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 17, 16, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  animation: tcOverlayFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: none;
}
@keyframes tcOverlayFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes tcOverlayFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
.tc-result-text {
  font-family: 'Outfit', 'Noto Sans KR', sans-serif;
  font-size: 28px;
  font-size: 11cqi;
  font-weight: 900;
  color: #fff;
  transform: scale(0.5);
  animation: tcTextPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s both;
  white-space: nowrap;
}
.tc-result-overlay--success .tc-result-text {
  color: #d4af37;
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.7);
}
.tc-result-overlay--failure .tc-result-text {
  color: #ff3b30;
  text-shadow: 0 0 15px rgba(255, 59, 48, 0.7);
}
@keyframes tcTextPop {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* === Screen Flash Overlay === */
.flash-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
}
.flash-overlay.success-flash {
  animation: flashAnimSuccess 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.flash-overlay.failure-flash {
  animation: flashAnimFailure 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes flashAnimSuccess {
  0% {
    background: radial-gradient(
      circle,
      rgba(212, 175, 55, 0.4) 0%,
      transparent 80%
    );
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes flashAnimFailure {
  0% {
    background: radial-gradient(
      circle,
      rgba(255, 59, 48, 0.3) 0%,
      transparent 80%
    );
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Card with attached star */
.tc-wrap {
  position: relative;
  display: inline-block;
}
.tc-stars {
  position: absolute;
  top: -70px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 2;
}
.tc-stars .star-icon {
  font-size: 1.8rem;
  color: #e0e0e0;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.15));
}
.tc-stars .star-icon.lit.star-red {
  color: #ff3b30;
  filter: drop-shadow(0 0 10px rgba(255, 59, 48, 0.6));
}
.tc-stars .star-icon.lit.star-orange {
  color: #ff9500;
  filter: drop-shadow(0 0 10px rgba(255, 149, 0, 0.6));
}
.tc-stars .star-icon.lit.star-yellow {
  color: #ffcc00;
  filter: drop-shadow(0 0 10px rgba(255, 204, 0, 0.6));
}
.tc-stars .star-icon.lit.star-green {
  color: #34c759;
  filter: drop-shadow(0 0 10px rgba(52, 199, 89, 0.6));
}
.tc-stars .star-icon.lit.star-blue {
  color: #007aff;
  filter: drop-shadow(0 0 10px rgba(0, 122, 255, 0.6));
}
.tc-stars .star-icon.lit.star-indigo {
  color: #5856d6;
  filter: drop-shadow(0 0 10px rgba(88, 86, 214, 0.6));
}
.tc-stars .star-icon.lit.star-violet {
  color: #af52de;
  filter: drop-shadow(0 0 10px rgba(175, 82, 222, 0.6));
}

.tc-stars.pulse-anim .star-icon.lit {
  animation: starPulse 3s ease-in-out infinite alternate;
}
@keyframes starPulse {
  0% {
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.15));
  }
  100% {
    filter: drop-shadow(0 0 18px rgba(0, 0, 0, 0.35));
  }
}

/* ========================
   PAGE 2: Showcase cards
   ======================== */
.mini-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px;
}
.mini-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: var(--gray);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: 0.3s;
}
.mini-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.mini-card__icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.mini-card__text h4 {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.mini-card__text p {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ========================
   PAGE 3: Star progress
   ======================== */
.star-progress {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}
.star-pip {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  border: 2px solid rgba(0, 0, 0, 0.1);
  background: var(--white);
  color: var(--muted);
  transition: 0.4s;
}
.star-pip.lit {
  border: none;
  background: var(--cyber);
  background-size: 300% 300%;
  animation: holoShift 4s ease infinite;
  color: #fff;
  box-shadow: var(--glow);
}
.star-pip.final {
  font-size: 0.5rem;
  background: #111;
  border: none;
  color: var(--white);
}
.star-pip.final.lit {
  background: var(--cyber);
  box-shadow: var(--glow);
}
@keyframes holoShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.star-arrow {
  font-size: 0.5rem;
  color: var(--muted);
}

.star-btn {
  padding: 14px 48px;
  border: none;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  background: var(--cyber);
  background-size: 200% 200%;
  animation: holoShift 4s ease infinite;
  color: #fff;
  box-shadow:
    0 4px 16px rgba(6, 182, 212, 0.2),
    0 4px 16px rgba(217, 70, 239, 0.1);
  transition: 0.3s;
}
.star-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(6, 182, 212, 0.3),
    0 8px 24px rgba(217, 70, 239, 0.15);
}
.star-btn:active {
  transform: scale(0.96);
}
.star-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}
.star-result {
  font-size: 0.82rem;
  font-weight: 700;
  min-height: 20px;
}
.star-result.ok {
  color: #06b6d4;
}
.star-result.no {
  color: var(--muted);
}

/* ========================
   PAGE 4: VP Dashboard
   ======================== */
.page--dark {
  background: #0a0a0a;
  color: #fff;
}
.page--dark .topbar__btn {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  background: transparent;
}
.page--dark .topbar__btn small {
  color: rgba(255, 255, 255, 0.3);
}
.page--dark .topbar__btn:hover {
  background: #fff;
  color: #000;
}

.dash-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 280px;
}
.dash-item {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: 0.3s;
}
.dash-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}
.dash-item__icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.dash-item__label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
  margin-bottom: 4px;
}
.dash-item__value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -1px;
}
.dash-item__value--neon {
  background: var(--cyber);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dash-arrow {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.15);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.8;
  }
}

/* ========================
   PAGE 5: CTA
   ======================== */
.page--dark .cta-title {
  font-size: clamp(1.5rem, 6vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.4;
  margin-bottom: 12px;
}
.page--dark .cta-sub {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 32px;
}
.cta-btn {
  display: inline-block;
  padding: 16px 44px;
  border-radius: 50px;
  background: #fff;
  color: #000;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s;
  font-family: inherit;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12);
}
.cta-btn:active {
  transform: scale(0.96);
}

/* ========================
   PAGE INDICATOR DOTS
   ======================== */
.page-dots {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 50;
}
.page-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  transition: 0.3s;
  border: none;
  cursor: pointer;
  padding: 0;
}
.page-dot.active {
  background: var(--text);
  height: 18px;
  border-radius: 3px;
}
.dark-dots .page-dot {
  background: rgba(255, 255, 255, 0.2);
}
.dark-dots .page-dot.active {
  background: #fff;
}

/* ========================
   ANIMATIONS
   ======================== */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: 0.7s ease;
}
.fade-in.v {
  opacity: 1;
  transform: translateY(0);
}
.confetti {
  position: fixed;
  top: -10px;
  z-index: 999;
  pointer-events: none;
  animation: fall 2.2s ease-out forwards;
}
@keyframes fall {
  0% {
    transform: translateY(0) rotate(0);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* ========================
   AUTH PAGES (Signup/Login)
   ======================== */
.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--gray);
}
.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--white);
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
  text-align: center;
}
.auth-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -1.5px;
  color: var(--text);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 24px;
}
.auth-logo span {
  font-weight: 300;
}
.auth-title {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.auth-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 28px;
}
.auth-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  margin-bottom: 16px;
  background: #fff3f3;
  color: #d32f2f;
  border: 1px solid #fdd;
}
.auth-field {
  margin-bottom: 16px;
  text-align: left;
}
.auth-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.auth-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  font-size: 0.88rem;
  font-family: inherit;
  background: var(--gray);
  transition: 0.2s;
  outline: none;
}
.auth-input:focus {
  border-color: var(--text);
  background: var(--white);
}
.auth-help {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 4px;
  margin-bottom: 8px;
  text-align: left;
  line-height: 1.5;
}
.auth-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 50px;
  background: var(--text);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: 0.2s;
  margin-top: 8px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.auth-submit:hover {
  opacity: 0.8;
}
.auth-submit:active {
  transform: scale(0.97);
}
.auth-submit--outline {
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(0, 0, 0, 0.1);
}
.auth-submit--outline:hover {
  background: var(--gray);
}
.auth-submit--danger {
  background: #d32f2f;
}
.auth-submit--google {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: var(--text) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  font-size: 0.88rem !important;
  padding: 12px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  gap: 10px;
}
.auth-submit--google:hover {
  background: #2a2927 !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  opacity: 0.9 !important;
}

/* Unified Auth Component Elements */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 22px 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(28, 25, 23, 0.08);
}
.auth-divider:not(:empty)::before {
  margin-right: 12px;
}
.auth-divider:not(:empty)::after {
  margin-left: 12px;
}

.auth-field--password {
  position: relative;
}
.auth-field--password .auth-input {
  padding-right: 46px; /* space for eye button */
}
.password-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}
.password-toggle-btn:hover {
  color: var(--text);
}
.password-toggle-btn svg {
  display: block;
}

.auth-toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s;
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.auth-toast-container.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.auth-card-body {
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.auth-card-body.fade-out {
  opacity: 0;
  transform: translateY(4px);
}

/* Hide default allauth elements we don't want */
.auth-card ul.errorlist {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  text-align: left;
}
.auth-card ul.errorlist li {
  font-size: 0.75rem;
  color: #d32f2f;
  padding: 4px 0;
}
.auth-panel {
  margin-bottom: 0;
}
.auth-actions {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.auth-actions a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-actions a:hover {
  opacity: 0.6;
}
.auth-card a {
  color: var(--text);
  font-weight: 600;
}
.auth-card form {
  text-align: left;
}

/* Hide default Django/crispy password help text */
.auth-help {
  display: none !important;
}
#id_password1_helptext,
.auth-card .form-text {
  display: none !important;
}

/* Override crispy/bootstrap form controls inside auth-card */
.auth-card .form-control {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 10px !important;
  font-size: 0.88rem;
  font-family: inherit;
  background: var(--gray) !important;
  transition: 0.2s;
  outline: none;
  box-shadow: none !important;
}
.auth-card .form-control:focus {
  border-color: var(--text) !important;
  background: var(--white) !important;
  box-shadow: none !important;
}
.auth-card .form-label,
.auth-card .requiredField {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.auth-card .asteriskField {
  display: none;
}
.auth-card .mb-3 {
  margin-bottom: 16px !important;
}
.auth-card .card-title {
  display: none;
}

/* Real-time password checker */
.pw-check {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: 0.4s ease;
  margin-top: -4px;
}
.pw-check.visible {
  max-height: 200px;
  opacity: 1;
  margin-top: 8px;
  margin-bottom: 12px;
}
.pw-check__rule {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  transition: 0.3s;
}
.pw-check__icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  color: var(--muted);
  transition: 0.3s;
  flex-shrink: 0;
}
.pw-check__rule.pass {
  color: #16a34a;
}
.pw-check__rule.pass .pw-check__icon {
  border-color: #16a34a;
  color: #16a34a;
  background: rgba(22, 163, 74, 0.06);
}
.pw-check__rule.fail {
  color: var(--muted);
}

/* ========================
   CARD CREATION FORM
   ======================== */
.card-form {
  text-align: left;
}
.card-upload {
  width: 100%;
  border: 2px dashed rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
}
.card-upload:hover,
.card-upload.dragover {
  border-color: var(--text);
  background: rgba(0, 0, 0, 0.02);
}
.card-upload.has-image {
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.06);
}
.card-upload__preview {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray);
}
.card-upload__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}
.card-upload__icon {
  font-size: 2.4rem;
}
.card-upload__hint {
  font-size: 0.68rem;
  opacity: 0.5;
}
.card-upload__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.card-file-input {
  /* 라벨(for)로 네이티브 연결해 여므로 입력 자체는 화면에서 숨긴다.
     단 display:none이면 capture(카메라 직행)를 무시하는 브라우저가 있어
     렌더링은 1px로 유지한다(클릭은 라벨이 담당). */
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  opacity: 0;
}
.card-upload__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.card-upload__btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}
.card-upload__btn:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--text);
}
.auth-error {
  font-size: 0.72rem;
  color: #d32f2f;
  margin-top: 4px;
}

/* ========================
   CARD DETAIL PAGE
   ======================== */
.card-detail-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  background: var(--gray);
  gap: 20px;
}

/* === Card Detail Page — overrides for full-size .tc === */
.card-detail-page .tc {
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}
.card-detail-page .tc:hover {
  transform: none;
}

/* Card Meta */
.card-detail__meta {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 400px;
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0 4px;
}
.card-detail__author {
  font-weight: 600;
  color: var(--text);
}

/* Share QR Section */
.card-detail__share {
  width: 100%;
  max-width: 400px;
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.card-detail__share-label {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.card-detail__share-qr {
  display: inline-block;
  padding: 12px;
  background: #fff;
  border-radius: 8px;
  border: 2px solid rgba(0, 0, 0, 0.04);
}
.card-detail__share-url {
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 12px;
  word-break: break-all;
  line-height: 1.5;
}
.card-detail__copy-btn {
  margin-top: 12px;
  padding: 10px 28px;
  border: 2px solid var(--text);
  border-radius: 50px;
  background: transparent;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: 0.2s;
}
.card-detail__copy-btn:hover {
  background: var(--text);
  color: var(--white);
}

.card-detail__actions {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}
.tc-detail__home-link {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
}
.tc-detail__home-link:hover {
  color: var(--text);
}

/* ========================
   MY PAGE
   ======================== */
.mypage {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px;
  max-width: 480px;
  margin: 0 auto;
}
.mypage__header {
  text-align: center;
  margin-bottom: 28px;
}
.mypage__card {
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  margin-bottom: 28px;
}
.mypage__avatar-large {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--text);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.mypage__username {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 4px;
}
.mypage__joined,
.mypage__count {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 2px 0;
}
.mypage__count {
  font-weight: 700;
  color: var(--text);
}

.mypage__section-title {
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.mypage__cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}
.mypage__card-item {
  width: 100%;
  max-width: 320px;
}
.mypage__card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
.mypage__card-link:hover {
  transform: translateY(-3px);
}
.mypage__card-link .tc {
  width: 100%;
}
.mypage__card-link .tc:hover {
  transform: none;
}
.mypage__card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding: 0 4px;
}
.mypage__meta {
  font-size: 0.65rem;
  color: var(--muted);
}
.mypage__actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.mypage__action-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid var(--border);
  color: var(--text);
  background: var(--white);
  transition: 0.15s;
}
.mypage__action-btn:hover {
  background: var(--gray);
}
.mypage__action-btn--danger {
  color: #d32f2f;
  border-color: rgba(211, 47, 47, 0.2);
}
.mypage__action-btn--danger:hover {
  background: rgba(211, 47, 47, 0.06);
}
.mypage__empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 0.82rem;
}
.mypage__footer {
  text-align: center;
  margin-top: 32px;
}

/* Points Summary Badge (My Page) */
.mypage__points-summary {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.mypage__points-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #111 0%, #333 100%);
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
}
.mypage__points-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    transparent
  );
  animation: shimmer 3s infinite;
}
@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}
.mypage__points-icon {
  font-size: 1.1rem;
}
.mypage__points-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.mypage__points-label {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 8px;
}

/* ========================
   VP Cycle Flow (Landing Page 2)
   ======================== */
.vp-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 360px;
  background: var(--white);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.vp-flow__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.vp-flow__icon {
  font-size: 1.8rem;
  animation: vpBounce 2s ease-in-out infinite;
}
.vp-flow__step:nth-child(3) .vp-flow__icon {
  animation-delay: 0.3s;
}
.vp-flow__step:nth-child(5) .vp-flow__icon {
  animation-delay: 0.6s;
}
@keyframes vpBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}
.vp-flow__label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
}
.vp-flow__desc {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--muted);
}
.vp-flow__arrow {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

/* Delete Confirm */
.delete-confirm {
  text-align: center;
}
.delete-confirm__card {
  margin: 16px 0;
  padding: 16px;
  background: var(--gray);
  border-radius: 12px;
}
.delete-confirm__msg {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 16px 0;
  line-height: 1.6;
}

/* ========================================
   DESKTOP RESPONSIVE (768px+)
   ======================================== */
@media (min-width: 768px) {
  .page {
    padding: 0 48px;
  }

  .topbar__btn {
    padding: 9px 18px;
    font-size: 0.76rem;
  }
  .topbar__btn:hover {
    background: var(--text);
    color: var(--white);
  }

  .headline {
    font-size: clamp(2rem, 4vw, 2.8rem);
  }
  .headline--lg {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
  }
  .subtext {
    font-size: 0.95rem;
  }

  /* Page 1: Hero — card beside text */
  #p1 .page__body {
    flex-direction: row;
    gap: 64px;
    text-align: left;
    max-width: 960px;
    margin: 0 auto;
  }
  #p1 .page__body .headline--lg {
    font-size: clamp(2rem, 4vw, 3rem);
  }
  .tc {
    width: 300px;
  }

  /* Page 2: Showcase — horizontal layout */
  #p2 .page__body {
    max-width: 900px;
    margin: 0 auto;
  }
  .mini-cards {
    flex-direction: row;
    max-width: none;
    gap: 16px;
  }
  .mini-card {
    flex: 1;
    flex-direction: column;
    text-align: center;
    padding: 24px;
    gap: 12px;
  }
  .mini-card__icon {
    font-size: 2rem;
  }
  .mini-card__text h4 {
    font-size: 0.9rem;
  }
  .mini-card__text p {
    font-size: 0.78rem;
  }
  #p2 .tc {
    display: none;
  } /* Hide small card on desktop — mini-cards are enough */
  .vp-flow {
    max-width: 480px;
    gap: 20px;
    padding: 28px 24px;
  }
  .vp-flow__icon {
    font-size: 2.2rem;
  }
  .vp-flow__label {
    font-size: 0.82rem;
  }
  .vp-flow__desc {
    font-size: 0.7rem;
  }

  /* Page 3: Star — horizontal layout */
  #p3 .page__body {
    flex-direction: row;
    gap: 56px;
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
  }
  .star-progress {
    gap: 6px;
  }
  .star-pip {
    width: 36px;
    height: 36px;
    font-size: 0.7rem;
  }
  .star-btn {
    padding: 16px 56px;
    font-size: 0.95rem;
  }

  /* Page 4: VP — horizontal dashboard */
  .dash-flow {
    flex-direction: row;
    max-width: 700px;
    gap: 16px;
  }
  .dash-item {
    padding: 28px 20px;
  }
  .dash-arrow {
    font-size: 1.6rem;
    transform: rotate(-90deg);
  }
  .dash-item__value {
    font-size: 2rem;
  }

  /* Page 5: CTA */
  .page--dark .cta-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
  }
  .cta-btn {
    padding: 18px 56px;
    font-size: 1rem;
  }

  /* Dots position */
  .page-dots {
    right: 24px;
    gap: 10px;
  }
  .page-dot {
    width: 8px;
    height: 8px;
  }
  .page-dot.active {
    height: 24px;
    border-radius: 4px;
  }
}

/* ========================================
   LARGE DESKTOP (1200px+)
   ======================================== */
@media (min-width: 1200px) {
  .page {
    padding: 0 64px;
  }
  .headline--lg {
    font-size: 3.6rem;
  }

  #p1 .page__body {
    gap: 80px;
  }
  .tc {
    width: 340px;
  }

  .mini-card {
    padding: 32px;
  }
  .mini-card__icon {
    font-size: 2.4rem;
  }

  .dash-flow {
    max-width: 800px;
    gap: 24px;
  }
  .dash-flow {
    max-width: 800px;
    gap: 24px;
  }
  .dash-item {
    padding: 32px 24px;
    border-radius: 18px;
  }
  .dash-item__value {
    font-size: 2.4rem;
  }
}

/* Premium Auth Page Additions (Best Practice Signup UI) */

/* Name field animation & layout */
#name-field-wrapper,
#pw-confirm-field-wrapper {
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    max-height 0.3s ease,
    margin-bottom 0.3s ease;
  max-height: 150px;
  opacity: 1;
  transform: translateY(0);
  overflow: hidden;
}

#name-field-wrapper.hidden,
#pw-confirm-field-wrapper.hidden {
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Password complexity requirements (Real-time Checklist) */
.pw-requirements-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: -8px;
  margin-bottom: 20px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 10px;
  transition:
    opacity 0.3s ease,
    max-height 0.3s ease,
    margin-bottom 0.3s ease;
  max-height: 150px;
  overflow: hidden;
}

.pw-requirements-wrapper.hidden {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0 !important;
  padding: 0 !important;
  border: none;
}

.pw-requirement-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s ease;
}

.pw-requirement-item .req-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  font-size: 0.65rem;
  font-weight: 700;
  color: transparent;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

/* Valid states */
.pw-requirement-item.valid {
  color: #16a34a; /* Green success color */
}

.pw-requirement-item.valid .req-icon {
  border-color: #16a34a;
  background-color: rgba(22, 163, 74, 0.1);
  color: #16a34a;
}

/* Custom Checkbox (Terms & Conditions) */
.auth-terms-wrapper {
  margin-top: 16px;
  transition:
    opacity 0.3s ease,
    max-height 0.3s ease,
    margin-bottom 0.3s ease;
  max-height: 100px;
  overflow: hidden;
}

.auth-terms-wrapper.hidden {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

.auth-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Hide default browser checkbox */
.auth-checkbox-label input[type='checkbox'] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Custom checkbox block */
.custom-checkbox {
  position: relative;
  height: 18px;
  width: 18px;
  background-color: var(--white);
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-top: 1px;
}

.auth-checkbox-label:hover input ~ .custom-checkbox {
  border-color: var(--text);
}

.auth-checkbox-label input:checked ~ .custom-checkbox {
  background-color: var(--text);
  border-color: var(--text);
}

/* Create the checkmark (hidden when not checked) */
.custom-checkbox:after {
  content: '';
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.auth-checkbox-label input:checked ~ .custom-checkbox:after {
  display: block;
}

/* Style the checkmark */
.auth-checkbox-label .custom-checkbox:after {
  left: 5px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.terms-text {
  font-weight: 500;
}

.terms-link {
  color: var(--text) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.terms-link:hover {
  opacity: 0.7;
}

/* ========================================
   RARITY DISTRIBUTION HEATMAP
   ======================================== */
.rarity-section {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.rarity-header {
  text-align: center;
}

.rarity-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(28, 25, 23, 0.05);
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.rarity-title {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 4px;
}

.rarity-subtitle {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
  margin: 0;
  word-break: keep-all;
}

.rarity-heatmap-wrap {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.rarity-axis-y {
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

.rarity-axis-label {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.rarity-heatmap-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rarity-grid {
  display: grid;
  grid-template-columns: 44px repeat(5, 1fr);
  gap: 4px;
  width: 100%;
}

.rarity-row-label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.rarity-cell {
  aspect-ratio: 1;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  position: relative;
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.rarity-cell:hover {
  transform: scale(1.12);
  z-index: 2;
}

.rarity-cell::after {
  content: attr(data-rarity) ' · ' attr(data-prob);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: var(--text);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.62rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.2s,
    transform 0.2s;
  z-index: 10;
}

.rarity-cell:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.rarity-cell-grade {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Rarity Colors */
.rarity-common {
  background: linear-gradient(135deg, #b0b0b0, #8a8a8a);
}
.rarity-cell.rarity-common:hover {
  box-shadow: 0 8px 24px rgba(128, 128, 128, 0.35);
}
.rarity-cell.rarity-common .rarity-cell-grade {
  color: rgba(255, 255, 255, 0.6);
}

.rarity-uncommon {
  background: linear-gradient(135deg, #5cb85c, #3a9a3a);
}
.rarity-cell.rarity-uncommon:hover {
  box-shadow: 0 8px 24px rgba(58, 154, 58, 0.35);
}

.rarity-rare {
  background: linear-gradient(135deg, #4e9af5, #2d6fd4);
}
.rarity-cell.rarity-rare:hover {
  box-shadow: 0 8px 24px rgba(45, 111, 212, 0.35);
}

.rarity-epic {
  background: linear-gradient(135deg, #b366f0, #8a3ed4);
}
.rarity-cell.rarity-epic:hover {
  box-shadow: 0 8px 24px rgba(138, 62, 212, 0.35);
}

.rarity-legendary {
  background: linear-gradient(135deg, #f5d76e, #d4af37);
  animation: legendaryShimmer 3s ease-in-out infinite alternate;
}
.rarity-cell.rarity-legendary:hover {
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.5);
}
.rarity-cell.rarity-legendary .rarity-cell-grade {
  color: rgba(100, 60, 0, 0.85);
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
}

@keyframes legendaryShimmer {
  0% {
    background: linear-gradient(135deg, #f5d76e, #d4af37);
  }
  100% {
    background: linear-gradient(135deg, #ffe08a, #e8c84a);
  }
}

.rarity-col-spacer {
  /* Empty spacer for the row-label column */
}

.rarity-col-label {
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--muted);
  padding-top: 4px;
}

.rarity-axis-x {
  text-align: center;
  padding-top: 2px;
}

/* Legend */
.rarity-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
}

.rarity-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rarity-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.rarity-legend-text {
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 4px;
}

.rarity-legend-pct {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.62rem;
}

/* Responsive: Desktop */
@media (min-width: 768px) {
  .rarity-section {
    max-width: 600px;
  }
  .rarity-grid {
    gap: 6px;
  }
  .rarity-cell {
    border-radius: 12px;
  }
  .rarity-title {
    font-size: 1.4rem;
  }
  .rarity-tabs {
    gap: 10px;
  }
  .rarity-tab {
    padding: 10px 20px;
    min-width: 140px;
  }
}

/* Tier Tabs */
.rarity-tabs {
  display: flex;
  gap: 6px;
  width: 100%;
  justify-content: center;
}

.rarity-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  min-width: 90px;
  border: 1px solid rgba(28, 25, 23, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.rarity-tab:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(28, 25, 23, 0.2);
  transform: translateY(-2px);
}

.rarity-tab.active {
  background: var(--text);
  border-color: var(--text);
  box-shadow: 0 4px 16px rgba(28, 25, 23, 0.2);
  transform: translateY(-2px);
}

.rarity-tab-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.rarity-tab-label {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  transition: color 0.3s;
}

.rarity-tab.active .rarity-tab-label {
  color: var(--white);
}

.rarity-tab-stars {
  font-family: 'Outfit', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.3s;
}

.rarity-tab.active .rarity-tab-stars {
  color: rgba(255, 255, 255, 0.7);
}

.rarity-tab-reach {
  font-family: 'Outfit', sans-serif;
  font-size: 0.56rem;
  font-weight: 500;
  color: rgba(28, 25, 23, 0.35);
  transition: color 0.3s;
}

.rarity-tab.active .rarity-tab-reach {
  color: rgba(255, 255, 255, 0.5);
}

/* Heatmap Panels */
.rarity-heatmap-panel {
  display: none;
  width: 100%;
  animation: rarityFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.rarity-heatmap-panel.active {
  display: block;
}

@keyframes rarityFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mythic Grade */
.rarity-mythic {
  background: linear-gradient(
    135deg,
    #ff6b6b,
    #ee5a24,
    #f9ca24,
    #6ab04c,
    #30336b,
    #be2edd,
    #ff6b6b
  ) !important;
  background-size: 300% 300% !important;
  animation: mythicShift 4s ease infinite !important;
  box-shadow: 0 0 12px rgba(190, 46, 221, 0.3);
}

.rarity-cell.rarity-mythic:hover {
  box-shadow:
    0 8px 32px rgba(190, 46, 221, 0.5),
    0 0 20px rgba(249, 202, 36, 0.3) !important;
}

.rarity-cell.rarity-mythic .rarity-cell-grade {
  color: #fff !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6) !important;
  font-weight: 900;
}

.rarity-legend-dot.rarity-mythic {
  background: linear-gradient(
    135deg,
    #ff6b6b,
    #f9ca24,
    #6ab04c,
    #be2edd
  ) !important;
  background-size: 300% 300% !important;
  animation: mythicShift 4s ease infinite !important;
}

@keyframes mythicShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ========================================
   LANDING PAGE 2 REDESIGN (Concept Grid, Cards, Value Engine, & SVG Animations)
   ======================================== */
.concept-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 4px;
}

.concept-card {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(28, 25, 23, 0.08);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.concept-card:hover {
  transform: translateY(-8px);
  border-color: rgba(28, 25, 23, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.7);
}

.concept-card__visual {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28, 25, 23, 0.02);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}

.concept-card__badge {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.concept-card__title {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-bottom: 10px;
}

.concept-card__subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.concept-card__desc {
  font-size: 0.78rem;
  color: #555;
  line-height: 1.55;
  font-weight: 400;
  text-align: center;
  word-break: keep-all;
  margin: 0;
}

/* Talk Value Engine Block */
.value-engine {
  width: 100%;
  max-width: 1100px;
  margin: 48px auto 0;
  padding-top: 48px;
  border-top: 1px dashed rgba(28, 25, 23, 0.12);
}

.value-engine__header {
  margin-bottom: 36px;
  text-align: center;
}

.value-engine__badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(28, 25, 23, 0.05);
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.value-engine__title {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.value-engine__subtitle {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
}

.value-engine__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  text-align: left;
}

.value-engine__card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(28, 25, 23, 0.06);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.value-engine__card:hover {
  background: var(--white);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.03);
  transform: translateY(-4px);
  border-color: rgba(28, 25, 23, 0.12);
}

.value-engine__icon {
  color: var(--text);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: rgba(28, 25, 23, 0.03);
  border-radius: 12px;
  transition: background 0.3s;
}
.value-engine__card:hover .value-engine__icon {
  background: rgba(28, 25, 23, 0.08);
}

.value-engine__card-title {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.value-engine__card-desc {
  font-size: 0.78rem;
  color: #666;
  line-height: 1.6;
  font-weight: 400;
  word-break: keep-all;
  margin: 0;
}

/* ========================================
   SVG INTERACTIVE KEYFRAME ANIMATIONS
   ======================================== */

/* Float Card Animation */
.float-card {
  animation: svgFloat 4s ease-in-out infinite;
}
@keyframes svgFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

/* Pen Write Animation */
.pen-write {
  animation: svgWrite 4s ease-in-out infinite;
  transform-origin: 135px 63px;
}
@keyframes svgWrite {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  30% {
    transform: translate(-12px, 8px) rotate(-4deg);
  }
  50% {
    transform: translate(-3px, -2px) rotate(3deg);
  }
  75% {
    transform: translate(-14px, 6px) rotate(-2deg);
  }
}

/* Chart Line Drawing Animation */
.chart-line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: svgDrawLine 3.2s ease-in-out infinite alternate;
}
@keyframes svgDrawLine {
  0% {
    stroke-dashoffset: 200;
  }
  25% {
    stroke-dashoffset: 200;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

/* Float Tokens Animations */
.float-token-1 {
  animation: svgFloatToken1 3s ease-in-out infinite;
  transform-origin: center;
}
.float-token-2 {
  animation: svgFloatToken2 3.5s ease-in-out infinite;
  transform-origin: center;
}
@keyframes svgFloatToken1 {
  0% {
    transform: translateY(15px) scale(0.75);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateY(-20px) scale(1);
    opacity: 0;
  }
}
@keyframes svgFloatToken2 {
  0% {
    transform: translateY(20px) scale(0.7);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateY(-15px) scale(0.95);
    opacity: 0;
  }
}

/* Star Background Pulse Glow */
.star-bg-pulse {
  animation: svgStarPulse 2s ease-in-out infinite alternate;
  transform-origin: 100px 55px;
}
@keyframes svgStarPulse {
  0% {
    transform: scale(0.85);
    opacity: 0.05;
  }
  100% {
    transform: scale(1.18);
    opacity: 0.28;
  }
}

/* Upgrade Arrow Animation */
.upgrade-arrow {
  animation: svgArrowUp 2s ease-in-out infinite;
}
@keyframes svgArrowUp {
  0% {
    transform: translateY(8px);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
  100% {
    transform: translateY(-8px);
    opacity: 0;
  }
}

/* Trade Card and Token Animations */
.trade-card {
  animation: svgTradeCard 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.trade-token {
  animation: svgTradeToken 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes svgTradeCard {
  0% {
    transform: translate(45px, 50px);
    opacity: 0;
  }
  15% {
    transform: translate(45px, 50px);
    opacity: 1;
  }
  45%,
  55% {
    transform: translate(130px, 50px);
    opacity: 1;
  }
  85% {
    transform: translate(130px, 50px);
    opacity: 1;
  }
  100% {
    transform: translate(130px, 50px);
    opacity: 0;
  }
}
@keyframes svgTradeToken {
  0% {
    transform: translate(145px, 60px);
    opacity: 0;
  }
  15% {
    transform: translate(145px, 60px);
    opacity: 1;
  }
  45%,
  55% {
    transform: translate(60px, 60px);
    opacity: 1;
  }
  85% {
    transform: translate(60px, 60px);
    opacity: 1;
  }
  100% {
    transform: translate(60px, 60px);
    opacity: 0;
  }
}

/* ========================================
   RESPONSIVE DESIGN ADDITIONS FOR PAGE 2
   ======================================== */
@media (min-width: 768px) {
  .concept-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .value-engine__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .value-engine {
    margin-top: 64px;
    padding-top: 64px;
  }
}

@media (min-width: 1200px) {
  .concept-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }
}

/* Card Sparkles Overlay */
.diamond-sparkles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}
.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.8) 20%,
    rgba(212, 175, 55, 0.6) 50%,
    transparent 80%
  );
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: sparkleAnim 2s infinite ease-in-out;
}
@keyframes sparkleAnim {
  0%,
  100% {
    transform: scale(0) rotate(0deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(180deg);
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.8));
  }
}

/* Card Sparkles Overlay */
.diamond-sparkles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}
.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.8) 20%,
    rgba(212, 175, 55, 0.6) 50%,
    transparent 80%
  );
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: sparkleAnim 2s infinite ease-in-out;
}
@keyframes sparkleAnim {
  0%,
  100% {
    transform: scale(0) rotate(0deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(180deg);
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.8));
  }
}

/* === TCG Overhaul Additions === */

/* Keyframe animations for holographic sheen & glitter twinkle */
@keyframes holo-sheen {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes glitter-twinkle {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.8;
  }
}
@keyframes aura-shimmer {
  0%,
  100% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(0.95);
  }
  50% {
    opacity: 0.98;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

/* Backlit Aura in Main Image Container */
.tc__aura {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  height: 90%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    var(--aura-color, rgba(255, 127, 80, 0.85)) 0%,
    rgba(255, 127, 80, 0) 70%
  );
  filter: blur(15px);
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: normal;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.tc[data-star] .tc__aura {
  opacity: 0.95;
  animation: aura-shimmer 2s ease-in-out infinite alternate;
}
.tc[data-star] .tc__photo {
  box-shadow:
    0 0 15px var(--aura-color, rgba(255, 127, 80, 0.5)),
    0 0 4px rgba(0, 0, 0, 0.15) !important;
}

/* Lower Info Panel (Section 5) */
.tc__info-panel {
  background: #1c1917;
  border-radius: 2cqi;
  padding: 2.2cqi 3.2cqi;
  margin-top: 2cqi;
  margin-bottom: 0.5cqi;
  display: flex;
  flex-direction: column;
  gap: 1.2cqi;
  z-index: 2;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.tc[data-star='8'] .tc__info-panel,
.tc[data-star='9'] .tc__info-panel,
.tc[data-star='10'] .tc__info-panel,
.tc[data-star='11'] .tc__info-panel,
.tc[data-star='12'] .tc__info-panel {
  background: rgba(20, 20, 20, 0.85);
  background-image:
    radial-gradient(1px 1px at 15% 25%, #fff 100%, transparent),
    radial-gradient(1px 1px at 75% 75%, #fff 100%, transparent),
    radial-gradient(1px 1px at 45% 50%, #fff 100%, transparent);
  background-size: 100px 100px;
  animation: glitter-twinkle 4s ease-in-out infinite alternate;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.tc__info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 3.5cqi;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Outfit', 'Noto Sans KR', sans-serif;
}
.tc__info-label {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}
.tc__info-value {
  font-weight: 700;
  color: #ffffff;
}
.tc__status-tag {
  display: inline-block;
  padding: 0.4cqi 2cqi;
  border-radius: 50px;
  font-size: 3cqi;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

/* ========================
   ABOUT / INFO PAGES (Asset Plan, Game Guide, About)
   ======================== */
.about-page {
  padding: 80px 24px 80px;
  max-width: 900px;
  margin: 0 auto;
  color: var(--text);
  font-family: 'Noto Sans KR', sans-serif;
  animation: infoFadeIn 0.8s ease forwards;
}

@keyframes infoFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
}

.about-hero {
  text-align: center;
  margin-bottom: 80px;
}

.about-hero__badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.about-hero__title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.35;
  margin-bottom: 16px;
  background: var(--cyber);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
  font-weight: 500;
}

.about-section {
  margin-bottom: 60px;
}
.about-section--dark {
  background: #111;
  color: #fff;
  border-radius: 24px;
  padding: 56px 32px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.about-section__title {
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.about-section__text {
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.about-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}
.about-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.about-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.about-section--dark .about-step {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}
.about-step__number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--text);
  color: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
}
.about-section--dark .about-step__number {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.about-step__content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.about-step__content p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}
.about-section--dark .about-step__content h3 {
  color: #fff;
}
.about-section--dark .about-step__content p {
  color: rgba(255, 255, 255, 0.6);
}

.about-economy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.about-economy__item {
  background: #fff;
  padding: 32px 24px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.about-economy__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}
.about-section--dark .about-economy__item {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}
.about-economy__icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1;
}
.about-economy__item h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.about-section--dark .about-economy__item h3 {
  color: #fff;
}
.about-economy__item p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}
.about-section--dark .about-economy__item p {
  color: rgba(255, 255, 255, 0.6);
}

.about-cta {
  text-align: center;
  padding: 80px 24px;
  background: linear-gradient(135deg, #111, #222);
  color: #fff;
  border-radius: 24px;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}
.about-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 60%
  );
  pointer-events: none;
}
.about-cta__title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 900;
  margin-bottom: 16px;
  position: relative;
}
.about-cta__sub {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 40px;
  font-size: 1.05rem;
  position: relative;
}
.auth-submit {
  display: block;
  width: 100%;
  padding: 16px;
  background: #fff;
  color: #111;
  text-align: center;
  font-weight: 800;
  border-radius: 12px;
  text-decoration: none;
  font-size: 1.05rem;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  position: relative;
}
.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
  color: #111;
}

/* Star tier component */
.about-star-tiers {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
  margin: 40px auto 0;
}
.about-tier {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
  border-radius: 16px;
  gap: 24px;
  transition: transform 0.3s;
}
.about-tier:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.05);
}
.about-tier__range {
  font-family: 'Outfit', monospace;
  font-weight: 800;
  font-size: 1.25rem;
  width: 80px;
  flex-shrink: 0;
  text-align: center;
}
.about-tier__content {
  flex: 1;
}
.about-tier__label {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.about-tier__desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

/* Enhancement Table */
.enhancement-table-wrap {
  max-width: 500px;
  margin: 40px auto 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}
.enhancement-table-header {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
  color: #fff;
  text-align: center;
}
.enhancement-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.enhancement-table th {
  padding: 14px 20px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
}
.enhancement-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: #ccc;
  font-weight: 500;
}
.enhancement-table tr:last-child td {
  border-bottom: none;
}

/* ========================
   TOPBAR BUTTON GROUP (Icons)
   ======================== */
.btn-group {
  display: inline-flex;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.page--dark .btn-group {
  border-color: rgba(255, 255, 255, 0.15);
  background: transparent;
}
.btn-group__item {
  padding: 10px 14px;
  color: var(--text);
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-group__item svg {
  display: block;
}
.page--dark .btn-group__item {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-right-color: rgba(255, 255, 255, 0.1);
}
.btn-group__item:last-child {
  border-right: none;
}
.btn-group__item:hover {
  background: rgba(0, 0, 0, 0.03);
  color: var(--cyber, #6366f1);
}
.page--dark .btn-group__item:hover {
  background: rgba(255, 255, 255, 0.1);
}
.btn-group__item:active {
  background: rgba(0, 0, 0, 0.06);
}
.page--dark .btn-group__item:active {
  background: rgba(255, 255, 255, 0.15);
}
