/* Book reader — the whole reader always fits one screen (no page scroll).
   Page typography is in em, and the base size follows the page height via
   container query units, so a page keeps the same layout at any book size. */
html:has(.book-body), .book-body { height: 100%; overflow: hidden; }
.book-body {
  display: grid; grid-template-rows: auto 1fr auto;
  height: 100vh; height: 100dvh;
}
.stage {
  position: relative; z-index: 5; min-height: 0;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  padding: 12px 14px 4px;
}
.book-wrap { position: relative; width: 100%; height: 100%; min-height: 0; }
.book { width: 100%; height: 100%; filter: drop-shadow(0 26px 40px rgba(43, 42, 51, 0.28)); }
.stf__parent { width: 100%; height: 100%; }
.stf__parent button *, .stf__parent a * { pointer-events: none; }

.nav-btn {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(217, 102, 138, 0.35);
  background: rgba(255, 255, 255, 0.82); color: var(--sakura-deep);
  font-size: 34px; line-height: 1; display: grid; place-items: center; padding-bottom: 4px;
  box-shadow: var(--shadow-soft); transition: transform 0.25s var(--ease), background 0.25s, opacity 0.3s;
  position: relative; z-index: 8;
}
.nav-btn:hover { transform: scale(1.08); background: #fff; }
.nav-btn:active { transform: scale(0.95); }

.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid #eadfd2; background: #fff; color: var(--fuji); font-size: 19px;
  transition: background 0.2s, transform 0.2s var(--ease);
}
.icon-btn:hover { background: #fff3f6; transform: translateY(-1px); }

/* ---------- full-screen (immersive) mode ---------- */
.is-full { grid-template-rows: 1fr; }
.is-full .topbar, .is-full .bottombar, .is-full .hint { display: none; }
.is-full .stage { padding: 8px 6px; grid-template-columns: 1fr; }
.is-full .nav-btn { position: fixed; top: 50%; transform: translateY(-50%); opacity: 0.35; }
.is-full .nav-btn:hover { opacity: 1; transform: translateY(-50%) scale(1.08); }
.is-full .nav-btn.prev { left: 10px; }
.is-full .nav-btn.next { right: 10px; }
.full-exit {
  position: fixed; top: 10px; right: 12px; z-index: 40; display: none;
  border: none; border-radius: 999px; padding: 8px 14px; font-size: 14px;
  background: rgba(43, 42, 51, 0.55); color: #fff; backdrop-filter: blur(6px);
  opacity: 0.5; transition: opacity 0.3s;
}
.full-exit:hover { opacity: 1; }
.full-counter {
  position: fixed; bottom: 8px; left: 50%; transform: translateX(-50%); z-index: 40; display: none;
  font-family: var(--font-mincho); font-size: 13px; color: var(--sumi-soft);
  background: rgba(255, 255, 255, 0.6); border-radius: 999px; padding: 3px 12px;
}
.is-full .full-exit, .is-full .full-counter { display: block; }

/* ---------- pages: washi paper ---------- */
.page {
  background: var(--washi) var(--paper-grain);
  color: var(--sumi);
  overflow: hidden;
  container-type: size;
}
.page-inner {
  position: absolute; inset: 0;
  font-size: calc(clamp(9px, 2.35cqh, 26px) * var(--fit, 1));
  line-height: 1.5;
  padding: 1.5em 1.6em 2.2em;
  overflow: hidden; /* never scroll inside a page: pages.js splits, book.js shrinks to fit */
}
.page.measure {
  position: fixed; left: -10000px; top: 0; visibility: hidden; pointer-events: none; z-index: -1;
}
.page.--left .page-inner { padding-right: 2em; }
.page.--right .page-inner { padding-left: 2em; }
/* gutter shading so a spread reads as one bound book */
.page.--left { box-shadow: inset -26px 0 30px -24px rgba(90, 60, 40, 0.35); }
.page.--right { box-shadow: inset 26px 0 30px -24px rgba(90, 60, 40, 0.35); }
.page-no {
  position: absolute; bottom: 1.6cqh; left: 0; right: 0; text-align: center;
  font-family: var(--font-mincho); font-size: clamp(8px, 1.7cqh, 16px); color: #b49c8a; letter-spacing: 2px;
}
.page::after { /* tiny sakura mark in the outer corner */
  content: "✿"; position: absolute; top: 1.4cqh; right: 2cqw; color: var(--sakura); opacity: 0.6; font-size: clamp(9px, 2cqh, 18px);
}
.page.--left::after { right: auto; left: 2cqw; }
.page.cover::after, .page.blank::after { content: none; }

.pg-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0.1em 0.6em;
  border-bottom: 0.13em solid var(--accent); padding-bottom: 0.45em; margin-bottom: 0.8em;
}
.pg-kicker { grid-column: 1 / -1; font-family: var(--font-jp); color: var(--accent); font-size: 0.8em; letter-spacing: 0.2em; }
.pg-title { margin: 0; font-family: var(--font-mincho); font-size: 1.5em; color: var(--fuji); line-height: 1.25; }
.pg-day {
  font-family: var(--font-mincho); font-size: 0.72em; color: #fff; background: var(--beni);
  padding: 0.2em 0.6em; border-radius: 0.3em; transform: rotate(3deg);
}

/* ---------- cover ---------- */
.page.cover { background: #f4e3d7; }
.cover-art {
  position: absolute; inset: 0; overflow: hidden; font-size: clamp(9px, 2.35cqh, 26px);
  background:
    radial-gradient(circle at 78% 22%, rgba(247, 168, 160, 0.75) 0 13%, transparent 14%),
    linear-gradient(180deg, #f8dde6 0%, #fdeee5 55%, #eef2f6 100%);
}
.cover-art::before { /* Fuji silhouette */
  content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 52%;
  background: url("../img/fuji.svg") center 88% / 210% auto no-repeat;
  opacity: 0.95;
}
.cover-art::after { /* cloth binding edge */
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 3.2cqw;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #000));
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.2);
}
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-frame {
  position: absolute; inset: 3.2cqh 4cqw 3.2cqh 7cqw; padding: 1.3em 1em;
  border: 1.5px solid rgba(184, 147, 90, 0.75); outline: 1px solid rgba(184, 147, 90, 0.35); outline-offset: 5px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.45em;
}
.cover-series { font-family: var(--font-mincho); font-size: 0.72em; letter-spacing: 0.15em; color: var(--sumi-soft); line-height: 1.6; }
.cover-day { display: flex; flex-direction: column; align-items: center; margin-top: 0.3em; }
.cover-day-k {
  font-family: var(--font-mincho); font-weight: 800; font-size: 2.4em; color: #fff;
  background: var(--beni); padding: 0.12em 0.4em 0.18em; border-radius: 0.15em; letter-spacing: 0.1em;
  box-shadow: 0 6px 16px rgba(194, 65, 58, 0.35);
}
.cover-day-n { margin-top: 0.35em; font-size: 0.72em; letter-spacing: 0.2em; color: var(--beni); text-transform: uppercase; }
.cover-icon { font-size: 3.2em; margin-top: 0.1em; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.15)); }
.cover-title { margin: 0; font-family: var(--font-mincho); font-size: 1.8em; line-height: 1.35; color: var(--sumi); text-shadow: 0 2px 0 rgba(255, 255, 255, 0.8); }
.cover-sub { margin: 0; }
.cover-sub .tr { color: var(--fuji); font-size: 0.95em; font-weight: 600; }
.cover-life {
  margin-top: auto; background: rgba(255, 255, 255, 0.85); border-radius: 0.8em;
  padding: 0.5em 0.9em; font-size: 0.85em; box-shadow: var(--shadow-soft);
}
.cover-life .jp { font-weight: 700; color: var(--matcha); }

.back-art { display: grid; place-items: center; }
.back-inner { position: relative; z-index: 2; text-align: center; background: rgba(255, 255, 255, 0.82); padding: 1.4em 1.8em; border-radius: 1em; box-shadow: var(--shadow-soft); }
.back-kanji { font-family: var(--font-mincho); font-size: 1.6em; color: var(--fuji); }
.back-brand { margin-top: 0.6em; font-family: var(--font-mincho); letter-spacing: 0.4em; color: var(--beni); }

/* ---------- intro ---------- */
.goals, .points, .cando, .videos, .words, .bubbles, .listen, .quiz-list, .examples { list-style: none; margin: 0; padding: 0; }
.goals li { display: flex; gap: 0.7em; padding: 0.65em 0; border-bottom: 1px dashed #e6d4c4; font-size: 1.05em; }
.goals .check { color: var(--sakura-deep); font-size: 1.2em; }
.hours { display: flex; flex-wrap: wrap; gap: 0.5em; margin: 1em 0; }
.hour-chip { background: var(--fuji-mist); color: var(--fuji); border-radius: 999px; padding: 0.35em 0.8em; font-size: 0.8em; }
.cast ul { display: flex; flex-wrap: wrap; gap: 0.6em; list-style: none; padding: 0; margin: 0.6em 0 0; }
.cast li { display: flex; align-items: center; gap: 0.35em; background: #fff; border-radius: 999px; padding: 0.25em 0.8em 0.25em 0.25em; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); font-size: 0.9em; }
.avatar { display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: 50%; background: #ffeef3; font-size: 1.2em; flex: none; }
.haiku {
  position: absolute; right: 1.4em; bottom: 2.4em; writing-mode: vertical-rl;
  font-family: var(--font-mincho); font-size: 1.8em; letter-spacing: 0.3em; color: rgba(217, 102, 138, 0.28);
}

/* ---------- vocabulary ---------- */
.words { display: grid; gap: 0.5em; }
.word {
  display: grid; grid-template-columns: 2.6em 1fr auto; align-items: center; gap: 0.7em;
  background: #fff; border-radius: 0.8em; padding: 0.45em 0.7em;
  border: 1px solid #f0e2d6; box-shadow: 0 3px 0 #f1e4d8;
  transition: transform 0.2s var(--ease);
}
.word:hover { transform: translateY(-2px); }
.word-icon { font-size: 1.8em; text-align: center; }
.word-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.word-ja { font-size: 1.3em; font-weight: 700; line-height: 1.55; }
.romaji { font-size: 0.72em; color: var(--gold); letter-spacing: 0.03em; }
.word .tr { font-size: 0.85em; }
.words.compact { gap: 0.4em; }
.words.compact .word { padding: 0.3em 0.6em; grid-template-columns: 2.2em 1fr auto; }
.words.compact .word-icon { font-size: 1.45em; }
.words.compact .word-ja { font-size: 1.1em; }

.play {
  width: 2.4em; height: 2.4em; border-radius: 50%; border: none; flex: none; padding: 0;
  background: linear-gradient(145deg, #f7b6c8, var(--sakura-deep)); color: #fff; font-size: 0.85em;
  box-shadow: 0 4px 10px rgba(217, 102, 138, 0.35); transition: transform 0.2s var(--ease);
}
.play:hover { transform: scale(1.08); }
.play.mini { width: 1.9em; height: 1.9em; font-size: 0.7em; vertical-align: middle; margin: 0 0.4em; }
.play.big { width: 2.8em; height: 2.8em; font-size: 1em; }
.play.playing, .bubble.playing .play { animation: pulse 0.9s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(243, 166, 189, 0.3); } }

/* ---------- dialogue ---------- */
.scene { margin: 0 0 0.6em; background: var(--fuji-mist); padding: 0.45em 0.7em; border-radius: 0.5em; font-size: 0.85em; }
.scene .tr { display: inline; color: var(--fuji); font-size: 1em; }
.play-all {
  border: none; background: var(--fuji); color: #fff; border-radius: 999px; padding: 0.45em 1em; font-size: 0.85em; margin-bottom: 0.7em;
  box-shadow: 0 4px 12px rgba(62, 92, 138, 0.3);
}
.bubbles { display: flex; flex-direction: column; gap: 0.55em; }
.bubble { display: flex; align-items: flex-start; gap: 0.5em; }
.bubble.right { flex-direction: row-reverse; }
.bubble-body {
  background: #fff; border-radius: 1em; padding: 0.4em 0.75em; max-width: 78%;
  border: 1px solid #f0e2d6; position: relative; font-size: 1.02em; line-height: 1.6;
}
.bubble-body .tr { font-size: 0.8em; }
.bubble.left .bubble-body { border-top-left-radius: 0.25em; }
.bubble.right .bubble-body { border-top-right-radius: 0.25em; background: #fff4f7; border-color: #f7d6e0; }
.bubble.playing .bubble-body { box-shadow: 0 0 0 3px var(--sakura); }
.speaker { display: block; font-size: 0.7em; color: var(--accent); font-weight: 700; }
.bubble .play { margin-top: 1em; }

/* ---------- grammar ---------- */
.gram { margin-bottom: 1em; }
.pattern {
  font-size: 1.25em; font-weight: 700; color: var(--fuji); background: #fff;
  border-left: 0.3em solid var(--accent); padding: 0.4em 0.7em; border-radius: 0 0.4em 0.4em 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}
.explain { margin: 0.5em 0; }
.explain .tr { font-size: 0.92em; color: var(--sumi); }
.examples li { padding: 0.35em 0 0.35em 0.9em; border-left: 2px dotted var(--sakura); font-size: 1.02em; line-height: 1.6; }
.examples .tr { font-size: 0.8em; }

/* ---------- listening / quiz ---------- */
.instruction { margin: 0 0 0.7em; font-size: 0.92em; }
.instruction .tr { display: inline; color: var(--sumi); font-size: 1em; }
.listen-item, .quiz-item { background: #fff; border-radius: 0.8em; padding: 0.6em 0.7em; margin-bottom: 0.6em; border: 1px solid #f0e2d6; }
.listen-row { display: flex; align-items: center; gap: 0.6em; }
.listen-no, .q-no { font-family: var(--font-mincho); font-weight: 800; color: var(--beni); font-size: 1.1em; }
.q-no { margin-right: 0.5em; }
.listen-q { font-size: 0.92em; }
.quiz-q { margin: 0 0 0.3em; font-size: 1em; line-height: 1.6; }
.quiz-q .tr { font-size: 0.8em; }
.choices { display: flex; flex-wrap: wrap; gap: 0.45em; margin-top: 0.5em; }
.choice {
  flex: 1 1 30%; min-width: 5.5em; text-align: left; background: var(--washi);
  border: 1.5px solid #ead8c8; border-radius: 0.5em; padding: 0.4em 0.6em; font-size: 0.95em; color: var(--sumi); line-height: 1.4;
  transition: transform 0.15s var(--ease), border-color 0.2s, background 0.2s;
}
.choice small { display: block; }
.choice small .tr { font-size: 0.75em; }
.choice:hover:not(:disabled) { border-color: var(--sakura-deep); transform: translateY(-1px); }
.choice.right { background: #eaf4e6; border-color: var(--matcha); }
.choice.wrong { background: #fdecea; border-color: var(--beni); animation: shake 0.35s; }
.choice:disabled { cursor: default; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.feedback { min-height: 1.3em; margin-top: 0.3em; font-size: 0.82em; font-weight: 600; }
.feedback.ok { color: var(--matcha); }
.feedback.ng { color: var(--beni); }
.score {
  margin-top: 0.4em; text-align: center; font-family: var(--font-mincho); font-size: 1.05em;
  background: #fff; border-radius: 0.8em; padding: 0.5em; border: 2px dashed var(--sakura);
}
.score b { font-size: 1.5em; color: var(--beni); }

/* ---------- practice ---------- */
.model-card {
  position: relative; background: #fff; border-radius: 0.8em; padding: 1.3em 1em 0.7em;
  border: 1px solid #f0e2d6; margin: 0.7em 0 0.9em;
  background-image: repeating-linear-gradient(transparent 0 2.15em, #f3e6da 2.15em calc(2.15em + 1px));
}
.model-label { position: absolute; top: -0.75em; left: 0.9em; background: var(--accent); color: #fff; border-radius: 999px; padding: 0.1em 0.8em; font-size: 0.8em; }
.model-card ol { margin: 0; padding-left: 1.3em; font-size: 1.12em; line-height: 1.95; }
.tip { background: #fff8e6; border-radius: 0.5em; padding: 0.6em 0.75em; font-size: 0.85em; }
.tip .tr { display: inline; color: var(--sumi); font-size: 1em; }
.practice-art { text-align: center; font-size: 2.4em; margin-top: 0.4em; opacity: 0.7; letter-spacing: 0.25em; }

/* ---------- life ---------- */
.life-title { margin: 0 0 0.35em; font-family: var(--font-mincho); font-size: 1.3em; color: var(--matcha); }
.intro-text { margin: 0 0 0.6em; }
.intro-text .tr { font-size: 0.88em; color: var(--sumi); }
.points li { display: flex; gap: 0.7em; align-items: flex-start; padding: 0.5em 0; border-bottom: 1px dashed #e6d4c4; }
.points .tr { font-size: 0.82em; }
.pt-icon { font-size: 1.5em; width: 1.6em; text-align: center; flex: none; line-height: 1.2; }
.pt-ja { display: block; font-weight: 700; font-size: 1em; }
.sec-sub { margin: -0.3em 0 0.6em; }
.sec-sub .tr { color: var(--fuji); font-weight: 600; font-size: 0.95em; }
.dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6em; margin-bottom: 0.8em; }
.dodont > div { background: #fff; border-radius: 0.8em; padding: 0.55em 0.7em; }
.dodont h4 { margin: 0 0 0.35em; font-size: 0.9em; }
.dodont ul { margin: 0; padding-left: 1.1em; font-size: 0.9em; }
.dodont li { margin-bottom: 0.35em; }
.dodont .tr { font-size: 0.85em; }
.do { border-top: 0.25em solid var(--matcha); }
.dont { border-top: 0.25em solid var(--beni); }
.contact .tel { display: inline-block; margin: 0.1em 0; font-family: var(--font-mincho); font-weight: 800; font-size: 1.15em; color: var(--beni); text-decoration: none; }
.contact b { display: block; }

/* ---------- closing ---------- */
.video { display: flex; gap: 0.7em; align-items: center; background: #fff; border-radius: 0.8em; padding: 0.55em; margin-bottom: 0.55em; border: 1px solid #f0e2d6; }
.qr { width: 5.4em; height: 5.4em; background: #fff; padding: 0.2em; border-radius: 0.35em; border: 1px solid #eee; flex: none; }
.video b .tr { color: var(--sumi); font-size: 0.85em; }
.src { display: block; color: var(--sumi-soft); font-size: 0.72em; }
.open { display: inline-block; margin-top: 0.2em; font-size: 0.78em; }
.cando-title { font-family: var(--font-mincho); color: var(--fuji); font-size: 1.1em; margin: 0.9em 0 0.35em; }
.cando label { display: flex; gap: 0.6em; align-items: flex-start; padding: 0.4em 0; cursor: pointer; }
.cando .tr { font-size: 0.82em; }
.cando input { width: 1.2em; height: 1.2em; accent-color: var(--sakura-deep); margin-top: 0.2em; }
.tnote { margin-top: 0.7em; background: var(--fuji-mist); border-radius: 0.5em; padding: 0.45em 0.7em; font-size: 0.82em; }
.tnote summary { cursor: pointer; color: var(--fuji); font-weight: 600; }
.tnote .tr { color: var(--sumi); }

.blank-art { position: absolute; inset: 0; display: grid; place-items: center; }
.blank-art span { font-family: var(--font-mincho); font-size: 18cqh; color: rgba(243, 166, 189, 0.18); }

/* ---------- footer ---------- */
.bottombar {
  position: relative; z-index: 6;
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 4px 12px 10px;
}
.pill {
  background: rgba(255, 255, 255, 0.85); border-radius: 999px; padding: 7px 15px; text-decoration: none;
  color: var(--sumi); font-size: 14px; box-shadow: var(--shadow-soft); transition: transform 0.2s var(--ease);
}
.pill:hover { transform: translateY(-2px); }
.pager { font-family: var(--font-mincho); background: rgba(255, 255, 255, 0.85); border-radius: 999px; padding: 7px 14px; font-size: 14px; }
.hint {
  position: fixed; left: 50%; bottom: 64px; transform: translateX(-50%); z-index: 30;
  background: rgba(43, 42, 51, 0.78); color: #fff; padding: 8px 16px; border-radius: 999px; font-size: 13px;
  transition: opacity 0.6s; pointer-events: none;
}
.hint.gone { opacity: 0; }
.load-error { padding: 40px; background: var(--washi); border-radius: var(--radius-l); font-size: 18px; }

@media (max-width: 819px) {
  .stage { padding: 6px 4px 2px; grid-template-columns: 1fr; }
  .nav-btn { position: fixed; bottom: 56px; width: 42px; height: 42px; font-size: 28px; opacity: 0.85; }
  .nav-btn.prev { left: 8px; }
  .nav-btn.next { right: 8px; }
  .page.--left .page-inner, .page.--right .page-inner { padding-left: 1.4em; padding-right: 1.4em; }
  .dodont { grid-template-columns: 1fr; }
  .toc-select { max-width: 46vw; }
  .bottombar .pill { padding: 6px 11px; font-size: 13px; }
}

/* ---------- settings popover (phones) ---------- */
.settings { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.settings-btn { display: none; }
@media (max-width: 819px) {
  .book-body .topbar { flex-wrap: nowrap; }
  .book-body .brand-text { display: none; }
  .book-body .topbar-tools { width: auto; flex-wrap: nowrap; position: relative; }
  .settings-btn { display: inline-grid; }
  .settings {
    position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; width: min(280px, 88vw);
    flex-direction: column; align-items: stretch; gap: 8px; padding: 12px;
    background: var(--washi); border-radius: var(--radius-m); box-shadow: var(--shadow-deep);
    border: 1px solid #eadfd2;
    opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity 0.2s, transform 0.2s var(--ease);
  }
  .settings.open { opacity: 1; transform: none; pointer-events: auto; }
  .settings .toggle { justify-content: flex-start; font-size: 14px; padding: 8px 12px; }
  .settings .lang-select { max-width: none; width: 100%; }
  .bottombar { flex-wrap: nowrap; gap: 6px; padding: 4px 58px 8px; }
  .bottombar .toc, .bottombar .home-text, .bottombar .nd-text { display: none; }
  .nav-btn { bottom: 6px; }
  .hint { bottom: 60px; }
}

/* ---------- per-sentence picture + illustration pages ---------- */
.pic {
  display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; margin-right: 0.35em; vertical-align: middle;
  border-radius: 50%; background: #fff; border: 1px solid #f3dfe6; font-size: 1.05em; line-height: 1;
  box-shadow: 0 2px 6px rgba(217, 102, 138, 0.15); flex: none; font-style: normal;
}
.goals li .pic { font-size: 1.15em; }
.bubble-body .pic { width: 1.5em; height: 1.5em; font-size: 0.95em; }
.examples li { display: block; }
.dodont li { list-style: none; margin-left: -1.1em; }
.play.mini { margin: 0 0.25em; vertical-align: 0.1em; }
.cover-title .play.mini { font-size: 0.32em; vertical-align: 0.6em; }
.pg-title .play.mini { font-size: 0.45em; vertical-align: 0.4em; }
.pt-ja .play.mini, .contact b .play.mini { font-size: 0.62em; }
.cando li { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.4em; }
.cando li .play { margin-top: 0.5em; }

.scene-fig {
  margin: 0 0 0.8em; border-radius: 1em; overflow: hidden; position: relative;
  height: 52cqh; box-shadow: 0 10px 24px rgba(62, 92, 138, 0.18); border: 0.35em solid #fff;
  transform: rotate(-0.6deg);
}
.scene-fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scene-fig::after { /* washi tape */
  content: ""; position: absolute; top: -0.2em; left: 50%; width: 5em; height: 1.3em; transform: translateX(-50%) rotate(-3deg);
  background: rgba(243, 166, 189, 0.55);
}
.scene-title { margin: 0.2em 0 0.4em; font-family: var(--font-mincho); font-size: 1.35em; color: var(--matcha); line-height: 1.4; }
.scene-title small { display: block; font-family: var(--font-text); }
.scene-title small .tr { font-size: 0.62em; color: var(--fuji); }
.scene-page .intro-text .tr { font-size: 0.95em; }
.cast-row { display: flex; flex-wrap: wrap; gap: 0.5em; margin-top: 0.6em; }
.cast-chip { display: inline-flex; align-items: center; gap: 0.35em; background: #fff; border-radius: 999px; padding: 0.2em 0.8em 0.2em 0.2em; font-size: 0.9em; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); }

/* ---------- page-turn corner hint (drag here to turn) ---------- */
.page:not(.cover)::before {
  content: ""; position: absolute; bottom: 0; right: 0; z-index: 3; width: 3.4cqw; height: 3.4cqw; min-width: 16px; min-height: 16px;
  background: linear-gradient(135deg, transparent 50%, #efe2d2 50%, #e2cdb8 100%);
  box-shadow: -2px -2px 4px rgba(90, 60, 40, 0.12); pointer-events: none;
  transition: width 0.25s var(--ease), height 0.25s var(--ease);
}
.page.--left:not(.cover)::before { right: auto; left: 0; background: linear-gradient(225deg, transparent 50%, #efe2d2 50%, #e2cdb8 100%); box-shadow: 2px -2px 4px rgba(90, 60, 40, 0.12); }
.page:not(.cover):hover::before { width: 5cqw; height: 5cqw; }
@media (hover: none) { .page:not(.cover)::before { display: none; } }
