@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.css');
:root {
  --ink: #17151a;
  --muted: #756f78;
  --line: #e8e1dd;
  --paper: #fffaf3;
  --rose: #d44d66;
  --wine: #8f2948;
  --gold: #c9a15a;
  --shadow: 0 32px 90px rgba(23, 21, 26, 0.16);
  --soft-shadow: 0 12px 32px rgba(23, 21, 26, 0.08);
  --card-radius: 18px;
  --font-serif: 'Pretendard Variable', Georgia, "Times New Roman", serif;
  --font-display: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", 'Pretendard Variable', "Segoe UI", sans-serif;
}

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", 'Pretendard Variable', "Segoe UI", sans-serif;
  background:
    radial-gradient(ellipse at 12% 8%, rgba(201, 161, 90, 0.12), transparent 32%),
    radial-gradient(ellipse at 92% 4%, rgba(212, 77, 102, 0.09), transparent 30%),
    linear-gradient(160deg, #f6f0e8 0%, #eee7df 100%);
}

/* ── Typography ── */
h1, h2, h3, h4, p { margin-top: 0; }

h1 {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: var(--fw-bold);
  line-height: 1.08;
  letter-spacing: -0.02em;
  word-break: keep-all;
  margin-bottom: 18px;
}

h2 {
  font-size: var(--text-display);
  line-height: 1.12;
  margin-bottom: 14px;
}

h3 {
  font-size: var(--text-lg);
  line-height: 1.25;
  margin-bottom: 10px;
}

h4 {
  font-size: var(--text-md);
  line-height: 1.3;
  margin-bottom: 6px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--rose);
  font-family: var(--font-display);
  font-size: var(--text-2xs);
  font-style: normal;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
}

.count {
  margin: 0 0 10px;
  color: var(--rose);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Shell ── */
.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  gap: 16px;
  height: 100vh;
  padding: 20px;
  align-items: start;
  overflow: hidden;
}

.quiz-panel,
.insight-panel {
  border: 1px solid rgba(83, 35, 55, 0.11);
  border-radius: 24px;
  background: rgba(255, 253, 249, 0.93);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.quiz-panel {
  height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 28px 32px 36px;
}

.insight-panel {
  padding: 24px;
  position: sticky;
  top: 0;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

/* ── Top bar ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
  position: sticky;
  top: 0;
  z-index: 24;
  transform: translateY(0);
  transition: transform 220ms ease, box-shadow 180ms ease, border-color 180ms ease;
  will-change: transform;
}

.topbar.gnb-hidden {
  transform: translateY(-110%);
}

.topbar.gnb-elevated {
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.08);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  min-height: 36px;
}

.topbar-brand:active {
  opacity: 0.72;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  color: var(--wine);
  letter-spacing: -0.01em;
}

.brand-sep { color: var(--line); }

.brand-sub {
  color: var(--muted);
  font-size: var(--text-sm);
}

.wallet {
  flex: 0 0 auto;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(83, 35, 55, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  padding: 8px 12px;
  text-align: right;
}

.wallet span {
  color: var(--muted);
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
}

.wallet strong {
  color: var(--wine);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  line-height: 1;
}

.auth-entry {
  flex: 0 0 auto;
  display: grid;
  gap: 2px;
  min-width: 74px;
  padding: 7px 10px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  text-align: center;
}

.auth-entry span {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  line-height: 1.1;
}

.auth-entry strong {
  color: var(--muted);
  font-size: var(--text-2xs);
  font-weight: var(--fw-semibold);
  line-height: 1.1;
}

.auth-entry.verified strong {
  color: var(--accent);
}

/* ── Progress ── */
.progress {
  height: 3px;
  margin: 18px 0 26px;
  overflow: hidden;
  border-radius: 999px;
  background: #ede0e5;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  transition: width 280ms ease;
}

/* ── Screens ── */
.screen { display: none; }
.screen.active { display: block; }

/* ════════════════ INTRO ════════════════ */
.hero {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 32px;
  align-items: center;
  margin-bottom: 44px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), rgba(185, 133, 69, 0.3));
  margin-bottom: 14px;
}

.hero-desc {
  color: var(--muted);
  font-size: var(--text-md);
  line-height: 1.72;
  max-width: 400px;
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.hero-stats {
  display: flex;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.earn-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(83, 35, 55, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  margin-top: 18px;
  padding: 10px;
}

.earn-strip button {
  min-height: 36px;
  border-radius: 999px;
  background: #fff;
  color: var(--wine);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  padding: 0 12px;
  box-shadow: 0 6px 14px rgba(83, 35, 55, 0.08);
}

.earn-strip span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 20px;
}

.stat:first-child { padding-left: 0; }

.stat strong {
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  color: var(--ink);
}

.stat span {
  font-size: var(--text-2xs);
  color: var(--muted);
}

.stat-sep {
  width: 1px;
  height: 30px;
  background: var(--line);
  flex-shrink: 0;
}

/* Hero Visual */
.hero-visual {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 12px;
  align-items: start;
}

.hero-main-cover {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 28px 64px rgba(45, 30, 40, 0.26);
  aspect-ratio: 3/4;
}

.hero-main-cover > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: coverBreath 7s ease-in-out infinite;
}

.hero-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(15, 8, 18, 0.76) 0%,
    rgba(15, 8, 18, 0.08) 52%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  gap: 14px;
}

.hero-cover-info .eyebrow {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 6px;
}

.hero-cover-info strong {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hero-meta span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
  padding: 4px 8px;
}

.hero-peek-btn {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-radius: 10px;
  color: var(--wine);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  padding: 9px 14px;
  min-height: 0;
  cursor: pointer;
  transition: background 160ms, transform 160ms;
}

.hero-peek-btn:hover {
  background: #fff;
  transform: translateY(-1px);
}

.hero-side-covers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
}

.side-cover {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: 0 8px 22px rgba(45, 30, 40, 0.2);
  cursor: pointer;
  transition: transform 300ms ease;
}

.side-cover:hover { transform: scale(1.04); }

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

.side-cover span {
  position: absolute;
  top: 6px;
  right: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--wine);
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
  padding: 3px 6px;
}

/* Genre Strip */
.genre-strip {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.genre-strip-label {
  margin-bottom: 12px;
}

.genre-scroll {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.genre-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(45, 30, 40, 0.14);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.genre-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(45, 30, 40, 0.22);
}

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

.genre-card span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 8px 8px;
  background: linear-gradient(0deg, rgba(15, 8, 18, 0.68), transparent);
  color: #fff;
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
  text-align: center;
}

/* ── Buttons ── */
button {
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-weight: var(--fw-bold);
  padding: 0 20px;
  min-height: 46px;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

button:hover { transform: translateY(-1px); }
button:disabled { cursor: wait; opacity: 0.6; transform: none; }

.primary {
  background: linear-gradient(135deg, var(--wine) 0%, #7a3347 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(83, 35, 55, 0.24);
}

.primary.large {
  min-height: 52px;
  font-size: var(--text-md);
  padding: 0 28px;
}

.ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

/* ════════════════ QUIZ ════════════════ */
.answers {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.answer {
  position: relative;
  width: 100%;
  min-height: 70px;
  border: 1px solid rgba(83, 35, 55, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-size: var(--text-md);
  line-height: 1.4;
  padding: 0 20px 0 24px;
  text-align: left;
  box-shadow: var(--soft-shadow);
  overflow: hidden;
  transition: border-color 200ms, background 200ms, transform 200ms ease, box-shadow 200ms;
}

.answer::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--wine), var(--gold));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 220ms ease;
  border-radius: 0 2px 2px 0;
}

.answer:hover {
  border-color: rgba(83, 35, 55, 0.28);
  background: rgba(255, 255, 255, 0.97);
  transform: translateX(6px);
  box-shadow: 0 16px 40px rgba(45, 30, 40, 0.12);
}

.answer:hover::before {
  transform: scaleY(1);
}

/* ════════════════ RESULT ════════════════ */
.result-hero {
  padding: 24px 0 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.result-hero h2 {
  font-family: var(--font-serif);
  font-size: var(--text-display);
  font-weight: var(--fw-bold);
  line-height: 1.1;
  color: var(--wine);
  margin-bottom: 12px;
  word-break: keep-all;
}

.result-summary {
  color: var(--muted);
  font-size: var(--text-md);
  line-height: 1.72;
  max-width: 700px;
  margin-bottom: 16px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tags span {
  border-radius: 999px;
  background: rgba(83, 35, 55, 0.05);
  border: 1px solid rgba(83, 35, 55, 0.14);
  color: var(--wine);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  padding: 5px 10px;
}

/* Preview Split */
.preview-split {
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 32px;
}

.preview-img-col {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(45, 30, 40, 0.2);
  aspect-ratio: 3/4;
  flex-shrink: 0;
}

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

.preview-text-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.preview-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-meta-row .eyebrow { margin-bottom: 0; }

.meta-pill {
  flex: 0 0 auto;
  border: 1px solid rgba(83, 35, 55, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--wine);
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
  padding: 4px 10px;
}

.scene-block {
  border-left: 2px solid var(--gold);
  padding-left: 14px;
}

.scene-label {
  display: block;
  color: var(--muted);
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.scene {
  color: var(--ink);
  font-size: var(--text-md);
  line-height: 1.68;
  margin: 0;
}

.reader {
  position: relative;
  border: 1px solid rgba(83, 35, 55, 0.08);
  border-radius: 14px;
  background: linear-gradient(160deg, #fffaf4, #fff8f0);
  padding: 28px 24px 24px;
  font-family: var(--font-serif);
  font-size: var(--text-md);
  line-height: 2;
  color: var(--ink);
  max-height: 340px;
  overflow: auto;
}

.reader::before {
  content: "\201C";
  position: absolute;
  top: -4px;
  left: 14px;
  font-family: var(--font-display);
  font-size: var(--text-display);
  line-height: 1;
  color: rgba(185, 133, 69, 0.18);
  font-style: italic;
  pointer-events: none;
}

.reader p { margin: 0 0 12px; }
.reader p:last-child { margin-bottom: 0; }

/* Recommendations */
.recommendations {
  margin-bottom: 24px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

/* ── Book Cards ── */
.book-card {
  border: 1px solid rgba(83, 35, 55, 0.09);
  border-radius: var(--card-radius);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  transition: transform 300ms ease, box-shadow 300ms ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.book-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 20%,
    rgba(255, 255, 255, 0.07) 50%,
    transparent 80%
  );
  background-size: 300% 300%;
  background-position: 0% 0%;
  opacity: 0;
  transition: opacity 300ms, background-position 600ms ease;
  pointer-events: none;
  border-radius: var(--card-radius);
  z-index: 5;
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(45, 30, 40, 0.2);
}

.book-card:hover::after {
  opacity: 1;
  background-position: 100% 100%;
}

.book-cover {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #1c1320;
}

.book-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
  transition: transform 500ms ease;
}

.book-card:hover .book-cover img { transform: scale(1.055); }

.book-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(0deg, rgba(12, 7, 15, 0.7) 0%, rgba(12, 7, 15, 0.04) 54%, transparent 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.2), transparent 22%);
  pointer-events: none;
}

.cover-spine {
  position: absolute;
  inset: 0 auto 0 0;
  width: 16px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.26), rgba(255, 255, 255, 0.04));
  pointer-events: none;
  z-index: 2;
}

.cover-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 3;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--wine);
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
  padding: 4px 8px;
}

.cover-copy {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 14px 16px 14px;
  display: grid;
  gap: 4px;
}

.cover-copy span {
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.cover-copy strong {
  color: #fff;
  font-family: var(--font-serif);
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  line-height: 1.12;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.32);
}

.cover-copy small {
  color: rgba(255, 255, 255, 0.45);
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.book-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.book-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.book-topline span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
}

.book-topline strong {
  color: var(--wine);
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
}

.book-body h4 { margin: 0; }

.book-body p {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.62;
  margin: 0;
  flex: 1;
}

.book-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.book-tags span {
  border-radius: 999px;
  background: rgba(83, 35, 55, 0.05);
  border: 1px solid rgba(83, 35, 55, 0.1);
  color: var(--wine);
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
  padding: 4px 8px;
}

.book-body button {
  width: 100%;
  min-height: 38px;
  font-size: var(--text-sm);
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: var(--fw-bold);
  margin-top: 2px;
}

.book-body button:hover { background: #2d2330; transform: none; }

.book-body button.episode-lock-btn {
  background: linear-gradient(100deg, var(--wine), #9d4158);
  box-shadow: 0 10px 22px rgba(83, 35, 55, 0.18);
}

.book-body button.episode-lock-btn:hover {
  background: linear-gradient(100deg, #3f1c2b, #7f3046);
}

/* ── Checkout ── */
.checkout {
  border: 1px solid rgba(83, 35, 55, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  padding: 24px;
  box-shadow: var(--soft-shadow);
  margin-bottom: 20px;
}

.checkout-header {
  margin-bottom: 18px;
}

.checkout-header h3 {
  font-size: var(--text-lg);
  margin-bottom: 0;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.plan {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-height: 104px;
  border: 1.5px solid rgba(83, 35, 55, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms, background 160ms, transform 160ms;
}

.plan:hover {
  transform: translateY(-2px);
  border-color: rgba(83, 35, 55, 0.35);
}

.plan.active {
  border-color: var(--wine);
  background: rgba(83, 35, 55, 0.04);
}

.plan-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-name {
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  color: var(--ink);
}

.plan-desc {
  font-size: var(--text-xs);
  color: var(--muted);
  font-weight: var(--fw-medium);
}

.plan-price {
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--wine);
  margin-top: auto;
  display: block;
}

.plan-badge {
  border-radius: 999px;
  background: var(--wine);
  color: #fff;
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
  padding: 2px 7px;
  letter-spacing: 0.02em;
}

.trust-bar {
  display: flex;
  gap: 20px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.trust-bar span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
}

.pay-row { margin-bottom: 10px; }

.pay-btn {
  width: 100%;
  min-height: 52px;
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  border-radius: 14px;
  background: linear-gradient(
    100deg,
    var(--wine) 0%,
    #7a3347 40%,
    #9a3d58 60%,
    var(--wine) 100%
  );
  background-size: 250% 100%;
  background-position: 0% center;
  color: #fff;
  box-shadow: 0 12px 32px rgba(83, 35, 55, 0.3), 0 2px 8px rgba(83, 35, 55, 0.2);
  letter-spacing: -0.01em;
  animation: btnShimmer 4s ease infinite;
}

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

.pay-btn:hover {
  box-shadow: 0 18px 44px rgba(83, 35, 55, 0.36), 0 4px 12px rgba(83, 35, 55, 0.22);
  background-position: 100% center;
}

.pay-btn:disabled {
  opacity: 0.65;
  transform: none;
  animation: none;
}

.checkout-msg {
  color: var(--muted);
  font-size: var(--text-sm);
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

/* ── Unlocked ── */
.unlocked {
  border: 1px solid rgba(83, 35, 55, 0.13);
  border-radius: 20px;
  background: rgba(255, 253, 249, 0.9);
  padding: 20px 24px;
  box-shadow: var(--soft-shadow);
  margin-bottom: 20px;
}

.unlocked-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.unlocked-book {
  border: 1px solid rgba(83, 35, 55, 0.1);
  border-radius: var(--card-radius);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  display: flex;
  flex-direction: column;
}

.unlocked-cover {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

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

.unlocked-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 10, 16, 0.48), rgba(15, 10, 16, 0.04));
}

.unlocked-cover span {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--wine);
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
  padding: 5px 10px;
}

.unlocked-book .book-body button {
  background: linear-gradient(135deg, var(--wine), #7a3347);
}

.receipt-badge {
  flex: 0 0 auto;
  border: 1px solid rgba(83, 35, 55, 0.14);
  border-radius: 999px;
  background: rgba(83, 35, 55, 0.05);
  color: var(--wine);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  padding: 6px 12px;
}

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

.result-actions {
  justify-content: flex-end;
  padding-top: 4px;
}

/* ── Insight Panel ── */
.insight-panel h2 {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  line-height: 1.3;
  margin-bottom: 16px;
}

.featured-mini {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: end;
  overflow: hidden;
  border: 1px solid rgba(83, 35, 55, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--soft-shadow);
  padding: 12px;
  margin-bottom: 18px;
}

.featured-mini img {
  width: 80px;
  aspect-ratio: 3/4.2;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(45, 30, 40, 0.18);
}

.featured-mini-info .eyebrow {
  font-size: var(--text-2xs);
}

.featured-mini-info strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
}

.featured-mini-info p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--text-xs);
}

.revenue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.revenue-grid div {
  border: 1px solid rgba(83, 35, 55, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
  padding: 11px 13px;
}

.revenue-grid span {
  display: block;
  color: var(--muted);
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
  margin-bottom: 4px;
}

.revenue-grid strong {
  color: var(--wine);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
}

.metric {
  border: 1px solid rgba(83, 35, 55, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.7);
  padding: 13px 16px;
  margin-bottom: 14px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  margin-bottom: 5px;
}

.metric strong {
  display: block;
  color: var(--wine);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
}

.side-note {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.68;
  margin: 0;
}

/* ── Animation ── */
@keyframes coverBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.016); }
}

/* ════════════════ RESPONSIVE ════════════════ */
@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .hero {
    grid-template-columns: 1fr 440px;
  }
}

@media (max-width: 960px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding: 14px;
    height: auto;
    overflow: visible;
  }

  .quiz-panel {
    height: auto;
    min-height: calc(100vh - 28px);
    overflow-y: visible;
    padding: 22px 20px 28px;
  }

  .insight-panel {
    position: static;
    max-height: none;
    overflow-y: visible;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 32px;
  }

  .hero-visual {
    grid-template-columns: 1fr 80px;
    max-width: 420px;
  }

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

  .preview-split {
    grid-template-columns: 220px 1fr;
    gap: 20px;
  }

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

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

@media (max-width: 680px) {
  .hero-side-covers { display: none; }
  .hero-visual { grid-template-columns: 1fr; }

  .preview-split {
    grid-template-columns: 1fr;
  }

  .preview-img-col {
    aspect-ratio: 4/3;
    max-height: 260px;
  }

  .book-grid,
  .unlocked-grid {
    grid-template-columns: 1fr;
  }

  .plan-grid {
    grid-template-columns: 1fr;
  }

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

  .trust-bar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .result-actions {
    justify-content: stretch;
  }

  .result-actions button { flex: 1; }
}

@media (max-width: 480px) {
  .app-shell {
    padding: 10px;
    gap: 10px;
  }

  .quiz-panel,
  .insight-panel {
    border-radius: 18px;
    padding: 18px;
  }

  h1 { font-size: var(--text-display); }

  .hero-stats {
    flex-wrap: wrap;
    gap: 12px;
  }

  .stat-sep { display: none; }
  .stat { padding: 0; }
}

@media (max-width: 380px) {
  .app-shell { padding: 0; gap: 0; }
  .quiz-panel, .insight-panel { border-radius: 0; box-shadow: none; }
}

/* ── Reader page ── */
.reader-page-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 32px 18px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 10;
}

.reader-back {
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 180ms, color 180ms;
}
.reader-back:hover { border-color: var(--wine); color: var(--wine); }

.reader-page-title {
  flex: 1;
  min-width: 0;
}
.reader-page-title .eyebrow { margin-bottom: 2px; }
.reader-page-title strong {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.novel-body {
  max-width: 580px;
  margin: 0 auto;
  padding: 40px 32px 60px;
  font-family: var(--font-serif);
  font-size: var(--text-md);
  line-height: 2.15;
  color: var(--ink);
}
.novel-body p {
  margin: 0 0 1.6em;
  word-break: keep-all;
}
.novel-body p:last-child { margin-bottom: 0; }

.reader-paywall {
  max-width: 580px;
  margin: 0 auto 60px;
  padding: 32px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(83,35,55,0.05), rgba(185,133,69,0.05));
  border: 1px solid rgba(83,35,55,0.1);
  text-align: center;
}
.reader-paywall[hidden] { display: none; }
.reader-paywall p {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  color: var(--wine);
  margin: 0 0 6px;
}
.reader-paywall span {
  display: block;
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: 20px;
}
.reader-paywall button {
  background: linear-gradient(100deg, var(--wine), #7a3347);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  cursor: pointer;
  transition: opacity 200ms;
}
.reader-paywall button:hover { opacity: 0.88; }

.reader-next-block {
  max-width: 580px;
  margin: -22px auto 46px;
  padding: 18px 22px;
  border: 1px solid rgba(83, 35, 55, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.reader-next-block[hidden] { display: none; }

.reader-next-block strong {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--text-md);
  color: var(--ink);
  margin-bottom: 4px;
}

.reader-next-block span {
  display: block;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
}

.reader-next-block button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(100deg, var(--wine), #9d4158);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(83, 35, 55, 0.18);
}

/* ── Chapter comments ── */
.chapter-comments {
  max-width: 580px;
  margin: 0 auto 60px;
  padding: 0 32px 40px;
  border-top: 1px solid var(--line);
}

.comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 18px;
}
.comments-header h4 {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  margin: 0;
  color: var(--ink);
}
.comments-header h4 span {
  color: var(--rose);
  font-size: var(--text-sm);
  margin-left: 6px;
}

.comment-sort {
  display: flex;
  gap: 6px;
}
.sort-btn {
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 150ms, color 150ms, background 150ms;
}
.sort-btn.active {
  border-color: var(--wine);
  color: var(--wine);
  background: rgba(83, 35, 55, 0.05);
}

/* ── Credit dialog ── */
.credit-dialog[hidden] { display: none; }

.credit-dialog {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
}

.credit-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 13, 18, 0.46);
  backdrop-filter: blur(8px);
}

.credit-dialog-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  border-radius: 22px;
  background: #fffdf9;
  border: 1px solid rgba(83, 35, 55, 0.16);
  box-shadow: 0 36px 90px rgba(25, 21, 29, 0.28);
  padding: 28px;
}

.credit-dialog-card h3 {
  font-family: var(--font-display);
  color: var(--wine);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  letter-spacing: 0;
  margin-bottom: 10px;
}

.credit-dialog-card p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(83, 35, 55, 0.12);
  border-radius: 50%;
  background: #fff;
  color: var(--wine);
  font-size: var(--text-lg);
  cursor: pointer;
}

.dialog-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(83, 35, 55, 0.06);
}

.dialog-balance span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
}

.dialog-balance strong {
  color: var(--wine);
  font-size: var(--text-lg);
}

.dialog-actions {
  display: grid;
  gap: 9px;
}

.dialog-actions button {
  width: 100%;
  min-height: 44px;
  border-radius: 999px;
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.dialog-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.dialog-primary {
  border: none;
  background: linear-gradient(100deg, var(--wine), #9d4158);
  color: #fff;
}

.dialog-secondary {
  border: 1px solid rgba(83, 35, 55, 0.16);
  background: rgba(185, 133, 69, 0.12);
  color: var(--wine);
}

.dialog-ghost {
  border: 1px solid rgba(83, 35, 55, 0.13);
  background: #fff;
  color: var(--muted);
}

.comment-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}
.comment-input-row input {
  flex: 1;
  padding: 11px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: var(--text-base);
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 180ms;
}
.comment-input-row input:focus { border-color: var(--wine); }
.comment-input-row input::placeholder { color: #bbb; }
.comment-input-row button {
  padding: 11px 20px;
  background: var(--wine);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 180ms;
}
.comment-input-row button:hover { opacity: 0.85; }

.comment-list { display: flex; flex-direction: column; gap: 0; }

.comment-item {
  padding: 16px 0;
  border-bottom: 1px solid rgba(231, 223, 228, 0.6);
}
.comment-item:last-child { border-bottom: none; }

.comment-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}
.comment-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--wine), var(--rose));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
  color: #fff;
  flex-shrink: 0;
}
.comment-nick {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--ink);
}
.comment-time {
  font-size: var(--text-2xs);
  color: #bbb;
  margin-left: auto;
}
.comment-new-badge {
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
  color: var(--rose);
  background: rgba(189, 75, 103, 0.1);
  border-radius: 4px;
  padding: 2px 6px;
}

.comment-text {
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 10px;
  word-break: keep-all;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.comment-like {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: var(--text-xs);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 150ms, color 150ms, background 150ms;
}
.comment-like.liked {
  border-color: var(--rose);
  color: var(--rose);
  background: rgba(189, 75, 103, 0.06);
}
.comment-like:hover:not(.liked) { border-color: var(--muted); }

/* ── Chapter button & expanded reader ── */
.chapter-btn {
  display: block;
  margin-top: 16px;
  width: 100%;
  padding: 12px 0;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--wine);
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: border-color 200ms, background 200ms;
}
.chapter-btn:hover {
  border-color: var(--wine);
  background: rgba(83, 35, 55, 0.04);
}
.reader.expanded {
  max-height: none;
  overflow: visible;
}

/* ── Type-specific image tinting ── */
[data-type="rival"] .book-cover::after {
  background:
    linear-gradient(0deg, rgba(20, 30, 60, 0.72) 0%, rgba(20, 30, 60, 0.05) 54%, transparent 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 22%);
}
[data-type="rival"] .preview-img-col img { filter: contrast(1.06) saturate(0.9); }

[data-type="devoted"] .book-cover::after {
  background:
    linear-gradient(0deg, rgba(40, 18, 38, 0.74) 0%, rgba(40, 18, 38, 0.05) 54%, transparent 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 22%);
}
[data-type="devoted"] .preview-img-col img { filter: brightness(0.97) saturate(0.88); }

[data-type="possessive"] .book-cover::after {
  background:
    linear-gradient(0deg, rgba(10, 5, 14, 0.85) 0%, rgba(10, 5, 14, 0.06) 54%, transparent 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.3), transparent 22%);
}
[data-type="possessive"] .preview-img-col img { filter: contrast(1.1) saturate(0.8) brightness(0.94); }

[data-type="contract"] .book-cover::after {
  background:
    linear-gradient(0deg, rgba(45, 25, 10, 0.78) 0%, rgba(45, 25, 10, 0.04) 54%, transparent 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.2), transparent 22%);
}
[data-type="contract"] .preview-img-col img { filter: contrast(1.04) saturate(1.08); }

[data-type="royal"] .book-cover::after {
  background:
    linear-gradient(0deg, rgba(18, 8, 45, 0.82) 0%, rgba(18, 8, 45, 0.05) 54%, transparent 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.25), transparent 22%);
}
[data-type="royal"] .preview-img-col img { filter: contrast(1.05) hue-rotate(12deg) saturate(0.92); }

[data-type="slow"] .book-cover::after {
  background:
    linear-gradient(0deg, rgba(42, 26, 14, 0.76) 0%, rgba(42, 26, 14, 0.05) 54%, transparent 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 22%);
}
[data-type="slow"] .preview-img-col img { filter: sepia(0.18) saturate(0.9) brightness(0.98); }

/* ════════════════ INTERACTIVE STORY ════════════════ */

/* Intro teaser button */
.interactive-teaser-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 18px;
  background: none;
  border: 1.5px solid rgba(139, 60, 90, 0.3);
  border-radius: 999px;
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--rose);
  cursor: pointer;
  transition: all 0.2s;
}
.interactive-teaser-btn:hover {
  background: rgba(139, 60, 90, 0.06);
  border-color: var(--rose);
}
.interactive-new {
  background: var(--rose);
  color: #fff;
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 999px;
}
.interactive-arrow { opacity: 0.6; }

/* Screen layout */
.interactive-body {
  max-width: 580px;
  margin: 0 auto;
  padding: 36px 0 100px;
}

/* Story text */
.story-segment {
  animation: fadeSlideIn 0.45s ease both;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.story-para {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  line-height: 2.15;
  color: var(--ink);
  margin: 0 0 1.55em;
}
.story-para em {
  font-style: italic;
  color: var(--rose);
}
.story-divider {
  text-align: center;
  color: var(--muted);
  margin: 36px 0;
  font-size: var(--text-md);
  letter-spacing: 10px;
  opacity: 0.45;
}
.story-divider::before { content: '· · ·'; }

/* Choice UI */
.choice-container {
  margin: 40px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: rgba(139, 60, 90, 0.04);
  border-radius: 18px;
  border: 1.5px solid rgba(139, 60, 90, 0.15);
}
.choice-prompt {
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 10px;
}
.choice-btn {
  background: #fff;
  border: 2px solid rgba(139, 60, 90, 0.2);
  border-radius: 12px;
  padding: 16px 20px 16px 48px;
  font-family: var(--font-serif);
  font-size: var(--text-md);
  line-height: 1.65;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: all 0.18s;
  position: relative;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.choice-btn::before {
  content: attr(data-index);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(139, 60, 90, 0.1);
  color: var(--rose);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  font-family: sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}
.choice-btn:not(:disabled):hover {
  border-color: var(--rose);
  background: rgba(139, 60, 90, 0.04);
  color: var(--rose);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 60, 90, 0.12);
}
.choice-btn:not(:disabled):hover::before {
  background: var(--rose);
  color: #fff;
}
.choice-btn.chosen {
  border-color: var(--rose);
  background: rgba(139, 60, 90, 0.06);
  color: var(--rose);
  font-weight: var(--fw-semibold);
}
.choice-btn.chosen::before {
  background: var(--rose);
  color: #fff;
  content: '✓';
}
.choice-btn:disabled {
  cursor: default;
  opacity: 0.3;
}
.choice-btn.chosen:disabled {
  opacity: 1;
}

/* Ending card */
.ending-card {
  margin: 48px 0 0;
  padding: 32px;
  border-radius: 20px;
  border: 1.5px solid var(--line);
  background: rgba(255, 253, 249, 0.7);
  animation: fadeSlideIn 0.5s ease both;
}
.ending-badge {
  display: inline-block;
  padding: 4px 13px;
  border-radius: 999px;
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.ending-badge.best  { background: #fdf0e0; color: #a05c1a; }
.ending-badge.happy { background: #ede8f7; color: #6b2d9a; }
.ending-badge.good  { background: #e0edf7; color: #1a5c9a; }
.ending-badge.bad   { background: #f0f0f0; color: #666; }

.ending-title-text {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--ink);
  margin: 0 0 6px;
}
.ending-desc-text {
  font-size: var(--text-base);
  color: var(--muted);
  margin: 0 0 24px;
  font-style: italic;
}
.ending-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.ending-action-btn {
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.18s;
}
.ending-action-btn:hover {
  border-color: var(--rose);
  color: var(--rose);
}
.ending-tracker {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ending-tracker-label {
  font-size: var(--text-xs);
  color: var(--muted);
  white-space: nowrap;
}
.ending-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}
.ending-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
  transition: all 0.3s;
}
.ending-dot.found.best  { background: #c97a2a; }
.ending-dot.found.happy { background: #8a4dba; }
.ending-dot.found.good  { background: #3a7dba; }
.ending-dot.found.bad   { background: #888; }

/* ════════════════ MOBILE WEBTOON APP OVERRIDE ════════════════ */
body {
  background: #e9e2da;
}

h1,
.brand-mark,
.eyebrow,
.cover-copy span,
.cover-copy small,
.count {
  letter-spacing: 0;
}

.app-shell {
  width: min(100%, 430px);
  min-height: 100dvh;
  height: auto;
  margin: 0 auto;
  padding: 0;
  display: block;
  overflow: visible;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(25, 21, 29, 0.06), 0 28px 80px rgba(25, 21, 29, 0.2);
}

.quiz-panel {
  min-height: 100dvh;
  height: auto;
  overflow: visible;
  padding: 0 0 36px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--paper);
  backdrop-filter: none;
}

.insight-panel {
  display: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 56px;
  margin: 0;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(23, 21, 26, 0.08);
  background: rgba(255, 253, 249, 0.96);
  backdrop-filter: blur(18px);
}

.brand-mark {
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
}

.brand-sep,
.brand-sub {
  display: none;
}

.wallet {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(23, 21, 26, 0.04);
}

.wallet span {
  font-size: var(--text-2xs);
}

.wallet strong {
  font-size: var(--text-md);
}

.progress {
  position: sticky;
  top: 52px;
  z-index: 19;
  height: 2px;
  margin: 0;
  border-radius: 0;
}

.screen {
  padding: 0 16px;
}

#intro.screen,
#result.screen,
#quiz.screen,
#reader.screen,
#interactive.screen,
#library.screen,
#creatorStudio.screen {
  padding: 0;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

.hero-visual {
  order: -1;
  display: block;
  width: 100%;
}

.hero-main-cover {
  border-radius: 0;
  aspect-ratio: 1 / 1.12;
  box-shadow: none;
}

.hero-main-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(255, 250, 243, 1), rgba(255, 250, 243, 0));
  z-index: 1;
  pointer-events: none;
}

.hero-cover-overlay {
  z-index: 2;
  padding: 22px 18px;
}

.hero-cover-info strong {
  font-size: var(--text-xl);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  letter-spacing: 0;
}

.hero-peek-btn {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  text-align: center;
}

.hero-side-covers {
  display: none;
}

.hero-content {
  padding: 18px 16px 0;
}

.hero-content::before,
.hero-content > .eyebrow {
  display: none;
}

h1 {
  font-size: var(--text-xl);
  line-height: 1.15;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  letter-spacing: 0;
}

.hero-desc {
  font-size: var(--text-base);
  line-height: 1.62;
  margin-bottom: 14px;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 14px;
}

button,
.primary.large {
  min-height: 44px;
  border-radius: 12px;
  font-size: var(--text-base);
}

.interactive-teaser-btn {
  width: 100%;
  margin: 0 0 12px;
  justify-content: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 14px 0 4px;
  border-top: 1px solid rgba(23, 21, 26, 0.08);
  border-bottom: 1px solid rgba(23, 21, 26, 0.08);
}

.stat {
  min-width: 0;
  padding: 0 8px 10px;
  border-radius: 0;
  background: transparent;
  border: 0;
  text-align: center;
}

.stat strong {
  display: block;
  color: var(--ink);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  line-height: 1.1;
  white-space: nowrap;
}

.stat span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
  line-height: 1.1;
  white-space: nowrap;
}

.stat-sep {
  display: none;
}

.hero-stats .stat + .stat {
  border-left: 1px solid rgba(23, 21, 26, 0.09);
}

.earn-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(143, 41, 72, 0.14);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7f2 0%, #fffdf8 100%);
}

.earn-strip span {
  min-width: 0;
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  line-height: 1.25;
  word-break: keep-all;
}

.earn-actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

.earn-strip button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(143, 41, 72, 0.16);
  color: var(--wine);
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
  box-shadow: none;
  white-space: nowrap;
}

.genre-strip {
  margin-top: 18px;
  padding: 18px 16px 24px;
  border-top: 8px solid #f2ebe3;
}

.genre-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.genre-scroll::-webkit-scrollbar {
  display: none;
}

.genre-card {
  flex: 0 0 86px;
  border-radius: 12px;
}

.result-hero {
  padding: 20px 16px 16px;
  margin: 0;
  border-bottom: 8px solid #f2ebe3;
}

.result-hero h2 {
  font-size: var(--text-xl);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  letter-spacing: 0;
}

.result-summary {
  font-size: var(--text-base);
  line-height: 1.62;
  margin-bottom: 12px;
}

.tags {
  gap: 6px;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;
}

.tags::-webkit-scrollbar {
  display: none;
}

.tags span {
  flex: 0 0 auto;
}

.preview-split {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 14px;
  margin: 0;
  padding: 18px 16px;
  border-bottom: 8px solid #f2ebe3;
}

.preview-img-col {
  border-radius: 12px;
  aspect-ratio: 3 / 4;
  max-height: none;
  box-shadow: 0 10px 24px rgba(25, 21, 29, 0.16);
}

.preview-text-col {
  gap: 9px;
}

.preview-meta-row {
  flex-wrap: wrap;
}

.preview-text-col h3 {
  font-size: var(--text-md);
  margin: 0;
}

.scene-block {
  display: none;
}

.reader {
  max-height: 178px;
  padding: 18px 16px;
  font-size: var(--text-base);
  line-height: 1.9;
  border-radius: 12px;
}

.reader.expanded {
  max-height: none;
}

.chapter-btn {
  width: 100%;
}

.recommendations {
  margin: 0;
  padding: 18px 0 0;
}

.section-head {
  align-items: center;
  margin: 0;
  padding: 0 16px 12px;
}

.section-head h3 {
  font-size: var(--text-lg);
}

.book-grid {
  display: block;
  border-top: 1px solid rgba(23, 21, 26, 0.08);
}

.book-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 15px 16px 16px;
  border: 0;
  border-bottom: 1px solid rgba(23, 21, 26, 0.08);
  border-radius: 0;
  box-shadow: none;
  background: #fffdf9;
}

.book-card:hover {
  transform: none;
  box-shadow: none;
}

.book-card::after {
  display: none;
}

.book-cover {
  width: 72px;
  border-radius: 8px;
  aspect-ratio: 3 / 4;
}

.cover-spine,
.cover-copy {
  display: none;
}

.cover-badge {
  top: 6px;
  right: 6px;
  font-size: var(--text-2xs);
  padding: 3px 6px;
}

.book-body {
  min-width: 0;
  padding: 0;
  gap: 7px;
}

.book-topline {
  min-width: 0;
}

.book-topline span {
  font-size: var(--text-2xs);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-topline strong {
  font-size: var(--text-sm);
  flex: 0 0 auto;
  text-align: right;
}

.book-body h4 {
  font-size: var(--text-md);
  line-height: 1.25;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  letter-spacing: 0;
}

.book-body p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.book-tags {
  display: none;
}

.book-body button {
  width: auto;
  align-self: flex-start;
  min-height: 32px;
  border-radius: 999px;
  padding: 0 14px;
  font-size: var(--text-xs);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.checkout,
.unlocked,
.action-row.result-actions {
  margin: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  box-shadow: none;
  padding: 20px 16px;
}

.checkout {
  border-top: 8px solid #f2ebe3;
}

.plan-grid {
  grid-template-columns: 1fr;
}

.reader-page-topbar {
  min-height: 56px;
  padding: 10px 14px;
  background: rgba(255, 253, 249, 0.97);
}

.reader-back {
  padding: 7px 11px;
}

.novel-body {
  max-width: none;
  padding: 28px 20px 42px;
  font-size: var(--text-md);
  line-height: 2.18;
}

.chapter-comments,
.reader-next-block {
  max-width: none;
}

.chapter-comments {
  margin: 0;
  padding: 0 16px 34px;
  border-top: 8px solid #f2ebe3;
}

.comments-header {
  padding: 18px 0 14px;
}

.comment-input-row {
  gap: 8px;
}

.reader-next-block {
  margin: 0 16px 34px;
  padding: 16px;
  border-radius: 16px;
  align-items: center;
}

.reader-next-block button {
  min-height: 40px;
  padding: 0 14px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.credit-dialog {
  align-items: end;
  padding: 0;
}

.credit-dialog-card {
  width: min(100%, 430px);
  border-radius: 24px 24px 0 0;
  padding: 28px 20px 22px;
}

.dialog-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0;
  line-height: 0;
}

.dialog-close::before,
.dialog-close::after {
  content: "";
  grid-area: 1 / 1;
  width: 17px;
  height: 3px;
  border-radius: 999px;
  background: var(--wine);
}

.dialog-close::before {
  transform: rotate(45deg);
}

.dialog-close::after {
  transform: rotate(-45deg);
}

@media (max-width: 430px) {
  .app-shell {
    width: 100%;
    box-shadow: none;
  }
}

/* ════════════════ FINAL BRAND SYSTEM PASS ════════════════ */
:root {
  --ink: #151318;
  --muted: #6e6972;
  --subtle: #9b949d;
  --line: #ebe6e1;
  --paper: #fffaf4;
  --surface: #ffffff;
  --wash: #f4eee8;
  --rose: #c93f5d;
  --wine: #9d2f50;
  --gold: #b8904d;
}

body {
  background: #ded8d1;
}

.app-shell {
  background: var(--paper);
}

.topbar {
  min-height: 54px;
  padding: 0 16px;
  background: rgba(255, 250, 244, 0.98);
  border-bottom: 1px solid rgba(21, 19, 24, 0.08);
}

.brand-mark {
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
}

.wallet {
  height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(21, 19, 24, 0.1);
  background: var(--surface);
}

.wallet span {
  color: var(--subtle);
  font-size: var(--text-2xs);
}

.wallet strong {
  color: var(--wine);
  font-size: var(--text-md);
}

.progress {
  top: 54px;
  background: transparent;
}

.progress span {
  background: var(--wine);
}

.hero-visual {
  padding: 10px 12px 0;
  background: var(--paper);
}

.hero-main-cover {
  border-radius: 18px;
  aspect-ratio: 1 / 1.12;
  overflow: hidden;
  background: #211b22;
}

.hero-cover-overlay {
  padding: 18px;
  background:
    linear-gradient(0deg, rgba(12, 10, 13, 0.82) 0%, rgba(12, 10, 13, 0.22) 55%, rgba(12, 10, 13, 0.02) 100%);
}

.hero-main-cover::after {
  display: none;
}

.hero-cover-info .eyebrow {
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
}

.hero-cover-info strong {
  font-size: var(--text-lg);
  line-height: 1.18;
}

.hero-meta span {
  border: 0;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: var(--text-2xs);
}

.hero-peek-btn {
  min-height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
}

.hero-content {
  padding: 20px 16px 0;
}

h1 {
  color: var(--ink);
  font-size: var(--text-xl);
  line-height: 1.22;
  font-weight: var(--fw-bold);
  word-break: keep-all;
}

.hero-desc {
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.65;
}

.hero-actions {
  gap: 8px;
}

.primary,
.book-body button.episode-lock-btn,
.dialog-primary,
.pay-btn {
  background: var(--wine);
  color: #fff;
  box-shadow: none;
}

.ghost,
.hero-actions .ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid rgba(21, 19, 24, 0.12);
}

.interactive-teaser-btn {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(157, 47, 80, 0.22);
  background: var(--surface);
  color: var(--wine);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
}

.interactive-new {
  background: var(--wine);
  color: #fff;
}

.hero-stats {
  margin-top: 2px;
  padding: 15px 0 13px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 0 8px;
}

.stat strong {
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
}

.stat span {
  color: var(--subtle);
  font-size: var(--text-2xs);
}

.earn-strip {
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(21, 19, 24, 0.08);
  background: var(--surface);
}

.earn-strip span {
  text-align: center;
  font-size: var(--text-sm);
}

.earn-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.earn-strip button {
  min-height: 34px;
  border-color: rgba(157, 47, 80, 0.18);
  background: #fbf7f4;
  color: var(--wine);
}

.genre-strip,
.result-hero,
.preview-split,
.checkout,
.chapter-comments {
  border-top-color: var(--wash);
  border-bottom-color: var(--wash);
}

.genre-card {
  flex-basis: 82px;
  box-shadow: none;
}

.genre-card span {
  font-size: var(--text-2xs);
}

.result-hero h2 {
  color: var(--ink);
  font-size: var(--text-xl);
}

.result-summary {
  color: var(--muted);
}

.tags span,
.meta-pill {
  border-color: rgba(21, 19, 24, 0.1);
  background: var(--surface);
  color: var(--muted);
}

.book-card {
  min-height: 138px;
  background: var(--paper);
  border-bottom-color: var(--line);
}

.book-cover {
  align-self: start;
  box-shadow: none;
}

.cover-badge {
  background: rgba(255, 255, 255, 0.94);
  color: var(--wine);
  border: 1px solid rgba(157, 47, 80, 0.18);
}

.book-topline span {
  color: var(--subtle);
  font-weight: var(--fw-bold);
}

.book-topline strong {
  color: var(--wine);
  font-weight: var(--fw-bold);
}

.book-body h4 {
  color: var(--ink);
  font-size: var(--text-md);
}

.book-body p {
  color: var(--muted);
}

.book-body button {
  min-height: 31px;
  background: #1c1a20;
  color: #fff;
}

.reader-page-topbar {
  min-height: 54px;
  padding: 0 14px;
  background: rgba(255, 250, 244, 0.98);
}

.reader-back {
  border-color: rgba(21, 19, 24, 0.1);
  background: var(--surface);
  color: var(--ink);
}

.novel-body {
  color: #262126;
}

.reader-next-block {
  border-color: rgba(21, 19, 24, 0.1);
  background: var(--surface);
  box-shadow: none;
}

.reader-next-block button {
  background: var(--wine);
}

.credit-dialog-card {
  background: var(--paper);
  border: 1px solid rgba(21, 19, 24, 0.12);
  box-shadow: 0 -18px 60px rgba(21, 19, 24, 0.18);
}

.credit-dialog-card h3 {
  color: var(--ink);
}

.dialog-balance {
  background: #f5efeb;
}

.dialog-balance strong {
  color: var(--wine);
}

.dialog-secondary {
  background: #f5eee7;
  color: var(--wine);
  border-color: rgba(157, 47, 80, 0.18);
}

.dialog-ghost {
  background: var(--surface);
  color: var(--muted);
}

.dialog-close {
  background: var(--surface);
  border-color: rgba(21, 19, 24, 0.12);
}

/* ════════════════ PRODUCT POLISH PASS ════════════════ */
:root {
  --ink: #17161a;
  --muted: #6f6b74;
  --subtle: #9b96a0;
  --line: #ece8e4;
  --paper: #fbfaf8;
  --surface: #ffffff;
  --wash: #f3f1ef;
  --rose: #d83d62;
  --wine: #a12f50;
  --gold: #b58b42;
  --font-serif: 'Pretendard Variable', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  --font-display: 'Pretendard Variable', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", sans-serif;
}

html {
  background: #d8d4cf;
}

body {
  background: linear-gradient(180deg, #d8d4cf 0%, #cfcac4 100%);
  font-family: var(--font-display);
  letter-spacing: 0;
}

button,
input {
  font-family: inherit;
}

.app-shell {
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(23, 22, 26, 0.08), 0 22px 70px rgba(23, 22, 26, 0.18);
}

.quiz-panel {
  background: var(--paper);
}

.topbar {
  height: 56px;
  min-height: 56px;
  padding: 0 16px;
  background: rgba(251, 250, 248, 0.96);
  border-bottom: 1px solid rgba(23, 22, 26, 0.08);
}

.topbar-brand {
  min-width: 0;
}

.brand-mark {
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  letter-spacing: 0;
}

.wallet {
  height: 32px;
  min-width: 108px;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(23, 22, 26, 0.09);
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 22, 26, 0.04);
}

.wallet span {
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
}

.wallet strong {
  min-width: 36px;
  text-align: right;
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
}

.progress {
  top: 56px;
}

.hero-visual {
  padding: 12px 12px 0;
}

.hero-main-cover {
  border-radius: 20px;
  aspect-ratio: 1 / 1.1;
  box-shadow: 0 16px 34px rgba(23, 22, 26, 0.14);
}

.hero-cover-overlay {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(14, 13, 17, 0.02) 0%, rgba(14, 13, 17, 0.12) 38%, rgba(14, 13, 17, 0.86) 100%);
}

.hero-cover-info .eyebrow {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
}

.hero-cover-info strong {
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  letter-spacing: 0;
}

.hero-meta {
  gap: 5px;
}

.hero-meta span {
  height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.17);
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
}

.hero-peek-btn {
  min-height: 44px;
  border-radius: 12px;
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
}

.hero-content {
  padding: 19px 16px 0;
}

h1 {
  margin-bottom: 9px;
  color: var(--ink);
  font-size: var(--text-xl);
  line-height: 1.22;
  font-weight: var(--fw-bold);
  letter-spacing: 0;
}

.hero-desc {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.65;
}

.hero-actions {
  gap: 8px;
}

.primary.large,
.ghost,
.hero-actions .ghost {
  height: 44px;
  min-height: 44px;
  border-radius: 12px;
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
}

.primary,
.primary.large,
.book-body button.episode-lock-btn,
.dialog-primary,
.pay-btn,
.reader-next-block button {
  background: #17161a;
  color: #fff;
  box-shadow: none;
}

.primary:hover,
.book-body button.episode-lock-btn:hover,
.dialog-primary:hover,
.pay-btn:hover,
.reader-next-block button:hover {
  background: #2a262d;
}

.ghost,
.hero-actions .ghost,
.dialog-ghost {
  border: 1px solid rgba(23, 22, 26, 0.12);
  background: #fff;
  color: var(--ink);
}

.interactive-teaser-btn {
  min-height: 40px;
  margin-bottom: 13px;
  padding: 0 14px;
  border-radius: 12px;
  border-color: rgba(216, 61, 98, 0.17);
  background: #fff;
  color: var(--wine);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
}

.interactive-new {
  height: 20px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-size: var(--text-2xs);
}

.hero-stats {
  margin-top: 0;
  padding: 14px 0 13px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-stats .stat {
  min-width: 0;
  padding: 0 8px;
  border-left: 1px solid var(--line);
  background: transparent;
}

.hero-stats .stat:first-child {
  border-left: 0;
}

.stat strong {
  font-size: var(--text-lg);
  line-height: 1.1;
  font-weight: var(--fw-bold);
}

.stat span {
  margin-top: 5px;
  color: var(--subtle);
  font-size: var(--text-2xs);
  line-height: 1.15;
  font-weight: var(--fw-bold);
}

.earn-strip {
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(23, 22, 26, 0.08);
  background: #fff;
}

.earn-strip span {
  display: block;
  width: 100%;
  min-width: 0;
  text-align: center;
  color: var(--ink);
  font-size: var(--text-sm);
  line-height: 1.25;
  font-weight: var(--fw-bold);
  overflow-wrap: anywhere;
}

.earn-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.earn-strip button {
  width: 100%;
  height: 34px;
  min-height: 34px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid rgba(216, 61, 98, 0.16);
  background: #fff7f5;
  color: var(--wine);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  white-space: nowrap;
}

.genre-strip,
.result-hero,
.preview-split,
.checkout,
.chapter-comments {
  border-top-color: var(--wash);
  border-bottom-color: var(--wash);
}

.genre-strip {
  margin-top: 18px;
  padding-top: 18px;
}

.genre-card {
  flex-basis: 82px;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.genre-card img {
  aspect-ratio: 3 / 4;
}

.genre-card span {
  min-height: 30px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  color: var(--ink);
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  text-align: center;
  word-break: keep-all;
}

.all-works {
  padding: 20px 16px 28px;
  border-top: 8px solid var(--wash);
  background: var(--paper);
}

.home-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.home-section-head h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.15;
  font-weight: var(--fw-bold);
  letter-spacing: 0;
}

.home-section-head .eyebrow {
  margin-bottom: 5px;
}

.home-section-head > span {
  flex: 0 0 auto;
  height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(23, 22, 26, 0.1);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
}

.work-list {
  display: grid;
  gap: 10px;
}

.work-row {
  width: 100%;
  min-height: 116px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 1px 2px rgba(23, 22, 26, 0.03);
}

.work-row img {
  width: 68px;
  aspect-ratio: 3 / 4;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  background: #ece8e4;
}

.work-info {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.work-info strong {
  color: var(--ink);
  font-size: var(--text-md);
  line-height: 1.24;
  font-weight: var(--fw-bold);
  word-break: keep-all;
}

.work-info em {
  color: var(--wine);
  font-size: var(--text-xs);
  font-style: normal;
  font-weight: var(--fw-bold);
}

.work-info small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.42;
  font-weight: var(--fw-bold);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.work-row b {
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #17161a;
  color: #fff;
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
}

.result-hero {
  background: var(--paper);
}

.result-hero h2,
.preview-text-col h3,
.section-head h3,
.checkout-header h3,
.book-body h4,
.reader-next-block strong,
.credit-dialog-card h3 {
  font-family: var(--font-display);
  letter-spacing: 0;
}

.result-hero h2 {
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
}

.result-summary {
  color: var(--muted);
  font-size: var(--text-base);
}

.tags span,
.meta-pill {
  height: 25px;
  display: inline-flex;
  align-items: center;
  border-color: rgba(23, 22, 26, 0.1);
  background: #fff;
  color: var(--muted);
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
}

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

.book-card {
  min-height: 136px;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.book-cover {
  width: 70px;
  border-radius: 9px;
  box-shadow: none;
}

.cover-badge {
  top: 6px;
  right: 6px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--wine);
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
}

.book-body {
  min-width: 0;
  gap: 6px;
}

.book-topline {
  min-width: 0;
  gap: 8px;
}

.book-topline span {
  min-width: 0;
  overflow: hidden;
  color: var(--subtle);
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-topline strong {
  flex: 0 0 auto;
  max-width: 96px;
  color: var(--wine);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-body h4 {
  color: var(--ink);
  font-size: var(--text-md);
  line-height: 1.28;
  font-weight: var(--fw-bold);
  word-break: keep-all;
}

.book-body p {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.48;
}

.book-body button {
  width: auto;
  max-width: 100%;
  height: 32px;
  min-height: 32px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 999px;
  background: #17161a;
  color: #fff;
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  line-height: 1;
  white-space: nowrap;
}

.checkout {
  background: #fff;
}

.plan-grid {
  gap: 8px;
}

.plan {
  min-height: 84px;
  border-radius: 14px;
  border: 1px solid rgba(23, 22, 26, 0.1);
  background: #fff;
  padding: 13px 14px;
}

.plan.active {
  border-color: rgba(216, 61, 98, 0.45);
  background: #fff7f5;
}

.plan-name {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
}

.plan-desc {
  color: var(--muted);
  font-size: var(--text-xs);
}

.plan-price {
  color: var(--wine);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
}

.trust-bar {
  justify-content: center;
  gap: 16px;
}

.pay-btn {
  min-height: 50px;
  border-radius: 13px;
  background: #17161a;
  font-size: var(--text-md);
  animation: none;
}

.reader-page-topbar {
  min-height: 56px;
  padding: 8px 14px;
}

.reader-back {
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: var(--text-xs);
}

.reader-page-title strong {
  font-size: var(--text-sm);
}

.novel-body {
  font-family: var(--font-display);
  color: #262328;
  font-size: var(--text-md);
  line-height: 2.12;
}

.chapter-comments {
  background: #fff;
}

.comment-input-row input,
.comment-input-row button {
  height: 42px;
  min-height: 42px;
  border-radius: 12px;
}

.reader-next-block {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  border: 1px solid rgba(23, 22, 26, 0.1);
  background: #fff;
  box-shadow: none;
}

.reader-next-block strong,
.reader-next-block span {
  min-width: 0;
  display: block;
}

.reader-next-block button {
  height: 40px;
  min-height: 40px;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
}

.credit-dialog-card {
  background: var(--paper);
  border: 1px solid rgba(23, 22, 26, 0.12);
  box-shadow: 0 -20px 60px rgba(23, 22, 26, 0.2);
}

.credit-dialog-card h3 {
  padding-right: 58px;
  color: var(--ink);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  line-height: 1.18;
}

.credit-dialog-card p {
  color: var(--muted);
}

.dialog-balance {
  border-radius: 14px;
  background: #f1eeee;
}

.dialog-balance span {
  font-weight: var(--fw-bold);
}

.dialog-balance strong {
  color: var(--wine);
  font-size: var(--text-xl);
}

.dialog-actions {
  gap: 10px;
}

.dialog-actions button {
  height: 46px;
  min-height: 46px;
  border-radius: 999px;
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
}

.dialog-secondary {
  border-color: rgba(216, 61, 98, 0.18);
  background: #fff2ef;
  color: var(--wine);
}

.dialog-close {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 22, 26, 0.1);
  border-radius: 999px;
  background: #fff;
  color: transparent;
  font-size: 0;
  line-height: 0;
  appearance: none;
}

.dialog-close::before,
.dialog-close::after {
  content: "";
  grid-area: 1 / 1;
  width: 17px;
  height: 3px;
  border-radius: 999px;
  background: var(--wine);
  transform-origin: center;
}

.dialog-close::before {
  transform: rotate(45deg);
}

.dialog-close::after {
  transform: rotate(-45deg);
}

@media (max-width: 360px) {
  .wallet {
    min-width: 96px;
    padding: 0 8px;
  }

  .wallet span {
    display: none;
  }

  .hero-content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .book-card {
    grid-template-columns: 64px minmax(0, 1fr);
    padding-left: 14px;
    padding-right: 14px;
  }

  .book-cover {
    width: 64px;
  }

  .reader-next-block {
    grid-template-columns: 1fr;
  }

  .reader-next-block button {
    width: 100%;
  }

  .work-row {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .work-row img {
    width: 60px;
  }

  .work-row b {
    grid-column: 2;
    justify-self: start;
  }
}

/* ════════════════ MOBILE CONTENT PLATFORM PASS ════════════════ */
:root {
  --ink: #19191d;
  --muted: #777780;
  --subtle: #a0a0a8;
  --line: #ececf0;
  --paper: #ffffff;
  --surface: #ffffff;
  --wash: #f5f5f7;
  --rose: #d9365f;
  --wine: #9f2d4e;
}

html,
body {
  background: #d7d7dc;
}

.app-shell,
.quiz-panel {
  background: #fff;
}

.topbar {
  height: 52px;
  min-height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid #ededf0;
  background: rgba(255, 255, 255, 0.98);
}

.brand-mark {
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
}

.wallet {
  min-width: 94px;
  height: 30px;
  border: 1px solid #e6e6ea;
  box-shadow: none;
}

.wallet span {
  display: none;
}

.wallet strong {
  min-width: auto;
  font-size: var(--text-base);
}

.progress {
  display: none;
}

#intro.screen {
  display: none;
  background: #fff;
}

#intro.screen.active {
  display: flex;
  flex-direction: column;
}

.home-tabs {
  order: 1;
  position: sticky;
  top: 52px;
  z-index: 18;
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 0 16px;
  border-bottom: 1px solid #ededf0;
  background: rgba(255, 255, 255, 0.98);
  scrollbar-width: none;
}

.home-tabs::-webkit-scrollbar {
  display: none;
}

.home-tabs button {
  min-height: 43px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #74747c;
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  white-space: nowrap;
}

.home-tabs button.active {
  color: #17171b;
  box-shadow: inset 0 -2px 0 #17171b;
}

.continue-reading {
  order: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  border-bottom: 8px solid var(--wash);
  background: #fff;
}

.continue-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.continue-copy span,
.continue-copy small {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
}

.continue-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.continue-reading button {
  flex: 0 0 auto;
  height: 34px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #17171b;
  color: #fff;
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
}

.reward-mini {
  order: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 8px solid var(--wash);
  background: #fff;
}

.reward-mini span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
}

.reward-mini button {
  height: 30px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #efcbd6;
  border-radius: 999px;
  background: #fff;
  color: var(--wine);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  white-space: nowrap;
}

.all-works {
  order: 4;
  padding: 18px 0 10px;
  border-top: 0;
  border-bottom: 8px solid var(--wash);
  background: #fff;
}

.home-section-head {
  align-items: center;
  margin: 0;
  padding: 0 16px 12px;
}

.home-section-head .eyebrow {
  display: none;
}

.home-section-head h2 {
  font-size: var(--text-lg);
}

.home-section-head > span {
  height: 26px;
  border-color: #e4e4e8;
  color: var(--muted);
  font-size: var(--text-2xs);
}

.work-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px 12px;
  scrollbar-width: none;
}

.work-filter::-webkit-scrollbar {
  display: none;
}

.work-filter button {
  height: 30px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #e6e6ea;
  border-radius: 999px;
  background: #fff;
  color: #6e6e76;
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
}

.work-filter button.active {
  border-color: #17171b;
  background: #17171b;
  color: #fff;
}

.work-list {
  gap: 0;
  border-top: 1px solid var(--line);
}

.work-row {
  min-height: 112px;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 13px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.work-row img {
  width: 64px;
  border-radius: 8px;
}

.work-info {
  gap: 4px;
}

.work-info strong {
  font-size: var(--text-md);
  line-height: 1.24;
}

.work-info em {
  color: #a62d50;
  font-size: var(--text-xs);
}

.work-info small {
  color: #73737b;
  font-size: var(--text-xs);
  line-height: 1.42;
}

.work-row b {
  height: 30px;
  min-width: 48px;
  padding: 0 11px;
  font-size: var(--text-xs);
}

.ranking-section {
  order: 5;
  padding: 18px 0 10px;
  border-bottom: 8px solid var(--wash);
  background: #fff;
}

.rank-row {
  width: 100%;
  min-height: 78px;
  display: grid;
  grid-template-columns: 24px 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.rank-num {
  color: #17171b;
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  text-align: center;
}

.rank-row img {
  width: 48px;
  aspect-ratio: 3 / 4;
  border-radius: 7px;
  object-fit: cover;
}

.rank-row strong,
.rank-row small {
  display: block;
}

.rank-row strong {
  overflow: hidden;
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
}

.rank-row b {
  color: #a62d50;
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  white-space: nowrap;
}

.hero {
  order: 6;
  display: none;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 13px;
  margin: 0;
  padding: 16px;
  border-bottom: 8px solid var(--wash);
  background: #fff;
}

.hero-visual {
  order: 0;
  padding: 0;
}

.hero-main-cover {
  width: 82px;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  box-shadow: none;
}

.hero-cover-overlay,
.hero-side-covers {
  display: none;
}

.hero-content {
  min-width: 0;
  padding: 0;
}

.hero-content > .eyebrow {
  display: block;
  margin-bottom: 3px;
  color: #a62d50;
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
}

h1 {
  margin: 0 0 6px;
  font-size: var(--text-lg);
  line-height: 1.24;
}

.hero-desc {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hero-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
}

.primary.large,
.ghost,
.hero-actions .ghost {
  height: 34px;
  min-height: 34px;
  border-radius: 999px;
  font-size: var(--text-xs);
}

.interactive-teaser-btn {
  height: 34px;
  min-height: 34px;
  margin: 9px 0 0;
  justify-content: flex-start;
  border-radius: 8px;
  font-size: var(--text-xs);
}

.hero-stats {
  display: none;
}

.earn-strip {
  margin-top: 9px;
  padding: 9px;
  border-radius: 8px;
  background: #fafafa;
}

.earn-strip span {
  font-size: var(--text-xs);
}

.earn-strip button {
  height: 30px;
  min-height: 30px;
  border-radius: 8px;
  font-size: var(--text-2xs);
}

.genre-strip {
  order: 7;
  margin-top: 0;
  padding: 18px 16px 22px;
  border-top: 0;
  border-bottom: 8px solid var(--wash);
  background: #fff;
}

.genre-strip-label {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  text-transform: none;
}

.genre-scroll {
  display: flex;
  grid-template-columns: none;
  gap: 8px;
  overflow-x: auto;
}

.genre-card {
  position: static;
  flex: 0 0 auto;
  aspect-ratio: auto;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
  transition: none;
}

.genre-card:hover {
  transform: none;
  box-shadow: none;
}

.genre-card img {
  display: none;
}

.genre-card span {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  background: transparent;
  color: var(--ink);
  font-size: var(--text-xs);
  padding: 0 14px;
}

.result-hero {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.result-hero .eyebrow {
  display: none;
}

.result-hero h2 {
  margin-bottom: 6px;
  font-size: var(--text-lg);
  line-height: 1.2;
}

.result-summary {
  margin-bottom: 10px;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.result-author {
  margin: -1px 0 8px;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  line-height: 1.35;
}

.result-nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.result-nav-actions button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
}

.result-nav-actions button:active {
  transform: translateY(1px);
}

.tags {
  gap: 6px;
}

.tags span,
.meta-pill {
  height: 24px;
  border-color: #e6e6ea;
  color: #66666e;
}

.preview-split {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 13px;
  padding: 14px 16px 16px;
  border-bottom: 8px solid var(--wash);
}

.preview-img-col {
  border-radius: 8px;
  box-shadow: none;
}

.preview-meta-row .eyebrow,
.scene-block {
  display: none;
}

.preview-text-col {
  gap: 8px;
}

.preview-text-col h3 {
  font-size: var(--text-md);
  line-height: 1.25;
}

.reader {
  max-height: 128px;
  padding: 12px;
  border: 1px solid #eeeeef;
  border-radius: 8px;
  background: #fafafa;
  font-size: var(--text-sm);
  line-height: 1.75;
}

.reader::before {
  display: none;
}

.chapter-btn {
  height: 36px;
  min-height: 36px;
  border-radius: 999px;
  font-size: var(--text-xs);
}

.recommendations {
  padding-top: 16px;
}

.section-head {
  padding: 0 16px 12px;
}

.section-head .eyebrow {
  display: none;
}

.section-head h3 {
  font-size: var(--text-lg);
}

.book-card {
  min-height: 118px;
  grid-template-columns: 58px minmax(0, 1fr);
  padding: 12px 16px;
  background: #fff;
}

.book-cover {
  width: 58px;
}

.book-body h4 {
  font-size: var(--text-md);
}

.book-body p {
  font-size: var(--text-xs);
  -webkit-line-clamp: 2;
}

.book-body button {
  height: 30px;
  min-height: 30px;
  font-size: var(--text-xs);
}

.checkout {
  padding: 16px;
  border-top: 8px solid var(--wash);
}

.checkout-header {
  margin-bottom: 12px;
}

.checkout-header .eyebrow {
  display: none;
}

.checkout-header h3 {
  font-size: var(--text-lg);
}

.trust-bar {
  justify-content: flex-start;
  gap: 12px;
  overflow-x: auto;
}

.action-row.result-actions {
  display: none;
}

/* ════════════════ BRAND BOARD + HOME VISUAL PASS ════════════════ */
:root {
  --ink: #17181d;
  --muted: #676b75;
  --subtle: #9aa0aa;
  --line: #e8ebf0;
  --paper: #ffffff;
  --surface: #ffffff;
  --wash: #f4f6f8;
  --accent: #2457d6;
  --accent-strong: #153b96;
  --accent-soft: #eef4ff;
  --credit: #08756f;
  --rose: var(--accent);
  --wine: var(--accent);
  --gold: #d59f2f;
}

html,
body {
  background: #d9dbe1;
  color: var(--ink);
  font-family: 'Pretendard Variable', "Apple SD Gothic Neo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body,
button,
input {
  font-synthesis-weight: none;
}

h1,
h2,
h3,
h4,
.brand-mark,
.wallet strong,
.home-section-head h2,
.work-info strong,
.rank-row strong,
.book-body h4,
.result-hero h2,
.preview-text-col h3,
.reader-page-title strong,
.dialog-card h3,
.chapter-comments h4,
.reader-next-block strong {
  font-weight: var(--fw-bold);
  letter-spacing: 0;
}

button,
.home-tabs button,
.continue-reading button,
.reward-mini span,
.reward-mini button,
.work-filter button,
.work-row b,
.rank-row b,
.tags span,
.meta-pill,
.chapter-btn,
.book-body button,
.dialog-close,
.plan,
.comment-input-row button,
.reader-next-block button {
  font-weight: var(--fw-bold);
}

.brand-mark {
  color: #111217;
  font-size: var(--text-md);
}

.brand-sub,
.wallet span {
  color: var(--muted);
}

.wallet {
  border-color: var(--line);
  background: #f9fafb;
}

.wallet strong {
  color: var(--accent);
}

.progress span,
.primary,
.checkout-btn,
.comment-input-row button,
.reader-next-block button,
.reader-paywall button,
.plan.primary-plan,
.dialog-action.primary {
  background: var(--accent);
  box-shadow: none;
}

.eyebrow,
.count,
.work-info em,
.rank-row b,
.book-topline strong,
.checkout-total strong,
.result-hero h2,
.reader-back:hover,
.meta-pill,
.tags span,
.dialog-kicker,
.interactive-new {
  color: var(--accent);
}

.topbar {
  border-bottom-color: var(--line);
}

.home-tabs {
  top: 52px;
  gap: 20px;
  border-bottom-color: var(--line);
  transition: top 220ms ease;
}

.app-shell.gnb-hidden .home-tabs {
  top: 0;
}

.home-tabs button {
  color: #69707c;
  font-size: var(--text-md);
}

.home-tabs button.active {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.home-tabs {
  display: none !important;
}

.featured-banner {
  order: 2;
  position: relative;
  display: block;
  min-height: auto;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  background: #111217;
  color: #fff;
  text-align: left;
  aspect-ratio: 430 / 300;
  border-bottom: 8px solid var(--wash);
  box-shadow: none;
}

.featured-banner:hover {
  transform: none;
}

.featured-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}

.featured-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 10, 16, 0.82) 0%, rgba(8, 10, 16, 0.48) 46%, rgba(8, 10, 16, 0.08) 100%),
    linear-gradient(0deg, rgba(8, 10, 16, 0.72) 0%, rgba(8, 10, 16, 0) 58%);
}

.featured-copy {
  position: absolute;
  left: 18px;
  right: 92px;
  bottom: 28px;
  display: grid;
  gap: 7px;
}

.featured-copy em {
  color: rgba(255, 255, 255, 0.76);
  font-size: var(--text-xs);
  font-style: normal;
  font-weight: var(--fw-semibold);
}

.featured-copy strong {
  color: #fff;
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  line-height: 1.16;
  word-break: keep-all;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.featured-copy small {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  line-height: 1.45;
  word-break: keep-all;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.featured-meta {
  position: absolute;
  left: 18px;
  bottom: 14px;
  color: rgba(255, 255, 255, 0.76);
  font-size: var(--text-2xs);
  font-weight: var(--fw-semibold);
}

.continue-reading {
  order: 3;
  border-bottom-color: var(--wash);
}

.continue-copy span,
.continue-copy small {
  font-weight: var(--fw-medium);
}

.continue-copy strong {
  font-weight: var(--fw-bold);
}

.continue-reading button {
  background: var(--ink);
}

.reward-mini {
  order: 4;
}

.reward-mini button {
  border-color: #d5e2ff;
  background: var(--accent-soft);
  color: var(--accent);
}

.reward-mini button#adHomeBtn {
  border-color: #cceae7;
  background: #ecfdfa;
  color: var(--credit);
}

.reward-ad-dialog[hidden] {
  display: none;
}

.reward-ad-dialog {
  position: fixed;
  inset: 0;
  z-index: 34;
  display: grid;
  place-items: center;
  padding: 22px;
}

.reward-ad-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 18, 23, 0.48);
  backdrop-filter: blur(8px);
}

.reward-ad-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 36px 90px rgba(17, 18, 23, 0.24);
  padding: 24px;
}

.reward-ad-card h3 {
  margin: 0 44px 14px 0;
  color: var(--ink);
  font-size: var(--text-lg);
  line-height: 1.25;
}

.mock-ad-screen {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(36, 87, 214, 0.12), rgba(8, 117, 111, 0.13)),
    #f7f9ff;
  border: 1px solid #dfe7ff;
  padding: 44px 18px 16px;
  min-height: 190px;
}

.ad-sponsored {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  min-width: 34px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
}

.mock-ad-screen strong {
  display: block;
  color: var(--ink);
  font-size: var(--text-lg);
  line-height: 1.25;
  margin-bottom: 8px;
}

.mock-ad-screen p {
  max-width: 260px;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.55;
  margin: 0 0 30px;
}

.ad-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(36, 87, 214, 0.14);
}

.ad-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 280ms ease;
}

#rewardAdTimer {
  display: block;
  margin-top: 10px;
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
}

.ad-revenue-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  margin: 14px 0;
  padding: 14px;
  border-radius: 16px;
  background: var(--wash);
}

.ad-revenue-row span {
  color: var(--muted);
  font-size: var(--text-xs);
}

.ad-revenue-row strong {
  color: var(--credit);
  font-size: var(--text-sm);
  text-align: right;
}

.reward-ad-card .dialog-primary:disabled {
  background: #d7dce7;
  color: #fff;
}

.auth-dialog[hidden] {
  display: none;
}

.auth-dialog {
  position: fixed;
  inset: 0;
  z-index: 38;
  display: grid;
  place-items: center;
  padding: 22px;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 18, 23, 0.52);
  backdrop-filter: blur(8px);
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(17, 18, 23, 0.22);
  padding: 26px 22px 22px;
}

.auth-card h3 {
  margin: 0 44px 8px 0;
  color: var(--ink);
  font-size: var(--text-lg);
  line-height: 1.25;
}

.auth-card > p {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.social-login-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 16px;
}

.social-login {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
}

.social-login span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
}

.social-login.google span {
  border: 1px solid #dfe3ea;
  color: #1f2937;
}

.social-login.kakao {
  border-color: #efe08a;
  background: #fff8cf;
}

.social-login.kakao span {
  background: #111;
  color: #fee500;
}

.social-login.naver {
  border-color: #b9e9ce;
  background: #f4fff8;
}

.social-login.naver span {
  background: #03c75a;
  color: #fff;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: var(--text-xs);
  margin: 14px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form label {
  display: grid;
  gap: 6px;
}

.auth-form label span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
}

.auth-form input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 13px;
  color: var(--ink);
  font-size: var(--text-base);
  outline: none;
}

.auth-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.auth-form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.auth-form-actions button,
.adult-verify-panel button {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
}

.auth-form-actions button:first-child {
  background: #fff;
  color: var(--accent);
}

.adult-verify-panel {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.adult-verify-panel > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.adult-verify-panel span {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
}

.adult-verify-panel strong {
  color: var(--muted);
  font-size: var(--text-sm);
}

.adult-verify-panel.verified strong {
  color: var(--accent);
}

.adult-verify-panel p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.5;
}

.adult-verify-panel button:disabled {
  border-color: #d7dce7;
  background: #d7dce7;
  color: #fff;
}

.creator-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 15px;
  border: 1px solid #e3e7ee;
  border-radius: 14px;
  background: #f7f8fa;
}

.creator-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.creator-panel-head div {
  display: grid;
  gap: 3px;
}

.creator-panel-head span,
.creator-revenue span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
}

.creator-panel-head strong {
  color: var(--ink);
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  line-height: 1.35;
}

.creator-panel-head em {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef2f7;
  color: #69707c;
  font-size: var(--text-2xs);
  font-style: normal;
  font-weight: var(--fw-bold);
}

.creator-panel-head em.active {
  background: #e8edf6;
  color: var(--text-secondary);
}

.creator-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.creator-flow span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #59606b;
  font-size: var(--text-2xs);
  font-weight: var(--fw-semibold);
  text-align: center;
}

.creator-revenue {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.creator-revenue div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.creator-revenue strong {
  color: var(--accent);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  line-height: 1;
}

.creator-panel p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.55;
}

.creator-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.creator-actions button {
  min-height: 38px;
  border: 1px solid var(--color-accent);
  border-radius: 10px;
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
}

.creator-actions button:nth-child(2) {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.creator-actions button:disabled {
  border-color: #e6eaf2;
  background: #e6eaf2;
  color: #8992a1;
}

.creator-published-shelf {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 8px solid #f2f4f8;
}

.auth-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: var(--text-2xs);
  line-height: 1.45;
}

.onboarding-flow[hidden] {
  display: none;
}

.onboarding-flow {
  position: fixed;
  inset: 0;
  z-index: 42;
  display: grid;
  place-items: center;
  background: rgba(247, 249, 255, 0.98);
}

.onboarding-screen {
  position: relative;
  display: none;
  width: min(430px, 100%);
  min-height: 100vh;
  padding: 86px 22px 26px;
  overflow-y: auto;
  background: #f8fafc;
}

.onboarding-screen.active {
  display: flex;
  flex-direction: column;
}

.onboarding-skip,
.onboarding-back {
  position: absolute;
  top: 54px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: var(--text-md);
  font-weight: var(--fw-semibold);
}

.onboarding-skip {
  right: 24px;
}

.onboarding-back {
  left: 22px;
  color: var(--ink);
  font-size: var(--text-lg);
}

.onboarding-copy {
  margin-bottom: 30px;
}

.onboarding-copy h2 {
  margin: 6px 0 12px;
  color: var(--ink);
  font-size: var(--text-xl);
  line-height: 1.22;
  word-break: keep-all;
}

.onboarding-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: var(--text-md);
  line-height: 1.55;
}

.taste-card-list {
  display: grid;
  gap: 14px;
}

.taste-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  min-height: 104px;
  padding: 16px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.taste-card.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 10px 24px rgba(36, 87, 214, 0.08);
}

.taste-icon {
  grid-row: 1 / 3;
  color: var(--accent);
  font-size: var(--text-display);
  font-weight: var(--fw-regular);
  line-height: 1;
}

.taste-card strong {
  justify-self: end;
  font-size: var(--text-lg);
}

.taste-card small {
  justify-self: end;
  color: var(--muted);
  font-size: var(--text-sm);
}

.genre-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
  padding-bottom: 24px;
}

.genre-chip-grid p {
  flex: 0 0 100%;
  margin: 14px 0 0;
  color: #6b7280;
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
}

.genre-chip-grid button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
}

.genre-chip-grid button.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.genre-chip-grid button.hot.active::after {
  content: "  HOT";
  color: #ff6b3d;
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
}

.onboarding-primary {
  width: 100%;
  min-height: 58px;
  margin-top: auto;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  box-shadow: 0 18px 34px rgba(36, 87, 214, 0.22);
}

.onboarding-recommend {
  background: #f8fafc;
}

.recommend-bg {
  position: absolute;
  inset: 0 0 auto;
  height: 228px;
  background: linear-gradient(135deg, rgba(36, 87, 214, 0.18), rgba(17, 24, 39, 0.12));
}

.recommend-cover-row {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  align-items: flex-end;
  margin: 44px -22px 24px 0;
  padding-left: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.recommend-cover-row::-webkit-scrollbar {
  display: none;
}

.recommend-cover {
  flex: 0 0 118px;
  height: 158px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.16);
  opacity: 0.76;
}

.recommend-cover.active {
  flex-basis: 144px;
  height: 196px;
  opacity: 1;
}

.recommend-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recommend-copy {
  position: relative;
  z-index: 1;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
}

.recommend-copy h2 {
  margin: 6px 0 10px;
  color: var(--ink);
  font-size: var(--text-xl);
  line-height: 1.24;
}

.recommend-meta {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 14px;
  padding: 0 12px;
  border: 1px solid #d9e4ff;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
}

.recommend-copy p {
  color: #4b5563;
  font-size: var(--text-base);
  line-height: 1.62;
}

.onboarding-preview {
  max-height: 178px;
  overflow: hidden;
  margin-top: 14px;
  padding: 14px 0 44px;
  border-top: 1px solid #eef2f7;
  color: #606773;
  font-size: var(--text-md);
  line-height: 1.85;
  mask-image: linear-gradient(#000 65%, transparent);
}

.onboarding-preview.expanded {
  max-height: none;
  mask-image: none;
  padding-bottom: 0;
}

.onboarding-preview p {
  margin: 0 0 10px;
}

.onboarding-synopsis-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-top: 12px;
  padding: 0 12px;
  border: 1px solid #d9e4ff;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
}

.all-works {
  order: 5;
}

.ranking-section {
  order: 6;
}

.genre-strip {
  order: 7;
}

.hero {
  order: 99;
}

.home-section-head h2 {
  color: var(--ink);
  font-size: var(--text-lg);
}

.home-section-head > span {
  border-color: var(--line);
  background: #fff;
  color: var(--muted);
  font-weight: var(--fw-semibold);
}

.work-filter button {
  border-color: var(--line);
  color: #59606b;
}

.work-filter button.active {
  border-color: var(--ink);
  background: var(--ink);
}

.work-row {
  background: #fff;
}

.work-info strong {
  color: var(--ink);
  font-size: var(--text-md);
  line-height: 1.28;
}

.work-info em,
.work-info small {
  font-weight: var(--fw-medium);
}

.work-row b {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent);
  box-shadow: none;
}

.rank-num {
  color: var(--accent);
  font-weight: var(--fw-bold);
}

.rank-row strong {
  font-weight: var(--fw-bold);
}

.rank-row small {
  font-weight: var(--fw-medium);
}

.rank-row b {
  color: var(--accent);
}

.genre-strip-label {
  color: var(--ink);
  font-weight: var(--fw-bold);
}

.genre-card {
  border-color: var(--line);
}

.genre-card span {
  color: #4b5563;
  font-weight: var(--fw-semibold);
}

.result-hero h2 {
  font-family: 'Pretendard Variable', "Apple SD Gothic Neo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
}

.tags span,
.meta-pill {
  border-color: #d9e4ff;
  background: var(--accent-soft);
}

.book-card,
.rank-row,
.work-row {
  transition: background 140ms ease;
}

.book-card:hover,
.rank-row:hover,
.work-row:hover {
  transform: none;
  background: #fbfcff;
}

.book-body button,
.chapter-btn,
.reader-next-block button {
  background: var(--accent);
  color: #fff;
}

.dialog-close {
  color: var(--accent);
}

.app-shell :is(h1, h2, h3, h4, strong, b, button, .rank-num, .brand-mark, .wallet strong) {
  font-weight: var(--fw-semibold) !important;
}

.app-shell :is(p, span, small, em, input) {
  letter-spacing: 0;
}

.app-shell :is(.work-info em, .rank-row b, .hero-content > .eyebrow, .genre-strip-label, .reader-eyebrow, .book-topline strong) {
  color: var(--accent) !important;
}

.app-shell .brand-mark,
#intro :is(.home-tabs button, .home-section-head h2, .continue-copy strong, .work-info strong, .rank-row strong, .work-row b, .rank-row b, .reward-mini span, .reward-mini button, .work-filter button, .genre-card span),
.topbar :is(.brand-sub, .wallet strong) {
  font-weight: var(--fw-semibold) !important;
}

.featured-copy strong {
  font-weight: var(--fw-semibold) !important;
}

.featured-copy em,
.featured-copy small,
.work-info em,
.work-info small,
.rank-row small,
.continue-copy span,
.continue-copy small {
  font-weight: var(--fw-medium) !important;
}

.book-topline strong:empty {
  display: none;
}

.book-body button,
.book-body button.episode-lock-btn,
.chapter-btn,
.reader-next-block button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0;
  color: #fff !important;
  line-height: 1 !important;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.book-body button {
  height: 34px;
  min-height: 34px;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--ink) !important;
}

.book-body button.episode-lock-btn {
  background: var(--ink) !important;
  box-shadow: none !important;
}

.book-body button:hover,
.book-body button.episode-lock-btn:hover,
.chapter-btn:hover,
.reader-next-block button:hover {
  background: var(--accent) !important;
  color: #fff !important;
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 430px) {
  .featured-banner {
    aspect-ratio: 430 / 306;
  }

  .featured-copy {
    right: 76px;
    bottom: 31px;
  }

  .featured-copy strong {
    font-size: var(--text-xl);
  }

  .featured-copy small {
    font-size: var(--text-sm);
  }
}

@media (max-width: 360px) {
  .featured-copy {
    right: 52px;
  }

  .featured-copy strong {
    font-size: var(--text-xl);
  }
}

/* ════════════════ BOTTOM GLOBAL NAVIGATION ════════════════ */
.quiz-panel {
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

.bottom-gnb {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 36;
  width: min(430px, 100vw);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -12px 28px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.bottom-gnb button {
  min-width: 0;
  min-height: 52px;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 5px 0 3px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #8d949f;
  font-size: var(--text-2xs);
  line-height: 1;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.bottom-gnb button:hover,
.bottom-gnb button:focus-visible {
  background: rgba(36, 87, 214, 0.06);
  color: var(--accent);
}

.bottom-gnb button.active {
  background: rgba(36, 87, 214, 0.08);
  color: var(--accent);
}

.bottom-gnb-icon {
  width: 23px;
  height: 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.bottom-gnb-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  overflow: visible;
}

.bottom-gnb-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-gnb button.active .bottom-gnb-icon path {
  stroke-width: 2;
}

.bottom-gnb strong {
  overflow: hidden;
  max-width: 100%;
  font-size: var(--text-2xs);
  font-weight: var(--fw-semibold) !important;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-nav-actions button.saved {
  border-color: rgba(36, 87, 214, 0.18);
  background: var(--accent-soft);
  color: var(--accent);
}

.library-page {
  min-height: calc(100vh - 64px);
  padding: 22px 16px 110px;
  background: #fff;
}

.library-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
}

.library-head .eyebrow {
  margin-bottom: 3px;
  color: var(--accent);
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0;
}

.library-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  line-height: 1.2;
}

.library-desc {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.45;
}

.library-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.library-empty {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 72px 20px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.library-empty strong {
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
}

.library-empty p {
  max-width: 270px;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.library-empty button {
  height: 36px;
  min-height: 36px;
  margin-top: 6px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
}

.library-work {
  width: 100%;
  min-height: 104px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

.library-work:hover,
.library-work:focus-visible {
  background: #fbfcff;
  transform: none;
}

.library-work img {
  width: 58px;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  object-fit: cover;
}

.library-work span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.library-work em,
.library-work small {
  overflow: hidden;
  color: var(--muted);
  font-size: var(--text-xs);
  font-style: normal;
  font-weight: var(--fw-medium);
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-work strong {
  overflow: hidden;
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-work b {
  height: 30px;
  min-width: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold) !important;
}

.auth-dialog,
.credit-dialog,
.reward-ad-dialog,
.onboarding-flow {
  z-index: 44;
}

@media (min-width: 431px) {
  .bottom-gnb {
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }
}

/* ════════════════ PAGEON TYPE/COLOR NORMALIZATION ════════════════ */
:root {
  --text-2xs: 11px;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-md: 16px;
  --text-lg: 20px;
  --text-xl: 28px;
  --text-display: 44px;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --color-accent: #2457d6;
  --text-primary: #17181d;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  --color-rating: #f59e0b;

  --ink: var(--text-primary);
  --muted: var(--text-secondary);
  --subtle: var(--text-tertiary);
  --accent: var(--color-accent);
  --rose: var(--color-accent);
  --wine: var(--color-accent);
  --font-display: 'Pretendard Variable', 'Pretendard', -apple-system, 'Apple SD Gothic Neo', system-ui, sans-serif;
  --font-serif: 'Pretendard Variable', 'Pretendard', -apple-system, 'Apple SD Gothic Neo', system-ui, sans-serif;
}

html,
body,
button,
input,
textarea,
select {
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, 'Apple SD Gothic Neo', system-ui, sans-serif;
}

body {
  font-weight: var(--fw-regular);
}

.wallet strong,
#creditBalance,
.rank-num,
.work-info em,
.rank-row small,
.rank-row b,
.meta-pill,
.featured-meta,
.hero-meta,
.book-topline,
.library-count,
.creator-revenue strong,
.dialog-balance strong {
  font-variant-numeric: tabular-nums;
}

.app-shell :is(h1, h2, h3, h4, strong, b, button, .rank-num, .brand-mark, .wallet strong) {
  font-weight: var(--fw-semibold) !important;
}

.featured-copy strong,
.hero-content h1,
.result-hero h2,
.home-section-head h2,
.library-head h2 {
  font-weight: var(--fw-bold) !important;
}

.app-shell :is(p, small, em, span, input) {
  font-weight: var(--fw-regular);
}

.app-shell :is(button, .meta-pill, .work-row b, .rank-row b, .reward-mini button, .continue-reading button) {
  font-weight: var(--fw-medium) !important;
}

.work-info em,
.rank-row small,
.book-topline strong,
.library-work em,
.library-work small,
.featured-mini-info p,
.continue-copy small,
.result-author,
.result-summary,
.recommend-meta,
#bundleMeta,
#storyMeta,
#readerChapMeta,
#interactiveStepMeta,
#libraryCount {
  color: var(--text-secondary) !important;
}

.work-info em,
.rank-row small,
.recommend-meta,
.meta-pill {
  background: transparent;
  border-color: var(--line);
}

.work-info em:has(+ small),
.rank-row small,
.recommend-meta,
.meta-pill {
  font-weight: var(--fw-medium) !important;
}

.work-info em,
.rank-row small,
.recommend-meta,
.meta-pill,
.library-work em {
  color: var(--text-secondary) !important;
}

.work-info em,
.rank-row small,
.recommend-meta {
  --rating-color: var(--color-rating);
}

.rank-num {
  color: var(--text-primary) !important;
}

/* ════════════════ PAGEON UX POLISH PASS 2 ════════════════ */
.app-shell .work-info em,
.app-shell .rank-row small,
.app-shell .recommend-meta,
.app-shell .meta-pill,
.app-shell .hero-meta span,
.app-shell .featured-meta,
.app-shell .book-topline span,
.app-shell .book-topline strong,
.app-shell .tags span,
.app-shell .library-work em,
.app-shell .library-work small {
  color: var(--text-secondary) !important;
}

.app-shell .work-info em .rating,
.app-shell .rank-row small .rating,
.app-shell .recommend-meta .rating,
.app-shell .meta-pill .rating,
.app-shell .hero-meta span .rating,
.app-shell .featured-meta .rating {
  color: var(--color-rating) !important;
  font-variant-numeric: tabular-nums;
  font-weight: var(--fw-medium) !important;
}

.app-shell :is(.tags span, .meta-pill) {
  border-color: var(--line) !important;
  background: #f7f8fa !important;
  font-weight: var(--fw-medium) !important;
}

.preview-text-col .reader {
  position: relative;
  max-height: 142px;
  overflow: hidden !important;
  overscroll-behavior: auto;
  scrollbar-width: none;
}

.preview-text-col .reader::-webkit-scrollbar {
  display: none;
}

.preview-text-col .reader::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 48px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(250, 250, 250, 0), #fafafa 84%);
}

.chapter-btn,
.checkout-btn,
.dialog-primary,
.pay-btn,
.reader-next-block button,
.reader-paywall button,
.primary,
.primary.large {
  background: var(--color-accent) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.chapter-btn:hover,
.checkout-btn:hover,
.dialog-primary:hover,
.pay-btn:hover,
.reader-next-block button:hover,
.reader-paywall button:hover,
.primary:hover,
.primary.large:hover {
  background: #1f4bbb !important;
  color: #fff !important;
}

.book-body button,
.book-body button.episode-lock-btn {
  border: 1px solid #d9e0ee !important;
  background: #fff !important;
  color: var(--color-accent) !important;
  box-shadow: none !important;
}

.book-body button:hover,
.book-body button.episode-lock-btn:hover {
  border-color: var(--color-accent) !important;
  background: #f5f8ff !important;
  color: var(--color-accent) !important;
}

.result-nav-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 14px;
}

.result-nav-actions button {
  min-height: 38px;
  padding: 0 14px;
  border-color: #d9e0ee !important;
  background: #fff !important;
  color: var(--color-accent) !important;
  font-weight: var(--fw-medium);
  white-space: nowrap;
}

.result-nav-actions #resultSaveBtn {
  border-color: var(--color-accent) !important;
  background: #f5f8ff !important;
}

.result-nav-actions #resultSaveBtn.saved {
  border-color: var(--color-accent) !important;
  background: var(--color-accent) !important;
  color: #fff !important;
}

.result-nav-actions #resultLibraryBtn {
  min-width: 104px;
}

.result-nav-actions #resultLibraryBtn[hidden] {
  display: none;
}

/* ════════════════ ACCOUNT / MY PAGE POLISH ════════════════ */
.my-page {
  min-height: calc(100vh - 64px);
  padding: 22px 16px 110px;
  background: #fff;
}

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

.my-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  line-height: 1.2;
}

.my-head button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
}

.my-desc {
  margin: 14px 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.my-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.my-status-grid article {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f8fa;
}

.my-status-grid span {
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
}

.my-status-grid strong {
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  line-height: 1.25;
  word-break: keep-all;
}

.my-panel {
  margin-top: 12px;
}

/* ════════════════ CREATOR STUDIO ════════════════ */
.creator-studio-page {
  min-height: calc(100vh - 64px);
  padding: 18px 16px 112px;
  background: #fff;
}

.studio-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.studio-hero {
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 12px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fafc, #fff);
  margin-bottom: 14px;
}

.studio-hero h2 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: var(--text-xl);
  line-height: 1.18;
}

.studio-hero p {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.48;
}

.studio-status-card {
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px;
  border: 1px solid #dbe4f5;
  border-radius: 14px;
  background: #f7f9ff;
}

.studio-status-card span,
.studio-status-card small {
  color: var(--text-secondary);
  font-size: var(--text-2xs);
  font-weight: var(--fw-medium);
}

.studio-status-card strong {
  color: var(--accent);
  font-size: var(--text-lg);
  line-height: 1;
}

.studio-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.studio-nav button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
}

.studio-nav button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.studio-nav button:disabled {
  opacity: 0.42;
}

.studio-view {
  display: none;
}

.studio-view.active {
  display: block;
}

.studio-apply-card,
.studio-dashboard-head {
  margin-bottom: 14px;
}

.studio-apply-card h3,
.studio-dashboard-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: var(--text-lg);
  line-height: 1.35;
}

.studio-apply-card p,
.studio-dashboard-head p,
.studio-message {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.studio-primary {
  min-height: 42px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
}

.studio-dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7f8fa;
}

.studio-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.studio-action-row button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
}

.studio-series-list,
.episode-manager-list {
  display: grid;
  gap: 10px;
}

.studio-empty {
  display: grid;
  gap: 8px;
  padding: 22px 16px;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: #f8fafc;
}

.studio-empty strong {
  color: var(--ink);
  font-size: var(--text-md);
}

.studio-empty p {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.studio-empty button {
  justify-self: start;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: var(--text-sm);
}

.studio-series-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.studio-series-card img {
  width: 72px;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  object-fit: cover;
  object-position: center top;
}

.studio-series-card div {
  min-width: 0;
}

.studio-series-card span,
.studio-series-card small,
.episode-manager-row p {
  color: var(--text-secondary);
  font-size: var(--text-xs);
}

.studio-series-card strong {
  display: block;
  margin: 4px 0;
  color: var(--ink);
  font-size: var(--text-md);
  line-height: 1.32;
}

.studio-series-card p {
  display: -webkit-box;
  margin: 0 0 4px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.studio-series-card button,
.episode-actions button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
}

.episode-manager-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.episode-manager-row strong {
  color: var(--ink);
  font-size: var(--text-sm);
}

.episode-manager-row p {
  margin: 4px 0 0;
}

.episode-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--text-secondary);
  font-size: var(--text-2xs);
  font-weight: var(--fw-semibold);
}

.episode-state.published {
  background: #eaf2ff;
  color: var(--accent);
}

.episode-state.scheduled {
  background: #fff7e8;
  color: #b45309;
}

.episode-state.hidden {
  background: #f3f4f6;
  color: #6b7280;
}

.episode-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.studio-check-label {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.studio-check-label input {
  width: 18px;
  height: 18px;
}

.author-note-box {
  display: grid;
  gap: 8px;
}

.author-note-box summary {
  cursor: pointer;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
}

.editor-toolbar {
  grid-template-columns: auto auto 1fr auto auto auto;
}

.word-guide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--text-secondary);
  font-size: var(--text-2xs);
  font-weight: var(--fw-semibold);
}

.word-guide.good {
  background: #ecfdf3;
  color: #15803d;
}

.word-guide.long {
  background: #fffbeb;
  color: #b45309;
}

.author-note-preview {
  margin-top: 18px !important;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

@media (min-width: 900px) {
  .studio-editor-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  }

  .studio-preview {
    position: sticky;
    top: 84px;
  }
}

@media (max-width: 520px) {
  .studio-dashboard-head,
  .studio-series-card,
  .episode-manager-row {
    grid-template-columns: 1fr;
  }

  .studio-action-row,
  .episode-actions {
    justify-content: stretch;
  }

  .editor-toolbar {
    grid-template-columns: 1fr 1fr;
  }
}

.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.studio-form,
.studio-preview {
  display: grid;
  gap: 12px;
}

.studio-preview {
  position: static;
}

.studio-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.studio-card-head {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: start;
}

.studio-card-head.compact {
  grid-template-columns: 38px 1fr;
}

.studio-card-head > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
}

.studio-card-head h3,
.checklist-card h3 {
  margin: 0 0 3px;
  color: var(--ink);
  font-size: var(--text-md);
}

.studio-card-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--text-xs);
  line-height: 1.45;
}

.studio-card label {
  display: grid;
  gap: 7px;
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
}

.studio-card input,
.studio-card select,
.studio-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  outline: none;
}

.studio-card input,
.studio-card select {
  height: 44px;
  padding: 0 12px;
}

.studio-card textarea {
  min-height: 126px;
  padding: 12px;
  line-height: 1.62;
  resize: vertical;
}

.studio-card input:focus,
.studio-card select:focus,
.studio-card textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.studio-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.thumbnail-uploader {
  grid-template-columns: 76px 1fr;
  align-items: center;
  min-height: 116px;
  padding: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  cursor: pointer;
}

.thumbnail-uploader input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.thumbnail-uploader img {
  width: 76px;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.14);
}

.thumbnail-uploader span {
  display: grid;
  gap: 5px;
}

.thumbnail-uploader strong {
  color: var(--ink);
  font-size: var(--text-base);
}

.thumbnail-uploader small {
  color: var(--text-tertiary);
  font-size: var(--text-xs);
}

.studio-toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 8px;
  align-items: center;
}

.studio-toolbar span {
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
}

.studio-toolbar button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
}

.studio-toolbar button:last-child {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.studio-toolbar button:disabled {
  border-color: #d7dce7;
  background: #d7dce7;
  color: #fff;
}

.creator-work-preview {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  align-items: start;
}

.creator-work-preview img {
  width: 82px;
  aspect-ratio: 2 / 3;
  border-radius: 11px;
  object-fit: cover;
}

.creator-work-preview strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: var(--text-md);
  line-height: 1.28;
}

.creator-work-preview span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: var(--text-xs);
  line-height: 1.38;
}

.creator-work-preview p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.creator-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.creator-keywords span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--text-secondary);
  font-size: var(--text-2xs);
  font-weight: var(--fw-semibold);
}

.creator-episode-preview {
  max-height: 260px;
  overflow: hidden;
  color: #3f4652;
  font-size: var(--text-base);
  line-height: 1.85;
  mask-image: linear-gradient(#000 78%, transparent);
}

.creator-episode-preview p {
  margin: 0 0 12px;
}

.checklist-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist-card li {
  position: relative;
  padding-left: 22px;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.checklist-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
}

.checklist-card li.done {
  color: var(--accent);
}

.checklist-card li.done::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px #fff;
}

.checklist-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--text-xs);
  line-height: 1.5;
}

.creator-actions button:nth-child(2) {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #fff;
}

@media (max-width: 900px) {
  .studio-layout {
    grid-template-columns: 1fr;
  }

  .studio-preview {
    position: static;
  }
}

@media (max-width: 430px) {
  .creator-studio-page {
    padding: 16px 14px 104px;
  }

  .studio-hero,
  .studio-layout,
  .studio-form,
  .studio-preview {
    gap: 10px;
  }

  .studio-hero {
    grid-template-columns: 1fr;
  }

  .studio-card {
    padding: 14px;
    border-radius: 14px;
  }

  .studio-grid-2,
  .studio-toolbar {
    grid-template-columns: 1fr;
  }

  .studio-toolbar button {
    width: 100%;
  }
}

#intro #allWorks,
#intro #rankingSection {
  display: none;
}

.catalog-page {
  min-height: calc(100vh - 64px);
  padding: 22px 16px 110px;
  background: #fff;
}

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

.catalog-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  line-height: 1.2;
}

.catalog-page .work-filter {
  margin: 14px 0 4px;
}

.catalog-page .work-list,
.ranking-page {
  display: grid;
  gap: 0;
}

.ranking-page .rank-row:first-of-type {
  border-top: 0;
}

.auth-form-actions button:first-child {
  border-color: var(--color-accent) !important;
  background: var(--color-accent) !important;
  color: #fff !important;
}

.auth-form-actions button:nth-child(2) {
  border-color: var(--line) !important;
  background: #fff !important;
  color: var(--ink) !important;
}

.social-login.kakao {
  border-color: #fee500 !important;
  background: #fee500 !important;
  color: #111 !important;
}

.social-login.kakao span {
  background: #111 !important;
  color: #fee500 !important;
}

.social-login.naver {
  border-color: #03c75a !important;
  background: #03c75a !important;
  color: #fff !important;
}

.social-login.naver span {
  background: #fff !important;
  color: #03c75a !important;
}

.rank-row b,
.work-row b,
.dialog-close,
.bottom-gnb button.active,
.bottom-gnb button:hover,
.bottom-gnb button:focus-visible,
.creator-revenue strong {
  color: var(--color-accent) !important;
}

.work-info em,
.rank-row small,
.recommend-meta,
.hero-meta span,
.featured-meta {
  color: var(--text-secondary) !important;
}

.dialog-close {
  position: absolute !important;
  top: 24px !important;
  right: 24px !important;
  display: inline-grid !important;
  place-items: center !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: -9999px;
  overflow: hidden;
}

.dialog-close::before,
.dialog-close::after {
  content: "" !important;
  grid-area: 1 / 1 !important;
  justify-self: center !important;
  align-self: center !important;
  width: 16px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: var(--color-accent) !important;
  transform-origin: 50% 50% !important;
}

.dialog-close::before {
  transform: rotate(45deg) !important;
}

.dialog-close::after {
  transform: rotate(-45deg) !important;
}

.work-info em::first-letter {
  color: inherit;
}

.continue-reading,
.reward-mini {
  margin: 10px 16px;
  border: 0;
  border-radius: 12px;
  background: #f7f8fa;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.continue-reading {
  padding: 14px 14px;
}

.reward-mini {
  padding: 12px 14px;
}

.work-row b,
.rank-row b,
.library-work b {
  min-height: 32px;
  padding-right: 15px;
  padding-left: 15px;
  font-weight: var(--fw-medium) !important;
}

.work-row b,
.rank-row b {
  border-color: #d9e0ee;
  background: #fff;
}

.work-row:hover b,
.rank-row:hover b,
.library-work:hover b {
  border-color: var(--color-accent);
}

.rating {
  color: var(--color-rating) !important;
  font-variant-numeric: tabular-nums;
  font-weight: var(--fw-medium);
}

.app-shell :is(.work-info em, .rank-row small, .recommend-meta, .meta-pill, .book-topline strong, .library-work em, .library-work small, .featured-mini-info p, .continue-copy small, .result-author, .result-summary) {
  color: var(--text-secondary) !important;
}

.app-shell :is(.work-info em, .rank-row small, .recommend-meta, .meta-pill) .rating {
  color: var(--color-rating) !important;
}

.wallet strong,
#creditBalance,
.dialog-balance strong {
  color: var(--credit) !important;
}

.rank-num {
  color: var(--text-primary) !important;
}
