/* Companion stories and keepsakes use the existing Dongdong palette and character assets. */
#profile-companion-book .section-title>button{font-size:12px;padding:0}.book-intro,.coop-preview>p:not(.eyebrow){font-size:13px;line-height:22px;color:#626b74;margin:12px 0}.coop-preview{margin-top:18px;padding:20px 0;border-top:1px solid var(--mist)}.coop-preview h3{font-size:20px;line-height:29px;margin:6px 0 16px}.coop-preview>small{display:block;font-size:11px;color:#747d86}.coop-preview .text-button{padding:0;font-size:13px}.coop-person{margin:14px 0}.coop-person>span:first-child{display:flex;gap:6px;align-items:center;font-size:13px}.coop-person b{margin-left:auto;font-size:13px}.coop-person small{font-size:10px;color:#747d86}.coop-dots{display:flex;gap:6px;margin-top:9px}.coop-dots i{height:7px;flex:1;max-width:48px;background:var(--mist);border-radius:8px}.coop-dots .is-done{background:var(--sky)}.book-overlay{position:absolute;inset:0;z-index:85;background:rgba(17,17,17,.3);display:flex;align-items:flex-end}.book-panel{background:#fff;width:100%;max-height:95%;min-height:65%;overflow-y:auto;overscroll-behavior:contain;border-radius:24px 24px 0 0;padding:12px 24px 24px;scrollbar-width:none;outline:none}.book-toolbar{position:sticky;top:-12px;margin:0 -4px 12px;padding:4px 0;background:#fff;display:grid;grid-template-columns:44px 1fr 44px;align-items:center;z-index:2}.book-toolbar h2{text-align:center;font-size:16px;grid-column:2;margin:0}.book-toolbar button{height:44px;width:44px;background:transparent;font-size:28px}.book-toolbar>button:last-child{grid-column:3}.book-lead{font-size:26px;line-height:36px;letter-spacing:-.7px;margin:6px 0 16px}.book-footnote,.book-feedback{font-size:11px;line-height:19px;color:#68707a;margin:20px 0 0}.book-feedback:not(:empty){padding:10px;background:var(--sky-100);border-radius:10px}.book-empty{font-size:14px;line-height:24px;padding:24px 0;color:#68707a}.book-alien-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:24px 0}.book-alien-links button{background:transparent;padding:0;text-align:center;overflow:hidden;min-height:130px;display:flex;flex-direction:column;align-items:center}.book-alien-links .alien-sprite{transform:scale(.55);margin:-25px -35px -27px;flex-shrink:0}.book-alien-links strong{font-size:14px;margin:8px 0}.book-alien-links small{font-size:10px;color:#68707a}.book-card-list>button{display:flex;align-items:center;gap:12px;background:transparent;width:100%;text-align:left;padding:16px 0;border-bottom:1px solid var(--mist);min-height:80px}.book-card-symbol{width:38px;height:46px;background:var(--sky-100);display:grid;place-items:center;border-radius:8px;font-size:22px;flex-shrink:0}.book-card-list>button>span:nth-child(2){display:grid;gap:8px;flex:1;min-width:0}.book-card-list strong{font-size:14px;line-height:21px}.book-card-list small{font-size:11px;color:#68707a}.book-friends>button{min-height:78px;padding:16px 0;background:transparent;display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;border-bottom:1px solid var(--mist)}.book-friends span{font-size:16px}.book-friends small{display:block;font-size:11px;line-height:20px;color:#68707a;margin-top:4px}.book-friends b{font-size:12px;font-weight:500}.book-character{text-align:center}.book-character>.alien-sprite{margin:-8px auto -8px}.book-character h3{font-size:24px;margin:10px 0}.book-character>p:last-child{font-size:13px;color:#68707a}.book-chapters{list-style:none;padding:0;margin:28px 0}.book-chapters li{padding:22px 0;border-top:1px solid var(--mist)}.book-chapters small{font-size:11px;color:#68707a}.book-chapters h3{font-size:18px;margin:10px 0}.book-chapters p{font-size:14px;line-height:25px;margin:12px 0;color:#68707a}.book-chapters .is-unlocked p{color:var(--ink)}.memory-showcase{background:transparent;width:100%;text-align:left;padding:0}.memory-postcard{position:relative;padding:20px 16px 24px;border:1px solid var(--ink);margin:20px 0 0;background:#fff;overflow:hidden}.memory-postmark{position:absolute;right:14px;top:14px;font-size:7px;line-height:12px;letter-spacing:1px;text-align:right;transform:rotate(5deg)}.memory-postcard>.eyebrow{font-size:11px}.memory-postcard h3{font-size:24px;line-height:34px;letter-spacing:-.8px;margin:14px 0}.memory-postcard>p:not(.eyebrow){font-size:12px;line-height:21px;margin:10px 0}.memory-postcard>small{font-size:10px;color:#68707a}.memory-art{height:220px;position:relative;margin:12px -8px 0;display:flex;align-items:center;justify-content:center}.memory-earth{position:absolute;width:175px;height:175px;left:50%;top:30px;transform:translateX(-50%);background:var(--sky-100);border-radius:50%}.memory-orbit{position:absolute;width:96%;height:70px;border:1px solid var(--sky);border-radius:50%;transform:rotate(-16deg);top:85px}.memory-art>.alien-sprite{position:relative;transform:scale(.95);z-index:1;flex-shrink:0}.memory-art--duo>.alien-sprite{transform:scale(.68);width:150px;margin:0 -25px}.memory-art>img{position:absolute;right:3px;top:22px;width:65px;height:46px;object-fit:contain}.memory-star{position:absolute;left:24px;top:32px;color:var(--star);font-size:25px}.memory-example{display:block;margin-top:14px;color:#68707a;font-size:9px}.book-card-actions{margin-top:24px}.is-compact .memory-art{height:150px}.is-compact .memory-earth{height:130px;width:130px;top:10px}.is-compact .memory-orbit{top:55px}.is-compact .memory-art>.alien-sprite{transform:scale(.7)}.is-compact .memory-art--duo>.alien-sprite{transform:scale(.55)}.is-compact h3{font-size:20px;line-height:28px}.complete-keepsake{font-size:12px;line-height:20px;color:#68707a;margin:16px 0}.complete-keepsake button{background:transparent;min-height:44px;text-decoration:underline;text-underline-offset:4px;font-size:13px;padding:0}
@media(max-width:350px){.book-panel{padding-left:18px;padding-right:18px}.memory-postcard h3{font-size:20px}.memory-art--duo>.alien-sprite{margin:0 -30px}.book-lead{font-size:24px}.memory-postmark{font-size:6px}}
.collection .collection-story-link{font-size:10px;line-height:18px;color:#68707a;text-decoration:underline;text-underline-offset:3px}.book-feedback a{display:block;color:var(--ink);min-height:44px;padding:12px 0}

/* Profile stories and keepsakes are readable on the page itself. */
.profile .collection{grid-template-columns:minmax(0,1fr);gap:0}.profile-alien-entry{display:grid;grid-template-columns:80px minmax(0,1fr);gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid var(--mist)}.profile-alien-entry:last-child{border-bottom:0}.profile-alien-portrait{height:106px;display:grid;place-items:center;border-radius:18px;background:var(--mist)}.profile .collection .profile-alien-portrait .alien-sprite{width:76px;height:101px;transform:none;margin:0}.profile-alien-entry h3{display:flex;align-items:baseline;gap:10px;font-size:16px;line-height:24px;margin:0 0 7px}.profile-alien-entry h3 small{font-size:10px;color:#68707a;font-weight:400}.profile-alien-entry p{font-size:12px;line-height:21px;color:#626b74;margin:0}.profile-alien-rescues{display:block;font-size:10px;color:#68707a;margin-top:7px}.profile #profile-collection-count{font-size:10px}.profile #profile-companion-book{margin-top:24px}.profile-memory-inline>.memory-postcard{margin-top:8px}.profile-memory-inline .memory-postcard h3{font-size:20px;line-height:29px;letter-spacing:-.4px}.profile-memory-example{border-color:#d9e0e6;border-radius:16px;padding:18px}.profile-memory-inline .memory-example{margin-top:10px}.profile .badges{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.profile-badge-item{display:flex;flex-direction:column;align-items:center;text-align:center;padding:4px 0 8px;min-width:0}.profile-badge-art{display:block;width:66px;height:74px}.profile-badge-art svg{display:block;width:100%;height:100%}.profile-badge-item h3{font-size:11px;line-height:18px;font-weight:500;margin:7px 0 2px;overflow-wrap:anywhere}.profile-badge-item small{font-size:9px;line-height:16px;color:#858c94;margin:0}
.profile-memory-fold{background:var(--mist);border-radius:16px;overflow:hidden}.profile-memory-fold>summary{display:flex;align-items:center;gap:12px;min-height:82px;padding:14px 16px;cursor:pointer;list-style:none}.profile-memory-fold>summary::-webkit-details-marker{display:none}.profile-memory-fold>summary:focus-visible{outline:2px solid var(--sky);outline-offset:-3px;border-radius:16px}.profile-memory-book{display:block;flex:0 0 40px;width:40px;height:48px}.profile-memory-book svg{display:block;width:100%;height:100%}.profile-memory-copy{display:grid;gap:6px;flex:1;min-width:0}.profile-memory-copy strong{font-size:16px;line-height:23px}.profile-memory-copy small{font-size:10px;line-height:17px;color:#68707a}.profile-memory-count{font-size:10px;color:#68707a;white-space:nowrap}.profile-memory-chevron{flex:0 0 18px;width:18px;height:18px;transition:transform .2s}.profile-memory-fold[open] .profile-memory-chevron{transform:rotate(180deg)}.profile-memory-fold>.profile-memory-inline{padding:0 12px 12px}.profile-memory-fold .memory-postcard{margin-top:0}

@media(max-width:350px){.profile-alien-entry{grid-template-columns:68px minmax(0,1fr);gap:10px}.profile .collection .profile-alien-portrait .alien-sprite{width:66px;height:88px}.profile-alien-entry h3{gap:7px}.profile-alien-entry p{font-size:11px;line-height:20px}.profile .badges{gap:8px}.profile-badge-art{width:58px;height:66px}.profile-memory-fold>summary{padding:12px;gap:9px}.profile-memory-copy small{font-size:9px}.profile-memory-inline .memory-postcard h3{font-size:18px}}

@media(prefers-reduced-motion:reduce){.profile-memory-chevron{transition:none}}

