.dock {
  padding: 5px;
}
.dock button {
  min-width: 44px;
  height: 44px;
}
.dock button[aria-current="page"] svg {
  stroke-width: 2;
}
.dock button:focus-visible {
  outline: 2px solid #ffd5df;
  outline-offset: -2px;
}

.stage {
  --frame-clearance: 14px;
  margin-top: .45rem;
}
.stage .hero {
  /* Reserve space for the active cover's glow inside the scrolling viewport. */
  padding-block: var(--frame-clearance);
}
.stage .poster {
  --frame-edge: #bc879766;
  transition: opacity .25s, transform .25s, box-shadow .22s;
}
.stage .poster.active {
  --frame-edge: #c7798aa1;
  box-shadow: 0 0 9px #b63d6273, 0 3px 13px #310c229c;
}
.stage .num { top: calc(var(--frame-clearance) + 12px); }
.stage .clipControl { top: calc(var(--frame-clearance) + 8px); }
.bookArt {position:relative;display:block;overflow:hidden;isolation:isolate;aspect-ratio:2/3;border-radius:inherit;background:#291c21}
.bookArt img {display:block;width:100%;height:100%;object-fit:cover}
.poster .bookArt {width:100%;height:100%;aspect-ratio:auto}
.poster .bookArt::after, .bookLink .bookArt::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border: 1px solid var(--frame-edge);
  border-radius: inherit;
}
.poster.active .bookArt::after {
  border-top-color: #e8bbaaab;
  border-bottom-color: #94425bda;
  box-shadow: inset 0 0 0 1px #30121e4d;
}
.coverType {position:absolute;inset:36% 0 0;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;padding:0 .3rem 10%;color:#fff3d9;background:linear-gradient(transparent,rgba(20,10,12,.13) 25%,rgba(12,5,9,.85));text-shadow:0 2px 8px #110b12}
.coverType small {font:500 clamp(.65rem,2.4vw,.8rem)/1.5 "Apple SD Gothic Neo","Malgun Gothic",sans-serif;letter-spacing:.12em}
.coverType b {font-family:"Noto Serif CJK KR","Nanum Myeongjo","AppleMyungjo","Batang",serif;font-weight:700;font-size:clamp(2.8rem,12vw,4.7rem);line-height:1.27;letter-spacing:-.075em}
[data-art="fortune"] .coverType {color:#ffdda2}
[data-art="intimacy"] .coverType {color:#ffd0d0}
.shelfSection {padding:24px 16px 12px}
.shelfHead {display:flex;align-items:baseline;justify-content:space-between;margin:0 0 14px}
.shelfHead h2 {margin:0;font-size:1.25rem;font-weight:750;letter-spacing:-.04em}
.shelfCount,.bookTopic,.muted {color:#d2bfc7}
.shelfCount {font-size:.85rem}
.bookGrid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 12px}
.bookEntry {position:relative;min-width:0}
.bookLink {display:block;width:100%;text-align:left}
.bookLink .bookArt {
  --frame-edge: #ac77844d;
  border-radius: 12px;
  transition: box-shadow .18s;
}
@media (hover: hover) {
  .bookLink:hover .bookArt, .stage .poster.active:hover {
    --frame-edge: #c78e9eac;
    box-shadow: 0 0 10px #a83e625e, 0 2px 8px #2c10217a;
  }
}
.stage .poster:focus-visible, .bookLink:focus-visible .bookArt {
  outline: 2px solid #f8d5c3;
  outline-offset: 2px;
}
.bookLink .coverType b {font-size:clamp(1.85rem,6.5vw,2.45rem)}
.bookLink .coverType small {font-size:.65rem;letter-spacing:.04em}
.bookName {display:block;margin:10px 0 3px;font-size:1.03rem;letter-spacing:-.035em}
.bookTopic {display:block;font-size:.875rem;line-height:1.5}
.bookmark {position:absolute;top:7px;right:7px;width:36px;height:36px;display:grid;place-items:center;background:#160e18bc;border:1px solid #ffffff50;border-radius:50%;color:#fff;font:1.55rem/1 Arial,sans-serif}
.bookmark[aria-pressed=true] {background:#751f36;color:#fff0f3}
.screenTitle {margin-top:12px;font-size:1.4rem}
.ft {padding:28px 16px 6px;margin:24px 16px 0;border-top:1px solid #6948547a;text-align:center;color:#bda6ae;letter-spacing:.1em}
.questionList {display:grid;gap:8px;padding:16px}
.question {display:grid;gap:6px;text-align:left;padding:16px;background:#271920;border:1px solid #6a394c;border-radius:13px}
.question small {color:#efadbc}
.question strong {font-size:1rem;line-height:1.45;font-weight:600}
.playPanel {margin:16px;padding:16px;background:#24171d;border:1px solid #61404b;border-radius:15px}
.playPanel>img {width:100%;height:160px;object-fit:cover;object-position:50% 45%;border-radius:8px}
.playPanel h3 {font-size:1.05rem}
.shelfAction {border-radius:8px;background:#a42043;padding:10px 16px;font-weight:700}
.playResult:not(:empty) {margin-top:20px}
@media (prefers-reduced-motion:reduce){.bookLink .bookArt,.stage .poster{transition:none}}
.hongClip {position:absolute;inset:0;width:100%;height:100%;pointer-events:none;opacity:0;object-fit:cover;border-radius:inherit;transition:opacity .18s ease-out}
.hasClip .hongClip {opacity:1}
.clipControl {position:absolute;z-index:3;left:calc(7% + 8px);top:8px;padding:8px 12px;min-height:40px;border-radius:22px;background:#150d14c7;color:#fff;font:600 .8rem/1.2 "Apple SD Gothic Neo","Malgun Gothic",sans-serif}
@media(prefers-reduced-motion:reduce){.hongClip{transition:none}}

.motionTitle {display:none;position:absolute;inset:0;overflow:hidden;pointer-events:none}
.hasClip .motionTitle {display:block}
.motionTitle > span {position:absolute;inset:0;background-position:center;background-size:100% 100%;background-repeat:no-repeat}
.taegeonTitle .titleShade {background:linear-gradient(transparent 54%,#230b1430 72%,#160910da)}
.taegeonTitle .titleStreak {background-image:url('assets/taegeon-streak.webp');z-index:1}
.taegeonTitle .impactWord {background-image:url('assets/taegeon-impact.webp');transform-origin:30% 88%;filter:drop-shadow(0 1px 2px #1d0b0c)}
.taegeonTitle .sajuWord {background-image:url('assets/taegeon-saju.webp');filter:drop-shadow(0 1px 2px #1d0b0c)}
.taegeonTitle .characterName {background-image:url('assets/taegeon-name-bold.webp')}
.seodamTitle .titleShade {background:linear-gradient(transparent 57%,#1e152342 75%,#130f20dc)}
.seodamTitle .characterName {background-image:url('assets/seodam-name.webp')}
.seodamTitle .readingTitle {background-image:url('assets/seodam-type.webp');mask-image:linear-gradient(102deg,#000 43%,transparent 55%);mask-size:250% 100%;mask-repeat:no-repeat}
.seodamTitle .curtainLight {inset:64% -20% 0;background:linear-gradient(110deg,transparent 39%,#ffeba809 44%,#ffe0a64a 49%,#ffefc830 52%,transparent 60%);mask-image:linear-gradient(transparent,#000 46%,#000a)}

.hongTitle .titleShade {background:linear-gradient(transparent 58%,#230b1324 77%,#11060b72)}
.hongTitle .threadDraw {background-image:url('assets/hongsil-thread.webp')}
.hongTitle .brushName {background-image:url('assets/hongsil-name.webp')}
.hongTitle .hongCaption {background-image:url('assets/hongsil-caption.webp')}
.geumhuiTitle .titleShade {background:linear-gradient(transparent 62%,#140d0b24 75%,#110b0ad9)}
.geumhuiTitle .goldSignature {
  inset:69.444444% auto auto 8.680556%;width:53.472222%;height:12.384259%;
  background-image:url('assets/geumhui-ink-strokes.webp');background-size:100% 4900%;
}
.geumhuiTitle .moneyStamp {background-image:url('assets/geumhui-money.webp');transform-origin:35% 91%}
.geumhuiTitle .goldSuffix {background-image:url('assets/geumhui-saju.webp')}
.geumhuiTitle .foilGlint {mask:url('assets/geumhui-money.webp') center / 100% 100% no-repeat;background-image:linear-gradient(115deg,transparent 43%,#eaffd8b3 49%,transparent 55%);background-size:235% 100%}
.isolTitle .titleShade {background:linear-gradient(transparent 55%,#100c183b 76%,#100b18d9)}
.isolTitle .brushLettering {background-image:url('assets/isol-brush-lettering.webp')}
.isolTitle .brushBan {
  inset:75.462963% auto auto 43.75%;width:24.421296%;height:16.049383%;
  background-image:url('assets/isol-geum-strokes.webp');background-size:1900% 100%;
}
.isolTitle .entryCaption {background-image:url('assets/isol-entry-caption.webp')}
.hongTitle .brushName {mask-image:linear-gradient(96deg,#000 43%,transparent 55%);mask-size:250% 100%;mask-repeat:no-repeat}
