/* One shared journal/exchange dialog. Approved illustrated card frames are untouched. */
.collection-dialog{width:min(500px,calc(100vw - 24px));max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:24px 28px;border:1px solid #c69b6c;border-radius:28px 24px 30px 25px;background:#fff8ec;color:#263d4d;box-shadow:0 16px 60px #54412f45,inset 0 0 0 5px #faebd170;overscroll-behavior:contain;scrollbar-width:thin;text-align:center;overflow-wrap:anywhere}
.collection-dialog::backdrop{background:#263d4d70;backdrop-filter:none}
.collection-dialog-leaves{position:absolute;top:6px;left:9px;width:48px;height:36px;opacity:.58;pointer-events:none}
.collection-dialog-header{position:relative;gap:8px;padding-left:12px;text-align:left;align-items:flex-start}
.collection-dialog-header h2{flex:1;font-size:23px!important;line-height:1.25;padding-top:8px;overflow-wrap:anywhere}
.collection-dialog-close{flex:0 0 44px;display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;border:1px solid #dfc9a8;border-radius:50%;background:#faebd1;color:#80664c;cursor:pointer}
.collection-dialog-close svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.collection-dialog-close:disabled{opacity:.55;cursor:wait}
.collection-dialog .collection-dialog-eyebrow{margin:8px 0 0;color:#80664c;font-size:12px;letter-spacing:.03em}
.collection-dialog-art{position:relative;display:grid;place-items:center;width:100%;margin:6px auto;background:radial-gradient(ellipse at center,#f6dfa784,transparent 65%)}
.collection-dialog .collection-detail-art{width:168px;height:168px;margin:0 auto;object-fit:contain}
.collection-dialog .collection-purchase-summary{gap:7px}
.collection-dialog .collection-purchase-summary h3,.collection-dialog .collection-success h3{font-size:19px;line-height:1.3}
.collection-dialog .collection-tags{margin:0;min-height:24px}
.collection-dialog .collection-rarity{font-size:12px;padding:3px 14px}
.collection-dialog .collection-flavor{max-width:360px;margin:6px auto 10px;font-size:14px;line-height:1.5;color:#80664c}
.collection-exchange-ledger{align-self:stretch;display:grid;gap:9px;margin:5px 0 0;padding:14px 18px;border:1px solid #e3cfad;border-radius:15px;background:#faebd180;text-align:left;font-size:14px}
.collection-exchange-ledger>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.collection-exchange-ledger dd{margin:0;font-weight:850;white-space:nowrap}.collection-exchange-ledger>div:last-child{padding-top:9px;border-top:1px solid #dfc9a8;color:#3e614f}
.collection-dialog-actions{display:flex;flex-direction:column;align-items:center;gap:4px;margin-top:16px}
.collection-dialog .collection-button{width:min(100%,310px);min-height:46px;background:#3e614f;color:#fff8ec;border:1px solid #304f3e;box-shadow:0 3px 0 #294a38;border-radius:14px;font-size:15px}
.collection-dialog .collection-button:hover:not(:disabled){background:#345640;box-shadow:0 5px 10px #3e614f25}.collection-dialog .collection-button:active:not(:disabled){transform:translateY(1px);box-shadow:0 1px 0 #294a38}
.collection-dialog .collection-button:disabled{background:#c9d6cb;color:#3e614f;box-shadow:none;cursor:wait}
.collection-dialog .collection-link{color:#3e614f;text-decoration:none;min-height:44px}.collection-dialog .collection-link:hover:not(:disabled){text-decoration:underline}.collection-dialog .collection-link:disabled{opacity:.55;cursor:wait}
.collection-dialog .collection-dialog-feedback:not(:empty){padding:10px 12px;border-radius:10px;background:#faebd1;font-size:13px;color:#684c32}
.collection-dialog :focus-visible{outline:3px solid #3e614f;outline-offset:3px}.collection-dialog h2:focus{outline:none}
.collection-journal-meta{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0}
.collection-journal-owned{display:inline-flex;align-items:center;gap:5px;padding:4px 12px 4px 6px;background:#e1eddf;border:1px solid #96b7a1;color:#3e614f;border-radius:30px;font-weight:850;font-size:13px}.collection-journal-owned svg{width:25px;height:25px}
.collection-dialog .collection-acquired{padding:14px;margin:18px 0 0;background:#faebd180;border-block:1px solid #e3cfad;border-radius:12px;color:#80664c;font-size:13px}
.collection-dialog .collection-note{font-size:12px;line-height:1.5;color:#80664c;margin:14px auto 0;max-width:330px}
.collection-success .collection-dialog-art{margin:10px auto;background:radial-gradient(ellipse,#f3d27a80,transparent 68%)}
.collection-success .collection-dialog-art::before,.collection-success .collection-dialog-art::after{content:'';position:absolute;width:38px;height:38px;background:url('assets/learning-quest/ornaments/ornament-sparkle.webp') center/contain no-repeat;pointer-events:none;top:25%;left:18%}.collection-success .collection-dialog-art::after{top:57%;left:auto;right:18%;width:25px;height:25px}
.collection-success .collection-detail-art{animation:collection-arrival .4s ease-out both}.collection-dialog .collection-success-copy{font-size:16px;line-height:1.5;font-weight:800;margin:16px auto 6px;max-width:350px}.collection-dialog .collection-success-saved{color:#3e614f;font-size:14px}
.collection-card[data-owned-view=true] .collection-price{opacity:.76}
@keyframes collection-arrival{from{transform:scale(.92);opacity:.5}to{transform:scale(1);opacity:1}}
@media(max-width:480px){.collection-dialog{padding:18px 18px 16px;border-radius:24px 21px 25px 22px}.collection-dialog-header{padding-left:6px}.collection-dialog-header h2{font-size:21px!important}.collection-dialog .collection-detail-art{width:146px;height:146px}.collection-dialog .collection-flavor{font-size:13px;margin-bottom:7px}.collection-exchange-ledger{font-size:13px;padding:12px 14px;gap:8px}.collection-dialog-actions{margin-top:12px}}
@media(max-height:650px){.collection-dialog .collection-detail-art{width:118px;height:118px}.collection-dialog .collection-purchase-summary{gap:4px}.collection-dialog .collection-flavor{margin:3px auto 6px}.collection-exchange-ledger{padding:10px 12px;gap:6px}.collection-dialog-actions{margin-top:10px}}
@media(prefers-reduced-motion:reduce){.collection-success .collection-detail-art{animation:none}.collection-dialog *{transition:none!important}}
