/* 베라진 북스 (2026-11-03). Dark stage on the hub ink (#191F28) by Haemin's request; accents use the existing hub blues.
   Every piece of book information is HTML text; contrast pairs are listed in the verajin_marketer report. */
body.books-page { background: #fff; }
.books-track { position: relative; height: 210vh; background: var(--ink); }
.books-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; background: var(--ink); color: #fff; }
.books-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.books-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(120% 90% at 50% 55%, rgba(25,31,40,0) 55%, rgba(25,31,40,.55) 100%); }
.books-fallback { display: none; position: absolute; inset: 0; z-index: 0; place-items: center; padding: 120px 24px 80px; }
.books-stage.no-webgl .books-fallback { display: grid; }
.books-stage.no-webgl canvas, .books-stage.no-webgl .books-hint { display: none; }
.books-fallback p { font-size: 16px; color: #dce9fc; text-align: center; line-height: 1.7; }
.books-copy { position: absolute; z-index: 3; left: max(6vw, 24px); top: clamp(84px, 13vh, 132px); pointer-events: none; transition: opacity .4s; }
.books-copy .eyebrow { color: var(--brand-bright); }
.books-copy h1 { font-size: clamp(40px, 4.4vw, 64px); font-weight: 750; letter-spacing: -.05em; line-height: 1.1; margin-top: 12px; color: #fff; }
.books-copy p { font-size: 17px; color: #dce9fc; margin-top: 14px; line-height: 1.6; }
.series-chips { position: absolute; z-index: 3; right: max(6vw, 24px); top: clamp(92px, 14vh, 140px); display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; max-width: 46vw; transition: opacity .3s; }
.series-chips button { min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(220,233,252,.45); background: transparent; color: #fff; font: inherit; font-size: 15px; font-weight: 650; cursor: pointer; transition: background-color .3s, border-color .3s; }
.series-chips button[aria-pressed="true"] { border: 2px solid var(--brand-deep); padding: 9px 17px; font-weight: 750; } /* selected = blue ring, text stays white on ink */
.books-stage a:focus-visible, .books-stage button:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 3px; }
.books-hint { position: absolute; z-index: 3; left: max(6vw, 24px); bottom: 34px; font-size: 15px; font-weight: 600; color: #dce9fc; display: flex; align-items: center; gap: 10px; transition: opacity .3s; }
.books-hint i { display: inline-block; width: 22px; height: 1px; background: #dce9fc; }
.books-all { position: absolute; z-index: 3; right: max(6vw, 24px); top: calc(clamp(92px, 14vh, 140px) + 58px); font-size: 15px; font-weight: 650; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; color: #fff; border-bottom: 1px solid currentColor; transition: opacity .3s; }
.books-caption { position: absolute; z-index: 3; left: 50%; bottom: 30px; transform: translate(-50%, 8px); text-align: center; opacity: 0; transition: opacity .35s, transform .45s cubic-bezier(.16,1,.3,1); pointer-events: none; max-width: min(560px, 80vw); }
.books-caption.on { opacity: 1; transform: translate(-50%, 0); }
.books-caption b { display: block; font-size: 18px; font-weight: 750; line-height: 1.4; color: #fff; }
.books-caption span { font-size: 15px; color: #dce9fc; }
.books-labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .35s; }
.books-labels.on { opacity: 1; }
.books-labels span { position: absolute; left: 0; top: 0; font-size: 15px; font-weight: 650; color: #fff; white-space: nowrap; }
.books-hits { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.books-hits .hit { position: absolute; left: 0; top: 0; pointer-events: auto; border: 0; padding: 0; background: none; border-radius: 10px; cursor: pointer; }
.books-hits.off .hit { pointer-events: none; }
.books-strip { display: none; }
.books-stage.opened .series-chips, .books-stage.opened .books-hint, .books-stage.opened .books-all, .books-stage.opened .books-copy, .books-stage.opened .books-caption { opacity: 0; pointer-events: none; }
.books-stage.opened { cursor: zoom-out; }

/* information panel (desktop: right side; phones: bottom sheet) */
.books-panel { position: absolute; z-index: 5; right: max(5vw, 24px); top: clamp(72px, 10vh, 112px); bottom: 32px; width: min(460px, 42vw); overflow-y: auto; overscroll-behavior: contain; padding: 28px 28px 32px; border-radius: 16px; background: var(--ink); box-shadow: inset 0 0 0 1px rgba(220,233,252,.2), 0 24px 60px rgba(0,0,0,.45); color: #fff; cursor: auto; opacity: 0; transform: translateY(12px); transition: opacity .45s cubic-bezier(.16,1,.3,1), transform .55s cubic-bezier(.16,1,.3,1); }
.books-panel.on { opacity: 1; transform: none; }
/* the site-wide Kakao pill and assistant would cover the panel: hide them while a book is open */
body.books-panel-open vk-kakao-float, body.books-panel-open vj-assistant { visibility: hidden; }
.books-panel[hidden] { display: none; }
.panel-close { position: sticky; top: 0; float: right; width: 44px; height: 44px; margin: -8px -8px 0 8px; border: 0; border-radius: 999px; background: rgba(220,233,252,.14); color: #fff; font: inherit; font-size: 18px; cursor: pointer; }
.panel-brand { font-size: 14px; font-weight: 700; letter-spacing: .04em; color: var(--brand-bright); line-height: 1.5; }
.panel-title { font-size: 26px; font-weight: 750; letter-spacing: -.03em; line-height: 1.35; margin-top: 8px; color: #fff; }
.panel-intro { font-size: 17px; line-height: 1.6; color: #dce9fc; margin-top: 12px; }
.panel-buy { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(220,233,252,.2); }
.panel-label { font-size: 15px; font-weight: 700; color: #fff; }
.panel-editions { display: grid; gap: 8px; margin-top: 10px; }
.edition { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 16px; border-radius: 10px; border: 1px solid rgba(220,233,252,.45); background: transparent; color: #fff; font: inherit; text-align: left; cursor: pointer; }
.edition[aria-checked="true"] { border-color: var(--brand-bright); box-shadow: inset 0 0 0 1px var(--brand-bright); }
.ed-label { font-size: 16px; font-weight: 650; }
.ed-price { display: inline-flex; align-items: baseline; gap: 8px; font-size: 16px; }
.ed-price b { font-weight: 750; }
.ed-price s { font-size: 15px; color: #dce9fc; }
.panel-cta { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; margin-top: 14px; padding: 14px 18px; border-radius: 10px; background: var(--brand-deep); color: #fff; font-size: 19px; font-weight: 750; text-align: center; } /* 19px bold = large text (3:1) on the hub blue */
.panel-cta:hover { text-decoration: underline; text-underline-offset: 4px; }
.panel-asof { margin-top: 10px; font-size: 15px; line-height: 1.6; color: #dce9fc; }
.panel-sec { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(220,233,252,.2); }
.panel-sec h3 { font-size: 16px; font-weight: 700; color: #fff; }
.panel-sec p, .panel-sec li { font-size: 16px; line-height: 1.6; color: #dce9fc; }
.panel-sec p { margin-top: 8px; }
.panel-sec ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; }

/* full list (light) */
.books-list { padding: 96px max(6vw, 24px) 40px; }
.books-list > header h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 750; letter-spacing: -.04em; }
.books-list > header p { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 680px; }
.book-series { margin-top: 64px; }
.book-series h3 { font-size: 22px; font-weight: 750; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; margin-top: 20px; }
.book-card { display: grid; grid-template-columns: 112px 1fr; gap: 18px; padding: 20px; border-radius: 12px; background: var(--page); align-items: start; }
.book-card .thumb { position: relative; display: block; width: 112px; height: 112px; border-radius: 4px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(25,31,40,.16), 0 10px 22px rgba(25,31,40,.16); }
.book-card img { display: block; width: 112px; height: 112px; object-fit: cover; }
.book-card .book-brand { font-size: 14px; font-weight: 650; letter-spacing: .04em; color: var(--muted); }
.book-card .book-title { font-size: 17px; font-weight: 750; line-height: 1.45; margin-top: 4px; }
.book-card .book-price { margin-top: 6px; font-size: 16px; font-weight: 750; color: var(--ink); }
.book-card dl { margin: 10px 0 0; display: grid; gap: 6px; }
.book-card dl > div { display: grid; grid-template-columns: 34px 1fr; gap: 6px; font-size: 15px; line-height: 1.6; }
.book-card dt { color: var(--muted); font-weight: 600; }
.book-card dd { margin: 0; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.book-card .editions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.book-card .editions a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px #dce9fc; font-size: 15px; font-weight: 650; color: var(--ink); }
.book-card .editions a b { font-weight: 750; color: var(--ink); }
.book-card .editions a:hover { box-shadow: inset 0 0 0 1px var(--brand); }
.books-note { margin-top: 56px; font-size: 15px; color: var(--muted); line-height: 1.7; }

@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
  .books-track { height: 170vh; }
  .books-copy { left: 20px; top: 60px; }
  .books-copy h1 { font-size: 34px; margin-top: 8px; }
  .books-copy p { font-size: 15px; margin-top: 8px; }
  .series-chips { left: 0; right: 0; top: 172px; padding: 0 20px; max-width: none; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .series-chips::after { content: ""; flex: 0 0 24px; }
  .series-chips::-webkit-scrollbar { display: none; }
  .series-chips button { flex: 0 0 auto; font-size: 15px; padding: 10px 16px; }
  .books-hint { display: none; }
  .books-all { left: 20px; right: auto; top: auto; bottom: calc(24px + env(safe-area-inset-bottom)); }
  .books-caption { bottom: calc(108px + env(safe-area-inset-bottom)); max-width: calc(100vw - 40px); }
  .books-strip { display: flex; position: absolute; z-index: 2; left: 0; right: 0; top: 232px; bottom: calc(176px + env(safe-area-inset-bottom)); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: 19vw; overscroll-behavior-x: contain; }
  .books-strip::-webkit-scrollbar { display: none; }
  .books-strip button { flex: 0 0 62vw; scroll-snap-align: center; height: 100%; border: 0; background: none; padding: 0; }
  .books-strip.off { pointer-events: none; }
  .books-panel { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 64%; border-radius: 20px 20px 0 0; padding: 22px 20px calc(28px + env(safe-area-inset-bottom)); transform: translateY(24px); }
  .panel-title { font-size: 22px; }
  .panel-intro, .panel-sec p, .panel-sec li { font-size: 15px; }
  .books-list { padding: 64px 20px calc(120px + env(safe-area-inset-bottom)); }
  .book-grid { grid-template-columns: 1fr; }
  .book-card { grid-template-columns: 88px 1fr; padding: 16px; gap: 14px; }
  .book-card .thumb, .book-card img { width: 88px; height: 88px; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .series-chips { top: 150px; }
  .books-copy p { display: none; }
  .books-strip { top: 200px; }
  .books-panel { max-height: 70%; }
}
/* split screen and landscape tablets: controls stack under the title, store link moves to the bottom-left */
@media (min-width: 761px) and (max-width: 1180px) and (min-height: 521px) and (orientation: landscape), (min-width: 761px) and (max-width: 1180px) and (min-height: 521px) and (min-aspect-ratio: 1/1) {
  .books-copy h1 { font-size: 44px; }
  .series-chips { left: max(6vw, 24px); right: auto; top: calc(clamp(84px, 13vh, 132px) + 150px); max-width: none; justify-content: flex-start; flex-wrap: nowrap; }
  .books-all { top: auto; right: auto; left: max(6vw, 24px); bottom: calc(24px + env(safe-area-inset-bottom)); }
  .books-hint { display: none; }
  .books-panel { width: min(440px, 46vw); }
}
/* phones in landscape */
@media (min-width: 761px) and (max-height: 520px) {
  .books-copy { top: 52px; }
  .books-copy h1 { font-size: 28px; margin-top: 6px; }
  .books-copy p { display: none; }
  .series-chips { top: 52px; max-width: none; flex-wrap: nowrap; }
  .series-chips button { font-size: 14px; padding: 8px 12px; }
  .books-all { top: auto; right: auto; left: max(6vw, 24px); bottom: calc(16px + env(safe-area-inset-bottom)); }
  .books-hint { display: none; }
  .books-caption { bottom: 14px; }
  .books-panel { top: 12px; bottom: 12px; width: min(420px, 50vw); }
}
@media (prefers-reduced-motion: reduce) {
  .books-track { height: auto; }
  .books-stage { position: relative; }
  .books-caption, .books-panel, .series-chips button { transition: none; }
}
