/* BoxScored – dark stats-dashboard theme */
:root {
  --bg: #14181c; --bg2: #0f1215; --panel: #1b2128; --panel2: #222a33; --line: #2c3440; --line2: #384250;
  --text: #cdd6df; --muted: #8394a5; --white: #fff;
  --orange: #ff8000; --green: #00e054; --blue: #40bcf4; --red: #ff4f4f; --yellow: #f5c518;
  --ga: #00e054; --gb: #40bcf4; --gc: #f5c518; --gd: #ff8000; --gf: #ff4f4f;
  --lg-NFL: #4a7bd0; --lg-NBA: #ff8000; --lg-NHL: #9fb3c8; --lg-CFB: #b07cff;
  --mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Inter Tight", "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --r: 6px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 var(--sans); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--white); text-decoration: none; } a:hover { color: var(--blue); }
h1, h2, h3 { color: var(--white); margin: 0 0 .5rem; line-height: 1.2; }
h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 700; }
h3 { font-size: 1rem; }
p { margin: .4rem 0; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .small { font-size: .8rem; } .b { font-weight: 700; } .pos { color: var(--green); } .neg { color: var(--red); } .danger { color: var(--red) !important; }
.big { font-size: 1.5rem; color: var(--white); font-weight: 700; } .big2 { font-size: 1.1rem; color: var(--white); }
.spacer { flex: 1; } .pad { padding: .5rem 0; } .wide { width: 100%; }
.priv { color: var(--orange); }
.note { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.note.hot { color: var(--orange); }
input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea { background: var(--bg2); border: 1px solid var(--line2); border-radius: 4px; padding: .45rem .6rem; color: var(--white); width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 2px rgba(64, 188, 244, .2); }
input[readonly] { color: var(--muted); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--green); }
select { appearance: auto; }

/* NAV */
.nav { background: var(--bg2); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.nav-inner { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; gap: 1rem; padding: .55rem 1rem; }
.logo { display: inline-flex; align-items: flex-start; gap: .22rem; color: var(--white); white-space: nowrap; }
.logo:hover { color: var(--white); }
.logo-balls { flex: none; }
.logo-text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.035em; line-height: 1; }
.logo-tagline { font-family: var(--display); font-weight: 700; font-size: .55rem; letter-spacing: .01em; line-height: 1.15; color: var(--muted); margin-top: .18rem; white-space: nowrap; }
.logo-accent { color: var(--green); }
.nav-links { display: flex; gap: .2rem; }
.nav-links a { padding: .4rem .65rem; border-radius: 4px; color: var(--muted); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; }
.nav-links a:hover, .nav-links a.active { color: var(--white); background: var(--panel2); }
.nav-search { flex: 1; max-width: 320px; margin-left: auto; }
.nav-search input { padding: .35rem .7rem; border-radius: 99px; background: var(--panel); font-size: .85rem; }
.nav-menu { display: flex; align-items: center; gap: 1rem; flex: 1; min-width: 0; }
.nav-right { display: flex; align-items: center; gap: .6rem; }
.navlink-plain { color: var(--muted); font-weight: 600; font-size: .85rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line2); border-radius: 4px; color: var(--white); padding: .2rem .55rem; font-size: 1.1rem; cursor: pointer; margin-left: auto; }
.usermenu { position: relative; }
.um-btn { display: flex; align-items: center; gap: .4rem; background: none; border: 0; cursor: pointer; color: var(--text); font-size: .85rem; }
.um-drop { display: none; position: absolute; right: 0; top: calc(100% + 6px); background: var(--panel2); border: 1px solid var(--line2); border-radius: var(--r); min-width: 170px; padding: .3rem; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.usermenu.open .um-drop { display: block; }
.um-drop a, .um-drop button { display: block; width: 100%; text-align: left; padding: .45rem .6rem; border-radius: 4px; background: none; border: 0; color: var(--text); cursor: pointer; font-size: .85rem; }
.um-drop a:hover, .um-drop button:hover { background: var(--line); color: var(--white); }

/* LAYOUT */
.main { flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: 1.2rem 1rem 2rem; }
.page.narrow { max-width: 760px; margin: 0 auto; } .page.narrow-wide { max-width: 940px; margin: 0 auto; }
.page-h { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .6rem 0; flex-wrap: wrap; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) 300px; gap: 1.1rem; align-items: start; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.1rem; align-items: start; }
.col-side > * + *, .col-sb > * + * { margin-top: 1rem; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: .9rem 1rem; }
.panel + .panel, .two-col > div > .panel + .panel, .two-col > div > * + * { margin-top: 1rem; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .6rem; }
.panel-h h2 { margin: 0; display: flex; align-items: center; gap: .4rem; }
.panel-sub { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-top: 1px solid var(--line); margin: .8rem 0 .4rem; padding-top: .6rem; font-weight: 700; }
.sticky { position: sticky; top: 70px; }
.crumbs { margin-bottom: .6rem; font-size: .85rem; display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; padding: .5rem 1rem; border-radius: 4px; border: 1px solid transparent; font-weight: 700; cursor: pointer; font-size: .85rem; white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; }
.btn-sm { padding: .35rem .75rem; font-size: .75rem; } .btn-xs { padding: .2rem .55rem; font-size: .68rem; }
.btn-green { background: var(--green); color: #07240f; } .btn-green:hover { background: #2bff7a; color: #07240f; }
.btn-blue { background: var(--blue); color: #04202e; } .btn-blue:hover { background: #73d0f8; color: #04202e; }
.btn-orange { background: var(--orange); color: #2a1300; } .btn-orange:hover { color: #2a1300; background: #ff9a33; }
.btn-ghost { background: transparent; border-color: var(--line2); color: var(--text); } .btn-ghost:hover { border-color: var(--muted); color: var(--white); }
.btn.following { color: var(--green); border-color: rgba(0, 224, 84, .4); }
.btn.following:hover { color: var(--red); border-color: rgba(255, 79, 79, .5); }
.btn:disabled, .chip-btn:disabled { opacity: .35; cursor: default; }
.linkbtn { background: none; border: 0; color: var(--blue); cursor: pointer; padding: 0; font-size: inherit; }
.chip-btn { display: inline-flex; align-items: center; gap: .25rem; background: var(--panel2); border: 1px solid var(--line2); color: var(--muted); border-radius: 99px; padding: .15rem .55rem; font-size: .7rem; cursor: pointer; white-space: nowrap; font-weight: 600; }
.chip-btn:hover { color: var(--white); border-color: var(--muted); }
.chip-btn.big { padding: .45rem .85rem; font-size: .8rem; border-radius: 4px; }
.chip-btn .ico { font-size: .9em; }
.chip-btn.seen.on { color: var(--green); border-color: rgba(0, 224, 84, .45); background: rgba(0, 224, 84, .08); }
.chip-btn.mw.on { color: var(--blue); border-color: rgba(64, 188, 244, .5); background: rgba(64, 188, 244, .08); }
.chip-btn.like.on { color: var(--orange); border-color: rgba(255, 128, 0, .5); background: rgba(255, 128, 0, .08); }
.likebtn, .combtn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .8rem; display: inline-flex; gap: .25rem; align-items: center; padding: .1rem .3rem; }
.likebtn:hover { color: var(--orange); } .likebtn.on { color: var(--orange); }
.likebtn.big { border: 1px solid var(--line2); border-radius: 4px; padding: .35rem .7rem; }
.heart.on { color: var(--orange); } .rw { color: var(--blue); }
.seg { display: inline-flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 4px; padding: 2px; }
.seg button, .seg a { background: none; border: 0; padding: .3rem .8rem; border-radius: 3px; color: var(--muted); cursor: pointer; font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.seg .on { background: var(--panel2); color: var(--white); }
.pills { display: flex; gap: .3rem; flex-wrap: wrap; }
.pill { background: transparent; border: 1px solid var(--line2); color: var(--muted); border-radius: 99px; padding: .2rem .65rem; font-size: .72rem; font-weight: 700; cursor: pointer; letter-spacing: .04em; }
.pill:hover { color: var(--white); } .pill.on { background: var(--white); color: var(--bg); border-color: var(--white); }
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: .9rem; overflow-x: auto; scrollbar-width: none; }
.tab { padding: .55rem .85rem; color: var(--muted); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab:hover { color: var(--white); } .tab.on { color: var(--white); border-bottom-color: var(--green); }

/* ATOMS */
.av { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #111; font-weight: 800; width: 32px; height: 32px; font-size: .75rem; flex: none; border: 1px solid rgba(255,255,255,.15); position: relative; overflow: hidden; }
.av.xs { width: 22px; height: 22px; font-size: .55rem; } .av.sm { width: 28px; height: 28px; font-size: .65rem; } .av.md { width: 40px; height: 40px; font-size: .85rem; }
.av.lg { width: 56px; height: 56px; font-size: 1.1rem; } .av.xl { width: 96px; height: 96px; font-size: 2rem; }
.av-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.av-link { display: inline-flex; }
.ulink { font-weight: 700; color: var(--white); }
.tlogo { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tc); color: #fff; font: 800 .55rem/1 var(--sans); letter-spacing: -.02em; flex: none; box-shadow: inset 0 0 0 2px var(--tc2); text-shadow: 0 1px 1px rgba(0,0,0,.6); }
.tlogo.xs { width: 18px; height: 18px; font-size: .4rem; box-shadow: inset 0 0 0 1.5px var(--tc2); } .tlogo.sm { width: 24px; height: 24px; font-size: .48rem; }
.tlogo.md { width: 36px; height: 36px; font-size: .65rem; } .tlogo.lg { width: 56px; height: 56px; font-size: .95rem; box-shadow: inset 0 0 0 3px var(--tc2); }
.tlogo.xl { width: 88px; height: 88px; font-size: 1.4rem; box-shadow: inset 0 0 0 4px var(--tc2); }
.tlogo-link { display: inline-flex; }
.tlink, .plink { color: var(--white); font-weight: 600; }
.gb { display: inline-flex; align-items: center; justify-content: center; min-width: 2.1em; padding: .1em .35em; border-radius: 3px; font: 800 .85rem/1.15 var(--mono); color: #0b0e11; }
.gb.xs { font-size: .66rem; min-width: 2em; } .gb.sm { font-size: .75rem; } .gb.lg { font-size: 1.35rem; min-width: 2.4em; padding: .15em .4em; }
.g-a { background: var(--ga); } .g-b { background: var(--gb); } .g-c { background: var(--gc); } .g-d { background: var(--gd); } .g-f { background: var(--gf); color: #fff; }
.g-none { background: var(--panel2); color: var(--muted); border: 1px solid var(--line2); }
.lgt { display: inline-block; font: 700 .62rem/1 var(--mono); padding: .25em .45em; border-radius: 3px; color: #0b0e11; letter-spacing: .03em; flex: none; }
.lg-NFL { background: var(--lg-NFL); color: #fff; } .lg-NBA { background: var(--lg-NBA); } .lg-NHL { background: var(--lg-NHL); }
.lg-CFB { background: var(--lg-CFB); color: #fff; }
a.lgt:hover { filter: brightness(1.15); color: inherit; }
.stars { color: var(--green); letter-spacing: .02em; font-size: .95rem; white-space: nowrap; } .stars.none { color: var(--muted); }
.star-sm { color: var(--green); font-size: .8rem; }
.tag { font-size: .66rem; padding: .12rem .45rem; border-radius: 3px; border: 1px solid var(--line2); color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.tag-hot { color: var(--orange); border-color: rgba(255,128,0,.5); } .tag-spoil { color: var(--red); border-color: rgba(255,79,79,.5); } .tag-ana { color: var(--blue); border-color: rgba(64,188,244,.5); }
.bar { flex: 1; height: 8px; background: var(--bg2); border-radius: 2px; overflow: hidden; border: 1px solid var(--line); }
.bar i { display: block; height: 100%; background: var(--green); }
.matchup { display: inline-flex; align-items: center; gap: .3rem; color: var(--text); font-weight: 600; white-space: nowrap; }
.matchup:hover { color: var(--white); }
.mu-team { display: inline-flex; align-items: center; gap: .25rem; } .mu-team .num { color: var(--muted); }
.mu-team.win b, .mu-team.win .num { color: var(--white); }
.mu-sep { color: var(--muted); }
.empty { text-align: center; padding: 2rem 1rem; color: var(--muted); border: 1px dashed var(--line2); border-radius: var(--r); }
.empty p { margin-bottom: .8rem; }

/* TABLES */
.tablewrap { overflow-x: auto; }
.dtable { width: 100%; border-collapse: collapse; font-size: .82rem; }
.dtable th { text-align: left; font-size: .66rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; padding: .35rem .45rem; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.dtable td { padding: .4rem .45rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.dtable tr:hover td { background: rgba(255,255,255,.02); }
.dtable .r { text-align: right; }
.dtable .th-crowd { white-space: nowrap; width: 1%; }
.dtable select { padding: .2rem .3rem; width: 70px; font-family: var(--mono); }
.dtable input { padding: .25rem .4rem; min-width: 120px; font-size: .8rem; }
.gtable tr.sel td { background: rgba(64,188,244,.07); } .gtable tr.sel td:first-child { box-shadow: inset 2px 0 0 var(--blue); }
.gt-row { cursor: pointer; }
.diary .month { display: inline-block; background: var(--panel2); padding: .15rem .4rem; border-radius: 3px; color: var(--white); font-size: .7rem; white-space: nowrap; }
.linescore { border-collapse: collapse; width: 100%; font-size: .85rem; }
.linescore th, .linescore td { padding: .35rem .45rem; text-align: center; border-bottom: 1px solid var(--line); }
.linescore thead th { color: var(--muted); font-size: .7rem; }
.linescore tbody th { text-align: left; color: var(--white); white-space: nowrap; display: flex; gap: .3rem; align-items: center; }
.linescore .tot { color: var(--white); font-weight: 800; border-left: 1px solid var(--line2); } .linescore .tot2 { color: var(--muted); }
.linescore tr.win .tot { color: var(--green); }

/* HOME */
.hero { background: linear-gradient(135deg, #1d2630, #15191e); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; margin-bottom: 1rem; }
.hero h1 { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; font-size: 1.7rem; }
.hero-cta { display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.feed-h { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; margin-bottom: .8rem; }
.rcard { display: flex; gap: .75rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: .85rem; margin-bottom: .6rem; }
.rc-main { flex: 1; min-width: 0; }
.rc-head { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .6rem; font-size: .85rem; }
.rc-rating { display: inline-flex; gap: .3rem; align-items: center; margin-left: auto; }
.rc-grades { display: flex; gap: .7rem; align-items: center; margin: .35rem 0; flex-wrap: wrap; }
.rc-g { display: inline-flex; gap: .25rem; align-items: center; }
.rc-title { margin: .3rem 0 .15rem; font-size: 1rem; } .rc-title a { color: var(--white); }
.rc-body { color: var(--text); margin: .2rem 0 .4rem; }
.rc-body.spoiler { color: var(--muted); cursor: pointer; font-style: italic; } .hidden-body { display: none; }
.rc-foot { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.aitem { display: flex; gap: .55rem; align-items: center; padding: .55rem .7rem; border-bottom: 1px solid var(--line); font-size: .84rem; background: rgba(27,33,40,.5); }
.aitem:first-child { border-top-left-radius: var(--r); }
.ai-txt { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.ai-time { white-space: nowrap; }
.feed .rcard + .aitem, .feed .aitem + .rcard { margin-top: .6rem; }
.scoreboard { padding: .8rem; }
.sb-tabs { display: flex; gap: .15rem; flex-wrap: wrap; margin-bottom: .5rem; }
.sb-tab { background: none; border: 1px solid transparent; color: var(--muted); font: 700 .68rem var(--mono); padding: .25rem .45rem; border-radius: 3px; cursor: pointer; }
.sb-tab:hover { color: var(--white); } .sb-tab.on { color: var(--white); border-color: var(--line2); background: var(--panel2); }
.sb-game { border: 1px solid var(--line); border-radius: 4px; padding: .45rem .55rem; margin-bottom: .45rem; cursor: pointer; background: var(--bg2); }
.sb-game:hover { border-color: var(--line2); }
.sb-meta { display: flex; gap: .4rem; align-items: center; margin-bottom: .25rem; color: var(--muted); flex-wrap: wrap; }
.sb-line { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: .35rem; font-size: .85rem; color: var(--muted); }
.sb-line.win { color: var(--white); font-weight: 700; } .sb-line .num { font-size: .95rem; }
.sb-act { display: flex; gap: .3rem; justify-content: flex-end; margin-top: .3rem; align-items: center; }
.sb-act .muted { margin-right: auto; }
.urow { display: flex; align-items: center; gap: .55rem; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.urow:last-child { border-bottom: 0; }
.urow-t { flex: 1; min-width: 0; }
.grow { display: flex; align-items: center; gap: .55rem; padding: .45rem .2rem; border-bottom: 1px solid var(--line); cursor: pointer; flex-wrap: wrap; }
.grow:hover { background: rgba(255,255,255,.02); }
.grow-date { margin-left: auto; }

/* GAME CARDS */
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .65rem; }
.gcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: .6rem .65rem; cursor: pointer; display: flex; flex-direction: column; gap: .25rem; transition: border-color .12s; }
.gcard:hover { border-color: var(--muted); }
.gcard.classic { border-top: 2px solid var(--orange); }
.gc-top { display: flex; justify-content: space-between; align-items: center; }
.gc-row { display: grid; grid-template-columns: 24px 1fr auto; gap: .4rem; align-items: center; color: var(--muted); font-size: .85rem; }
.gc-row.win { color: var(--white); font-weight: 700; }
.gc-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-score { font-size: 1rem; }
.gc-meta { display: flex; justify-content: space-between; align-items: center; gap: .3rem; font-size: .75rem; min-height: 1.2em; }
.gc-meta .note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-mine { font-size: .8rem; }
.gc-actions { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: .15rem; }

/* GAME PAGE */
.game-head { margin-bottom: 1rem; background: linear-gradient(180deg, #1f262e, var(--panel)); }
.gh-meta { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; color: var(--muted); font-size: .82rem; }
.gh-board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin: 1rem 0; }
.gh-team { display: flex; align-items: center; gap: .8rem; color: var(--muted); }
.gh-team:last-child { flex-direction: row-reverse; text-align: right; }
.gh-name { font-size: 1.15rem; font-weight: 800; color: var(--text); }
.gh-team.win .gh-name, .gh-team.win .gh-score { color: var(--white); }
.gh-score { font-size: 2.6rem; font-weight: 800; margin: 0 .4rem; color: var(--muted); }
.gh-team:first-child .gh-score { margin-left: auto; } .gh-team:last-child .gh-score { margin-right: auto; }
.gh-status { font: 800 .8rem var(--mono); color: var(--muted); letter-spacing: .1em; text-align: center; }
.gh-actions { display: flex; flex-wrap: wrap; gap: .45rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.statbars { display: flex; flex-direction: column; gap: .45rem; }
.sbx-head { display: flex; justify-content: space-between; font-weight: 700; color: var(--white); font-size: .8rem; }
.sbx-head span { display: inline-flex; gap: .3rem; align-items: center; }
.sbx { display: grid; grid-template-columns: 56px 1fr 56px; gap: .5rem; align-items: center; }
.sbx > .num { font-size: .85rem; color: var(--muted); } .sbx > .num:last-child { text-align: right; } .sbx > .num.hi { color: var(--white); font-weight: 700; }
.sbx-label { text-align: center; font-size: .66rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 2px; }
.sbx-bar { display: flex; height: 7px; gap: 2px; background: var(--bg2); border-radius: 2px; overflow: hidden; }
.sbx-bar i { display: block; height: 100%; opacity: .9; } .sbx-bar .l { border-radius: 2px 0 0 2px; } .sbx-bar .r { border-radius: 0 2px 2px 0; }
.rosters { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.roster h3 { display: flex; gap: .4rem; align-items: center; font-size: .9rem; }
.histo { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: 70px auto; gap: .3rem .5rem; align-items: end; }
.h-star { color: var(--green); font-size: .7rem; }
.h-bars { display: flex; gap: 2px; align-items: flex-end; height: 70px; }
.h-bar { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.h-bar i { display: block; width: 100%; background: var(--muted); border-radius: 1px 1px 0 0; }
.h-bar:hover i { background: var(--green); }
.h-avg { grid-column: 1 / -1; display: flex; gap: .5rem; align-items: baseline; }
.counts { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.counts > div { display: flex; flex-direction: column; } .counts .big { font-size: 1.25rem; }
.friends { display: flex; flex-wrap: wrap; gap: .6rem; }
.friend { display: flex; flex-direction: column; align-items: center; gap: .1rem; }
.friend .stars { font-size: .7rem; }
.lrow { padding: .3rem 0; border-bottom: 1px solid var(--line); }
.comment { display: flex; gap: .55rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.comment-form { display: flex; gap: .5rem; margin-top: .7rem; }

/* ENTITY HEADERS */
.ent-head { display: flex; gap: 1.2rem; align-items: center; margin-bottom: 1rem; border-left: 4px solid var(--tc); flex-wrap: wrap; }
.ent-t { flex: 1; min-width: 220px; }
.pnum { width: 88px; height: 88px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 800; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,.5); }
.statrow { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-top: .5rem; }
.statrow > div, .statrow .stat { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; }
.statrow .stat:hover .big { color: var(--blue); }

/* PROFILE */
.prof-head { display: flex; gap: 1.2rem; align-items: flex-start; flex-wrap: nowrap; }
.ph-av { display: flex; flex-direction: column; align-items: center; gap: .45rem; flex: none; }
.ph-av .avatar-edit { margin: 0; }
.ph-t { flex: 0 1 auto; min-width: 180px; }
.ph-t h1 { margin-bottom: .1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.bio { max-width: 560px; }
.favs { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; margin-top: .3rem; }
.ph-r { display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; flex: none; }
.ph-r .statrow { gap: 0; } .ph-r .stat { padding: 0 .9rem; border-left: 1px solid var(--line); align-items: center; } .ph-r .stat:first-child { border-left: 0; }

/* Founder star chip — match badge2.html option C exactly */
.founder-chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #00e054; color: #00e054; border-radius: 999px; padding: 1px 8px 1px 3px; font-size: 11px; font-weight: 800; line-height: 1; white-space: nowrap; vertical-align: middle; flex: none; letter-spacing: 0; text-transform: none; font-style: normal; background: transparent; }
.founder-chip i { width: 15px; height: 15px; border-radius: 50%; background: #00e054; color: #14181c; font-style: normal; font-size: 9px; display: flex; align-items: center; justify-content: center; flex: none; font-weight: 800; line-height: 1; }
.founder-chip.sm, .dtable .founder-chip, .comment .founder-chip, .aitem .founder-chip, .small .founder-chip { font-size: 10px; padding: 0 6px 0 2px; gap: 3px; }
.founder-chip.sm i, .dtable .founder-chip i, .comment .founder-chip i, .aitem .founder-chip i, .small .founder-chip i { width: 13px; height: 13px; font-size: 8px; }
h1 .founder-chip { position: relative; top: -1px; }

/* Founder medal — compact on desktop (disc ≤ avatar xl), large stacked style on mobile */
.founder-medal-wrap { flex: 1 1 72px; display: flex; flex-direction: column; justify-content: center; align-items: center; align-self: stretch; min-width: 72px; width: auto; padding: 0; gap: 0; }
.founder-medal { position: relative; width: 80px; height: 93px; display: flex; flex-direction: column; align-items: center; flex: none; }
.founder-ribbon { display: flex; gap: 2px; margin-bottom: -6px; z-index: 0; }
.founder-ribbon div { width: 16px; height: 27px; background: linear-gradient(#00e054, #00a33d); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%); }
.founder-ribbon div:nth-child(2) { background: linear-gradient(#2c3440, #1c2228); }
.founder-disc { z-index: 1; width: 72px; height: 72px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #2a333d, #161b20 70%); border: 2px solid #00e054; box-shadow: 0 0 0 2px #14181c, 0 0 0 3px #2c3440, 0 0 14px rgba(0, 224, 84, .25); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.founder-lab { font-size: 7px; letter-spacing: 1.2px; color: #8394a5; font-weight: 700; }
.founder-num { font-size: 26px; font-weight: 900; color: #00e054; line-height: 1; margin: 1px 0; }
.founder-sub { display: none; font-size: 8px; letter-spacing: 2px; color: #8394a5; }
.founder-caption { display: none; margin: 0; text-align: center; font-size: .8rem; color: var(--muted); font-weight: 600; }
.rushmore { margin: 1rem 0; }
.rm-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.rm-slot .lgt { align-self: flex-start; }
.rm-slot { aspect-ratio: 3 / 2; border-radius: var(--r); border: 1px solid var(--line2); padding: .6rem; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(150deg, var(--tc) 0%, #161b21 75%); color: var(--white); position: relative; overflow: hidden; }
.rm-slot:hover { border-color: var(--white); color: var(--white); }
.rm-slot.empty { background: var(--panel); align-items: center; justify-content: center; border-style: dashed; color: var(--muted); }
.rm-score { font-size: 1.05rem; font-weight: 800; line-height: 1.3; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.rm-note { color: rgba(255,255,255,.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prof-tabs { margin-top: .4rem; }
.dist-row { display: grid; grid-template-columns: 40px 1fr 34px; gap: .5rem; align-items: center; margin: .3rem 0; }
.dist-row .num { text-align: right; }
.avg-given { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); margin-top: .6rem; padding-top: .6rem; }
.take { padding: .4rem 0; border-bottom: 1px solid var(--line); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .7rem; flex-wrap: wrap; }
.toolbar select { width: auto; }

/* GRADE PANEL */
.dist { margin: .4rem 0; }
.cmp { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .8rem 0; text-align: center; }
.cmp > div { display: flex; flex-direction: column; align-items: center; gap: .25rem; background: var(--bg2); border-radius: 4px; padding: .5rem .3rem; }

/* LISTS */
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .7rem; margin-bottom: 1rem; }
.lcard { display: flex; gap: .7rem; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: .7rem; cursor: pointer; }
.lcard:hover { border-color: var(--muted); }
.panel .lcard { background: var(--bg2); margin-bottom: .5rem; }
.lc-tiles { display: flex; flex: none; }
.lt { width: 30px; height: 44px; border-radius: 3px; display: flex; align-items: flex-end; justify-content: center; font: 800 .5rem var(--mono); color: #fff; padding-bottom: 3px; border: 1px solid #0b0e11; margin-left: -10px; box-shadow: 2px 0 4px rgba(0,0,0,.5); }
.lt:first-child { margin-left: 0; } .lt.empty { background: var(--panel2); color: var(--muted); align-items: center; }
.lc-body { flex: 1; min-width: 0; }
.lc-title { font-weight: 800; color: var(--white); display: block; }
.lc-desc { color: var(--muted); margin-top: .2rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-item { display: flex; gap: .55rem; align-items: center; padding: .5rem .2rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rank { font-size: 1.2rem; font-weight: 800; color: var(--white); width: 2rem; text-align: right; }
.addrow { display: flex; gap: .5rem; } .addrow select:first-child { width: 140px; flex: none; }

/* DISCOVER */
.disc-head { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1rem; }
.bigsearch { display: flex; gap: .5rem; max-width: 640px; }
.bigsearch input { font-size: 1rem; padding: .6rem .8rem; }
.search-res { margin-bottom: 1.2rem; } .search-res .panel + .panel { margin-top: .7rem; }
.acards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .7rem; margin-bottom: 1.2rem; }
.acard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: .9rem; display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; }
.ac-name { font-weight: 800; }
.ac-spark { display: flex; align-items: center; gap: .4rem; margin: .2rem 0; }
.ac-stats { display: flex; gap: .8rem; justify-content: center; margin-bottom: .3rem; }
.ac-stats > div { display: flex; flex-direction: column; align-items: center; gap: .15rem; } .ac-stats .num { color: var(--white); font-weight: 700; }
.disc-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1rem; margin-bottom: 1.2rem; align-items: start; }
.disc-grid > .panel + .panel { margin-top: 0; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .1rem .8rem; }
.trow { display: flex; align-items: center; gap: .5rem; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.trow .tlink, .trow .plink { flex: 1; }
.filters { display: flex; flex-direction: column; gap: .6rem; margin-bottom: .8rem; }
.frow { display: flex; gap: .9rem; align-items: center; flex-wrap: wrap; }
.frow label { display: flex; gap: .35rem; align-items: center; color: var(--muted); }
.frow select { width: auto; padding: .25rem .4rem; font-size: .8rem; }

/* FORMS */
.form label, .form .field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .8rem; font-size: .8rem; color: var(--muted); font-weight: 600; }
.form .flabel { font-size: .8rem; color: var(--muted); }
.form .ck, .form .rad, .form .heartck { flex-direction: row; align-items: center; gap: .4rem; margin: 0; cursor: pointer; color: var(--text); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; } .row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; } .row4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.row-inline { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; margin-bottom: .9rem; }
.radios { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.rad input, .tagck input { position: absolute; opacity: 0; pointer-events: none; }
.rad span, .tagck span { border: 1px solid var(--line2); border-radius: 4px; padding: .35rem .7rem; color: var(--muted); font-size: .8rem; }
.rad input:checked + span { border-color: var(--blue); color: var(--white); background: rgba(64,188,244,.1); }
.tagck input:checked + span { border-color: var(--orange); color: var(--orange); background: rgba(255,128,0,.08); }
.rad input:focus-visible + span, .tagck input:focus-visible + span { outline: 2px solid var(--blue); }
.grow-input { flex: 1; min-width: 200px; width: auto; }
.heartck input { position: absolute; opacity: 0; } .heartck span { font-size: 1.4rem; color: var(--line2); line-height: 1; }
.heartck input:checked + span { color: var(--orange); } .heartck input:focus-visible + span { outline: 2px solid var(--blue); }
.starpick { display: flex; align-items: center; gap: 2px; }
.sp { position: relative; font-size: 1.7rem; line-height: 1; color: var(--line2); cursor: pointer; user-select: none; }
.sp.full { color: var(--green); }
.sp.half { background: linear-gradient(90deg, var(--green) 50%, var(--line2) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sp .h { position: absolute; top: 0; bottom: 0; width: 50%; background: none; border: 0; padding: 0; cursor: pointer; z-index: 1; }
.sp .h.l { left: 0; } .sp .h.r { right: 0; }
.sp-val { margin-left: .5rem; color: var(--white); min-width: 2em; }
.gsel { font-family: var(--mono); }
.final-score { display: flex; align-items: center; justify-content: space-between; gap: .8rem; background: var(--bg2); border: 1px solid var(--line); border-radius: 4px; padding: .6rem .8rem; margin-bottom: .9rem; }
.final-score > div { display: flex; align-items: center; gap: .5rem; color: var(--white); font-weight: 700; }
.final-score b { font-size: 1.6rem; }
.form-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-top: .5rem; }
.form-err { color: var(--red); min-height: 1em; font-size: .85rem; margin: .2rem 0; }
.form + .form { margin-top: 1rem; }
.tips { padding-left: 1.1rem; } .tips li { margin: .3rem 0; }
.ft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem 1rem; max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 4px; padding: .6rem; }
.ft-lg { font: 700 .7rem var(--mono); color: var(--white); margin-bottom: .2rem; }
.form .ft-opt { flex-direction: row; align-items: center; gap: .4rem; margin: .15rem 0; color: var(--text); font-weight: 500; cursor: pointer; }
.swatches { display: flex; gap: .4rem; }
.form .sw { margin: 0; cursor: pointer; } .sw input { position: absolute; opacity: 0; }
.sw span { display: block; width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; }
.sw input:checked + span { border-color: var(--white); box-shadow: 0 0 0 2px var(--bg); }
.log-tabs .tab { font-family: var(--mono); }

.avatar-edit { display: flex; align-items: center; gap: .9rem; }
.avatar-edit.compact { flex-direction: column; align-items: center; gap: .4rem; }
.avatar-edit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; min-width: 0; }
.avatar-edit.compact .avatar-edit-actions { justify-content: center; }
.avatar-note { flex: 1 0 100%; margin: 0; font-weight: 500; }
.avatar-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }

.modal-box.crop-box { max-width: 400px; width: calc(100% - 2rem); overflow: hidden; }
.crop-ui h2 { margin-bottom: .8rem; }
.crop-stage {
  width: min(280px, calc(100vw - 4rem));
  aspect-ratio: 1;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  background: var(--bg2);
  cursor: grab;
  touch-action: none;
  box-shadow: 0 0 0 3px var(--green);
  user-select: none;
}
.crop-stage.dragging { cursor: grabbing; }
.crop-stage img {
  position: absolute;
  left: 0; top: 0;
  max-width: none;
  transform-origin: 0 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.crop-zoom { display: flex; align-items: center; gap: .65rem; margin: .9rem 0 .4rem; color: var(--muted); font-size: .8rem; font-weight: 600; }
.crop-zoom input[type=range] { flex: 1; accent-color: var(--green); width: auto; padding: 0; background: transparent; border: 0; box-shadow: none; }
.crop-zoom input[type=range]:focus { box-shadow: none; border: 0; outline: none; }

/* AUTH */
.auth { display: flex; justify-content: center; padding: 2rem 0; }
.auth-card { width: 100%; max-width: 400px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 1.6rem; }
.auth-logo { margin-bottom: 1rem; }
.auth-card form label { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .8rem; font-size: .8rem; color: var(--muted); font-weight: 600; }

/* FOOTER / TOAST / MODAL */
.footer { border-top: 1px solid var(--line); background: var(--bg2); margin-top: 2rem; }
.footer-inner { max-width: 1320px; margin: 0 auto; padding: 1.4rem 1rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; }
.footer-inner p { max-width: 460px; }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; font-size: .85rem; }
.footer-links a { color: var(--muted); } .footer-links .linkbtn { color: var(--orange); }
.toasts { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: .4rem; align-items: center; pointer-events: none; }
.toast { background: var(--white); color: var(--bg); padding: .55rem 1rem; border-radius: 4px; font-weight: 700; font-size: .85rem; box-shadow: 0 8px 24px rgba(0,0,0,.5); transition: opacity .4s; }
.toast.out { opacity: 0; }
.modal { display: none; } .modal.open { display: block; position: fixed; inset: 0; z-index: 150; }
.modal-bg { position: absolute; inset: 0; background: rgba(0,0,0,.65); }
.modal-box { position: relative; max-width: 460px; margin: 10vh auto 0; background: var(--panel); border: 1px solid var(--line2); border-radius: 8px; padding: 1.2rem; max-height: 75vh; overflow-y: auto; }
.modal-x { position: absolute; top: .4rem; right: .6rem; background: none; border: 0; color: var(--muted); font-size: 1.5rem; cursor: pointer; }
.spark { display: block; }

/* RESPONSIVE */
@media (max-width: 1180px) {
  .home-grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .home-grid .col-sb { grid-column: 2; grid-row: 1; }
  .home-grid .col-side { grid-column: 2; grid-row: 2; }
  .home-grid .feed { grid-row: 1 / span 2; }
  .nav-search { max-width: 220px; }
}
@media (max-width: 900px) {
  .nav { overflow: visible; }
  .nav .logo-tagline { display: none; }
  .nav-inner { flex-wrap: nowrap; position: static; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; position: relative; z-index: 2; }
  body.nav-open .nav-toggle { background: var(--panel2); border-color: var(--muted); }
  /* Overlay panel so the menu is not clipped inside the sticky header (common mobile portrait bug). */
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    gap: .55rem;
    background: var(--bg2);
    border-bottom: 1px solid var(--line);
    padding: .55rem 1rem 1rem;
    box-shadow: 0 16px 32px rgba(0,0,0,.5);
    z-index: 60;
  }
  body.nav-open .nav-menu { display: flex; }
  body.nav-open .nav-links, body.nav-open .nav-search, body.nav-open .nav-right { display: flex; width: 100%; }
  body.nav-open .nav-links { flex-direction: column; }
  body.nav-open .nav-search { max-width: none; margin: 0; }
  body.nav-open .nav-right { justify-content: space-between; padding-bottom: .2rem; }
  .home-grid, .two-col, .disc-grid { grid-template-columns: minmax(0, 1fr); }
  .home-grid .col-sb, .home-grid .col-side, .home-grid .feed { grid-column: auto; grid-row: auto; }
  .home-grid .col-sb { order: -1; }
  .rm-row { grid-template-columns: repeat(2, 1fr); }
  .prof-head { flex-direction: column; flex-wrap: wrap; align-items: stretch; }
  .ph-t { min-width: 0; flex: 1 1 auto; }
  .ph-r { align-items: flex-start; width: 100%; order: 4; }
  .ph-r .stat:first-child { padding-left: 0; }
  .founder-medal-wrap { order: 5; width: 100%; flex: none; align-self: center; padding: .35rem 0 .15rem; gap: .45rem; }
  .founder-caption { display: block; }
  .founder-sub { display: block; }
  .founder-medal { width: 174px; height: 200px; }
  .founder-ribbon { gap: 4px; margin-bottom: -12px; }
  .founder-ribbon div { width: 30px; height: 52px; }
  .founder-disc { width: 140px; height: 140px; border-width: 4px; box-shadow: 0 0 0 3px #14181c, 0 0 0 5px #2c3440, 0 0 28px rgba(0, 224, 84, .25); }
  .founder-lab { font-size: 10px; letter-spacing: 2.5px; }
  .founder-num { font-size: 48px; margin: 4px 0; }
  .founder-sub { font-size: 8px; letter-spacing: 2px; }
  .sticky { position: static; }
}
@media (max-height: 700px) {
  .modal-box.crop-box { margin: 4vh auto 0; padding: 1rem; }
  .crop-stage { width: min(220px, calc(100vw - 4rem)); }
}
@media (max-width: 600px) {
  .main { padding: .8rem .6rem 1.5rem; }
  .row2, .row3, .rosters { grid-template-columns: 1fr; }
  .gh-board { grid-template-columns: 1fr; gap: .5rem; }
  .gh-team:last-child { flex-direction: row; text-align: left; }
  .gh-team .gh-score { margin-left: auto !important; margin-right: 0 !important; font-size: 2rem; }
  .gh-status { text-align: left; }
  .rcard { padding: .7rem; gap: .55rem; } .rcard .av.md { width: 32px; height: 32px; }
  .rc-rating { margin-left: 0; }
  .ggrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .counts .big { font-size: 1rem; }
  .ph-r .statrow { flex-wrap: nowrap; width: 100%; justify-content: space-between; }
  .ph-r .stat { padding: 0 .25rem; flex: 1; min-width: 0; } .ph-r .big { font-size: 1.15rem; }
  .ph-r .stat .muted { font-size: .68rem; }
  .founder-medal { width: 136px; height: 160px; }
  .founder-disc { width: 110px; height: 110px; border-width: 3px; box-shadow: 0 0 0 2px #14181c, 0 0 0 4px #2c3440, 0 0 20px rgba(0, 224, 84, .25); }
  .founder-ribbon { gap: 3px; margin-bottom: -10px; }
  .founder-ribbon div { width: 24px; height: 42px; }
  .founder-num { font-size: 38px; }
  .founder-lab { font-size: 8px; letter-spacing: 2px; }
  .founder-sub { font-size: 7px; letter-spacing: 1.5px; }
  .av.xl { width: 72px; height: 72px; }
  .addrow { flex-wrap: wrap; } .addrow select:first-child { width: 100%; }
  .lgrid { grid-template-columns: 1fr; }
  h1 { font-size: 1.35rem; }
}

/* TEAMS DIRECTORY */
.conf-block { margin-bottom: 1rem; }
.conf-block .tgrid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.trow .tmeta { display: block; font-size: .72rem; color: var(--muted); font-weight: 400; }
.dir-count { font-family: var(--mono); color: var(--muted); font-size: .75rem; }

/* HOME v2 — popular strip, grouped feed, slim upcoming */
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; margin-bottom: .55rem; }
.sec-h h2 { margin: 0; }
.popular { margin-bottom: 1.1rem; }
.pop-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; }
.pop-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; height: 76px; padding: .4rem .5rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); color: var(--text); transition: border-color .12s; }
.pop-card:hover { border-color: var(--muted); color: var(--text); }
.pop-card .lgt { font-size: .55rem; }
.pop-row { display: grid; grid-template-columns: 24px auto 24px; align-items: center; justify-content: center; gap: .7rem; width: 100%; }
.pop-score { display: inline-flex; align-items: center; gap: .35rem; font-size: 1.05rem; line-height: 1; color: var(--muted); }
.pop-score b { font-weight: 800; min-width: 2ch; text-align: center; } .pop-score b.w { color: var(--white); } .pop-score i { font-style: normal; color: var(--muted); }
.pop-meta { font-size: .68rem; color: var(--muted); white-space: nowrap; }
.feed-head { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: .75rem .9rem .7rem; margin-bottom: .8rem; }
.feed-head .sec-h { margin-bottom: .55rem; }
.feed-ctrls { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
.pill-watch { margin-left: .2rem; }
.fcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: .7rem; }
.fc-h { padding: .7rem .9rem .55rem; border-bottom: 1px solid var(--line); }
.fc-tags { display: flex; align-items: center; gap: .35rem; margin-bottom: .35rem; }
.fc-tags .lgt { margin-right: .2rem; }
.fc-score { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.fc-line { display: inline-flex; align-items: baseline; gap: .45rem; font-family: var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: -.01em; color: var(--muted); }
.fc-line .num { font-family: var(--mono); font-weight: 700; } .fc-line .w { color: var(--white); } .fc-line .sep { color: var(--muted); font-weight: 400; }
.fc-score a:hover .fc-line .w { color: var(--blue); }
.fc-avg { white-space: nowrap; color: var(--white); font-weight: 700; }
.fc-sub { display: flex; align-items: center; gap: .5rem; margin-top: .1rem; }
.fc-note { margin-left: auto; }
.fc-body { padding: .2rem .9rem; }
.fe { display: flex; gap: .6rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.fe:last-child { border-bottom: 0; }
.fe-main { flex: 1; min-width: 0; }
.fe-top { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; font-size: .88rem; }
.fe-top .stars { font-size: .85rem; }
.fe-snip { display: block; font-style: italic; color: var(--text); font-size: .84rem; margin-top: .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.fe-snip:hover { color: var(--white); } .fe-snip.spoil { color: var(--muted); font-style: normal; }
.fe-grades { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; font-size: .76rem; margin-top: .25rem; }
.fe-grades > .muted:first-child { margin-right: .15rem; }
.fe-g { display: inline-flex; align-items: center; gap: .25rem; color: var(--text); font-weight: 600; }
.fe-grades .dot { color: var(--muted); }
.fe-pg { margin-left: .3rem; } .fe-pg:hover { color: var(--blue); }
.fc-more { display: block; padding: .3rem 0 .5rem; color: var(--blue); }
.fc-seen { display: flex; align-items: center; gap: .45rem; padding: .45rem 0 .55rem; border-top: 1px solid var(--line); }
.fc-seen b { color: var(--text); font-weight: 600; }
.fc-f { display: flex; align-items: center; gap: .6rem; padding: .45rem .9rem; border-top: 1px solid var(--line); }
.fc-view { color: var(--muted); font-weight: 600; } .fc-view:hover { color: var(--white); }
.mwline { display: flex; align-items: center; gap: .55rem; padding: .45rem .75rem; margin: -.15rem 0 .7rem; border: 1px dashed var(--line2); border-radius: var(--r); font-size: .8rem; color: var(--muted); }
.mw-txt { flex: 1; min-width: 0; } .mw-txt b { color: var(--text); font-weight: 600; } .mw-txt a { color: var(--white); font-weight: 700; }
.mw-when { white-space: nowrap; }
.avstack { display: inline-flex; flex: none; } .avstack .av { margin-left: -7px; box-shadow: 0 0 0 2px var(--bg); } .avstack .av:first-child { margin-left: 0; }
.feed-empty { background: var(--panel); border: 1px dashed var(--line2); border-radius: var(--r); padding: 1.2rem; text-align: center; }
.feed-empty .fe-suggest { max-width: 420px; margin: .8rem auto; text-align: left; }
.fe-actions { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.upnext { padding: .8rem .8rem .5rem; }
.up-row { display: flex; align-items: center; gap: .6rem; padding: .5rem .55rem; border: 1px solid var(--line); border-radius: 4px; background: var(--bg2); margin-bottom: .4rem; cursor: pointer; }
.up-row:hover { border-color: var(--line2); }
.up-t { flex: 1; min-width: 0; }
.up-l1 { display: flex; align-items: center; gap: .45rem; font-weight: 800; color: var(--white); font-size: .92rem; }
.up-l1 a { color: var(--white); } .up-l1 a:hover { color: var(--blue); }
.up-l1 .lgt { font-size: .55rem; }
.up-l2 { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-l2 .note { font-size: .68rem; }
.mwtog { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line2); background: var(--panel2); color: var(--muted); font-size: 1rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.mwtog:hover { color: var(--white); border-color: var(--muted); }
.mwtog.on { background: var(--green); border-color: var(--green); color: #07240f; font-weight: 800; }
.up-f { text-align: right; padding: .25rem .1rem .2rem; }
.an-row { align-items: flex-start; } .an-row .av-link, .an-row .btn { margin-top: .15rem; }
.an-q { display: block; font-style: italic; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-q:hover { color: var(--white); }
@media (max-width: 1180px) {
  .pop-grid { gap: .55rem; }
}
@media (max-width: 900px) {
  .home-grid .col-sb { order: 0; }
  .pop-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .3rem; scrollbar-width: none; }
  .pop-grid::-webkit-scrollbar { display: none; }
  .pop-card { flex: 0 0 150px; scroll-snap-align: start; }
}
@media (max-width: 600px) {
  .fc-line { font-size: 1.2rem; }
  .fc-h, .fc-f { padding-left: .7rem; padding-right: .7rem; } .fc-body { padding: .1rem .7rem; }
  .feed-ctrls { gap: .5rem; }
  .mwline { flex-wrap: wrap; }
  .mwline .chip-btn { margin-left: auto; }
}

/* Games page: Upcoming / Past subheaders */
.games-sub { margin: 1rem 0 .6rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.filters + .games-sub { margin-top: .4rem; }

/* Hot Takes badge */
.hot-badge { display: inline-flex; align-items: center; gap: .2em; vertical-align: middle; font: 700 .62rem/1 var(--sans); letter-spacing: .03em; text-transform: uppercase; color: var(--orange); background: rgba(255,128,0,.1); border: 1px solid rgba(255,128,0,.45); border-radius: 99px; padding: .22em .55em; white-space: nowrap; cursor: help; }
h1 .hot-badge { font-size: .7rem; margin-left: .3rem; position: relative; top: -2px; }

/* Mount Rushmore v2 — date top, big badges, big score, note bottom */
.rm-slot { justify-content: space-between; gap: .25rem; padding: .55rem .65rem .5rem; text-align: center; }
.rm-top { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.rm-date { font: 700 .66rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.72); }
.rm-slot .rm-top .lgt { align-self: center; }
.rm-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .3rem; }
.rm-team { display: flex; flex-direction: column; align-items: center; gap: .2rem; min-width: 0; }
.tlogo.rm { width: 60px; height: 60px; font-size: 1rem; box-shadow: inset 0 0 0 3px var(--tc2), 0 3px 10px rgba(0,0,0,.45); }
.rm-tname { font-size: .68rem; color: rgba(255,255,255,.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rm-at { color: rgba(255,255,255,.55); font-size: .75rem; font-weight: 700; }
.rm-slot .rm-score { display: flex; justify-content: center; align-items: baseline; gap: .5rem; font-size: 2rem; line-height: 1; font-weight: 800; text-shadow: 0 2px 6px rgba(0,0,0,.6); color: rgba(255,255,255,.5); }
.rm-score b { font-weight: 800; } .rm-score b.w { color: var(--white); } .rm-score i { font-style: normal; font-weight: 400; color: rgba(255,255,255,.5); }
.rm-slot .rm-note { text-align: center; color: rgba(255,255,255,.78); }
@media (max-width: 900px) {
  .rm-slot { aspect-ratio: auto; min-height: 190px; }
}
@media (max-width: 600px) {
  .rm-row { gap: .5rem; }
  .rm-slot { min-height: 170px; padding: .45rem .45rem .4rem; }
  .tlogo.rm { width: 44px; height: 44px; font-size: .75rem; box-shadow: inset 0 0 0 2px var(--tc2), 0 2px 6px rgba(0,0,0,.45); }
  .rm-slot .rm-score { font-size: 1.5rem; gap: .35rem; }
  .rm-date { font-size: .58rem; letter-spacing: .04em; }
  .rm-tname { font-size: .62rem; }
}
