.book-screen{position:fixed;inset:0;z-index:20;display:flex;flex-direction:column;gap:10px;box-sizing:border-box;padding:max(8px,env(safe-area-inset-top)) 12px max(8px,env(safe-area-inset-bottom));overflow:auto;background:radial-gradient(ellipse at 15% 20%,#fff7cc,transparent 65%),linear-gradient(135deg,#d5f1de,#e4eafa);color:#295568;font-family:system-ui,sans-serif}
.book-heading{display:flex;align-items:center;justify-content:center;gap:16px;text-align:center}.book-heading h1{font-size:clamp(17px,2vw,25px);margin:0}.book-heading p{margin:4px 0;font-weight:700}.book-target{font-size:clamp(38px,6vw,64px);font-weight:900;line-height:1;background:#168cb9;border:3px solid white;border-radius:20px;padding:10px 23px;color:white;box-shadow:0 5px 0 #0b6589}
.book-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(180px,.7fr);gap:22px;flex:1;min-height:280px;width:min(100%,1060px);margin:0 auto}.book-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;min-height:0}.book-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:0;padding:8px 12px;border:3px solid #fff;border-radius:26px;background:#fffdf4;box-shadow:0 5px 0 #afccc1,0 8px 14px #426e5c20;cursor:pointer;color:#345767;touch-action:manipulation;transition:transform .2s,background .2s}.book-card:not(:disabled):hover{transform:translateY(-3px)}.book-card:focus-visible{outline:4px solid #e34e8f;outline-offset:2px}.book-card.chosen{background:#e6f8ee;border-color:#62b89b;opacity:1}.book-card i{position:absolute;top:9px;right:10px;background:#278d70;color:#fff;width:27px;height:27px;border-radius:50%;font-style:normal;font-weight:900}.book-card>span{font-size:clamp(20px,2.3vw,30px);font-weight:800;line-height:1.25}.book-picture{display:block;width:100%;height:100%;object-fit:contain;min-height:0}.book-card>.book-picture{flex:1;max-height:220px;mix-blend-mode:multiply}.book-letter{color:#0785bc}.book-companion{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:0}.book-hero{width:100%;height:min(40vh,340px);display:flex;justify-content:center;align-items:center}.book-hero .avatar{width:100%;height:100%;max-height:100%;object-fit:contain}.book-album{display:flex;gap:6px;padding:10px;border:4px solid white;border-radius:20px;background:#fff5ce;width:100%;box-sizing:border-box;min-height:90px}.book-collected,.book-empty{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.book-empty{color:#bdc8a3;font-size:35px}.book-collected{animation:book-arrive .3s ease-out}.book-collected .book-picture{height:72px}.book-collected small{font-weight:800;font-size:14px}.book-footer{text-align:center;min-height:62px}.book-footer p{margin:3px 0;font-size:clamp(14px,2vw,18px);font-weight:700}.book-next{border:3px solid #fff;border-radius:17px;padding:11px 25px;background:#1687b1;color:white;font-size:18px;font-weight:800;cursor:pointer;box-shadow:0 4px 0 #17617c}.book-card:disabled{cursor:default}
@keyframes book-arrive{from{opacity:0;transform:translateY(-12px) scale(.85)}to{opacity:1;transform:none}}
@media(max-width:600px){.book-screen{gap:7px;padding-left:8px;padding-right:8px}.book-heading{gap:10px}.book-heading h1{font-size:16px}.book-heading p{font-size:13px}.book-target{font-size:36px;padding:7px 15px;border-radius:15px}.book-layout{grid-template-columns:1fr;gap:8px;min-height:380px}.book-cards{gap:10px}.book-card{border-radius:20px;padding:7px;min-height:120px}.book-card>.book-picture{max-height:145px}.book-card>span{font-size:22px}.book-companion{flex-direction:row;height:100px;gap:14px}.book-hero{width:85px;height:105px}.book-album{width:min(75%,300px);min-height:82px}.book-collected .book-picture{height:58px}.book-footer{min-height:40px}}
@media(prefers-reduced-motion:reduce){.book-collected{animation:none}.book-card{transition:none}}
