
.tv { position: relative; overflow-x: clip; }
.tv__grid { display: grid; gap: clamp(18px, 3vw, 34px); }
.tv__head { display: grid; justify-items: center; text-align: center; }
.tv__head .catch { margin-top: 6px; }

.tv__deck { position: relative; display: grid; place-items: center; padding: clamp(6px, 2vw, 24px) 0 clamp(14px, 2.4vw, 30px); min-width: 0; }
.tv__deck::before { content: ""; position: absolute; left: 50%; top: 52%; width: min(1100px, 120%); height: 70%; transform: translate(-50%, -50%); pointer-events: none; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(159, 179, 238, .16), rgba(187, 165, 231, .08) 45%, transparent 72%); }
.bk { --pw: 340px; --ph: 460px; --paper: #f4efe6; --paper-2: #ece5d8; --ink-h: #2b2552; --ink-m: #6d6787; --ease-turn: cubic-bezier(.23, 1, .32, 1);
  position: relative; width: calc(var(--pw) * 2); height: var(--ph); outline: none; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.bk[data-mode="single"] { width: var(--pw); }
.bk:focus-visible { outline: 2px solid var(--peri, #9fb3ee); outline-offset: 10px; border-radius: 14px; }
.bk__book { position: absolute; inset: 0; perspective: calc(var(--pw) * 4.2); perspective-origin: 50% 40%; will-change: transform; }
.bk.is-fade .bk__book { animation: bkFade .32s ease both; }
@keyframes bkFade { from { opacity: .35; } to { opacity: 1; } }

.bk__base, .bk__leaf { position: absolute; top: 0; left: 50%; width: var(--pw); height: 100%; }
.bk[data-mode="single"] .bk__base, .bk[data-mode="single"] .bk__leaf { left: 0; }
.bk__base { z-index: 0; border-radius: 3px 10px 10px 3px;
  box-shadow: 1px 1px 0 #d9d0c0, 2px 2px 0 #efe9de, 3px 3px 0 #d6ccbb, 4px 4px 0 #ebe4d7, 5px 5px 0 #cfc5b3, 0 40px 70px -30px rgba(0, 0, 0, .95), 0 18px 30px -18px rgba(0, 0, 0, .7); }
.bk__base > .bk__pg { border-radius: inherit; }
.bk__book::before { content: ""; position: absolute; top: 0; left: 0; width: var(--pw); height: 100%; border-radius: 10px 3px 3px 10px; background: #e9e2d5; opacity: 1; transition: opacity .3s;
  box-shadow: -1px 1px 0 #d9d0c0, -2px 2px 0 #efe9de, -3px 3px 0 #d6ccbb, -4px 4px 0 #ebe4d7, -5px 5px 0 #cfc5b3, 0 40px 70px -30px rgba(0, 0, 0, .95), 0 18px 30px -18px rgba(0, 0, 0, .7); }
.bk.is-closed .bk__book::before, .bk[data-mode="single"] .bk__book::before { opacity: 0; }
.bk__book::before { content: none; display: none; }
.bk__stk { position: absolute; top: 0; left: 0; z-index: 0; width: var(--pw); height: 100%; border-radius: 10px 3px 3px 10px; background: #e9e2d5; opacity: 0; pointer-events: none;
  box-shadow: -1px 1px 0 #d9d0c0, -2px 2px 0 #efe9de, -3px 3px 0 #d6ccbb, -4px 4px 0 #ebe4d7, -5px 5px 0 #cfc5b3, 0 40px 70px -30px rgba(0, 0, 0, .95), 0 18px 30px -18px rgba(0, 0, 0, .7); }
.bk[data-mode="single"] .bk__stk { display: none; }

.bk__leaf { transform-origin: 0 50%; transform-style: preserve-3d; }
.bk__leaf.is-top, .bk__leaf.is-topl { cursor: grab; }
.bk.is-drag .bk__leaf { cursor: grabbing; }
.bk__face { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 3px 10px 10px 3px; }
.bk__face--b { transform: rotateY(180deg); border-radius: 10px 3px 3px 10px; }
.bk[data-mode="single"] .bk__face--b { border-radius: 3px 10px 10px 3px; }
.bk__sh { position: absolute; inset: 0; pointer-events: none; z-index: 5; opacity: calc(var(--k, 0) * .85); }
.bk__face--f .bk__sh { background: linear-gradient(90deg, rgba(20, 16, 40, .42), rgba(20, 16, 40, .06) 55%, rgba(255, 255, 255, .12)); }
.bk__face--b .bk__sh { background: linear-gradient(270deg, rgba(20, 16, 40, .34), rgba(20, 16, 40, 0) 50%, rgba(255, 255, 255, .16)); }

.bk__face--f::after, .bk__face--b::after { content: ""; position: absolute; bottom: 0; width: 46px; height: 46px; z-index: 6; pointer-events: none; opacity: 0;
  transition: transform .35s var(--ease-turn), opacity .25s; }
.bk__face--f::after { right: 0; transform-origin: 100% 100%; transform: scale(.4); background: linear-gradient(315deg, transparent 50%, #fffdf8 50%, #ddd4c4 78%, #cfc5b3); box-shadow: -3px -3px 8px -3px rgba(20, 16, 40, .25); border-radius: 0 0 10px 0; }
.bk__face--b::after { left: 0; transform-origin: 0 100%; transform: scale(.4); background: linear-gradient(45deg, transparent 50%, #fffdf8 50%, #ddd4c4 78%, #cfc5b3); box-shadow: 3px -3px 8px -3px rgba(20, 16, 40, .25); border-radius: 0 0 0 10px; }
.bk__leaf.is-top .bk__face--f::after, .bk__leaf.is-topl .bk__face--b::after { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .bk__leaf.is-top .bk__face--f::after, .bk__leaf.is-topl .bk__face--b::after { opacity: 0; }
  .bk:hover .bk__leaf.is-top .bk__face--f::after, .bk:hover .bk__leaf.is-topl .bk__face--b::after { opacity: 1; transform: scale(.75); }
  .bk__leaf.is-top:hover .bk__face--f::after, .bk__leaf.is-topl:hover .bk__face--b::after { transform: scale(1.05); }
}
.bk.is-drag .bk__face::after, .bk__leaf.is-moving .bk__face::after { opacity: 0 !important; }
.bk__cover::after { display: none; }

.bk__pg { position: absolute; inset: 0; display: flex; flex-direction: column; padding: calc(var(--pw) * .1) calc(var(--pw) * .1) calc(var(--pw) * .12); color: var(--ink-h); }
.bk__paper { background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .25 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(120% 90% at 70% 20%, #faf6ef, var(--paper) 55%, var(--paper-2)); }
.bk__face--f .bk__paper, .bk__base .bk__paper { box-shadow: inset 22px 0 26px -22px rgba(60, 45, 30, .38); }
.bk__face--b .bk__paper { box-shadow: inset -22px 0 26px -22px rgba(60, 45, 30, .38); }
.bk[data-mode="single"] .bk__paper { box-shadow: inset 10px 0 16px -12px rgba(60, 45, 30, .3); }

.bk__run { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .7rem; font-weight: 700; letter-spacing: .02em; color: #9a93ae; }
.bk__ex { font-size: .66rem; font-weight: 800; color: #6a3f62; background: rgba(232, 195, 223, .55); padding: 3px 9px; border-radius: 7px; }
.bk__q { --lh: 1.36em; margin: auto 0 0; font-family: "Caveat", "Segoe Script", cursive; font-weight: 600; font-size: calc(var(--pw) * .07); line-height: var(--lh); color: var(--ink-h); letter-spacing: .005em; text-wrap: pretty;
  background: linear-gradient(transparent calc(100% - 1px), rgba(84, 92, 160, .16) 0) 0 -.18em / 100% var(--lh); padding-bottom: .1em; }
.bk__q.is-long { font-size: calc(var(--pw) * .06); }
.bk__who { display: grid; gap: 2px; margin: 1.1em 0 auto; padding-top: 14px; position: relative; }
.bk__who::before { content: ""; position: absolute; left: 0; top: 0; width: 38px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #9fb3ee, #e8c3df); }
.bk__who b { font-size: calc(var(--pw) * .036); min-height: 0; font-weight: 800; color: #1f1b36; letter-spacing: -.01em; }
.bk__who span { font-size: calc(var(--pw) * .029); font-weight: 600; color: var(--ink-m); line-height: 1.35; }
.bk__fol { position: absolute; left: 0; right: 0; bottom: calc(var(--pw) * .045); text-align: center; font-size: .68rem; font-weight: 700; color: #aaa3bb; font-variant-numeric: tabular-nums; letter-spacing: .08em; }

.bk__pola { position: relative; align-self: flex-end; flex: none; width: 38%; margin: calc(var(--pw) * .05) 2% 0 0; padding: 6px 6px 0; background: #fff; transform: rotate(var(--r, 3deg));
  box-shadow: 0 10px 20px -10px rgba(30, 20, 40, .45), 0 1px 2px rgba(30, 20, 40, .2); }
.bk__pola::before { content: ""; position: absolute; left: 50%; top: -9px; width: 54px; height: 18px; transform: translateX(-50%) rotate(-4deg); background: rgba(232, 195, 223, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.bk__pola img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.bk__pola figcaption { padding: 5px 2px 7px; font-family: "Caveat", cursive; font-weight: 600; font-size: .92rem; line-height: 1; color: #4b456b; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk__paper.has-ph .bk__q { margin-top: auto; }

.bk__gm { display: inline-flex; align-items: center; gap: 7px; color: #6f6888; }
.bk__gm .gmark { width: 15px; height: 15px; }
.bk__stars { margin: auto 0 .5em; font-size: calc(var(--pw) * .042); }
.bk__rq { margin: 0; font-size: calc(var(--pw) * .041); font-weight: 500; line-height: 1.5; color: #2c2741; display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; overflow: hidden; }
.bk__rq.is-long { font-size: calc(var(--pw) * .031); line-height: 1.45; -webkit-line-clamp: 16; }

.bk__pend { display: inline-block; padding: 3px 9px; border-radius: 6px; transform: rotate(-3deg); font-size: .66rem; font-weight: 800; color: #6248b0; background: rgba(187, 165, 231, .18); box-shadow: inset 0 0 0 1.5px rgba(98, 72, 176, .55); }
.bk__loc { position: relative; z-index: 7; margin: 0 0 calc(var(--pw) * .04); font-size: .74rem; font-weight: 600; line-height: 1.45; color: #8a84a0; }
.bk__loc i { font-size: .95rem; vertical-align: -2px; margin-right: 4px; }
.bk__del { all: unset; cursor: pointer; color: #6248b0; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; display: inline-flex; align-items: center; }
.bk__del:focus-visible { outline: 2px solid #6248b0; outline-offset: 2px; border-radius: 4px; }
.bk__w { white-space: nowrap; }
.bk__mine.is-ink .bk__ch { display: inline-block; opacity: 0; }
.bk__mine.is-ink :is(.bk__who, .bk__pend, .bk__loc) { opacity: 0; }
.bk__mine.is-ink.is-writing .bk__ch { animation: bkInk .42s var(--ease-turn) both; animation-delay: calc(var(--k) * var(--per)); }
.bk__mine.is-ink.is-writing :is(.bk__who, .bk__loc) { animation: bkUp .5s var(--ease-turn) both; animation-delay: calc(var(--n) * var(--per) + 120ms); }
.bk__mine.is-ink.is-writing .bk__pend { animation: bkStamp .5s cubic-bezier(.34, 1.4, .64, 1) both; animation-delay: calc(var(--n) * var(--per) + 380ms); }
@keyframes bkInk { from { opacity: 0; transform: translate3d(-.08em, .14em, 0) rotate(-6deg) scale(.86); } to { opacity: 1; transform: none; } }
@keyframes bkUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes bkStamp { from { opacity: 0; transform: rotate(-12deg) scale(1.5); } to { opacity: 1; transform: rotate(-3deg) scale(1); } }

.bk__blank { justify-content: center; align-items: center; background-size: auto, auto; }
.bk__blank p { margin: 0; font-family: "Caveat", cursive; font-weight: 600; font-size: calc(var(--pw) * .055); color: #a39cb6; text-align: center; }
.bk__verso { opacity: 1; }

.bk__cover { justify-content: space-between; color: #fff; padding: calc(var(--pw) * .11) calc(var(--pw) * .1) calc(var(--pw) * .1) calc(var(--pw) * .14); overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .05) 0 1px, transparent 1px 3px),
    radial-gradient(120% 80% at 80% 0%, #2a2558, #17142f 55%, #0f0d22);
  box-shadow: inset 14px 0 18px -12px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.bk__cover::before { content: ""; position: absolute; inset: calc(var(--pw) * .045) calc(var(--pw) * .045) calc(var(--pw) * .045) calc(var(--pw) * .085); border-radius: 6px; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(187, 165, 231, .28); }
.bk__foil { position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background: radial-gradient(60% 40% at 85% 95%, rgba(232, 195, 223, .35), transparent 70%), radial-gradient(70% 45% at 10% 100%, rgba(172, 213, 245, .25), transparent 70%); }
.bk__logo { position: relative; width: 46%; height: auto; opacity: .92; }
.bk__ctx { position: relative; }
.bk__ct { margin: 0; font-family: "Syne", var(--f-body); font-weight: 800; font-size: calc(var(--pw) * .092); line-height: 1; letter-spacing: -.04em; overflow-wrap: anywhere;
  background: linear-gradient(110deg, #e9f2ff 0%, #acd5f5 22%, #bba5e7 52%, #e8c3df 78%, #fff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-wrap: balance; }
.bk__cs { margin: .8em 0 0; max-width: 24ch; font-size: calc(var(--pw) * .036); line-height: 1.45; color: rgba(255, 255, 255, .72); }
.bk__cgo { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.bk__open { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 700; color: rgba(255, 255, 255, .82); }
.bk__open i { transition: transform .3s var(--ease-turn); }
@media (hover: hover) and (pointer: fine) { .bk.is-closed:hover .bk__open i { transform: translateX(4px); } }

.bk__endp { justify-content: center; gap: 14px; color: #fff; overflow: hidden;
  background: radial-gradient(70% 55% at 20% 15%, rgba(172, 213, 245, .22), transparent 70%), radial-gradient(60% 50% at 85% 40%, rgba(187, 165, 231, .28), transparent 70%),
    radial-gradient(70% 60% at 40% 100%, rgba(232, 195, 223, .22), transparent 70%), #1a1734; }
.bk__endp .bk__foil { opacity: .25; background: repeating-radial-gradient(circle at 30% 120%, transparent 0 18px, rgba(255, 255, 255, .06) 18px 19px); }
.bk__k { position: relative; margin: 0; font-size: .78rem; font-weight: 700; color: rgba(255, 255, 255, .6); }
.bk__it { position: relative; margin: 0; font-family: "Syne", var(--f-body); font-weight: 800; font-size: calc(var(--pw) * .085); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.bk__is { position: relative; margin: 0; max-width: 30ch; font-size: calc(var(--pw) * .037); line-height: 1.5; color: rgba(255, 255, 255, .76); }
.bk__note { position: relative; margin: 10px 0 0; font-size: .74rem; color: rgba(255, 255, 255, .5); }
.bk__last { align-items: flex-start; }

.bk__add { all: unset; box-sizing: border-box; position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 20px 0 16px; border-radius: 999px; cursor: pointer;
  font-size: .92rem; font-weight: 800; color: #15121f; background: linear-gradient(105deg, #acd5f5, #bba5e7 60%, #e8c3df); box-shadow: 0 14px 28px -16px rgba(187, 165, 231, .9);
  transition: transform .16s var(--ease-turn), box-shadow .25s; -webkit-tap-highlight-color: transparent; }
.bk__add i { font-size: 1.15rem; }
.bk__add:active { transform: scale(.97); }
.bk__add:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .bk__add:hover { box-shadow: 0 18px 34px -16px rgba(187, 165, 231, 1); } }
.bk__add--cover { min-height: 42px; padding: 0 16px 0 13px; font-size: .84rem; color: #fff; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
@media (hover: hover) and (pointer: fine) { .bk__add--cover:hover { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34); } }
.bk__add--bar { color: #fff; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(187, 165, 231, .45); }
.bk__add--bar i { color: #e8c3df; }
@media (hover: hover) and (pointer: fine) { .bk__add--bar:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(187, 165, 231, .8); } }

.tv__foot { display: grid; justify-items: center; gap: 10px; text-align: center; }
.bk__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 22px; }
.bk__count { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--f-body, "Manrope", sans-serif); font-variant-numeric: tabular-nums; font-size: .9rem; color: var(--ink-3); min-width: 5ch; }
.bk__count b { font-family: inherit; color: #fff; font-weight: 800; font-size: 1.02rem; }
.bk__hint { display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; font-weight: 600; color: var(--ink-3); }
.bk__hint i { font-size: 1.1rem; color: var(--peri, #9fb3ee); }
.bk__msg { margin: 0; max-width: 52ch; padding: 10px 16px; border-radius: 14px; font-size: .9rem; font-weight: 600; line-height: 1.45; color: #fff; background: rgba(187, 165, 231, .12); box-shadow: inset 0 0 0 1px rgba(187, 165, 231, .3); }
.tv__note { margin: 0; font-size: .78rem; color: var(--ink-3); }
.tv__all { display: inline-flex; }

.bkd { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 0; border-radius: 26px; color: #fff; overflow: auto;
  background: linear-gradient(160deg, #1f1b38, #131124); box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.bkd::backdrop { background: rgba(8, 7, 16, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.bkd[open] { animation: bkdIn .28s cubic-bezier(.23, 1, .32, 1) both; }
@keyframes bkdIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.bkd__f { position: relative; display: grid; gap: 16px; padding: clamp(22px, 4vw, 34px); }
.bkd__x { all: unset; position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; color: var(--ink-2); background: rgba(255, 255, 255, .06); }
.bkd__x:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.bkd__x:focus-visible { outline: 2px solid #bba5e7; outline-offset: 2px; }
.bkd__k { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: .82rem; font-weight: 700; color: #e8c3df; }
.bkd__k i { font-size: 1.1rem; }
.bkd__t { margin: -6px 0 0; padding-right: 44px; font-family: "Syne", var(--f-body); font-weight: 800; font-size: clamp(1.6rem, 5vw, 2.1rem); line-height: 1; letter-spacing: -.035em; }
.bkd__s { margin: -6px 0 2px; font-size: .92rem; color: var(--ink-2); }
.bkd__row { display: grid; gap: 16px; }
@media (min-width: 560px) { .bkd__row { grid-template-columns: 1fr 1fr; } }
.bkd__fld { position: relative; display: grid; gap: 7px; min-width: 0; }
.bkd__fld > label { font-size: .86rem; font-weight: 700; color: rgba(255, 255, 255, .88); }
.bkd__fld input:not([type="checkbox"]), .bkd__fld textarea { box-sizing: border-box; width: 100%; min-height: 50px; padding: 12px 14px; border: 0; border-radius: 14px; font: inherit; font-size: 1rem; color: #fff;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: box-shadow .2s; }
.bkd__fld textarea { min-height: 128px; resize: vertical; font-family: "Caveat", cursive; font-weight: 600; font-size: 1.45rem; line-height: 1.3; }
.bkd__fld :is(input, textarea)::placeholder { color: rgba(255, 255, 255, .38); }
.bkd__fld textarea::placeholder { font-family: var(--f-body, "Manrope", sans-serif); font-size: .98rem; }
.bkd__fld :is(input, textarea):focus { outline: none; box-shadow: inset 0 0 0 2px #bba5e7; }
.bkd__fld.is-bad :is(input, textarea) { box-shadow: inset 0 0 0 2px #f2a1b5; }
.bkd__cnt { justify-self: end; margin-top: -2px; font-size: .74rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.bkd__err { font-size: .82rem; font-weight: 600; color: #f6b8c7; min-height: 0; }
.bkd__err:empty { display: none; }
.bkd__ok { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; cursor: pointer; font-size: .86rem; line-height: 1.5; color: var(--ink-2); }
.bkd__ok input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; }
.bkd__box { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); transition: background .2s, box-shadow .2s; }
.bkd__box i { font-size: .9rem; color: #15121f; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .2s cubic-bezier(.23, 1, .32, 1); }
.bkd__ok input:checked + .bkd__box { background: linear-gradient(135deg, #acd5f5, #bba5e7 60%, #e8c3df); box-shadow: none; }
.bkd__ok input:checked + .bkd__box i { opacity: 1; transform: none; }
.bkd__ok input:focus-visible + .bkd__box { outline: 2px solid #bba5e7; outline-offset: 3px; }
.bkd__fld--ok.is-bad .bkd__box { box-shadow: inset 0 0 0 2px #f2a1b5; }
.bkd__go { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 16px; margin-top: 4px; }
.bkd__no { all: unset; cursor: pointer; min-height: 44px; padding: 0 10px; display: inline-flex; align-items: center; font-weight: 700; color: var(--ink-2); border-radius: 10px; }
.bkd__no:hover { color: #fff; }
.bkd__no:focus-visible { outline: 2px solid #bba5e7; }
@media (max-width: 480px) { .bkd__go .btn { flex: 1 1 100%; justify-content: center; } .bkd__no { order: 2; margin: 0 auto; } }

.bk[data-mode="single"] .bk__q { font-size: calc(var(--pw) * .078); }
.bk[data-mode="single"] .bk__q.is-long { font-size: calc(var(--pw) * .068); }
.bk[data-mode="single"] .bk__who b { font-size: 1rem; }
.bk[data-mode="single"] .bk__who span { font-size: .84rem; }
.bk[data-mode="single"] .bk__is { font-size: .98rem; }
.bk[data-mode="single"] .bk__cs { font-size: .95rem; }
@media (max-width: 520px) { .bk__hint { flex-basis: 100%; justify-content: center; } }

@media (prefers-reduced-motion: reduce) {
  .bk__face::after, .bk__open i, .bk__add { transition: none; }
  .bk__mine.is-ink .bk__ch, .bk__mine.is-ink :is(.bk__who, .bk__pend, .bk__loc) { opacity: 1; animation: none !important; }
  .bkd[open] { animation: none; }
}

.bk__leaf.is-moving .bk__sh, .bk__stk { will-change: opacity; }

.tv { --bk-pad: 1; } 
.bk[data-mode="pad"] { width: var(--pw); height: calc(var(--ph) * 2); max-width: 100%; }
.bk[data-mode="pad"] .bk__book { perspective: calc(var(--ph) * 4.4); perspective-origin: 50% 50%; }
.bk[data-mode="pad"] :is(.bk__base, .bk__leaf) { left: 0; top: 50%; width: 100%; height: 50%; }
.bk[data-mode="pad"] .bk__leaf { transform-origin: 50% 0; }
.bk[data-mode="pad"] .bk__face { border-radius: 3px 3px 12px 12px; }
.bk[data-mode="pad"] .bk__face--b { transform: rotateX(180deg); border-radius: 12px 12px 3px 3px; }
.bk[data-mode="pad"] .bk__base { border-radius: 3px 3px 12px 12px;
  box-shadow: 1px 1px 0 #d9d0c0, 0 2px 0 #efe9de, 1px 3px 0 #d6ccbb, 0 4px 0 #ebe4d7, 1px 5px 0 #cfc5b3, 0 40px 60px -30px rgba(0, 0, 0, .95), 0 18px 30px -18px rgba(0, 0, 0, .7); }
.bk[data-mode="pad"] .bk__stk { width: 100%; height: 50%; border-radius: 12px 12px 3px 3px;
  box-shadow: 1px -1px 0 #d9d0c0, 0 -2px 0 #efe9de, 1px -3px 0 #d6ccbb, 0 -4px 0 #ebe4d7, 1px -5px 0 #cfc5b3, 0 -18px 40px -24px rgba(0, 0, 0, .8); }
.bk[data-mode="pad"] .bk__face--f .bk__sh { background: linear-gradient(180deg, rgba(20, 16, 40, .42), rgba(20, 16, 40, .06) 55%, rgba(255, 255, 255, .12)); }
.bk[data-mode="pad"] .bk__face--b .bk__sh { background: linear-gradient(0deg, rgba(20, 16, 40, .34), rgba(20, 16, 40, 0) 50%, rgba(255, 255, 255, .16)); }
.bk[data-mode="pad"] :is(.bk__face--f, .bk__base) .bk__paper { box-shadow: inset 0 18px 22px -18px rgba(60, 45, 30, .38); }
.bk[data-mode="pad"] .bk__face--b .bk__paper { box-shadow: inset 0 -18px 22px -18px rgba(60, 45, 30, .38); }
.bk[data-mode="pad"] .bk__cover { box-shadow: inset 0 14px 18px -12px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .06);
  padding: calc(var(--ph) * .12) calc(var(--pw) * .08) calc(var(--ph) * .07); }
.bk[data-mode="pad"] .bk__cover::before { inset: calc(var(--ph) * .075) 12px 12px; }
.bk[data-mode="pad"] .bk__face--b::after { display: none; }
.bk[data-mode="pad"] .bk__face--f::after { width: 36px; height: 36px; }

.bk[data-mode="pad"] .bk__pg { padding: calc(var(--ph) * .075) calc(var(--pw) * .075) calc(var(--ph) * .11); }
.bk[data-mode="pad"] .bk__q { font-size: clamp(19px, calc(var(--ph) * .066), 27px); }
.bk[data-mode="pad"] .bk__q.is-long { font-size: clamp(17px, calc(var(--ph) * .057), 24px); }
.bk[data-mode="pad"] .bk__who { margin-top: .7em; padding-top: 10px; }
.bk[data-mode="pad"] .bk__who b { font-size: .95rem; }
.bk[data-mode="pad"] .bk__who span { font-size: .8rem; }
.bk[data-mode="pad"] .bk__fol { bottom: calc(var(--ph) * .035); }
.bk[data-mode="pad"] .bk__pola { position: absolute; top: calc(var(--ph) * .06); right: calc(var(--pw) * .06); width: 27%; margin: 0; padding: 5px 5px 0; z-index: 1; }
.bk[data-mode="pad"] .bk__pola figcaption { font-size: .8rem; padding: 4px 1px 5px; }
.bk[data-mode="pad"] .bk__paper.has-ph .bk__run { padding-right: 30%; }
.bk[data-mode="pad"] .bk__paper.has-ph .bk__q { margin-top: calc(var(--pw) * .27 + 26px); }
.bk[data-mode="pad"] .bk__stars { font-size: 1rem; margin-bottom: .35em; }
.bk[data-mode="pad"] .bk__rq { font-size: .9rem; -webkit-line-clamp: 7; }
.bk[data-mode="pad"] .bk__rq.is-long { font-size: .66rem; line-height: 1.4; -webkit-line-clamp: 18; }
.bk[data-mode="pad"] .bk__loc { margin-bottom: calc(var(--ph) * .02); font-size: .7rem; }
.bk[data-mode="pad"] .bk__blank p { font-size: clamp(20px, calc(var(--ph) * .07), 28px); }
.bk[data-mode="pad"] .bk__ct { font-size: clamp(28px, calc(var(--pw) * .092), 40px); overflow-wrap: normal; }
.bk[data-mode="pad"] .bk__cs { font-size: .9rem; max-width: 30ch; margin-top: .5em; }
.bk[data-mode="pad"] .bk__logo { width: 40%; }
.bk[data-mode="pad"] .bk__endp { gap: 10px; }
.bk[data-mode="pad"] .bk__it { font-size: clamp(28px, calc(var(--ph) * .095), 38px); }
.bk[data-mode="pad"] .bk__is { font-size: .95rem; }
.bk[data-mode="pad"] .bk__note { margin-top: 4px; }

.bk__pull { position: absolute; left: 0; right: 0; z-index: 999; height: 44px; display: grid; place-items: center; touch-action: none; cursor: grab;
  transition: opacity .25s; -webkit-tap-highlight-color: transparent; }
.bk__pull--n { top: calc(100% - 22px); }
.bk__pull--p { top: -22px; }
.bk__pull i { display: block; width: 46px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, #acd5f5, #bba5e7 55%, #e8c3df); opacity: .85;
  box-shadow: 0 0 0 3px rgba(15, 13, 34, .55); }
.bk__pull--n i { transform: translateY(13px); }
.bk__pull--p i { transform: translateY(-13px); }
.bk.is-closed .bk__pull--p, .bk.is-end .bk__pull--n, .bk.is-drag .bk__pull { opacity: 0; pointer-events: none; }
.bk.is-drag .bk__pull { cursor: grabbing; }

.bk__pager { display: inline-flex; align-items: center; gap: 10px; }
.bk__nav { all: unset; box-sizing: border-box; display: none; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(187, 165, 231, .35); transition: transform .16s var(--ease-turn, ease), opacity .2s; -webkit-tap-highlight-color: transparent; }
.bk__nav i { font-size: 1.1rem; }
.bk__nav:active { transform: scale(.92); }
.bk__nav:focus-visible { outline: 2px solid #9fb3ee; outline-offset: 3px; }
.bk__nav:disabled { opacity: .3; cursor: default; }
.tv:is([data-bk="pad"], [data-bk="single"]) .bk__nav { display: grid; }
.tv[data-bk="pad"] .bk__count { justify-content: center; }
.tv[data-bk="pad"] .tv__deck { padding-top: 26px; padding-bottom: 30px; }
@media (prefers-reduced-motion: reduce) { .bk__pull, .bk__nav { transition: none; } }
.bkd__g { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: .88rem; color: var(--ink-3); }
.bkd__g i { color: var(--lilac, #bba5e7); font-size: 1.05rem; }
.bkd__g a { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(187, 165, 231, .6); text-underline-offset: 3px; }
