/* Top band — mobile-first. Below 901px the three columns stack and replace
   the old .stats-band. ≥901px: Your Day and Community Milestone shrink to
   their content, and the take feed rises under them beside Tonight's Lock.
   Do not change type sizes elsewhere. */

.stats-band { display: none; }

/* On small screens the left/right wrappers flatten so the stack is
   Your Day / Milestone / Tonight's Lock / hero / feed / upcoming / side. */
.home-stage { display: flex; flex-direction: column; }
.home-left, .home-right { display: contents; }
.home-stage .dash-band { order: 1; }
.home-stage .dash-lock { order: 2; }
.home-stage .hero { order: 3; }
.home-stage .feed,
.home-stage .take-machine { order: 4; }
.home-stage .col-sb { order: 5; }
.home-stage .col-side { order: 6; }

.dash-band {
  display: block;
  width: 100%;
  margin: -1.2rem 0 0;
  min-width: 0;
}

.dash-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: #1b2128;
  border: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
  border-bottom: 0;
  overflow: hidden;
}
/* Lock stays visually joined to the pair on small screens, then becomes
   its own card at the desktop breakpoint. */
.dash-lock {
  background: #1b2128;
  border: 1px solid var(--line);
  border-radius: 0 0 14px 14px;
  margin: 0 0 .9rem;
  overflow: hidden;
}
.home-stage .feed,
.home-stage .take-machine,
.home-stage .col-sb { margin-bottom: 1.1rem; }

@media (max-width: 600px) {
  .dash-band { margin: -.8rem 0 0; }
  .dash-lock { margin-bottom: .8rem; }
}
.dash-col {
  min-width: 0;
  padding: .7rem .75rem .65rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.dash-col + .dash-col { border-top: 1px solid var(--line); }

.dash-k {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--muted);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.dash-k-line {
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
  min-width: .6rem;
}

/* ----- YOUR DAY ----- */
.dash-hello {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 0;
}
.dash-hello .av, .dash-hello .av.md { width: 44px; height: 44px; font-size: .9rem; flex: none; }
.dash-hello .av-guest { background: #14171c; }
.dash-hello .av-guest .av-photo { object-fit: contain; }
.dash-hello-t { min-width: 0; flex: 1; }
.dash-hi {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -.03em;
  color: var(--white);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-sub {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: nowrap;
  margin-top: .22rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.dash-sub > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: none;
}
.dash-sub > span:only-child { flex: 1 1 auto; }
.dash-sub .founder-chip { flex: none; }
.dash-pace {
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1 1 auto;
}
.dash-pace::before { content: "·"; color: var(--muted); margin-right: .35rem; }
.dash-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
}
.dash-tile {
  background: #14181c;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .45rem .3rem .42rem;
  text-align: center;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.dash-tile-n {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0;
}
.dash-tile-n .dash-w,
.dash-tile-n .dash-l,
.dash-tile-n .dash-push { color: var(--green); font-weight: 800; }
.dash-tile-n .dash-note { color: var(--white); font-weight: 700; font-size: .48em; letter-spacing: 0; margin-left: .22rem; }
.dash-tile-n .dash-empty { color: var(--muted); }
.dash-tile-l {
  display: block;
  margin-top: .28rem;
  color: var(--muted);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
  line-height: 1.15;
}
.dash-last {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-width: 0;
  flex: none;
  margin-top: 0;
}
.dash-last-lab {
  color: var(--white);
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: none;
}
.dash-last-lab .muted { font-weight: 700; color: var(--muted); }
.dash-dots { display: flex; gap: .32rem; flex: none; }
.dash-dot {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 800; line-height: 1;
  border: 1.5px solid var(--line); color: var(--muted);
  background: transparent;
}
.dash-dot.W { color: var(--green); border-color: var(--green); }
.dash-dot.L { color: var(--red); border-color: var(--red); }
.dash-dot.P { color: #f5c542; border-color: #f5c542; }
.dash-cta { margin-top: 0; }
.dash-cta .btn { width: 100%; justify-content: center; }

/* ----- COMMUNITY ----- */
.dash-comm .dash-metrics { flex: none; }
.dash-comm .dash-next { margin-top: 0; }
.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .35rem;
  text-align: center;
}
.dash-metric { min-width: 0; }
.dash-metric .stat-n, .dash-n {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
  letter-spacing: -.04em;
  line-height: .95;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dash-ml {
  display: block;
  margin-top: .32rem;
  color: var(--muted);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.2;
}
.dash-ml span { display: block; white-space: nowrap; overflow: hidden; }
.dash-next {
  background: #14181c;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .55rem .65rem .5rem;
  margin-top: 0;
  min-width: 0;
}
.dash-next-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .6rem;
  min-width: 0;
}
.dash-next-lab {
  font-size: .78rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.dash-next-lab b { color: var(--green); font-weight: 800; }
.dash-next-frac {
  font-family: var(--display);
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: -.02em;
  color: var(--white);
  white-space: nowrap;
  flex: none;
  font-variant-numeric: tabular-nums;
}
.dash-next-frac span { color: var(--muted); font-weight: 700; }
.dash-bar {
  height: 7px;
  border-radius: 99px;
  background: #0d1013;
  border: 1px solid var(--line);
  overflow: hidden;
  margin: .4rem 0 .35rem;
}
.dash-bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--green);
  border-radius: 99px;
}
.dash-next-foot {
  font-size: .7rem;
  line-height: 1.3;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-next-foot b { color: var(--green); font-weight: 800; }

/* ----- TONIGHT'S LOCK ----- */
.dash-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .45rem;
  min-width: 0;
}
.dash-side {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
}
.dash-side.is-home { justify-content: flex-end; text-align: right; }
.dash-side.is-home { flex-direction: row; }
.dash-logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #0f1215;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  overflow: hidden;
  color: #fff;
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: -.02em;
  text-shadow: 0 1px 1px rgba(0,0,0,.55);
}
.dash-logo.tlogo-on-gold { background: #FFCD00; border-color: rgba(0,0,0,.18); }
.dash-logo .tlogo-wrap, .dash-logo .tlogo { width: 36px; height: 36px; }
.dash-logo .tlogo.md { width: 36px; height: 36px; font-size: .65rem; }
/* Rams only, Tonight's Lock header tile: keep the navy ram, add a 1px white
   outline so it reads on the dark #0f1215 box. Does not apply on the feed,
   game cards, chat, or other lock-card teams. */
.dash-lock .dash-logo.is-lar-outline .tlogo.img img {
  filter: drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff);
}
/* Rams only, Tonight's Lock desk pick tiles (YOU and any other Rams pick on
   this desk). Same 1px white outline as the Capitals pred-box treatment,
   plus the existing soft shadow. Feed .pred-box marks stay unchanged. */
.dash-lock .pred-box[data-tid="NFL_LAR"] .pred-box-logo {
  filter: drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff) drop-shadow(0 2px 4px rgba(0,0,0,.35));
}
.dash-nm { min-width: 0; overflow: hidden; }
.dash-nick {
  display: block;
  color: var(--white);
  font-family: var(--display);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: -.02em;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-role {
  display: block;
  margin-top: .12rem;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.dash-at {
  font-family: var(--display);
  font-weight: 800;
  color: var(--muted);
  font-size: .95rem;
  flex: none;
}
.dash-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: .4rem;
  min-width: 0;
  overflow: hidden;
}
.dash-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 99px;
  padding: .22rem .65rem;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  background: #14181c;
  border: 1px solid var(--line);
  color: var(--text);
}
.dash-chip.lock {
  color: #f5c542;
  border-color: #f5c542;
  background: rgba(245, 197, 66, .08);
}
.dash-go {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0;
  border: 0;
  border-radius: 10px;
  padding: .62rem .7rem;
  background: var(--green);
  color: #07240f;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -.02em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.dash-go:hover { background: #2bff7a; color: #07240f; }
.dash-cap {
  text-align: center;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.3;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-empty-col {
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.4;
}

/* Number intro: reserve final width, count up, no type-size change */
.dash-count {
  position: relative;
  display: inline-block;
  font: inherit;
  font-variant-numeric: tabular-nums;
  line-height: inherit;
  vertical-align: baseline;
  color: inherit;
}
.dash-count-sizer {
  visibility: hidden;
  font: inherit;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dash-count-val {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  font: inherit;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: center;
  color: inherit;
}
.dash-bar > i[data-bar-to] { width: 0; }
@media (prefers-reduced-motion: reduce) {
  .dash-bar > i { transition: none !important; }
}


/* Community pick desk (replaces the lock CTA after you've predicted).
   The blocks themselves are the feed's .pred-box — do not restyle them. */
.dash-desk {
  display: flex;
  flex-direction: column;
  gap: .28rem;
  min-width: 0;
  margin-top: 0;
  overflow: hidden;
}
.dash-desk-viewport {
  min-width: 0;
  width: 100%;
  overflow: hidden;
}
.dash-desk-row {
  display: block;
  min-width: 0;
  overflow: hidden;
  width: 100%;
  padding: 2px 0;
  box-sizing: border-box;
}
.dash-desk-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-width: 0;
}
.dash-desk-set {
  --desk-gap: 2px;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: center;
  gap: var(--desk-gap);
  flex: 0 0 auto;
  min-width: auto;
}
.dash-desk.is-crawling .dash-desk-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}
.dash-desk.is-crawling .dash-desk-track {
  justify-content: flex-start;
  width: max-content;
  max-width: none;
  flex-shrink: 0;
  will-change: transform;
}
.dash-desk.is-crawling .dash-desk-set {
  justify-content: flex-start;
  min-width: max-content;
  flex: 0 0 auto;
  margin-right: var(--desk-gap);
  padding-right: 0;
}
@media (prefers-reduced-motion: reduce) {
  .dash-desk.is-crawling .dash-desk-viewport {
    -webkit-mask-image: none;
    mask-image: none;
  }
}
.dash-desk-item {
  flex: none;
  width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .18rem;
  min-width: 0;
}
.dash-desk-name {
  display: block;
  width: 100%;
  max-width: 100%;
  font-size: .52rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.dash-desk-item.is-you .dash-desk-name { color: var(--green); }
.dash-desk-item.is-you .pred-box {
  box-shadow: 0 0 0 2px #00e054;
}
.dash-desk-more,
.dash-desk-empty {
  display: block;
  text-align: center;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-desk-more:hover { color: var(--green); }
.dash-desk-more[hidden] { display: none; }

/* ----- Desktop (≥901px): short first two panels, feed rises beside Lock ----- */
@media (min-width: 901px) {
  .home-stage {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    column-gap: .65rem;
    align-items: stretch;
    margin-top: -0.35rem;
  }
  .home-left, .home-right {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    min-width: 0;
  }
  .home-stage .dash-band,
  .home-stage .dash-lock,
  .home-stage .hero,
  .home-stage .feed,
  .home-stage .take-machine,
  .home-stage .col-sb,
  .home-stage .col-side {
    order: 0;
    margin: 0;
  }
  .home-stage .hero { margin-bottom: 0; }

  .dash-band { margin: 0; }
  .dash-card, .dash-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 14px;
    border-bottom: 1px solid var(--line);
  }
  .dash-lock {
    border-radius: 14px;
    margin: 0;
  }
  .dash-col { padding: 1rem 1.1rem 1.05rem; gap: .72rem; }
  .dash-col + .dash-col { border-left: 1px solid var(--line); border-top: 0; }
  /* Pack Your Day and Milestone to their content — do not stretch to Lock. */
  .dash-last { flex: none; margin-top: 0; }
  .dash-comm .dash-metrics { flex: none; align-content: start; }
  .dash-next { padding: .7rem .75rem .65rem; margin-top: 0; }
  .dash-bar { margin: .45rem 0 .4rem; }
  .dash-go { padding: .72rem .8rem; }
  /* Lock internals stay put; auto margins only apply if the column has leftover space. */
  .dash-lock .dash-cta,
  .dash-lock .dash-go,
  .dash-lock .dash-desk { margin-top: auto; }
  .dash-next-foot, .dash-cap { white-space: normal; overflow: visible; text-overflow: unset; }
}
