/* Collection shares one compact card language across care and battle decks. */
.collection-game{max-width:520px;margin:0 auto;color:#f4f7ff}
.collection-game-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:57px;margin:0 0 8px}
.collection-game-heading>div>span{display:block;font-size:9px;letter-spacing:1.3px;font-weight:800;color:#b9d7ed}
.collection-game-heading h1{margin:3px 0 0;font:400 31px/1.1 var(--game-type);letter-spacing:0;text-shadow:0 2px #08264f}
.collection-game-heading>strong{display:flex;align-items:center;gap:6px;color:#ffe79d;font:400 26px/1 var(--game-type)}
.collection-game-heading>strong small{max-width:44px;font:700 9px/1.3 'DM Sans',sans-serif;color:#bcdaf1}
.collection-game-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:4px;border:1px solid #6998c0;border-radius:10px;background:#0a2d5c;box-shadow:0 3px #082650;margin-bottom:13px}
.collection-game-tabs button{min-height:43px;padding:8px 4px;border:0;border-radius:7px;background:transparent;box-shadow:none;color:#c7e0f8;font-size:12px}
.collection-game-tabs [aria-current=page]{color:#573a15;background:linear-gradient(#ffe99b,#edbe4d);box-shadow:inset 0 1px #fff6bd,0 2px #986519;text-shadow:none}
.collection-game-intro{margin:4px 1px 13px}
.collection-game-intro>strong{font-size:14px;color:#ffe7a3}
.collection-game-intro p{margin:5px 0 0;font-size:11px;line-height:1.5;color:#c7dff3}
.companion-card-grid,.deck-game-candidates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px;align-items:start}
.companion-game-card,.deck-candidate{min-width:0;overflow:hidden;border:2px solid #719fc8;border-bottom-width:4px;border-radius:12px;background:linear-gradient(#2c78b6,#15477d);box-shadow:inset 0 1px #b5e5f577,0 3px #08254e}
.companion-game-card.is-in-deck{border-color:#e9ca76}
.collection-card-art{position:relative;display:flex;align-items:flex-end;justify-content:center;height:137px;padding:8px 5px 0;isolation:isolate;overflow:hidden;border-bottom:1px solid #a2ceec66;background:radial-gradient(ellipse at 50% 38%,color-mix(in srgb,var(--card-glow,#8ae0ff) 54%,#c2e9ed),#244d7c 95%)}
.collection-card-art>img,.collection-card-art>svg{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 5px 3px #082b5c88)}
.collection-card-art>img.monster-face-art{object-fit:cover;object-position:center 38%;transform:scale(1.05)}
.collection-energy{position:absolute;z-index:2;left:5px;top:6px;display:grid;place-items:center;min-width:26px;height:29px;padding:0 4px;border:1px solid #f0c1ff;border-radius:45% 45% 50% 50%;background:linear-gradient(#e784fa,#953ccb);box-shadow:0 2px #4b1c6c;color:#fff9ff;font:400 21px/1 var(--game-type);text-shadow:0 2px #552777}
.collection-card-level{position:absolute;z-index:2;right:5px;top:8px;padding:4px 5px;border:1px solid #80a6c9;border-radius:5px;background:#0c3068e6;color:#e4f4ff;font-size:10px;font-weight:800}
.collection-deck-tag{position:absolute;z-index:2;bottom:0;left:0;right:0;padding:4px 2px;background:#e9c16f;color:#50340d;font-size:8px;font-weight:900;letter-spacing:.4px;text-align:center}
.collection-card-copy{padding:10px 9px 9px}
.collection-card-copy h2{min-height:36px;margin:0;font:400 20px/1.05 var(--game-type);letter-spacing:0;color:#fff0c3;text-shadow:0 2px #0b2c59;overflow-wrap:anywhere}
.collection-card-copy .collection-card-role{min-height:28px;margin:5px 0 8px;font-size:10px;line-height:1.4;color:#c7e2f5}
.companion-training{margin:0 0 9px}
.companion-training>span{display:flex;justify-content:space-between;gap:3px;font-size:9px;color:#cce5f6}
.companion-training b{color:#f3ecff;white-space:nowrap}
.companion-training-track{height:7px;margin-top:5px;border:1px solid #88add3;border-radius:10px;overflow:hidden;background:#092653}
.companion-training-track>i{display:block;height:100%;border-radius:10px;background:linear-gradient(90deg,#b277f4,#72e7f4)}
.collection-game .companion-care{margin:0;text-align:left}
.collection-game .companion-care>summary{position:relative;min-height:44px;padding:12px 3px;border:1px solid #7fb4dd;border-radius:7px;background:linear-gradient(#326da4,#1b4b83);box-shadow:inset 0 1px #a6d3ed55,0 2px #082b5c;text-align:center;color:#edf6ff;font-size:10px;font-weight:800;list-style:none;cursor:pointer}
.collection-game .companion-care>summary::-webkit-details-marker{display:none}
.collection-game .companion-care>summary::after{content:' ▾';color:#bcdff7}
.collection-game .companion-care[open]>summary{margin-bottom:10px}
.collection-game .companion-care[open]>summary::after{content:' ▴'}
.collection-ready-dot{display:inline-block;width:7px;height:7px;margin-left:4px;background:#ffe487;border-radius:50%;box-shadow:0 0 0 2px #695322}
.companion-care p{margin:8px 0;font-size:10px;line-height:1.5;color:#cde1f3}
.companion-care-actions{display:grid;gap:8px}
.companion-care-actions button,.companion-evolution button{width:100%;min-height:44px;padding:8px 3px;font-size:10px}
.companion-care .collection-team-note{font-size:9px;color:#b5d4ed}
.companion-evolution{margin:12px -2px 0;padding-top:11px;border-top:1px solid #7ba6ca66}
.companion-evolution>span{display:block;color:#c5d8ff;font-size:8px;font-weight:800;letter-spacing:.5px}
.companion-evolution>strong{display:block;margin-top:5px;color:#ffeaa5;font-size:12px;line-height:1.3}
.companion-care .collection-final-form{color:#d9c6ff;text-align:center}
.deck-game-loadouts{display:flex;align-items:center;gap:9px;margin:14px 1px 11px}
.deck-game-loadouts>span:first-child{font-size:12px;font-weight:800;color:#d4e9fa}
.deck-game-loadouts>div{display:flex;gap:5px}
.deck-game-loadouts button{min-height:38px;min-width:34px;padding:5px;border:1px solid #7097bd;border-radius:6px;font:400 20px/1 var(--game-type);box-shadow:0 2px #082750}
.deck-game-loadouts [aria-pressed=true]{background:linear-gradient(#ffe69a,#e6b648);border-color:#ffe6a6;color:#593c17;text-shadow:none}
.deck-average{display:flex;align-items:center;gap:4px;margin-left:auto;color:#fff2ff;font:400 21px/1 var(--game-type)}
.deck-average i{display:grid;place-items:center;width:20px;height:25px;border-radius:50%;background:#a64fce;color:#f7c7ff;font-size:16px;font-style:normal}
.deck-average small{font:700 8px/1 'DM Sans',sans-serif;color:#c9d9ee}
.deck-game-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 6px;margin-bottom:12px}
.deck-game-slot{position:relative;min-width:0;min-height:122px;padding:8px 3px 5px;border:2px solid #679cc9;border-radius:9px;background:linear-gradient(#396fa4,#174477);box-shadow:inset 0 1px #a2c5e966,0 3px #08264f;text-align:center;overflow:visible}
.deck-game-slot.active{border-color:#ffe69c;background:linear-gradient(#41799f,#384f7a);box-shadow:inset 0 0 0 1px #ba8d38,0 3px #a46e20}
.deck-game-slot .collection-energy{left:-4px;top:-5px;min-width:22px;height:25px;font-size:18px}
.deck-slot-number{position:absolute;z-index:2;right:3px;top:3px;display:grid;place-items:center;width:16px;height:16px;border-radius:4px;background:#0a2b5bdb;color:#e5f3ff;font-size:8px;font-weight:800}
.deck-game-slot.active .deck-slot-number{background:#f2cb69;color:#553913}
.deck-slot-art{display:block;height:70px;margin:0 -1px 2px;overflow:hidden;border:1px solid #b7ddf180;border-radius:6px;background:radial-gradient(ellipse at 50% 38%,color-mix(in srgb,var(--card-glow,#8ae0ff) 48%,#c2e9ed),#244d7c 95%)}
.deck-slot-art img,.deck-slot-art svg{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 3px 2px #08244d88)}
.deck-slot-art img.monster-face-art{object-fit:cover;object-position:center 36%;transform:scale(1.05)}
.deck-game-slot>strong{display:flex;align-items:center;justify-content:center;min-height:23px;color:#fff2cd;font:400 11px/1.05 var(--game-type);text-shadow:0 1px #092650;overflow-wrap:anywhere}
.deck-slot-level{display:block;margin-top:3px;font-size:8px;font-weight:800;color:#c9e4fa}
.deck-training-note{display:flex;align-items:center;gap:7px;margin:0 1px 14px;color:#bdd8ee;font-size:10px;line-height:1.5}
.deck-training-note .icon{flex:none;width:25px;height:25px}
.deck-training-note strong{display:block;color:#f3e2a5;font-size:11px}
.deck-editor-selection{position:sticky;z-index:8;top:-8px;display:grid;grid-template-columns:1fr auto;gap:3px 6px;margin:0 -2px 11px;padding:10px 9px;border:1px solid #a4bed8;border-radius:8px;background:#0d3468f5;box-shadow:0 4px 9px #061d4d66}
.deck-editor-selection>span{font-size:8px;font-weight:900;letter-spacing:.6px;color:#eac773}
.deck-editor-selection>strong{grid-row:2;font-size:13px;color:#eff8ff;line-height:1.3}
.deck-editor-selection>small{grid-column:2;grid-row:1/3;align-self:center;font-size:9px;color:#bdd9ed}
.deck-game-candidates{gap:11px 10px}
.deck-candidate.is-in-deck{border-color:#6d9bba;background:linear-gradient(#315c89,#153a6b)}
.deck-candidate .collection-card-art{height:118px}
.deck-candidate .collection-card-copy{padding-top:8px}
.deck-candidate .collection-card-copy h2{font-size:19px;min-height:36px}
.deck-candidate .collection-card-role{min-height:15px;margin:4px 0 5px}
.deck-candidate-ownership{display:block;min-height:26px;color:#bdcfeb;font-size:9px;line-height:1.4}
.deck-candidate-ownership.is-owned{color:#c0f3d8}
.deck-candidate-equip{width:100%;min-height:44px;margin-top:6px;padding:8px 3px;font-size:11px}
.deck-candidate-equip:disabled{cursor:default;opacity:.66}
@media(max-width:359px){.collection-game-tabs button{font-size:11px}.companion-card-grid,.deck-game-candidates{gap:10px 7px}.collection-card-art{height:119px}.collection-card-copy{padding:9px 7px}.deck-game-slot{min-height:113px}.deck-slot-art{height:62px}.deck-game-slot>strong{font-size:10px}.deck-game-loadouts{gap:6px}.deck-game-loadouts>span:first-child{font-size:10px}.deck-game-loadouts button{min-width:30px}.deck-average{font-size:19px}.deck-editor-selection>small{max-width:70px;text-align:right}}
@media(min-width:500px){.collection-card-art{height:166px}.collection-card-copy h2{font-size:23px}.deck-slot-art{height:88px}.deck-game-slot{min-height:143px}.deck-game-slot>strong{font-size:13px}.deck-slot-level{font-size:10px}.deck-candidate .collection-card-art{height:153px}.deck-candidate .collection-card-copy h2{font-size:23px}}
.collection-game-tabs button{min-height:48px}.deck-game-loadouts button{min-height:48px;min-width:44px}.deck-slot-level{font-size:10px}.deck-game-slot>strong{font-size:12px}.deck-candidate-ownership,.companion-training>span{font-size:11px}.collection-card-copy .collection-card-role,.companion-care p{font-size:11px}.companion-care-actions button,.companion-evolution button,.deck-candidate-equip{min-height:48px;font-size:12px}.collection-game .companion-care>summary{min-height:48px;font-size:12px}.collection-back{min-height:48px;font-size:12px;margin-bottom:0}.collection-card-level{font-size:11px}
.deck-game .collection-game-heading{gap:8px}.deck-game .collection-game-heading .back-link{display:grid;place-items:center;width:48px;min-width:48px;min-height:48px;margin:0;padding:6px;font-size:23px;background:#174879;border:1px solid #79afcd;border-radius:10px;box-shadow:0 3px #092c56}.deck-game .collection-game-heading>div{flex:1}.deck-game .collection-game-heading h1{font-size:29px}
@media(max-height:700px){.deck-game .collection-game-heading{min-height:48px;margin-bottom:6px}.deck-game .collection-game-tabs{margin-bottom:6px}.deck-game-loadouts{margin:8px 1px}.deck-game-slot{min-height:117px}.deck-slot-art{height:61px}.deck-game-slot>strong{min-height:21px}.deck-game .deck-training-note{font-size:11px}}
.is-online-signed-in .lobby-deck-cards{grid-template-columns:repeat(var(--deck-count,4),minmax(0,1fr))}
.deck-game-add,.deck-game-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border-style:dashed;background:#10356899;box-shadow:none}
.deck-game-add>span,.deck-game-empty>b{color:#a4d8ed;font:400 32px/1 var(--game-type)}
.deck-game-add>strong{color:#e4f5ff;font-size:12px}
.deck-game-add>small,.deck-game-empty>small{font-size:10px;color:#aacde6}
.deck-game-empty{opacity:.5;border-color:#638fb580}
.deck-game-add.active{border-style:solid;background:#345175}
.deck-earn-next{display:flex;align-items:center;gap:10px;margin:0 0 12px;padding:8px 12px;border:1px solid #a692d1;border-radius:10px;background:linear-gradient(120deg,#45366b,#163d72)}
.deck-earn-next>span{width:57px;height:56px;flex:none}
.deck-earn-next img{width:100%;height:100%;object-fit:contain}
.deck-earn-next>div{display:flex;flex-direction:column;gap:3px}
.deck-earn-next small{font-size:9px;letter-spacing:.6px;color:#d1c8ed}
.deck-earn-next strong{font-size:14px;color:#ffe9af}
.deck-earn-next>div>span{font-size:11px;color:#c9ddf3}
.deck-locked-catalog{margin:17px 0 0;padding-top:4px;border-top:1px solid #7ca9c977}
.deck-locked-catalog>summary{display:flex;align-items:center;justify-content:space-between;min-height:48px;gap:8px;font-size:14px;font-weight:800;color:#f0e5bd;cursor:pointer;list-style:none}
.deck-locked-catalog>summary::after{content:'▾';color:#b9d9ed}
.deck-locked-catalog[open]>summary::after{content:'▴'}
.deck-locked-catalog>summary span{margin-left:auto;font-size:11px;font-weight:500;color:#bbd5e9}
.deck-locked-catalog>p{margin:0 0 14px;font-size:12px;line-height:1.5;color:#c1dcee}
.deck-candidate.is-locked{background:linear-gradient(#284d78,#123561);border-color:#5b7a9e}
.deck-candidate .deck-unlock-label{min-height:48px;font-size:11px;line-height:1.5;color:#d2cbef}
.deck-unlock-route{width:100%;min-height:48px;margin-top:5px;padding:7px 4px;font-size:11px;background:#234e7e;border-color:#7698bd}
.live-deck-notice{margin:10px 0 14px;padding:13px;border:1px solid #c2a769;border-radius:10px;background:#133a6b}
.live-deck-notice>strong{display:block;font-size:14px;color:#ffe7a1}
.live-deck-notice p{margin:7px 0 11px;font-size:12px;line-height:1.5;color:#cee4f6}
.live-deck-notice>div{display:flex;gap:8px;flex-wrap:wrap}
.live-deck-notice button{flex:1;min-height:48px;padding:8px 5px;font-size:11px}

.deck-candidate .collection-card-spell{font:600 11px/1.45 var(--shell-font,'DM Sans',sans-serif);color:#cee9fa;margin:5px 0 7px;}
.deck-remove-row{display:grid;gap:8px;margin:0 0 18px;padding:12px;border:1px solid #8cb7d1;border-radius:10px;background:#10365f}
.deck-remove-row>button{width:100%;min-height:48px;white-space:normal}
.deck-remove-row>small{display:block;font:500 13px/1.5 var(--shell-font,'DM Sans',sans-serif);color:#d4e8f5;overflow-wrap:anywhere}
