html { font-size: 16px }
body { background: #0d0b08 !important; height: auto; }

/* =========================
   모바일 GNB (.rk-gnb)
   ========================= */
.rk-gnb.is-scrolled {
  background: #1a1508;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* =========================
   히어로 영역
   ========================= */
.rk-hero{
  position:relative;
  z-index:0;
  background:linear-gradient(155deg,#0d0b08 0%,#1c1710 30%,#28200f 55%,#1c1710 80%,#0d0b08 100%);
  overflow:hidden;
  padding:4rem 1.5rem 2rem;
  color:#fff;
  text-align:center;
}

/* 배경 글로우 */
.rk-hero::before,
.rk-hero::after{
  content:"";
  position:absolute;
  z-index:0;
  border-radius:50%;
  pointer-events:none;
}
.rk-hero::before{
  top:-25%; right:-20%;
  width:24rem; height:24rem;
  background:radial-gradient(circle,rgba(255,195,0,.10) 0%,transparent 70%);
}
.rk-hero::after{
  bottom:-20%; left:-15%;
  width:20rem; height:20rem;
  background:radial-gradient(circle,rgba(200,160,60,.08) 0%,transparent 70%);
}

/* =========================
   핀조명 스포트라이트 (성능 최적화)
   ========================= */
.rk-hero__sweep{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:1;
  overflow:hidden;
  opacity:.75;
}

.rk-hero__sweep::before,
.rk-hero__sweep::after{
  content:"";
  position:absolute;
  border-radius:50%;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.rk-hero__sweep::before{
  width:38rem; height:38rem;
  left:-10%; top:-15%;
  background:radial-gradient(circle,
    rgba(255,214,120,.18) 0%,
    rgba(255,214,120,.10) 22%,
    rgba(255,214,120,.05) 40%,
    rgba(255,214,120,0) 68%
  );
  filter:blur(8px);
  animation:rk-spot-1 9s ease-in-out infinite;
}

.rk-hero__sweep::after{
  width:28rem; height:28rem;
  right:-12%; bottom:-18%;
  background:radial-gradient(circle,
    rgba(255,245,200,.12) 0%,
    rgba(255,210,110,.06) 28%,
    rgba(255,210,110,.03) 46%,
    rgba(255,210,110,0) 72%
  );
  filter:blur(10px);
  animation:rk-spot-2 12s ease-in-out infinite;
}

@keyframes rk-spot-1{
  0%{transform:translate(-10%,-8%) scale(1)}
  25%{transform:translate(35%,6%) scale(1.06)}
  55%{transform:translate(55%,28%) scale(1.02)}
  80%{transform:translate(20%,40%) scale(1.07)}
  100%{transform:translate(-10%,-8%) scale(1)}
}
@keyframes rk-spot-2{
  0%{transform:translate(10%,6%) scale(1)}
  30%{transform:translate(-20%,-18%) scale(1.05)}
  60%{transform:translate(-45%,-5%) scale(1.02)}
  85%{transform:translate(-10%,22%) scale(1.06)}
  100%{transform:translate(10%,6%) scale(1)}
}

@media (prefers-reduced-motion:reduce){
  .rk-hero__sweep{display:none;}
}

.rk-hero__crown,
.rk-hero__title,
.rk-hero__sub,
.rk-hero__podium,
.rk-hero__criteria{
  position:relative;
  z-index:2;
}

/* 반짝이는 십자 스파크 */
.rk-hero__spark {
  position: absolute;
  pointer-events: none;
  z-index: 3;
}
.rk-hero__spark::before,
.rk-hero__spark::after {
  content: "";
  position: absolute;
  background: #ffd700;
  border-radius: 0.0625rem;
}
.rk-hero__spark::before {
  width: 100%; height: 0.125rem;
  top: 50%; left: 0;
  transform: translateY(-50%);
}
.rk-hero__spark::after {
  width: 0.125rem; height: 100%;
  left: 50%; top: 0;
  transform: translateX(-50%);
}

.rk-hero__spark--1 { width: 1rem; height: 1rem; top: 10%; left: 10%; animation: rk-spark 2.5s ease-in-out infinite; }
.rk-hero__spark--2 { width: 0.625rem; height: 0.625rem; top: 6%; right: 18%; animation: rk-spark 3s ease-in-out infinite 0.5s; }
.rk-hero__spark--3 { width: 0.875rem; height: 0.875rem; top: 38%; right: 6%; animation: rk-spark 2.8s ease-in-out infinite 1.2s; }
.rk-hero__spark--4 { width: 0.5rem; height: 0.5rem; bottom: 38%; left: 6%; animation: rk-spark 3.2s ease-in-out infinite 0.3s; }
.rk-hero__spark--5 { width: 0.75rem; height: 0.75rem; top: 22%; left: 30%; animation: rk-spark 2.2s ease-in-out infinite 1.8s; }
.rk-hero__spark--6 { width: 0.5rem; height: 0.5rem; bottom: 28%; right: 22%; animation: rk-spark 3.5s ease-in-out infinite 0.8s; }
.rk-hero__spark--7 { width: 0.625rem; height: 0.625rem; top: 55%; left: 20%; animation: rk-spark 2.6s ease-in-out infinite 2.1s; }

@keyframes rk-spark {
  0%, 100% { opacity: 0; transform: scale(0.2) rotate(0deg); }
  15% { opacity: 1; transform: scale(1.3) rotate(45deg); }
  30% { opacity: 0.7; transform: scale(0.7) rotate(90deg); }
  45%, 100% { opacity: 0; transform: scale(0.1) rotate(135deg); }
}

/* 왕관 SVG */
.rk-hero__crown {
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 0.75rem;
  filter: drop-shadow(0 0.25rem 1.5rem rgba(255,195,0,0.4));
  animation: rk-float 4s ease-in-out infinite;
}

@keyframes rk-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.5rem); }
}

/* 메인 타이틀 */
.rk-hero__title {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 0.625rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #ffd700 0%, #ffaa00 25%, #ffe680 50%, #ffaa00 75%, #ffd700 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rk-shimmer 4s ease-in-out infinite;
  line-height: 1.2;
}

@keyframes rk-shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* 서브 타이틀 */
.rk-hero__sub {
  font-size: 1.1875rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  letter-spacing: 0.15rem;
  margin-bottom: 1.75rem;
}

/* 포디움 */
.rk-hero__podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.625rem;
  margin-bottom: 1.75rem;
}
.rk-hero__medal {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  animation: rk-slide-up 0.8s ease-out both;
}
.rk-hero__medal--2nd { animation-delay: 0.4s; }
.rk-hero__medal--1st { animation-delay: 0.2s; }
.rk-hero__medal--3rd { animation-delay: 0.6s; }

@keyframes rk-slide-up {
  0% { opacity: 0; transform: translateY(2rem); }
  100% { opacity: 1; transform: translateY(0); }
}

/* 메달 이모지 */
.rk-hero__medal-emoji {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.rk-hero__medal-poster {
  width: 5.75rem;
  height: 8rem;
  border-radius: 0.5rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transition: transform 0.25s ease;
}
.rk-hero__medal:active .rk-hero__medal-poster { transform: scale(0.96); }
.rk-hero__medal-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 단상 바 (공통) */
.rk-hero__medal-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 0.5rem 0.5rem;
  position: relative;
  overflow: hidden;
}
/* 단상 상단 하이라이트 */
.rk-hero__medal-bar::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}
/* 단상 내 순위 숫자 */
.rk-hero__medal-num {
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* 1위: 골드 + 글로우 */
.rk-hero__medal--1st .rk-hero__medal-emoji { font-size: 2.5rem; }
.rk-hero__medal--1st .rk-hero__medal-poster {
  width: 7rem;
  height: 9.8rem;
  border: 2px solid rgba(255,195,0,0.45);
  animation: rk-glow 3s ease-in-out infinite;
}
.rk-hero__medal--1st .rk-hero__medal-bar {
  height: 3.5rem;
  background: linear-gradient(180deg, rgba(255,195,0,0.3) 0%, rgba(255,170,0,0.12) 60%, rgba(255,150,0,0.06) 100%);
  border: 1px solid rgba(255,195,0,0.25);
  border-top: none;
  box-shadow: inset 0 2px 8px rgba(255,195,0,0.1);
}
.rk-hero__medal--1st .rk-hero__medal-bar::before { background: linear-gradient(90deg, transparent, rgba(255,215,0,0.4), transparent); }
.rk-hero__medal--1st .rk-hero__medal-num { font-size: 1.375rem; color: #ffd700; text-shadow: 0 0 10px rgba(255,195,0,0.5), 0 1px 3px rgba(0,0,0,0.4); }

@keyframes rk-glow {
  0%, 100% { box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 15px rgba(255,195,0,0.15); }
  50% { box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 30px rgba(255,195,0,0.3); }
}

/* 2위: 실버 */
.rk-hero__medal--2nd .rk-hero__medal-poster { border: 2px solid rgba(192,192,192,0.3); }
.rk-hero__medal--2nd .rk-hero__medal-bar {
  height: 2.25rem;
  background: linear-gradient(180deg, rgba(192,192,192,0.2) 0%, rgba(192,192,192,0.08) 60%, rgba(192,192,192,0.03) 100%);
  border: 1px solid rgba(192,192,192,0.18);
  border-top: none;
  box-shadow: inset 0 2px 6px rgba(192,192,192,0.08);
}
.rk-hero__medal--2nd .rk-hero__medal-bar::before { background: linear-gradient(90deg, transparent, rgba(220,220,220,0.3), transparent); }
.rk-hero__medal--2nd .rk-hero__medal-num { font-size: 1.125rem; color: rgba(220,220,220,0.8); }

/* 3위: 브론즈 */
.rk-hero__medal--3rd .rk-hero__medal-poster { border: 2px solid rgba(205,127,50,0.3); }
.rk-hero__medal--3rd .rk-hero__medal-bar {
  height: 1.625rem;
  background: linear-gradient(180deg, rgba(205,127,50,0.2) 0%, rgba(205,127,50,0.08) 60%, rgba(205,127,50,0.03) 100%);
  border: 1px solid rgba(205,127,50,0.18);
  border-top: none;
  box-shadow: inset 0 2px 6px rgba(205,127,50,0.08);
}
.rk-hero__medal--3rd .rk-hero__medal-bar::before { background: linear-gradient(90deg, transparent, rgba(218,160,96,0.3), transparent); }
.rk-hero__medal--3rd .rk-hero__medal-num { font-size: 1rem; color: rgba(218,160,96,0.8); }

/* 집계 기준 카드 */
.rk-hero__criteria {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  text-align: center;
  max-width: 28rem;
  margin: 0 auto;
}
.rk-hero__criteria-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(255,210,80,0.9);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}
.rk-hero__criteria-desc {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
}

/* =========================
   탭바
   ========================= */
.tt-tabs { position: sticky; top: 0; z-index: 60; background: #0d0b08 !important; background-color: #0d0b08 !important; border-top: 1px solid rgba(255,255,255,0.08) !important; border-bottom: 1px solid rgba(255,255,255,0.08) !important; transform: translateY(0); transition: transform .22s ease; will-change: transform; }
.tt-tabs-bar { display: flex; width: 100%; min-height: 3rem; }
.tt-tab { flex: 1 1 20%; text-align: center; padding: 0.875rem 0; font-size: 0.9375rem; font-weight: 600; color: rgba(255,255,255,0.4) !important; position: relative; text-decoration: none; white-space: nowrap; }
.tt-tab.is-active { color: #ffd700 !important; }
.tt-tab.is-active::after { content: ""; position: absolute; left: 0.875rem; right: 0.875rem; bottom: -1px; height: 3px; background: #ffd700 !important; border-radius: 3px; }
.tt-tab::before { content: ""; position: absolute; inset: 0; background: transparent; pointer-events: none; transition: background-color .12s ease; }
.tt-tab:active::before { background: rgba(255,255,255,.06); }

/* =========================
   리스트 영역 (다크 테마)
   ========================= */
.rk-list-wrap {
  padding: 1.25rem 1rem 5rem !important;
}

/* 랭킹 전용: 카운터 (순위 배지용) */
.rk-list-wrap .layout-grid {
  counter-reset: rank;
}

/* 랭킹 전용: 할인율 골드 */
.rk-list-wrap .discount { color: #ffd700; }

/* 랭킹 전용: 별점 + 뱃지 같은 줄 */
.rk-list-wrap .list_content .info {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto 1fr;
}
.rk-list-wrap .meta,
.rk-list-wrap .title,
.rk-list-wrap .price_box {
  grid-column: 1 / -1;
  min-width: 0;
}
.rk-list-wrap .rating {
  grid-row: 4;
  grid-column: 1;
  align-self: end;
  margin-top: 0;
}
.rk-list-wrap .badges {
  grid-row: 4;
  grid-column: 2;
  align-self: end;
}
/* 크기/색상은 base.css의 .promo_* 공통 정의 사용, 폰트 사이즈만 한 단계 축소 */
.rk-list-wrap .promo_new,
.rk-list-wrap .promo_timesale,
.rk-list-wrap .promo_today {
  font-size: 0.75rem;
}
.rk-list-wrap .promo_new,
.rk-list-wrap .promo_today { display: none; }
.rk-list-wrap .promo_timesale { background: rgba(255,70,70,0.15); color: #ff6b6b; }

/* 랭킹 넘버 배지 (기본) — item-promo.css의 display:none 오버라이드 */
.rk-list-wrap .rank-badge{
  position:absolute; top:0; left:0;
  width:2.25rem; height:2.25rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,215,0,0.2);
  color: #ffd700;
  display:flex; align-items:center; justify-content:center;
  font-weight:900; font-size:0.9375rem; line-height:1;
  font-style: italic;
  border-radius:0.5rem 0 0.5rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,0.08);
  user-select:none; pointer-events:none;
  z-index: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.rk-list-wrap .rank-badge::before{ counter-increment: rank; content: counter(rank); }

/* 1위: 골드 프리미엄 */
.rk-list-wrap .list_content:nth-child(1) .rank-badge {
  width: 3rem; height: 3rem;
  font-size: 1.25rem;
  background: linear-gradient(135deg, #ffd700 0%, #ffaa00 50%, #ffe680 100%);
  border: 2px solid rgba(255,230,128,0.6);
  color: #1a1400;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
  box-shadow: 0 3px 12px rgba(255,195,0,0.5), 0 0 20px rgba(255,195,0,0.2), inset 0 1px 0 rgba(255,255,255,0.5);
  animation: rk-badge-glow-gold 3s ease-in-out infinite;
}
@keyframes rk-badge-glow-gold {
  0%, 100% { box-shadow: 0 3px 12px rgba(255,195,0,0.5), 0 0 20px rgba(255,195,0,0.2), inset 0 1px 0 rgba(255,255,255,0.5); }
  50% { box-shadow: 0 3px 16px rgba(255,195,0,0.7), 0 0 30px rgba(255,195,0,0.35), inset 0 1px 0 rgba(255,255,255,0.5); }
}

/* 2위: 실버 프리미엄 */
.rk-list-wrap .list_content:nth-child(2) .rank-badge {
  width: 2.75rem; height: 2.75rem;
  font-size: 1.125rem;
  background: linear-gradient(135deg, #e8e8e8 0%, #c0c0c0 50%, #d8d8d8 100%);
  border: 2px solid rgba(220,220,220,0.5);
  color: #333;
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
  box-shadow: 0 3px 10px rgba(192,192,192,0.4), 0 0 15px rgba(192,192,192,0.15), inset 0 1px 0 rgba(255,255,255,0.6);
}

/* 3위: 브론즈 프리미엄 */
.rk-list-wrap .list_content:nth-child(3) .rank-badge {
  width: 2.75rem; height: 2.75rem;
  font-size: 1.125rem;
  background: linear-gradient(135deg, #e8a050 0%, #cd7f32 50%, #daa060 100%);
  border: 2px solid rgba(218,160,96,0.5);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  box-shadow: 0 3px 10px rgba(205,127,50,0.4), 0 0 15px rgba(205,127,50,0.15), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* 4~12위: 골드 액센트 다크 */
.rk-list-wrap .list_content:nth-child(n+4) .rank-badge {
  width: 2.375rem; height: 2.375rem;
  font-size: 1rem;
  background: linear-gradient(135deg, rgba(255,215,0,0.15) 0%, rgba(255,170,0,0.08) 100%);
  border: 1px solid rgba(255,215,0,0.25);
  color: #ffd700;
}

/* 스크롤업 */
.scroll-up { background: rgba(13,11,8,0.85); }

/* =========================
   웹(.is-web) 전용 오버라이드
   ========================= */
.is-web .rk-hero { padding: 3.5rem 2rem 2.5rem; }
.is-web .rk-hero__crown { width: 7rem; height: 7rem; margin-bottom: 1rem; }
.is-web .rk-hero__title { font-size: 4.5rem; letter-spacing: 1rem; }
.is-web .rk-hero__sub { font-size: 1.5rem; letter-spacing: 0.25rem; }
.is-web .rk-hero__podium { gap: 2.5rem; max-width: 48.75rem; margin-left: auto; margin-right: auto; margin-bottom: 2rem; }
.is-web .rk-hero__medal-emoji { font-size: 2.5rem; }
.is-web .rk-hero__medal--1st .rk-hero__medal-emoji { font-size: 3rem; }
.is-web .rk-hero__medal-poster { width: 9rem; height: 12.6rem; }
.is-web .rk-hero__medal--1st .rk-hero__medal-poster { width: 11rem; height: 15.4rem; }
.is-web .rk-hero__medal--1st .rk-hero__medal-bar { height: 4.5rem; }
.is-web .rk-hero__medal--1st .rk-hero__medal-num { font-size: 1.625rem; }
.is-web .rk-hero__medal--2nd .rk-hero__medal-bar { height: 3rem; }
.is-web .rk-hero__medal--2nd .rk-hero__medal-num { font-size: 1.25rem; }
.is-web .rk-hero__medal--3rd .rk-hero__medal-bar { height: 2.25rem; }
.is-web .rk-hero__medal--3rd .rk-hero__medal-num { font-size: 1.125rem; }
.is-web .rk-hero::before { width: 32rem; height: 32rem; }
.is-web .rk-hero::after { width: 28rem; height: 28rem; }
.is-web .rk-hero__criteria { max-width: 36rem; padding: 1.5rem 2rem; }

.is-web .rk-hero__medal-poster:hover { transform: scale(1.03); }

/* 탭: 웹 제한폭 */
.is-web .tt-tabs { max-width: 68.75rem; margin: 0 auto !important; margin-left: auto !important; margin-right: auto !important; padding-left: 0 !important; padding-right: 0 !important; background-color: #0d0b08 !important; }
.is-web .tt-tab { padding: 1rem 0 !important; font-size: 1rem !important; color: rgba(255,255,255,0.4) !important; }
.is-web .tt-tab.is-active { color: #ffd700 !important; }

/* 리스트: 웹 제한폭 + 4열 그리드 */
.is-web .rk-list-wrap {
  max-width: 68.75rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3.75rem !important;
}

/* 웹 리스트 카드 스타일은 item-promo.css 에서 처리 */


