.profile-settings{border-top:1px solid #59637133;padding-top:18px;margin-top:20px}.profile-settings h3{margin:0 0 8px}.profile-settings p{font-size:.875rem;line-height:1.5}.profile-settings form{display:grid;gap:14px}.profile-settings form[hidden]{display:none}.profile-settings label{display:grid;gap:6px}.profile-settings textarea{width:100%;resize:vertical;font:inherit;padding:10px;border:1px solid #59637155;border-radius:6px}.profile-settings fieldset{min-width:0;border:1px solid #59637133;border-radius:8px;padding:12px}.profile-container-choices{display:grid;gap:10px;max-height:240px;overflow:auto}.profile-container-choices label{display:flex;align-items:center;gap:10px;font-size:.9rem;font-weight:500}.profile-container-choices input{width:20px;height:20px;flex:none;accent-color:var(--accent)}.profile-public-notice{background:#e8eee9;padding:12px;border-radius:8px}.find-collectors-link{color:inherit;text-decoration:none;border:1px solid #ffffff33;padding:10px 14px;border-radius:10px}.customize-panel{max-height:calc(100dvh - 32px);overflow-y:auto}
.community-page{margin:0;background:#101c18;color:#f2f4ed;min-height:100vh;font-family:Manrope,system-ui,sans-serif}.community-header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px max(20px,calc((100vw - 1180px)/2));border-bottom:1px solid #ffffff25}.community-header a{color:#e2eddf;text-decoration:none}.community-brand{font-weight:800}.community-main{max-width:1180px;margin:auto;padding:32px 20px 64px}.community-intro h1{font-size:clamp(2rem,5vw,3.4rem);margin:8px 0}.community-intro{padding:24px 0 28px}.community-intro p{color:#bdd0c4}.collector-search{max-width:650px;display:grid;gap:8px}.collector-search>div{display:flex;gap:10px}.collector-search input{flex:1;min-width:0;background:#f9faf5;color:#15241c;padding:12px;border-radius:8px}.community-page button{min-height:44px}.community-page #communityStatus{color:#c8d8cd;min-height:24px;margin:20px 0}.community-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:18px}.community-tile{display:flex;flex-direction:column;gap:12px;align-items:start;text-align:left;padding:22px;background:#1a3027;color:#f2f4ed;border:1px solid #ffffff26;border-radius:14px;text-decoration:none;overflow:hidden}.community-tile:hover{background:#224333}.community-tile h2,.community-tile h3,.community-tile p{margin:0;overflow-wrap:anywhere}.community-tile p{color:#bfd2c6}.community-cover{display:flex;gap:10px;height:165px;width:100%;overflow:hidden}.community-cover img{height:100%;max-width:48%;object-fit:contain;border-radius:8px}.community-profile{border:1px solid #ffffff26;background:#1a3027;border-radius:16px;padding:26px;margin:20px 0}.community-profile h1{margin:0;overflow-wrap:anywhere}.community-profile p{white-space:pre-wrap;overflow-wrap:anywhere;color:#c8d8cd}.community-back{display:inline-block;margin-bottom:16px;color:#cbe5d2}.public-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:16px}.public-card{padding:10px;background:#1a3027;color:#f2f4ed;border:1px solid #ffffff25;display:flex;flex-direction:column;gap:8px;text-align:left;border-radius:10px}.public-card img{width:100%;aspect-ratio:63/88;object-fit:contain;border-radius:8px}.public-card strong{overflow-wrap:anywhere}.public-card span{font-size:.875rem}.public-card-dialog{width:min(900px,calc(100vw - 28px));max-height:90dvh;overflow:auto;border:1px solid #ffffff30;border-radius:16px;background:#162a21;color:#f2f4ed;padding:22px}.public-card-dialog::backdrop{background:#000b}.public-card-dialog>button{display:block;margin-left:auto;margin-bottom:16px}#publicCardContent{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px}#publicCardContent img{width:100%;border-radius:12px}#publicCardContent h2{margin-top:0}#publicCardContent p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.community-container-tools{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}.community-container-tools input{flex:1;min-width:160px;padding:10px}.community-container-tools label{display:flex;gap:8px;align-items:center}.community-container-tools select{padding:10px}.community-page a:focus-visible{outline:3px solid #b7d99c;outline-offset:4px}@media(max-width:600px){.community-header{padding:16px}.community-main{padding:20px 16px}.community-profile{padding:20px}#publicCardContent{grid-template-columns:1fr}#publicCardContent img{max-width:300px;justify-self:center}.public-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Shared collection styling, with the profile owner's colors. */
.community-page{background:radial-gradient(ellipse at 10% 0%,rgba(var(--page-primary-rgb,43,108,86),.34),transparent 55%),radial-gradient(ellipse at 95% 30%,rgba(var(--page-secondary-rgb,127,55,70),.25),transparent 60%),#101b18;background-attachment:fixed}
.community-main{max-width:1280px}.community-intro.home-panel{min-height:220px;padding:32px;border-radius:16px;display:block}.community-intro[hidden]{display:none}.community-intro>*{position:relative;z-index:1}.community-intro p{color:#e1e9e3}.collector-search{margin:24px 0}.community-profile.home-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,.8fr);align-items:center;gap:30px;padding:40px;min-height:360px;border-radius:16px;position:relative}.profile-heading-copy{position:relative;z-index:2;text-shadow:0 2px 12px #000}.profile-heading-copy h1{font-size:clamp(2rem,4vw,3.5rem);line-height:1.1}.profile-heading-copy p{color:#f1f5ed}.profile-username{font-size:1.125rem}.community-profile .profile-header-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.33;z-index:0;pointer-events:none}.community-profile::before{z-index:1}.community-profile::after{z-index:2}.profile-showcase{position:relative;z-index:2;min-width:0;text-align:center}.profile-showcase-label{font-size:.75rem;letter-spacing:.18em;color:#d4e0d7;display:block;margin-top:4px}.profile-card-fan{height:270px;width:100%;position:relative;isolation:isolate;flex:none}.profile-fan-card{position:absolute;left:50%;top:20px;width:145px;aspect-ratio:63/88;margin-left:-72.5px;padding:0;border:0;background:transparent!important;border-radius:10px;box-shadow:none!important;transform:translate(var(--fan-x,0px),var(--fan-y,0px)) rotate(var(--fan-angle,0deg));transition:transform 750ms cubic-bezier(.2,.92,.22,1);transform-origin:50% 85%}.profile-card-float{width:100%;height:100%;animation:homeCardFloat 9.5s ease-in-out var(--float-delay,0s) infinite;filter:drop-shadow(0 12px 12px #0007)}.profile-card-float img{display:block;width:100%;height:100%;object-fit:contain;border-radius:9px}.profile-card-placeholder{display:grid;place-items:center;background:#21392e;width:100%;height:100%;border:1px solid #ffffff44;border-radius:9px;padding:12px}.profile-fan-card:focus-visible{outline:3px solid #ecd69c;outline-offset:5px}.community-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:22px}.community-tile{background:linear-gradient(135deg,rgba(var(--page-primary-rgb,43,108,86),.14),rgba(var(--page-secondary-rgb,127,55,70),.12)),#172920}.community-tile:hover{background-color:#20372c}.collection-preview{padding:22px;gap:8px;align-items:stretch}.collection-preview h3{font-size:1.2rem}.public-container-section{margin:34px 0}.public-container-section>h2{font-size:1.5rem;margin-bottom:18px}.public-deck-feature{height:370px;position:relative;width:100%}.public-commanders{position:relative;height:245px;z-index:1;display:flex;justify-content:center;gap:12px}.public-commanders .profile-fan-card{position:relative;left:auto;top:0;margin:0;transform:none;width:150px;height:210px;aspect-ratio:63/88;flex:0 1 150px}.public-commanders:has(> :nth-child(2)) .profile-fan-card{width:120px;height:168px;flex-basis:120px}.public-deck-feature>.profile-card-fan{position:absolute;bottom:0;height:180px;z-index:2}.public-deck-feature>.profile-card-fan .profile-fan-card{width:100px;margin-left:-50px;top:0}.collector-result{border-top:3px solid var(--collector-color)}
.header-collector-search{margin-left:auto;display:grid;gap:5px;min-width:0;width:clamp(230px,26vw,380px)}.header-collector-search label{font-size:.8rem;color:#dce7df;font-weight:500}.header-collector-search>div{display:flex;gap:6px}.header-collector-search input{width:100%;min-width:0;font-size:.875rem;padding:8px 10px;border:1px solid #ffffff33;background:#ffffff0d;color:#f5f6ef;border-radius:8px}.header-collector-search input::placeholder{color:#bdd0c4}.header-collector-search button{font-size:.875rem;min-height:40px;padding:8px 12px}.collection-app-header>.collection-account-menu{flex:none}.profile-color-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.profile-appearance-controls{display:grid;gap:12px}#profileHeaderPreview{width:100%;height:110px;object-fit:cover;border-radius:8px}#profileHeaderPreview[hidden]{display:none}#profileShowcaseChoices{display:grid;gap:12px}.profile-settings input[type=file]{max-width:100%;font-size:.85rem}
.public-card-dialog{width:min(1080px,calc(100vw - 28px));background:linear-gradient(140deg,rgba(var(--page-primary-rgb,43,108,86),.14),rgba(var(--page-secondary-rgb,127,55,70),.12)),#121e19}.public-card-dialog #publicCardContent{grid-template-columns:minmax(200px,.85fr) minmax(0,1.15fr);align-items:start;gap:30px}.public-card-dialog .detail-card-float-shell{position:relative;width:100%;max-width:350px;margin:15px auto;animation:detailCardFloat 9.5s ease-in-out infinite}.public-card-dialog .detail-card-image{width:100%;aspect-ratio:63/88;position:relative;transform:none}.public-card-dialog .detail-card-image>img{width:100%;height:100%;object-fit:contain}.public-card-dialog .detail-text-box{max-height:none;overflow:visible;padding:24px;background:#ffffff06;border:1px solid #ffffff1c;border-radius:12px;color:#f2f4ed}.public-card-dialog .detail-value-strip{flex-wrap:wrap;gap:12px}.public-card-dialog .detail-oracle p{white-space:pre-wrap}.public-card-dialog .mana-symbol{display:inline-block;width:20px!important;height:20px!important;border-radius:0;vertical-align:middle}.public-card-dialog .detail-disclosure>summary{cursor:pointer}.public-ownership{font-size:.9rem;color:#c2d3c6}.public-card-dialog .detail-flip-button{z-index:4}
@media(max-width:720px){.community-profile.home-panel{grid-template-columns:1fr;padding:26px 22px;gap:14px}.profile-showcase{max-width:350px;width:100%;margin:auto}.community-intro.home-panel{padding:24px;min-height:190px}.collection-app-header{flex-wrap:wrap}.collection-app-header>.collection-app-brand{width:100%}.header-collector-search{margin:0;flex:1;width:auto}.collection-app-header>.collection-account-menu{align-self:end}.public-card-dialog #publicCardContent{grid-template-columns:1fr}.public-card-dialog .detail-card-float-shell{max-width:260px}.public-card-dialog .detail-text-box{padding:20px}.community-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr))}}
@media(prefers-reduced-motion:reduce){.profile-card-float,.public-card-dialog .detail-card-float-shell{animation:none}.profile-fan-card{transition:none}}

.community-profile.home-panel:not(:has(.profile-showcase)){grid-template-columns:1fr}

.customize-panel{top:90px;max-height:calc(100dvh - 106px)}.profile-settings{margin-top:0}.profile-settings-status{overflow-wrap:anywhere}.profile-settings>button{margin-bottom:12px}@media(max-width:720px){.customize-panel{top:16px;max-height:calc(100dvh - 32px);z-index:60}}

/* Collection showcases lead; decks sit together below with a quieter scale. */
.public-priority-section .community-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px}
.public-priority-section .collection-preview{position:relative;isolation:isolate;overflow:hidden;min-height:490px;padding:28px;background:radial-gradient(ellipse at 15% 10%,rgba(var(--page-primary-rgb,43,108,86),.42),transparent 70%),radial-gradient(ellipse at 95% 90%,rgba(var(--page-secondary-rgb,127,55,70),.35),transparent 70%),#101b18;border-color:#ffffff30;box-shadow:0 16px 36px #0003}
.public-priority-section .collection-preview::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(120deg,var(--page-primary,#2b6c56),var(--page-secondary,#7f3746));mask:var(--topography-mask,url('./assets/topography-03.svg')) var(--topography-position,center)/1100px 707px repeat;-webkit-mask:var(--topography-mask,url('./assets/topography-03.svg')) var(--topography-position,center)/1100px 707px repeat;opacity:.35}
.public-priority-section .profile-card-fan{height:330px;margin-top:12px}
.public-priority-section .profile-fan-card{width:190px;margin-left:-95px;top:15px}
.public-priority-section .collection-preview h3{font-size:1.65rem;line-height:1.2}
.public-container-copy{position:relative;z-index:4;display:grid;gap:8px;width:100%;margin-top:auto}
.public-container-copy>p{margin:0;color:#c9d9ce}
.public-container-spotlight{margin-top:12px;padding:14px 16px;background:#070e0cb3;border:1px solid #ffffff16;border-radius:8px;display:grid;gap:6px}
.public-container-spotlight strong{font-size:1rem;font-weight:600}
.public-container-spotlight>span:last-child{font-size:.875rem;color:#d1dfd6}
.public-container-spotlight .public-highlight-label{font-size:.7rem;letter-spacing:.1em;color:#d9ca91}
.public-decks-section{padding-top:24px;border-top:1px solid #ffffff25}
.public-decks-section>h2{text-align:center}
.public-decks-section .community-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:20px}
.public-decks-section .collection-preview{flex:0 1 300px;width:300px;max-width:100%;padding:20px;text-align:center}
.public-decks-section .public-deck-feature{height:320px}
.public-decks-section .public-commanders .profile-fan-card{width:135px;height:189px;flex-basis:135px}
.public-decks-section .public-commanders:has(> :nth-child(2)) .profile-fan-card{width:105px;height:147px;flex-basis:105px}
.public-decks-section .public-deck-feature>.profile-card-fan{height:155px}
.public-decks-section .public-deck-feature>.profile-card-fan .profile-fan-card{width:85px;margin-left:-42.5px}
.public-decks-section .collection-preview h3{font-size:1.1rem}
@media(max-width:760px){.public-priority-section .community-grid{grid-template-columns:1fr}.public-priority-section .collection-preview{min-height:430px;padding:22px}.public-priority-section .profile-card-fan{height:285px}.public-priority-section .profile-fan-card{width:155px;margin-left:-77.5px}.public-priority-section .collection-preview h3{font-size:1.4rem}}
@media(prefers-reduced-motion:reduce){.public-priority-section .profile-card-float{animation:none}}

.public-priority-section .community-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:26px}
.public-priority-section .collection-preview{flex:0 1 calc(50% - 13px);width:calc(50% - 13px);max-width:610px;min-width:0}
.showcase-pick-slot{display:grid;gap:10px;padding:12px;border:1px solid #59637133;border-radius:10px}
.showcase-pick-preview{width:110px;max-height:155px;object-fit:contain;border-radius:7px;justify-self:center}.showcase-pick-preview[hidden]{display:none}
.showcase-picker{width:min(850px,calc(100vw - 28px));max-height:85dvh;overflow:auto;padding:22px;border:1px solid #ffffff33;border-radius:14px;background:#152a21;color:#f2f4ed}.showcase-picker::backdrop{background:#000b}.showcase-picker>header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.showcase-picker h2{font-size:1.35rem;margin:0}.showcase-picker>label{display:grid;gap:6px}.showcase-picker input{width:100%;padding:10px}.showcase-picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:12px}.showcase-choice{display:flex;flex-direction:column;gap:8px;background:#20392e;border:1px solid #ffffff30;text-align:left;padding:10px;min-width:0}.showcase-choice img{width:100%;aspect-ratio:63/88;object-fit:contain;border-radius:7px}.showcase-choice strong{font-size:.9rem;overflow-wrap:anywhere}.showcase-choice span{font-size:.8rem;color:#c5d5cb}
@media(max-width:760px){.public-priority-section .collection-preview{flex-basis:100%;width:100%}.showcase-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Keep the image clear while letting the card fan extend beyond the header. */
.community-profile.home-panel{overflow:visible;margin-bottom:64px;background:linear-gradient(120deg,rgba(var(--page-primary-rgb),.16),rgba(var(--page-secondary-rgb),.12)),#10161b}
.community-profile .profile-header-art{opacity:.72;border-radius:16px}
.community-profile.home-panel::before{inset:0;border-radius:16px;opacity:.15}
.community-profile.home-panel::after{border-radius:0 0 16px 16px}
.community-profile .profile-showcase{align-self:center;justify-self:center;width:100%;margin:0}
.community-profile .profile-showcase .profile-card-fan{height:280px}
.community-profile .profile-showcase .profile-fan-card{width:190px;margin-left:-95px;top:50%;transform:translate(var(--fan-x,0px),calc(-50% + var(--fan-y,0px) - 10px)) rotate(var(--fan-angle,0deg))}
.community-profile .profile-showcase .profile-card-float{filter:drop-shadow(0 20px 18px #0009)}
.collection-app-header>.collection-account-menu,.collection-app-header>.header-profile-link{align-self:flex-end}
.header-collector-search button,.collection-account-menu>summary,.header-profile-link{height:44px;min-height:44px;box-sizing:border-box}
.header-profile-link{display:inline-flex;align-items:center;justify-content:center;padding:8px 14px;border:1px solid #ffffff30;border-radius:12px;color:#f5f6ef;text-decoration:none;font-size:.875rem;white-space:nowrap}
.header-profile-link[hidden]{display:none}.header-profile-link:hover{background:#ffffff10}
@media(max-width:900px){.collection-app-header{flex-wrap:wrap}.collection-app-brand{flex:1 0 100%}.header-collector-search{flex:1;margin-left:0}.community-profile .profile-showcase .profile-fan-card{width:170px;margin-left:-85px}}
@media(max-width:720px){.community-profile.home-panel{margin-bottom:62px}.community-profile .profile-showcase{margin:0;max-width:100%}.community-profile .profile-showcase .profile-card-fan{height:260px}.community-profile .profile-showcase .profile-fan-card{width:160px;margin-left:-80px}.header-collector-search{flex-basis:100%}.header-profile-link{margin-left:auto}}

/* Separate the pointer response from the fan positioning and idle float. */
.profile-showcase .profile-fan-card{--tilt-x:0deg;--tilt-y:0deg;--shine-x:50%;--shine-y:50%;--shadow-x:0px;--shadow-y:0px}
.profile-showcase .profile-card-plane{position:relative;inset:auto;width:100%;height:100%;border-radius:9px;transform:translateZ(0);transition:transform 65ms linear,box-shadow 160ms ease}
.profile-showcase .profile-fan-card:focus-visible{z-index:90!important}
.profile-showcase .profile-fan-card:focus-visible .profile-card-plane{box-shadow:0 24px 40px #0008,0 0 0 2px #ecd69c}
@media(hover:hover) and (pointer:fine){
.profile-showcase .profile-fan-card:hover{z-index:90!important}
.profile-showcase .profile-fan-card:hover .profile-card-plane{transform:perspective(900px) translate3d(0,-12px,34px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) scale(1.075);box-shadow:var(--shadow-x) var(--shadow-y) 32px #0004,0 32px 56px #0006,0 0 0 1px #fff3}
.profile-showcase .profile-fan-card:hover .profile-card-plane::before{opacity:.54}

}
@media(prefers-reduced-motion:reduce){.profile-showcase .profile-card-plane{transition:none}.profile-showcase .profile-fan-card:hover .profile-card-plane{transform:none}.profile-showcase .profile-card-plane::before{display:none}}

/* Match the main card viewer: floating artwork and a translucent details panel. */
.public-card-dialog{background:transparent;border:0;box-shadow:none;backdrop-filter:none;padding:22px;overflow:auto}
.public-card-dialog::backdrop{background:rgba(8,13,16,.65)}
.public-card-dialog .detail-text-box{background:rgba(18,27,23,.76);border:1px solid #ffffff26;backdrop-filter:blur(12px);box-shadow:0 18px 45px #0004}
.public-card-dialog>button{background:rgba(12,18,15,.8);border:1px solid #ffffff38;border-radius:999px}
.public-card-dialog.viewer-moving .detail-card-float-shell{animation-play-state:paused}
.public-card-dialog.viewer-closing .detail-text-box{opacity:0;transition:opacity 180ms ease}
.public-viewer-zoom{position:fixed!important;max-width:none!important;max-height:none!important;object-fit:contain;border-radius:12px;transform-origin:top left;pointer-events:none;z-index:100;filter:drop-shadow(0 24px 36px #0007)}
@media(prefers-reduced-motion:reduce){.public-card-dialog.viewer-closing .detail-text-box{transition:none}}

.public-foil-surface{position:relative;width:100%;height:100%;border-radius:inherit;overflow:hidden;isolation:isolate}
.public-foil-surface>img{display:block;width:100%;height:100%;object-fit:contain}
.public-card>.public-foil-surface{height:auto;aspect-ratio:63/88;border-radius:8px}
.public-foil-surface.is-foil::after {
  background:
    radial-gradient(circle at var(--shine-x,50%) var(--shine-y,50%), rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.18) 15%, transparent 36%),
    conic-gradient(from 210deg at var(--shine-x,50%) var(--shine-y,50%), rgba(255, 45, 132, 0.34), rgba(255, 214, 92, 0.28), rgba(58, 220, 145, 0.3), rgba(72, 160, 255, 0.34), rgba(198, 100, 255, 0.3), rgba(255, 45, 132, 0.34)),
    linear-gradient(124deg, rgba(255, 255, 255, 0) 6%, rgba(255, 72, 136, 0.2) 20%, rgba(255, 217, 88, 0.16) 34%, rgba(65, 214, 136, 0.17) 48%, rgba(80, 158, 255, 0.2) 64%, rgba(190, 106, 255, 0.18) 78%, rgba(255, 255, 255, 0) 94%);
  background-size: 175% 175%, 100% 100%, 240% 240%;
  content: "";
  filter: saturate(1.14) contrast(1.02);
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0.3;
  pointer-events: none;
  position: absolute;
  transition: opacity 120ms ease;
  z-index: 1;
}
@media(hover:hover){.profile-fan-card:hover .public-foil-surface.is-foil::after,.public-card:hover .public-foil-surface.is-foil::after{opacity:.62}}
.public-foil-surface.is-foil{border-radius:9px}

/* Compact profiles without shrinking the artwork into thumbnails. */
.community-main{max-width:1180px;padding-top:22px}.community-profile.home-panel{min-height:320px;padding:28px 32px;gap:22px;margin:14px 0 30px}.profile-heading-copy h1{font-size:clamp(1.8rem,3.5vw,3rem)}.profile-heading-copy p{margin:10px 0}.community-profile .profile-showcase .profile-card-fan{height:260px}.public-container-section{margin:24px 0}.public-container-section>h2{margin-bottom:12px}.public-priority-section .community-grid{gap:18px}.public-priority-section .collection-preview{flex-basis:calc(50% - 9px);width:calc(50% - 9px);min-height:0;padding:20px;gap:8px}.public-priority-section .profile-card-fan{height:285px;margin-top:0}.public-priority-section .profile-fan-card{width:175px;margin-left:-87.5px;top:8px}.public-priority-section .collection-preview h3{font-size:1.4rem}.public-container-copy{gap:6px}.public-container-spotlight{margin-top:6px;padding:10px 12px;gap:4px}.public-decks-section{padding-top:18px}.public-decks-section .community-grid{gap:16px}.public-decks-section .collection-preview{padding:16px}.public-decks-section .public-deck-feature{height:285px}
.profile-banner-editor{display:grid;gap:10px;min-width:0;padding:10px;border:1px solid #59637133;border-radius:10px;background:#f4f6f1}.profile-banner-editor[hidden]{display:none}.profile-banner-editor #profileHeaderPreview{display:block;width:100%;height:160px;min-height:160px;max-height:160px;object-fit:cover;flex-shrink:0}.profile-banner-editor label{margin:0;gap:6px}.profile-banner-editor input[type=range]{width:100%;min-width:0;margin:0;min-height:36px}.profile-banner-editor output{font-size:.875rem;text-align:right;color:#34483d}
@media(max-width:760px){.community-main{padding-top:16px}.community-profile.home-panel{padding:22px 20px;gap:8px;margin-bottom:24px;min-height:0}.community-profile .profile-showcase .profile-card-fan{height:235px}.public-priority-section .collection-preview{flex-basis:100%;width:100%;padding:18px;min-height:0}.public-priority-section .profile-card-fan{height:255px}.public-priority-section .profile-fan-card{width:150px;margin-left:-75px}.public-container-section{margin:20px 0}.profile-banner-editor{gap:8px;padding:8px}.profile-banner-editor #profileHeaderPreview{height:150px;min-height:150px;max-height:150px}.profile-settings .profile-appearance-controls{gap:12px}.profile-settings input[type=file]{width:100%;min-width:0}.profile-settings label,.profile-settings fieldset{min-width:0}}
/* The showcase breaks the banner edge while its layout stays centered. */
.community-profile.home-panel:has(.profile-showcase){margin-top:70px;overflow:visible}
.community-profile .profile-showcase{transform:translateY(-50px);z-index:3}
.community-profile .profile-showcase .profile-fan-card{width:210px;margin-left:-105px}
.community-profile .profile-showcase .profile-card-float{filter:drop-shadow(0 24px 20px #0009)}
@media(min-width:721px) and (max-width:900px){.community-profile .profile-showcase .profile-fan-card{width:185px;margin-left:-92.5px}.community-profile .profile-showcase{transform:translateY(-60px)}}
@media(max-width:720px){.community-profile.home-panel:has(.profile-showcase){margin-top:14px;margin-bottom:56px}.community-profile .profile-showcase{transform:translateY(34px)}.community-profile .profile-showcase .profile-card-fan{height:215px}.community-profile .profile-showcase .profile-fan-card{width:160px;margin-left:-80px}}
/* Desktop: larger cards, balanced above and below the banner's center. */
@media(min-width:721px){
.community-profile .profile-showcase{transform:translateY(-12px)}
.community-profile .profile-showcase .profile-fan-card{--profile-card-width:clamp(171px,19.8vw,234px);width:var(--profile-card-width);margin-left:calc(var(--profile-card-width) / -2)}
}

/* Center every wrapped row while giving large displays room for more containers. */
.community-main{--profile-gutter:clamp(16px,2.5vw,48px);max-width:calc(1596px + var(--profile-gutter) * 2);padding-inline:var(--profile-gutter)}
.public-priority-section .community-grid,.public-decks-section .community-grid{display:flex;flex-wrap:wrap;justify-content:center;align-items:stretch}
.public-priority-section .collection-preview{flex:1 1 360px;width:auto;max-width:520px;min-width:0}
.public-decks-section .collection-preview{flex:1 1 280px;width:auto;max-width:360px;min-width:0}
@media(max-width:760px){.public-priority-section .collection-preview{flex-basis:100%;max-width:100%}.public-decks-section .collection-preview{flex-basis:260px}}

/* Match the banner to the three-column collection span, with a taller desktop crop. */
@media(min-width:761px){
.community-profile.home-panel{min-height:400px;padding:44px clamp(28px,3vw,52px);grid-template-columns:minmax(0,1fr) minmax(300px,.85fr)}
.community-profile .profile-showcase{transform:none}
.community-profile .profile-showcase .profile-card-fan{height:290px}
.profile-heading-copy{max-width:680px}
}

.community-intro.home-panel{--topography-mask:url('./assets/topography-01.svg')}

/* Keep discovery and account actions together in a theme-aware navigation bar. */
.community-header{display:block;padding:14px clamp(16px,2.5vw,48px);background:linear-gradient(110deg,rgba(var(--page-primary-rgb,43,108,86),.18),rgba(var(--page-secondary-rgb,127,55,70),.10)),#12201c;border-bottom:1px solid #ffffff18;box-shadow:0 8px 28px #0002}
.community-header-inner{max-width:1596px;margin-inline:auto;display:grid;grid-template-columns:auto minmax(220px,1fr) auto;align-items:center;gap:clamp(16px,2.5vw,40px)}
.community-header .community-brand{display:flex;align-items:center;gap:11px;line-height:1.25;font-size:.95rem;letter-spacing:-.02em;max-width:230px}
.community-brand img{flex:none;border-radius:10px;box-shadow:0 3px 12px #0003}
.community-header .collector-search{width:100%;max-width:500px;min-width:0;margin:0;justify-self:center;position:relative;display:block}
.community-header .collector-search>label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.community-header .collector-search>div{display:flex;align-items:center;gap:4px;padding:4px;border:1px solid #ffffff24;border-radius:14px;background:#080f0d66;transition:border-color 180ms,box-shadow 180ms}
.community-header .collector-search:focus-within>div{border-color:#d4e7d98c;box-shadow:0 0 0 3px #d4e7d912}
.community-header .collector-search input{width:100%;min-width:0;min-height:44px;padding:10px 12px;border:0;border-radius:10px;background:transparent;color:#f2f4ed;box-shadow:none;font:inherit;font-size:.9rem}
.community-header .collector-search input::placeholder{color:#bdccc2;opacity:1}
.community-header .collector-search input:focus{outline:none}
.community-header .collector-search button{min-height:44px;flex:none;padding:10px 16px;border:1px solid #ffffff20;border-radius:10px;background:#e0ebdc;color:#182a20;font:inherit;font-size:.875rem;font-weight:700;box-shadow:none}
.community-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-width:0}
.community-header-actions>a,.community-header-actions>button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:10px 13px;border:1px solid #ffffff1c;border-radius:11px;background:#ffffff05;color:#e5eee6;font:inherit;font-size:.85rem;font-weight:600;line-height:1.2;text-decoration:none;white-space:nowrap;box-shadow:none;transition:background 180ms,border-color 180ms}
.community-header-actions>a:hover,.community-header-actions>button:hover{background:#ffffff12;border-color:#ffffff40}
.community-header a:focus-visible,.community-header button:focus-visible{outline:2px solid #e5d6ac;outline-offset:3px}
@media(max-width:1050px){.community-header-inner{grid-template-columns:1fr auto;gap:12px 20px}.community-header .collector-search{grid-column:1/-1;grid-row:2;max-width:none}.community-header .community-brand{max-width:none}}
@media(max-width:520px){.community-header{padding-block:12px}.community-header-inner{grid-template-columns:minmax(0,1fr);gap:12px}.community-header .community-brand{justify-self:center}.community-header-actions{grid-row:3;justify-content:center;gap:8px;width:100%}.community-header-actions>a,.community-header-actions>button{flex:1;padding-inline:8px}.community-header .collector-search input{font-size:16px}}
@media(prefers-reduced-motion:reduce){.community-header-actions>a,.community-header-actions>button,.community-header .collector-search>div{transition:none}}

/* Start profiles at the banner, without redundant discovery links or counts. */
.community-page #communityStatus:empty{display:none}
#communityResults>.community-profile.home-panel:first-child{margin-top:0}

/* The collection uses the same navigation surface and saved palette as profiles. */
.collection-app-header{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,500px) minmax(0,1fr);align-items:center;gap:24px;padding:14px clamp(16px,2.5vw,48px);background:linear-gradient(110deg,rgba(var(--page-primary-rgb,43,108,86),.18),rgba(var(--page-secondary-rgb,127,55,70),.10)),#12201c;border-bottom:1px solid #ffffff18;box-shadow:0 8px 28px #0002}
.collection-app-header>.collection-app-brand{width:auto;min-width:0;line-height:1.25;font-size:.95rem;letter-spacing:-.02em}
.collection-app-brand span{overflow-wrap:anywhere}
.collection-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
.collection-header-actions .header-profile-link,.collection-header-actions .collection-account-menu>summary{margin:0;min-height:44px;height:auto;padding:10px 13px;border:1px solid #ffffff1c;border-radius:11px;background:#ffffff05;color:#e5eee6;font-size:.875rem;font-weight:600;line-height:1.2;box-shadow:none}
.collection-header-actions .header-profile-link:hover,.collection-header-actions .collection-account-menu>summary:hover{background:#ffffff12;border-color:#ffffff40}
.collection-app-header .collection-account-options{background:linear-gradient(110deg,rgba(var(--page-primary-rgb,43,108,86),.18),rgba(var(--page-secondary-rgb,127,55,70),.10)),#121a1e}
.collection-app-header .header-collector-search{width:100%;max-width:500px;min-width:0;margin:0;position:relative;display:block;justify-self:center}
.collection-app-header .header-collector-search>label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.collection-app-header .header-collector-search>div{display:flex;align-items:center;gap:4px;padding:4px;border:1px solid #ffffff24;border-radius:14px;background:#080f0d66;transition:border-color 180ms,box-shadow 180ms}
.collection-app-header .header-collector-search:focus-within>div{border-color:#d4e7d98c;box-shadow:0 0 0 3px #d4e7d912}
.collection-app-header .header-collector-search input{width:100%;min-width:0;min-height:44px;padding:10px 12px;border:0;border-radius:10px;background:transparent;color:#f2f4ed;box-shadow:none;font:inherit;font-size:.9rem}
.collection-app-header .header-collector-search input::placeholder{color:#bdccc2;opacity:1}
.collection-app-header .header-collector-search input:focus{outline:none}
.collection-app-header .header-collector-search button{min-height:44px;flex:none;padding:10px 16px;border:1px solid #ffffff20;border-radius:10px;background:#e0ebdc;color:#182a20;font:inherit;font-size:.875rem;font-weight:700;box-shadow:none}
@media(max-width:1100px){.collection-app-header{grid-template-columns:minmax(0,1fr) auto;gap:12px 20px}.collection-app-header .header-collector-search{grid-column:1/-1;grid-row:2;max-width:none}.collection-header-actions{grid-column:2;grid-row:1}}
@media(max-width:520px){.collection-app-header{grid-template-columns:minmax(0,1fr);gap:12px;padding-block:12px}.collection-app-header>.collection-app-brand{justify-self:center}.collection-header-actions{grid-column:1;grid-row:3;justify-content:center;width:100%}.collection-app-header .header-collector-search input{font-size:16px}.collection-header-actions .header-profile-link{white-space:normal;text-align:center}}
@media(prefers-reduced-motion:reduce){.collection-app-header .header-collector-search>div{transition:none}}

/* Every public-profile surface belongs to the collector's selected palette. */
body.community-page:not(.collector-hub-page){
 --public-surface:linear-gradient(125deg,rgba(var(--page-primary-rgb,43,108,86),.24),rgba(var(--page-secondary-rgb,127,55,70),.18)),#14171d;
 --public-surface-hover:linear-gradient(125deg,rgba(var(--page-primary-rgb,43,108,86),.34),rgba(var(--page-secondary-rgb,127,55,70),.26)),#14171d;
 --public-field:linear-gradient(125deg,rgba(var(--page-primary-rgb,43,108,86),.16),rgba(var(--page-secondary-rgb,127,55,70),.12)),#0e1017;
 --public-highlight:rgb(var(--profile-highlight-rgb,191,211,204));
 --public-text:#f4f4f8;--public-muted:#cbd0dc;
 background:radial-gradient(ellipse at 10% 0%,rgba(var(--page-primary-rgb,43,108,86),.34),transparent 55%),radial-gradient(ellipse at 95% 30%,rgba(var(--page-secondary-rgb,127,55,70),.25),transparent 60%),#12151c;
 background-attachment:fixed;color:var(--public-text);
}
.community-page:not(.collector-hub-page) :is(.community-header,.community-tile,.public-card,.profile-card-placeholder,.public-wishlist,.public-collection-search,.trade-match-panel,.trade-dialog){background:var(--public-surface);border-color:rgba(var(--page-primary-rgb),.38);color:var(--public-text)}
.community-page:not(.collector-hub-page) :is(.community-tile:hover,.public-card:hover,.public-card:focus-visible){background:var(--public-surface-hover);border-color:var(--public-highlight)}
.community-page:not(.collector-hub-page) .public-container-spotlight{background:var(--public-field);border-color:#ffffff1c}
.community-page:not(.collector-hub-page) :is(.community-tile p,.public-container-copy>p,.public-container-spotlight>span:last-child,.wishlist-gallery-count,.wishlist-gallery-intro,.wishlist-gallery-copy p,.trade-card span,.trade-card small,#communityStatus){color:var(--public-muted)}
.community-page:not(.collector-hub-page) :is(.community-back,.wishlist-match-badge,.public-highlight-label){color:var(--public-highlight)}
.community-page:not(.collector-hub-page) .public-card-dialog .detail-text-box{background:linear-gradient(125deg,rgba(var(--page-primary-rgb),.22),rgba(var(--page-secondary-rgb),.18)),#12151cc7;color:var(--public-text);border-color:#ffffff30}
.community-page:not(.collector-hub-page) .public-card-dialog>button{background:var(--public-field);color:var(--public-text)}
.community-page:not(.collector-hub-page) :is(.detail-type-line,.detail-oracle,.detail-flavor,.detail-value-strip,.public-ownership){color:var(--public-muted)}
.community-page:not(.collector-hub-page) .detail-value-strip{background:rgba(var(--page-primary-rgb),.12);border-color:#ffffff24}
.community-page:not(.collector-hub-page) :is(.public-collection-search,.community-container-tools,.trade-dialog) :is(input,select,textarea){background:var(--public-field);color:var(--public-text);border:1px solid #ffffff30;border-radius:8px;color-scheme:dark}
.community-page:not(.collector-hub-page) :is(.public-collection-search,.community-container-tools,.trade-dialog) label{color:var(--public-text)}
.community-page:not(.collector-hub-page) :is(input,textarea)::placeholder{color:var(--public-muted);opacity:.8}
.community-page:not(.collector-hub-page) :is(input,select,textarea):focus{outline:2px solid var(--public-highlight);outline-offset:2px;border-color:var(--public-highlight);box-shadow:0 0 0 3px rgba(var(--page-primary-rgb),.16)}
.community-page:not(.collector-hub-page) :is(a,button):focus-visible{outline:2px solid var(--public-highlight);outline-offset:3px}
.community-page:not(.collector-hub-page) .community-header .collector-search>div{background:var(--public-field)}
.community-page:not(.collector-hub-page) .community-header .collector-search:focus-within>div{border-color:var(--public-highlight);box-shadow:0 0 0 3px rgba(var(--page-primary-rgb),.18)}
.community-page:not(.collector-hub-page) .community-header .collector-search input{color:var(--public-text);outline:0;box-shadow:none}
.community-page:not(.collector-hub-page) .community-header .collector-search input::placeholder{color:var(--public-muted)}
.community-page:not(.collector-hub-page) .community-header .collector-search button{background:var(--control-gradient);color:#fff}
.community-page:not(.collector-hub-page) .community-header-actions>a{color:var(--public-text)}
.community-page:not(.collector-hub-page) .wishlist-gallery-card{background:linear-gradient(145deg,rgba(var(--page-primary-rgb),.18),rgba(var(--page-secondary-rgb),.10));border-color:#ffffff28}
.community-page:not(.collector-hub-page) .wishlist-gallery-card.is-match{border-color:var(--public-highlight);box-shadow:0 0 0 1px rgba(var(--page-primary-rgb),.28)}
.community-page:not(.collector-hub-page) .wishlist-art-unavailable{background:var(--public-field);color:var(--public-text)}
.community-page:not(.collector-hub-page) .wishlist-printing-choice:hover,.community-page:not(.collector-hub-page) .wishlist-printing-choice:focus-visible{border-color:var(--public-highlight)!important;background:rgba(var(--page-primary-rgb),.18)!important}
.community-page:not(.collector-hub-page) :is(.wishlist-selected-preview,.wishlist-entry,.trade-value-comparison){border-color:rgba(var(--page-primary-rgb),.38)}
.community-page:not(.collector-hub-page) .trade-value-comparison{background:rgba(var(--page-primary-rgb),.12)}
.community-page:not(.collector-hub-page) button.secondary{background:var(--public-field);border-color:#ffffff30;color:var(--public-highlight)}
.community-page:not(.collector-hub-page) button.secondary:hover{background:var(--public-surface-hover);border-color:var(--public-highlight)}

.community-page:not(.collector-hub-page) :is(.trade-offer-choice,.trade-toast,.trade-celebration,.trade-celebration-card){background:var(--public-surface);color:var(--public-text);border-color:rgba(var(--page-primary-rgb),.38)}
.community-page:not(.collector-hub-page) :is(.trade-status,.trade-proposal-status){color:var(--public-muted)}
.community-page:not(.collector-hub-page) :is(.trade-note,.trade-status-badge){border-color:var(--public-highlight)}
.community-page:not(.collector-hub-page) .trade-side-tabs [aria-pressed=true]{background:var(--control-gradient);color:#fff;border-color:var(--public-highlight)}

/* One compact, responsive toolbar for a container or an entire public library. */
.community-page:not(.collector-hub-page) .community-container-tools{display:block;padding:20px;border:1px solid rgba(var(--page-primary-rgb),.38);border-radius:14px;background:var(--public-surface)}
.community-page .public-browser-controls{display:grid;grid-template-columns:minmax(180px,1fr) minmax(125px,.5fr) minmax(125px,.5fr) auto;align-items:end;gap:12px;width:100%;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.community-page .public-browser-controls label{display:grid;align-items:start;gap:7px;min-width:0;font-size:.875rem;font-weight:600;line-height:1.4}
.community-page .public-browser-controls :is(input,select){min-height:44px;min-width:0;width:100%;padding:10px 12px;font:inherit;box-shadow:none}
.community-page .public-browser-controls .advanced-filters{border-color:#ffffff24}
.community-page .public-browser-controls .filter-chip{background:var(--public-field);border-color:rgba(var(--page-primary-rgb),.38);color:var(--public-highlight);line-height:1.4}
.community-page .public-browser-controls .filter-chip:hover{background:var(--public-surface-hover);border-color:var(--public-highlight)}
.community-page .public-card-price{font-weight:700;color:var(--public-highlight)}
@media(max-width:640px){
 .community-page .public-browser-controls{grid-template-columns:repeat(2,minmax(0,1fr))}
 .community-page .public-browser-controls :is(.wide,.public-filter-toggle){grid-column:1/-1}
 .community-page .public-browser-controls :is(input,select){font-size:16px}
 .community-page:not(.collector-hub-page) .community-container-tools{padding:16px}
}

.public-card-dialog .detail-card-image{transform:perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y))}

/* Turn the face independently, preserving the floating shell and viewer position. */
.public-card-dialog{scrollbar-gutter:stable;overflow-anchor:none}
.public-card-dialog .detail-card-image{perspective:1000px}
.public-card-dialog .detail-card-plane{width:100%;height:100%;aspect-ratio:63/88}
.public-card-dialog .detail-card-plane>img{width:100%;height:100%;max-width:none;object-fit:contain}
.public-card-dialog .detail-card-float-shell.is-face-flipping{animation-play-state:paused}
.public-card-dialog .detail-card-image.is-face-flipping::before,.public-card-dialog .detail-card-image.is-face-flipping::after{opacity:0}

/* The same rainbow finish pill used by cards in the main collection. */
.community-page .public-finish-badge{font-size:.75rem;line-height:1.2;align-self:start;width:max-content;color:#fff;pointer-events:none;text-shadow:0 1px 3px #0008}
.community-page .profile-card-placeholder{position:relative}
.community-page :is(.public-foil-surface,.profile-card-placeholder)>.public-finish-badge{position:absolute;bottom:8px;left:8px;z-index:3;box-shadow:0 2px 8px #0005}

/* Commanders lead the deck list, with equal prominence for both partners. */
.public-deck-commanders{grid-column:1/-1;min-width:0;padding:8px 0 24px;border-bottom:1px solid #ffffff24}
.public-deck-commanders>h3{margin:0 0 16px;text-align:center;font-size:1.1rem;color:var(--public-highlight)}
.public-deck-commander-row{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:24px}
.public-deck-commander-row>.public-commander-card{flex:0 1 300px;width:300px;max-width:100%;min-width:0;padding:12px;gap:10px;box-shadow:0 12px 26px #0003}
.public-commander-card>strong{font-size:1.05rem;line-height:1.4}
.public-commander-card>.public-foil-surface{width:100%;aspect-ratio:63/88}
@media(max-width:640px){.public-deck-commander-row{gap:20px}.public-deck-commanders{padding-bottom:20px}}
