/* Leaders lane: 14 Leaders (6 historical + 8 Travelers), colour pips and the deck colour rule UI.
   Loaded after the other stylesheets (index.html). Landscape first, portrait overrides at the end. */

/* ---- colour pips: one dot per Leader colour ---- */
.lcpips { display: inline-flex; align-items: center; gap: 3px; margin-right: 6px; vertical-align: middle; flex: none; }
.lcpips i { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px rgba(8, 4, 18, .85), 0 0 7px color-mix(in srgb, var(--c) 70%, transparent); }

/* ---- leader select: set tabs, then one row per set (landscape) ---- */
#select .lgroups { position: absolute; left: 50%; top: 78px; transform: translateX(-50%); z-index: 4; display: flex; justify-content: center; gap: 6px; margin: 0; padding: 4px; width: max-content; max-width: calc(100% - 48px); border-radius: 14px; background: rgba(10, 6, 22, .55); border: 1px solid rgba(232, 186, 90, .2); }
#select .lgroups:empty { display: none; }
#select:has(.lgroup) .leaders.l14 { top: 136px; }
body.portrait #select .lgroups { position: relative; left: auto; top: auto; transform: none; margin: 10px auto 14px; }
#select .lgroup { appearance: none; border: 0; cursor: pointer; display: grid; gap: 1px; text-align: left; padding: 6px 14px; border-radius: 10px; color: #cbb9ee; background: transparent; font: 700 12px/1.1 var(--font-ui); }
#select .lgroup b { font: 800 13px/1.1 var(--font-title); letter-spacing: .05em; color: #fff4d6; }
#select .lgroup span { font-size: 11px; color: var(--muted); }
#select .lgroup.on { background: linear-gradient(180deg, rgba(120, 70, 210, .8), rgba(70, 34, 140, .85)); box-shadow: 0 0 0 1px rgba(232, 186, 90, .5) inset; color: #fff; }
#select .lgroup.on span { color: #e9ddff; }
body.mobile #select .lgroup b, body.portrait #select .lgroup b { font-size: 16px; } body.mobile #select .lgroup span, body.portrait #select .lgroup span { font-size: 13px; }

#select .leaders.l14 { gap: 10px; left: 24px; right: 24px; align-items: flex-start; }
#select .leaders.l14 .leaderPick { flex: 0 1 132px; width: auto; min-width: 0; }
#select .leaders.l14 .leaderPick .lc { width: 100%; height: auto; aspect-ratio: 184 / 274; }
#select .leaders.l14 .leaderPick .setname { margin-top: 9px; gap: 4px; }
#select .leaders.l14 .leaderPick .setname b { font-size: 14px; }
#select .leaders.l14 .leaderPick .setname span { display: block; max-width: 100%; text-align: center; font-size: 8.5px; line-height: 1.35; letter-spacing: .08em; white-space: normal; }
#select .leaders.l14 .leaderPick .setname span .lcpips { display: flex; justify-content: center; margin: 0 0 3px; }
#select .leaders.l14 .leaderPick .setname .lcpips i { width: 8px; height: 8px; }
#select .leaders .lsep { flex: none; align-self: stretch; width: 2px; margin: 8px 6px 34px; border-radius: 2px; position: relative;
  background: linear-gradient(180deg, transparent, rgba(242, 193, 78, .7), transparent); }
#select .leaders .lsep span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-90deg); white-space: nowrap; padding: 3px 8px; border-radius: 99px;
  font: 800 9px/1 var(--font-ui); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-1); background: rgba(12, 7, 26, .92); }
#select .detail .dt-colors { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-dim); }
#select .detail .dt-colors b { color: #f1e8ff; }
#select .detail .dt-offnote { margin: 0; font-size: 11.5px; color: #ffb86b; line-height: 1.3; }

/* ---- hub deck line ---- */
.hdeck .hd-txt span .lcpips { margin-right: 5px; }

/* ---- How to Play leader list ---- */
.lrow b .lcpips { margin: 0 0 0 8px; }

/* ---- Deck Lab: leader chip, picker, off-colour rows ---- */
.dl-leader { display: flex; align-items: center; gap: 9px; width: 100%; padding: 5px 10px 5px 5px; border-radius: 10px; cursor: pointer; text-align: left; color: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 22%, rgba(8, 4, 18, .8)), rgba(8, 4, 18, .7)); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.dl-leader:hover { border-color: var(--gold-1); }
.dl-leader .lci { width: 14px; height: 14px; margin-left: auto; opacity: .7; }
.dl-la { flex: none; width: 34px; height: 34px; border-radius: 8px; background-size: cover; background-position: 50% 20%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.dl-lt { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.dl-lt small { font: 800 9px/1 var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-dim); }
.dl-lt b { font: 800 15px/1.2 var(--font-title); color: #fff4d6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; max-height: 58vh; overflow-y: auto; padding: 2px; }
.dl-lopt { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px; border-radius: 12px; cursor: pointer; text-align: left; color: inherit;
  background: rgba(8, 4, 18, .6); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.dl-lopt .dl-la { grid-row: 1 / 3; width: 44px; height: 44px; }
.dl-lopt b { font: 800 14px/1.1 var(--font-title); color: #fff4d6; display: flex; align-items: center; }
.dl-lopt .lcpips { grid-column: 2; grid-row: 1; justify-self: end; margin: 0; }
.dl-lopt em { grid-column: 2; font-style: normal; font-size: 11.5px; color: var(--ink-dim); }
.dl-lopt em.ok { color: #9dffc4; } .dl-lopt em.bad { color: #ffb86b; }
.dl-lopt.on { box-shadow: 0 0 0 2px var(--gold-1); background: color-mix(in srgb, var(--c) 18%, rgba(8, 4, 18, .7)); }
.dl-lopt:hover { border-color: var(--gold-1); }
#deckbuilder .drow.offrow { outline: 1.5px dashed #ffb86b; outline-offset: -2px; }
#deckbuilder .drow.offrow .dr-name { opacity: .72; }
#deckbuilder .drow .dr-off { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); z-index: 2; font: 800 9px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; font-style: normal;
  padding: 3px 6px; border-radius: 99px; color: #2a1206; background: #ffb86b; }
.dnote .warn.off { display: block; margin-bottom: 6px; }
.dl-fix { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; cursor: pointer; font: 800 12px var(--font-ui); color: #2a1206;
  background: linear-gradient(180deg, #ffd08a, #ffab4a); border: 0; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.dl-fix .lci { width: 14px; height: 14px; }
.dl-menu em.fixme { font-style: normal; font-size: 10px; font-weight: 800; color: #2a1206; background: #ffb86b; padding: 2px 6px; border-radius: 99px; margin-left: 6px; }

/* ---- Collection: "Legal for Leader" filter ---- */
.cf-lead { display: inline-flex; align-items: center; gap: 4px; flex: none; height: 46px; padding: 0 8px 0 12px; border-radius: 12px; cursor: pointer;
  background: linear-gradient(180deg, rgba(8, 4, 18, .82), rgba(20, 11, 40, .78)); border: 1px solid rgba(232, 186, 90, .2); }
.cf-lead.on { border-color: var(--gold-1); box-shadow: 0 0 0 1px rgba(242, 193, 78, .35); }
.cf-lead select { background: transparent; border: 0; color: inherit; font: 700 13px var(--font-ui); max-width: 150px; cursor: pointer; }
.cf-lead .cf-lead-i { width: 10px; height: 10px; border-radius: 50%; background: conic-gradient(#e8b730, #2f9be8, #3cc460, #e0473a, #a44ee0, #e8b730); }

/* ---- portrait ---- */
body.portrait #select .leaders.l14 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 16px; left: auto; right: auto; }
body.portrait #select .leaders.l14 .leaderPick { width: 100%; max-width: 190px; flex: none; }
body.portrait #select .leaders.l14 .leaderPick .lc { width: 100%; height: auto; }
body.portrait #select .leaders.l14 .leaderPick .setname b { font-size: 24px; }
body.portrait #select .leaders.l14 .leaderPick .setname span { font-size: 14px; letter-spacing: .1em; }
body.portrait #select .leaders.l14 .leaderPick .setname .lcpips i { width: 13px; height: 13px; }
body.portrait #select .leaders .lsep { grid-column: 1 / -1; width: auto; height: 2px; margin: 6px 0 0; align-self: center; background: linear-gradient(90deg, transparent, rgba(242, 193, 78, .7), transparent); }
body.portrait #select .leaders .lsep span { transform: translate(-50%, -50%); font-size: 16px; padding: 6px 16px; }
body.portrait #select .detail .dt-colors { font-size: 22px; gap: 8px; }
body.portrait #select .detail .dt-colors .lcpips i { width: 16px; height: 16px; }
body.portrait #select .detail .dt-offnote { grid-column: 1 / -1; font-size: 18px; }
body.portrait .lcpips i { width: 13px; height: 13px; }
body.portrait .dl-dock .dl-names { flex-wrap: wrap; }
body.portrait .dl-leader { height: 96px; padding: 8px 16px 8px 8px; border-radius: 16px; flex: 1 1 100%; min-width: 0; }
body.portrait .dl-la { width: 78px; height: 78px; border-radius: 12px; }
body.portrait .dl-lt small { font-size: 15px; } body.portrait .dl-lt b { font-size: 28px; }
body.portrait .dl-leader .lci { width: 24px; height: 24px; }
body.portrait .dl-lgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-height: 62vh; }
body.portrait .dl-lopt { grid-template-columns: 84px 1fr; padding: 14px; border-radius: 18px; column-gap: 16px; }
body.portrait .dl-lopt .dl-la { width: 84px; height: 84px; }
body.portrait .dl-lopt b { font-size: 28px; } body.portrait .dl-lopt em { font-size: 20px; }
body.portrait #deckbuilder .drow .dr-off { right: 78px; font-size: 16px; padding: 5px 10px; }
body.portrait .dnote .dl-fix { font-size: 24px; padding: 14px 22px; } body.portrait .dl-fix .lci { width: 24px; height: 24px; }
body.portrait .dl-menu em.fixme { font-size: 18px; padding: 4px 10px; }
body.portrait .cf-p .cf-lead { height: 96px; padding: 0 12px 0 18px; border-radius: 18px; }
body.portrait .cf-p .cf-lead select { font-size: 24px; max-width: 220px; }
/* leaders (2026-10-04): a Leader you haven't found yet. Tap to read about it; the detail panel points to its packs. */
#select .leaderPick.locked .lc { filter: grayscale(.85) brightness(.55); }
#select .leaderPick.locked.sel .lc { filter: grayscale(.5) brightness(.75); }
#select .leaderPick .lp-lock { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 86%; padding: 8px 6px; border-radius: 12px; background: rgba(10, 6, 22, .82); border: 1px solid rgba(255, 220, 150, .35); color: #ffe7a8; font: 800 11px/1.2 var(--font-ui); letter-spacing: .04em; text-align: center; pointer-events: none; }
#select .leaderPick .lp-lock .lci { width: 18px; height: 18px; }
body.mobile #select .leaderPick .lp-lock, body.portrait #select .leaderPick .lp-lock { font-size: 16px; } body.mobile #select .leaderPick .lp-lock .lci, body.portrait #select .leaderPick .lp-lock .lci { width: 26px; height: 26px; }
#select .detail .dt-locknote { margin: 6px 0 2px; color: #ffe7a8; font-size: 14px; line-height: 1.35; } #select .detail .dt-locknote .lci { width: 16px; height: 16px; vertical-align: -3px; }
body.mobile #select .detail .dt-locknote, body.portrait #select .detail .dt-locknote { font-size: 20px; }
.dl-lopt.locked { opacity: .55; } .dl-lopt.locked .dl-la { filter: grayscale(.85); }
.dl-lopt em.lk { color: #ffe7a8; } .dl-lopt em.lk .lci { width: 12px; height: 12px; vertical-align: -2px; }
/* leaders: the no-WebGL pack reveal of a Leader find shows no Full Art stamp or foil */
#opening .pk-ld-card .fa-stamp { display: none; }
#opening .pk-ld-card { filter: none; }
body.portrait #select:has(.lgroup) .leaders { padding-top: 6px; }
