/* ==========================================================================
   이용 후기 전광판 · 메인 후기 보드 · 통합 후기/작성 팝업 (reviews.css)
   - 서체: 한글 본문·뱃지·버튼 --font-main(Pretendard), 별점·집계 숫자 --font-display(Outfit, tabular-nums)
   - 테마: 기본 다크 코스믹 + html[data-theme="light"] 펄 라이트 모드 완벽 대응
   - 히어로 내부 전광판(.rv-hero-ticker)은 .pp-hero 다크 우주 배경 위에서 항상 네온 글래스 대비 유지
   ========================================================================== */

:root {
  --rv-gold: #ffd24c;
  --rv-gold-ink: #b57600;
  --rv-star-fill: #ffd24c;
  --rv-star-off: rgba(255, 210, 76, 0.11);
  --rv-star-outline: rgba(255, 210, 76, 0.46);
  --rv-star-seam: rgba(255, 250, 224, 0.68);
  --rv-surface: rgba(18, 9, 46, 0.86);
  --rv-surface-inner: rgba(28, 16, 64, 0.78);
  --rv-border: rgba(180, 135, 232, 0.26);
  --rv-border-strong: rgba(255, 95, 210, 0.45);
  --rv-shadow: 0 18px 48px rgba(4, 1, 16, 0.55);
}

html[data-theme="light"] {
  --rv-star-fill: #c67d00;
  --rv-star-off: rgba(198, 125, 0, 0.08);
  --rv-star-outline: rgba(168, 102, 0, 0.44);
  --rv-star-seam: rgba(255, 255, 255, 0.78);
  --rv-surface: rgba(255, 255, 255, 0.96);
  --rv-surface-inner: #f6f1fa;
  --rv-border: rgba(107, 63, 174, 0.20);
  --rv-border-strong: rgba(176, 20, 127, 0.38);
  --rv-shadow: 0 18px 44px rgba(36, 16, 68, 0.14);
}

/* 6대 코너 카테고리 뱃지 컬러 토큰 */
[data-rv-cat="crush"] {
  --rv-c: #ff5fd2;
  --rv-ink: #ff8be0;
  --rv-bg: rgba(255, 95, 210, 0.14);
}
[data-rv-cat="timing"] {
  --rv-c: #00e5ff;
  --rv-ink: #5cf0ff;
  --rv-bg: rgba(0, 229, 255, 0.13);
}
[data-rv-cat="chemistry_love"] {
  --rv-c: #00ffa3;
  --rv-ink: #4dffbe;
  --rv-bg: rgba(0, 255, 163, 0.13);
}
[data-rv-cat="chemistry_marriage"] {
  --rv-c: #e8c069;
  --rv-ink: #f5d68a;
  --rv-bg: rgba(232, 192, 105, 0.15);
}
[data-rv-cat="reunion"] {
  --rv-c: #b487e8;
  --rv-ink: #cdaaff;
  --rv-bg: rgba(180, 135, 232, 0.16);
}
[data-rv-cat="salon"] {
  --rv-c: #ff85a1;
  --rv-ink: #ffa8bc;
  --rv-bg: rgba(255, 133, 161, 0.15);
}
[data-rv-cat="space"] {
  --rv-c: #38bdf8;
  --rv-ink: #7dd3fc;
  --rv-bg: rgba(56, 189, 248, 0.15);
}

html[data-theme="light"] [data-rv-cat="crush"] {
  --rv-ink: #a81075;
  --rv-bg: rgba(203, 35, 162, 0.10);
}
html[data-theme="light"] [data-rv-cat="timing"] {
  --rv-ink: #006b7a;
  --rv-bg: rgba(0, 140, 160, 0.10);
}
html[data-theme="light"] [data-rv-cat="chemistry_love"] {
  --rv-ink: #007248;
  --rv-bg: rgba(0, 150, 95, 0.10);
}
html[data-theme="light"] [data-rv-cat="chemistry_marriage"] {
  --rv-ink: #805300;
  --rv-bg: rgba(180, 125, 20, 0.12);
}
html[data-theme="light"] [data-rv-cat="reunion"] {
  --rv-ink: #5e31a3;
  --rv-bg: rgba(107, 63, 174, 0.11);
}
html[data-theme="light"] [data-rv-cat="salon"] {
  --rv-ink: #a3195b;
  --rv-bg: rgba(200, 45, 115, 0.10);
}
html[data-theme="light"] [data-rv-cat="space"] {
  --rv-ink: #0369a1;
  --rv-bg: rgba(2, 132, 199, 0.11);
}

/* 전광판(히어로 내부·채널 고르기 위 띠)은 낮 모드에서도 어두운 글래스 위에 놓이므로 밝은 네온 잉크 유지 */
:is(.pp-hero, .hm-reviews-strip) {
  --rv-star-fill: #ffd24c;
  --rv-star-off: rgba(255, 210, 76, 0.14);
  --rv-star-outline: rgba(255, 210, 76, 0.54);
  --rv-star-seam: rgba(255, 250, 224, 0.72);
}
:is(.pp-hero, .hm-reviews-strip) [data-rv-cat="crush"] { --rv-ink: #ff8be0; --rv-bg: rgba(255, 95, 210, 0.18); }
:is(.pp-hero, .hm-reviews-strip) [data-rv-cat="timing"] { --rv-ink: #5cf0ff; --rv-bg: rgba(0, 229, 255, 0.16); }
:is(.pp-hero, .hm-reviews-strip) [data-rv-cat="chemistry_love"] { --rv-ink: #4dffbe; --rv-bg: rgba(0, 255, 163, 0.16); }
:is(.pp-hero, .hm-reviews-strip) [data-rv-cat="chemistry_marriage"] { --rv-ink: #f5d68a; --rv-bg: rgba(232, 192, 105, 0.18); }
:is(.pp-hero, .hm-reviews-strip) [data-rv-cat="reunion"] { --rv-ink: #cdaaff; --rv-bg: rgba(180, 135, 232, 0.18); }
:is(.pp-hero, .hm-reviews-strip) [data-rv-cat="salon"] { --rv-ink: #ffa8bc; --rv-bg: rgba(255, 133, 161, 0.18); }
:is(.pp-hero, .hm-reviews-strip) [data-rv-cat="space"] { --rv-ink: #7dd3fc; --rv-bg: rgba(56, 189, 248, 0.18); }

/* 공통 SVG 별점 아이콘 (정수 · 0.5 절반 별 · 빈 별) */
.rv-stars,
.rv-stars-inline {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  line-height: 1;
  flex-shrink: 0;
  vertical-align: middle;
}

.rv-star-svg {
  width: 15px;
  height: 15px;
  display: block;
  flex-shrink: 0;
  overflow: visible;
}

.rv-star-bg {
  fill: var(--rv-star-off);
  stroke: var(--rv-star-outline);
  stroke-width: 1.35;
  stroke-linejoin: round;
}

.rv-star-fg {
  fill: var(--rv-star-fill);
  stroke: var(--rv-star-fill);
  stroke-width: 1.05;
  stroke-linejoin: round;
}

.rv-star-svg.is-half .rv-star-fg {
  stroke-width: 0.85;
}

.rv-star-seam {
  stroke: var(--rv-star-seam);
  stroke-width: 0.72;
  stroke-linecap: round;
}

.rv-star-num {
  margin-left: 5px;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-pure);
}

/* 공통 카테고리 뱃지 */
.rv-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-pill, 999px);
  font-family: var(--font-main);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--rv-ink, var(--text-pure));
  background: var(--rv-bg, rgba(180, 135, 232, 0.14));
  border: 1px solid color-mix(in srgb, var(--rv-c, #b487e8) 48%, transparent);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==========================================================================
   1. 메인 히어로 상단 전광판 (.rv-hero-ticker)
   ========================================================================== */
.rv-hero-ticker {
  width: 100%;
  max-width: 980px;
  margin: 0 auto 18px;
  padding: 8px 12px 8px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(14, 6, 38, 0.88) 0%, rgba(28, 11, 64, 0.84) 100%);
  border: 1px solid rgba(255, 95, 210, 0.34);
  box-shadow: 0 10px 28px rgba(4, 1, 18, 0.48), inset 0 0 18px rgba(255, 95, 210, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 3;
}

.rv-ticker-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-right: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

.rv-ticker-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 95, 210, 0.18);
  border: 1px solid rgba(255, 95, 210, 0.45);
  color: #ff9be5;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.rv-ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00ffa3;
  box-shadow: 0 0 8px #00ffa3;
}

.rv-ticker-score {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: #ffffff;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
  font-weight: 800;
}

.rv-ticker-score-star {
  color: var(--rv-gold);
  font-size: 0.9rem;
}

.rv-ticker-count {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(235, 225, 255, 0.72);
}

.rv-ticker-stage {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}

.rv-ticker-item-btn {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 4px 6px;
  border-radius: 10px;
  color: #f7f3ff;
  font-family: var(--font-main);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.18s ease, opacity 0.26s ease, transform 0.26s ease;
}

.rv-ticker-item-btn:hover,
.rv-ticker-item-btn:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}

.rv-ticker-item-btn.is-switching {
  opacity: 0;
  transform: translateY(-5px);
}

.rv-ticker-stars {
  color: var(--rv-gold);
  font-size: 0.8rem;
  flex-shrink: 0;
  gap: 1.5px;
}

.rv-ticker-stars .rv-star-svg {
  width: 13px;
  height: 13px;
}

.rv-ticker-stars .rv-star-num {
  margin-left: 4px;
  font-size: 0.76rem;
  color: #ffe699;
}

.rv-ticker-quote {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.86rem;
  font-weight: 500;
  color: #f6f2ff;
}

.rv-ticker-nick {
  font-size: 0.76rem;
  color: rgba(226, 212, 255, 0.72);
  white-space: nowrap;
  flex-shrink: 0;
}

.rv-ticker-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.rv-ticker-btn {
  padding: 6px 11px;
  border-radius: 999px;
  font-family: var(--font-main);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.rv-ticker-btn--board {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f5efff;
}

.rv-ticker-btn--board:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.38);
}

.rv-ticker-btn--write {
  background: linear-gradient(135deg, #ff5fd2 0%, #9b51e0 100%);
  border: 1px solid rgba(255, 160, 232, 0.55);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 95, 210, 0.30);
}

.rv-ticker-btn--write:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 95, 210, 0.44);
}

/* ==========================================================================
   2. 메인 하단 이용 후기 섹션 (#home-reviews)
   ========================================================================== */
.rv-home-block {
  margin-bottom: 42px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--rv-border);
}

.rv-home-block--standalone {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.rv-space-box {
  margin-bottom: 0;
}

.rv-home-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.rv-home-title-wrap {
  max-width: 600px;
}

.rv-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--neon-pink, #ff5fd2);
  margin: 0 0 6px;
  text-transform: uppercase;
}

.rv-title {
  font-family: var(--font-main);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  color: var(--text-pure);
  margin: 0 0 8px;
  line-height: 1.3;
  word-break: keep-all;
}

.rv-desc {
  font-family: var(--font-main);
  font-size: 0.94rem;
  color: var(--text-sub);
  margin: 0;
  line-height: 1.55;
  word-break: keep-all;
}

.rv-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--rv-surface-inner);
  border: 1px solid var(--rv-border);
  margin-bottom: 18px;
}

.rv-score-hero {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rv-score-big {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-pure);
}

.rv-score-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rv-score-stars {
  color: var(--rv-gold);
  font-size: 1.05rem;
  gap: 3px;
}

.rv-score-stars .rv-star-svg {
  width: 18px;
  height: 18px;
}

html[data-theme="light"] .rv-score-stars {
  color: var(--rv-gold-ink);
}

.rv-score-caption {
  font-family: var(--font-main);
  font-size: 0.84rem;
  color: var(--text-sub);
}

.rv-score-caption b {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  color: var(--text-pure);
}

.rv-cta-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
  word-break: keep-all;
}

.rv-btn--primary {
  background: linear-gradient(135deg, #ff5fd2 0%, #8f45e8 100%);
  border: 1px solid rgba(255, 145, 226, 0.5);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(255, 95, 210, 0.25);
}

.rv-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255, 95, 210, 0.36);
}

.rv-btn--ghost {
  background: var(--bg-card, rgba(20, 10, 48, 0.7));
  border: 1px solid var(--rv-border);
  color: var(--text-pure);
}

.rv-btn--ghost:hover {
  border-color: var(--rv-border-strong);
}

/* 카테고리 필터 칩 */
.rv-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.rv-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--font-main);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-sub);
  background: var(--rv-surface-inner);
  border: 1px solid var(--rv-border);
  cursor: pointer;
  transition: all 0.16s ease;
}

.rv-chip:hover {
  color: var(--text-pure);
  border-color: var(--rv-c, var(--neon-pink, #ff5fd2));
}

.rv-chip[aria-pressed="true"] {
  color: var(--rv-ink, #ff8be0);
  background: var(--rv-bg, rgba(255, 95, 210, 0.16));
  border-color: var(--rv-c, #ff5fd2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.rv-chip-count {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 0.76rem;
  opacity: 0.82;
}

/* 후기 카드 그리드 */
.rv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rv-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-radius: 16px;
  background: var(--rv-surface);
  border: 1px solid var(--rv-border);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.rv-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--rv-c, #b487e8) 55%, transparent);
}

.rv-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rv-card-stars {
  color: var(--rv-gold);
  font-size: 0.9rem;
  font-family: var(--font-display);
}

.rv-card-stars .rv-star-svg {
  width: 15px;
  height: 15px;
}

html[data-theme="light"] .rv-card-stars {
  color: var(--rv-gold-ink);
}

.rv-card-body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 0.91rem;
  line-height: 1.62;
  color: var(--text-pure);
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rv-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--rv-border);
  font-size: 0.78rem;
  color: var(--text-muted, var(--text-sub));
}

.rv-card-author {
  font-weight: 600;
  color: var(--text-sub);
}

.rv-card-date {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}

.rv-home-foot {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   3. 서브 도메인 & 고민 살롱 미니 후기 배너 ([data-review-strip])
   ========================================================================== */
.rv-domain-strip {
  max-width: 860px;
  margin: 24px auto 8px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--rv-surface);
  border: 1px solid var(--rv-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.rv-domain-strip-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1 1 280px;
}

.rv-domain-strip-quote {
  font-family: var(--font-main);
  font-size: 0.88rem;
  color: var(--text-pure);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 440px;
}

/* ==========================================================================
   4. 통합 후기 게시판 모달 & 후기 작성 모달 (dialog.rv-dialog)
   ========================================================================== */
dialog.rv-dialog {
  width: min(760px, calc(100vw - 24px));
  max-height: min(86vh, 820px);
  margin: auto;
  padding: 0;
  border-radius: 22px;
  background: var(--rv-surface);
  color: var(--text-pure);
  border: 1px solid var(--rv-border-strong);
  box-shadow: var(--rv-shadow);
  overflow: hidden;
}

dialog.rv-dialog--write {
  width: min(540px, calc(100vw - 24px));
}

dialog.rv-dialog::backdrop {
  background: rgba(5, 2, 18, 0.72);
  backdrop-filter: blur(6px);
}

.rv-dialog-inner {
  display: flex;
  flex-direction: column;
  max-height: min(86vh, 820px);
}

.rv-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--rv-border);
  background: var(--rv-surface-inner);
}

.rv-dialog-title {
  margin: 0 0 4px;
  font-family: var(--font-main);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-pure);
}

.rv-dialog-sub {
  margin: 0;
  font-family: var(--font-main);
  font-size: 0.85rem;
  color: var(--text-sub);
  word-break: keep-all;
}

.rv-dialog-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--rv-border);
  background: transparent;
  color: var(--text-pure);
  font-size: 1.05rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rv-dialog-close:hover {
  border-color: var(--rv-border-strong);
}

.rv-dialog-body {
  padding: 18px 22px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rv-modal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rv-modal-item {
  padding: 15px 16px;
  border-radius: 14px;
  background: var(--rv-surface-inner);
  border: 1px solid var(--rv-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rv-modal-item-body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--text-pure);
  white-space: pre-wrap;
  word-break: keep-all;
}

/* 후기 작성 폼 */
.rv-form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rv-form-label {
  font-family: var(--font-main);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-pure);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rv-cat-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.rv-cat-option {
  padding: 9px 10px;
  border-radius: 12px;
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-sub);
  background: var(--rv-surface-inner);
  border: 1px solid var(--rv-border);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.rv-cat-option[aria-checked="true"] {
  color: var(--rv-ink, #ff8be0);
  background: var(--rv-bg, rgba(255, 95, 210, 0.18));
  border-color: var(--rv-c, #ff5fd2);
}

.rv-star-picker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.rv-star-track {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rv-star-slot {
  position: relative;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease;
}

.rv-star-slot:hover {
  transform: scale(1.08);
}

.rv-star-icon-host {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.rv-star-icon-host .rv-star-svg {
  width: 32px;
  height: 32px;
}

.rv-star-hit {
  position: absolute;
  top: 0;
  bottom: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.rv-star-hit--whole {
  left: 0;
  width: 100%;
}

.rv-star-hit--left {
  left: 0;
  width: 50%;
}

.rv-star-hit--right {
  right: 0;
  width: 50%;
}

.rv-star-hit:focus-visible {
  outline: 2px solid var(--neon-pink, #ff5fd2);
  outline-offset: 1px;
  border-radius: 6px;
}

.rv-star-controls {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.rv-star-step {
  min-width: 44px;
  height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--rv-border);
  background: var(--rv-surface-inner);
  color: var(--text-pure);
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.rv-star-step:hover:not(:disabled) {
  border-color: var(--rv-border-strong);
}

.rv-star-step:disabled {
  opacity: 0.38;
  cursor: default;
}

.rv-star-score-text {
  min-width: 66px;
  text-align: center;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-pure);
}

.rv-star-score-text.is-preview {
  color: var(--rv-star-fill);
}

.rv-textarea,
.rv-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--rv-surface-inner);
  border: 1px solid var(--rv-border);
  color: var(--text-pure);
  font-family: var(--font-main);
  font-size: 0.92rem;
  line-height: 1.55;
  resize: vertical;
}

.rv-textarea:focus,
.rv-input:focus {
  outline: none;
  border-color: var(--neon-pink, #ff5fd2);
}

.rv-char-counter {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  color: var(--text-sub);
}

.rv-char-counter.is-limit {
  color: #ff6b8b;
  font-weight: 700;
}

.rv-form-msg {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
}

.rv-form-msg.is-error {
  background: rgba(255, 77, 109, 0.14);
  border: 1px solid rgba(255, 77, 109, 0.42);
  color: #ff8fa3;
}

html[data-theme="light"] .rv-form-msg.is-error {
  color: #b41638;
}

.rv-form-msg.is-ok {
  background: rgba(0, 255, 163, 0.14);
  border: 1px solid rgba(0, 255, 163, 0.42);
  color: #4dffbe;
}

html[data-theme="light"] .rv-form-msg.is-ok {
  color: #006e45;
}

.rv-dialog-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--rv-border);
  background: var(--rv-surface-inner);
}

/* ==========================================================================
   5. 리포트 하단 인라인 이용 후기 섹션 박스 (.rv-report-box)
   ========================================================================== */
.rv-report-box {
  margin-top: 24px;
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--rv-surface);
  border: 1px solid var(--rv-border-strong);
  box-shadow: 0 12px 32px rgba(8, 3, 24, 0.24);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

html[data-theme="light"] .rv-report-box {
  box-shadow: 0 10px 28px rgba(58, 28, 108, 0.09);
}

.rv-report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.rv-report-head-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 280px;
}

.rv-report-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.rv-report-tier,
.rv-report-preview-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-sub);
  background: var(--rv-surface-inner);
  border: 1px solid var(--rv-border);
}

.rv-report-preview-pill {
  color: var(--neon-cyan, #00e5ff);
  border-color: color-mix(in srgb, var(--neon-cyan, #00e5ff) 45%, transparent);
}

html[data-theme="light"] .rv-report-preview-pill {
  color: #006b7a;
}

.rv-report-title {
  margin: 2px 0 0;
  font-family: var(--font-main);
  font-size: clamp(1.1rem, 2vw, 1.32rem);
  font-weight: 800;
  color: var(--text-pure);
  line-height: 1.35;
  word-break: keep-all;
}

.rv-report-sub {
  margin: 0;
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.6;
  word-break: keep-all;
  text-align: justify;
  text-align-last: start;
  text-justify: inter-word;
}

.rv-report-auth {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--rv-surface-inner);
  border: 1px solid var(--rv-border);
  font-family: var(--font-main);
  font-size: 0.88rem;
  color: var(--text-pure);
}

.rv-report-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rv-report-submit-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.rv-report-nick-wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rv-report-nick-label {
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-sub);
}

.rv-report-submit-btn {
  min-height: 46px;
  padding: 11px 22px;
  flex-shrink: 0;
}

.rv-report-done {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--rv-surface-inner);
  border: 1px solid rgba(0, 255, 163, 0.36);
}

html[data-theme="light"] .rv-report-done {
  border-color: rgba(0, 145, 92, 0.35);
}

.rv-report-done-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rv-report-done-title {
  font-family: var(--font-main);
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-pure);
}

.rv-report-featured-note {
  margin: 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 210, 76, 0.13);
  border: 1px solid rgba(255, 210, 76, 0.38);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffe38a;
  line-height: 1.5;
}

html[data-theme="light"] .rv-report-featured-note {
  background: rgba(198, 125, 0, 0.10);
  border-color: rgba(198, 125, 0, 0.32);
  color: #7c4d00;
}

.rv-report-done-body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--text-pure);
  white-space: pre-wrap;
  word-break: keep-all;
  text-align: justify;
  text-align-last: start;
  text-justify: inter-word;
}

.rv-report-done-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px dashed var(--rv-border);
}

/* ==========================================================================
   6. 반응형 및 모션 축소 대응
   ========================================================================== */
@media (max-width: 900px) {
  .rv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rv-hero-ticker {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
  }
  .rv-ticker-status {
    border-right: 0;
    padding-right: 0;
  }
  .rv-ticker-stage {
    order: 3;
    flex: 1 1 100%;
  }
}

@media (max-width: 599px) {
  .rv-grid {
    grid-template-columns: 1fr;
  }
  .rv-cat-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rv-summary-bar {
    padding: 14px 16px;
  }
  .rv-ticker-nick {
    display: none;
  }
  .rv-report-box {
    padding: 18px 16px;
    border-radius: 16px;
  }
  .rv-report-submit-row {
    flex-direction: column;
    align-items: stretch;
  }
  .rv-report-submit-btn {
    width: 100%;
  }
  .rv-star-slot {
    width: 34px;
    height: 36px;
  }
  .rv-star-icon-host,
  .rv-star-icon-host .rv-star-svg {
    width: 28px;
    height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rv-ticker-item-btn,
  .rv-card,
  .rv-btn,
  .rv-star-slot,
  .rv-star-step {
    transition: none !important;
  }
}
