/* A small clothbound book; the character art remains its original artwork. */
dialog:has(.welcome-book){width:min(960px,calc(100vw - 32px));max-height:calc(100svh - 28px);border-radius:10px;background:#54303b;overflow:auto}
.welcome-book{--book-ink:#4c372b;--book-paper:#f5e8cf;--book-gold:#a48450;position:relative;isolation:isolate;box-sizing:border-box;color:var(--book-ink);font-family:Georgia,'Times New Roman',serif}
.welcome-book *{box-sizing:border-box}.welcome-cloth{padding:19px 17px 21px;background:repeating-linear-gradient(0deg,#ffffff06 0 1px,transparent 1px 3px),repeating-linear-gradient(90deg,#00000012 0 1px,transparent 1px 3px),linear-gradient(110deg,#603b47,#492a36 49.5%,#6b414b 51%,#55313c);border:1px solid #73434c;border-radius:9px;box-shadow:0 1px 0 #a46c66 inset}
.welcome-spread{position:relative;display:grid;grid-template-columns:1fr 1fr;border-radius:4px;box-shadow:0 3px 0 #d6c3a3,0 5px 0 #ede0c3,0 7px 0 #a58c68,0 10px 12px #26141d80}
.welcome-spread:after{content:'';position:absolute;z-index:2;top:0;bottom:0;left:calc(50% - 13px);width:26px;pointer-events:none;background:linear-gradient(90deg,transparent,#8a684e20 30%,#5c3c293d 48%,#ede0c578 54%,transparent)}
.welcome-page{position:relative;min-width:0;background:var(--book-paper);min-height:550px;padding:29px 33px 21px}
.welcome-introduction{display:flex;flex-direction:column;align-items:center;text-align:center;background:radial-gradient(ellipse at 32% 28%,#fff5df,#f2e4c9 75%);border-radius:3px 0 0 3px;border-right:1px solid #c5ae8b99}
.welcome-edition,.welcome-neighbor-label{display:block;text-transform:uppercase;font-size:9px;line-height:1.4;letter-spacing:2px;color:#9a7e58;text-align:center}
.welcome-intro-body{margin:auto 0;padding:42px 0 20px;width:100%}.welcome-small{display:block;font-size:17px;font-style:italic;color:#957344;margin-bottom:4px}.welcome-introduction h2{font:clamp(45px,6.3vw,70px)/1 Georgia!important;letter-spacing:-3px!important;font-weight:400;margin:0!important;color:#56323e}.welcome-introduction svg{display:block;width:130px;height:auto;margin:22px auto 24px;fill:none;stroke:#b09057;stroke-width:1}
.welcome-intro{max-width:29em;font-size:16px;line-height:1.8;margin:0 auto;color:#76604b}.welcome-motto{margin:23px 0 21px;font-size:20px;line-height:1.4;color:#705039}.welcome-motto em{color:#a27e4e;font-style:italic}.welcome-page-mark{font-size:12px;color:#ba9c67}
.welcome-neighbor{background:linear-gradient(90deg,#e6d7b8,#f7ecd5 9%,#fff3dc 50%,#efdfc1);border-radius:0 3px 3px 0;display:flex;flex-direction:column;align-items:center;padding-top:29px}
.welcome-bookmark{position:absolute;top:-19px;left:27px;width:24px;height:51px;background:linear-gradient(90deg,#753a45,#a0545d 45%,#783a43);clip-path:polygon(0 0,100% 0,100% 100%,50% 83%,0 100%);border-left:1px solid #c0757250;border-right:1px solid #c0757250;box-shadow:0 3px 5px #45282e44}
.welcome-resident{width:100%;text-align:center;position:relative;margin-top:18px;display:flex;flex-direction:column;align-items:center;flex:1}
.welcome-portrait{position:relative;margin:0;display:flex;align-items:center;justify-content:center;width:min(100%,270px);height:clamp(230px,40svh,312px);background:#f4dfbf;border:6px solid #f9efd9;outline:1px solid #b7986738;box-shadow:1px 3px 7px #73512d22;transform:rotate(1.2deg);overflow:hidden}
.welcome-portrait img{display:block;width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}.welcome-photo-corner{position:absolute;width:17px;height:17px;border:1px solid #bea27b77;background:#e7d4ae}.corner-top{top:-1px;left:-1px;clip-path:polygon(0 0,100% 0,0 100%)}.corner-bottom{bottom:-1px;right:-1px;clip-path:polygon(100% 0,100% 100%,0 100%)}
.welcome-resident-name{font:clamp(22px,3vw,29px)/1.2 Georgia!important;letter-spacing:-.4px!important;font-weight:400;margin:21px 0 9px!important;color:#5b3740;overflow-wrap:anywhere}.welcome-personality{max-width:28em;min-height:3.1em;font-size:14px;line-height:1.55;color:#8a7156;margin:0}
.welcome-pagination{width:min(100%,250px);display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:18px}.welcome-pagination button{display:grid;place-items:center;background:none;color:#8b683f;border:0;border-radius:50%;cursor:pointer;width:45px;height:45px;padding:10px;transition:background .2s ease,color .2s ease}.welcome-pagination button:hover{background:#d8bd8f40;color:#5e4030}.welcome-pagination button:focus-visible{outline:2px solid #a87d42;outline-offset:3px}.welcome-pagination svg{width:26px;height:18px;fill:none;stroke:currentColor;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}.welcome-page-count{font-size:12px;letter-spacing:1px;color:#9d805a;white-space:nowrap;font-variant-numeric:tabular-nums}.welcome-page-count i{font-style:normal;color:#b6a07a}
.welcome-book-status{position:absolute;bottom:0;left:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0}
.welcome-book-status.is-error{position:static;width:auto;height:auto;clip-path:none;white-space:normal;margin:8px 0 0;font:12px/1.5 Georgia;text-align:center;color:#93573e}
@media(max-height:680px) and (min-width:681px){.welcome-page{min-height:480px;padding:24px 27px 15px}.welcome-intro-body{padding-top:30px}.welcome-intro{font-size:15px;line-height:1.75}.welcome-motto{margin:15px 0;font-size:18px}.welcome-portrait{height:235px;width:210px}.welcome-resident{margin-top:16px}.welcome-resident-name{font-size:25px!important;margin-top:17px!important}.welcome-pagination{margin-top:8px}.welcome-personality{font-size:13px}}
@media(max-width:680px){dialog:has(.welcome-book){width:calc(100vw - 14px);max-height:calc(100svh - 14px)}.welcome-cloth{padding:12px 10px 15px}.welcome-spread{grid-template-columns:1fr}.welcome-spread:after{display:none}.welcome-page{min-height:0;padding:22px 24px}.welcome-introduction{padding:24px 27px 22px;border:0;border-bottom:1px solid #bba07855;border-radius:3px 3px 0 0;background:radial-gradient(ellipse at 45% 20%,#fff5df,#f2e4c9 90%)}.welcome-edition{font-size:8px;letter-spacing:1.6px}.welcome-intro-body{padding:18px 0 0}.welcome-small{font-size:13px;margin-bottom:3px}.welcome-introduction h2{font-size:46px!important;letter-spacing:-2px!important}.welcome-introduction svg{width:93px;margin:12px auto}.welcome-intro{font-size:13px;line-height:1.65;max-width:33em}.welcome-motto,.welcome-page-mark{display:none}.welcome-neighbor{padding:21px 24px 15px;border-radius:0 0 3px 3px;background:linear-gradient(90deg,#f0e1c5,#fcf0d8 50%,#efdfc1)}.welcome-bookmark{left:21px;top:-1px;height:35px;width:19px}.welcome-neighbor-label{font-size:8px;letter-spacing:1.7px}.welcome-resident{margin-top:16px}.welcome-portrait{width:190px;height:220px;border-width:5px}.welcome-resident-name{font-size:24px!important;margin:17px 0 8px!important}.welcome-personality{font-size:13px;max-width:26em;min-height:3.1em}.welcome-pagination{width:220px;margin-top:9px}.welcome-pagination button{width:44px;height:44px}}
@media(max-width:360px){.welcome-introduction{padding-left:21px;padding-right:21px}.welcome-intro{font-size:12px}.welcome-neighbor{padding-left:18px;padding-right:18px}.welcome-portrait{width:175px;height:205px}.welcome-resident-name{font-size:22px!important}}
@media(prefers-reduced-motion:reduce){.welcome-book *{animation:none!important;transition:none!important}}

/* A turning sheet, with its printed front, reverse, and binding contact shadow.
   The real controls stay outside the moving leaf, so their focus never moves. */
.welcome-spread{perspective:2200px;perspective-origin:50% 48%;isolation:isolate}
.welcome-spread:after{z-index:5}
.welcome-neighbor{padding-bottom:82px}
.welcome-pagination{position:absolute;right:calc(25% - 125px);bottom:20px;width:250px;z-index:9;margin:0}
.welcome-turn-leaf{position:absolute;z-index:6;transform-style:preserve-3d;transform-origin:left center;will-change:transform;pointer-events:none}
.welcome-leaf-face{position:absolute;inset:0;min-height:0;width:100%;height:100%;backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow:hidden;box-shadow:1px 2px 1px #8f74535c}
.welcome-leaf-front{border-radius:0 3px 3px 0}
.welcome-leaf-back{transform:rotateY(180deg);border-radius:3px 0 0 3px;box-shadow:-3px 3px 7px #4b30262e}
.welcome-leaf-face:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#51331c1c,transparent 16%,transparent 80%,#fff6df38);border:1px solid #b2987226}
.welcome-turn-shadow{position:absolute;z-index:4;top:0;bottom:0;left:43%;width:14%;pointer-events:none;opacity:0;background:linear-gradient(90deg,transparent,#3e251f26 49%,transparent);transform-origin:50% 50%}
.is-turning .welcome-turn-shadow{animation:leaf-contact-shadow .76s cubic-bezier(.3,.05,.2,1)}
@keyframes leaf-contact-shadow{0%,100%{opacity:0;transform:scaleX(.5)}35%,60%{opacity:1;transform:scaleX(2.5)}}
.welcome-book[aria-busy="true"] .welcome-page-count{color:#6b4935}
.welcome-pocket-page{width:100%;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px 0 12px}
.welcome-introduction h2.welcome-note-name{font:38px/1.08 Georgia!important;letter-spacing:-1.1px!important;margin:3px 0 23px!important;max-width:100%;overflow-wrap:anywhere}
.welcome-possession{display:flex;flex-direction:column;align-items:center;position:relative;border:0;background:none;padding:8px 18px 20px;color:#947344;cursor:pointer;max-width:100%;touch-action:manipulation}
.possession-mount{display:grid;place-items:center;width:147px;height:159px;position:relative;background:linear-gradient(130deg,#f1dfbc,#e3cda7);box-shadow:1px 3px 4px #61442e24,0 0 0 1px #a17f4a28;transform:rotate(-4deg);transition:transform .38s cubic-bezier(.2,.7,.25,1),box-shadow .38s}
.possession-mount:before,.possession-mount:after{content:'';position:absolute;top:-8px;width:43px;height:19px;background:#e3d3b2c4;box-shadow:0 0 0 1px #cbb89342;transform:rotate(-9deg)}
.possession-mount:before{left:10px}.possession-mount:after{right:5px;top:auto;bottom:-8px;transform:rotate(9deg)}
.possession-mount svg{width:104px;height:104px;filter:drop-shadow(0 1px 0 #fff3d4);transform:rotate(4deg)}
.possession-label{margin-top:19px;font:italic 15px/1.3 Georgia;color:#896a47}
.possession-seal{position:absolute;right:7px;bottom:15px;color:#aa8150;font-size:13px}
.welcome-possession:hover .possession-mount{transform:rotate(-2deg) translateY(-2px);box-shadow:1px 5px 7px #61442e30}
.welcome-possession.is-open .possession-mount{transform:rotate(2deg) translateY(-5px);box-shadow:1px 7px 9px #61442e2a}
.welcome-possession:focus-visible,.welcome-photo-object:focus-visible{outline:2px solid #a87d42;outline-offset:4px;border-radius:3px}
.welcome-pocket-note{width:min(100%,275px);min-height:83px;margin:3px 0 0;padding:12px 13px 8px;opacity:0;transform:translateY(6px) rotate(-1deg);background:#fbefcf;box-shadow:0 1px 2px #95704026;color:#705340;transition:opacity .28s,transform .35s;pointer-events:none}
.welcome-pocket-note.is-open{opacity:1;transform:translateY(0) rotate(-1deg)}
.welcome-pocket-note p{font:italic 16px/1.45 Georgia;margin:0}
.welcome-pocket-note>span{display:block;font:11px Georgia;letter-spacing:.02em;color:#a08259;margin-top:7px;text-align:right}
.welcome-photo-object{position:absolute;right:-1px;bottom:2px;width:47px;height:55px;border:1px solid #a2804d3d;background:#eddbb7;color:#916c3e;padding:6px;box-shadow:0 2px 4px #4f321b33;transform:rotate(7deg);cursor:pointer;transition:transform .3s}
.welcome-photo-object svg{width:100%;height:100%}.welcome-photo-object:hover,.welcome-photo-object.is-open{transform:rotate(2deg) translateY(-3px)}
.welcome-first-note{font:italic 13px/1.4 Georgia;color:#98754a;opacity:0;min-height:20px;margin:9px 0 0;transform:translateY(4px);transition:opacity .25s,transform .3s}
.welcome-first-note.is-open{opacity:1;transform:translateY(0)}
.welcome-book-status.is-error{padding:10px 20px;background:#f5e8cf}
@media(max-height:680px) and (min-width:681px){.welcome-neighbor{padding-bottom:65px}.welcome-pagination{bottom:12px}.welcome-pocket-page{padding:15px 0 5px}.welcome-introduction h2.welcome-note-name{font-size:32px!important;margin-bottom:12px!important}.possession-mount{width:120px;height:130px}.possession-mount svg{width:85px;height:85px}.possession-label{margin-top:15px}.welcome-pocket-note{min-height:74px;padding:9px 10px}.welcome-pocket-note p{font-size:14px}}
@media(max-width:680px){
 .welcome-spread{overflow:hidden;perspective:1600px;perspective-origin:0 75%}
 .welcome-neighbor{padding-bottom:73px;min-height:430px}
 .welcome-introduction{min-height:320px}
 .welcome-pagination{right:calc(50% - 110px);bottom:14px;width:220px}
 .welcome-pocket-page{padding:16px 0 5px;display:grid;grid-template-columns:110px 1fr;column-gap:15px;align-content:center}
 .welcome-pocket-page>.welcome-small,.welcome-pocket-page>.welcome-note-name{grid-column:1/-1}
 .welcome-introduction h2.welcome-note-name{font-size:30px!important;margin:4px 0 17px!important}
 .welcome-pocket-page>.welcome-small{font-size:12px}
 .welcome-possession{padding:5px 0 8px;align-self:center}
 .possession-mount{width:95px;height:109px}.possession-mount svg{width:75px;height:75px}.possession-mount:before,.possession-mount:after{width:30px;height:15px;top:-5px}.possession-mount:after{top:auto;bottom:-5px}
 .possession-label{font-size:12px;margin-top:13px}.possession-seal{display:none}
 .welcome-pocket-note{margin:0;min-height:110px;display:flex;flex-direction:column;justify-content:center;padding:11px 10px}.welcome-pocket-note p{font-size:14px}.welcome-pocket-note>span{font-size:10px}
 .welcome-page-mark{display:none}
 .welcome-leaf-face{min-height:0}
 .welcome-turn-shadow{left:0;top:320px;bottom:0;width:40%;background:linear-gradient(90deg,#3e251f26,transparent);transform-origin:left}
 .welcome-photo-object{width:43px;height:49px}
}
