/* 組合圖鑑: a page of combo cards over a dimmed kitchen. */
#comboBook{position:absolute;inset:0;z-index:12;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at center,#2a3f4a66,#1d2a3399);pointer-events:auto;font-family:inherit}
#comboBook.opening .bookPanel{animation:bookPop .28s cubic-bezier(.2,1.5,.5,1)}
.bookPanel{position:relative;width:min(980px,94%);max-height:94%;box-sizing:border-box;padding:12px 20px 14px;display:flex;flex-direction:column;gap:8px;color:#3f4a48}
.bookHead{display:flex;align-items:center;justify-content:center;position:relative;min-height:48px}
.bookTitle{display:flex;align-items:center;gap:10px;margin:0;font-size:30px;font-weight:900;color:#fff5cf;letter-spacing:.04em;text-shadow:2px 0 #b65779,-2px 0 #b65779,0 2px #b65779,0 -2px #b65779,2px 2px #b65779,-2px -2px #b65779,2px -2px #b65779,-2px 2px #b65779,0 5px #6d3a4a40}
.bookTitle .bookIcon{transform:scale(1.25)}
.bookClose{position:absolute;right:0;top:50%;transform:translateY(-50%);width:48px;height:48px;border-radius:50%;border:3px solid #e48aa5;background:linear-gradient(180deg,#fffaf0,#ffe6c4);color:#b65779;font-size:30px;font-weight:900;line-height:1;cursor:pointer;box-shadow:0 4px 0 #c7778d66;font-family:inherit;padding:0}
.bookClose:active{transform:translateY(-50%) scale(.9)}
.bookIntro{margin:0;text-align:center;font-size:15px;font-weight:700;color:#4f6f68;line-height:1.3}
.bookGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:1fr;gap:12px}
.bookGrid.turn .bookCard{animation:bookCardIn .32s cubic-bezier(.2,1.3,.5,1) both}
.bookGrid.turn .bookCard:nth-child(2){animation-delay:.03s}.bookGrid.turn .bookCard:nth-child(3){animation-delay:.06s}.bookGrid.turn .bookCard:nth-child(4){animation-delay:.09s}
.bookGrid.turn .bookCard:nth-child(5){animation-delay:.05s}.bookGrid.turn .bookCard:nth-child(6){animation-delay:.08s}.bookGrid.turn .bookCard:nth-child(7){animation-delay:.11s}.bookGrid.turn .bookCard:nth-child(8){animation-delay:.14s}
.bookCard{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:7px;padding:10px 8px 10px;border-radius:18px;background:linear-gradient(180deg,#fffdf6,#fff1d8);border:2.5px solid #e9d7ad;box-shadow:0 4px 0 #c9b48a55;text-align:center;min-width:0}
.bookCard.rule{background:linear-gradient(180deg,#f4fbf6,#dff1e7);border-color:#9fd2bd;box-shadow:0 4px 0 #7fb8a255}
.bookCard.owned{border-color:#f2b129;box-shadow:0 0 0 3px #ffd979,0 0 16px #ffcf6a,0 4px 0 #c7962f66}
.bookName{font-size:18px;font-weight:900;color:#4b3a3f;line-height:1.15;text-shadow:0 1px #fff;overflow-wrap:anywhere}
.bookFoods{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;min-height:40px;align-items:center}
.bookFood{position:relative;display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;background:#fff;border:2px solid #e3d3ad}
.bookFood img{width:86%;height:86%;object-fit:contain;mix-blend-mode:multiply}
.bookN{position:absolute;right:-7px;bottom:-5px;min-width:20px;padding:1px 4px;border-radius:9px;background:#b65779;color:#fff;font-size:12px;font-weight:900;line-height:1.2;border:1.5px solid #fff;white-space:nowrap}
.bookBonus{font-size:14px;font-weight:900;color:#237a64;line-height:1.25;white-space:pre-line}
.bookDesc{font-size:13px;font-weight:700;color:#3f6a5c;line-height:1.3}
.bookOwned{position:absolute;top:-10px;right:-6px;padding:2px 9px;border-radius:10px;background:linear-gradient(180deg,#ffd979,#f2a93b);color:#5b3a12;font-size:12px;font-weight:900;border:2px solid #fff6dc;box-shadow:0 2px 0 #b8862c66;transform:rotate(6deg);white-space:nowrap}
.bookNav{display:flex;align-items:center;justify-content:center;gap:22px}
.bookArrow{min-width:72px;min-height:50px;display:flex;align-items:center;justify-content:center;cursor:pointer}
.bookArrow:disabled{opacity:.4;filter:saturate(.3);cursor:default}
.bookArrow:not(:disabled):active{transform:scale(.92)}
.arrowIcon{display:block;width:18px;height:22px;background:#b65779}
.arrowIcon.left{clip-path:polygon(100% 0,0 50%,100% 100%)}
.arrowIcon.right{clip-path:polygon(0 0,100% 50%,0 100%)}
.bookPage{min-width:70px;text-align:center;font-size:18px;font-weight:900;color:#315c60}
@keyframes bookPop{0%{transform:scale(.8);opacity:0}70%{transform:scale(1.03);opacity:1}100%{transform:scale(1)}}
@keyframes bookCardIn{from{opacity:0;transform:translateY(12px) scale(.94)}to{opacity:1;transform:none}}
@media(max-height:540px){
.bookPanel{width:94%;padding:4px 12px 6px;gap:5px;border-image-width:16px}
.bookHead{min-height:40px}
.bookTitle{font-size:20px;gap:8px}
.bookTitle .bookIcon{transform:none}
.bookClose{width:44px;height:44px;font-size:24px;border-width:2px}
.bookIntro{display:none}
.bookGrid{gap:8px}
.bookCard{gap:3px;padding:5px 5px 6px;border-radius:12px;border-width:2px}
.bookCard.owned{box-shadow:0 0 0 2px #ffd979,0 0 10px #ffcf6a}
.bookName{font-size:14px}
.bookFoods{min-height:28px;gap:3px}
.bookFood{width:28px;height:28px;border-width:1.5px}
.bookN{font-size:11px;right:-6px;bottom:-4px;min-width:16px;padding:0 3px}
.bookBonus{font-size:12px;line-height:1.2}
.bookDesc{font-size:12px;line-height:1.2}
.bookOwned{font-size:11px;top:-8px;padding:1px 6px}
.bookNav{gap:16px}
.bookArrow{min-width:60px;min-height:44px}
.arrowIcon{width:14px;height:18px}
.bookPage{font-size:15px}
}
