.modal-card:has(.guest-book){width:min(1100px,96vw);max-height:94dvh;padding:0;background:none;border:0;box-shadow:none;overflow-y:auto;overflow-x:hidden;scrollbar-color:#8a7250 #251d16}
.modal-card:has(.guest-book):before,.modal-card:has(.guest-book)>#modal-kicker,.modal-card:has(.guest-book)>#modal-title,.modal-card:has(.guest-book)>#close-modal,.modal-card:has(.guest-book)>#modal-choices{display:none}
.guest-book{color:#3f3528;padding:0 7px 8px;font:15px/1.6 Georgia,serif}
.book-toolbar{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:12px;padding:6px 7px 13px;color:#dfcda9;background:#141a14f5;font:10px system-ui;letter-spacing:.16em}
.book-toolbar>span{flex:1}.book-toolbar i{font-style:normal;margin:0 7px;color:#9d8156}
.book-toolbar button{background:#30271dc9;border:1px solid #a68a575e;padding:8px 14px;color:#e7d4ad;font:12px Georgia;letter-spacing:normal}
.book-toolbar button[aria-pressed=true]{background:#57432a}.book-toolbar #register-book-close{font-size:25px;line-height:20px;padding:5px 10px}
.book-binding{position:relative;padding:11px 12px 15px;border:1px solid #92734a;border-radius:9px 9px 13px 13px;background:linear-gradient(90deg,#39251b,#68452d 46%,#2c1d15 50%,#62422c 54%,#38251b);box-shadow:0 14px 30px #0009,0 1px 0 #b38c57 inset,0 -4px 0 #281911 inset;perspective:1800px;isolation:isolate}
.book-binding:after{content:"";position:absolute;bottom:6px;left:17px;right:17px;height:9px;border-radius:0 0 4px 4px;background:repeating-linear-gradient(#a69270 0 1px,#d4c4a1 1px 3px);z-index:-1}
.book-spread{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;background:#ddccaa;box-shadow:0 2px 8px #140d0aa8}
.book-leaf{position:relative;display:flex;flex-direction:column;min-width:0;min-height:552px;padding:24px 32px 17px;background-color:#eadcba;background-image:radial-gradient(ellipse at 25% 10%,#fff8e440,transparent 65%),repeating-linear-gradient(0deg,transparent 0 3px,#936d2e05 3px 4px);color:#403326}
.book-left{border-radius:3px 0 0 3px;padding-right:36px;box-shadow:inset -22px 0 24px -21px #3c281ccc,inset 2px 0 4px #fff1ce}
.book-right{border-radius:0 3px 3px 0;padding-left:36px;box-shadow:inset 23px 0 28px -24px #3c281ce6,inset -2px 0 4px #fff1ce}
.book-masthead{text-align:center;border-bottom:1px solid #8c74494d;padding-bottom:16px}
.book-emblem{display:block;width:40px;margin:0 auto 7px;border:1px solid #9d8052;outline:1px solid #9d805247;outline-offset:3px;color:#715834;font:32px Georgia;line-height:43px}
.book-masthead small,.book-page-heading small,.book-history-heading{font:9px system-ui;letter-spacing:.22em;color:#776044}
.modal-card .book-masthead h2{font:italic 40px/1.2 Georgia;color:#443322;letter-spacing:-1px;margin:9px 0 5px}
.modal-card .book-masthead p,.modal-card .book-page-heading p{font:italic 13px/1.55 Georgia;color:#7c664a;margin:0}
.book-page-heading{padding-bottom:12px;border-bottom:1px solid #8c74494d}
.book-page-heading h3{font:normal 27px Georgia;margin:3px 0 5px;color:#493624}
.book-history-heading{padding-bottom:13px;border-bottom:1px solid #8c74495e}
.book-latest{flex:1}.modal-card .book-latest-label{font:8px system-ui;letter-spacing:.2em;color:#8a7352;margin:20px 0 9px}
.guest-book .register-entry{display:block;border:0;padding:0;margin:30px 0}.book-latest .register-entry{margin:0 0 16px}
.book-entry-meta{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #a78b613d;padding-bottom:10px}
.guest-book .book-entry-meta time,.guest-book .book-entry-meta span{font:11px system-ui;letter-spacing:.03em;color:#7a6548}
.book-guest-name{font:italic 31px/1.25 Georgia;font-weight:normal;overflow-wrap:anywhere;margin:22px 0 12px;color:#403323}
.book-latest .book-guest-name{font-size:25px;margin:15px 0 7px}
.guest-book .register-saved-signature{width:100%;background:transparent;border:0;margin:8px 0 17px;border-bottom:1px solid #9d83524f}
.guest-book .register-entry .register-comment{color:#54422f;font:17px/1.8 Georgia;margin:18px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.book-latest .register-entry .register-comment{font-size:15px;line-height:1.65;margin:12px 0}
.modal-card .book-no-comment{color:#8a7557;font:italic 16px/1.8 Georgia;margin:35px 0}
.book-welcome,.book-blank{margin:auto;text-align:center;color:#8a7050}.book-welcome{padding:20px 0}.book-welcome>span{font:45px Georgia;color:#8a7047}
.modal-card .book-welcome p{font:italic 19px/1.9 Georgia;color:#775e40;margin:15px 0}.modal-card .book-welcome p:last-child{font-size:14px;margin-top:25px}
.book-blank>span{font:45px Georgia;opacity:.3}.modal-card .book-blank p{color:#927b59;font:italic 16px Georgia}
.book-folio{display:flex;justify-content:space-between;gap:12px;margin-top:auto;padding-top:14px;border-top:1px solid #a98d6240;color:#927754;font:italic 10px Georgia}
.book-folio span:last-child{font:12px Georgia;color:#786243}
.guest-book .register-form{gap:11px 12px;margin:13px 0 15px;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}
.guest-book .register-form label,.guest-book .register-ink>span{color:#7a6242;font-size:8px;letter-spacing:.1em;gap:5px}
.guest-book .register-form input,.guest-book .register-form select,.guest-book #register-comment{width:100%;min-width:0;background:#fff6d82e;border:0;border-bottom:1px solid #a48b62;border-radius:0;color:#483824;font:14px Georgia;box-shadow:none;padding:7px 5px;color-scheme:light}
.guest-book .register-form #register-name{font:italic 18px Georgia}.guest-book .register-form #register-date{font-size:12px}
.guest-book #register-ink{background:#fff6db36;border:1px solid #bba47e83}.guest-book .register-ink>span{margin-bottom:5px}
.guest-book .register-ink-tools{gap:7px;margin-top:5px}.guest-book .register-ink-tools small{font:9px/1.5 system-ui;color:#816c4e}
.guest-book .register-ink-tools button{min-height:28px;padding:5px 7px;background:#d8c49c55;border:1px solid #a88b596b;color:#725737;font:11px Georgia}
.guest-book #register-ink-status{color:#6c603b;font-size:10px}.guest-book #register-comment{min-height:57px;font:14px/1.5 Georgia;padding:6px 5px;resize:vertical}
.guest-book #register-comment::placeholder{color:#9a8465;font-style:italic}.guest-book #register-comment-count{font-size:9px;color:#9b8461}
.guest-book .register-form>.primary{width:100%;margin-top:0;padding:13px 15px;background:#695137;color:#f4e5bf;font-size:9px;letter-spacing:.13em}
.guest-book .register-form #register-result{color:#6f643e;font:12px/1.5 Georgia}.guest-book .register-form #register-result:empty{display:none}
.guest-book button:focus-visible,.guest-book input:focus-visible,.guest-book select:focus-visible,.guest-book textarea:focus-visible,.guest-book [tabindex]:focus-visible{outline:2px solid #9f6b30;outline-offset:3px}
.book-navigation{position:sticky;bottom:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:9px 6px 4px;color:#d4bd95;background:#141a14f5;border-top:1px solid #c1a16b33}
.book-navigation button{border:0;background:transparent;color:#e6d4ae;font:14px Georgia;padding:8px 6px;min-height:36px}.book-navigation button span{font:22px Georgia;vertical-align:middle;margin:0 8px}
.book-navigation button:disabled{opacity:.28;cursor:default}#register-page-status{font:11px Georgia;color:#c6b28d}
.book-turn-sheet{position:absolute;z-index:4;top:11px;bottom:15px;min-height:0;width:calc(50% - 12px);overflow:hidden;pointer-events:none;backface-visibility:hidden;transform-style:preserve-3d;box-shadow:0 12px 28px #24170f88}
.book-turn-forward{right:12px;transform-origin:left center;animation:register-turn-forward .44s ease-in-out both}
.book-turn-back{left:12px;transform-origin:right center;animation:register-turn-back .44s ease-in-out both}
@keyframes register-turn-forward{0%{transform:rotateY(0);filter:brightness(1)}70%{filter:brightness(.77)}100%{transform:rotateY(-168deg);filter:brightness(.9)}}
@keyframes register-turn-back{0%{transform:rotateY(0);filter:brightness(1)}70%{filter:brightness(.77)}100%{transform:rotateY(168deg);filter:brightness(.9)}}
@media(max-width:760px){.modal-card:has(.guest-book){width:100%;max-height:94dvh}.guest-book{padding:0 2px 5px}.book-toolbar{gap:7px;font-size:8px;letter-spacing:.1em}.book-toolbar i{margin:0 3px}.book-toolbar button{padding:7px 10px;font-size:11px}.book-binding{padding:8px 8px 12px}.book-spread{grid-template-columns:minmax(0,1fr)}.book-leaf{min-height:420px;padding:22px 24px 18px;box-shadow:inset 12px 0 18px -15px #3c281c,inset -2px 0 4px #fff1ce}.book-left{border-bottom:1px solid #aa9167}.book-right{border-radius:0 0 3px 3px}#register-writing>.book-left{display:none}.book-navigation{gap:6px;padding:7px 0 0}.book-navigation button{font-size:12px}.book-navigation button span{margin:0 3px}.book-navigation #register-page-status{font-size:10px}.book-toolbar>span{max-width:155px}.book-guest-name{font-size:27px}.guest-book .register-entry .register-comment{font-size:16px}}
@media(prefers-reduced-motion:reduce){.guest-book *{animation:none!important;transition:none!important}}
