.collection-shell{width:min(1320px,100%);margin:auto;padding:32px}.collection-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.collection-heading h1{font-size:2.5rem;margin:10px 0}.collection-heading a{color:var(--oak)}.collection-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.collection-tabs button[aria-pressed=false]{background:var(--color-surface);color:var(--ink);border-color:var(--birch)}#sampleSection{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;margin:24px 0;border:1px solid var(--birch);border-radius:16px;background:var(--dew)}#sampleSection h2{margin-top:0}#sampleSection p{max-width:720px;line-height:1.6}.collection-filters{display:flex;flex-wrap:wrap;gap:16px}.collection-filters label{flex:1;min-width:150px}.collection-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}.reward-card{display:flex;flex-direction:column;text-align:left;gap:10px;min-width:0;padding:16px;border-radius:14px;background:var(--color-surface);color:var(--ink);border:1px solid var(--birch);box-shadow:none}.reward-card:hover{background:var(--dew);color:var(--ink)}.reward-card[aria-pressed=true]{outline:3px solid var(--oak);outline-offset:1px}.reward-card .reward-art{height:118px;display:grid;place-items:center;overflow:hidden;background:var(--mist);border-radius:10px;width:100%;padding:8px}.reward-art svg{width:100%;height:100%;max-width:130px}.reward-card small{font-weight:500;line-height:1.5;color:var(--muted)}.reward-rarity{font-size:.78rem}.reward-state{font-size:.8rem}.collection-workshop{display:grid;grid-template-columns:minmax(270px,.8fr) minmax(0,1.4fr);gap:32px;align-items:start}.workshop-preview{position:sticky;top:24px;padding:24px;background:var(--color-surface);border:1px solid var(--birch);border-radius:20px}.workshop-preview #largePreview{min-height:300px;display:grid;align-items:center}.workshop-preview .traveler-art{height:310px;width:100%}.workshop-actions{display:flex;flex-wrap:wrap;gap:10px}.collection-runner-scene{display:grid;grid-template-columns:1.4fr .8fr .8fr;gap:12px;align-items:end;border-bottom:4px solid #a2b78d;background:#f5edd8;padding:35px 16px}.collection-runner-scene svg{width:100%;height:120px}.collection-runner-scene[data-motion=jump] svg:first-child{transform:translateY(-25px)}.workshop-controls h2{font-size:1.15rem;margin-top:28px}.color-channel{margin-bottom:22px;border:0;padding:0}.color-channel legend{font-weight:800;margin-bottom:12px}.reward-swatch{height:10px;width:100%;border-radius:10px}.collection-profile-card{position:relative;min-height:185px;padding:28px;background:var(--preview-surface);color:var(--preview-ink);border:4px solid var(--collection-frame);border-radius:18px;box-shadow:0 0 0 12px var(--preview-ground);margin:12px;text-align:center;overflow:hidden}.collection-profile-card h3{color:inherit;margin:8px 0;overflow-wrap:anywhere}.collection-profile-card p{color:inherit;font-size:.85rem}.collection-profile-mark{font-size:2.3rem;color:var(--collection-accent)}.collection-profile-decoration{color:var(--collection-decoration)}.collection-profile-card[data-frame=aurora]{border-style:double;border-width:7px}.reward-art .collection-profile-card{min-height:0;width:100%;padding:8px;margin:0;box-shadow:none;border-width:3px}.reward-art .collection-profile-card h3{font-size:12px}.reward-art .collection-profile-card p{font-size:9px;margin:4px}.reward-art .collection-profile-mark{font-size:16px}.reward-art .collection-profile-decoration{font-size:11px}#profileAccountCard{border-color:var(--collection-frame,var(--birch));border-width:3px}#profileAccountCard .account-mark{background:transparent;color:var(--collection-accent,var(--oak))}:root[data-collection-frame=aurora] #profileAccountCard{border-style:double;border-width:7px}#profileCollectionPreview{margin-bottom:20px}.collection-empty{padding:40px 20px;grid-column:1/-1;text-align:center;border:1px dashed var(--birch);border-radius:14px}#previewNote,#saveStatus,#compatibleForms{line-height:1.6;overflow-wrap:anywhere}.collection-heading .badge{white-space:nowrap}#bonusBlock{padding:18px;border:1px solid var(--birch);border-radius:14px;margin-top:25px}
@media(max-width:800px){.collection-shell{padding:20px}.collection-workshop{grid-template-columns:1fr}.workshop-preview{position:static}.workshop-preview #largePreview{min-height:200px}.workshop-preview .traveler-art{height:240px}#sampleSection{flex-direction:column;align-items:stretch}.collection-heading h1{font-size:2rem}}
@media(max-width:420px){.collection-shell{padding:16px}.collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.reward-card{padding:10px;font-size:.83rem}.reward-card .reward-art{height:98px}.workshop-preview{padding:16px}.collection-heading{align-items:start}.collection-tabs button{flex:1;padding:10px 8px;font-size:.82rem}.collection-filters{flex-direction:column}.workshop-actions button{width:100%}.collection-runner-scene{padding:24px 8px;gap:6px}}
@media(prefers-reduced-motion:reduce){.collection-shell *{transition:none!important;animation:none!important}}

.collection-game-link{display:block;padding:12px 24px;color:var(--oak,#2d6f3f);font-weight:700;text-align:right}

:root[data-collection-frame] #profileAccountCard{border:3px solid var(--collection-frame);background:var(--color-surface)}:root[data-collection-frame=aurora] #profileAccountCard{border-width:7px;border-style:double}:root[data-collection-frame] .profile-summary{border:2px solid var(--collection-frame);background:var(--sidebar-end);border-radius:10px;padding:12px}

.gacha-stage{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:center;padding:28px;background:var(--color-surface);border:1px solid var(--birch);border-radius:20px}.gacha-stage p{line-height:1.6}#gachaScene{display:flex;align-items:end;min-width:0}#gachaScene>svg{width:45%;height:220px}#gachaScene .collection-runner-scene{width:55%;grid-template-columns:1fr;padding:18px}#gachaScene .collection-runner-scene svg:not(:first-child){display:none}#gachaPanel details{margin:24px 0;line-height:1.7}#spinResult{padding:24px;border:2px solid var(--oak);border-radius:18px;background:var(--color-surface)}#resultArt{width:min(300px,100%);min-height:180px;display:grid;place-items:center}#resultArt .collection-profile-card{width:calc(100% - 32px);margin:16px}#resultArt svg{max-width:100%;max-height:180px}#spinResult p{line-height:1.6}#spinResult button{margin:4px}.gacha-opening #resultArt{animation:gacha-reveal .8s ease-out}@keyframes gacha-reveal{from{transform:scale(.65);opacity:.25}to{transform:scale(1);opacity:1}}@media(max-width:800px){.gacha-stage{grid-template-columns:1fr;padding:20px}#gachaScene{max-height:240px}#openSpin{width:100%}}@media(prefers-reduced-motion:reduce){#skipSpinAnimation{display:none}}

.collection-star-map{display:block;width:100%;height:45px}.collection-profile-card[data-frame=constellation]{border-style:dashed;outline:2px solid var(--collection-frame);outline-offset:3px}.collection-profile-card[data-frame=constellation]::before,.collection-profile-card[data-frame=constellation]::after{content:'✦';position:absolute;color:var(--collection-frame);font-size:20px;top:5px}.collection-profile-card[data-frame=constellation]::before{left:8px}.collection-profile-card[data-frame=constellation]::after{right:8px}:root[data-collection-frame=constellation] #profileAccountCard,:root[data-collection-frame=constellation] .profile-summary{border-style:dashed;outline:2px solid var(--collection-frame);outline-offset:3px}.reward-art .collection-star-map{height:18px;max-width:none}

.workshop-owned-toggle{display:flex;align-items:center;gap:10px;margin:0 0 20px;min-height:44px}.workshop-owned-toggle input{width:20px;height:20px;accent-color:var(--oak)}

.collection-frame-motif{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.collection-profile-card>.collection-frame-motif{max-width:none}.reward-art .collection-frame-motif{max-width:none}.collection-profile-card[data-frame=workshop]{border-style:double;border-width:6px;border-radius:8px}.collection-profile-card[data-frame=grove]{border-radius:30px 10px;border-width:3px}.collection-profile-card[data-frame=reef]{border-style:dotted;border-width:5px;border-radius:22px}.reward-card .reward-collection{color:var(--oak);font-weight:700}.collection-pagination{display:flex;justify-content:center;align-items:center;gap:20px;margin:28px 0}.collection-pagination span{font-size:.88rem}.collection-filters label{min-width:min(200px,100%)}
:root[data-collection-frame=workshop] #profileAccountCard,:root[data-collection-frame=workshop] .profile-summary{border-style:double;border-width:6px;border-radius:8px}:root[data-collection-frame=grove] #profileAccountCard,:root[data-collection-frame=grove] .profile-summary{border-radius:30px 10px}:root[data-collection-frame=reef] #profileAccountCard,:root[data-collection-frame=reef] .profile-summary{border-style:dotted;border-width:5px;border-radius:22px}
@media(max-width:520px){.collection-pagination{gap:8px;flex-wrap:wrap}.collection-pagination button{font-size:.8rem;padding:10px}.collection-pagination span{font-size:.8rem}}

.collection-site-preview{display:grid;grid-template-columns:26% minmax(0,1fr);min-height:230px;border:1px solid var(--birch);border-radius:12px;overflow:hidden;background:var(--preview-ground);color:var(--preview-ink);width:100%}.collection-site-preview aside{display:flex;flex-direction:column;gap:14px;background:var(--preview-sidebar);color:#f5f5f0;padding:18px 8px;font-size:11px}.collection-site-preview aside b{font-size:28px;color:var(--collection-accent)}.site-preview-workspace{padding:16px;min-width:0;border-top:3px solid var(--collection-decoration)}.site-preview-workspace>svg{display:block;width:100%;height:45px}.site-preview-workspace>strong{display:block;font-size:14px;overflow-wrap:anywhere;margin:8px 0}.site-preview-card{display:grid;gap:8px;padding:12px;border-radius:8px;background:var(--preview-surface);color:var(--preview-ink);font-size:12px}.site-preview-card span{font-size:10px}.site-preview-card i{font-style:normal;display:block;padding:6px 9px;border-radius:5px;background:var(--preview-primary);color:var(--preview-button-ink);width:fit-content;font-size:11px}.site-preview-strip{margin-top:10px;height:3px;background:linear-gradient(90deg,var(--collection-accent),var(--collection-decoration))}.reward-art .collection-site-preview{min-height:100%;height:100%;border:0;border-radius:6px}.reward-art .collection-site-preview aside{padding:6px 3px;gap:8px;font-size:6px}.reward-art .collection-site-preview aside b{font-size:15px}.reward-art .site-preview-workspace{padding:5px}.reward-art .site-preview-workspace>svg{height:17px;max-width:none}.reward-art .site-preview-workspace>strong{font-size:7px;margin:3px 0}.reward-art .site-preview-card{font-size:7px;padding:4px;gap:3px}.reward-art .site-preview-card span,.reward-art .site-preview-card i{font-size:6px}.reward-art .site-preview-card i{padding:2px 4px}.reward-art .site-preview-strip{margin-top:4px}
