/* Mobile chapter navigation and its cream-paper chapter directory. */
.chip.chapter-more{display:none}
.chapter-menu[hidden]{display:none!important}
.chapter-menu{position:fixed;inset:0;z-index:1000;display:flex;align-items:flex-end;justify-content:center;
  padding:18px 10px 0;background:rgba(64,51,43,.38);overscroll-behavior:none}
.chapter-menu__panel{position:relative;display:flex;flex-direction:column;width:100%;max-width:480px;min-height:0;
  max-height:calc(100vh - 36px);max-height:calc(100dvh - 36px);border:1px solid #e4d7c6;border-bottom:0;
  border-radius:28px 28px 0 0;background:#fffdf7;color:#5c4a41;box-shadow:0 -12px 50px rgba(66,47,36,.15);
  padding-bottom:env(safe-area-inset-bottom,0px);animation:chapter-arrive .2s ease-out}
.chapter-menu__panel::before{content:"";position:absolute;top:-7px;left:calc(50% - 37px);width:74px;height:19px;
  transform:rotate(-3deg);background:repeating-linear-gradient(90deg,#edbab288 0 7px,#f3cfc388 7px 14px);pointer-events:none}
.chapter-menu__head{flex:none;position:relative;display:flex;align-items:center;gap:13px;padding:25px 56px 18px 22px}
.chapter-menu__mascot{width:48px;height:64px;object-fit:contain;flex:none}
.chapter-menu__eyebrow{display:block;font-size:10px;letter-spacing:.18em;color:#9c8976;margin-bottom:5px}
.chapter-menu__title{margin:0;font-family:var(--hand);font-size:22px;line-height:1.5;font-weight:800;color:#614b3f}
.chapter-menu__intro{margin:3px 0 0;font-size:12px;line-height:1.6;color:#9b897b}
.chapter-menu__close{position:absolute;top:20px;right:16px;width:36px;height:36px;display:grid;place-items:center;
  border:1px solid #e8dfd1;border-radius:50%;background:#f6f1e8;color:#927769}
.chapter-menu__close svg{width:15px;height:15px}
.chapter-menu__context{flex:none;display:flex;align-items:baseline;justify-content:space-between;gap:12px;
  margin:0 22px 12px;padding:10px 0;border-top:1px dashed #e6dbc9;border-bottom:1px dashed #e6dbc9}
.chapter-menu__campaign{font-size:12px;line-height:1.6;overflow-wrap:anywhere;font-weight:600}
.chapter-menu__count{font-size:11px;color:#a18c79;white-space:nowrap;flex:none}
.chapter-menu__list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;
  display:flex;flex-direction:column;gap:10px;padding:3px 20px 18px;scrollbar-width:thin;scrollbar-color:#d4c8b7 transparent}
.chapter-menu__item{position:relative;flex:none;display:flex;align-items:center;gap:12px;width:100%;min-height:79px;
  padding:12px;border:1px solid #ece2d3;border-radius:17px;background:#fffefb;color:#655145;text-align:left;
  box-shadow:0 3px 7px -5px #b7a28c;transition:background .15s,border-color .15s}
.chapter-menu__item.is-current{background:#eef2e7;border-color:#aebc9c;box-shadow:0 3px 8px -6px #6a8258}
.chapter-menu__stamp{position:relative;flex:none;display:grid;place-items:center;width:49px;height:52px;
  background:var(--chapter-tint,#f4e8d3);border-radius:10px 13px 13px 10px;color:#9c7c60}
.chapter-menu__stamp::before{content:"";position:absolute;inset:5px;border:1px dashed #fffdf4;border-radius:7px;opacity:.8}
.chapter-menu__stamp svg{position:relative;width:24px;height:24px}
.chapter-menu__copy{flex:1;min-width:0}
.chapter-menu__name{display:block;font-family:var(--hand);font-size:16px;font-weight:700;line-height:1.5;overflow-wrap:anywhere}
.chapter-menu__meta{display:block;margin-top:4px;color:#a18e7c;font-size:11px;letter-spacing:.03em}
.chapter-menu__state{flex:none;display:flex;align-items:center;gap:4px;font-size:11px;color:#71846a;white-space:nowrap}
.chapter-menu__state svg{width:17px;height:17px}
.chapter-menu__item:not(.is-current) .chapter-menu__state{color:#baa48c}
.chapter-menu__foot{flex:none;margin:0;padding:12px 16px 15px;border-top:1px solid #eee6d9;text-align:center;
  font-family:var(--hand);font-size:12px;line-height:1.6;color:#9c8b7b;background:#f8f4eb;border-radius:0}
.chapter-menu button:focus-visible,.chapter-more:focus-visible{outline:3px solid #aa9274;outline-offset:3px}
@media(max-width:767px){
  .rail.chapter-rail{overflow:visible;padding-top:8px;padding-bottom:8px}
  .chapter-rail .railin{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .chapter-rail.has-more .railin{grid-template-columns:repeat(3,minmax(0,1fr))}
  .chapter-rail .chip{min-width:0;width:100%;height:48px;padding:0 10px;justify-content:center;gap:5px}
  .chapter-rail .chip .nm{min-width:0;overflow:hidden;text-overflow:ellipsis}
  .chapter-rail .chip.chapter-overflow{display:none}
  .chapter-rail .chip.chapter-more{display:flex;border-style:dashed;border-color:#bfab91;background:#f2eadb;color:#80674f}
  .chapter-rail .chapter-more.is-current{border-style:solid;border-color:#8d6e63;background:#8d6e63;color:#fff}
  .chapter-more__copy{display:flex;flex-direction:column;min-width:0;line-height:1.25}
  .chapter-more__label{font-size:14px;font-weight:700}
  .chapter-more__current{font-size:10px;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
  .chapter-more__icon{flex:none;width:13px;height:13px}
}
@keyframes chapter-arrive{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.chapter-menu__panel{animation:none}.chapter-menu__item{transition:none}}
