/* 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: one row of 14 (landscape) ---- */
#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; }
