/* Art headers (task X5, 9 Oct 2026): card art over the Game Plans routes and banners at the top of
   Natural Order and Speaker Loop. Illustration only (Scryfall art crops), each framed by its focal point
   with --pos; when there are two or three, each one fades into the previous so they read as one image. */

.art-head,.art-banner{position:relative;display:flex;overflow:hidden;background:#0d1a20}
.art-head>span,.art-banner>span{flex:1 1 0;min-width:0;background:var(--over,linear-gradient(transparent,transparent)),var(--img) var(--pos,50% 30%)/var(--size,cover) no-repeat var(--fill,transparent)}
.art-head>span+span,.art-banner>span+span{margin-left:-16%;-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 38%);mask-image:linear-gradient(90deg,transparent 0%,#000 38%)}

/* Card header: bleeds to the card's edges and fades into it. */
.cards2>article>.art-head{margin:-14px -16px 2px;height:96px;border-radius:12px 12px 0 0;-webkit-mask-image:linear-gradient(180deg,#000 55%,transparent 100%);mask-image:linear-gradient(180deg,#000 55%,transparent 100%)}
.cards2>article>.art-head>span{filter:saturate(.95) brightness(.88)}

/* Section banner: wide, a little taller, rounded, with a soft fade at the bottom. */
.art-banner{height:clamp(140px,17vw,210px);margin:6px 0 20px;border-radius:14px;border:1px solid var(--line);-webkit-mask-image:linear-gradient(180deg,#000 70%,rgba(0,0,0,.35) 100%);mask-image:linear-gradient(180deg,#000 70%,rgba(0,0,0,.35) 100%)}
.art-banner>span{filter:saturate(.95) brightness(.9)}
/* Banners cross-fade (runkor, 9 Oct 2026): the first image fades to 0 % exactly at its right edge while the second fades in
   over the same band, so no edge of the first image shows. Each span is 65 % wide; they overlap from 35 % to 65 %. */
.art-banner>span:first-child{-webkit-mask-image:linear-gradient(90deg,#000 54%,transparent 100%);mask-image:linear-gradient(90deg,#000 54%,transparent 100%)}
.art-banner>span+span{margin-left:-30%;-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 46%);mask-image:linear-gradient(90deg,transparent 0%,#000 46%)}
@media(max-width:600px){.art-banner{height:130px}}

/* First Turns sequencing: four cards, always two by two (one column on phones). */
.seq-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:600px){.seq-cards{grid-template-columns:1fr}}

/* Game Plans pivots: two by two (one column on phones). */
.pivot-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:600px){.pivot-cards{grid-template-columns:1fr}}

/* Deck Construction, condensed (runkor, 13 Oct 2026; artifact https://claude.ai/artifact/8qWb9WjkY8PmBEXEDQx1Qt): the opening
   balance, eight package cards with art crops, the core trio with round art and the current flex slots. */
/* The opening balance */
#construction .dc-balance{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;align-items:center;padding:12px 16px;margin:14px 0 6px;border-radius:12px;border:1px solid transparent;background:linear-gradient(var(--panel),var(--panel)) padding-box,linear-gradient(90deg,var(--accent),var(--gold)) border-box}
#construction .dc-balance .dc-nums{display:flex;gap:14px}
#construction .dc-balance .dc-nums div{display:flex;flex-direction:column;align-items:center;min-width:52px}
#construction .dc-balance .dc-nums b{font-size:24px;line-height:1.1;font-variant-numeric:tabular-nums}
#construction .dc-balance .dc-nums span{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--accent)}
#construction .dc-balance p{margin:0;font-size:14px;color:#c9d6e0}
@media (max-width:620px){#construction .dc-balance{grid-template-columns:1fr}}
/* Package cards */
/* Nine packages since 15 Oct 2026 (Allosaurus Shepherd became its own core package): 3 × 3. */
#construction .dc-pkgs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px 0 8px;padding:0;list-style:none}
@media (max-width:860px){#construction .dc-pkgs{grid-template-columns:repeat(2,minmax(0,1fr))}#construction .dc-pkg:last-child:nth-child(odd){grid-column:1/-1}}
#construction .dc-pkg{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:12px;background:var(--panel);overflow:hidden;min-width:0}
#construction .dc-pkg .dc-art{aspect-ratio:16/7;background-size:cover;background-position:center 30%;position:relative}
#construction .dc-pkg .dc-art::after{content:"";pointer-events:none;position:absolute;inset:0;background:linear-gradient(180deg,transparent 45%,var(--panel))}
#construction .dc-pkg.core{border-color:rgba(237,204,114,.55)}
#construction .dc-pkg .dc-body{display:flex;flex-direction:column;gap:4px;padding:2px 12px 12px}
#construction .dc-pkg h4{margin:0;font-size:15px;line-height:1.25}
#construction .dc-pkg .dc-chip{align-self:flex-start;font-size:11px;font-weight:700;letter-spacing:.02em;padding:2px 8px;border-radius:999px;border:1px solid rgba(162,221,192,.4);color:var(--accent);font-variant-numeric:tabular-nums}
#construction .dc-pkg.core .dc-chip{border-color:rgba(237,204,114,.6);color:var(--gold)}
#construction .dc-pkg p{margin:0;font-size:13px;color:#b9c8d4;line-height:1.45}
/* Core trio */
#construction .dc-trio{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:10px}
#construction .dc-trio li{display:grid;grid-template-columns:52px minmax(0,1fr);gap:12px;align-items:start}
#construction .dc-trio i{width:52px;height:52px;border-radius:50%;background-size:cover;background-position:center 30%;border:2px solid var(--line)}
#construction .dc-trio b{color:var(--text)}
/* Flex slots */
#construction .dc-flex{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:8px 0}
@media (max-width:620px){#construction .dc-flex{grid-template-columns:1fr}}
#construction .dc-flex article{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
#construction .dc-flex i{width:72px;height:56px;border-radius:8px;background-size:cover;background-position:center 30%}
#construction .dc-flex h4{margin:0 0 2px;font-size:14px}
#construction .dc-flex h4 small{color:var(--accent);font-weight:700;margin-left:6px}
#construction .dc-flex p{margin:0;font-size:13px;color:#b9c8d4;line-height:1.45}
#construction .dc-bench{font-size:13px;color:var(--muted)}
#construction .dc-pkgs,#construction .dc-flex,#construction .dc-trio{max-width:none;width:100%}
