@font-face {
  font-family: "Pretendard";
  src: url("/fonts/PretendardVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Noto Serif KR";
  src: url("/fonts/NotoSerifKR-VF.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --text-scale: 1;
  --bg: #ffffff;
  --surface: #f6f7f9;
  --surface-alt: #f1f3f5;
  --ink: #111827;
  --ink-2: #4b5563;
  --ink-3: #6b7280;
  --line: #e5e7eb;
  --accent: #9f1239;
  --accent-hover: #881337;
  --accent-soft: #fff1f2;
  --ok: #157a4c;
  --ok-soft: #edf7f1;
  --footer-bg: #0f172a;
  --footer-ink: #f8fafc;
  --footer-muted: #cbd5e1;
  --footer-line: #334155;
  --font-sans: "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --font-serif: "Noto Serif KR", "Batang", Georgia, serif;
  --radius-sm: 12px;
  --radius-lg: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: calc(18px * var(--text-scale, 1));
  background-color: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html.large-text-mode {
  --text-scale: 1.2;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--dc-fs-body, 18px);
  line-height: var(--dc-lh-body, 1.48);
  letter-spacing: -0.015em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
dl,
dt,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

[hidden],
.toast-popup[hidden],
.result-notice[hidden],
.empty-mascot-state[hidden],
.self-cs-workspace[hidden],
.modal-overlay[hidden] {
  display: none;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.num-tab {
  font-variant-numeric: tabular-nums;
}

.shell-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 상단 통합 헤더 */
.top-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--bg);
  border-bottom: 1px solid var(--line);
}

.top-header-inner {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.seal-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.brand-titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: calc(20px * var(--text-scale, 1));
  font-weight: 800;
  line-height: 1.2;
}

.brand-sub {
  font-size: calc(14px * var(--text-scale, 1));
  color: var(--ink-3);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 8px;
}

.nav-link {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background-color: transparent;
  color: var(--ink-2);
  font-size: calc(16px * var(--text-scale, 1));
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    color 150ms ease,
    transform 120ms ease;
}

.nav-link:hover {
  background-color: var(--surface);
  color: var(--ink);
}

.nav-link.is-current {
  background-color: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.header-auth-btn {
  min-height: 42px;
  padding: 6px 14px;
  font-size: calc(15px * var(--text-scale, 1));
  white-space: nowrap;
  flex-shrink: 0;
}

.header-auth-btn.is-member-signed-in {
  background-color: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.senior-assist-bar {
  border-top: 1px solid var(--line);
  background-color: var(--surface);
}

.senior-assist-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.assist-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--bg);
  color: var(--ink);
  font-size: calc(14px * var(--text-scale, 1));
  font-weight: 700;
  cursor: pointer;
}

.assist-btn.is-active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.assist-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* 버튼 공통 및 촉각 눌림 피드백 */
.btn-primary,
.btn-outline,
.filter-btn {
  cursor: pointer;
  transition:
    transform 120ms ease,
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.bottom-tab {
  cursor: pointer;
  transition: transform 120ms ease;
}

.btn-primary:active:not(:disabled),
.btn-outline:active:not(:disabled),
.nav-link:active:not(:disabled),
.filter-btn:active:not(:disabled),
.bottom-tab:active:not(:disabled) {
  transform: scale(0.985);
}

.btn-primary:focus-visible,
.btn-outline:focus-visible,
.nav-link:focus-visible,
.filter-btn:focus-visible,
.bottom-tab:focus-visible,
.field-input:focus-visible,
.field-select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  background-color: var(--accent);
  color: var(--bg);
  font-size: calc(18px * var(--text-scale, 1));
  font-weight: 700;
  text-decoration: none;
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background-color: var(--bg);
  color: var(--ink);
  font-size: calc(17px * var(--text-scale, 1));
  font-weight: 700;
  text-decoration: none;
}

.btn-outline:hover:not(:disabled) {
  background-color: var(--surface);
  border-color: var(--ink-3);
}

.btn-primary:disabled,
.btn-outline:disabled {
  background-color: var(--surface-alt);
  border-color: var(--line);
  color: var(--ink-3);
  cursor: not-allowed;
}

.danger-text-btn {
  color: var(--accent);
  border-color: var(--accent);
}

/* 본문 흐름 */
.main-flow {
  padding-top: 28px;
  padding-bottom: 104px;
  display: flex;
  flex-direction: column;
  gap: 52px;
}

/* 히어로 첫 화면 (주 행동 1개 집중 + 핵심 숫자 역전 해소) */
.hero-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.hero-copy-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-display {
  font-family: var(--font-serif);
  font-size: calc(30px * var(--text-scale, 1));
  font-weight: 800;
  color: var(--ink);
  max-width: 18em;
}

.hero-desc {
  font-size: calc(18px * var(--text-scale, 1));
  color: var(--ink-2);
  max-width: 34em;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 4px;
}

.text-action-link {
  color: var(--ink-2);
  font-size: calc(17px * var(--text-scale, 1));
  font-weight: 700;
  text-underline-offset: 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.text-action-link:hover {
  color: var(--ink);
}

.hero-metrics-col {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat-number {
  font-size: calc(38px * var(--text-scale, 1));
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
}

.hero-stat-caption {
  font-size: calc(16px * var(--text-scale, 1));
  color: var(--ink-2);
}

.hero-stat-divider {
  height: 1px;
  background-color: var(--line);
}

/* KSA 잡지 지면 문법: 2px 상단 기준선(.rule) + 좌측 폴리오(.folio) + 헤어라인(.hair) */
.editorial-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

#channel-media-salon {
  gap: 14px;
}

.rule {
  border-top: 2px solid var(--ink);
  padding-top: 16px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.folio {
  font-family: var(--font-serif);
  font-size: calc(24px * var(--text-scale, 1));
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.rule-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  flex: 1;
  min-width: 0;
}

.serif-heading {
  font-family: var(--font-serif);
  font-size: calc(26px * var(--text-scale, 1));
  font-weight: 800;
  color: var(--ink);
}

.serif-sub-heading {
  font-family: var(--font-serif);
  font-size: calc(23px * var(--text-scale, 1));
  font-weight: 800;
  color: var(--ink);
}

.sub-heading {
  font-size: calc(21px * var(--text-scale, 1));
  font-weight: 800;
  color: var(--ink);
}

.rule-meta {
  font-size: calc(16px * var(--text-scale, 1));
  color: var(--ink-2);
}

.body-note {
  font-size: calc(17px * var(--text-scale, 1));
  color: var(--ink-2);
  max-width: 44em;
}

.hair-top {
  border-top: 1px solid var(--line);
}

.hair {
  border-bottom: 1px solid var(--line);
}

/* 지면 01: 전광판 스플릿 레이아웃 + 수평 헤어라인 순위 원장 */
.lounge-split-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.leader-spotlight {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.leader-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.leader-rank-mark {
  font-family: var(--font-serif);
  font-size: calc(18px * var(--text-scale, 1));
  font-weight: 800;
  color: var(--accent);
}

.leader-color-swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: calc(15px * var(--text-scale, 1));
  color: var(--ink-2);
}

.swatch-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.leader-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.monogram-seal {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: calc(24px * var(--text-scale, 1));
  font-weight: 800;
  color: var(--bg);
  flex-shrink: 0;
}

.leader-name {
  font-size: calc(26px * var(--text-scale, 1));
  font-weight: 800;
}

.leader-votes-big {
  font-size: calc(42px * var(--text-scale, 1));
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
}

.leader-note {
  font-size: calc(17px * var(--text-scale, 1));
  color: var(--ink-2);
}

.leader-btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rank-ledger {
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.rank-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.rank-no {
  font-size: calc(18px * var(--text-scale, 1));
  font-weight: 800;
  color: var(--ink-2);
}

.rank-person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.monogram-sm {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: calc(18px * var(--text-scale, 1));
  font-weight: 800;
  color: var(--bg);
  flex-shrink: 0;
}

.rank-text-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rank-artist-name {
  font-size: calc(20px * var(--text-scale, 1));
  font-weight: 800;
  color: var(--ink);
}

.rank-slogan {
  font-size: calc(15px * var(--text-scale, 1));
  color: var(--ink-2);
}

.rank-score-col {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rank-votes-num {
  font-size: calc(24px * var(--text-scale, 1));
  font-weight: 800;
  color: var(--ink);
}

.artist-media-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  object-position: center 22%;
  background-color: var(--surface-alt);
  flex-shrink: 0;
}

.artist-media-thumb-lg {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center 22%;
  background-color: var(--surface-alt);
  flex-shrink: 0;
}

/* 지면 01: 가수별 방송 감상실 및 실시간 트롯 소식 (피클 AI T-1, T-7, T-9 위반 0건 준수) */
.salon-artist-strip {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 6px;
  gap: 8px;
}

.salon-artist-tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--bg);
  color: var(--ink-2);
  font-size: calc(15px * var(--text-scale, 1));
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 120ms ease;
}

.salon-artist-tab:hover {
  background-color: var(--surface);
  color: var(--ink);
}

.salon-artist-tab.is-selected {
  background-color: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.salon-artist-tab-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  object-position: center 20%;
  flex-shrink: 0;
}

.salon-artist-tab-img.is-right-portrait,
.artist-media-thumb.is-right-portrait,
.artist-media-thumb-lg.is-right-portrait {
  object-position: 82% 18%;
}

.salon-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.theater-stage {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.theater-media-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  background-color: var(--footer-bg);
  overflow: hidden;
  position: relative;
}

.theater-poster-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.theater-poster-img.is-portrait-cover {
  object-fit: contain;
}

.theater-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.theater-meta-line {
  font-size: calc(15px * var(--text-scale, 1));
  font-weight: 700;
  color: var(--accent);
}

.theater-title {
  font-family: var(--font-serif);
  font-size: calc(23px * var(--text-scale, 1));
  font-weight: 800;
  color: var(--ink);
}

.theater-summary {
  font-size: calc(17px * var(--text-scale, 1));
  color: var(--ink-2);
}

.salon-ledger-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.salon-sub-gap {
  margin-top: 12px;
}

.episode-ledger,
.news-ledger {
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.episode-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.episode-thumb-box {
  width: 112px;
  height: 64px;
  border-radius: 8px;
  background-color: var(--footer-bg);
  overflow: hidden;
}

.episode-thumb-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 22%;
}

.episode-thumb-img.is-portrait-cover {
  object-fit: contain;
}

.episode-info-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.episode-row-title {
  font-size: calc(17px * var(--text-scale, 1));
  font-weight: 800;
  color: var(--ink);
}

.episode-row-meta {
  font-size: calc(14px * var(--text-scale, 1));
  color: var(--ink-3);
}

.news-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.news-row-link {
  font-size: calc(17px * var(--text-scale, 1));
  font-weight: 800;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-row-link:hover {
  color: var(--accent);
}

.playlist-shelf {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
}

.playlist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.playlist-link-row {
  background-color: var(--surface);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: var(--ink);
}

.playlist-link-row:hover {
  background-color: var(--surface-alt);
}

.playlist-link-title {
  font-size: calc(17px * var(--text-scale, 1));
  font-weight: 800;
  color: var(--ink);
}

.karaoke-external-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.own-radio-box,
.broadcast-companion-box {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.own-radio-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.radio-channel-tabs,
.guide-view-tabs,
.coordi-code-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.radio-player-status {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.radio-now-title {
  font-size: calc(18px * var(--text-scale, 1));
  font-weight: 800;
  color: var(--ink);
}

.radio-track-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.radio-track-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background-color: transparent;
  color: var(--ink-2);
  font-size: calc(16px * var(--text-scale, 1));
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.radio-track-btn.is-playing {
  color: var(--accent);
}

.approved-artists-shelf {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.approved-artist-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.legal-terms-drawer {
  border-top: 1px solid var(--line);
  padding-top: 6px;
}

.app-shell {
  max-width: 640px;
  margin: 24px auto;
}

.own-radio-audio {
  width: 100%;
  min-height: 44px;
}

.live-companion-card {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.live-cheer-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.live-cheer-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.live-cheer-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: calc(16px * var(--text-scale, 1));
}

.carrier-selector-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
}

.broadcast-guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.broadcast-guide-row {
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.channel-number-big {
  font-size: calc(24px * var(--text-scale, 1));
  font-weight: 800;
  color: var(--accent);
}

.festival-shelf {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
}

.coordi-bridge-banner {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.coordi-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  font-size: calc(20px * var(--text-scale, 1));
}

.product-entry.is-coordi-highlighted {
  border: 2px solid var(--accent);
}

.rank-btn-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-compact {
  min-height: 46px;
  padding: 8px 14px;
  font-size: calc(16px * var(--text-scale, 1));
}

/* 사은 응원권 평면 바 */
.coupon-bar {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quiet-coupon-drawer {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.quiet-coupon-summary {
  font-size: calc(15px * var(--text-scale, 1));
  font-weight: 700;
  color: var(--ink-3);
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.quiet-coupon-summary:hover {
  color: var(--ink);
}

.quiet-coupon-drawer[open] .coupon-bar {
  margin-top: 12px;
}

.coupon-bar-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.status-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: calc(16px * var(--text-scale, 1));
  font-weight: 700;
  color: var(--ink-2);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--ok);
}

.coupon-inline-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: end;
}

/* 지면 02: 선행 나눔 온도계 */
.thermo-overview {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.thermo-primary-figures {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.giant-figure {
  display: block;
  font-size: calc(40px * var(--text-scale, 1));
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
}

.figure-label {
  font-size: calc(16px * var(--text-scale, 1));
  color: var(--ink-2);
  margin-top: 4px;
}

.gauge-rail {
  width: 100%;
  height: 16px;
  background-color: var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.gauge-fill {
  width: 100%;
  height: 100%;
  background-color: var(--accent);
  transform-origin: left center;
  transform: scaleX(0.06);
  transition: transform 280ms ease;
}

.breakdown-row {
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: calc(18px * var(--text-scale, 1));
}

.breakdown-row dt {
  color: var(--ink-2);
}

.breakdown-row dd {
  font-size: calc(22px * var(--text-scale, 1));
  font-weight: 800;
  color: var(--ink);
}

.poll-ledger-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.poll-rows {
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.poll-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
}

.poll-title {
  font-size: calc(20px * var(--text-scale, 1));
  font-weight: 800;
}

.poll-desc {
  font-size: calc(16px * var(--text-scale, 1));
  color: var(--ink-2);
  margin-top: 4px;
}

.poll-Action-col {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.poll-count-num {
  font-size: calc(22px * var(--text-scale, 1));
  font-weight: 800;
}

/* 지면 03: 상점 좌측 분류 + 우측 Subgrid 카탈로그 */
.store-workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.store-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-heading {
  font-size: calc(18px * var(--text-scale, 1));
  font-weight: 800;
  color: var(--ink);
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  min-height: 46px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background-color: var(--bg);
  color: var(--ink-2);
  font-size: calc(16px * var(--text-scale, 1));
  font-weight: 700;
}

.filter-btn.is-selected {
  background-color: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.sidebar-guide {
  font-size: calc(15px * var(--text-scale, 1));
  color: var(--ink-3);
}

.catalog-subgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.product-entry {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  background-color: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.product-photo-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--surface);
}

.product-photo-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-card-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.store-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.store-search-field {
  flex: 1 1 280px;
}

.hero-member-strip {
  margin-top: 4px;
}

.inline-text-cta {
  border: 0;
  background: transparent;
  padding: 0 4px;
  color: var(--accent);
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.member-benefit-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background-color: var(--surface);
  border-radius: var(--radius-sm);
}

.benefit-bullet-list {
  margin: 8px 0 14px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: calc(16px * var(--text-scale, 1));
  color: var(--ink-2);
}

.auth-benefits-strip {
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.member-wallet-box,
.member-favorites-box {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.coupon-wallet-row,
.favorite-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.carrier-oneline-strip {
  padding: 10px 14px;
  background-color: var(--surface);
  border-radius: var(--radius-sm);
  font-size: calc(15px * var(--text-scale, 1));
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}

.schedule-controls-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.schedule-search-field {
  max-width: 420px;
}

.schedule-compact-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.schedule-compact-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.product-visual-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.product-illus {
  width: 44px;
  height: 44px;
  color: var(--ink);
}

.product-meta-line {
  font-size: calc(15px * var(--text-scale, 1));
  font-weight: 700;
  color: var(--ink-2);
}

.product-entry-title {
  font-size: calc(21px * var(--text-scale, 1));
  font-weight: 800;
  color: var(--ink);
}

.product-entry-desc {
  font-size: calc(16px * var(--text-scale, 1));
  color: var(--ink-2);
}

.product-price-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 8px;
}

.product-price-big {
  font-size: calc(30px * var(--text-scale, 1));
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
}

.product-reward-caption {
  font-size: calc(15px * var(--text-scale, 1));
  color: var(--ok);
  font-weight: 700;
}

/* 3줄 간편 주문 시트 및 입력 폼 */
.order-sheet,
.cs-desk {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row-two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: calc(17px * var(--text-scale, 1));
  font-weight: 700;
  color: var(--ink);
  min-width: 0;
}

.field-input,
.field-select {
  width: 100%;
  min-height: 54px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ink-3);
  background-color: var(--bg);
  color: var(--ink);
  font-size: calc(18px * var(--text-scale, 1));
}

.qty-stepper {
  display: grid;
  grid-template-columns: 1fr 84px 1fr;
  gap: 8px;
}

.qty-number {
  text-align: center;
  font-weight: 800;
}

.qty-step-btn {
  padding: 8px 10px;
  font-size: calc(16px * var(--text-scale, 1));
}

.order-total-strip {
  background-color: var(--surface);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: calc(18px * var(--text-scale, 1));
  font-weight: 700;
  color: var(--ink);
}

.legal-inline-note {
  font-size: calc(15px * var(--text-scale, 1));
  color: var(--ink-3);
}

.order-submit-btn {
  min-height: 58px;
  font-size: calc(20px * var(--text-scale, 1));
}

.result-notice {
  background-color: var(--ok-soft);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: calc(17px * var(--text-scale, 1));
}

/* 지면 04: 무인 셀프 CS 및 캐릭터 빈 상태 */
.empty-mascot-state {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.mascot-svg {
  width: 52px;
  height: 52px;
}

.mascot-reason {
  font-size: calc(18px * var(--text-scale, 1));
  font-weight: 800;
  color: var(--ink);
}

.recent-orders-rows,
.admin-ledger-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.recent-order-row,
.admin-order-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-wrap-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.self-cs-workspace {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.operator-drawer {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.operator-summary {
  font-size: calc(17px * var(--text-scale, 1));
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.operator-body {
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 모바일 하단 고정 5탭 네이티브 앱 바 */
.mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background-color: var(--bg);
  border-top: 1px solid var(--line);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
}

.bottom-tab {
  min-height: 54px;
  padding: 4px 2px;
  border: 0;
  border-radius: var(--radius-sm);
  background-color: transparent;
  color: var(--ink-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: calc(14px * var(--text-scale, 1));
  font-weight: 700;
}

.bottom-tab.is-current {
  color: var(--accent);
  background-color: var(--accent-soft);
}

.tab-icon {
  width: 22px;
  height: 22px;
}

/* 부유 요소: 모달 및 토스트 (유일한 그림자 허용 대상, 불투명도 6%) */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background-color: rgba(17, 24, 39, 0.58);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-dialog {
  width: 100%;
  max-width: 520px;
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-campaign-sheet {
  background-color: var(--surface);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.campaign-body {
  font-size: calc(18px * var(--text-scale, 1));
  color: var(--ink);
}

.modal-timer-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: calc(17px * var(--text-scale, 1));
  color: var(--ink-2);
}

.giant-inline-num {
  font-size: calc(32px * var(--text-scale, 1));
  font-weight: 800;
  color: var(--ink);
}

.modal-btn-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-modal-dialog {
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 14px;
}

.auth-tab-btn {
  min-height: 48px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background-color: var(--bg);
  color: var(--ink-2);
  font-size: calc(17px * var(--text-scale, 1));
  font-weight: 700;
  cursor: pointer;
}

.auth-tab-btn.is-selected {
  background-color: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.auth-check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  background-color: var(--surface);
  border-radius: var(--radius-sm);
}

.auth-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: calc(16px * var(--text-scale, 1));
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.auth-check-input {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.toast-popup {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 75;
  width: calc(100% - 32px);
  max-width: 640px;
  background-color: var(--ink);
  color: var(--bg);
  border: 1px solid var(--footer-line);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
  padding: 14px 18px;
  font-size: calc(17px * var(--text-scale, 1));
  font-weight: 700;
}

.toast-popup.is-error {
  background-color: var(--accent);
  border-color: var(--accent);
}

/* 최하단 단일 어두운 구조 밴드 푸터 */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-ink);
  padding: 44px 0 108px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.footer-title {
  font-family: var(--font-serif);
  font-size: calc(21px * var(--text-scale, 1));
  font-weight: 800;
  margin-bottom: 10px;
}

.footer-sub-title {
  font-size: calc(18px * var(--text-scale, 1));
  font-weight: 800;
  margin-bottom: 10px;
}

.footer-legal-copy {
  font-size: calc(15px * var(--text-scale, 1));
  line-height: 1.55;
  color: var(--footer-muted);
  white-space: pre-line;
}

.footer-dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.footer-dl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: calc(15px * var(--text-scale, 1));
  padding-bottom: 6px;
  border-bottom: 1px solid var(--footer-line);
}

.footer-dl-row dt {
  color: var(--footer-muted);
  min-width: 110px;
}

.footer-dl-row dd {
  color: var(--footer-ink);
}

/* 5개 뷰 완전 분리: PC 및 모바일 모두 활성 탭 뷰 1개만 노출 */
.app-view:not(.is-active-view) {
  display: none;
}

body.force-app-mode .app-view:not(.is-active-view) {
  display: none;
}

/* 폴드 커버 등 초슬림 화면 (420px 이하) 가로 넘침 원천 차단 */
@media (max-width: 420px) {
  .brand-sub {
    display: none;
  }

  .brand-name {
    font-size: calc(18px * var(--text-scale, 1));
  }

  .header-auth-btn {
    min-height: 38px;
    padding: 6px 10px;
    font-size: calc(14px * var(--text-scale, 1));
  }
}

@media (max-width: 360px) {
  .shell-wrap {
    padding: 0 14px;
  }

  .hero-display {
    font-size: calc(25px * var(--text-scale, 1));
  }

  .qty-stepper {
    grid-template-columns: 1fr 68px 1fr;
  }

  .bottom-tab {
    font-size: clamp(13px, calc(13px * var(--text-scale, 1)), 16px);
  }
}

/* 태블릿, 폴드 메인(1136x432), PC(1440x900), DeX(1620x1080) 반응형 웹 확장 */
@media (min-width: 769px) {
  .shell-wrap {
    padding: 0 32px;
  }

  .desktop-nav {
    display: flex;
  }

  .mobile-bottom-nav {
    display: none;
  }

  .main-flow {
    padding-top: 28px;
    padding-bottom: 56px;
    gap: 40px;
  }

  .site-footer {
    padding-bottom: 56px;
  }

  .hero-stage {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
    align-items: center;
    gap: 36px;
  }

  .hero-display {
    font-size: calc(38px * var(--text-scale, 1));
  }

  .lounge-split-layout {
    grid-template-columns: minmax(310px, 380px) minmax(0, 1fr);
    gap: 32px;
  }

  .salon-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 28px;
  }

  .playlist-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .broadcast-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-row {
    grid-template-columns: 44px minmax(180px, 1.5fr) auto auto;
    gap: 16px;
  }

  .rank-score-col {
    grid-column: auto;
    display: contents;
  }

  .coupon-inline-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  }

  .thermo-primary-figures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poll-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
  }

  .store-workspace {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 32px;
  }

  .store-sidebar .filter-list {
    flex-direction: column;
  }

  .store-sidebar .filter-btn {
    justify-content: flex-start;
    text-align: left;
  }

  .ranking-toolbar .field-select {
    width: auto;
    flex: 0 1 220px;
  }

  .ranking-toolbar .field-input {
    width: auto;
    flex: 1 1 240px;
  }

  .catalog-subgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .product-entry {
    min-height: 100%;
  }

  .form-row-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 40px;
  }
}

@media (min-width: 1240px) {
  .catalog-subgrid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (min-width: 1560px) {
  .shell-wrap {
    max-width: 1400px;
  }
}

/* 갤럭시 폴드 메인 가로형 (1136x432): 상단 크롬 <= 54px 압축, 본문 >= 320px 확보 */
@media (min-width: 769px) and (max-height: 500px) {
  .top-header-inner {
    min-height: 50px;
  }

  .main-flow {
    padding-top: 16px;
    gap: 36px;
  }

  .hero-stage {
    padding-bottom: 18px;
    gap: 20px;
  }

  .hero-display {
    font-size: calc(28px * var(--text-scale, 1));
  }

  .hero-metrics-col {
    padding: 14px 16px;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .hero-stat-divider {
    width: 1px;
    height: 40px;
  }

  .hero-stat-number {
    font-size: calc(30px * var(--text-scale, 1));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn-primary,
  .btn-outline,
  .nav-link,
  .bottom-tab,
  .filter-pill,
  .gauge-fill,
  .charity-fill {
    animation: none;
    transition: none;
  }
}

.field-error-msg {
  font-size: calc(14px * var(--text-scale, 1));
  font-weight: 700;
  color: var(--accent);
}
[aria-invalid="true"] {
  border-color: var(--accent);
  background-color: var(--accent-soft);
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.footer-legal-btn {
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid var(--footer-line);
  border-radius: var(--radius-sm);
  background-color: transparent;
  color: var(--footer-ink);
  font-size: calc(14px * var(--text-scale, 1));
  font-weight: 700;
  cursor: pointer;
}
.ranking-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ranking-toolbar .field-select,
.ranking-toolbar .field-input {
  min-width: 0;
  max-width: 100%;
}
.otp-inline-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
}
.otp-inline-row .form-field {
  flex: 1 1 180px;
}
.editorial-ad-band {
  margin-top: 0;
  padding: 6px 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background-color: var(--surface);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
}
.editorial-ad-copy {
  flex: 1 1 260px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  min-width: 0;
}
.editorial-ad-meta {
  font-size: calc(12px * var(--text-scale, 1));
  font-weight: 700;
  color: var(--ink-3);
}
.editorial-ad-headline {
  font-size: calc(15px * var(--text-scale, 1));
  font-weight: 800;
  color: var(--ink);
}
.editorial-ad-body {
  display: none;
}
.reward-partner-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background-color: var(--surface);
}
.reward-partner-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
button,
input,
select,
textarea {
  scroll-margin-top: 130px;
  scroll-margin-bottom: 96px;
}
[hidden],
.editorial-ad-band[hidden],
.reward-partner-actions[hidden],
.member-benefit-strip[hidden],
.approved-artists-shelf[hidden],
.cs-desk[hidden],
.otp-inline-row[hidden],
.toast-popup[hidden],
.result-notice[hidden],
.empty-mascot-state[hidden],
.self-cs-workspace[hidden],
.modal-overlay[hidden] {
  display: none;
}
