/* The front page — a research portal, not a hallway. */

.hm-hero{
  position:relative; overflow:clip;
  background:linear-gradient(180deg,var(--bg2),var(--bg));
  border-bottom:1px solid var(--line);
}
.hm-hero::before{
  content:''; position:absolute; inset:-40% -20% auto;
  height:130%; pointer-events:none;
  background:radial-gradient(50% 60% at 70% 20%, rgba(255,210,30,.07), transparent 70%);
}
.hm-heroin{
  max-width:1160px; margin:0 auto; padding:clamp(40px,7vw,72px) var(--sp-4) clamp(30px,5vw,52px);
  display:flex; align-items:center; gap:clamp(20px,4vw,52px); position:relative;
}
.hm-crest{ flex:none; width:clamp(120px,17vw,190px); height:auto; filter:drop-shadow(0 14px 34px rgba(0,0,0,.55)) }
.hm-heroid{ min-width:0 }
.hm-kicker{
  font-size:var(--fs-2); font-weight:700; letter-spacing:.2em; text-transform:uppercase;
  color:var(--turf-ink); margin-bottom:var(--sp-2);
}
.hm-title{
  font-family:var(--disp); font-size:clamp(36px,7vw,68px); line-height:.92;
  text-transform:uppercase; color:var(--chalk);
}
.hm-title em{ font-style:normal; color:var(--yellow) }
.hm-sub{ font-size:var(--fs-5); color:var(--muted); margin-top:var(--sp-3); max-width:56ch; line-height:1.65 }

.hm-ctas{ display:flex; align-items:center; gap:var(--sp-3); flex-wrap:wrap; margin-top:var(--sp-5) }
.hm-cta{
  display:inline-flex; align-items:center; gap:9px;
  font-size:var(--fs-4); font-weight:750; letter-spacing:.03em;
  padding:12px 22px; border-radius:99px;
  background:var(--yellow); color:#12170f;
  transition:transform var(--t-1) var(--ease), box-shadow var(--t-1) var(--ease);
}
.hm-cta:hover{ transform:translateY(-1px); box-shadow:0 8px 22px -8px rgba(255,210,30,.5) }
.hm-cta:focus-visible{ outline:2px solid var(--yellow); outline-offset:3px }
.hm-cta.ghost{
  background:var(--panel2); color:var(--chalk); border:1px solid var(--line2);
}
.hm-count{
  font-size:var(--fs-3); font-weight:650; color:var(--yellow);
  border:1px solid rgba(255,210,30,.34); border-radius:99px; padding:7px 15px;
  background:var(--yellow-dim); font-variant-numeric:tabular-nums;
  transition:border-color var(--t-1) var(--ease);
}
.hm-count:hover{ border-color:rgba(255,210,30,.6) }
.hm-count:focus-visible{ outline:2px solid var(--yellow); outline-offset:3px }

/* draft-eve: home.js stamps data-draft="soon" on the hero inside 72h */
.hm-hero[data-draft="soon"] .hm-count{
  font-size:var(--fs-5); padding:10px 20px; border-color:rgba(255,210,30,.55);
}
.hm-hero[data-draft="soon"] .hm-cta[href="/draft"]{
  font-size:var(--fs-5); padding:14px 26px;
}
@media (prefers-reduced-motion:no-preference){
  .hm-hero[data-draft="soon"] .hm-cta[href="/draft"]{
    animation:hmDraftPulse 2.2s var(--ease) infinite;
  }
}
@keyframes hmDraftPulse{
  0%,100%{ box-shadow:0 0 0 0 rgba(255,210,30,.45) }
  70%{ box-shadow:0 0 0 14px rgba(255,210,30,0) }
}

/* ------------------------------------------------------------------ tools */

.hm-wrap{ max-width:1160px; margin:0 auto; padding:0 var(--sp-4) }
.hm-h2{
  font-family:var(--disp); font-size:var(--fs-9); line-height:var(--lh-disp);
  text-transform:uppercase; margin:clamp(34px,5vw,54px) 0 var(--sp-4);
}
.hm-h2 a{ font-family:var(--body); font-size:var(--fs-3); font-weight:650;
  color:var(--turf-ink); margin-left:var(--sp-3); letter-spacing:0; text-transform:none }
.hm-h2 a:hover{ color:var(--chalk) }

.hm-tools{
  display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:var(--sp-3); list-style:none;
}
.hm-tool a{
  display:flex; flex-direction:column; gap:5px; height:100%;
  background:var(--panel); border:1px solid var(--line); border-radius:var(--r-sm);
  padding:var(--sp-4); box-shadow:var(--sh-1);
  transition:border-color var(--t-1) var(--ease), transform var(--t-1) var(--ease);
}
.hm-tool a:hover{ border-color:rgba(255,210,30,.4); transform:translateY(-2px) }
.hm-tool a:focus-visible{ outline:2px solid var(--yellow); outline-offset:2px }
.hm-tool b{ font-size:var(--fs-6); font-weight:700; color:var(--chalk) }
.hm-tool b i{ font-style:normal; font-size:12px }
.hm-tool span{ font-size:var(--fs-3); color:var(--faint); line-height:1.55 }
.hm-tool .hm-tag{
  align-self:flex-start; font-size:var(--fs-1); font-weight:800; letter-spacing:.12em;
  text-transform:uppercase; color:var(--turf-ink); margin-bottom:2px;
}
.hm-tool.hot .hm-tag{ color:var(--yellow) }
.hm-tool.hot a{ border-color:rgba(255,210,30,.3) }

/* ------------------------------------------------------------ live strips */

.hm-strips{
  display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);
  gap:var(--sp-5); align-items:start; margin-top:var(--sp-2);
}
.hm-card{
  background:var(--panel); border:1px solid var(--line); border-radius:var(--r);
  padding:var(--sp-5); box-shadow:var(--sh-2); min-width:0;
}
.hm-card h3{
  font-family:var(--disp); font-size:var(--fs-7); line-height:var(--lh-disp);
  text-transform:uppercase; margin-bottom:var(--sp-3);
}
.hm-card h3 a{ font-family:var(--body); font-size:var(--fs-2); font-weight:650;
  color:var(--turf-ink); margin-left:var(--sp-2); text-transform:none }
.hm-card h3 a:hover{ color:var(--chalk) }
.hm-card h3 .hm-h3note{ font-family:var(--body); font-size:var(--fs-2); font-weight:650;
  color:var(--faint); margin-left:var(--sp-2); text-transform:none; letter-spacing:0 }
.hm-card h3 .hm-h3note:empty{ display:none }

.hm-news{ list-style:none }
.hm-news li{ border-top:1px solid var(--line) }
.hm-news li:first-child{ border-top:0 }
.hm-news a, .hm-news li > b{ display:flex; align-items:baseline; gap:var(--sp-3); padding:10px 0 }
.hm-news b{ flex:1; font-size:13px; line-height:1.5; font-weight:600; color:var(--chalk) }
.hm-news a:hover b{ color:var(--yellow) }
.hm-news a:focus-visible{ outline:2px solid var(--yellow); outline-offset:2px; border-radius:var(--r-xs) }
.hm-news span{ flex:none; font-size:11px; color:var(--faint) }
.hm-none{ font-size:var(--fs-3); color:var(--faint); padding:var(--sp-3) 0 }
.hm-none a{ color:var(--turf-ink) }

.hm-spot{ margin-bottom:var(--sp-3) }
.hm-spot > span{
  display:block; font-size:var(--fs-1); font-weight:800; letter-spacing:.13em;
  text-transform:uppercase; color:var(--faint); margin-bottom:6px;
}
.hm-spot a{
  display:inline-flex; align-items:center; gap:7px; margin:0 8px 6px 0;
  background:var(--panel2); border:1px solid var(--line); border-radius:99px;
  padding:5px 12px 5px 6px; transition:border-color var(--t-1) var(--ease);
}
.hm-spot a:hover{ border-color:rgba(255,210,30,.4) }
.hm-spot a:focus-visible{ outline:2px solid var(--yellow); outline-offset:2px }
.hm-spot img{ width:22px; height:22px; object-fit:contain }
.hm-spot b{ font-size:var(--fs-3); font-weight:750 }
.hm-spot em{ font-style:normal; font-size:var(--fs-2); color:var(--faint);
  font-variant-numeric:tabular-nums }

/* -------------------------------------------------------------- champions */

.hm-champs{ margin:clamp(36px,6vw,60px) 0 clamp(44px,7vw,70px) }
.hm-rail{
  display:grid; grid-template-columns:repeat(5,minmax(0,1fr));
  gap:var(--sp-3); list-style:none; align-items:start;
}
.hm-bnr{ text-align:center }
.hm-bnr img{
  width:100%; max-width:150px; height:auto;
  filter:drop-shadow(0 10px 22px rgba(0,0,0,.5));
  transition:transform var(--t-2) var(--ease);
}
.hm-bnr:hover img{ transform:translateY(-4px) }
.hm-bnr.reign img{ filter:drop-shadow(0 10px 26px rgba(255,210,30,.28)) }
.hm-bnr b{ display:block; font-size:var(--fs-3); font-weight:700; margin-top:var(--sp-2) }
.hm-bnr span{ display:block; font-size:var(--fs-2); color:var(--faint) }

/* ----------------------------------------------------------------- footer */

.hm-foot{
  border-top:1px solid var(--line); padding:var(--sp-5) 0 var(--sp-7);
  font-size:var(--fs-2); color:var(--faint); text-align:center;
}

@media (max-width:880px){
  .hm-strips{ grid-template-columns:minmax(0,1fr) }
  .hm-heroin{ flex-direction:column; text-align:center }
  .hm-sub{ margin-inline:auto }
  .hm-ctas{ justify-content:center }
  .hm-rail{ grid-template-columns:repeat(auto-fit,minmax(96px,1fr)) }
}

/* ── the order strip: round 1, ten seats, linear ─────────────────────────── */

.hm-order{ margin-top:var(--sp-2) }
.hm-oslots{
  list-style:none; display:grid;
  grid-auto-flow:column; grid-auto-columns:minmax(108px,1fr);
  gap:var(--sp-2); overflow-x:auto; padding-bottom:var(--sp-2);
}
.hm-oslot{
  position:relative;
  background:var(--panel); border:1px solid var(--line); border-radius:var(--r-sm);
  padding:var(--sp-3); min-width:0; box-shadow:var(--sh-1);
}
.hm-opick{
  display:block; font-family:var(--disp); font-size:var(--fs-6);
  line-height:var(--lh-disp); color:var(--faint);
}
.hm-oslot b{
  display:block; font-size:var(--fs-3); font-weight:700; color:var(--chalk);
  margin-top:4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.hm-oowner{
  display:block; font-size:var(--fs-2); color:var(--faint); margin-top:2px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
/* .me is the viewer's own slot (home.js, off MOD.nav.me) — never a fixed team */
.hm-oslot.me{ border-color:rgba(255,210,30,.45); background:var(--yellow-dim) }
.hm-oslot.me .hm-opick{ color:var(--yellow) }
.hm-oyou{
  position:absolute; top:8px; right:8px; font-style:normal;
  font-size:var(--fs-1); font-weight:800; letter-spacing:.12em; text-transform:uppercase;
  color:#12170f; background:var(--yellow); border-radius:99px; padding:2px 7px;
}

/* ── the haul: round 1, one row per team, once the draft is done ─────────── */

.hm-haul{
  list-style:none; display:grid;
  grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:var(--sp-2);
}
.hm-hrow{
  position:relative; display:grid; align-items:center;
  grid-template-columns:28px 34px minmax(0,1fr) minmax(0,1.1fr); gap:var(--sp-3);
  background:var(--panel); border:1px solid var(--line); border-radius:var(--r-sm);
  padding:10px var(--sp-3); min-width:0; box-shadow:var(--sh-1);
}
.hm-hpick{
  font-family:var(--disp); font-size:var(--fs-6); line-height:var(--lh-disp);
  color:var(--faint); text-align:center; font-variant-numeric:tabular-nums;
}
.hm-hrow:first-child .hm-hpick{ color:var(--yellow) }
.hm-hcrest{
  width:34px; height:34px; border-radius:8px; object-fit:cover; display:block;
  background:var(--raise); box-shadow:inset 0 0 0 1px rgba(255,255,255,.07);
}
span.hm-hcrest.ph{
  display:grid; place-items:center; font-family:var(--disp); font-size:11px;
  color:var(--muted); letter-spacing:.02em;
}
.hm-hteam, .hm-hpl{ display:flex; flex-direction:column; min-width:0; line-height:1.3 }
.hm-hteam b{ font-size:var(--fs-3); font-weight:700; color:var(--chalk);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.hm-hteam span{ font-size:var(--fs-2); color:var(--faint); margin-top:2px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.hm-hpl b{ font-size:var(--fs-4); font-weight:700; color:var(--yellow);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.hm-hpl i{ font-style:normal; font-size:var(--fs-1); font-weight:800; letter-spacing:.12em;
  text-transform:uppercase; color:var(--turf-ink); margin-top:2px }
.hm-hpl .hm-hunk{ color:var(--faint); font-weight:600 }
/* .me is the viewer's own team (home.js, off MOD.nav.me) — never a fixed team */
.hm-hrow.me{ border-color:rgba(255,210,30,.45); background:var(--yellow-dim) }
.hm-hrow.me .hm-hpick{ color:var(--yellow) }
.hm-hrow.me .hm-oyou{ top:-7px; right:10px }
@media (max-width:480px){
  .hm-haul{ grid-template-columns:minmax(0,1fr) }
  .hm-hrow{ grid-template-columns:24px 30px minmax(0,1fr) minmax(0,1fr); gap:var(--sp-2) }
  .hm-hcrest{ width:30px; height:30px }
}

/* ── the top of the board ────────────────────────────────────────────────── */

.hm-topboard{ margin-top:var(--sp-2) }
.hm-top{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(225px,1fr));
  gap:var(--sp-3);
}
.hm-tcol{
  background:var(--panel); border:1px solid var(--line); border-radius:var(--r-sm);
  padding:var(--sp-3) var(--sp-3) var(--sp-2); box-shadow:var(--sh-1); min-width:0;
}
.hm-tcol h4{
  display:flex; align-items:center; gap:8px;
  font-size:var(--fs-2); font-weight:800; letter-spacing:.14em; text-transform:uppercase;
  color:var(--muted); padding:2px 4px 8px; border-bottom:1px solid var(--line);
  margin-bottom:4px;
}
.hm-tdot{ width:8px; height:8px; border-radius:50%; flex:none }
.hm-td-qb{ background:#f2908c } .hm-td-rb{ background:var(--turf-ink) }
.hm-td-wr{ background:#8ccdf0 } .hm-td-te{ background:#eec277 }

.hm-trow{
  display:flex; align-items:center; gap:9px; width:100%; text-align:left;
  padding:6px 4px; border-radius:var(--r-xs); min-width:0;
  transition:background var(--t-1) var(--ease);
}
.hm-trow:hover{ background:var(--panel2) }
.hm-trow:focus-visible{ outline:2px solid var(--yellow); outline-offset:-2px }
.hm-trk{
  flex:none; width:14px; text-align:center; font-size:var(--fs-2); font-weight:800;
  color:var(--faint); font-variant-numeric:tabular-nums;
}
.hm-trow:first-of-type .hm-trk{ color:var(--yellow) }
.hm-tshot{
  flex:none; width:38px; height:28px; object-fit:cover; object-position:top;
  border-radius:6px; background:var(--raise);
}
.hm-tnm{ display:flex; flex-direction:column; min-width:0; flex:1; line-height:1.3 }
.hm-tnm b{ font-size:var(--fs-3); font-weight:650; color:var(--chalk);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.hm-tnm span{ font-size:var(--fs-1); color:var(--faint) }
.hm-tpw{
  flex:none; font-family:var(--disp); font-size:var(--fs-6); line-height:var(--lh-disp);
  color:var(--yellow); font-variant-numeric:tabular-nums;
}
.hm-topfine{ font-size:var(--fs-2); color:var(--faint); margin-top:var(--sp-3) }
.hm-topfine b{ color:var(--muted) }
.hm-topcached{ grid-column:1/-1; font-size:var(--fs-2); color:var(--faint) }

/* ── the live wire feed, riding the hero ─────────────────────────────────── */

.hm-feed{
  flex:0 1 350px; min-width:280px; align-self:stretch;
  display:flex; flex-direction:column;
  background:rgba(13,19,15,.72); backdrop-filter:blur(8px);
  border:1px solid var(--line2); border-radius:var(--r);
  box-shadow:var(--sh-3); overflow:hidden;
}
.hm-feedhead{
  display:flex; align-items:baseline; gap:8px;
  padding:12px 16px; border-bottom:1px solid var(--line);
}
.hm-feedhead b{
  font-family:var(--disp); font-size:var(--fs-6); text-transform:uppercase;
  letter-spacing:.05em; color:var(--chalk);
}
.hm-feedsub{ font-size:var(--fs-1); color:var(--faint); letter-spacing:.12em;
  text-transform:uppercase }
.hm-feedhead a{ margin-left:auto; font-size:var(--fs-2); font-weight:650;
  color:var(--turf-ink) }
.hm-feedhead a:hover{ color:var(--chalk) }
.hm-livedot{
  width:8px; height:8px; border-radius:50%; background:var(--red);
  box-shadow:0 0 0 3px rgba(232,84,79,.25); align-self:center;
}
@media (prefers-reduced-motion:no-preference){
  .hm-livedot{ animation:hmLive 2s var(--ease) infinite }
}
@keyframes hmLive{ 0%,100%{ box-shadow:0 0 0 3px rgba(232,84,79,.25) }
  50%{ box-shadow:0 0 0 7px rgba(232,84,79,0) } }

.hm-feedview{
  position:relative; flex:1; min-height:230px; max-height:300px; overflow:hidden;
  -webkit-mask-image:linear-gradient(180deg, transparent, #000 9%, #000 91%, transparent);
  mask-image:linear-gradient(180deg, transparent, #000 9%, #000 91%, transparent);
}
.hm-feedlist{ list-style:none; padding:8px 16px; margin:0 }
.hm-feedlist li{ padding:9px 0; border-bottom:1px solid var(--line) }
.hm-feedlist a{ display:block }
.hm-feedlist b{
  display:block; font-size:12.5px; line-height:1.45; font-weight:600; color:var(--chalk);
}
.hm-feedlist a:hover b{ color:var(--yellow) }
.hm-feedlist a:focus-visible{ outline:2px solid var(--yellow); outline-offset:2px;
  border-radius:var(--r-xs) }
.hm-feedlist span{ font-size:10px; color:var(--faint) }

/* the roll: slide exactly half the (doubled) list, then wrap — seamless */
@media (prefers-reduced-motion:no-preference){
  .hm-feedlist.roll{
    animation:hmRoll calc(var(--hm-ticks, 10) * 3.4s) linear infinite;
  }
  .hm-feedview:hover .hm-feedlist.roll,
  .hm-feedview:focus-within .hm-feedlist.roll{ animation-play-state:paused }
}
@keyframes hmRoll{ to{ transform:translateY(-50%) } }
@media (prefers-reduced-motion:reduce){
  .hm-feedview{ overflow-y:auto }
  .hm-feedlist.roll li[data-dup]{ display:none }
}

.hm-strips1{ grid-template-columns:minmax(0,1fr) }

/* the feed only stacks when .hm-heroin itself stacks — same 880px breakpoint
   (kept below the base .hm-feed rules so the override wins the cascade) */
@media (max-width:880px){
  .hm-feed{ flex:1 1 100%; max-width:560px; margin-inline:auto }
  .hm-feedview{ min-height:170px; max-height:200px }
}
