/* The club's indoor rooms. Controls and saved data stay in their original views. */
body.world-shell[data-world-mode="teams"]{background:#d5e2dc}
.world-shell .team-library-heading{position:relative;isolation:isolate;overflow:hidden;min-height:174px;padding:28px!important;border:1px solid #3c6d72;border-radius:16px;background:#234f59;color:#fff4d7;box-shadow:0 5px 0 #163f4930;gap:20px}
.world-shell .team-library-heading::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#234f59 0%,#234f59f0 30%,transparent 72%),url('assets/world-club-workshop.svg') right center/auto 100% no-repeat;z-index:-1}
.world-shell .team-library-heading h2{color:#fff4d7;font-size:clamp(30px,3.2vw,48px)}
.world-shell .team-library-heading p,.world-shell .team-library-heading .eyebrow{color:#c3ddd0}
.world-shell .team-library-heading>div:first-child{max-width:65%}
.world-shell .team-library-heading>.primary,.world-shell .team-preview-actions{align-self:flex-end;position:relative;background:#f4dfad;color:#264c50;border-color:#f4dfad;border-radius:8px}
.world-shell .team-preview-actions{padding:8px;display:flex;gap:6px;flex-wrap:wrap}
.world-shell .team-decks{gap:16px;padding:10px 0}
.world-shell .team-deck{background:linear-gradient(145deg,#fff8df,#e9e9d4);border:1px solid #a9b8a6;border-top:6px solid #3c7777;border-radius:12px;box-shadow:0 4px 0 #8aa69c30;transition:transform .16s,box-shadow .16s}
.world-shell .team-deck:hover{transform:translateY(-3px);box-shadow:0 7px 0 #8aa69c30}
.world-shell .team-deck-sprites{background:radial-gradient(ellipse at bottom,#91b59966,transparent 68%);border-bottom:2px solid #b6c8af;padding-bottom:10px}
.world-shell .team-deck-new{border:2px dashed #789b8c;background:#ecf1df}
.world-shell .team-library-filter{border-radius:10px;background:#f1f4e8;padding:12px 16px;border:1px solid #bfcec1}
body.world-shell.collection-page-open{background:#e0e9da}
.world-shell #collectionDialog.collection-page{padding-top:18px}
.world-shell .collection-page .collection-heading{position:relative;isolation:isolate;min-height:170px;border:1px solid #507c69;border-radius:16px;padding:26px 28px!important;background:#315e4e;color:#fff8de;overflow:hidden;box-shadow:0 5px 0 #446e5420}
.world-shell .collection-heading::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#315e4e 0%,#315e4ef5 34%,#315e4e00 76%),url('assets/world-conservatory.svg') right center/auto 100% no-repeat}
.world-shell .collection-heading>div{max-width:67%}
.world-shell #collectionDialog.collection-page .collection-heading{min-height:128px}
.world-shell #collectionDialog .collection-heading h2{font-size:clamp(28px,2.6vw,39px)}
.world-shell #collectionDialog .collection-heading .eyebrow{display:block;margin-bottom:8px;font-size:9px}
.world-shell .collection-page .collection-browser-heading{position:static;margin-bottom:5px}
.world-shell .collection-page .collection-heading h2{font-size:clamp(30px,3.2vw,49px);color:#fff9df;max-width:570px;text-wrap:balance}
.world-shell .collection-heading .eyebrow{color:#d1e4b9}
.world-shell .collection-heading>a{align-self:flex-end;background:#f7e9bc;color:#345342;border:1px solid #f7e9bc;box-shadow:0 3px 0 #1f433b30;border-radius:7px;font-size:11px}
.world-shell .collection-page .collection-wallet{margin-top:16px;border-radius:12px;background:#f6f5df;box-shadow:0 3px 0 #b4c6aa30;border-color:#beccaf}
.world-shell .collection-page .collection-wallet strong{color:#37644f}
.world-shell .collection-page .collection-tabs{gap:6px;border:0;padding:5px;border-radius:10px;background:#c5d6bb;width:fit-content;max-width:100%}
.world-shell .collection-tabs button{padding:10px 18px;border:0;border-radius:7px;color:#3e5945}
.world-shell .collection-tabs button[aria-selected=true]{color:#fff8dd;background:#3c6a50;box-shadow:0 2px 0 #24432e}
.world-shell .collection-page .dex-entry{border-radius:13px;background:linear-gradient(#fcf9e8,#eaf0dc);border-color:#b6c9a4;border-top:5px solid #6d9a6c;box-shadow:0 4px 0 #acc29a30;overflow:hidden}
.world-shell .collection-page .dex-entry>img{width:100px;height:100px;background:radial-gradient(ellipse at 50% 88%,#72965e35,transparent 65%);image-rendering:pixelated}
.world-shell .collection-page .dex-missing{background:#e9ede1;border-top-color:#aab8a0;box-shadow:none}
.world-shell .collection-page .collection-filters{background:#f5f5e6;border:1px solid #c2cfb5;padding:12px;border-radius:10px}
.world-shell .collection-page .collection-welcome{border:1px solid #bfceb0;background:#f5f6e7;border-radius:14px;margin-top:4px}
.world-shell .collection-page[data-world-room="packs"] .collection-heading{background:#76503b;border-color:#a27950}
.world-shell .collection-page[data-world-room="packs"] .collection-heading::before{background:linear-gradient(90deg,#76503b 0%,#76503bf0 35%,transparent 76%),url('assets/world-pokeshop.svg') right center/auto 100% no-repeat}
.world-shell .collection-page[data-world-room="packs"] .collection-heading .eyebrow{color:#f1d4a0}
.world-shell .pack-hero{border:2px solid #c6a365;background:radial-gradient(ellipse at 90% 80%,#be884c45,transparent 70%),#514535;box-shadow:0 5px 0 #886d3c22}
.world-shell .pack-buy{padding:24px;background:#fff6df;border:1px solid #d7be93;border-radius:12px}
.world-shell .pack-guarantee{background:#f1e4be;border-color:#d2b97e}
.world-shell .collection-page[data-world-room="lab"] .collection-heading{background:#224b59;border-color:#488181}
.world-shell .collection-page[data-world-room="lab"] .collection-heading::before{background:linear-gradient(90deg,#224b59 0%,#224b59f0 33%,transparent 76%),url('assets/world-matchup-lab.svg') right center/auto 100% no-repeat}
body.world-shell[data-world-mode="history"]{background:#d6d9dd}
body.world-shell[data-world-mode="matchups"]{background:#d6e7e3}
.world-shell .club-tool-panel .club-tool-bar{position:relative;isolation:isolate;overflow:hidden;padding:20px 24px;min-height:95px;background:#283a49;color:#fff0cc;border:1px solid #566477;border-radius:13px;margin-bottom:14px}
.world-shell .club-tool-bar::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#283a49 0%,#283a49ed 35%,transparent 85%),url('assets/world-replay-theater.svg') right center/auto 100% no-repeat}
.world-shell .club-tool-bar h1{font-size:30px!important;color:#fff1cf;letter-spacing:-.4px}
.world-shell .club-tool-bar h1::before{content:"THE COMMONS / REPLAY THEATER";display:block;font:700 9px/1.5 'Segoe UI',sans-serif;letter-spacing:1.7px;color:#d5bca4;margin-bottom:4px}
.world-shell .compact-matchups .club-tool-bar{background:#224b59;border-color:#668d8b}
.world-shell .compact-matchups .club-tool-bar::before{background:linear-gradient(90deg,#224b59 0%,#224b59ed 35%,transparent 85%),url('assets/world-matchup-lab.svg') right center/auto 100% no-repeat}
.world-shell .compact-matchups .club-tool-bar h1::before{content:"THE COMMONS / MATCHUP LAB";color:#b4ded2}
.world-shell .club-tool-panel iframe{border:1px solid #adbbb7;box-shadow:0 4px 0 #84989020;height:calc(100dvh - 212px)}
body.world-tool-history{background:#dce1df}
.world-tool-history main{max-width:none}
.world-tool-history .intro{background:#293e4d;color:#ffedcb;border:1px solid #5a6e78;border-radius:14px;padding:22px 28px;background-image:linear-gradient(90deg,#293e4d 20%,#293e4de0 60%,#293e4d33),url('assets/world-replay-theater.svg');background-position:right;background-size:auto 100%;background-repeat:no-repeat}
.world-tool-history .intro .eyebrow{color:#e2c493}
.world-tool-history .library,.world-tool-history #viewer:not(.sim-fullscreen){border-top:5px solid #5c7681;box-shadow:0 4px 0 #a6b8b320}
.world-tool-history .match{background:#f4f3e7;border-radius:11px;border-color:#c6cfbc}
.world-tool-history .match .score{color:#8b6742}
.world-tool-history .empty{background:#e6e9df;border:1px dashed #a5b5a4}
body.world-tool-matchups{background:#e1ede7}
.world-tool-matchups .panel,.world-tool-matchups .result-card{border-color:#9fbbb0;box-shadow:0 3px 0 #a3beb023}
.world-tool-matchups .player-card{background:linear-gradient(145deg,#fcfbee,#e4eee5);border-top:4px solid #4e9291;border-radius:10px}
.world-tool-matchups #playerB{border-top-color:#b59256}
.world-tool-matchups .versus>span{background:#2f6268;color:#fff1bf;border-radius:50%;padding:12px;font-size:22px}
/* The field guide opens as an existing dialog, like a book from the clubhouse. */
.world-shell #help{background:#f9f1d9;border:5px solid #93734e;border-radius:12px;box-shadow:inset 8px 0 #dfcba5,0 25px 100px #182b3270}
@media(max-width:760px){
 .world-shell .team-library-heading,.world-shell .collection-page .collection-heading{padding:20px!important;min-height:175px}
 .world-shell .team-library-heading::before,.world-shell .collection-heading::before{opacity:.48;background-size:auto 100%}
 .world-shell .team-library-heading>div:first-child,.world-shell .collection-heading>div{max-width:100%}
 .world-shell .collection-page .collection-heading{align-items:flex-start;gap:16px}.world-shell .collection-heading>a{align-self:flex-start}
 .world-shell .collection-tabs button{padding:10px 11px;font-size:11px}
 .world-shell .pack-buy{padding:17px}
 .world-shell .club-tool-panel .club-tool-bar{min-height:90px;padding:16px;margin-bottom:10px}.world-shell .club-tool-bar::before{opacity:.55}.world-shell .club-tool-bar h1{font-size:26px!important}
 .world-tool-history .intro{padding:20px;background-size:auto 100%}.world-tool-history .intro h1{font-size:34px}
}
@media(prefers-reduced-motion:reduce){.world-shell .team-deck{transition:none}.world-shell .team-deck:hover{transform:none}}
