/* 2K13 Association: black menus, gold accents, big tiles, condensed display type. */
:root {
  --bg: #000000;
  --bg2: #0c0c0d;
  --bg3: #141416;
  --bg4: #1c1c1f;
  --line: #222225;
  --line2: #34343a;
  --gold: #d4af37;
  --gold2: #f3cf5e;
  --gold-dim: #7d6620;
  --text: #ffffff;
  --text2: #d4d4d9;
  --muted: #8c8c95;
  --win: #f3cf5e;
  --loss: #d0605c;
  --display: 'Oswald', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --bar-h: 0px;
  --top-h: 60px;
  --gutter: 32px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(1400px 420px at 50% -120px, rgba(212, 175, 55, .09), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
  padding-bottom: calc(var(--mb-h, var(--bar-h)) + 24px);
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: var(--gold2); text-decoration: none; }
a:hover { color: #fff; }
code { font-family: ui-monospace, Menlo, monospace; font-size: .9em; color: var(--gold2); background: var(--bg3); padding: 1px 5px; border-radius: 3px; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
.muted { color: var(--muted); }
.win { color: var(--win); }
.loss { color: var(--loss); }
:focus-visible { outline: 2px solid var(--gold2); outline-offset: 2px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 30px;
  padding: 0 var(--gutter);
  height: var(--top-h);
  background: #000;
  border-bottom: 1px solid var(--line);
}
.topbar::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 15%, var(--gold2) 50%, var(--gold) 85%, transparent);
  opacity: .7;
}
.wordmark { display: flex; align-items: baseline; gap: 8px; font-family: var(--display); font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.wm-2k { color: var(--gold); font-size: 26px; background: linear-gradient(180deg, #fff1b0, var(--gold2) 40%, var(--gold)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wm-assoc { color: #fff; font-size: 19px; letter-spacing: .16em; }
.mainnav { display: flex; align-items: stretch; gap: 2px; flex: 1; min-width: 0; height: 100%; }
.mainnav > a, .navmore summary {
  display: flex; align-items: center;
  font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text2); padding: 0 14px; border-bottom: 3px solid transparent; white-space: nowrap; cursor: pointer;
}
.mainnav > a:hover, .navmore summary:hover { color: #fff; }
.mainnav > a.on, .navmore.on summary { color: #fff; border-bottom-color: var(--gold); }
.userchip a { display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 6px; border: 1px solid var(--line2); border-radius: 3px; background: var(--bg2); color: #fff; }
.userchip a:hover { border-color: var(--gold); color: #fff; }
.userchip span { display: flex; flex-direction: column; line-height: 1.1; }
.userchip b { font-family: var(--display); font-weight: 600; letter-spacing: .05em; font-size: 15px; }
.userchip small { color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.chip-dot { font-style: normal; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--gold); color: #111; font-family: var(--display); font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }

/* More menu */
.navmore { position: relative; display: flex; }
.navmore summary { list-style: none; }
.navmore summary::-webkit-details-marker { display: none; }
.navmore summary::after { content: ''; display: inline-block; margin-left: 7px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.navmore-list {
  position: fixed; left: 0; right: 0; top: var(--top-h); z-index: 45;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 4px 18px;
  max-height: calc(100vh - var(--top-h) - var(--mb-h, var(--bar-h, 56px))); max-height: calc(100dvh - var(--top-h) - var(--mb-h, var(--bar-h, 56px)));
  overflow-y: auto; overscroll-behavior: contain; padding: 14px max(var(--gutter), calc((100vw - 1200px) / 2)) 18px;
  background: #050505; border-bottom: 2px solid var(--gold); box-shadow: 0 24px 60px rgba(0, 0, 0, .85);
}
.nm-group { display: flex; flex-direction: column; min-width: 0; }
.nm-k { padding: 8px 10px 6px; font-family: var(--display); font-size: 12px; letter-spacing: .2em; color: var(--gold); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.navmore-list a { display: block; padding: 9px 10px; font-family: var(--display); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--text2); border-radius: 2px; }
.navmore-list a:hover { background: var(--bg3); color: #fff; }
.navmore-list a.on { color: var(--gold2); }
body.menu-open .next-fab, body.menu-open .nextbar { visibility: hidden; }

.banner { margin: 0; padding: 8px var(--gutter); background: #1a1508; color: var(--gold2); border-bottom: 1px solid #3a2f0e; font-size: 13px; }

.app { max-width: 1240px; margin: 0 auto; padding: 30px var(--gutter) 40px; outline: none; }
.loading { color: var(--muted); padding: 60px 0; text-align: center; font-family: var(--display); letter-spacing: .1em; }

/* ---------- section headers ---------- */
.sec-head { margin: 36px 0 16px; }
.app > .sec-head:first-child, .two-col .sec-head:first-child, .three-col section > .sec-head:first-child { margin-top: 0; }
.sec-head h2 {
  display: inline-block; margin: 0; padding-bottom: 8px; position: relative;
  font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.1;
}
.sec-head h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: var(--gold); }
.sec-sub { color: var(--muted); font-size: 15px; margin-top: 8px; }
.conf-label { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .22em; color: var(--gold); margin: 30px 0 12px; }
.note { border: 1px solid #3a2f0e; background: #120f05; color: var(--gold2); padding: 10px 14px; margin-bottom: 16px; font-size: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .1em; text-transform: uppercase;
  padding: 11px 20px; border: 1px solid var(--line2); background: var(--bg3); color: #fff; border-radius: 2px; cursor: pointer;
  transition: border-color .12s, background .12s, color .12s;
}
.btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold2); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn-gold { background: var(--gold); color: #000; border-color: var(--gold); }
.btn-gold:hover:not(:disabled) { background: var(--gold2); border-color: var(--gold2); color: #000; }
.btn-small { padding: 7px 12px; font-size: 13px; }
.btn-big { padding: 15px 26px; font-size: 17px; }
.btn-danger:hover:not(:disabled) { border-color: var(--loss); color: #ff9b9b; }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.row-btns.center { justify-content: center; }
.more { display: inline-block; margin-top: 10px; font-family: var(--display); font-size: 13px; letter-spacing: .12em; }

.badge { display: inline-block; font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: .08em; padding: 2px 6px; border-radius: 2px; vertical-align: middle; }
.badge-inj { background: #5a1616; color: #ffb4b4; border: 1px solid #8a2a2a; }
.badge-gold { background: var(--gold); color: #111; }
.badge-dim { background: var(--bg4); color: var(--text2); border: 1px solid var(--line2); }

/* ---------- logos and headshots ---------- */
.logo {
  --sz: 40px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: var(--sz); height: var(--sz); vertical-align: middle;
}
.logo img { width: 100%; height: 100%; object-fit: contain; }
.logo b { display: none; }
.logo.nologo { border-radius: 50%; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .15); }
.logo.nologo b { display: block; font-family: var(--display); font-weight: 700; color: #fff; font-size: calc(var(--sz) * .32); letter-spacing: .02em; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.hs { display: block; width: 100%; aspect-ratio: 260 / 190; object-fit: cover; object-position: center top; }

/* ---------- menu tiles (main menu, hub, league) ---------- */
.ic { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mtile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  min-height: 150px; padding: 20px 22px; overflow: hidden; min-width: 0;
  background: linear-gradient(180deg, #111113 0%, #070708 100%);
  border: 1px solid var(--line); color: #fff;
  transition: border-color .12s, background .12s, transform .12s;
}
a.mtile::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
a.mtile:hover, a.mtile:focus-visible { border-color: var(--gold); color: #fff; background: linear-gradient(180deg, #19170f 0%, #0a0906 100%); transform: translateY(-2px); outline: none; }
a.mtile:hover::after, a.mtile:focus-visible::after { transform: scaleX(1); }
.mt-ic { color: var(--gold); margin-bottom: auto; }
.mt-l { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: .06em; line-height: 1.05; text-transform: uppercase; }
.mt-s { font-family: var(--display); font-size: 13px; letter-spacing: .16em; color: var(--gold); text-transform: uppercase; }
.mtile.disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }
.mtile.mt-hot { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.mtile.mt-hot .mt-s { color: #000; background: var(--gold); padding: 1px 8px; align-self: flex-start; font-weight: 600; }
.tile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

/* main menu */
.mm { padding: 24px 0 10px; }
.mm-brand { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 18px; font-family: var(--display); font-weight: 700; line-height: .95; }
.mm-2k { font-size: clamp(64px, 10vw, 128px); background: linear-gradient(180deg, #fff6c8 0%, var(--gold2) 40%, var(--gold) 75%, #8f721b 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.mm-a { font-size: clamp(36px, 5.6vw, 72px); letter-spacing: .1em; color: #fff; }
.mm-k { font-family: var(--display); letter-spacing: .32em; color: var(--muted); font-size: 14px; margin: 12px 0 30px; }
.mm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 190px 190px; gap: 12px; }
.mm-grid .mt-hero { grid-column: span 2; grid-row: span 2; padding: 30px; border-color: var(--gold-dim);
  background: radial-gradient(520px 300px at 85% 15%, rgba(243, 207, 94, .2), transparent 70%), linear-gradient(180deg, #17140a 0%, #050505 100%); }
.mm-grid .mt-hero .ic { width: 60px; height: 60px; stroke-width: 1.3; }
.mm-grid .mt-hero .mt-l { font-size: clamp(34px, 4.2vw, 54px); color: var(--gold2); }
.mm-grid .mt-continue, .mm-grid .mt-challenge { grid-column: span 2; }
.mm-grid { grid-template-rows: 190px 190px auto; }
.mm-grid .mt-half { grid-column: span 2; min-height: 96px; }
.mt-team { display: flex; align-items: center; gap: 12px; letter-spacing: 0; text-transform: none; }
.mt-team > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.mt-team b { color: #fff; font-size: 18px; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.mt-team small { color: var(--text2); font-size: 14px; letter-spacing: .08em; font-family: var(--body); }

/* ---------- Association hub ---------- */
.hub-head {
  display: flex; align-items: center; gap: 26px; padding: 22px 26px; position: relative; overflow: hidden; margin-bottom: 14px;
  background: linear-gradient(100deg, color-mix(in srgb, var(--c1) 38%, #050505) 0%, #050505 62%);
  border: 1px solid var(--line); border-bottom: 3px solid var(--gold);
}
.hh-info { flex: 1; min-width: 0; }
.hh-k { font-family: var(--display); font-size: 13px; letter-spacing: .2em; color: var(--gold2); }
.hh-name { margin: 4px 0 10px; font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4vw, 46px); line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.hh-stats { display: flex; flex-wrap: wrap; gap: 8px 34px; }
.hh-stats div { display: flex; flex-direction: column; }
.hh-stats b { font-family: var(--display); font-size: 28px; font-weight: 600; line-height: 1.1; }
.hh-stats small { font-family: var(--display); font-size: 12px; letter-spacing: .16em; color: var(--muted); }
.hh-last { display: flex; flex-direction: column; align-items: center; padding: 12px 20px; background: rgba(0, 0, 0, .55); border: 1px solid var(--line2); color: #fff; flex: none; }
.hh-last:hover { border-color: var(--gold); color: #fff; }
.hh-last small { font-family: var(--display); font-size: 12px; letter-spacing: .16em; color: var(--muted); }
.hh-last b { font-family: var(--display); font-size: 28px; line-height: 1.15; }
.hh-last span { font-family: var(--display); letter-spacing: .08em; color: var(--text2); }

.hub-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(150px, auto); gap: 12px; }
.mt-play {
  grid-column: span 2; grid-row: span 2; justify-content: flex-start; gap: 14px; padding: 24px;
  border-color: var(--gold-dim);
  background: radial-gradient(520px 260px at 90% 0%, rgba(243, 207, 94, .16), transparent 70%), linear-gradient(180deg, #15130b 0%, #050505 100%);
}
.mt-play > .mt-l { font-size: 40px; color: var(--gold2); }
.play-next { display: flex; align-items: center; gap: 16px; color: #fff; padding: 12px 14px; background: rgba(0, 0, 0, .5); border: 1px solid var(--line2); }
a.play-next:hover { border-color: var(--gold); color: #fff; }
.play-next > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.play-next small { font-family: var(--display); font-size: 12px; letter-spacing: .16em; color: var(--muted); }
.play-next b { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: .04em; }
.sim-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sim-btn { min-height: 54px; font-size: 16px; }
.sim-btns .lv-watch { grid-column: 1 / -1; margin: 0; }
.sim-more { position: relative; }
.sim-more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 14px; letter-spacing: .14em; color: var(--text2); padding: 6px 0; }
.sim-more summary::-webkit-details-marker { display: none; }
.sim-more summary::after { content: ''; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.sim-more summary:hover { color: var(--gold2); }
.sim-more-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.sim-more-list .sim-btn { min-height: 44px; font-size: 13px; }
.play-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.play-note { display: flex; align-items: center; gap: 10px; font-family: var(--display); letter-spacing: .12em; color: var(--text2); }
.os-dots { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.os-dots li { flex: 1; height: 6px; background: var(--bg4); position: relative; }
.os-dots li.done { background: var(--gold-dim); }
.os-dots li.on { background: var(--gold); }
.os-dots span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ticker { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 10px 16px; background: var(--bg2); border: 1px solid var(--line); color: var(--text2); min-width: 0; }
.ticker:hover { border-color: var(--gold-dim); color: #fff; }
.ticker b { font-family: var(--display); letter-spacing: .18em; color: #000; background: var(--gold); padding: 2px 8px; flex: none; font-size: 13px; }
.ticker span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; font-size: 15px; }
.ticker i { font-style: normal; color: var(--gold-dim); margin: 0 12px; }
.pending { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px; margin-bottom: 14px; border: 1px solid var(--gold); background: #141005; color: var(--gold2); font-family: var(--display); letter-spacing: .08em; font-size: 16px; }
.pending b { font-size: 20px; }

/* ---------- team picker and team cards ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.team-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px;
  padding: 18px 10px 12px; cursor: pointer; min-width: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c1) 22%, #0a0a0b) 0%, #070708 75%);
  border: 1px solid var(--line); transition: border-color .12s, transform .12s;
}
.team-tile:hover { border-color: var(--gold-dim); transform: translateY(-2px); }
.team-tile.picked { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 24px rgba(212, 175, 55, .25); }
.team-tile .logo { margin-bottom: 8px; }
.tt-city { font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.tt-name { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.15; }
.tt-meta { font-size: 12px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-meta b { color: var(--gold2); font-family: var(--display); font-size: 14px; }
.tt-ovr { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 3px 4px 3px 10px; border: 1px solid var(--gold-dim); background: #000; }
.tt-ovr small { font-family: var(--display); font-size: 11px; letter-spacing: .16em; color: var(--muted); }
.tt-ovr b { font-family: var(--display); font-size: 17px; font-weight: 700; color: #000; background: var(--gold); padding: 0 7px; line-height: 1.4; }

.confirm { position: sticky; bottom: calc(var(--mb-h, var(--bar-h)) + 12px); margin-top: 24px; z-index: 5; }
.confirm-inner {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 20px; padding: 18px 20px;
  background: rgba(5, 5, 5, .97); border: 1px solid var(--gold-dim); border-top: 3px solid var(--gold); box-shadow: 0 12px 40px rgba(0, 0, 0, .8);
}
.confirm-team { display: flex; align-items: center; gap: 14px; flex: 1 1 260px; min-width: 0; }
.ct-k { font-family: var(--display); font-size: 13px; letter-spacing: .2em; color: var(--gold); }
.ct-t { font-family: var(--display); font-weight: 700; font-size: 26px; text-transform: uppercase; letter-spacing: .04em; line-height: 1.1; }
.field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 180px; min-width: 0; }
.field span { font-family: var(--display); font-size: 12px; letter-spacing: .2em; color: var(--muted); }
.field input, .field select, .rename input {
  width: 100%; padding: 10px 12px; background: #000; border: 1px solid var(--line2); color: #fff; font: inherit; border-radius: 2px;
}
.field input:focus, .field select:focus, .rename input:focus { border-color: var(--gold); outline: none; }
.confirm-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.team-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.team-card {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px; color: #fff; min-width: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c1) 26%, #0a0a0b) 0%, #0a0a0b 60%);
  border: 1px solid var(--line); border-left: 3px solid var(--c1); transition: border-color .12s;
}
.team-card:hover { color: #fff; border-color: var(--gold-dim); border-left-color: var(--gold); }
.team-card.mine { border-color: var(--gold-dim); border-left-color: var(--gold); }
.tc-name { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.15; }
.tc-city { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.tc-team { font-family: var(--display); font-weight: 600; font-size: 20px; text-transform: uppercase; letter-spacing: .04em; }
.tc-ovr { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.tc-ovr b { font-family: var(--display); font-size: 28px; color: var(--gold2); }
.tc-ovr small { font-family: var(--display); font-size: 10px; color: var(--muted); letter-spacing: .14em; margin-top: 3px; }

/* ---------- team page ---------- */
.team-hero {
  display: flex; align-items: center; gap: 28px; padding: 24px 28px; position: relative; overflow: hidden;
  background: linear-gradient(100deg, color-mix(in srgb, var(--c1) 38%, #050505) 0%, #050505 62%);
  border: 1px solid var(--line); border-bottom: 3px solid var(--gold);
}
.th-info { min-width: 0; }
.th-kicker { font-family: var(--display); font-size: 13px; letter-spacing: .22em; color: var(--gold2); }
.th-name { margin: 2px 0 12px; font-family: var(--display); font-weight: 700; font-size: clamp(32px, 5vw, 54px); text-transform: uppercase; line-height: 1; letter-spacing: .03em; }
.th-name span { display: block; font-size: .45em; color: var(--text2); letter-spacing: .12em; font-weight: 500; margin-bottom: 4px; }
.th-stats { display: flex; flex-wrap: wrap; gap: 10px 34px; }
.th-stats div { display: flex; flex-direction: column; }
.th-stats b { font-family: var(--display); font-size: 28px; font-weight: 600; line-height: 1.1; }
.th-stats small { font-family: var(--display); font-size: 12px; letter-spacing: .16em; color: var(--muted); }
.team-hero + .row-btns { margin-top: 14px; }

.roster-t td { vertical-align: middle; }
.rt-name { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 17px; letter-spacing: .03em; text-transform: uppercase; }
.rt-hs { width: 46px; flex: none; background: linear-gradient(180deg, #26262b, #0c0c0d); }
.stats td.rt-ovr { font-family: var(--display); font-weight: 700; font-size: 24px; }

/* player rows (still used by some pages) */
.roster { display: flex; flex-direction: column; gap: 6px; }
.prow {
  display: grid; align-items: center; gap: 4px 18px; color: #fff;
  grid-template-columns: 84px minmax(0, 1fr) 120px 210px 70px;
  grid-template-areas: 'hs main money season ovr';
  padding: 0 16px 0 0; background: var(--bg2); border: 1px solid var(--line); border-left: 3px solid transparent;
}
.prow:hover { color: #fff; background: var(--bg3); border-left-color: var(--gold); }
.prow-hs { grid-area: hs; align-self: stretch; overflow: hidden; background: linear-gradient(180deg, #26262b, #0c0c0d); }
.prow-hs .hs { height: 100%; }
.prow-main { grid-area: main; display: flex; flex-direction: column; min-width: 0; padding: 8px 0; }
.prow-name { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: .03em; text-transform: uppercase; line-height: 1.2; }
.prow-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.prow-meta b { color: var(--gold2); font-family: var(--display); font-weight: 600; letter-spacing: .06em; }
.prow-money { grid-area: money; display: flex; flex-direction: column; font-size: 15px; }
.prow-money small { color: var(--muted); font-size: 12px; }
.prow-season { grid-area: season; font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.prow-season b { color: #fff; font-family: var(--display); font-size: 16px; font-weight: 500; margin-left: 6px; }
.prow-ovr { grid-area: ovr; justify-self: end; font-family: var(--display); font-weight: 700; font-size: 38px; line-height: 1; }

.ovr-elite { color: var(--gold2); }
.ovr-good { color: var(--gold); }
.ovr-mid { color: #e4e4e8; }
.ovr-low { color: #9a9aa2; }

/* ---------- game lists ---------- */
.glist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.glist li { display: flex; align-items: center; gap: 12px; padding: 9px 14px; background: var(--bg2); border: 1px solid var(--line); font-size: 15px; min-width: 0; }
.gl-day { color: var(--muted); font-size: 13px; width: 56px; flex: none; letter-spacing: .04em; }
.gl-vs { flex: 1; min-width: 0; font-family: var(--display); font-size: 16px; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-res { font-family: var(--display); font-weight: 600; font-size: 16px; }
.gl-wl { font-family: var(--display); font-weight: 700; width: 16px; }
.gl-wl.w { color: var(--win); }
.gl-wl.l { color: var(--loss); }
.gl-box { font-family: var(--display); font-size: 12px; letter-spacing: .12em; padding: 3px 8px; border: 1px solid var(--line2); }
.gl-box:hover { border-color: var(--gold); }
.glist + .glist { margin-top: 8px; }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 34px; }
.two-col.tight { margin-top: 0; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 30px; }
.two-col > section, .three-col > section { min-width: 0; }

/* ---------- player card ---------- */
.pcard {
  display: grid; grid-template-columns: 340px minmax(0, 1fr) 170px; align-items: stretch; overflow: hidden;
  background: linear-gradient(110deg, color-mix(in srgb, var(--c1) 34%, #050505) 0%, #050505 58%);
  border: 1px solid var(--line); border-bottom: 3px solid var(--gold);
}
.pc-photo { display: flex; align-items: flex-end; padding: 18px 0 0 18px; }
.pc-photo .hs { width: 100%; }
.pc-info { padding: 26px 24px; min-width: 0; }
.pc-team { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); letter-spacing: .14em; text-transform: uppercase; font-size: 13px; color: var(--text2); }
.pc-name { margin: 8px 0 18px; font-family: var(--display); font-weight: 700; font-size: clamp(36px, 5vw, 60px); line-height: .95; text-transform: uppercase; letter-spacing: .02em; overflow-wrap: anywhere; }
.pc-name span { display: block; font-size: .5em; font-weight: 500; color: var(--text2); letter-spacing: .08em; }
.pc-bio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; max-width: 520px; }
.pc-bio div { display: flex; flex-direction: column; border-left: 2px solid var(--gold-dim); padding-left: 10px; }
.pc-bio small, .pc-status small { font-size: 11px; letter-spacing: .16em; color: var(--muted); font-family: var(--display); }
.pc-bio b { font-family: var(--display); font-size: 20px; font-weight: 500; }
.pc-status { margin-top: 16px; font-size: 15px; }
.inj-text { color: #ffb4b4; }
.pc-ratings { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 24px; background: rgba(0, 0, 0, .5); border-left: 1px solid var(--line); }
.pc-ovr { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.pc-ovr b { font-family: var(--display); font-weight: 700; font-size: 92px; color: var(--gold2); }
.pc-ovr small { font-family: var(--display); font-size: 12px; letter-spacing: .24em; color: var(--muted); margin-top: 6px; }
.pc-pot { display: none; }

.agroups { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.agroup { background: var(--bg2); border: 1px solid var(--line); padding: 14px 16px 12px; }
.ag-head { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--display); font-weight: 600; letter-spacing: .16em; font-size: 14px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.ag-head b { font-size: 22px; letter-spacing: 0; }
.abar { display: grid; grid-template-columns: 130px minmax(0, 1fr) 30px; align-items: center; gap: 10px; font-size: 14px; padding: 3px 0; }
.ab-l { color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-track { height: 8px; background: var(--bg4); overflow: hidden; }
.ab-track i { display: block; height: 100%; }
.ab-track i.ovr-elite { background: var(--gold2); }
.ab-track i.ovr-good { background: var(--gold); }
.ab-track i.ovr-mid { background: #a9a9b1; }
.ab-track i.ovr-low { background: #5d5d66; }
.ab-v { text-align: right; font-family: var(--display); font-weight: 600; font-size: 15px; }
.awards { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.awards li { padding: 6px 12px; background: var(--bg2); border: 1px solid var(--gold-dim); font-size: 14px; }
.awards b { color: var(--gold2); font-family: var(--display); margin-right: 4px; }

/* ---------- tables: large and easy to scan ---------- */
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; border: 1px solid var(--line); background: var(--bg2); }
table.stats, table.stand { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.stats th, .stand th { font-family: var(--display); font-weight: 500; font-size: 13px; letter-spacing: .12em; color: var(--gold); text-align: right; padding: 12px 12px; background: #000; border-bottom: 2px solid var(--gold-dim); white-space: nowrap; }
.stats td, .stand td { text-align: right; padding: 10px 12px; border-bottom: 1px solid #1a1a1d; white-space: nowrap; }
.stats tbody tr:nth-child(even) td, .stand tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .018); }
.stats .l, .stand .l { text-align: left; }
.stats tbody tr:hover td, .stand tbody tr:hover td { background: #17170f; }
.stats tfoot td { font-weight: 700; background: #000; border-top: 1px solid var(--line2); }
.stats td small { color: var(--muted); font-weight: 400; }
.stats a, .stand a { color: #fff; }
.stats a:hover, .stand a:hover { color: var(--gold2); }
.stats tr.dnp td { color: var(--muted); }
.stats tr.bench-start td { border-top: 1px solid var(--line2); }
.stats tr.mine td, .stand tr.mine td { background: rgba(212, 175, 55, .09); }
.stats tr.mine td:first-child, .stand tr.mine td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.stats.career tr.sim td:first-child { box-shadow: inset 3px 0 0 var(--gold-dim); }
.stats th.sortable { cursor: pointer; user-select: none; }
.stats th.sortable:hover { color: #fff; }
.stats th.sortable.on { color: #fff; box-shadow: inset 0 -2px 0 var(--gold); }
.stats td.on { color: #fff; background: rgba(212, 175, 55, .06); }
.stat-table td.l a { font-family: var(--display); font-size: 16px; letter-spacing: .03em; }
.stat-table td.l .logo { margin-right: 4px; }
.stat-filters { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 12px; }
.stat-filters .field { flex: 0 1 280px; }

.stand td.l a { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); letter-spacing: .03em; font-size: 17px; }
.stand td { font-size: 16px; }
.stand .short { display: none; }
.stand tr.cut td { border-bottom: 2px solid var(--gold-dim); }
.stand.mini { border: 1px solid var(--line); background: var(--bg2); }

/* ---------- scoreboard and box ---------- */
.scoreboard { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; padding: 26px; margin-bottom: 20px; background: linear-gradient(180deg, #111113, #050505); border: 1px solid var(--line); border-bottom: 3px solid var(--gold); }
.sb-team { display: flex; flex-direction: column; align-items: center; text-align: center; color: #fff; min-width: 0; }
.sb-name { font-family: var(--display); font-weight: 600; font-size: 20px; text-transform: uppercase; letter-spacing: .04em; margin-top: 8px; line-height: 1.1; }
.sb-team small { color: var(--muted); }
.sb-mid { text-align: center; }
.sb-k { font-family: var(--display); font-size: 13px; letter-spacing: .2em; color: var(--gold); }
.sb-score { font-family: var(--display); font-weight: 700; font-size: 64px; line-height: 1.05; display: flex; gap: 14px; justify-content: center; color: var(--muted); }
.sb-score .win { color: #fff; }
.sb-score i { font-style: normal; color: var(--line2); }
.sb-at { font-family: var(--display); font-size: 40px; color: var(--muted); }
.qtable { max-width: 100%; }
.box-team .sec-head { margin-top: 28px; }
.pbp { list-style: none; margin: 0 0 14px; padding: 0; border: 1px solid var(--line); background: var(--bg2); max-height: 560px; overflow-y: auto; }
.pbp li { padding: 8px 14px; border-bottom: 1px solid #1a1a1d; font-size: 15px; color: var(--text2); overflow-wrap: anywhere; }
.pbp li:nth-child(odd) { background: #080809; }

/* ---------- tabs and leaders ---------- */
.tabs { display: flex; gap: 4px; margin-bottom: 18px; flex-wrap: wrap; align-items: center; }
.tabs a { font-family: var(--display); font-size: 14px; letter-spacing: .14em; padding: 9px 16px; border: 1px solid var(--line2); color: var(--text2); background: var(--bg2); }
.tabs a:hover { color: #fff; border-color: var(--gold-dim); }
.tabs a.on { border-color: var(--gold); color: #000; background: var(--gold); }
.tabs-gap { width: 18px; }
.leader-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.leader-card { background: var(--bg2); border: 1px solid var(--line); min-width: 0; }
.lc-head { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 16px; font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .16em; border-bottom: 2px solid var(--gold); }
.lc-head small { color: var(--muted); font-size: 11px; }
.lc-top { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; align-items: end; gap: 12px; padding: 12px 16px 0 0; color: #fff; background: linear-gradient(90deg, color-mix(in srgb, var(--c1) 40%, #0c0c0d), #0c0c0d 80%); }
.lc-top:hover { color: #fff; }
.lc-top .hs { width: 78px; }
.lc-top-name { display: flex; flex-direction: column; padding-bottom: 12px; min-width: 0; }
.lc-top-name b { font-family: var(--display); font-size: 17px; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; overflow-wrap: anywhere; }
.lc-top-name small { color: var(--text2); font-size: 12px; letter-spacing: .1em; }
.lc-top-v { font-family: var(--display); font-weight: 700; font-size: 34px; color: var(--gold2); padding-bottom: 8px; }
.lc-list { list-style: none; margin: 0; padding: 6px 0; }
.lc-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr) 34px 40px; gap: 6px; align-items: center; padding: 6px 14px; font-size: 15px; }
.lc-list li a { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-list li a:hover { color: var(--gold2); }
.lc-n { color: var(--muted); font-family: var(--display); }
.lc-t { color: var(--muted); font-size: 12px; font-family: var(--display); letter-spacing: .06em; }
.lc-list b { text-align: right; font-family: var(--display); font-weight: 600; }

/* ---------- playoffs ---------- */
.bracket { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: center; }
.b-round { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.b-round-name { font-family: var(--display); font-size: 13px; letter-spacing: .18em; color: var(--gold); text-align: center; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.series { background: var(--bg2); border: 1px solid var(--line); }
.series.mine { border-color: var(--gold); }
.sr-team { display: flex; align-items: center; gap: 8px; padding: 7px 10px; color: #fff; min-height: 40px; }
.sr-team + .sr-team { border-top: 1px solid var(--line); }
.sr-team.win { background: rgba(212, 175, 55, .1); }
.sr-team.win .sr-abbr, .sr-team.win b { color: var(--gold2); }
.sr-team.out { opacity: .5; }
.sr-team.tbd { color: var(--muted); }
.sr-seed { width: 14px; font-size: 12px; color: var(--muted); text-align: right; }
.sr-abbr { flex: 1; font-family: var(--display); font-size: 16px; letter-spacing: .06em; }
.sr-team b { font-family: var(--display); font-size: 18px; }
.champ { display: flex; align-items: center; gap: 24px; padding: 24px 28px; margin-bottom: 22px; border: 1px solid var(--gold-dim); border-bottom: 3px solid var(--gold); background: linear-gradient(90deg, color-mix(in srgb, var(--c1) 35%, #050505), #050505 70%); }
.ch-k { font-family: var(--display); letter-spacing: .26em; color: var(--gold); font-size: 13px; }
.ch-t { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4vw, 44px); text-transform: uppercase; line-height: 1.05; }
.ch-you { margin-top: 6px; font-family: var(--display); color: var(--gold2); letter-spacing: .16em; }
.ch-mvp { margin-top: 6px; font-family: var(--display); letter-spacing: .12em; font-size: 14px; color: var(--text2); }

/* ---------- saves ---------- */
.slots { display: flex; flex-direction: column; gap: 10px; }
.slot { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 18px; background: var(--bg2); border: 1px solid var(--line); }
.slot.active { border-color: var(--gold-dim); box-shadow: inset 3px 0 0 var(--gold); }
.slot-n { font-family: var(--display); letter-spacing: .16em; font-size: 14px; color: var(--muted); }
.slot-body { display: flex; align-items: center; gap: 14px; min-width: 0; }
.slot-body > div { min-width: 0; }
.slot-name { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: .03em; overflow-wrap: anywhere; }
.slot-meta { font-size: 14px; color: var(--text2); }
.slot-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: flex-start; }
.slot-more { position: relative; }
.slot-more summary { list-style: none; }
.slot-more summary::-webkit-details-marker { display: none; }
.slot-more-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 10; display: flex; flex-direction: column; gap: 4px; padding: 6px; min-width: 150px; background: #050505; border: 1px solid var(--gold-dim); box-shadow: 0 12px 30px rgba(0, 0, 0, .8); }
.rename { display: flex; gap: 6px; max-width: 360px; }

/* ---------- draft classes ---------- */
.year-tabs a { padding: 7px 11px; }
.classes .cl-name { display: inline-flex; align-items: center; gap: 10px; }
.cl-hs { width: 52px; flex: none; background: linear-gradient(180deg, #26262b, #0c0c0d); }
.classes td { vertical-align: middle; }

/* ---------- empty states ---------- */
.empty { text-align: center; padding: 56px 20px; border: 1px solid var(--line); background: var(--bg2); }
.empty-title { font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: .08em; }
.empty p { color: var(--text2); max-width: 560px; margin: 10px auto 0; }
.empty .row-btns { justify-content: center; }

/* ---------- news list (season and league pages) ---------- */
.news { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.news li { display: flex; gap: 14px; padding: 10px 14px; background: var(--bg2); border: 1px solid var(--line); min-width: 0; }
.news b { font-weight: 600; }
.news p { margin: 2px 0 0; color: var(--text2); font-size: 14px; }
.news li > div { min-width: 0; overflow-wrap: anywhere; }
.nw-d { flex: none; width: 56px; color: var(--muted); font-family: var(--display); font-size: 12px; letter-spacing: .06em; padding-top: 2px; }

/* ---------- overlays ---------- */
.sim-overlay { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .82); }
.sim-overlay[hidden] { display: none; }
.sim-box { width: min(420px, calc(100vw - 40px)); padding: 26px; background: #050505; border: 1px solid var(--gold-dim); border-top: 3px solid var(--gold); text-align: center; }
.sim-title { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: .3em; color: var(--gold2); }
.sim-bar { height: 6px; background: var(--bg4); margin: 16px 0 10px; overflow: hidden; }
.sim-bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .15s; }
.sim-text { color: var(--text2); font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--bar-h) + 16px); transform: translate(-50%, 20px); z-index: 70; max-width: calc(100vw - 32px); padding: 12px 18px; background: #0c0c0d; border: 1px solid var(--gold-dim); color: #fff; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { border-color: var(--loss); }

/* ---------- decisions modal ---------- */
.ev-modal { position: fixed; inset: 0; z-index: 65; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .84); }
.ev-modal[hidden] { display: none; }
.ev-box { width: min(640px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: #050505; border: 1px solid var(--gold-dim); border-top: 3px solid var(--gold); box-shadow: 0 20px 60px rgba(0, 0, 0, .8); }
.ev-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 700; letter-spacing: .16em; font-size: 18px; }
.ev-head small { color: var(--muted); font-size: 12px; font-weight: 500; flex: 1; }
.ev-close { background: none; border: 0; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.ev-close:hover { color: #fff; }
.ev-body { padding: 16px 18px; overflow-y: auto; }
.ev-text { margin: 0 0 12px; font-size: 16px; color: var(--text2); overflow-wrap: anywhere; }
.ev-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ev-list li { display: flex; align-items: center; gap: 12px; padding: 6px 10px 6px 6px; background: var(--bg2); border: 1px solid var(--line); min-width: 0; }
.ev-list li.ev-pick, .ev-list li.muted { padding: 10px 12px; font-size: 14px; }
.ev-hs { width: 64px; flex: none; background: linear-gradient(180deg, #26262b, #0c0c0d); }
.ev-pn { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ev-pn a { color: #fff; font-family: var(--display); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.ev-pn small { color: var(--muted); font-size: 12px; }
.ev-list li > b { font-family: var(--display); font-size: 26px; }
.ev-trade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ev-side-h { display: flex; align-items: center; gap: 8px; font-family: var(--display); letter-spacing: .1em; font-size: 13px; color: var(--gold); margin-bottom: 8px; }
.ev-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding: 14px 18px; border-top: 1px solid var(--line); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .prow { grid-template-columns: 84px minmax(0, 1fr) 110px 70px; grid-template-areas: 'hs main money ovr' 'hs season season ovr'; }
  .pcard { grid-template-columns: 280px minmax(0, 1fr) 150px; }
  .three-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bracket { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .mainnav > a, .navmore summary { padding: 0 10px; font-size: 14px; }
  .topbar { gap: 18px; }
}
@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .topbar { flex-wrap: wrap; height: auto; gap: 0 12px; padding-top: 10px; }
  .wordmark { flex: 1; }
  .userchip { order: 2; }
  .userchip:empty { display: none; }   /* an empty chip still cost a 12px gap, so the bar looked 20px short on the right */
  .topbar:has(.userchip:empty) .pf-chip { margin-right: 0; }
  .mainnav { order: 3; flex: 0 0 calc(100% + var(--gutter) * 2); height: 44px; overflow-x: auto; scrollbar-width: none; margin: 6px calc(var(--gutter) * -1) 0; padding: 0 6px; }
  .mainnav::-webkit-scrollbar { display: none; }
  .mainnav > a, .navmore summary { padding: 0 11px; font-size: 14px; }
  /* The menu opens as a sheet under the top bar (js/ui.js sets its top) so the scrolling nav cannot clip it. */
  .navmore { position: static; }
  .navmore-list { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px var(--gutter) 16px; }
  .navmore-list a { padding: 12px 10px; }
  .userchip a { padding: 4px 10px 4px 4px; }
  .mm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: minmax(150px, auto); }
  .mm-grid .mt-hero { grid-row: span 1; grid-column: span 2; min-height: 190px; }
  .hub-grid, .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(120px, auto); gap: 10px; }
  .mt-play { grid-row: auto; }
  .mtile { min-height: 120px; padding: 16px; }
  .mt-l { font-size: 22px; }
  .pcard { grid-template-columns: minmax(0, 1fr) 130px; }
  .pc-photo { grid-column: 1 / -1; grid-row: 1; padding: 16px 16px 0; justify-content: center; }
  .pc-photo .hs { max-width: 300px; }
  .pc-info { padding: 18px; }
  .pc-ratings { padding: 16px; }
  .pc-ovr b { font-size: 64px; }
  .two-col, .three-col { grid-template-columns: minmax(0, 1fr); }
  .slot { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .slot-actions { justify-content: flex-start; }
  .slot-more-list { left: 0; right: auto; }
  .tracklist { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .wm-2k { font-size: 22px; }
  .wm-assoc { font-size: 15px; letter-spacing: .1em; }
  .mm { padding-top: 6px; }
  .mm-k { margin-bottom: 20px; }
  .mm-grid { grid-auto-rows: minmax(120px, auto); gap: 10px; }
  .mm-grid .mt-hero { min-height: 160px; padding: 20px; }
  .mm-grid .mt-hero .ic { width: 44px; height: 44px; }
  .mt-team .logo { --sz: 36px !important; }
  .hub-head { flex-wrap: wrap; gap: 14px; padding: 16px; }
  .hub-head > .logo { --sz: 60px !important; }
  .hh-info { flex: 1 1 calc(100% - 80px); }
  .hh-stats { gap: 6px 22px; }
  .hh-stats b { font-size: 22px; }
  .hh-last { flex-direction: row; gap: 10px; width: 100%; justify-content: center; padding: 8px 12px; }
  .hh-last b { font-size: 20px; }
  .mt-play { padding: 16px; }
  .mt-play > .mt-l { font-size: 30px; }
  .play-next .logo { --sz: 44px !important; }
  .play-next b { font-size: 18px; }
  .sim-btn { font-size: 14px; padding: 10px 4px; letter-spacing: .06em; min-height: 50px; }
  .ic { width: 28px; height: 28px; }
  .team-hero { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; }
  .team-hero > .logo { --sz: 72px !important; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prow { grid-template-columns: 64px minmax(0, 1fr) 46px; grid-template-areas: 'hs main ovr' 'hs money ovr' 'hs season ovr'; gap: 0 12px; padding-right: 10px; }
  .prow-name { font-size: 16px; }
  .prow-ovr { font-size: 30px; }
  .rt-hs { width: 40px; }
  .rt-name { font-size: 15px; gap: 8px; }
  .pc-bio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-bio b { font-size: 17px; }
  .abar { grid-template-columns: 112px minmax(0, 1fr) 26px; gap: 8px; }
  .scoreboard { padding: 16px 10px; gap: 8px; }
  .scoreboard .logo { --sz: 48px !important; }
  .sb-name { font-size: 15px; }
  .sb-score { font-size: 40px; gap: 6px; }
  .stand .full { display: none; }
  .stand .short { display: inline; }
  .hide-sm { display: none; }
  .stats th, .stand th, .stats td, .stand td { padding: 9px 8px; }
  .bracket { grid-template-columns: minmax(0, 1fr); }
  .champ { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; }
  .gl-day { width: 46px; }
  .ev-trade { grid-template-columns: minmax(0, 1fr); }
  .ev-head { font-size: 15px; }
  .confirm-inner { padding: 14px; }
  .ct-t { font-size: 20px; }
  .stat-filters { flex-wrap: wrap; }
}

/* ---------- team select (#/new): 2K13 style cards, filters, confirm panel ---------- */
.ts-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 6px; }
.ts-filters { display: flex; flex-wrap: wrap; gap: 4px; }
.ts-filters button { font-family: var(--display); font-size: 14px; letter-spacing: .14em; padding: 8px 14px; border: 1px solid var(--line2); color: var(--text2); background: var(--bg2); cursor: pointer; }
.ts-filters button:hover { color: #fff; border-color: var(--gold-dim); }
.ts-filters button.on { border-color: var(--gold); color: #000; background: var(--gold); }
.conf-label small { font-size: 11px; letter-spacing: .14em; color: var(--muted); margin-left: 10px; }
.ts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.team-tile.ts-card { align-items: stretch; text-align: left; gap: 10px; padding: 14px 14px 12px; color: var(--text); font: inherit; }
.ts-card .logo { margin: 0; flex: none; }
.ts-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ts-nm { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.1; }
.ts-nm small { font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-nm b { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-ovr { display: flex; flex-direction: column; align-items: center; flex: none; line-height: 1; }
.ts-ovr small { font-family: var(--display); font-size: 9.5px; letter-spacing: .14em; color: var(--muted); margin-bottom: 3px; }
.ts-ovr b { font-family: var(--display); font-size: 24px; font-weight: 700; color: #000; background: var(--gold); padding: 2px 7px; }
.ts-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.ts-tag { display: inline-block; font-family: var(--display); font-size: 11px; font-weight: 500; letter-spacing: .12em; padding: 2px 7px; border: 1px solid var(--line2); color: var(--text2); background: #000; white-space: nowrap; }
.ts-tag.tier-contender { border-color: var(--gold); color: var(--gold2); }
.ts-tag.tier-playoff { border-color: #6d6d78; color: #e4e4e8; }
.ts-tag.tier-rebuild { border-color: #4a4a52; color: var(--muted); }
.ts-tag.cap-space { border-color: #3f7d55; color: #8fe0a8; }
.ts-tag.cap-capped { border-color: #6d6d78; color: var(--text2); }
.ts-tag.cap-taxed { border-color: #8a3a3a; color: #ffb4b4; }
.ts-stars { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); padding-top: 8px; }
.ts-stars span { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; min-width: 0; }
.ts-stars i { font-style: normal; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-stars b { font-family: var(--display); font-size: 15px; flex: none; }
.ts-modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px 16px; background: rgba(0, 0, 0, .78); }
.ts-modal[hidden] { display: none; }
.ts-box {
  display: flex; flex-direction: column; gap: 14px; width: min(720px, 100%); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); padding: 18px 20px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c1, #333) 24%, #070708) 0, #070708 140px); border: 1px solid var(--gold-dim); border-top: 3px solid var(--gold); box-shadow: 0 20px 60px rgba(0, 0, 0, .8);
}
.ts-head { display: flex; align-items: center; gap: 16px; min-width: 0; }
.ts-head .logo { flex: none; }
.ts-hinfo { flex: 1; min-width: 0; }
.ts-hinfo .ct-t { margin: 2px 0 2px; }
.ts-pay { font-size: 13.5px; color: var(--text2); }
.ts-x { align-self: flex-start; flex: none; width: 36px; height: 36px; font-size: 24px; line-height: 1; color: var(--text2); background: transparent; border: 1px solid var(--line2); cursor: pointer; }
.ts-x:hover { color: var(--gold2); border-color: var(--gold); }
.ts-roster { flex: 1 1 auto; min-height: 120px; overflow: auto; border: 1px solid var(--line); background: var(--bg2); }
.ts-rt th { position: sticky; top: 0; z-index: 1; }
.ts-rt td, .ts-rt th { padding: 7px 10px; }
.ts-pn { font-family: var(--display); font-size: 15px; letter-spacing: .03em; text-transform: uppercase; }
.ts-form { display: flex; flex-wrap: wrap; gap: 12px 16px; }
body.ts-lock { overflow: hidden; }

/* ---------- player search (rosters page, compare) ---------- */
.teams-search { max-width: 560px; margin: 0 0 8px; }
.psearch { position: relative; }
.ps-ic { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.ps-in { width: 100%; padding: 12px 14px 12px 40px; background: #000; border: 1px solid var(--line2); color: #fff; font: inherit; border-radius: 2px; }
.ps-in:focus { border-color: var(--gold); outline: none; }
.ps-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; margin: 0; padding: 4px 0; list-style: none; max-height: 380px; overflow-y: auto; background: #0a0a0b; border: 1px solid var(--gold-dim); box-shadow: 0 14px 40px rgba(0, 0, 0, .8); }
.ps-list a { display: flex; align-items: center; gap: 12px; padding: 8px 12px; color: var(--text); min-width: 0; }
.ps-list li.on a, .ps-list a:hover { background: rgba(212, 175, 55, .12); color: #fff; }
.ps-list .logo { flex: none; }
.ps-nm { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.2; }
.ps-nm b { font-family: var(--display); font-weight: 500; font-size: 16px; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-nm small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-ovr { font-family: var(--display); font-weight: 700; font-size: 22px; flex: none; min-width: 30px; text-align: right; }
.ps-none { padding: 10px 14px; color: var(--muted); font-size: 14px; }

/* ---------- team page summary and sortable roster ---------- */
.tm-sum { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px; margin-top: 18px; }
.tm-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tm-box { background: var(--bg2); border: 1px solid var(--line); border-top: 2px solid var(--gold-dim); padding: 12px 16px; min-width: 0; }
.tm-box h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 10px; font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .18em; color: var(--gold); }
.tm-box h3 small { font-weight: 400; font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.tm-box p { margin: 0; font-size: 14.5px; color: var(--text2); }
.tm-five ol { list-style: none; margin: 0; padding: 0; }
.tm-five li { display: flex; align-items: center; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); min-width: 0; }
.tm-five li:first-child { border-top: 0; }
.tm-slot { flex: none; width: 34px; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .06em; color: var(--gold2); }
.tm-pl { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: var(--text); }
.tm-pl:hover { color: var(--gold2); }
.tm-hs { width: 44px; flex: none; background: linear-gradient(180deg, #26262b, #0c0c0d); }
.tm-hs .hs { width: 100%; height: auto; display: block; }
.tm-nm { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.tm-nm b { font-family: var(--display); font-weight: 500; font-size: 17px; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-nm small { font-size: 12.5px; color: var(--muted); }
.tm-ovr { flex: none; font-family: var(--display); font-weight: 700; font-size: 24px; }
.tm-needs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tm-needs li { display: flex; align-items: baseline; gap: 10px; font-size: 14px; color: var(--text2); }
.tm-needs li b { flex: none; min-width: 34px; text-align: center; font-family: var(--display); font-size: 14px; letter-spacing: .06em; color: #000; background: var(--gold); padding: 1px 6px; }
.tm-bar { position: relative; height: 10px; margin: 22px 0 4px; background: #26262b; }
.tm-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-dim), var(--gold)); }
.tm-mk { position: absolute; top: -6px; bottom: -3px; width: 2px; background: #fff; }
.tm-mk em { position: absolute; bottom: calc(100% + 1px); left: 50%; transform: translateX(-50%); font-style: normal; font-family: var(--display); font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.tm-rks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tm-rk { display: flex; flex-direction: column; min-width: 0; }
.tm-rk small { font-family: var(--display); font-size: 10.5px; letter-spacing: .14em; color: var(--muted); }
.tm-rk b { font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1.15; }
.tm-rk em { font-style: normal; font-size: 12.5px; color: var(--text2); }
.tm-rk em.good { color: var(--gold2); }
.tm-rk em.bad { color: #ff9b9b; }
.tm-box p.tm-note { font-size: 12px; color: var(--muted); margin-top: 6px; }
.roster-t th.th-s { padding: 0; }
.th-sort { display: inline-flex; align-items: center; justify-content: flex-end; gap: 3px; width: 100%; padding: 12px 12px; font: inherit; letter-spacing: inherit; color: inherit; background: transparent; border: 0; cursor: pointer; white-space: nowrap; }
.roster-t th.l .th-sort { justify-content: flex-start; }
.th-sort:hover { color: var(--gold2); }
.th-s.on .th-sort { color: #fff; }
.th-sort i { font-style: normal; font-size: 9px; color: var(--gold2); }
@media (max-width: 900px) {
  .tm-sum { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .ts-bar { flex-direction: column; align-items: stretch; }
  .ts-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ts-filters button { padding: 8px 4px; font-size: 13px; letter-spacing: .08em; }
  .ts-grid { grid-template-columns: minmax(0, 1fr); }
  .ts-modal { padding: 0; align-items: stretch; }
  .ts-box { max-height: none; height: 100%; width: 100%; padding: 14px 16px; gap: 12px; border-left: 0; border-right: 0; }
  .ts-head { gap: 12px; }
  .ts-head .logo { --sz: 52px !important; }
  .ts-form { flex-direction: column; gap: 10px; }
  .ts-form .field { flex: none; }
  .ts-roster { min-height: 200px; }
  .ts-box .confirm-actions .btn { flex: 1; }
  .tm-rks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tm-box { padding: 12px; }
  .th-sort { padding: 9px 8px; }
}
/* ---------- draft classes: full-cell sort buttons, 44 px tap targets on every screen ---------- */
table.classes th.th-s { padding: 0; }
table.classes .th-sort { min-height: 44px; padding: 10px 12px; }
table.classes th.l .th-sort { justify-content: flex-start; }
table.classes th.th-s.on { box-shadow: inset 0 -2px 0 var(--gold); }
@media (max-width: 560px) { table.classes .th-sort { padding: 10px 8px; } }
/* ---------- the music bar never hides page content or popup buttons ---------- */
html { scroll-padding-bottom: calc(var(--mb-h, var(--bar-h)) + 12px); }
@media (max-width: 900px) {
  .navmore-list { max-height: min(70vh, calc(100vh - 120px - var(--mb-h, var(--bar-h)))); }
}
/* ---------- NEXT: one gold button that always moves the game on (top bar, phone bottom bar) ---------- */
.next-btn {
  flex: none; display: inline-flex; align-items: center; gap: 10px; max-width: 300px; min-height: 40px;
  padding: 0 14px 0 16px; border: 1px solid var(--gold); border-radius: 2px; background: var(--gold); color: #000; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .08em; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(212, 175, 55, .22);
  transition: background .12s, border-color .12s;
}
.next-btn[hidden] { display: none; }
.next-btn:hover:not(:disabled) { background: var(--gold2); border-color: var(--gold2); color: #000; }
.next-btn:disabled { opacity: .5; cursor: wait; }
.next-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.nx-l { font-weight: 700; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nx-ar { flex: none; width: 0; height: 0; border-style: solid; border-color: transparent transparent transparent currentColor; border-width: 6px 0 6px 9px; }
@media (max-width: 1100px) { .next-btn { font-size: 14px; padding: 0 10px 0 12px; max-width: 230px; gap: 8px; } }
@media (max-width: 900px) {
  .next-btn {
    position: fixed; left: var(--gutter); right: var(--gutter); bottom: calc(var(--mb-h, var(--bar-h)) + 10px); z-index: 39;
    justify-content: center; max-width: none; min-height: 52px; font-size: 18px; padding: 0 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 0, 0, .8);
  }
  body.has-next { padding-bottom: calc(var(--mb-h, var(--bar-h)) + 92px); }
  body.has-next .toast { bottom: calc(var(--mb-h, var(--bar-h)) + 76px); }
}
/* wide screens where the nav, NEXT and the team chip do not fit on one row (js/ui.js adds tb-tight): the nav gets its own row */
@media (min-width: 901px) {
  body.tb-tight .topbar { flex-wrap: wrap; height: auto; gap: 0 16px; padding-top: 10px; }
  body.tb-tight .wordmark { flex: 1; }
  body.tb-tight .userchip { order: 2; }
  body.tb-tight .mainnav { order: 3; flex: 0 0 100%; height: 46px; margin-top: 8px; }
  body.tb-tight .mainnav > a:first-child { padding-left: 0; }
}

/* team page: head coaches */
.tm-coaches { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 6px; }
.tm-coaches li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 12px; background: #0d0d0f; border-left: 3px solid #333; }
.tm-coaches li.now { border-left-color: var(--gold); }
.tm-coaches li b { font-family: var(--display); letter-spacing: .06em; }
.tm-coaches li small { flex: 1 1 100%; color: var(--muted); font-size: 12px; }
/* new league: the season to start in */
.ts-start { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: -4px 0 16px; padding: 12px 14px; border: 1px solid var(--line); background: var(--bg2); }
.ts-start-k { font-family: var(--display); font-size: 12px; letter-spacing: .22em; color: var(--gold); }
.ts-start .ch-chips { margin-top: 0; }
.ts-start-n { font-size: 13px; flex: 1 1 220px; }
.ts-start .ts-when { flex: 1 1 100%; }

/* install as an app (home screen) */
.mm-install:empty { display: none; }
.mm-install { margin: 8px 0 4px; }
.mm-inst-tip { font-size: 13px; color: var(--muted); }
.mm-inst-tip b { color: var(--gold2); }

/* Share Season (js/ui-share.js) */
.share-wrap { max-width: 540px; margin: 0 auto; }
.share-prev { aspect-ratio: 1080 / 1350; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; border: 1px solid var(--line); background: var(--bg2); }
.share-prev img, .share-prev canvas { width: 100%; height: auto; display: block; }
/* Draft Challenge and Versus side by side on the home screen */
.mm-grid .mt-challenge, .mm-grid .mt-versus { grid-column: span 1; }
.mm-grid .mt-ranked { border-color: var(--gold); background: radial-gradient(300px 200px at 80% 10%, rgba(255, 200, 60, .18), transparent 70%), linear-gradient(180deg, #14110a 0%, #050505 100%); }
.mm-grid .mt-versus { border-color: var(--gold-dim); background: radial-gradient(300px 200px at 80% 10%, rgba(95, 211, 138, .16), transparent 70%), linear-gradient(180deg, #0c140f 0%, #050505 100%); }

/* playing hurt and in-season form badges (UI.injuryBadge) */
.badge-hurt { background: #3a2a06; color: #ffcf6b; border: 1px solid #8a6a1a; }
.badge-form { font-family: var(--display); letter-spacing: .04em; border: 1px solid currentColor; background: transparent; }
.badge-form.up { color: #5fd38a; }
.badge-form.down { color: #ff7b7b; }
.ftd-range { font-family: var(--display); font-size: 14px; letter-spacing: .04em; color: var(--text2); border: 1px dashed var(--line2); padding: 1px 6px; white-space: nowrap; }

/* team chemistry card (front office) */
.fr-chem { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 18px; align-items: center; margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line2); background: var(--bg2); }
.fr-chem-n { display: flex; flex-direction: column; align-items: center; min-width: 96px; }
.fr-chem-n small { font-family: var(--display); font-size: 10.5px; letter-spacing: .16em; color: var(--gold); }
.fr-chem-n b { font-family: var(--display); font-size: 40px; line-height: 1.05; }
.fr-chem-n b.up { color: #5fd38a; } .fr-chem-n b.down { color: #ff7b7b; }
.fr-chem-n span { font-family: var(--display); letter-spacing: .14em; font-size: 12px; color: var(--text2); }
.fr-chem ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.fr-chem li { display: flex; justify-content: space-between; gap: 6px; padding: 6px 9px; background: var(--bg3); font-size: 12px; letter-spacing: .05em; border-left: 3px solid var(--line2); }
.fr-chem li.up { border-left-color: #5fd38a; } .fr-chem li.down { border-left-color: #ff7b7b; }
.fr-chem p { grid-column: 1 / -1; margin: 2px 0 0; font-size: 12.5px; }
@media (max-width: 600px) { .fr-chem { grid-template-columns: minmax(0, 1fr); } .fr-chem ul { grid-template-columns: minmax(0, 1fr); } }
/* black logos (Nets, Spurs): a thin white outline so they show on the dark page */
.logo.dark img { filter: drop-shadow(0 0 1px rgba(255, 255, 255, .9)) drop-shadow(0 0 3px rgba(255, 255, 255, .3)); }
/* the home screen leads with Season Mode and Head to Head; the Association sits below */
.mm-grid .mt-hero.mt-challenge, .mm-grid .mt-hero.mt-versus { grid-column: span 2; grid-row: span 2; }
.mm-grid .mt-hero.mt-versus .mt-l { color: #8fe3aa; }
.mm-grid .mt-assoc, .mm-grid .mt-continue { grid-column: span 2; min-height: 110px; }
.mm-grid { grid-template-rows: 170px 170px auto auto; }
@media (max-width: 900px) {
  .mm-grid { grid-template-rows: none; }
  .mm-grid .mt-hero.mt-challenge, .mm-grid .mt-hero.mt-versus { grid-column: span 2; grid-row: span 1; }
  .mm-grid .mt-assoc, .mm-grid .mt-continue { grid-column: span 1; min-height: 110px; }
}
/* Basketball-Reference photos are portraits: fill the headshot box from the top */
img.hs.hs-br { object-fit: cover; object-position: center 18%; }
/* the credit under the title, like "A Spike Lee Joint" */
.mm-joint { margin-top: 10px; font-family: var(--display); font-style: italic; font-weight: 700; font-size: clamp(15px, 2vw, 20px); letter-spacing: .22em; color: #fff; display: inline-block; padding: 4px 12px 4px 10px; border-left: 3px solid var(--gold); background: linear-gradient(90deg, rgba(243, 207, 94, .14), transparent); }
.mm-joint span { color: var(--gold2); font-weight: 500; }

.mm-foot { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.mm-foot a { color: var(--muted, #9aa); text-decoration: none; }
.mm-foot a:hover { color: var(--gold2); }
.inf { max-width: 720px; margin: 0 auto; padding: 8px 16px 40px; line-height: 1.6; }
.inf h3 { margin: 22px 0 4px; font-family: var(--display); letter-spacing: .06em; color: var(--gold2); }
.inf ul { padding-left: 20px; }
.inf-nav { margin-top: 30px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.inf-form { display: grid; gap: 12px; margin: 14px 0; }
.inf-form label { display: grid; gap: 4px; font-size: 13px; }
.inf-form input, .inf-form textarea { font: inherit; padding: 10px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: inherit; }

body.no-assoc-nav .mainnav > a { display: none; }
body.no-assoc-nav .nm-group[data-grp="MY TEAM"], body.no-assoc-nav .nm-group[data-grp="SEASON"], body.no-assoc-nav .nm-group[data-grp="LEAGUE"], body.no-assoc-nav .nm-group[data-grp="MORE"],
body.no-assoc-nav .navmore-list a[data-nav="settings"], body.no-assoc-nav .navmore-list a[data-nav="commish"] { display: none; }


/* the arrow next to a rating (UI.mv): up or down since last season */
.mv { display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; font-style: normal; font-family: var(--display); font-weight: 600; font-size: 11px; line-height: 1; vertical-align: middle; }
.mv::before { content: ''; border-left: 4px solid transparent; border-right: 4px solid transparent; }
.mv.up { color: #3ddc84; }
.mv.up::before { border-bottom: 6px solid currentColor; }
.mv.down { color: #ff6b6b; }
.mv.down::before { border-top: 6px solid currentColor; }

/* less text on screen: the long explanations (setup notes, hero paragraphs, settings descriptions) stay out of the way;
   settings rows keep theirs as a hover or long-press tooltip */
.ch-hero-p, .gs-intro, .gs-t small, .vs-rules small.muted, .tn-rules small.muted, .ts-start-n, .ch-small, .tn-setup .ch-step > small.muted, .vs-rival-mini + small { display: none; }
.ch-hero { padding-bottom: 8px; }
.gs-card .gs-k { margin-bottom: 6px; }

/* team tiers (UI.teamTiers): relative to the league, with the age of the core */
.ts-tag.tier-title { border-color: var(--gold); color: #111; background: var(--gold); }
.ts-tag.tier-aging { border-color: var(--gold-dim); color: var(--gold2); }
.ts-tag.tier-rising { border-color: #3f7d55; color: #8fe0a8; }
.ts-tag.tier-bubble { border-color: #6d6d78; color: var(--text2); }
.ts-tag.tier-declining { border-color: #8a5a3a; color: #e0b08a; }
.ts-tag.tier-young, .ts-tag.tier-building { border-color: #3f6d7d; color: #8fcde0; }
.ts-tag.tier-retooling { border-color: #6d6d78; color: var(--muted); }

.mm-ver { text-align: center; font-size: 11px; letter-spacing: .18em; margin: 6px 0 14px; font-family: var(--display); }

.mm-sfx { display: flex; justify-content: center; margin: 4px 0 14px; }
.app-ver { text-align: center; font-size: 11px; letter-spacing: .18em; padding: 18px 12px 28px; font-family: var(--display); }
.app-ver .btn { margin-left: 6px; }

/* main menu, smaller: the title, the tiles and the gaps take less room on a laptop and much less on a phone */
.mm-2k { font-size: clamp(46px, 6.4vw, 88px); }
.mm-a { font-size: clamp(26px, 3.6vw, 50px); }
.mm-k { font-size: 12px; margin: 8px 0 18px; }
.mm-joint { font-size: clamp(13px, 1.5vw, 17px); }
.mm-grid { grid-template-rows: 130px 130px auto auto; gap: 10px; }
.mm-grid .mt-hero { padding: 20px; }
.mm-grid .mt-hero .ic { width: 42px; height: 42px; }
.mm-grid .mt-hero .mt-l { font-size: clamp(26px, 3vw, 38px); }
.mm-grid .mtile { padding: 14px; }
.mm-grid .mt-l { font-size: 20px; }
.mm-grid .mt-s { font-size: 11px; }
.mm-grid .mt-assoc, .mm-grid .mt-continue { min-height: 84px; }
.mm-grid .mt-half { min-height: 76px; }
@media (max-width: 900px) {
  .mm-grid { grid-template-rows: none; grid-auto-rows: minmax(92px, auto); }
  .mm-grid .mt-hero, .mm-grid .mt-hero.mt-challenge, .mm-grid .mt-hero.mt-versus { min-height: 110px; padding: 14px; }
}
@media (max-width: 560px) {
  .mm-2k { font-size: 44px; }
  .mm-a { font-size: 24px; letter-spacing: .08em; }
  .mm-brand { gap: 0 10px; }
  .mm-joint { font-size: 12px; letter-spacing: .16em; margin-top: 6px; }
  .mm-k { font-size: 10px; letter-spacing: .2em; margin: 6px 0 12px; }
  .mm-grid { grid-auto-rows: minmax(84px, auto); gap: 8px; }
  .mm-grid .mt-hero, .mm-grid .mt-hero.mt-challenge, .mm-grid .mt-hero.mt-versus { min-height: 96px; padding: 12px; }
  .mm-grid .mt-hero .ic { width: 30px; height: 30px; }
  .mm-grid .mt-hero .mt-l { font-size: 24px; }
  .mm-grid .mtile { min-height: 84px; padding: 12px; }
  .mm-grid .mt-l { font-size: 17px; }
  .mm-grid .mt-assoc, .mm-grid .mt-continue { min-height: 84px; }
  .mm-grid .mt-tn { min-height: 60px; }
}
@media (min-width: 901px) {
  .mm-grid { grid-template-rows: none; grid-auto-rows: minmax(82px, auto); }
  .mm-grid .mt-hero, .mm-grid .mt-hero.mt-challenge, .mm-grid .mt-hero.mt-versus { grid-row: span 1; min-height: 132px; }
}
