.dh-root{max-width:1280px;margin:auto;padding:44px 28px 80px}.dh-root h1{font-size:clamp(28px,4vw,52px);line-height:1.1;margin:14px 0 24px}.dh-root h2{font-size:25px}.dh-root select,.dh-root input,.dh-root textarea{font:inherit;color:#f5edff;background:#160f2e;border:1px solid #504066;border-radius:8px;padding:12px;max-width:100%}.dh-root textarea{resize:vertical}.dh-root label{font-size:13px;color:#c4b4d5;display:grid;gap:8px}.dh-root button{cursor:pointer}.dh-root button:disabled{opacity:.45;cursor:not-allowed}.dh-root a{color:inherit}.dh-root .btn.primary{color:#090d20}.dh-root .selected{outline:2px solid #60eaf9}.dh-root :focus-visible{outline:2px solid #70f4ff;outline-offset:4px}.dh-hero{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:22px 0 44px;border-bottom:1px solid #48315e}.dh-hero h1{font-size:clamp(58px,8vw,104px);letter-spacing:-3px;margin:10px 0 20px}.dh-hero p{font-size:20px;max-width:670px}.dh-hero small{color:#b2a3c6}.dh-dot{color:#63ebff}.dh-filters{display:flex;flex-wrap:wrap;gap:14px;margin:28px 0}.dh-filters label{flex:1;min-width:150px}.dh-filters select{width:100%;min-width:0}.dh-deck-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.dh-deck{display:block;text-decoration:none;padding:18px;border:1px solid #593575;border-radius:15px;background:linear-gradient(140deg,#2e1946,#121027);transition:transform .18s,border-color .18s}.dh-deck:hover{transform:translateY(-4px);border-color:#6df4ff}.dh-deck-top{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:#c8b5dd;padding-bottom:16px}.dh-deck-top b{color:#80f0fa}.dh-mini-set{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.dh-mini{display:block;overflow:hidden;border-radius:7px;background:#0d091a;aspect-ratio:.69}.dh-mini img{display:block;width:100%;height:100%;object-fit:cover}.dh-deck-names{font-size:12px;line-height:1.6;color:#c8b4dd;margin:16px 0;min-height:58px}.dh-deck-numbers{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #65447e;padding-top:13px}.dh-deck-numbers strong{color:#68edfa;font-size:30px}.dh-deck-numbers span{font-size:12px;text-align:right;line-height:1.7}.dh-empty{padding:44px 22px;color:#bfb1d3;border:1px dashed #644d7a;border-radius:12px;text-align:center;grid-column:1/-1;margin:16px 0}.dh-empty h1{color:white}.dh-title{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-top:32px}.dh-title h1{font-size:clamp(22px,3vw,35px);max-width:850px}.dh-title h1 span{color:#a46bcc}.dh-title .btn{flex-shrink:0}.dh-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;max-width:960px;margin:28px auto}.dh-owned{text-align:center;color:#9de499}.dh-stats{display:grid;grid-template-columns:2fr repeat(4,1fr);background:linear-gradient(110deg,#2b1741,#15142a);border:1px solid #634279;border-radius:14px;overflow:hidden;margin:24px 0 12px}.dh-stats>div{padding:23px;border-left:1px solid #48325e;display:grid;gap:8px}.dh-stats>div:first-child{border:0}.dh-stats span{color:#beacce;font-size:13px}.dh-stats strong{font-size:32px}.dh-stats>div:first-child strong{color:#6ceffa}.dh-section{margin-top:45px}.dh-guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.dh-guide{display:block;text-decoration:none;padding:22px;border:1px solid #583671;border-radius:12px;background:#211330}.dh-guide:hover{border-color:#6ceffa}.dh-guide-heading{display:flex;justify-content:space-between;color:#bb9ecf;font-size:12px}.dh-guide h3{font-size:21px;margin:20px 0;overflow-wrap:anywhere}.dh-guide-meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;color:#c3b2d5;font-size:12px}.dh-pager{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.dh-data-columns{display:grid;grid-template-columns:1fr 1.4fr;gap:30px}.dh-matchup{display:grid;grid-template-columns:1fr auto;gap:6px;text-decoration:none;border-bottom:1px solid #48325e;padding:16px 0}.dh-matchup small{color:#a99dbb}.dh-matchup strong{color:#74e7ef}.dh-history{display:grid;grid-template-columns:76px 1fr auto;align-items:center;gap:12px;border-bottom:1px solid #48325e;padding:17px 0;font-size:12px}.dh-history small{display:block;color:#b5a3c4;margin-top:8px}.dh-result{border-radius:6px;padding:8px;text-align:center;background:#332441}.dh-result.win{background:#193c35;color:#89f3b4}.dh-result.loss{background:#482432;color:#ff9aac}.dh-result.draw{background:#3b3548;color:#dacbff}.dh-history .btn{font-size:11px;padding:7px}.dh-match-detail{grid-column:1/-1}.dh-match-detail:empty{display:none}.dh-final-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-top:12px}.dh-final-cards>div{display:grid;gap:7px;font-size:11px}.dh-final-cards .dh-mini{max-height:150px}.dh-guide-hero{padding:40px 0;border-bottom:1px solid #51355f}.dh-guide-hero h1{font-size:clamp(32px,5vw,64px);max-width:900px;overflow-wrap:anywhere}.dh-guide-hero p:not(.eyebrow){color:#b6a5c6}.dh-guide-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:40px;margin-top:36px}.dh-prose{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85;color:#e3d8ed;font-size:17px}.dh-guide-aside{align-self:start;padding:18px;background:#211630;border:1px solid #57366b;border-radius:12px}.dh-guide-aside>a{display:block;margin-top:20px;color:#74e7ef}.dh-discussion{max-width:900px}.dh-discussion form{display:grid;gap:12px;padding-bottom:24px}.dh-discussion button.btn{justify-self:start}.dh-comment{border-top:1px solid #4e345f;padding:22px 0}.dh-comment>div{display:flex;justify-content:space-between;color:#c5aed5}.dh-comment time{font-size:12px}.dh-comment p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.dh-comment button{background:none;border:0;font:inherit;font-size:12px}.dh-editor{max-width:1000px;margin:auto}.dh-editor>p{color:#c0accf}.dh-editor form{display:grid;gap:17px}.dh-form-row{display:grid;grid-template-columns:1fr 1fr;gap:18px}.dh-selection{display:flex;gap:12px;flex-wrap:wrap;align-items:center;padding:18px;background:#211332;border-radius:10px;min-height:100px}.dh-selection>div{width:120px;position:relative;font-size:11px}.dh-selection .dh-mini{height:96px;aspect-ratio:auto}.dh-selection>div>span{display:block;margin-top:7px}.dh-selection button{position:absolute;right:2px;top:2px;background:#100b23;color:white;border:1px solid #9a70b4;border-radius:50%;width:24px;height:24px}.dh-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-height:360px;overflow:auto;padding:8px}.dh-pick{display:flex;gap:10px;align-items:center;background:#221433;color:white;border:1px solid #593575;border-radius:9px;padding:8px;text-align:left;font-size:12px}.dh-pick .dh-mini{width:42px;flex-shrink:0}.dh-pick b{margin-left:auto;color:#71f4fc}.dh-pick span:not(.dh-mini){overflow-wrap:anywhere}#form-error{color:#ffb0c0;margin:0}.dh-discussion h2 small{color:#ae93c6;font-size:16px}
@media(max-width:1000px){.dh-deck-grid{grid-template-columns:repeat(2,1fr)}.dh-title{display:block}.dh-data-columns{grid-template-columns:1fr}.dh-guide-layout{grid-template-columns:1fr}.dh-guide-aside{max-width:370px}.dh-picker{grid-template-columns:repeat(3,1fr)}}
@media(max-width:650px){.dh-root{padding:25px 14px 50px}.dh-hero{display:block}.dh-hero .btn{margin-top:22px}.dh-deck-grid,.dh-guide-grid{grid-template-columns:1fr}.dh-cards{grid-template-columns:repeat(2,1fr);gap:12px}.dh-stats{grid-template-columns:repeat(2,1fr)}.dh-stats>div:first-child{grid-column:1/-1}.dh-stats>div{padding:15px}.dh-filters{gap:9px}.dh-filters label{min-width:135px}.dh-picker{grid-template-columns:repeat(2,1fr)}.dh-history{grid-template-columns:68px 1fr auto}.dh-form-row{grid-template-columns:1fr}.dh-guide-hero h1{font-size:34px}.dh-selection>div{width:100px}}
@media(prefers-reduced-motion:reduce){.dh-deck{transition:none}}

/* Decks buildable with all four cards from the last synchronized collection. */
.dh-owned-toggle{align-self:end;min-height:46px;white-space:normal;line-height:1.2;padding:11px 17px;border:1px solid #64826e;border-radius:9px;background:#1b2f28;color:#c2f5d3;font-weight:800;font-size:13px;transition:background .15s,border-color .15s}
.dh-owned-toggle:hover{background:#244636;border-color:#91f5ae}
.dh-owned-toggle.active{color:#092517;background:#6cec99;border-color:#9bf8b8;box-shadow:0 0 0 1px #79f1a6,0 0 18px #43ef8c35}
.dh-owned-toggle.active:hover{background:#9af3b7}
.dh-owned-limit{font-size:12px;color:#e0c5ac;margin:14px 0}
@media(max-width:650px){.dh-owned-toggle{flex:1 1 100%;width:100%}}

/* Opposing compositions: show their four actual card illustrations instead of
   internal composition hashes in matchups and match history. */
.dh-matchup{grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:14px}
.dh-matchup-opponent{grid-row:1 / span 2;min-width:0}
.dh-matchup strong{grid-column:2;grid-row:1;text-align:right}
.dh-matchup small{grid-column:2;grid-row:2;text-align:right}
.dh-opponent-lineup{width:min(100%,228px)}
.dh-opponent-lineup .dh-mini-set{gap:5px}
.dh-opponent-lineup .dh-mini{border:1px solid #74528b;border-radius:6px}
.dh-matchup:hover .dh-mini,.dh-history-opponent:hover .dh-mini{border-color:#69eaff}
.dh-opponent-unavailable{color:#bcadc9;font-size:12px}
.dh-history>div:nth-child(2){min-width:0}
.dh-history-opponent{display:block;width:fit-content;max-width:100%;text-decoration:none}
.dh-history-opponent .dh-opponent-lineup{width:min(100%,228px)}
.dh-history>div:nth-child(2) small{line-height:1.5;overflow-wrap:anywhere}
@media(max-width:650px){
 .dh-history{grid-template-columns:62px minmax(0,1fr) auto;gap:8px}
 .dh-history .btn{padding:7px 5px}
 .dh-opponent-lineup{width:min(100%,192px)}
 .dh-matchup{padding:12px 0}
}

/* Deck index: compact action toolbar, without the introductory hero text. */
.dh-list-toolbar{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin:0 0 18px}
@media(max-width:650px){.dh-list-toolbar{margin-bottom:14px}}

/* Four illustrated cards replace the former 'Contains this card' select. */
.dh-list-toolbar{justify-content:flex-start;gap:24px;flex-wrap:wrap;margin-bottom:22px}
.dh-list-toolbar>.btn{align-self:center;flex-shrink:0}
.dh-card-filter-box{display:grid;gap:8px;min-width:0}
.dh-filter-title{color:#c5b5da;font-size:12px;font-weight:700;letter-spacing:.025em}
.dh-filter-slot-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.dh-filter-slot{position:relative;width:63px;height:89px;border:1px dashed #80629c;border-radius:8px;background:linear-gradient(135deg,#2a1844,#100c25);flex:none;box-shadow:inset 0 0 16px #05001499}
.dh-filter-slot.filled{border:1px solid #66dff3;box-shadow:0 0 0 1px #3e95b555,0 0 18px #63dded22}
.dh-filter-slot-pick{display:grid;place-items:center;width:100%;height:100%;padding:0;color:#a4e5fb;border:0;background:transparent;border-radius:7px;overflow:hidden;cursor:pointer}
.dh-filter-slot-pick:hover{background:#5f377249;outline:1px solid #9aedfc}
.dh-filter-slot-pick>span{font-size:30px;font-weight:400;line-height:1}
.dh-filter-slot-pick img{width:100%;height:100%;object-fit:cover;display:block}
.dh-filter-slot-remove{position:absolute;top:-8px;right:-7px;width:22px;height:22px;display:grid;place-items:center;border:1px solid #ad88cb;border-radius:50%;color:white;background:#2e1643;font-size:16px;line-height:1;box-shadow:0 2px 8px #0009;cursor:pointer}
.dh-filter-slot-remove:hover{background:#643c80}
.dh-filter-clear{font-size:12px;padding:8px 10px;border:1px solid #634978;border-radius:7px;color:#d6c2e7;background:#201330;cursor:pointer}
.dh-filter-clear:hover{border-color:#80e3ef;color:#fff}
.dh-filter-dialog{position:fixed;z-index:3000;inset:0;display:grid;place-items:center;padding:18px}
.dh-filter-dialog-backdrop{position:absolute;inset:0;background:#080315d9;backdrop-filter:blur(6px);cursor:default}
.dh-filter-dialog-panel{position:relative;display:flex;flex-direction:column;max-width:960px;width:min(100%,960px);max-height:min(88vh,850px);min-height:0;border:1px solid #8b62a8;border-radius:16px;background:#1a102f;color:#f9efff;box-shadow:0 28px 100px #000b;padding:23px;overflow:hidden}
.dh-filter-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}
.dh-filter-dialog-heading h2{font-size:29px;line-height:1.15;margin:0}
.dh-filter-dialog-heading button{font-size:26px;width:36px;height:36px;border:1px solid #72558d;border-radius:8px;background:#311b45;color:white;cursor:pointer}
.dh-filter-dialog-panel p{font-size:13px;line-height:1.5;color:#c3b5d3;margin:10px 0 15px}
.dh-root #dh-filter-search{width:100%;flex:none;margin-bottom:16px;border-color:#74558f}
.dh-filter-picker-grid{overflow-y:auto;min-height:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-content:start;gap:12px;padding:5px 5px 14px;scrollbar-width:thin;scrollbar-color:#8757b5 #1b102d}
.dh-filter-card{min-width:0;position:relative;display:flex;flex-direction:column;align-items:stretch;gap:7px;border:1px solid #64427d;border-radius:9px;background:#2a1b40;padding:6px;color:white;text-align:left;cursor:pointer}
.dh-filter-card img{width:100%;aspect-ratio:.7;object-fit:cover;border-radius:5px;display:block;background:#130b28}
.dh-filter-card>span{font-size:12px;line-height:1.25;min-height:2.5em;overflow-wrap:anywhere}
.dh-filter-card:hover{border-color:#6ae7f6;background:#33214d}
.dh-filter-card.active{border-color:#62ebf6;box-shadow:0 0 0 1px #62ebf6}
.dh-filter-card>b{position:absolute;right:11px;top:10px;display:grid;place-items:center;width:23px;height:23px;border-radius:50%;color:#071d17;background:#77f3bd}
.dh-filter-card:disabled{filter:grayscale(.8);opacity:.35;cursor:not-allowed}
.dh-filter-noresults{grid-column:1/-1;text-align:center}
@media(max-width:900px){.dh-filter-picker-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:650px){.dh-list-toolbar{gap:16px}.dh-list-toolbar>.btn{align-self:flex-start}.dh-filter-slot{width:57px;height:80px}.dh-filter-picker-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.dh-filter-dialog{padding:9px}.dh-filter-dialog-panel{padding:14px;max-height:93vh}.dh-filter-dialog-heading h2{font-size:23px}}
@media(max-width:370px){.dh-filter-slot{width:51px;height:72px}.dh-filter-slot-row{gap:9px}.dh-filter-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Account for dialog padding in viewport widths (notably 320–390px phones). */
.dh-filter-dialog-panel{box-sizing:border-box;min-width:0}

/* Recommended talent per card: guide editor and guide detail. */
.dh-talents-editor{margin:6px 0 13px}
.dh-talents-editor h2,.dh-talent-summary h2{font-size:21px;margin:7px 0}
.dh-talents-editor>p{color:#c4b4d5;font-size:13px;margin:4px 0 16px}
.dh-talents-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.dh-talent-card{min-width:0;padding:14px;border:1px solid #634681;border-radius:12px;background:linear-gradient(145deg,#26183c,#171126)}
.dh-talent-card-head{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.dh-talent-card-head .dh-mini{width:57px;flex:none}
.dh-talent-card-head strong{font-size:15px;overflow-wrap:anywhere}
.dh-talent-options{display:grid;gap:8px}
.dh-root label.dh-talent-option{display:block;position:relative;color:#eee1fa;cursor:pointer}
.dh-talent-option input{position:absolute;opacity:0;width:1px;height:1px;left:0;top:0}
.dh-talent-option span{display:block;border:1px solid #624977;border-radius:8px;background:#21152f;padding:10px 12px;font-size:12px;line-height:1.45;transition:border-color .15s,background .15s}
.dh-talent-option b{display:block;color:#fff;font-size:13px}
.dh-talent-option small{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;color:#bdaccd;white-space:pre-line;margin-top:4px}
.dh-talent-option input:checked+span{border-color:#77e5f6;background:#174056;box-shadow:inset 4px 0 #69effa}
.dh-talent-option input:focus-visible+span{outline:2px solid #70f4ff;outline-offset:3px}
.dh-talent-option:hover span{border-color:#84b9d7}
.dh-talent-summary{margin:19px 0 0;padding-top:14px;border-top:1px solid #593972}
.dh-talent-summary h2{margin:0 0 15px}
.dh-talent-summary-card{display:grid;grid-template-columns:52px minmax(0,1fr);gap:11px;align-items:start;margin:12px 0}
.dh-talent-summary-card .dh-mini{width:52px;border:1px solid #75589d}
.dh-talent-summary-card strong,.dh-talent-summary-card b{display:block;overflow-wrap:anywhere}
.dh-talent-summary-card strong{font-size:12px;color:#bca9d5}
.dh-talent-summary-card b{font-size:14px;color:#90f2ff;margin:3px 0 5px}
.dh-talent-summary-card p{font-size:12px;line-height:1.5;color:#c9b8d7;margin:0;white-space:pre-line}
@media(max-width:650px){.dh-talents-grid{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.dh-talent-option span{transition:none}}
