/* ================================================================
   WOLGIB LEAGUE — NFL-2K broadcast steel, per owner mockups.
   Gunmetal hardware + chrome italic display type + blue/red gradient
   banners + yellow broadcast numerals. The sage LCD survives as the
   "screens" set into the steel. Sim canvas untouched.
   ================================================================ */
:root {
  --bg:        #0b0d10;

  /* steel */
  --steel-hi:  #4a515c;
  --steel:     #2b3038;
  --steel-lo:  #16191e;
  --edge-hi:   #6b7480;
  --edge-lo:   #07080a;

  /* silver plate */
  --silver-hi: #dde1e7;
  --silver-lo: #9aa2ac;
  --silver-ink:#14171b;

  /* type on dark */
  --ink:       #e8ecf2;
  --ink-dim:   #9aa4b2;
  --ink-faint: #5d6570;

  /* broadcast accents — yellow numerals, muted green/red ONLY for deltas */
  --yellow:    #f5d34a;
  --green:     #57b768;
  --green-dk:  #57b768;
  --red:       #c96a5f;
  --red-dk:    #8a3a30;
  --blue:      #6b7480;
  --blue-lnk:  #c9d0da;

  /* dark display chips set into the steel (sage LCD retired) */
  --lcd:       #0d0f12;
  --lcd-ink:   #e8ecf2;
  --lcd-dim:   #8a93a0;
  --amber-lcd: #101216;

  --f-disp: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  height: 100%;
  overscroll-behavior: none;
}
/* faint diagonal carbon texture + vignette */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 90;
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,.014) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.12) 0 1px, transparent 1px 4px);
}
body::after {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 91;
  background: radial-gradient(ellipse at center, transparent 66%, rgba(0,0,0,.5) 100%);
}

#app { max-width: 480px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }
.hidden { display: none !important; }
button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; touch-action: manipulation; }

/* display-type helper */
.disp, .panel-head, .hdr-title, .fb-title { font-family: var(--f-disp); font-style: italic; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }

/* ============ header — angled chrome masthead ============ */
#app-header {
  display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 12px 8px;
  position: sticky; top: 0; z-index: 20;
  background:
    linear-gradient(180deg, #23272e 0%, #14171b 78%, transparent 100%);
  border-bottom: 1px solid rgba(107,116,128,.35);
}
.hdr-left { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
.fb-ico { display: inline-flex; filter: drop-shadow(0 2px 2px rgba(0,0,0,.6)); }
.hdr-title {
  font-size: 27px; line-height: 1;
  background: linear-gradient(180deg, #ffffff 30%, #b8c0cc 55%, #7d8894 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 8px;
  border-bottom: 3px solid #8d95a0;
  text-shadow: none;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.7));
  white-space: nowrap; overflow: hidden;
}
.hdr-tag {
  font-size: 6.5px; letter-spacing: 2.5px; line-height: 1.7;
  color: var(--ink-dim); text-align: right; font-weight: 500;
  flex: 0 0 auto;
}
.hdr-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--edge-hi);
  background: linear-gradient(180deg, var(--steel-hi), var(--steel-lo));
  color: #e8dfc8; font-size: 16px; cursor: pointer; user-select: none;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 -2px 3px rgba(0,0,0,.5);
}
#hdr-back { font-size: 22px; padding-bottom: 3px; }
.hdr-right { display: flex; gap: 7px; flex: 0 0 auto; }
.bell-dot { position: absolute; top: 6px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: #c96a5f; box-shadow: 0 0 4px rgba(201,106,95,.7); }

/* ============ screens ============ */
#screens { flex: 1; padding: 10px 10px calc(150px + env(safe-area-inset-bottom)); }
.screen { display: none; flex-direction: column; gap: 12px; }
.screen.active { display: flex; }

/* ============ steel panel ============ */
.panel {
  position: relative;
  background: linear-gradient(180deg, var(--steel) 0%, var(--steel-lo) 100%);
  padding: 10px;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px),
                     calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  box-shadow:
    inset 0 0 0 2px var(--edge-lo),
    inset 0 0 0 3px rgba(148,158,170,.5),
    inset 0 0 0 4px rgba(0,0,0,.6),
    inset 0 14px 18px -14px rgba(255,255,255,.14);
}

/* banner heads — brushed steel, no loud color */
.panel-head {
  display: flex; align-items: center; gap: 8px;
  margin: -10px -10px 10px;
  padding: 8px 14px 7px;
  font-size: 16px; line-height: 1;
  color: #fff;
  background: linear-gradient(180deg, #5a6270 0%, #2f343c 55%, #1a1d22 100%);
  border-bottom: 2px solid #0b0d10;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%, 0 10px);
  text-shadow: 1px 2px 0 rgba(0,0,0,.55);
}
.panel-head.red {
  background: linear-gradient(180deg, #454b56 0%, #23272e 55%, #121418 100%);
}
.panel-head > span:first-child { flex: 0 0 auto; }
/* slash accents after the title — chrome, not red */
.panel-head > span:first-child::after {
  content: '///'; margin-left: 9px;
  color: rgba(255,255,255,.4);
  font-style: italic; letter-spacing: -1px;
}
.panel-head .view-all { margin-left: auto; }
.view-all {
  font-family: var(--f-mono); font-style: normal; font-weight: 700;
  font-size: 9.5px; letter-spacing: .5px;
  color: #bfe0ff; cursor: pointer; white-space: nowrap; text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0,0,0,.5);
}
.view-all::after { content: ' \203A'; }
.panel > .view-all, .lcd .view-all { color: var(--blue-lnk); }

.live-dot { margin-left: auto; color: #52e06a; font-size: 11px; letter-spacing: 1.5px; font-family: var(--f-mono); font-style: normal; font-weight: 700; }
.live-dot::before { content: '\25CF '; animation: blink 1.6s infinite; display: inline-block; }
.panel-head .live-dot { color: #7dffa0; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* ============ LCD screens set into steel ============ */
.lcd {
  position: relative;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 1px, transparent 1px 3px),
    var(--lcd);
  color: var(--lcd-ink);
  border-radius: 3px;
  border: 1px solid #262b33;
  box-shadow: inset 0 2px 8px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.08);
}
.lcd.amber { background: var(--amber-lcd); }
.lcd .dim { color: var(--lcd-dim); }
.up   { color: var(--green-dk); }
.down { color: #8c3d2c; }
.panel .up:not(.lcd *)   { color: var(--green); }

/* ============ tab strips — angled steel tabs ============ */
.tab-strip { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; }
.tab-strip::-webkit-scrollbar { display: none; }
.tab-strip .tab {
  flex: 0 0 auto;
  font-family: var(--f-disp); font-style: italic; font-weight: 700;
  font-size: 13px; letter-spacing: .5px; text-transform: uppercase;
  color: var(--ink-dim);
  background: linear-gradient(180deg, var(--steel-hi), var(--steel-lo));
  padding: 9px 16px 8px;
  clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(0,0,0,.6);
  text-shadow: 0 1px 0 rgba(0,0,0,.6);
}
.tab-strip .tab.on {
  background: linear-gradient(180deg, #e6e9ee 0%, #b3bac4 55%, #8d95a0 100%);
  color: #14171b;
  text-shadow: 0 1px 0 rgba(255,255,255,.4);
}
.tab-strip.grow .tab { flex: 1 1 0; text-align: center; padding: 9px 4px 8px; }

/* ============ footer band + bottom nav ============ */
/* footer band — the exact strip from the owner's mockup */
#foot-band {
  position: fixed; bottom: calc(74px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 29;
  background: #101318;
  border-top: 1px solid rgba(107,116,128,.25);
  line-height: 0;
}
#fb-img { width: 100%; height: auto; display: block; filter: saturate(.55); }

/* Madden-style in-game ticker: live NFL scores + fantasy matchups scroll
   endlessly across the band. Track holds the segment list TWICE; the
   animation slides exactly half its width for a seamless loop. */
#ticker { overflow: hidden; width: 100%; height: 34px; line-height: normal; }
.tk-track { display: inline-flex; align-items: center; height: 34px; white-space: nowrap;
  will-change: transform; animation: tk-scroll var(--tk-dur, 40s) linear infinite; }
@keyframes tk-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tk-seg { display: inline-flex; align-items: center; gap: 5px; padding: 0 14px; height: 34px;
  border-right: 1px solid rgba(107,116,128,.28); font-family: var(--f-mono);
  font-size: 8px; letter-spacing: .4px; color: #b7bec8; }
.tk-seg .tk-live { color: #e0524a; font-weight: 700; }
.tk-seg .tk-final { color: #6b7480; }
.tk-seg .tk-score { color: #f5d34a; font-weight: 700; }
.tk-seg .tk-vs { color: #6b7480; padding: 0 2px; }
.tk-seg .tk-tag { color: #57b768; }
.tk-seg .avatar, .tk-seg .avatar-logo { flex: 0 0 auto; border-radius: 2px; }
#ticker:hover .tk-track { animation-play-state: paused; }

#bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 30;
  display: flex; gap: 5px;
  padding: 8px 8px calc(10px + env(safe-area-inset-bottom));
  background: #101318;
  border-top: 1px solid var(--edge-hi);
}
.nav-btn {
  flex: 1 1 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 9px 2px 7px;
  border: 1px solid var(--edge-hi);
  background: linear-gradient(180deg, var(--steel-hi), var(--steel-lo));
  color: #cfd6de;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%, 0 8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 -3px 4px rgba(0,0,0,.5);
}
.nav-ico { height: 20px; display: flex; align-items: center; font-size: 18px; line-height: 1; }
.nav-lbl { font-family: var(--f-disp); font-style: italic; font-weight: 700; font-size: 10px; letter-spacing: .5px; }
.nav-btn.on {
  color: #14171b;
  border-color: #e6e9ee;
  background: linear-gradient(180deg, #eef1f5 0%, #aab1bc 100%);
  box-shadow: 0 0 12px rgba(230,233,238,.35), inset 0 1px 0 rgba(255,255,255,.7);
  text-shadow: none;
}

/* ============ scoreboard ============ */
.scoreboard { display: flex; flex-direction: column; }
.sb-main {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 6px 8px;
  background:
    radial-gradient(ellipse at 50% -30%, rgba(79,155,255,.12), transparent 60%),
    linear-gradient(180deg, #14171c, #0b0d10);
  border: 1px solid #22262d; border-radius: 3px;
}
.sb-team { display: flex; align-items: center; gap: 9px; min-width: 0; position: relative; }
.sb-team.right { flex-direction: row-reverse; text-align: right; }
.sb-team::before {
  content: ''; position: absolute; inset: -8px -6px;
  background: linear-gradient(100deg, var(--tc, transparent) 0%, transparent 75%);
  opacity: .25; z-index: 0;
}
.sb-team.right::before { background: linear-gradient(-100deg, var(--tc, transparent) 0%, transparent 75%); }
.sb-team > * { position: relative; z-index: 1; }
.sb-team-name { font-family: var(--f-disp); font-style: italic; font-weight: 700; font-size: 12px; letter-spacing: .5px; color: #fff; line-height: 1.25; white-space: pre-line; text-transform: uppercase; text-shadow: 0 1px 0 rgba(0,0,0,.7); }
.sb-score { font-family: var(--f-mono); font-weight: 700; font-size: 30px; line-height: 1; color: var(--yellow); text-shadow: 0 2px 0 rgba(0,0,0,.8); }
.sb-mid { text-align: center; flex: 0 0 auto; padding: 6px 10px; background: #060708; border: 1px solid #262b33; border-radius: 3px; }
.sb-q { font-size: 10px; letter-spacing: 2px; color: var(--ink-dim); }
.sb-clock { font-family: var(--f-mono); font-weight: 700; font-size: 19px; color: #fff; margin: 3px 0 2px; }
.sb-poss { color: var(--red); font-size: 11px; }
.sb-dots { display: flex; gap: 5px; justify-content: center; margin-top: 3px; }
.sb-dots i { width: 6px; height: 6px; border-radius: 50%; background: #262b33; }
.sb-dots i.r { background: var(--red); }
.sb-strip {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 7px; padding: 7px 14px;
  background: linear-gradient(180deg, #1c2027, #0e1014);
  border: 1px solid #2b3038; border-radius: 3px;
  font-size: 11.5px; letter-spacing: 1px; color: #fff; font-weight: 700;
}
.sb-strip span:last-child { background: #060708; border: 1px solid #2b3038; color: var(--yellow); padding: 2px 8px; border-radius: 2px; }

/* ============ field: sim untouched, steel frame around it ============ */
.field-wrap { padding: 8px; }
.cctv { position: relative; border-radius: 3px; overflow: hidden; border: 1px solid #171a10; background: #0d0f09; box-shadow: inset 0 0 0 1px rgba(0,0,0,.8); }
.cctv canvas { display: block; width: 100%; image-rendering: pixelated; }
.cctv::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.24) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, rgba(143,174,106,.06), rgba(0,0,0,.4) 100%);
}
.cctv-ui { position: absolute; inset: 0; z-index: 3; pointer-events: none;
  font-family: var(--f-mono); font-weight: 700; font-size: 8px; letter-spacing: 1px;
  color: #eaf2dd; text-shadow: 0 0 4px rgba(0,0,0,.9), 1px 1px 0 rgba(0,0,0,.8); }
.cctv-rec  { position: absolute; top: 6px; left: 8px; color: #ff6a5c; animation: blink 1.2s steps(2) infinite; }
.cctv-cam  { position: absolute; top: 6px; right: 8px; }
.cctv-time { position: absolute; bottom: 5px; left: 8px; color: #d8c66a; }
.cctv-tag  { position: absolute; bottom: 5px; right: 8px; color: #8a9678; }
.cctv-ui .cnr { position: absolute; width: 10px; height: 10px; border: 1px solid rgba(234,242,221,.65); }
.cctv-ui .tl { top: 3px; left: 3px; border-right: none; border-bottom: none; }
.cctv-ui .tr { top: 3px; right: 3px; border-left: none; border-bottom: none; }
.cctv-ui .bl { bottom: 3px; left: 3px; border-right: none; border-top: none; }
.cctv-ui .br { bottom: 3px; right: 3px; border-left: none; border-top: none; }

/* ============ last-play row ============ */
.lastplay { display: flex; align-items: center; gap: 10px; padding: 10px; }
.lp-lbl {
  flex: 0 0 auto; text-align: center;
  font-size: 9px; letter-spacing: 1px; color: var(--ink-dim); line-height: 1.7;
  background: #0e1014; border: 1px solid #2b3038; border-radius: 3px; padding: 6px 10px;
}
.lp-lbl b { color: #fff; font-size: 11px; }
.lp-main { flex: 1; min-width: 0; }
.lp-play { font-size: 10.5px; color: #fff; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-gain { font-size: 10px; color: var(--yellow); margin-top: 3px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-allbtn { flex: 0 0 auto; font-size: 9.5px; font-weight: 700; color: var(--blue-lnk); letter-spacing: .5px; }
.lp-allbtn::after { content: ' \203A'; }

/* legacy pbp (home lists) */
.pbp { display: flex; align-items: center; gap: 11px; padding: 9px 10px; }
.pbp .mark { flex: 0 0 auto; }
.pbp-txt { flex: 1; min-width: 0; }
.pbp-line1 { font-size: 11.5px; letter-spacing: .3px; }
.pbp-line2 { font-size: 10px; margin-top: 3px; opacity: .75; }
.pbp-time { text-align: right; font-size: 10px; opacity: .7; line-height: 1.7; }
.panel > .pbp { border: 1px solid #22262d; border-radius: 3px; background: #101318; margin-top: 8px; }

/* ============ open position row (sage LCD) ============ */
.pos-card { display: flex; align-items: center; gap: 9px; padding: 10px; cursor: pointer; }
.pos-card .mark { flex: 0 0 auto; }
.pos-main { flex: 1 1 auto; min-width: 0; }
.pos-title { font-weight: 700; font-size: 13px; letter-spacing: .3px; white-space: nowrap; }
.pos-sub { font-size: 10.5px; margin-top: 3px; }
.pos-live { font-size: 9.5px; margin-top: 3px; color: var(--lcd-dim); }
.pos-live::before { content: '\25CF '; color: var(--green-dk); }
.pos-spark { flex: 0 0 64px; }
.pos-spark canvas { width: 64px; height: 34px; display: block; }
.price-chip {
  flex: 0 0 auto; text-align: center;
  background: #060708; border: 1px solid #2b3038; border-radius: 3px;
  padding: 5px 9px;
}
.price-chip .p { color: var(--yellow); }
.price-chip .p { font-weight: 700; font-size: 15px; }
.price-chip .d { font-size: 9px; font-weight: 700; margin-top: 1px; }
.pos-pnl { flex: 0 0 auto; text-align: right; }
.pos-pnl .lbl { font-size: 9px; color: var(--lcd-dim); letter-spacing: 1px; font-weight: 700; }
.pos-pnl .val { font-weight: 700; font-size: 14px; margin-top: 2px; }

/* ============ fantasy player cards ============ */
.fantasy-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.fp-card {
  background: linear-gradient(180deg, #14171c, #0b0d10);
  border: 1px solid #3a414b; border-radius: 3px;
  overflow: hidden; text-align: center; padding-bottom: 7px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.fp-photo { width: 100%; aspect-ratio: 1/1.05; display: block; border-bottom: 1px solid #22262d; }
.fp-name { font-size: 8.5px; font-weight: 700; letter-spacing: .3px; margin-top: 6px; color: #fff; white-space: nowrap; overflow: hidden; }
.fp-meta { font-size: 7.5px; color: var(--ink-dim); letter-spacing: .5px; margin-top: 2px; }
.fp-pts  { font-family: var(--f-mono); font-weight: 700; font-size: 15px; margin-top: 4px; color: var(--yellow); text-shadow: 0 1px 0 rgba(0,0,0,.7); }
.fp-pts-lbl { font-size: 7px; letter-spacing: 1.5px; color: var(--ink-faint); margin-top: 1px; }

/* ============ market rows (2K broadcast cells) ============ */
.mkt-card {
  display: flex; align-items: center; gap: 10px;
  padding: 9px; margin-top: 8px; cursor: pointer;
  background: linear-gradient(180deg, #1a1e24, #0e1014);
  border: 1px solid #3a414b; border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}
.mkt-card .mark { flex: 0 0 auto; }
.mkt-q { flex: 1 1 auto; min-width: 0; }
.mkt-q .q { font-weight: 700; font-size: 11.5px; line-height: 1.45; color: #fff; }
.mkt-q .meta { font-size: 9.5px; color: var(--ink-dim); margin-top: 3px; letter-spacing: .5px; }
.yn { display: flex; gap: 6px; flex: 0 0 auto; }
.yn-btn {
  min-width: 74px; text-align: center; padding: 6px 6px 5px;
  border-radius: 3px; font-weight: 700; font-size: 9px; letter-spacing: 1px;
  cursor: pointer; line-height: 1.5;
}
.yn-btn .v { font-family: var(--f-mono); font-weight: 700; font-size: 16px; display: block; margin: 1px 0; }
.yn-btn .dl { display: block; font-size: 8px; font-weight: 700; }
.yn-btn.yes { background: linear-gradient(180deg, #16330f, #0c1d08); border: 1px solid #2c5c22; color: #7de06a; }
.yn-btn.yes .v { color: #d9ffd0; }
.yn-btn.no  { background: linear-gradient(180deg, #331010, #1d0808); border: 1px solid #6c2018; color: #ff7a68; }
.yn-btn.no .v { color: #ffd6cf; }

/* ============ stat tiles (sage LCD, keep) ============ */
.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat-tile { padding: 10px 9px; text-align: center; }
.stat-tile .lbl { font-size: 9px; font-weight: 700; letter-spacing: .5px; color: var(--lcd-ink); }
.stat-tile .val { font-family: var(--f-mono); font-weight: 700; font-size: 16px; margin-top: 5px; }
.stat-tile .sub { font-size: 8.5px; font-weight: 700; margin-top: 4px; color: var(--lcd-dim); }
.btn-mini {
  display: inline-block; margin-top: 5px;
  background: linear-gradient(180deg, #e6e9ee, #9aa2ac); color: #14171b;
  border: 1px solid #0b0d10;
  font-size: 9px; font-weight: 700; letter-spacing: 1px;
  border-radius: 3px; padding: 5px 12px; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

/* ============ tables ============ */
table.grid { width: 100%; border-collapse: collapse; font-size: 11px; }
table.grid th {
  text-align: left; font-size: 8.5px; letter-spacing: 1.5px; color: var(--ink-faint);
  font-weight: 700; padding: 4px 4px 7px;
}
table.grid td { padding: 7px 4px; color: var(--ink); border-top: 1px solid #22262d; }
table.grid td.num, table.grid th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.grid td.live { color: var(--yellow); font-weight: 700; }
table.grid .pos-tag { color: var(--ink-faint); font-size: 8.5px; margin-right: 5px; }
table.grid .tm { color: var(--ink-faint); font-size: 8.5px; margin-left: 5px; }
table.grid tr.total td { border-top: 1px solid var(--edge-hi); font-weight: 700; color: #fff; }
table.grid .mini { vertical-align: middle; margin-right: 6px; }

/* ============ matchup hero ============ */
.matchup-hero { padding: 10px; }
.mh-top { display: flex; justify-content: space-between; align-items: center;
  margin: -10px -10px 10px; padding: 8px 14px 7px;
  font-family: var(--f-disp); font-style: italic; font-weight: 800; font-size: 15px; color: #fff;
  background: linear-gradient(180deg, #5a6270 0%, #2f343c 55%, #1a1d22 100%);
  border-bottom: 2px solid #0b0d10;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%, 0 10px);
  text-shadow: 1px 2px 0 rgba(0,0,0,.55);
}
.mh-main {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 4px;
  background: radial-gradient(ellipse at 50% -40%, rgba(79,155,255,.14), transparent 65%);
}
.mh-side { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mh-side .mark { flex: 0 0 auto; }
.mh-side.right { flex-direction: row-reverse; text-align: right; }
.mh-name { font-family: var(--f-disp); font-style: italic; font-weight: 700; font-size: 14px; letter-spacing: .5px; color: #fff; text-transform: uppercase; }
.mh-score {
  font-family: var(--f-mono); font-weight: 700; font-size: 18px; color: var(--yellow);
  margin-top: 3px; background: #060708; border: 1px solid #2b3038; border-radius: 3px;
  padding: 3px 6px; display: inline-block; text-shadow: 0 1px 0 rgba(0,0,0,.8);
}
.mh-proj { font-size: 8.5px; color: var(--ink-dim); letter-spacing: 1px; margin-top: 4px; font-weight: 700; }
.mh-vs {
  width: 34px; height: 26px; flex: 0 0 auto; margin: 0 2px;
  clip-path: polygon(22% 0, 78% 0, 100% 50%, 78% 100%, 22% 100%, 0 50%);
  background: linear-gradient(180deg, #4a515c, #16191e);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-disp); font-style: italic; font-weight: 800; font-size: 12px; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
}
/* win probability: split bar */
.winbar { margin-top: 10px; padding: 8px 10px 6px; background: #0e1014; border: 1px solid #2b3038; border-radius: 3px; }
.winbar-row { display: flex; align-items: center; gap: 10px; }
.winbar .pct { font-family: var(--f-mono); font-weight: 700; font-size: 15px; color: var(--yellow); }
.winbar .bar { flex: 1; height: 12px; border-radius: 2px; background: #1b1d21; overflow: hidden; display: flex; border: 1px solid #000; }
.winbar .bar .g { height: 100%; background: linear-gradient(180deg, #e6e9ee, #9aa2ac); }
.winbar .bar .r { height: 100%; flex: 1; background: linear-gradient(180deg, #3a3f47, #23272e); }
.winbar .cap { text-align: center; font-size: 8px; letter-spacing: 2.5px; color: var(--ink-faint); margin-top: 5px; font-weight: 700; }

/* ============ league grid ============ */
.league-grid { display: grid; grid-template-columns: 1.62fr 1fr; gap: 10px; }
.league-grid > .panel { min-width: 0; overflow: hidden; }
.league-grid table.grid { font-size: 9px; }
.league-grid table.grid td { white-space: nowrap; padding: 7px 1px; }
.league-grid table.grid th { padding: 4px 1px 7px; font-size: 7px; }
.league-grid table.grid td.tm { font-size: 8px; margin: 0; color: var(--ink-faint); }
.league-grid table.grid .pos-tag { font-size: 7px; margin-right: 3px; }
.league-grid .panel-head { font-size: 12.5px; gap: 5px; padding: 7px 10px 6px; }
.league-grid .view-all { font-size: 7.5px; }
.league-grid .panel { padding: 10px 8px; }
.league-grid .panel-head { margin: -10px -8px 10px; }
tr.you-row td { background: rgba(230,233,238,.13); color: #fff; }

/* standings helmets — sliced from the owner's mockup */
.st-helm-img { width: 26px; height: 21px; object-fit: cover; vertical-align: -6px; margin-right: 6px; border-radius: 2px; }

/* hero helmets — sliced from the owner's mockup */
.helm-img { width: 58px; height: auto; display: block; flex: 0 0 auto; border-radius: 3px; box-shadow: 0 2px 8px rgba(0,0,0,.6); }

/* ============ activity feed (sage rows like mock) ============ */
.act-row { display: flex; gap: 10px; padding: 9px 10px; align-items: center; margin-top: 7px;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.05) 0 1px, transparent 1px 3px),
    var(--lcd);
  color: var(--lcd-ink); border-radius: 3px; border: 1px solid #171a10; }
.act-row:first-child { margin-top: 0; }
.act-ico {
  flex: 0 0 30px; height: 30px; border-radius: 3px;
  background: rgba(0,0,0,.25);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  filter: grayscale(1) opacity(.8);
}
.act-main { flex: 1; min-width: 0; }
.act-l1 { font-size: 10.5px; font-weight: 700; letter-spacing: .3px; }
.act-l1 .sub { font-weight: 600; opacity: .7; }
.act-l2 { font-size: 9.5px; margin-top: 2px; opacity: .8; }
.act-time { font-size: 9px; opacity: .65; flex: 0 0 auto; }

/* ============ portfolio ============ */
.pf-card { display: flex; flex-direction: column; gap: 7px; padding: 10px; margin-top: 8px; cursor: pointer; }
.pf-top { display: flex; align-items: center; gap: 10px; }
.pf-title { flex: 1; min-width: 0; }
.pf-title .q { font-weight: 700; font-size: 13px; }
.pf-title .s { font-size: 10px; font-weight: 700; margin-top: 3px; color: var(--lcd-dim); }
.pf-bottom { display: flex; align-items: flex-end; gap: 12px; padding-left: 2px; }
.pf-kv .v { font-size: 11.5px; font-weight: 700; }
.pf-kv .k { font-size: 8px; letter-spacing: 1px; color: var(--lcd-dim); font-weight: 700; margin-top: 2px; }
.pf-spark { flex: 1; }
.pf-spark canvas { width: 100%; height: 30px; display: block; }
.pf-pnl { font-weight: 700; font-size: 13px; text-align: right; }
.pf-pnl .k { font-size: 8px; letter-spacing: 1px; color: var(--lcd-dim); font-weight: 700; margin-top: 2px; }

/* live players table rows */
.lp-row { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-top: 1px solid #22262d; }
.lp-row:first-child { border-top: none; }
.lp-row .mark { flex: 0 0 auto; }
.lp-name { flex: 1; min-width: 0; font-size: 11px; font-weight: 700; letter-spacing: .5px; color: var(--yellow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-name .tm { font-size: 8.5px; color: var(--ink-dim); margin-left: 5px; font-weight: 600; }
.lp-num { width: 46px; text-align: right; font-size: 11.5px; font-weight: 700; color: var(--yellow); font-variant-numeric: tabular-nums; }
.lp-num.dim { color: var(--ink-dim); }
.lp-head { display: flex; gap: 10px; padding: 0 2px 5px; font-size: 8.5px; letter-spacing: 1.5px; color: var(--ink-faint); font-weight: 700; }
.lp-head .a { flex: 1; padding-left: 46px; } .lp-head .b { width: 46px; text-align: right; }

/* ============ profile ============ */
.prof-card { display: flex; flex-direction: column; gap: 0; padding: 10px; }
.prof-top { display: flex; gap: 12px; align-items: center; padding-bottom: 10px; }
.prof-id { flex: 1; }
.prof-name { font-family: var(--f-disp); font-style: italic; font-weight: 800; font-size: 26px; letter-spacing: .5px; color: #fff; text-transform: uppercase; line-height: 1; text-shadow: 1px 2px 0 rgba(0,0,0,.6); }
.prof-badge { font-family: var(--f-disp); font-style: italic; font-weight: 700; font-size: 13px; margin-top: 4px; color: var(--ink-dim); letter-spacing: 1px; text-transform: uppercase; }
.prof-badge .star { color: var(--blue-lnk); }
.prof-rankchip {
  flex: 0 0 auto; text-align: center;
  clip-path: polygon(14% 0, 86% 0, 100% 50%, 86% 100%, 14% 100%, 0 50%);
  background: linear-gradient(180deg, #4a515c, #14171b);
  padding: 10px 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
}
.prof-rankchip .k { font-size: 7.5px; letter-spacing: 2px; font-weight: 700; color: var(--ink-dim); }
.prof-rankchip .v { font-family: var(--f-mono); font-weight: 700; font-size: 19px; margin-top: 2px; color: #fff; }
/* silver stat plate */
.prof-stats {
  display: flex; gap: 0; padding: 9px 0;
  background: linear-gradient(180deg, var(--silver-hi), var(--silver-lo));
  border-radius: 3px; border: 1px solid #14171b;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
  color: var(--silver-ink);
}
.prof-stat { flex: 1; padding: 0 10px; border-left: 1px solid rgba(20,23,27,.3); }
.prof-stat:first-child { border-left: none; }
.prof-stat .k { font-size: 7.5px; letter-spacing: 1px; font-weight: 700; color: #3c434c; }
.prof-stat .v { font-family: var(--f-mono); font-weight: 700; font-size: 12.5px; margin-top: 3px; }
.prof-stat .s { font-size: 8px; font-weight: 700; margin-top: 2px; color: #1d7a2c; }

.prow { display: flex; align-items: center; gap: 12px; padding: 12px; cursor: pointer; }
.prow-ico {
  flex: 0 0 40px; height: 40px; border-radius: 3px;
  background: #0e1014; border: 1px solid #2b3038;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
  filter: grayscale(1) sepia(.25) hue-rotate(10deg) opacity(.85);
}
.prow-main { flex: 1; min-width: 0; }
.prow-t { font-size: 12px; font-weight: 700; letter-spacing: .5px; color: #fff; }
.prow-s { font-size: 9.5px; color: var(--ink-dim); margin-top: 2px; line-height: 1.5; }
.prow-cta { font-size: 15px; font-weight: 700; color: var(--ink-dim); }
.prow-cta.btn {
  font-size: 12px; font-family: var(--f-disp); font-style: italic; font-weight: 800; letter-spacing: 1px; color: #14171b;
  background: linear-gradient(180deg, #e6e9ee, #9aa2ac); border: 1px solid #0b0d10;
  border-radius: 3px; padding: 9px 18px; text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.prow.logout {
  box-shadow: inset 0 0 0 2px var(--edge-lo), inset 0 0 0 3px rgba(201,106,95,.55), inset 0 0 0 4px rgba(0,0,0,.6);
}
.prow.logout .prow-t { color: #e0988c; }
.prow.logout .prow-s { color: #9a7b74; }
.studio-credit { text-align: center; font-size: 8.5px; color: var(--ink-faint); letter-spacing: 1px; padding: 12px 0 4px; font-weight: 500; }

/* ============ market detail ============ */
.md-head { display: flex; gap: 11px; padding: 10px; }
.md-head .mark { flex: 0 0 auto; }
.md-q { flex: 1; min-width: 0; }
.md-q .q { font-weight: 700; font-size: 15px; line-height: 1.4; }
.md-q .meta { font-size: 10px; font-weight: 600; color: var(--lcd-dim); margin-top: 5px; }
.md-chips { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.chip {
  font-size: 9px; font-weight: 700; letter-spacing: 1px;
  border: 1px solid #171a10; border-radius: 3px; padding: 5px 9px;
  background: rgba(0,0,0,.75); color: #e8dfc8; cursor: pointer; white-space: nowrap;
}
.chip.live { color: #7de06a; }
.chip.live::before { content: '\25CF '; }
.md-prices { display: flex; gap: 8px; padding: 0 10px 10px; }
.md-price { flex: 1; border-radius: 3px; padding: 10px; text-align: center; border: 1px solid #171a10; cursor: pointer; }
.md-price.yes {
  background: linear-gradient(180deg, #16330f, #0c1d08);
  border-color: #2c5c22; color: #7de06a;
}
.md-price.no {
  background: linear-gradient(180deg, #331010, #1d0808);
  border-color: #6c2018; color: #ff9a88;
}
.md-price .p { font-family: var(--f-mono); font-weight: 700; font-size: 18px; }
.md-price .d { font-size: 9.5px; font-weight: 700; margin-top: 3px; }

.tf-strip { display: flex; gap: 6px; padding: 0 0 9px; align-items: center; }
.tf-strip .tf {
  font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--ink-dim);
  border: 1px solid #2b3038; border-radius: 3px; padding: 6px 13px; background: #14171c;
}
.tf-strip .tf.on { background: linear-gradient(180deg, #e6e9ee, #9aa2ac); color: #14171b; border-color: #e6e9ee; }
.chart-wrap canvas { width: 100%; height: 190px; display: block; }

.md-stats { display: flex; padding: 10px 2px; }
.md-stat { flex: 1; text-align: center; padding: 0 6px; border-left: 1px solid #2b3038; }
.md-stat:first-child { border-left: none; }
.md-stat .k { font-size: 8px; letter-spacing: 1px; color: var(--ink-faint); font-weight: 700; }
.md-stat .v { font-size: 12px; font-weight: 700; margin-top: 5px; color: #fff; line-height: 1.5; }
.md-stat .v.up { color: var(--green); }

/* trade ticket */
.ticket-head { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 2px 10px; }
.ticket-head .t { font-family: var(--f-disp); font-style: italic; font-weight: 800; font-size: 17px; letter-spacing: .5px; color: #fff; text-transform: uppercase; }
.ticket-head .bal { font-size: 10px; font-weight: 700; color: var(--ink-dim); }
.side-row { display: flex; gap: 8px; }
.side-btn {
  flex: 1; border-radius: 3px; padding: 11px; text-align: center;
  font-family: var(--f-mono); font-weight: 700; font-size: 14px;
  border: 1px solid #171a10; opacity: .5; cursor: pointer;
}
.side-btn.yes { background: linear-gradient(180deg, #16330f, #0c1d08); border-color: #2c5c22; color: #7de06a; }
.side-btn.no  { background: linear-gradient(180deg, #331010, #1d0808); border-color: #6c2018; color: #ff9a88; }
.side-btn.on  { opacity: 1; box-shadow: 0 0 0 2px #e6e9ee; }
.amt-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.amt-lbl { font-size: 9.5px; font-weight: 700; letter-spacing: 1px; color: var(--ink-dim); flex: 0 0 auto; }
.stepper { display: flex; align-items: center; border: 1px solid #2b3038; border-radius: 3px; background: #0e1014; overflow: hidden; flex: 1; }
.stepper button { width: 42px; padding: 9px 0; font-size: 15px; color: var(--ink-dim); }
.stepper .amt { flex: 1; text-align: center; font-family: var(--f-mono); font-weight: 700; font-size: 15px; color: #fff; }
.quick-row { display: flex; gap: 7px; margin-top: 9px; }
.quick {
  flex: 1; text-align: center; padding: 9px 0;
  font-size: 10.5px; font-weight: 700; color: #dfe3e9;
  border: 1px solid var(--edge-hi); border-radius: 3px;
  background: linear-gradient(180deg, var(--steel-hi), var(--steel-lo)); cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.quick.max { background: linear-gradient(180deg, #e6e9ee, #9aa2ac); color: #14171b; border-color: #e6e9ee; }
.ticket-info { display: flex; justify-content: space-between; margin-top: 10px; font-size: 9.5px; font-weight: 700; color: var(--ink-dim); }
.place-order {
  width: 100%; margin-top: 11px;
  background: linear-gradient(180deg, #f2f4f7 0%, #b8bfc9 45%, #848c98 100%);
  border: 1px solid #0b0d10; border-radius: 3px;
  color: #14171b; font-family: var(--f-disp); font-style: italic; font-weight: 800;
  font-size: 19px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 12px; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 3px 10px rgba(0,0,0,.5);
  text-shadow: 0 1px 0 rgba(255,255,255,.45);
}
.place-order:active { transform: translateY(1px); }

/* exposure rows (sage) */
.exp-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin-top: 7px; }
.exp-main { flex: 1; min-width: 0; }
.exp-l1 { font-size: 11.5px; font-weight: 700; letter-spacing: .3px; }
.exp-l1 .tag { font-size: 9px; color: var(--lcd-dim); margin-left: 6px; }
.exp-l2 { font-size: 9.5px; font-weight: 600; margin-top: 2px; color: var(--lcd-dim); }
.exp-lvl { text-align: right; }
.exp-lvl .v { font-weight: 700; font-size: 13px; }
.exp-lvl .s { font-size: 9px; font-weight: 700; margin-top: 2px; }

/* ============ roster carousel (home) ============ */
.car-row { display: flex; gap: 7px; overflow-x: auto; padding: 4px 2px; scrollbar-width: none; }
.car-row::-webkit-scrollbar { display: none; }
.car-card {
  flex: 0 0 74px; text-align: center; padding-bottom: 6px;
  background: linear-gradient(180deg, #14171c, #0b0d10);
  border: 1px solid #3a414b; border-radius: 3px; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.car-card .fp-name { font-size: 7.5px; margin-top: 5px; }
.car-card .fp-pts { font-size: 13px; margin-top: 2px; }
.car-dots { display: flex; gap: 6px; justify-content: center; padding-top: 8px; }
.car-dots i { width: 6px; height: 6px; border-radius: 50%; background: #2b3038; }
.car-dots i.on { background: var(--blue-lnk); }

/* roster market row — silver plate like the mock */
.rm-row {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; cursor: pointer;
  background: linear-gradient(180deg, var(--silver-hi), var(--silver-lo));
  border-radius: 3px; border: 1px solid #14171b;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
  color: var(--silver-ink);
}
.rm-main { flex: 1; min-width: 0; }
.rm-l1 { font-weight: 700; font-size: 13px; }
.rm-l1 .tag { font-size: 9.5px; font-weight: 700; opacity: .65; margin-left: 6px; }
.rm-l2 { font-size: 10px; font-weight: 700; color: #1d7a2c; margin-top: 3px; }
.rm-price { text-align: center; background: rgba(20,23,27,.12); border: 1px solid rgba(20,23,27,.4); border-radius: 3px; padding: 5px 12px; }
.rm-price .p { font-family: var(--f-mono); font-weight: 700; font-size: 17px; }
.rm-price .d { font-size: 9px; font-weight: 700; margin-top: 1px; color: #1d7a2c; }

/* ============ toast ============ */
#toast-wrap { position: fixed; left: 50%; bottom: calc(150px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 95; display: flex; flex-direction: column; gap: 8px; align-items: center; width: max-content; max-width: 92vw; }
.toast {
  background: linear-gradient(180deg, var(--steel-hi), var(--steel-lo));
  color: #fff; border: 1px solid var(--edge-hi); border-radius: 3px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .5px;
  padding: 10px 16px; box-shadow: 0 6px 18px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.25);
  animation: toast-in .18s ease-out;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============ avatar / mark ============ */
.mark { display: inline-flex; border-radius: 3px; overflow: hidden; }
.mark svg, .mark canvas { display: block; image-rendering: pixelated; }
.avatar {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-disp); font-style: italic; font-weight: 800;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 0 rgba(0,0,0,.5);
  border-radius: 3px; position: relative; overflow: hidden;
  border: 1px solid rgba(0,0,0,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

/* ================================================================
   8-BIT TYPE PASS — the Tecmo Bowl font (Press Start 2P) everywhere,
   layered on the 2K steel design. PS2P runs ~1em/glyph, so every
   size below is rebalanced; synthetic italic keeps the 2K slant.
   ================================================================ */
:root {
  --f-disp: 'Press Start 2P', 'Barlow Condensed', sans-serif;
  --f-mono: 'Press Start 2P', 'IBM Plex Mono', monospace;
}
html, body { font-size: 9px; letter-spacing: 0; }

/* header */
.hdr-title { font-size: 13px; letter-spacing: 0; }
.hdr-tag { font-size: 5px; letter-spacing: 1.5px; line-height: 2; }

/* banners + links */
.panel-head { font-size: 10px; letter-spacing: 0; }
.mh-top { font-size: 9.5px; }
.view-all { font-size: 6.5px; }
.live-dot { font-size: 7px; letter-spacing: 0; }

/* tabs + nav */
.tab-strip .tab { font-size: 8px; letter-spacing: 0; padding: 10px 12px 9px; }
.nav-lbl { font-size: 6px; }

/* scoreboard */
.sb-team-name { font-size: 6.5px; line-height: 1.7; }
.sb-score { font-size: 20px; }
.sb-q { font-size: 6.5px; letter-spacing: 1px; }
.sb-clock { font-size: 13px; }
.sb-strip { font-size: 8px; letter-spacing: 0; }

/* last play + pbp */
.lp-lbl { font-size: 6px; }
.lp-lbl b { font-size: 8px; }
.lp-play { font-size: 7.5px; }
.lp-gain { font-size: 6.5px; }
.lp-allbtn { font-size: 6.5px; }
.pbp-line1 { font-size: 8px; line-height: 1.7; }
.pbp-line2 { font-size: 6.5px; }
.pbp-time { font-size: 6.5px; }

/* position card */
.pos-title { font-size: 9px; }
.pos-sub { font-size: 7px; }
.pos-live { font-size: 6px; }
.price-chip .p { font-size: 11px; }
.price-chip .d { font-size: 6px; }
.pos-pnl .lbl { font-size: 5.5px; }
.pos-pnl .val { font-size: 10px; }

/* fantasy cards */
.fp-name { font-size: 5.5px; }
.fp-meta { font-size: 5px; }
.fp-pts { font-size: 11px; }
.fp-pts-lbl { font-size: 4.5px; letter-spacing: 1px; }
.car-card .fp-name { font-size: 5px; }
.car-card .fp-pts { font-size: 9.5px; }

/* market rows */
.mkt-q .q { font-size: 8px; line-height: 1.7; }
.mkt-q .meta { font-size: 6px; }
.yn-btn { font-size: 6px; letter-spacing: 0; min-width: 70px; }
.yn-btn .v { font-size: 11px; }
.yn-btn .dl { font-size: 5px; }

/* stat tiles */
.stat-tile .lbl { font-size: 6px; }
.stat-tile .val { font-size: 10px; }
.stat-tile .sub { font-size: 5.5px; }
.btn-mini { font-size: 6.5px; letter-spacing: 0; }

/* tables */
table.grid { font-size: 7.5px; }
table.grid th { font-size: 5.5px; letter-spacing: 1px; }
table.grid .pos-tag { font-size: 5.5px; }
table.grid .tm { font-size: 5.5px; }
.lp-head { font-size: 5.5px; letter-spacing: 1px; }
.lp-name { font-size: 7.5px; }
.lp-name .tm { font-size: 5.5px; }
.lp-num { font-size: 8px; }

/* matchup hero */
.mh-name { font-size: 8.5px; }
.mh-score { font-size: 13px; }
.matchup-hero .mh-score { font-size: 13px; }
.mh-proj { font-size: 5.5px; }
.mh-vs { font-size: 8px; }
.winbar .pct { font-size: 10px; }
.winbar .cap { font-size: 5.5px; letter-spacing: 2px; }

/* activity */
.act-l1 { font-size: 7px; line-height: 1.7; }
.act-l2 { font-size: 6px; }
.act-time { font-size: 5.5px; }

/* portfolio */
.pf-title .q { font-size: 9px; }
.pf-title .s { font-size: 6.5px; }
.pf-kv .v { font-size: 8px; }
.pf-kv .k { font-size: 5px; }
.pf-pnl { font-size: 9.5px; }
.pf-pnl .k { font-size: 5px; }

/* profile */
.prof-name { font-size: 15px; }
.prof-badge { font-size: 7.5px; }
.prof-rankchip .k { font-size: 5px; letter-spacing: 1px; }
.prof-rankchip .v { font-size: 13px; }
.prof-stat .k { font-size: 4.5px; }
.prof-stat .v { font-size: 7.5px; }
.prof-stat .s { font-size: 5px; }
.prow-t { font-size: 8px; }
.prow-s { font-size: 6px; line-height: 1.8; }
.prow-cta { font-size: 10px; }
.prow-cta.btn { font-size: 8px; letter-spacing: 0; }
.studio-credit { font-size: 5.5px; }

/* market detail */
.md-q .q { font-size: 9.5px; line-height: 1.8; }
.md-q .meta { font-size: 6px; }
.chip { font-size: 6px; letter-spacing: 0; }
.md-price .p { font-size: 12px; }
.md-price .d { font-size: 6px; }
.tf-strip .tf { font-size: 7.5px; letter-spacing: 0; }
.md-stat .k { font-size: 4.5px; }
.md-stat .v { font-size: 7.5px; }

/* ticket */
.ticket-head .t { font-size: 10px; }
.ticket-head .bal { font-size: 6.5px; }
.side-btn { font-size: 10px; }
.amt-lbl { font-size: 6.5px; letter-spacing: 0; }
.stepper .amt { font-size: 11px; }
.quick { font-size: 7px; }
.ticket-info { font-size: 6px; }
.place-order { font-size: 12px; letter-spacing: 0; }

/* exposure + roster market rows */
.exp-l1 { font-size: 7.5px; }
.exp-l1 .tag { font-size: 5.5px; }
.exp-l2 { font-size: 6px; }
.exp-lvl .v { font-size: 9px; }
.exp-lvl .s { font-size: 5.5px; }
.rm-l1 { font-size: 8.5px; }
.rm-l1 .tag { font-size: 6px; }
.rm-l2 { font-size: 6px; }
.rm-price .p { font-size: 11px; }
.rm-price .d { font-size: 5.5px; }

/* toast + cctv */
.toast { font-size: 7.5px; letter-spacing: 0; }
.cctv-ui { font-size: 6.5px; letter-spacing: 0; }
/* 8-bit pass, fit fixes */
.sb-team-name { font-size: 5.5px; line-height: 1.8; }
.sb-score { font-size: 18px; }
.sb-mid { padding: 5px 8px; margin: 0 4px; }
.lp-play { font-size: 7px; }
.lp-lbl { padding: 5px 7px; }

/* 8-bit sprite rendering: keep the pixels hard, never blurred */
.avatar.is-sprite, .fp-photo.is-sprite { image-rendering: pixelated; image-rendering: crisp-edges; }
.helm-img, .st-helm-img, #fb-img { image-rendering: auto; }

/* SELL control on a held position */
.sell-btn {
  flex: 0 0 auto; margin-left: 10px;
  font-family: var(--f-disp); font-style: italic; font-weight: 800;
  font-size: 9px; letter-spacing: 1px; color: #fff;
  background: linear-gradient(180deg, #8a3a30, #4a1d17);
  border: 1px solid #2a0f0b; border-radius: 3px;
  padding: 9px 12px; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.sell-btn:active { transform: translateY(1px); }

/* ---- roster slot picker (draft from the real NFL player pool) ---- */
.pk-input {
  width: 100%; margin: 0 0 9px;
  background: #0b0d10; color: var(--ink);
  border: 1px solid var(--edge-hi); border-radius: 3px;
  font-family: var(--f-mono); font-size: 8px; letter-spacing: 0;
  padding: 11px 10px;
}
.pk-input::placeholder { color: var(--ink-faint); }
.pk-list { max-height: 58vh; overflow-y: auto; }
.pk-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; margin-top: 6px; cursor: pointer;
  background: linear-gradient(180deg, #1a1e24, #0e1014);
  border: 1px solid #3a414b; border-radius: 3px;
}
.pk-main { flex: 1; min-width: 0; }
.pk-name { font-size: 8px; color: #fff; letter-spacing: 0; line-height: 1.6; }
.pk-meta { font-size: 6.5px; color: var(--ink-dim); margin-top: 4px; }
.pk-add {
  flex: 0 0 auto; font-family: var(--f-disp); font-style: italic; font-weight: 800;
  font-size: 9px; letter-spacing: 1px; color: #14171b;
  background: linear-gradient(180deg, #e6e9ee, #9aa2ac);
  border: 1px solid #0b0d10; border-radius: 3px; padding: 8px 11px;
}
tr.row-edit { cursor: pointer; }
tr.row-edit:active td { background: rgba(230,233,238,.10); }

/* empty-roster call to action */
.draft-cta { text-align: center; padding: 16px 10px 6px; }
.dc-t { font-family: var(--f-disp); font-style: italic; font-weight: 800; font-size: 15px; color: #fff; letter-spacing: 1px; }
.dc-s { font-size: 6.5px; color: var(--ink-dim); margin-top: 7px; letter-spacing: 1px; }
.dc-b {
  margin-top: 12px; font-family: var(--f-disp); font-style: italic; font-weight: 800;
  font-size: 12px; letter-spacing: 1px; color: #14171b;
  background: linear-gradient(180deg, #e6e9ee, #9aa2ac);
  border: 1px solid #0b0d10; border-radius: 3px; padding: 10px 20px; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

/* ================= ONBOARDING / LANDING ================= */
.ob-wrap { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.ob-logo { width: 74%; max-width: 300px; margin: 4px auto 0; display: block; }
.ob-tag {
  text-align: center; font-size: 6px; letter-spacing: 2.5px;
  color: var(--ink-dim); margin-bottom: 4px;
}
.ob-panel { padding-bottom: 14px; }
.ob-when { text-align: center; font-size: 8px; color: var(--yellow); letter-spacing: 1px; margin: 4px 0 12px; line-height: 1.8; }
.ob-clock { display: flex; justify-content: center; gap: 8px; }
.ob-unit {
  flex: 1 1 0; text-align: center; padding: 9px 2px 7px;
  background: #060708; border: 1px solid #2b3038; border-radius: 3px;
}
.ob-unit b { display: block; font-family: var(--f-mono); font-weight: 700; font-size: 17px; color: #fff; }
.ob-unit i { display: block; font-style: normal; font-size: 5.5px; letter-spacing: 1.5px; color: var(--ink-dim); margin-top: 5px; }
.ob-clock.small .ob-unit b { font-size: 14px; }
.ob-name { text-align: center; letter-spacing: 2px; }
.ob-go { margin-top: 10px; }
.ob-note { text-align: center; font-size: 5.5px; letter-spacing: 1.5px; color: var(--ink-faint); margin-top: 11px; line-height: 1.9; }
.ob-feat { display: flex; flex-direction: column; gap: 7px; padding: 2px 4px; }
.ob-feat div { font-size: 6.5px; letter-spacing: 1.5px; color: var(--ink-dim); }
.ob-feat b { color: var(--yellow); }

/* ================= DRAFT ROOM ================= */
.dr-live { text-align: center; font-size: 8px; letter-spacing: 1.5px; color: var(--yellow); padding: 4px 0 2px; }
.dr-sub { text-align: center; font-size: 6px; letter-spacing: 1.5px; color: var(--ink-dim); margin-top: 11px; line-height: 2.2; }
.dr-pos { padding: 10px 2px 6px; }
.dr-pos .tab { font-size: 7.5px; padding: 8px 11px 7px; }
.dr-list { max-height: 60vh; overflow-y: auto; }
.pk-add.queued { background: linear-gradient(180deg, #f5d34a, #b99a1e); color: #2c250c; border-color: #6b5a12; }

/* ================= TEAM GRID / ROSTER ================= */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.team-cell {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 8px 2px 7px; cursor: pointer;
  background: linear-gradient(180deg, #1a1e24, #0e1014);
  border: 1px solid #3a414b; border-radius: 3px;
}
.team-cell:active { border-color: var(--edge-hi); }
.tc-ab { font-size: 6.5px; letter-spacing: 1px; color: var(--ink-dim); }
.tm-hero { display: flex; align-items: center; gap: 12px; padding: 4px 2px 2px; }
.tm-name { font-family: var(--f-disp); font-style: italic; font-weight: 800; font-size: 15px; color: #fff; text-transform: uppercase; }
.tm-meta { font-size: 6px; letter-spacing: 1.5px; color: var(--ink-dim); margin-top: 6px; }

/* locked nav items */
.nav-btn.locked { opacity: .38; }
.pk-meta .inj { color: var(--red); font-weight: 400; }

/* ================= SEGA-MADDEN PLAYER CARD ================= */
.mad-back {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(4,5,7,.86);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.mad-card {
  width: 100%; max-width: 330px;
  background: linear-gradient(180deg, var(--steel) 0%, var(--steel-lo) 100%);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px),
                     calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
  box-shadow: inset 0 0 0 2px var(--edge-lo), inset 0 0 0 3px rgba(148,158,170,.55),
              inset 0 0 0 4px rgba(0,0,0,.6), 0 12px 40px rgba(0,0,0,.8);
  padding: 12px;
}
.mad-top {
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(180deg, var(--tc1), var(--tc2));
  margin: -12px -12px 10px; padding: 9px 14px 8px;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%, 0 14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
}
.mad-team { font-family: var(--f-disp); font-style: italic; font-weight: 800; font-size: 15px; color: #fff; text-shadow: 1px 2px 0 rgba(0,0,0,.6); }
.mad-jersey { font-family: var(--f-mono); font-weight: 700; font-size: 17px; color: #fff; text-shadow: 1px 2px 0 rgba(0,0,0,.6); }
.mad-portrait { display: flex; justify-content: center; padding: 4px 0 10px; }
.mad-portrait .fp-photo, .mad-portrait .avatar {
  width: 138px !important; height: 150px !important; aspect-ratio: auto;
  border: 2px solid #0b0d10; box-shadow: 0 0 0 2px rgba(148,158,170,.5);
}
.mad-plate {
  background: linear-gradient(180deg, var(--silver-hi), var(--silver-lo));
  color: var(--silver-ink); border: 1px solid #0b0d10; border-radius: 2px;
  padding: 8px 10px; text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.mad-name { font-family: var(--f-disp); font-style: italic; font-weight: 800; font-size: 17px; text-transform: uppercase; }
.mad-pos { font-size: 7px; letter-spacing: 1.5px; margin-top: 5px; opacity: .8; }
.mad-stats { display: flex; gap: 10px; margin-top: 11px; align-items: stretch; }
.mad-ovr {
  flex: 0 0 66px; text-align: center; padding: 9px 4px;
  background: #060708; border: 1px solid #2b3038; border-radius: 3px;
  display: flex; flex-direction: column; justify-content: center;
}
.mad-ovr b { font-family: var(--f-mono); font-weight: 700; font-size: 24px; color: var(--yellow); }
.mad-ovr i { font-style: normal; font-size: 5.5px; letter-spacing: 2px; color: var(--ink-dim); margin-top: 5px; }
.mad-bars { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.mad-bar { display: flex; align-items: center; gap: 6px; }
.mb-l { flex: 0 0 62px; font-size: 5px; letter-spacing: 1px; color: var(--ink-dim); }
.mb-track { flex: 1; height: 8px; background: #0b0d10; border: 1px solid #2b3038; border-radius: 2px; overflow: hidden; }
.mb-track i { display: block; height: 100%; background: linear-gradient(90deg, #9aa2ac, #e6e9ee); }
.mb-v { flex: 0 0 52px; text-align: right; font-size: 6px; color: var(--ink); }
.mad-close {
  width: 100%; margin-top: 12px; padding: 11px;
  font-family: var(--f-disp); font-style: italic; font-weight: 800; font-size: 11px; letter-spacing: 1px;
  color: #14171b; background: linear-gradient(180deg, #e6e9ee, #9aa2ac);
  border: 1px solid #0b0d10; border-radius: 2px; cursor: pointer;
}
.tap-card { cursor: pointer; }

/* docs */
.doc-sec { padding: 10px 4px 4px; border-top: 1px solid #22262d; margin-top: 10px; }
.doc-sec:first-of-type { border-top: none; margin-top: 0; }
.doc-h { font-family: var(--f-disp); font-style: italic; font-weight: 800; font-size: 11px; color: var(--yellow); letter-spacing: 1px; }
.doc-b { font-size: 7px; line-height: 2.1; color: var(--ink); margin-top: 7px; letter-spacing: .5px; }
.ob-links { text-align: center; font-size: 6px; letter-spacing: 1.5px; color: var(--blue-lnk); }
.ob-links span { cursor: pointer; padding: 4px; }
.dr-live.my-turn { color: #7de06a; animation: blink 1s steps(2) infinite; }

/* ============ internal-scroll shell ============ */
/* Content scrolls INSIDE #screens and stops dead at the ticker's top edge —
   nothing ever slides underneath the ticker or the nav. */
html, body { height: 100%; overflow: hidden; }
#app { height: 100dvh; min-height: 0; }
#screens { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: 10px 10px 18px; min-height: 0; }
#foot-band { position: static; left: auto; bottom: auto; transform: none; flex: 0 0 auto; }
#bottom-nav { position: static; left: auto; bottom: auto; transform: none; flex: 0 0 auto; }
