/* Real collection photos and catalog images carry the artwork; the frame adds the atmosphere. */
:root{--teal:#52f0e9;--gold:#ffdf74;--line:#58b9da;--bg:#071141;--panel:#0b1851ed;--muted:#b8d4ef}
body{background:#090d58;color:#f6fbff}
.paint{background:linear-gradient(180deg,#06133f66,#080b43ad 70%,#080c42c7),url('/static/painted-backdrop.png') center/cover fixed no-repeat}
header{border-bottom:1px solid #83c2e483;background:#070f49cb;box-shadow:0 4px 30px #10106199}
.brand{font-family:Georgia,'Times New Roman',serif;text-transform:none;letter-spacing:-.035em;font-size:clamp(24px,2.8vw,35px);text-shadow:0 2px 14px #17104a}
.brand small{font:700 9px system-ui;letter-spacing:.22em;margin-left:44px}
.brandmark{color:#95fff8;filter:drop-shadow(0 0 7px #25e8fc)}
main{max-width:1530px}
h1,h2,.large-number{font-family:Georgia,'Times New Roman',serif;letter-spacing:-.045em}
h1{font-size:clamp(40px,5vw,70px);text-shadow:0 4px 16px #01053595}
h2{font-size:clamp(23px,2.3vw,31px)}
button.primary,.button.primary{background:linear-gradient(140deg,#048596,#05abb8);border:1px solid #6ff4f0;color:white;box-shadow:0 4px 13px #036fa255}
button.primary:hover,.button.primary:hover{background:#0da9b4}
.hero{margin:2px 0 22px}.hero .eyebrow{color:#8dfaf0}.hero .badge{background:#0b2c66dc}
.panel,.stat,.tile{border-color:#41add1;box-shadow:0 8px 30px #060a3799}
.stat{background:#eefbff;color:#09125b;border:1px solid #b2eaf5;border-radius:10px}
.stat strong{font-size:clamp(25px,3vw,40px);color:#0b1467}.stat span{color:#344477}
.stats{gap:9px}
.page-collection .collection-stage{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,280px);align-items:start;gap:16px}
.page-collection .collection-main{min-width:0}
.page-collection .toolbar{background:#effbff;padding:10px;border:1px solid #a6e5f3;border-radius:12px;gap:8px}
.page-collection .toolbar button{border-color:#b8dce9;color:#12216b;background:white}
.page-collection .toolbar button.active{background:#008f9b;color:white;border-color:#2ee4dd}
.page-collection .toolbar input{background:#fff;color:#142465;border-color:#9bd8e9}
.page-collection .tile,.collection-spotlight{background:radial-gradient(circle at 11% 14%,#cdeaffaa 1px,transparent 2px) 0 0/67px 83px,radial-gradient(circle at 84% 60%,#ffe686aa 1px,transparent 2px) 0 0/91px 75px,linear-gradient(145deg,#09134d,#06134b 56%,#07365e);border:2px solid #23cbdc;box-shadow:0 0 0 2px #071b60 inset,0 12px 30px #020633a0}
.page-collection .grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.page-collection .tile .photo{height:300px;padding:12px 12px 6px;background:transparent}
.page-collection .tile .photo img{filter:drop-shadow(0 8px 10px #000b)}
.page-collection .tile .info{padding:12px 15px 15px}
.page-collection .tile .info h3{font-family:Georgia,'Times New Roman',serif;font-size:22px;line-height:1.1}
.page-collection .tile .info h3 a{color:white;text-decoration:none}
.page-collection .tile>.badge{z-index:1;top:12px;left:12px;background:#007f95;color:#fff;border:1px solid #80faf5;font-weight:700}
.page-collection .tile .info small{color:#b9d6ef}
.page-collection .tile .info .badge{margin-top:8px}
.page-collection .tile.favorite-frame{border-color:#8cfaf0;box-shadow:0 0 0 2px #173ac5 inset,0 0 18px #1cbeee7a,0 14px 26px #020633a0}
.page-collection .tile.favorite-frame:after{content:'✦';position:absolute;right:12px;top:6px;font-size:25px;color:#ffe478;text-shadow:0 0 12px #ffad45;pointer-events:none}
.collection-spotlight{border-radius:14px;padding:15px;position:sticky;top:16px;text-align:center}
.collection-spotlight img{width:100%;height:310px;object-fit:contain;margin:10px 0;filter:drop-shadow(0 8px 12px #0009)}
.collection-spotlight h2{margin:0}.collection-spotlight p{font-size:13px;color:#b8dbef}.collection-spotlight .button{width:100%}
.page-card .split>section:first-child{border:2px solid #29d0df;background:radial-gradient(circle at 18% 18%,#9be9fa94 1px,transparent 2px) 0 0/73px 92px,linear-gradient(145deg,#061242,#041451 65%,#07566e);border-radius:13px;box-shadow:0 0 0 3px #08144c inset}
.page-card .detail-photo{background:transparent;filter:drop-shadow(0 12px 16px #01042ebb)}
.page-card .split>section:nth-child(2) .panel{background:#effbff;color:#0b155e;border-color:#b7ebf3;box-shadow:0 10px 30px #030c3599}
.page-card .split>section:nth-child(2) .panel h2,.page-card .split>section:nth-child(2) .panel h3{color:#0a155f}
.page-card .split>section:nth-child(2) .panel .muted,.page-card .split>section:nth-child(2) .panel small{color:#40568d}
.page-card .split>section:nth-child(2) .panel a{color:#006c86}
.page-card .split>section:nth-child(2) .panel .badge{color:#075a77;border-color:#73c9de}
.page-card .split>section:nth-child(2) .panel .copy{border-color:#aedbeb;background:#ffffffcc}
.page-card .split>section:nth-child(2) .panel .notice{background:#e0f4fa;color:#174266}
.page-card .split>section:nth-child(2) .panel button:not(.primary){background:#ecfaff;color:#0a235f;border-color:#82c4da}
.printings-page .printing-grid{grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:12px}
.evolution-panel{background:#effbff;color:#0b155e;border:2px solid #b2e5f0;border-radius:14px;padding:18px 24px;margin:14px 0 18px}
.evolution-panel h2{margin:0}.evolution-panel p{color:#42608a;font-size:13px}
.evolution-chain{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px}
.evolution-orb{text-align:center;display:grid;place-items:center;gap:3px;min-width:110px}
.orb-art{height:68px;width:68px;display:grid;place-items:center;border:2px solid #6fa9f7;border-radius:50%;background:radial-gradient(circle at 25% 18%,#fff,#b5eafa 43%,#7179de);font-size:31px;color:#faf8b8;box-shadow:0 4px 18px #315ac477}
.evolution-orb.current .orb-art{height:84px;width:84px;background:radial-gradient(circle at 25% 18%,#fff8c7,#73f9e7 40%,#086cbb);border:4px solid #07aeba}
.evolution-orb strong{font-size:16px}.evolution-orb small{color:#3b5886;font-size:11px}
.evolution-arrow{font-size:28px;color:#2b68bb}.evolution-next{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}
.printings-page .printing-card{border:2px solid #31c9dc;background:#eafaff;color:#0e1762}
.printings-page .printing-card.owned{border-color:#35f5d6}
.printings-page .printing-image{height:255px;padding:12px;background:radial-gradient(circle at 12% 22%,#ffffff 1px,transparent 2px) 0 0/67px 68px,linear-gradient(135deg,#101e73,#081659)}
.printings-page .printing-meta strong span{color:#0a878e}.printings-page .printing-meta small{color:#3b507b}
.printings-page .printing-meta .badge{color:#056b70}.printings-page .printing-meta button{background:#087f92}
#nav{background:#f2fcff;border-color:#b7e3ed;box-shadow:0 7px 28px #010832bd}
#nav a{color:#1a3179;font-weight:650}#nav a.active{color:#036c83;background:#d0f1f6}
#nav a:hover{color:#065e75;background:#dcf7fc}
@media(max-width:930px){.page-collection .collection-stage{grid-template-columns:1fr}.collection-spotlight{display:none}}
@media(max-width:650px){.page-collection .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.page-collection .tile .photo{height:210px}.page-collection .tile .info{padding:11px}.page-collection .tile .info h3{font-size:17px}.page-collection .tile>.badge{font-size:10px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat{padding:13px}#nav{width:min(98vw,650px)}#nav a{padding:10px}}
@media(max-width:650px){.evolution-panel{padding:14px}.evolution-chain{gap:6px}.evolution-orb{min-width:84px}.orb-art{height:52px;width:52px}.evolution-orb.current .orb-art{height:60px;width:60px}.evolution-orb strong{font-size:13px}.evolution-arrow{font-size:18px}}

/* Wishlists show an exact printing and the owner's real preference order. */
.wishlist-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(215px,1fr));gap:14px}
.wish-card{border:1px solid #31b9d2;border-radius:14px;overflow:hidden;background:#0c2240;box-shadow:0 12px 30px #010b24a0}
.wish-art{position:relative;min-height:270px;display:grid;place-items:center;padding:14px;background:radial-gradient(circle at 25% 12%,#27368e,#07162f 78%)}
.wish-art img{width:100%;max-height:255px;object-fit:contain}.wish-rank{position:absolute;top:10px;left:10px;padding:5px 9px;border-radius:7px;background:#083544;color:#79ffee;font-weight:800}
.wish-placeholder{font-size:64px;color:#80efeb;text-align:center}.wish-placeholder small{display:block;font-size:13px}.wish-info{padding:15px}.wish-info h2{margin:0;font-size:20px}.wish-info p{min-height:40px;color:#c7daea;font-size:14px}.wish-info .flex{gap:5px;flex-wrap:wrap}.wish-info button{font-size:13px}
.collection-actions{margin:12px 0}.page-collection .tile [data-want-version]{margin-top:8px;font-size:12px}
/* Chats, thread and the selected person's shared collection. */
.chat-layout{display:grid;grid-template-columns:minmax(150px,220px) minmax(280px,1fr) minmax(210px,300px);border:1px solid #368ca8;border-radius:17px;overflow:hidden;background:#081c35;min-height:590px}
.chat-people,.chat-collection{padding:15px;background:#0d2942}.chat-people{border-right:1px solid #31556d}.chat-collection{border-left:1px solid #31556d;max-height:660px;overflow:auto}.chat-person{display:flex;align-items:center;gap:9px;width:100%;text-align:left;border-radius:9px;margin:8px 0;color:#dcecf5}.chat-person.selected{background:#175a69;border-color:#39e9d0}.chat-person .avatar,.chat-heading .avatar{flex:0 0 36px;width:36px;height:36px;font-size:16px}.chat-conversation{display:flex;flex-direction:column;min-width:0;max-height:660px}.chat-heading{display:flex;align-items:center;gap:10px;padding:14px;border-bottom:1px solid #31556d}.chat-messages{flex:1;min-height:350px;overflow:auto;display:flex;flex-direction:column;gap:10px;padding:16px}.chat-bubble{align-self:flex-start;max-width:83%;padding:9px 13px;border-radius:13px 13px 13px 3px;background:#1c3957;overflow-wrap:anywhere}.chat-bubble.mine{align-self:flex-end;border-radius:13px 13px 3px 13px;background:#116b69}.chat-bubble p{margin:0;white-space:pre-wrap}.chat-bubble small{display:block;color:#c1d9e2;text-align:right;margin-top:4px}.chat-empty{margin:auto;color:#afcbd6}.chat-compose{display:flex;gap:9px;padding:12px;border-top:1px solid #31556d}.chat-compose textarea{flex:1;min-width:0;margin:0}.chat-links{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.chat-card-list{display:grid;gap:9px}.chat-card-list a{display:flex;gap:9px;align-items:center;color:#dffafc;text-decoration:none;border:1px solid #31556d;border-radius:9px;padding:6px}.chat-card-list img{width:49px;height:63px;object-fit:contain}.chat-card-list small{display:block;color:#afcbd6}.chat-card-list .no-image{width:49px;height:63px;font-size:20px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:950px){.chat-layout{grid-template-columns:160px minmax(0,1fr)}.chat-collection{grid-column:1/-1;border-left:0;border-top:1px solid #31556d;max-height:300px}.chat-card-list{grid-template-columns:repeat(auto-fill,minmax(165px,1fr))}}
@media(max-width:570px){.chat-layout{grid-template-columns:1fr}.chat-people{border-right:0;border-bottom:1px solid #31556d}.chat-people .chat-person{width:auto;display:inline-flex;margin:3px}.chat-conversation{max-height:550px}}
/* Keep the cards and review controls above the fold on desktop and iPad. */
header{padding:7px 3vw;min-height:51px}
.brand{font-size:22px;line-height:1.05;display:inline-flex;align-items:center;gap:5px}
.brandmark{font-size:26px;margin:0}
.brand small{display:none}
#account .button,#account button{min-height:34px;padding:6px 10px}
main{padding-top:16px}
.hero{margin-bottom:14px;gap:10px}
.stats{margin:12px 0 17px}
.page-upload .hero{margin-bottom:10px}
@media(max-width:800px){header{min-height:44px;padding:5px 12px}.brand{font-size:19px}.brandmark{font-size:22px}main{padding-top:12px}.page-upload .hero h1{font-size:30px}}

.battle-story-text{white-space:pre-line;line-height:1.7;max-width:75ch;padding:20px;font-size:16px}
.chat-person-text{display:grid;min-width:0;flex:1}.chat-person-text strong,.chat-person-text small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-person-text small{font-size:12px;color:#a9c5d4}.chat-person.unread .chat-person-text strong{color:#aafff1}.chat-count,.nav-unread{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;border-radius:15px;background:#0ab4a4;color:#051b38;font-size:12px;font-weight:800;padding:0 5px}.chat-count[hidden]{display:none}.nav-unread{margin-left:3px}

.message-actions{display:flex;gap:8px;margin-top:6px}.message-actions button{font-size:.8rem;padding:5px 9px;min-height:32px}.chat-bubble textarea{width:100%;min-width:180px;box-sizing:border-box}
.chat-reactions{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-top:6px}.chat-reactions button,.reaction-picker summary{min-width:30px;min-height:30px;padding:3px 7px;font-size:.83rem;border-radius:16px}.chat-reactions button[aria-pressed="true"]{border-color:#47eacb;background:#176e69}.reaction-picker{position:relative}.reaction-picker summary{display:flex;align-items:center;cursor:pointer;list-style:none;border:1px solid #56849b}.reaction-picker summary::-webkit-details-marker{display:none}.reaction-picker>div{display:flex;position:absolute;z-index:5;bottom:100%;left:0;padding:5px;gap:3px;border:1px solid #56849b;border-radius:10px;background:#0d2942;box-shadow:0 8px 22px #071829}
.reaction-picker>div{display:grid;grid-template-columns:repeat(7,36px);width:min(270px,80vw);max-height:230px;overflow-y:auto;overscroll-behavior:contain}.reaction-picker button{font-size:19px;padding:3px}.chat-bubble.mine .reaction-picker>div{left:auto;right:0}
.tile-value{padding:7px 9px;border:1px solid #47b8c9;border-radius:9px;background:#e7faff;color:#133469;display:grid;gap:1px;font-size:14px}.tile-value strong{font-size:17px}.tile-value small{font-size:11px!important;min-height:0!important;color:#375780!important}.tile-value.unknown{background:#edf3f6;color:#405778;border-color:#b6cad4;font-size:12px}.wish-info .tile-value,.chat-card-list .tile-value,.favorite-choice .tile-value{margin:6px 0}.wish-info .tile-value{background:#123b57;color:#dffaff}.wish-info .tile-value small{color:#b1e4ef!important}
.evolution-chain{gap:12px}.evolution-stage{display:grid;justify-items:center;align-content:start;gap:6px;width:clamp(120px,17vw,185px);text-align:center}.evolution-art{width:100%;height:210px;display:grid;place-items:center;background:linear-gradient(135deg,#102e67,#144b74);border:2px solid #67bfe3;border-radius:12px}.evolution-stage.owned .evolution-art{border-color:#26debd;box-shadow:0 0 0 3px #38dbbc55}.evolution-art img{width:100%;height:100%;object-fit:contain;padding:5px;box-sizing:border-box}.evolution-art span{color:#dbf1ff;font-size:12px}.evolution-stage .tile-value{width:100%;box-sizing:border-box}.evolution-stage a{color:#045da2;font-weight:700}.evolution-stage small{color:#496482}.evolution-arrow{font-size:24px}
@media(max-width:650px){.evolution-stage{width:28vw;min-width:92px}.evolution-art{height:155px}.evolution-arrow{font-size:17px}}
/* The card family is a compact visual index, with the printings visible immediately below. */
.printings-page .printings-heading{margin:2px 0 12px;align-items:center}
.printings-page .printings-heading h1{font-size:clamp(34px,4.2vw,54px);line-height:1.05}
.printings-page .evolution-panel{padding:13px 16px;margin:10px 0 14px}
.printings-page .evolution-intro{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:11px}
.printings-page .evolution-intro h2{font-size:22px}
.printings-page .evolution-intro small{color:#496482}
.printings-page .evolution-chain{display:grid;grid-template-columns:repeat(auto-fit,minmax(248px,1fr));gap:10px;align-items:stretch;justify-content:stretch}
.printings-page .evolution-stage{display:flex;align-items:center;justify-items:initial;gap:12px;width:auto;min-width:0;text-align:left;padding:9px;border:1px solid #b1d9e7;border-radius:11px;background:#fff;box-sizing:border-box}
.printings-page .evolution-stage.owned{border-color:#16bba5;background:#e8fcf7}
.printings-page .evolution-art{width:94px;min-width:94px;height:129px;border:0;background:transparent;box-shadow:none!important;overflow:hidden}
.printings-page .evolution-art img{padding:0;object-fit:contain}
.printings-page .evolution-stage-info{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0;flex:1}
.printings-page .evolution-stage-info strong{font-size:17px;line-height:1.15;overflow-wrap:anywhere}
.printings-page .evolution-stage-info .tile-value{max-width:100%;padding:5px 7px;font-size:12px}
.printings-page .evolution-stage-info .tile-value strong{font-size:14px}
.printings-page .evolution-stage-info .tile-value small{font-size:10px!important}
.printings-page .evolution-stage-info a{font-size:12px}
.printings-page .printing-image{height:218px}
@media(max-width:740px){.printings-page .evolution-chain{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}.printings-page .evolution-art{width:72px;min-width:72px;height:99px}.printings-page .evolution-stage{gap:7px}.printings-page .printing-image{height:205px}}
.page-collection .collection-stage:not(:has(.collection-spotlight)){display:block}.page-collection .collection-stage:not(:has(.collection-spotlight)) .collection-main{width:100%}
.page-collection .stat{padding:10px 14px}.page-collection .stat strong{font-size:clamp(23px,2.6vw,34px)}.page-collection .stats{margin:8px 0 12px}.page-collection .hero{margin-bottom:8px}.page-collection .hero h1{font-size:clamp(30px,3.7vw,48px)}
.page-collection .collection-actions{margin:5px 0 9px}.page-collection .toolbar{padding:7px}.page-collection .tile .photo{height:255px}
.page-upload .hero{margin-bottom:6px}.page-upload .hero h1{font-size:clamp(30px,3.7vw,48px)}.page-upload .upload-box{padding:13px 16px;margin-bottom:9px}.page-upload .upload-box h2{margin-bottom:4px}.page-upload .upload-box p{margin:3px 0}.page-upload .upload-box .flex.between{margin-top:9px}

/* Collection name, visibility and counts live in the top bar so cards start sooner. */
header:has(#collection-context.has-collection){flex-wrap:wrap;gap:6px 16px}
#collection-context{display:none}
#collection-context.has-collection{display:flex;align-items:center;justify-content:space-between;flex:1 1 640px;min-width:0;gap:10px}
#collection-context .hero{margin:0;flex:0 1 auto;min-width:0;gap:10px}
#collection-context .hero>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#collection-context .hero .eyebrow{display:none}
#collection-context .hero h1{font-size:clamp(18px,1.5vw,24px);margin:0;white-space:nowrap}
#collection-context .hero .flex{gap:5px}
#collection-context .hero .badge{font-size:10px;padding:3px 6px}
#collection-context .hero button,#collection-context .hero .button{font-size:11px;min-height:31px;padding:4px 8px}
#collection-context .stats{display:flex;flex:0 1 auto;gap:5px;margin:0;min-width:0}
#collection-context .stat{display:flex;align-items:center;gap:4px;padding:2px 5px;border-radius:6px;white-space:nowrap}
#collection-context .stat strong{font-size:15px;line-height:1}
#collection-context .stat span{font-size:10px}
.chat-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:9px}.chat-top h1{margin:0;font-size:clamp(23px,3vw,33px)}
.chat-people>input,.chat-search input{min-height:36px;padding:6px 9px;font-size:14px}.chat-people>h2{font-size:14px;margin:9px 0 3px}
.chat-person-text{min-width:0;overflow:hidden}.chat-person-text small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:140px}
.chat-search{position:relative;padding:7px 12px;border-bottom:1px solid #31556d}
#message-results:not([hidden]){position:absolute;z-index:4;top:100%;left:8px;right:8px;max-height:240px;overflow:auto;border:1px solid #368ca8;border-radius:8px;background:#0a2945;box-shadow:0 12px 24px #0008}
#message-results button{display:block;width:100%;text-align:left;border:0;border-radius:0;padding:8px;min-height:0}#message-results button small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-sender{display:block;font-size:12px;color:#aff2ef}.group-choices{max-height:220px;overflow:auto}.group-choices label{display:flex;align-items:center;gap:8px}.group-choices input{width:18px;min-height:18px}
@media(max-width:1050px){#collection-context.has-collection{order:3;flex-basis:100%}#collection-context .stats{margin-left:auto}}
@media(max-width:700px){#collection-context.has-collection{align-items:flex-start;flex-wrap:wrap}#collection-context .hero{flex-wrap:wrap}#collection-context .stats{width:100%;justify-content:space-between}#collection-context .stat span{font-size:9px}#collection-context .stat strong{font-size:13px}}
.page-upload .photo-guide{margin:7px 0;padding:9px 13px;max-width:100%}.page-upload .photo-guide img{max-height:210px;width:auto;max-width:100%}.page-upload .notice{margin:7px 0;padding:8px 12px}

/* Collection grid: value and evidence only, with full details on the card page. */
.page-collection .tile .info{padding:9px 12px 11px}
.page-collection .tile .info h3{font-size:19px;margin:0 0 2px}
.page-collection .tile .info>small{display:block;font-size:12px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.page-collection .compact-value{display:flex;align-items:baseline;justify-content:space-between;gap:6px;margin-top:6px;padding:5px 8px}
.page-collection .compact-value strong{font-size:16px;white-space:nowrap}
.page-collection .compact-value span{font-size:11px;white-space:nowrap;font-weight:700;opacity:.78}
.page-collection .tile{display:flex;flex-direction:column}
.page-collection .tile .info{display:flex;flex-direction:column;flex:1;min-width:0}
.page-collection .tile .info .compact-value{margin-top:auto;min-height:36px;align-items:center}
.page-collection .tile .info>small{margin-bottom:7px}
.page-collection .compact-value strong{font-size:clamp(12px,1.1vw,16px);white-space:normal;line-height:1.1}
#nav a[href^="#upload"] .nav-unread,#collection-context .hero a[href^="#upload"] .nav-unread{margin-left:5px;min-width:18px;height:18px;padding:0 4px;font-size:11px}
@media(max-width:650px){.page-collection .tile .info h3{font-size:16px}.page-collection .compact-value{padding:4px 6px}.page-collection .compact-value strong{font-size:14px}.page-collection .compact-value span{font-size:10px}}

/* Photo-first trade proposals and story archive. */
.trade-head h1,.battle-head h1{margin:3px 0 7px}
.trade-head p,.battle-head p{margin:0 0 18px;color:#c3dbe9}
.trade-proposals{margin:0 0 20px}.trade-proposals h2{display:flex;align-items:center;gap:8px}
.trade-builder,.trade-offer,.battle-arena,.battle-log{border:1px solid #45a9c8;border-radius:12px;background:#0a2134e9;padding:18px;margin:12px 0}
.trade-builder>select{max-width:340px}.trade-sides,.trade-offer-sides{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.trade-sides>div,.trade-offer-sides>div{min-width:0}.trade-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(115px,1fr));gap:8px;max-height:470px;overflow:auto;align-content:start}
.trade-card{padding:6px;display:flex;flex-direction:column;gap:4px;text-align:left;min-width:0;min-height:0;border-color:#55849d;background:#102a44}
.trade-card.selected{border-color:#60ecdb;box-shadow:0 0 0 2px #25cbbb inset;background:#144b59}
.trade-card img,.trade-offer-card img{height:145px;width:100%;object-fit:contain;background:#07172b;border-radius:5px}
.trade-card strong,.trade-card small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}
.trade-card small{font-size:11px;color:#b9d6e4}.trade-no-photo{height:145px;display:grid;place-items:center;text-align:center;font-size:12px;color:#b9d6e4}
.trade-actions{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.trade-comparison{display:flex;gap:22px;flex-wrap:wrap}.trade-comparison strong{display:block;font-size:23px}
.trade-offer-sides>div>div{display:flex;overflow-x:auto;gap:8px;margin-top:8px}.trade-offer-card{width:100px;min-width:100px;color:#d9f7ff;text-decoration:none;font-size:12px}.trade-offer-card img{height:115px}.trade-offer-card span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.battle-entry{padding:11px 0;border-top:1px solid #36627b}.battle-entry summary{display:flex;justify-content:space-between;gap:12px;cursor:pointer}.battle-story-text{white-space:pre-wrap;line-height:1.65}
@media(max-width:650px){.trade-sides,.trade-offer-sides{grid-template-columns:1fr}.trade-card-grid{max-height:310px}.trade-card img,.trade-no-photo{height:120px}}

.chat-list-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 8px}
.chat-list-head h2{margin:0}.chat-list-head button{min-height:32px;padding:5px 9px;font-size:12px}
.chat-new-tabs{display:flex;gap:8px;margin:12px 0}.chat-new-tabs .active{background:#0e9d9d;color:#fff}
#new-chat-people{display:grid;gap:5px}#new-chat-people button{text-align:left}

.chat-card-list a{align-items:center;padding:5px;gap:7px;min-width:0}
.chat-card-list a>span{min-width:0;flex:1;display:block}
.chat-card-list a>span>strong,.chat-card-list a>span>small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.2}
.chat-card-list img,.chat-card-list .no-image{width:40px;height:54px;flex:0 0 40px}
.chat-card-list .compact-value{display:flex;align-items:baseline;justify-content:space-between;gap:5px;margin:3px 0 0;padding:2px 5px;border-radius:5px}
.chat-card-list .compact-value strong{font-size:13px}.chat-card-list .compact-value span{font-size:10px;white-space:nowrap}
/* A restrained repeating starfield replaces flat navy panels, with a small rocket in the art. */
.panel,.chat-people,.chat-collection,.chat-conversation,.trade-builder,.trade-offer,.battle-arena,.battle-log{
  background-image:linear-gradient(135deg,#071643e8,#0a2c59e8),url('/static/rocket-field.svg');
  background-blend-mode:normal,screen;
  background-size:auto,480px 300px;
}
.chat-layout{background:#07183c}
.chat-card-list a,.chat-person,.trade-card{background-color:#10284ce6}

/* Collection header has one clear job; counts sit in a slim strip beneath it. */
header:has(#collection-context.has-collection){flex-wrap:nowrap;gap:clamp(8px,1.8vw,22px)}
#collection-context.has-collection{flex:1 1 auto;justify-content:flex-start;min-width:0}
#collection-context .hero{display:flex;align-items:center;gap:clamp(8px,1.5vw,18px);min-width:0}
#collection-context .hero>div{gap:6px}
#collection-context .hero h1{font-size:clamp(18px,1.8vw,25px)}
#collection-context .hero .flex .badge{display:none}
#collection-context .hero .flex button{border:0;background:transparent;text-decoration:underline;text-underline-offset:3px;color:#aedbe9;padding:2px 4px}
#collection-context .hero .button{white-space:nowrap}
#account{flex-shrink:0;gap:7px}#account>span{font-size:12px;color:#c4d9ed}
#account .button,#account button{font-size:12px;min-height:31px;padding:4px 8px}
.page-collection>.stats{display:flex;gap:6px;overflow-x:auto;margin:0 0 9px;padding:2px 0}
.page-collection>.stats .stat{display:inline-flex;align-items:baseline;gap:5px;flex:0 0 auto;padding:4px 9px;box-shadow:none}
.page-collection>.stats .stat strong{font-size:15px}.page-collection>.stats .stat span{font-size:11px;white-space:nowrap}
@media(max-width:1050px){header:has(#collection-context.has-collection){flex-wrap:wrap}#collection-context.has-collection{order:3;flex-basis:100%}#account{margin-left:auto}}
@media(max-width:700px){#collection-context .hero{width:100%;justify-content:space-between}#collection-context .hero h1{font-size:19px}.page-collection>.stats .stat{padding:3px 6px}.page-collection>.stats .stat span{font-size:10px}}

.page-collection .toolbar{display:grid;grid-template-columns:repeat(3,max-content) minmax(125px,1fr) minmax(120px,.7fr) minmax(105px,.55fr) minmax(155px,.8fr) minmax(150px,1.1fr);gap:6px;align-items:center}
.page-collection .toolbar button{min-height:36px;padding:6px 9px;white-space:nowrap}
.page-collection .toolbar select,.page-collection .toolbar input{min-width:0;width:100%;min-height:36px;padding:5px 8px;font-size:13px}
@media(max-width:1250px){.page-collection .toolbar{display:flex;flex-wrap:wrap}.page-collection .toolbar select{width:auto;max-width:180px}.page-collection .toolbar input{flex:1 1 160px}}
@media(max-width:650px){.page-collection .toolbar select{flex:1 1 calc(50% - 5px);max-width:none}.page-collection .toolbar button{flex:1 1 auto}.page-collection .toolbar input{flex-basis:100%}}

.people-table-head{display:grid;grid-template-columns:1.4fr 1fr 1.3fr .65fr 120px 160px;gap:14px;padding:8px 14px;font-size:11px;color:#b8d4ef}.people-row{display:grid;grid-template-columns:1.4fr 1fr 1.3fr .65fr 120px 160px;align-items:center;gap:14px;border:1px solid #4b98bd;border-radius:10px;background:#0c2348df;padding:12px 14px;margin-bottom:9px}.people-person{display:flex;align-items:center;gap:10px;min-width:0}.people-person strong{font-size:17px}.people-row small{display:block;font-size:11px;color:#b8d4ef}.people-counts strong,.people-prices strong{font-size:16px}.people-counts strong small{display:inline;font-weight:400}.people-previews{display:flex;gap:5px}.people-previews img{width:34px;height:47px;object-fit:contain;border-radius:3px}.people-actions{display:flex;gap:6px}.people-actions .button{font-size:11px;min-height:34px;padding:6px 9px}.people-wish a{font-size:12px;color:#79eeee}#people-search{max-width:300px;min-width:0}.page-people h1{font-size:30px;margin:0}
@media(max-width:1100px){.people-row{grid-template-columns:1.2fr 1fr 1fr .7fr;gap:10px}.people-table-head{grid-template-columns:1.2fr 1fr 1fr .7fr}.people-previews{grid-column:2/3}.people-actions{grid-column:3/5;justify-content:flex-end}}
@media(max-width:650px){.people-table-head{display:none}.people-row{grid-template-columns:1fr 1fr}.people-person{grid-column:1/-1}.people-wish{grid-column:1/2}.people-previews{grid-column:1/2}.people-actions{grid-column:2/3}.page-people .analysis-heading{align-items:flex-start;flex-direction:column}.people-prices{min-width:0}.people-row strong{font-size:15px}}

@media(max-width:650px){.people-row{padding:10px;gap:8px}.people-row .avatar{width:34px;height:34px;flex-basis:34px}.people-private .people-counts,.people-private .people-prices,.people-private .people-wish,.people-private .people-previews{display:none}.people-private .people-actions{grid-column:1/-1;justify-content:flex-start}}

/* Character illustrations lead the species family; card art stays in printings. */
.species-family{display:flex;flex-wrap:wrap;gap:16px;justify-content:center;align-items:stretch}
.species-family .evolution-stage{flex:1 1 200px;max-width:300px;border-radius:22px;padding:16px;background:radial-gradient(ellipse at 50% 38%,#3556acb0,transparent 65%),linear-gradient(145deg,#111d50,#07142b);border:1px solid #559ad7;transition:transform .18s,border-color .18s,box-shadow .18s}
.species-family .evolution-stage:hover,.species-family .evolution-stage:focus-visible{transform:translateY(-4px);border-color:#76fff6;box-shadow:0 0 28px #30d6e638}
.species-portrait{height:220px;position:relative;display:flex;align-items:center;justify-content:center;isolation:isolate}
.species-portrait:before{content:"";position:absolute;width:82%;height:82%;border-radius:50%;border:1px solid #7fa9ff50;box-shadow:0 0 38px #4486fa44,inset 0 0 32px #30bddd30;transform:rotate(-15deg);z-index:-1}
.species-portrait img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 12px 12px #03071d99);transition:transform .2s}
.species-family .evolution-stage:hover img{transform:scale(1.045)}
.species-family .evolution-stage-info{gap:5px;text-align:center}.species-family .evolution-stage-info strong{font-size:1.35rem}
@media(max-width:600px){.species-family .evolution-stage{flex-basis:145px;padding:10px}.species-portrait{height:170px}}
@media(prefers-reduced-motion:reduce){.species-family .evolution-stage,.species-portrait img{transition:none}.species-family .evolution-stage:hover,.species-family .evolution-stage:hover img{transform:none}}

/* Bound intrinsic image sizing so catalog art cannot cover metadata/actions. */
.printings-page .printing-image{display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;overflow:hidden}
.printings-page .printing-image img{display:block;min-width:0;min-height:0;max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain}
.species-family .evolution-stage{display:flex;flex-direction:column;align-items:stretch;min-width:0;color:#f0fbff}
.species-family .evolution-stage.owned{background:radial-gradient(ellipse at 50% 38%,#246587b0,transparent 65%),linear-gradient(145deg,#112d55,#071a2b);border-color:#5effe3}
.species-family .evolution-stage-info strong{color:#f0fbff}
.species-family .evolution-stage-info small{color:#c4e0f0}
.species-family .species-portrait{flex:0 0 220px;min-width:0;min-height:0}
@media(max-width:600px){.printings-page .evolution-panel{padding:12px}.species-family .species-portrait{flex-basis:170px}.species-family .evolution-stage-info strong{font-size:1.05rem}}

/* Reaction choices live above scrolling chat content rather than clipping in it. */
dialog:has(.message-reaction-grid){max-width:480px}
.message-reaction-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;max-height:65vh;overflow:auto;overscroll-behavior:contain}
.message-reaction-grid button{min-width:0;min-height:40px;padding:5px;font-size:22px}
