[data-scene="favorites"] { --desk-light:radial-gradient(ellipse at 0 0,#ffffff48,#ffffff00 55%,#3a2a1a29);padding:0;min-height:0;height:var(--desk-height);scroll-margin-block-start:-1rem; }
[data-scene="favorites"] [data-scene-content] { width:min(100%,390px);max-width:390px;height:100%;display:grid;place-items:center; }
[data-scene="favorites"] h2,[data-scene="favorites"] .scene-note { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip-path:inset(50%); }
[data-scene="favorites"] [data-binder] { position:relative; margin:0;width:var(--binder-width);height:var(--binder-height);gap:7px;padding:9px;background:#f4f2ec url('../assets/rich/paper-grain.svg');border:10px solid #24406f;border-left-width:18px;border-radius:9px;box-shadow:inset 0 0 0 1px #d6d1c4,0 4px 0 #142a4c,10px 20px 24px -12px #3a2a1a80;transform:rotate(-.8deg); }
[data-scene="favorites"] [data-binder]::before { content:"";position:absolute;left:-16px;top:15%;width:18px;height:10px;border:3px solid #b8bcc4;border-radius:6px;box-shadow:0 calc(var(--binder-height)*.34) 0 -2px #f4f2ec,0 calc(var(--binder-height)*.34) 0 0 #b8bcc4,0 calc(var(--binder-height)*.68) 0 -2px #f4f2ec,0 calc(var(--binder-height)*.68) 0 0 #b8bcc4; }
[data-scene="favorites"] .favorite-grid > * { position:relative;padding:6px 4px;min-width:0;min-height:0;border:1px solid #c9c3b4;background:#fffffaa6;border-radius:3px; }
[data-scene="favorites"] .favorite-grid > *::after { content:""; position:absolute; left:4px; right:4px; top:34%; height:1px; background:#d6d1c4; pointer-events:none; }
[data-scene="favorites"] [data-favorite] summary { position:relative;z-index:1;display:flex;flex-direction:column;width:100%;aspect-ratio:5/7;min-height:0;padding:0;margin:0;color:#20252d;background:#fff;border:1px solid #20252d;border-radius:2px;box-shadow:0 3px 0 #0000001a;list-style:none;font-size:clamp(8px,2.4cqw,10px);line-height:1.25;text-align:center; }
[data-scene="favorites"] [data-favorite] summary::-webkit-details-marker { display:none; }
[data-scene="favorites"] [data-favorite] summary > [data-copy] { padding:4px 2px; }
[data-scene="favorites"] [data-favorite-art] { flex:1; display:grid; place-items:center; background:#f4efe2; border-bottom:1px solid #20252d; }
[data-scene="favorites"] [data-favorite-art] svg { width:100%; height:auto; }
[data-scene="favorites"] [data-favorite] p { position:absolute;z-index:3;top:78%;left:-4px;right:-4px;padding:8px;margin:0;background:#f7f1e3;border:1px solid #cdbf9f;font-size:.75rem;box-shadow:0 5px 8px #20252d33; }
html[data-core-ready] [data-scene="favorites"] [data-favorite][data-lifted="true"] summary { opacity:.15; }
[data-scene="favorites"] [data-binder-slot] { padding:0; border:2px solid #2148a6; background:#eef2fa; box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 4.5px #9fb3d9; align-items:center; }
[data-scene="favorites"] [data-binder-slot]::after { inset:17% 22% 22%; height:auto; background:none; border:1px dashed #9fb3d9; border-radius:2px; }
[data-scene="favorites"] [data-binder-slot]:has(img:not([hidden]))::after { display:none; }
[data-scene="favorites"] [data-selected-card] { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
[data-scene="favorites"] [data-selected-preview] { width:78%;padding:2px;border:3px solid white;outline:1px solid #20252d;background:#eef2f8;box-shadow:0 4px 5px -2px #0006;transform:rotate(-4deg);z-index:1; }
[data-scene="favorites"] [data-exchange-mark] { position:absolute; bottom:2px; color:#9fb3d9; font-size:14px; }
[data-scene="favorites"] [data-nickname-output] { position:absolute; inset:auto 4px 13%; z-index:2; font-size:8px; line-height:1.1; text-align:center; overflow-wrap:anywhere; }
[data-scene="favorites"] [data-favorite-dialog] { width:min(86vw,20rem); max-height:calc(100svh - 2rem); padding:2.5rem 1rem 1rem; border:0; background:transparent; overflow:auto; color:#20252d; }
[data-scene="favorites"] [data-favorite-dialog]::backdrop { background:#10182a99; }
[data-scene="favorites"] [data-favorite-close] { position:absolute; top:0; right:.1rem; width:44px; height:44px; padding:0; border:0; border-radius:50%; background:#fff; color:#2148a6; font-size:1.7rem; box-shadow:0 4px 7px #0003; }
[data-scene="favorites"] [data-favorite-dialog-card] { display:flex;flex-direction:column;justify-content:center;gap:.85rem;aspect-ratio:5/7;padding:1.1rem; border:2px solid #20252d; outline:6px solid #fff; background:#f4efe2; border-radius:5px; box-shadow:0 20px 30px -12px #0009; transform-origin:50% 50%; }
[data-scene="favorites"] [data-favorite-dialog-card] h3 { margin:0; font-size:1rem; text-align:center; letter-spacing:.08em; overflow-wrap:anywhere; }
.fav-card__no { margin:0; color:#24406f; font-size:.75rem; font-weight:600; letter-spacing:.12em; text-align:center; }
.fav-card__art { display:flex; flex:none; width:min(58%,128px); aspect-ratio:128/124; margin:0 auto; border:1px solid #d9cfba; border-radius:6px; }
[data-scene="favorites"] .fav-card__art > [data-favorite-art] { width:100%; height:100%; border:0; background:#f1ece0; border-radius:inherit; }
[data-scene="favorites"] .fav-card__art svg { max-height:100%; }
[data-scene="favorites"] [data-favorite-dialog-text] { margin:0; font-size:.85rem; line-height:1.65; text-align:center; line-break:strict; word-break:normal; text-wrap:pretty; }
.fav-card__phrase { white-space:nowrap; }
