.book-punishment {
  position: fixed;
  inset: 0;
  z-index: 150;
  outline: none;
  touch-action: manipulation;
}
.book-punishment__veil { position: absolute; inset: 0; overflow: hidden; pointer-events: none; background: rgba(0, 0, 0, .30); }
.book-punishment.has-spotlight .book-punishment__veil { background: transparent; }
.book-punishment__hole,
.book-punishment__glow { position: absolute; display: none; border-radius: 7px; pointer-events: none; }
.book-punishment.has-spotlight .book-punishment__hole,
.book-punishment.has-spotlight .book-punishment__glow { display: block; }
/* A transparent window with an outside-only dimmer, without SVG mask URLs. */
.book-punishment__hole { box-shadow: 0 0 0 200vmax rgba(0, 0, 0, .30); }
.book-punishment__glow { border: 1.5px solid #fff8d9; box-shadow: 0 0 6px 2px #fff7c9bb, 0 0 16px 3px #fff5bf88; }
.book-punishment__dialogue {
  position: absolute;
  width: max-content;
  max-width: min(880px, calc(100% - 72px));
  left: 50%;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  font: 600 clamp(21px, 2.1vw, 30px)/1.65 "I.MingCP", "Noto Serif TC", "PMingLiU", serif;
  letter-spacing: .06em;
  color: white;
}
.book-punishment__row { display: flex; align-items: center; gap: 24px; }
.book-punishment__line { flex: 1; min-width: 0; margin: 0; cursor: pointer; }
.book-punishment.has-pick .book-punishment__line { cursor: default; }
.book-punishment .speaker-jiayu { color: #ffd4ad; }
.book-punishment .speaker-xinling { color: #fff; }
.book-punishment .speaker-mengjie { color: #e4cfff; font-family: "Microsoft JhengHei", "Noto Sans TC", sans-serif; font-weight: 400; }
.book-punishment .speaker-both .dialogue-frost__content {
  color: #fff;
  background: linear-gradient(90deg, #ffd4ad 10%, #fff 90%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.book-punishment__poke {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 8px 22px;
  border: 1px solid #ffe7c8aa;
  border-radius: 999px;
  color: #fff1db;
  background: #39373185;
  backdrop-filter: blur(12px);
  font: 600 20px/1.4 "I.MingCP", "Noto Serif TC", serif;
  letter-spacing: .08em;
  cursor: pointer;
}
.book-punishment__poke:hover { background: #50483ca6; }
.book-punishment__poke:disabled { cursor: wait; }
.book-punishment__next {
  display: block;
  flex: 0 0 auto;
  align-self: flex-end;
  margin: 0 0 4px;
  padding: 6px 2px;
  min-height: 32px;
  border: 0;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
  color: #fffe;
  font: 400 13px/1.4 "Microsoft JhengHei", sans-serif;
  letter-spacing: .08em;
  white-space: nowrap;
  cursor: pointer;
}
.book-punishment__poke:focus-visible { outline: 2px solid #fff3d3; outline-offset: 4px; }
.book-punishment .book-punishment__next:focus-visible {
  outline: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.book-punishment [hidden] { display: none !important; }
.book-punishment.is-picking .book-punishment__dialogue { visibility: hidden; }
body.has-book-punishment .ebook-toolbar,
body.has-book-punishment #restartButton { visibility: hidden; pointer-events: none; }
@media (max-width: 760px) {
  .ebook-shell[data-book-mode="fold-preview"][data-book-punishment-preview="true"] { width: 1052px; }
  .book-punishment__dialogue {
    max-width: calc(100% - 32px);
    font-size: clamp(18px, 4.9vw, 24px);
    line-height: 1.6;
    letter-spacing: .035em;
  }
  .book-punishment__row { gap: 10px; }
  .book-punishment__poke { padding: 8px 12px; font-size: 18px; }
  .book-punishment__next { font-size: 12px; }
}
@media (max-height: 520px) {
  .book-punishment__dialogue { font-size: 18px; line-height: 1.4; }
}
