/* Book showcase — mirrored cinematic composition */
body .books {
  --book-tabs-height:clamp(58px,10svh,78px);
  --book-nav-size:44px;
  position:relative;
  container-type:size;
  isolation: isolate;
  display: block;
  width: 100%;
  height: clamp(620px, 100dvh, 980px);
  min-height: 620px;
  padding: 0;
  overflow: hidden;
  background: #0b1219;
  color: #eee7da;
}

.books-art-stack,
.books-shade,
.books-art {
  position: absolute;
  inset: 0;
}

.books-art-stack { z-index: -3; background: #0b1219; }
.books-art {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  filter: saturate(.9) brightness(.92);
  transform: scale(1.025);
  transition: opacity 700ms cubic-bezier(.16,1,.3,1), transform 1100ms cubic-bezier(.16,1,.3,1);
}
.books-art.is-active { opacity: 1; transform: scale(1); }
.books-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(4,10,16,.03) 0%, rgba(5,12,20,.08) 27%, rgba(5,12,20,.28) 58%, rgba(5,10,16,.58) 100%),
    linear-gradient(0deg, rgba(4,9,14,.5) 0%, transparent 28%, rgba(4,9,14,.06) 72%, rgba(4,9,14,.18) 100%);
}
.books-shade::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 74% 44%, rgba(62,82,101,.13), transparent 38%);
  content: '';
}

.book-swipe-layer {
  position:absolute;
  z-index:4;
  inset:0;
  overflow:hidden;
  pointer-events:none;
}
.book-swipe-page {
  position:absolute;
  inset:0;
  overflow:hidden;
  background:#0b1219;
  will-change:transform;
}
.book-swipe-art,
.book-swipe-shade { position:absolute;inset:0;width:100%;height:100%; }
.book-swipe-art { z-index:0;max-width:none;object-fit:cover;object-position:center;filter:saturate(.9) brightness(.92); }
.book-swipe-shade { z-index:1;background:linear-gradient(90deg,rgba(4,10,16,.07),rgba(5,11,18,.34) 48%,rgba(4,9,15,.68)),linear-gradient(0deg,rgba(4,9,14,.52),transparent 42%,rgba(4,9,14,.14)); }
.book-swipe-page .book-showcase { z-index:2; }
.book-swipe-page .book-showcase-content { transition:none; }
.books.is-swipe-dragging > .books-art-stack,
.books.is-swipe-dragging > .books-shade,
.books.is-swipe-dragging > .book-showcase { visibility:hidden; }

.book-showcase {
  position: absolute;
  z-index: 2;
  inset:0 0 var(--book-tabs-height);
  display: flex;
  align-items: center;
  padding: clamp(38px,5vw,76px) 0;
}
.book-showcase-content {
  display: grid;
  grid-template-columns:minmax(320px,520px) max-content;
  width:min(1400px,80vw);
  height:70%;
  min-height:0;
  align-items:center;
  justify-content:end;
  gap:clamp(36px,4vw,50px);
  margin-left:auto;
  margin-right:clamp(120px,10vw,170px);
  transition:opacity 180ms ease-out;
}
.book-showcase-content.is-leaving {
  opacity:0;
}
.book-showcase-content.is-entering {
  opacity:0;
}

.book-copy { min-width:0;text-align:right; }
.book-copy time {
  display: block;
  margin-bottom: 12px;
  color: #b0aa9f;
  font-size:var(--site-text-small);
  letter-spacing:.06em;
  text-transform: uppercase;
}
.book-series {
  display:block;
  margin-bottom:10px;
  color:#d7b37a;
  font:400 clamp(25px,min(3.25vw,5.6cqh),48px)/1.05 var(--display,Georgia,serif);
  letter-spacing:.01em;
  text-wrap:balance;
}
.book-copy .book-series { text-shadow:0 2px 12px rgba(0,0,0,.58); }
.book-copy h2 {
  max-width:11ch;
  margin:0 0 0 auto;
  color: #f0eadf;
  font: 500 clamp(42px, 4.8vw, 72px)/.98 var(--display, Georgia, serif);
  letter-spacing: -.025em;
  text-wrap: balance;
  text-shadow: 0 3px 24px rgba(0,0,0,.56);
}
.book-copy-divider {
  width: min(290px, 100%);
  height: 1px;
  margin:20px 0 18px auto;
  background:linear-gradient(90deg,rgba(208,167,103,.06),rgba(208,167,103,.82));
}
.book-description-text {
  max-width:45ch;
  max-height:240px;
  margin-left:auto;
  padding-right:6px;
  overflow-y:auto;
  color:#d0cbc2;
  font-size:var(--site-text-body);
  line-height:1.68;
  text-align:right;
  text-shadow:0 2px 14px rgba(0,0,0,.72);
  scrollbar-color:#735b40 transparent;
  overscroll-behavior:contain;
}
.book-description-text p,
.book-description-text h3 { margin:0 0 .72em;text-wrap:pretty; }
.book-description-text p:last-child,
.book-description-text h3:last-child { margin-bottom:0; }
.book-description-text h3 { color:#eadfcf;font:600 1.22em/1.25 var(--display,Georgia,serif); }
.book-actions { display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:26px; }
.book-actions button {
  position:relative;
  isolation:isolate;
  flex:1 1 180px;
  width:min(230px,100%);
  max-width:230px;
  height:52px;
  min-width:0;
  min-height:0;
  padding:0 24px;
  background:linear-gradient(180deg,rgba(137,81,52,.36),rgba(73,37,24,.32)),url('/assets/ui/game-button-texture.webp') center/cover;
  color:#f4dfbd;
  border:0;
  border-radius:0;
  box-shadow:inset 0 1px rgba(255,221,156,.14),inset 0 -8px 18px rgba(38,17,10,.2);
  font:400 var(--site-text-button)/1.2 Arial,sans-serif;
  letter-spacing:.015em;
  text-shadow:0 1px 3px rgba(33,15,8,.8);
  -webkit-mask:url('/assets/ui/game-button-shape.svg') center/100% 100% no-repeat;
  mask:url('/assets/ui/game-button-shape.svg') center/100% 100% no-repeat;
  transition:color 180ms ease-out,filter 180ms ease-out;
}
.book-actions button::before,
.book-actions button::after {
  position:absolute;
  z-index:3;
  inset:0;
  content:'';
  pointer-events:none;
  -webkit-mask:url('/assets/ui/game-button-frame.svg') center/100% 100% no-repeat;
  mask:url('/assets/ui/game-button-frame.svg') center/100% 100% no-repeat;
}
.book-actions button::before {
  background:linear-gradient(180deg,#fff0a4 0%,#e6a83d 32%,#9b5b20 66%,#ffd676 100%);
  filter:drop-shadow(0 0 4px rgba(235,166,48,.72));
  opacity:.92;
}
.book-actions button::after {
  background:linear-gradient(105deg,transparent 8%,rgba(255,219,122,.18) 30%,#fff8c9 49%,#ffc955 58%,transparent 88%);
  background-position:-70% 0;
  background-repeat:no-repeat;
  background-size:38% 100%;
  filter:drop-shadow(0 0 5px rgba(255,207,91,.75));
  animation:gameButtonFrameShimmer 3.4s linear infinite;
}
.book-actions button:hover {
  background:linear-gradient(180deg,rgba(157,93,58,.42),rgba(78,39,24,.25)),url('/assets/ui/game-button-texture.webp') center/cover;
  color:#fff0d3;
  filter:drop-shadow(0 0 9px rgba(232,165,54,.18));
}
.book-actions button:active { filter:brightness(.95); }
.book-actions button:focus-visible { outline:2px solid #e2b574;outline-offset:3px; }

.book-object-frame {
  display: grid;
  width: 100%;
  max-height: min(80dvh, 680px);
  place-items:center end;
  perspective:none;
}
.book-object {
  position:relative;
  display:block;
  width:min(100%,560px);
  transform:none;
}
.book-front {
  position:relative;
  z-index:2;
  isolation:isolate;
  padding:22px;
  background:transparent;
}
.book-front-panel {
  position:absolute;
  z-index:0;
  inset:0;
  width:100%;
  height:100%;
  overflow:visible;
  fill:#070b0f;
  pointer-events:none;
}
.book-front img {
  position:relative;
  z-index:1;
  display:block;
  width:100%;
  height:auto;
  max-height:min(70dvh,610px);
  object-fit:contain;
  clip-path:polygon(5% 0,95% 0,95% 3%,100% 7.33%,100% 92.67%,95% 97%,95% 100%,5% 100%,5% 97%,0 92.67%,0 7.33%,5% 3%);
}
.book-cover-ornament {
  position:absolute;
  z-index:3;
  inset:0;
  width:100%;
  height:100%;
  overflow:visible;
  color:#d7aa5e;
  pointer-events:none;
  filter:drop-shadow(0 0 2px rgba(215,170,94,.2));
}
.book-cover-ornament .ornament-frame { stroke-width:2.5;opacity:.82; }
.book-frame-emblem {
  position:absolute;
  z-index:5;
  left:50%;
  width:28px;
  height:28px;
  overflow:visible;
  color:#d7aa5e;
  filter:drop-shadow(0 0 2px rgba(215,170,94,.2));
  transform:translate(-50%,-50%);
  pointer-events:none;
}
.book-frame-emblem-top { top:0; }
.book-frame-emblem-bottom { top:100%; }
.book-frame-emblem .emblem-outer { fill:rgba(9,13,17,.92);stroke:currentColor;stroke-width:2; }
.book-frame-emblem .emblem-inner { fill:none;stroke:currentColor;stroke-width:.65;opacity:.9; }
.book-frame-emblem .emblem-center { fill:#e6bf76;stroke:none; }

.book-edge-nav {
  position: absolute;
  z-index:7;
  top:0;
  bottom:var(--book-tabs-height);
  width:clamp(48px,6vw,88px);
  padding: 0;
  background: transparent;
  border: 0;
  color: #dbb77d;
  cursor: pointer;
}
.book-edge-nav:hover { background: linear-gradient(90deg, rgba(205,159,94,.06), transparent); }
.book-edge-next { right: 0; }
.book-edge-previous { left: 0; }
.book-edge-next:hover { background: linear-gradient(-90deg, rgba(205,159,94,.06), transparent); }
.book-nav-glyph {
  position:absolute;
  top:50%;
  width:var(--book-nav-size);
  height:var(--book-nav-size);
  overflow:visible;
  fill:rgba(10,16,21,.52);
  stroke:currentColor;
  filter:drop-shadow(0 8px 15px rgba(0,0,0,.5));
  transform:translateY(-50%);
  transition:color 220ms ease-out,filter 220ms ease-out,transform 220ms cubic-bezier(.16,1,.3,1);
}
.book-edge-next .book-nav-glyph { right:clamp(10px,1.6vw,24px); }
.book-edge-previous .book-nav-glyph { left:clamp(10px,1.6vw,24px); }
.book-nav-diamond { stroke-width:1;opacity:.82; }
.book-nav-inner { stroke-width:.7;opacity:.3; }
.book-nav-mark { fill:none;stroke-width:1;opacity:.9; }
.book-edge-nav:hover .book-nav-glyph { color:#f0ca88;filter:drop-shadow(0 8px 15px rgba(0,0,0,.5)) drop-shadow(0 0 8px rgba(218,174,105,.3));transform:translateY(-50%) scale(1.045); }
.book-edge-nav:focus-visible { outline:1px solid rgba(226,181,116,.7);outline-offset:-5px; }

.book-mobile-dots { display:none; }
.book-tabs-shell {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  height:var(--book-tabs-height);
  display: flex;
  align-items: center;
  padding: 0 clamp(52px, 7vw, 120px);
  background: rgba(5,10,15,.68);
  border-top: 1px solid rgba(188,151,98,.32);
  backdrop-filter: blur(7px);
}
.book-tabs {
  display: flex;
  width: 100%;
  min-width: 0;
  justify-content: center;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.book-tabs::-webkit-scrollbar { display: none; }
.book-tabs button {
  position: relative;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 clamp(20px,2.4vw,38px);
  background: transparent;
  color: #9d988f;
  border: 0;
  border-left: 1px solid rgba(190,151,96,.18);
  border-radius: 0;
  font:400 var(--site-text-small)/1.2 Arial,sans-serif;
  white-space: nowrap;
  scroll-snap-align: center;
  transition: color 220ms ease-out, background 220ms ease-out;
}
.book-tabs button:last-child { border-right: 1px solid rgba(190,151,96,.18); }
.book-tabs button span { margin-right: 10px; color: #716e68; font-variant-numeric: tabular-nums; }
.book-tabs button::after {
  position: absolute;
  right:8px;
  bottom:0;
  left:8px;
  height:9px;
  background:url('/assets/ui/header-nav-chevron.svg') center / 100% 100% no-repeat;
  filter:drop-shadow(0 0 3px rgba(215,169,95,.34));
  content: '';
  opacity: 0;
  transform: scaleX(.35);
  transition: opacity 220ms ease-out, transform 320ms cubic-bezier(.16,1,.3,1);
}
.book-tabs button:hover { color: #e3d9cb; background: rgba(255,255,255,.025); }
.book-tabs button.is-active { color: #f0d9b4; }
.book-tabs button.is-active span { color: #d9aa63; }
.book-tabs button.is-active::after { opacity: 1; transform: scaleX(1); }
.book-tabs button:focus-visible { outline: 1px solid #d8aa65; outline-offset: -3px; }

/* Details and the final fragment page share one composition. */
.book-dialog,
.book-reader-dialog.is-offer {
  width: min(1080px, calc(100vw - 32px));
  max-height: min(820px, calc(100dvh - 32px));
  padding: 0;
  overflow: auto;
  background: #171b1d;
  color: #eee7dc;
  border: 1px solid #65503b;
}
.book-dialog[open],
.book-reader-dialog.is-offer[open] { display: grid; grid-template-columns: minmax(270px,390px) minmax(0,1fr); align-items: center; }
.book-dialog .dialog-cover,
.book-reader-dialog.is-offer .dialog-cover { display: block; width: 100%; height: 100%; max-height: min(818px,calc(100dvh - 34px)); object-fit: cover; background: #0d1112; }
.book-dialog .dialog-book-copy,
.book-reader-dialog.is-offer .dialog-book-copy { align-self: center; padding: clamp(34px,5vw,66px); }
.book-dialog .dialog-book-copy h2,
.book-reader-dialog.is-offer .dialog-book-copy h2 { margin: 10px 0 22px; color: #f0e8dc; font: 500 clamp(38px,5vw,68px)/1 var(--display,Georgia,serif); text-wrap: balance; }
.book-dialog .dialog-book-copy p,
.book-reader-dialog.is-offer .dialog-book-copy p { max-width: 56ch; margin: 0; color: #c1bbb1; font-size:var(--site-text-body); line-height:1.65; }
.book-reader-dialog.is-offer {
  width:min(880px,calc(100vw - 24px));
  height:max-content;
  max-height:min(640px,calc(100dvh - 24px));
  overflow:hidden;
}
.book-reader-dialog.is-offer[open] {
  grid-template-columns:minmax(160px,220px) minmax(0,1fr);
  grid-template-rows:minmax(0,1fr);
  gap:32px;
  padding:48px 32px 32px;
}
.book-reader-dialog.is-offer .dialog-cover { height:auto;max-height:100%;object-fit:contain;align-self:center; }
.book-reader-dialog.is-offer .dialog-book-copy { min-width:0;min-height:0;align-self:stretch;padding:0;overflow-y:auto; }
.book-reader-dialog.is-offer .dialog-book-copy .reader-offer-title {
  margin:0 0 16px;color:#f0e8dc;font:400 30px/1.2 var(--display,Georgia,serif);text-wrap:balance;
}
.book-reader-dialog.is-offer .dialog-book-copy .reader-offer-message {
  max-width:48ch;margin:0;color:#d1c8bb;font:17px/1.65 Arial,sans-serif;text-wrap:pretty;
}
.book-reader-dialog.is-offer .shop-links { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }
.book-reader-dialog.is-offer .shop-links a { display:flex;width:auto;height:auto;min-height:44px;gap:8px;justify-content:flex-start;padding:10px 8px;color:#e2d4be;font:14px/1.3 Arial,sans-serif;text-decoration:none; }
.book-reader-dialog.is-offer .shop-links img { width:20px;height:20px;flex:none;opacity:1;filter:none; }
.book-reader-dialog.is-offer .shop-links a span { min-width:0;overflow-wrap:anywhere; }
.book-reader-dialog.is-offer .shop-links a:hover { border-color:#cba66a;background:#30271d; }
.book-reader-dialog.is-offer .dialog-book-copy:focus { outline:none; }
.book-reader-dialog .dialog-close { top:12px;right:12px;display:grid;place-items:center;padding:0;border:1px solid rgba(215,178,125,.32);border-radius:3px;cursor:pointer; }
.book-dialog .dialog-book-copy h3,
.book-reader-dialog.is-offer .dialog-book-copy h3 { margin: 30px 0 11px; color: #d7b28f; font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.book-dialog .dialog-close,
.book-reader-dialog .dialog-close { z-index: 4; width: 42px; height: 42px; color: #eee7dc; background: rgba(12,16,17,.82); line-height: 1; }
.book-description p + p { margin-top:12px; }
.book-dialog .book-description h3 {
  margin:18px 0 9px;
  color:#eadfcf;
  font:600 1.25em/1.3 var(--display,Georgia,serif);
  letter-spacing:normal;
  text-transform:none;
}

.book-reader-dialog:not(.is-offer) {
  width:min(960px,calc(100vw - 24px));
  height:min(880px,calc(100dvh - 24px));
  max-height:none;
  padding: 0;
  overflow: hidden;
  background: #171a19;
  color: #e8e1d5;
  border: 1px solid #62503d;
}
.book-reader-dialog:not(.is-offer)[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.reader-heading { display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:22px 72px 20px 28px;border-bottom:1px solid rgba(187,148,92,.3); }
.reader-heading span { color:#e0c393;font:26px/1.2 var(--display,Georgia,serif); }
.reader-heading strong { color:#b2a99b;font:400 12px/1.4 Arial,sans-serif; }
.reader-page {
  min-height: 0;
  padding:clamp(28px,4vw,48px) clamp(24px,6vw,64px);
  overflow-y: auto;
  background: radial-gradient(circle at 50% 25%,rgba(65,61,50,.28),transparent 50%);
  color: #ddd6ca;
  font: clamp(17px,1.5vw,20px)/1.8 Georgia,serif;
  scrollbar-color: #735b40 transparent;
}
.reader-page p { max-width: 64ch; margin: 0 auto 1em; text-wrap: pretty; }
.reader-page h3 { max-width: 64ch; margin: 0 auto 1em; color: #eadfcf; font-size: 1.3em; }
.reader-page:focus { outline:none; }
.reader-page:focus-visible { outline:1px solid rgba(215,178,125,.5);outline-offset:-4px; }
.book-reader-dialog .reader-controls { display:grid;grid-template-columns:150px minmax(0,1fr) 190px;align-items:center;gap:12px;min-height:80px;margin:0;padding:14px 24px;background:#111514;border-top:1px solid rgba(187,148,92,.3); }
.reader-controls .reader-page-count { color:#bdb3a4;font:13px/1.4 Arial,sans-serif;text-align:center;font-variant-numeric:tabular-nums; }
.book-reader-dialog .reader-controls button,
.book-reader-dialog .reader-return { position:relative;min-width:0;min-height:44px;padding:10px 16px;background:transparent;color:#e3d3b9;border:1px solid #806344;border-radius:3px;font:16px/1.3 Arial,sans-serif;cursor:pointer;transition:background 160ms ease-out,border-color 160ms ease-out; }
.book-reader-dialog .reader-return { max-width:100%;margin-top:24px; }
.book-reader-dialog .reader-controls .reader-next {
  min-height:44px;padding:8px 24px;border:1px solid #b88b4c;border-radius:6px;color:#f4dfbd;
  background:linear-gradient(180deg,rgba(137,81,52,.36),rgba(73,37,24,.32)),url('/assets/ui/game-button-texture.webp') center/cover;
}
.book-reader-dialog .reader-controls button:hover,
.book-reader-dialog .reader-return:hover { background-color:#3a2c20;border-color:#cba66a; }
.book-reader-dialog button:focus-visible,
.book-reader-dialog a:focus-visible { outline:2px solid #eccb8d;outline-offset:3px; }
.reader-controls button:disabled { visibility:hidden; }

@media (min-width:768px) {
  body .books {
    height:calc(100svh - 72px);
    min-height:0;
    max-height:calc(100svh - 72px);
  }
  .book-showcase { padding-block:clamp(14px,4.5svh,76px); }
  .book-copy time { margin-bottom:clamp(6px,1.6svh,12px); }
  .book-copy h2 { font-size:clamp(30px,min(4.4vw,8cqh),68px); }
  .book-copy-divider { margin-block:clamp(8px,2.2cqh,18px) clamp(8px,2cqh,16px); }
  .book-description-text { max-height:min(30cqh,240px);font-size:var(--site-text-body);line-height:1.55; }
  .book-actions { margin-top:clamp(10px,2.7cqh,22px); }
  .book-actions button { height:clamp(44px,7cqh,52px); }
  .book-object {
    display:block;
    width:auto;
    max-width:100%;
    height:min(620px,58cqh);
  }
  .book-front { min-width:0;height:100%; }
  .book-front img { width:auto;height:100%;max-width:100%;max-height:none;object-fit:contain; }
}

@media (min-width:901px) {
  .book-object { height:min(680px,64cqh); }
}

@media (max-width: 900px) {
  body .books { --book-tabs-height:66px;--book-nav-size:38px; }
  .book-showcase { bottom:var(--book-tabs-height);padding:42px 0 28px; }
  .book-showcase-content { grid-template-columns:minmax(0,1fr) minmax(170px,39vw);width:calc(100% - 164px);height:70%;min-height:0;justify-content:stretch;gap:clamp(32px,5vw,50px);margin-right:90px; }
  .book-object-frame { width:100%;place-items:center end; }
  .book-copy h2 { font-size: clamp(34px,6.4vw,52px); }
  .book-description-text { max-height:min(28cqh,220px);font-size:var(--site-text-body);line-height:1.55; }
  .book-actions { margin-top: 20px; }
  .book-actions button { min-width: 0; }
  .book-tabs-shell { height:var(--book-tabs-height);padding:0 42px; }
  .book-tabs { justify-content: flex-start; }
  .book-tabs button { min-height:42px;padding-inline:22px;font-size:var(--site-text-small); }
  .book-tabs button::after { bottom:0; }
  .book-edge-nav { width:44px; }
}

@media (min-width:768px) and (max-width:900px) {
  .book-showcase-content { grid-template-columns:minmax(0,520px) max-content;justify-content:end; }
}

@media (max-width:767px) {
  body .books { height:100svh;min-height:0;max-height:100svh; }
}

@media (max-width: 600px) {
  body .books {
    --book-tabs-height:0px;
    --book-nav-size:28px;
    --mobile-book-height:clamp(220px,min(48svh,calc((100vw - 72px) * 1.31)),450px);
    height:100svh;
    min-height:100svh;
    max-height:100svh;
    touch-action:pan-y;
  }
  .books-shade { background:linear-gradient(90deg,rgba(4,10,16,.07),rgba(5,11,18,.34) 48%,rgba(4,9,15,.68)),linear-gradient(0deg,rgba(4,9,14,.52),transparent 42%,rgba(4,9,14,.14)); }
  .book-showcase { bottom:0;align-items:center;padding:86px 0 12px; }
  .book-showcase-content {
    grid-template-areas:'cover' 'copy' 'dots';
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:var(--mobile-book-height) auto 30px;
    width:calc(100% - 72px);
    height:auto;
    min-height:0;
    align-content:start;
    justify-content:stretch;
    gap:clamp(14px,2svh,18px);
    margin:0 auto;
  }
  .book-copy { grid-area:copy;display:block;width:100%;margin-top:10px;text-align:left; }
  .book-copy time,
  .book-copy .book-series { display:none; }
  .book-copy h2 { max-width:100%;margin-left:0;font-size:clamp(19px,5.5vw,25px);line-height:1.02;overflow-wrap:normal;word-break:normal; }
  .book-copy-divider { width:100%;margin:10px 0 12px;background:linear-gradient(90deg,rgba(208,167,103,.82),rgba(208,167,103,.06)); }
  .book-description-text { width:100%;max-width:100%;max-height:min(13svh,76px);margin-left:0;padding-right:4px;font-size:var(--site-text-body);line-height:1.35;text-align:left; }
  .book-actions { display:grid;grid-template-columns:repeat(auto-fit,minmax(108px,1fr));justify-items:stretch;gap:7px;margin-top:14px; }
  .book-actions button { width:100%;max-width:none;height:38px;padding:0 8px;font-size:var(--site-text-button); }
  .book-object-frame { grid-area:cover;width:100%;height:var(--mobile-book-height);place-items:center;overflow:visible; }
  .book-object { display:block;width:max-content;max-width:100%;height:var(--mobile-book-height);min-height:0;margin:0;transform:none; }
  .book-front { width:max-content;max-width:100%;height:var(--mobile-book-height);min-height:0; }
  .book-front img { width:auto;height:calc(var(--mobile-book-height) - 44px);max-width:calc(100vw - 116px);max-height:none;object-fit:contain; }
  .book-tabs-shell { display:none; }
  .book-mobile-dots { grid-area:dots;display:flex;align-items:center;justify-content:center;gap:8px; }
  .book-mobile-dot {
    display:grid;
    width:30px;
    height:30px;
    place-items:center;
    padding:0;
    background:transparent;
    border:0;
  }
  .book-mobile-dot::before {
    width:7px;
    height:7px;
    background:rgba(224,196,150,.38);
    border:1px solid rgba(226,184,113,.55);
    border-radius:50%;
    content:'';
    transition:background 180ms ease-out,transform 220ms cubic-bezier(.16,1,.3,1);
  }
  .book-mobile-dot.is-active::before { background:#dfb56f;transform:scale(1.35); }
  .book-mobile-dot:focus-visible { outline:1px solid #d8aa65;outline-offset:-4px; }
  .book-edge-nav { display:none; }
  .book-dialog,
  .book-reader-dialog.is-offer { width: calc(100vw - 12px); max-height: calc(100dvh - 12px); }
  .book-dialog[open],
  .book-reader-dialog.is-offer[open] { grid-template-columns: 110px minmax(0,1fr); align-items: start; padding: 52px 14px 18px; gap: 14px; }
  .book-dialog .dialog-cover,
  .book-reader-dialog.is-offer .dialog-cover { height: auto; max-height: 42dvh; object-fit: contain; }
  .book-dialog .dialog-book-copy,
  .book-reader-dialog.is-offer .dialog-book-copy { min-width: 0; padding: 0; }
  .book-dialog .dialog-book-copy h2,
  .book-reader-dialog.is-offer .dialog-book-copy h2 { margin: 6px 0 10px; font-size: clamp(24px,7.5vw,34px); overflow-wrap: anywhere; }
  .book-dialog .dialog-book-copy p,
  .book-reader-dialog.is-offer .dialog-book-copy p { font-size:var(--site-text-body);line-height:1.4; }
  .book-reader-dialog.is-offer[open] { width:calc(100vw - 24px);height:max-content;max-height:calc(100dvh - 24px);grid-template-columns:minmax(0,1fr);grid-template-rows:120px minmax(0,1fr);gap:20px;padding:52px 18px 20px; }
  .book-reader-dialog.is-offer .dialog-cover { width:auto;height:120px;max-height:120px;justify-self:center; }
  .book-reader-dialog.is-offer .dialog-book-copy .reader-offer-title { font-size:28px; }
  .book-reader-dialog.is-offer .dialog-book-copy .reader-offer-message { font-size:16px;line-height:1.6; }
  .book-reader-dialog.is-offer .shop-links a { font-size:13px; }
  .book-reader-dialog .reader-return { padding:10px 12px;font-size:14px; }
  .book-dialog .dialog-book-copy h3,
  .book-reader-dialog.is-offer .dialog-book-copy h3 { margin: 14px 0 7px; font-size: 9px; }
  .book-reader-dialog:not(.is-offer) { width: calc(100vw - 10px); height: calc(100dvh - 10px); }
  .reader-heading { align-items: start; flex-direction: column; gap: 5px; padding: 20px 46px 14px 18px; }
  .reader-heading span { font-size: 20px; }
  .reader-page { padding: 26px 21px; font-size: 16px; line-height: 1.7; }
  .book-reader-dialog .reader-controls { grid-template-columns:70px minmax(0,1fr) 112px;gap:8px;min-height:76px;padding:12px; }
  .book-reader-dialog .reader-controls button { padding:8px 10px;font-size:14px; }
}

@media (max-width:600px) and (max-height:600px) {
  .book-showcase-content { gap:6px; }
}

@media (prefers-reduced-motion: reduce) {
  .books-art,
  .book-showcase-content,
  .book-actions button,
  .book-tabs button,
  .book-mobile-dot::before,
  .book-tabs button::before,
  .book-tabs button::after { transition:none; }
  .book-nav-glyph { transition:none; }
  .book-showcase-content.is-leaving,
  .book-showcase-content.is-entering { filter: none; transform: none; }
  .book-actions button::after { animation:none; }
}
