/* BeefU. One dark surface, one accent, school colors carry the energy. Display type only for school names and numbers. */
:root {
  --ink: #0e0f12;
  --s1: #15171b;
  --s2: #1c1f24;
  --s3: #252930;
  --hair: rgba(255,255,255,.07);
  --hair-2: rgba(255,255,255,.12);
  --text: #eeede9;
  --muted: #8d9099;
  --faint: #60646d;
  --accent: #f0583c;
  --display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --body: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
  --r-lg: 16px; --r-md: 12px; --r-sm: 8px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ink); color: var(--text); font-family: var(--body);
  font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
button, select, textarea, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px 96px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(14,15,18,.82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--hair); }
.top-in { max-width: 640px; margin: 0 auto; padding: 12px 16px 0; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bar-r { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mark { font-family: var(--display); font-weight: 900; font-size: 28px; line-height: 1; letter-spacing: .01em; text-transform: uppercase; margin: 0; }
.mark span { color: var(--accent); }
.home-chip {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0; height: 34px; border: 0; background: var(--s2);
  border-radius: 999px; padding: 0 14px; font-size: 13px; font-weight: 500; color: var(--text);
  transition: background .2s var(--ease);
}
.home-chip:hover { background: var(--s3); }
.home-chip i { flex: none; width: 10px; height: 10px; margin-left: -2px; border-radius: 50%; background: var(--sw, var(--muted)); }
.home-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#authBtn { background: transparent; color: var(--muted); padding: 0 10px; }
#authBtn:hover { color: var(--text); background: var(--s2); }
.top-in { position: relative; }
.icon-btn {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: var(--accent); color: #fff; transition: transform .25s var(--ease), background .2s;
}
.icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.icon-btn:hover { background: #ff6a4d; }
.icon-btn:active { transform: scale(.94); }
.icon-btn[aria-expanded="true"] { transform: rotate(45deg); }
#fightMount {
  position: absolute; top: calc(100% + 8px); right: 16px; width: min(400px, calc(100vw - 32px)); z-index: 30;
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
#fightMount.on { opacity: 1; transform: none; pointer-events: auto; }
#fightMount .builder .btn { background: var(--accent); color: #fff; }
#fightMount .builder .btn:hover { background: #ff6a4d; }
#fightMount .builder { margin: 0; box-shadow: 0 18px 50px rgba(0,0,0,.55); border-color: var(--hair-2); }
.nav { display: flex; gap: 24px; margin-top: 6px; }
.nav button {
  position: relative; background: none; border: 0; padding: 10px 0 12px; font-size: 14px; font-weight: 500; color: var(--muted);
  transition: color .2s var(--ease);
}
.nav button:hover { color: var(--text); }
.nav button::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav button[aria-selected="true"] { color: var(--text); }
.nav button[aria-selected="true"]::after { transform: scaleX(1); }

/* hero */
.hero { padding: 28px 0 4px; }
.tagline { margin: 0; font-family: var(--display); font-weight: 900; font-size: 40px; line-height: .95; text-transform: uppercase; letter-spacing: .005em; text-wrap: balance; }
.tagline em { font-style: normal; color: var(--accent); }
.stats { display: flex; gap: 20px; margin-top: 10px; }
.stat { display: flex; align-items: baseline; gap: 6px; }
.stat b { font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--text); }
.stat span { font-size: 14px; color: var(--muted); }

/* notes, banner, toast */
.note { margin: 16px 0 0; padding: 12px 14px; background: var(--s1); border: 1px solid var(--hair); border-radius: var(--r-md); font-size: 14px; color: var(--muted); }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px) scale(.98); opacity: 0;
  background: var(--text); color: var(--ink); font-weight: 500; font-size: 14px; padding: 10px 16px; border-radius: 999px;
  box-shadow: 0 8px 30px rgba(0,0,0,.4); transition: opacity .25s var(--ease), transform .25s var(--ease);
  pointer-events: none; z-index: 60; max-width: calc(100% - 32px);
}
.toast.on { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 18px;
  background: var(--text); color: var(--ink); border: 0; border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: transform .15s var(--ease), opacity .2s, background .2s;
}
.btn:hover { background: #fff; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--hair-2); }
.btn.ghost:hover { background: var(--s2); }

/* builder */
.builder { margin-top: 24px; padding: 16px; background: var(--s1); border: 1px solid var(--hair); border-radius: var(--r-lg); }
.builder h2 { margin: 0 0 12px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.b-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.b-row .full { grid-column: 1 / -1; }
.builder label { display: block; font-size: 12px; color: var(--muted); font-weight: 500; margin-bottom: 6px; }
.builder select, #b-a, #b-b {
  width: 100%; height: 42px; background: var(--s2); border: 1px solid transparent; border-radius: var(--r-sm); padding: 0 12px;
  font-size: 15px; transition: border-color .2s, background .2s; appearance: none; -webkit-appearance: none;
}
.builder select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%238d9099' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px; padding-right: 34px;
}
.builder select:hover, #b-a:hover, #b-b:hover { background-color: var(--s3); }
.builder select:focus, #b-a:focus, #b-b:focus { outline: none; border-color: var(--hair-2); }
.builder .btn { margin-top: 12px; width: 100%; }

/* filters */
.chips { display: flex; gap: 6px; overflow-x: auto; margin: 24px -16px 0; padding: 0 16px 2px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip-btn {
  flex: none; height: 32px; padding: 0 13px; background: transparent; border: 0; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; box-shadow: inset 0 0 0 1px var(--hair);
  transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s;
}
.chip-btn:hover { color: var(--text); background: var(--s1); }
.chip-btn[aria-pressed="true"] { background: var(--text); color: var(--ink); box-shadow: none; }

/* fight card */
.count { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.prompt { margin: 0 0 14px; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.02; text-transform: uppercase; letter-spacing: .01em; text-wrap: balance; }
.prompt a { color: inherit; text-decoration: none; transition: color .2s; }
.prompt a:hover { color: #fff; }
.ring { position: relative; display: flex; gap: 6px; height: 104px; }
.side {
  flex: 1; min-width: 0; border: 0; background: var(--bg); color: var(--fg); position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 28px 0 16px; text-align: left;
  border-radius: var(--r-md); transition: opacity .3s var(--ease), filter .3s var(--ease), transform .15s var(--ease);
}
.side::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.08), transparent 55%); pointer-events: none; }
.side.right { padding: 0 16px 0 28px; text-align: right; align-items: flex-end; }
.side { container-type: inline-size; }
.side .nm { font-family: var(--display); font-weight: 900; font-size: clamp(17px, 17cqi, 34px); line-height: .95; text-transform: uppercase; letter-spacing: .005em; overflow-wrap: break-word; max-width: 100%; }
.side .hint { font-size: 11px; font-weight: 500; opacity: .7; margin-top: 6px; transition: opacity .2s; }
.side:hover:not([disabled]) { filter: brightness(1.08); }
.side:active:not([disabled]) { transform: scale(.985); }
.side[disabled] { cursor: default; }
.vs {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; pointer-events: none;
  width: 32px; height: 32px; border-radius: 50%; background: var(--s1); color: var(--muted);
  display: grid; place-items: center; font-size: 11px; font-weight: 600; box-shadow: 0 0 0 4px var(--s1);
}
.tape { display: flex; height: 6px; margin-top: 14px; border-radius: 3px; overflow: hidden; background: var(--s2); gap: 2px; }
.seg { display: block; height: 100%; min-width: 3px; border-radius: 3px; transition: width .6s var(--ease); background: var(--bg); }
.nums { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.nums .r { text-align: right; }
.nums small { color: var(--faint); font-weight: 400; font-size: 13px; }
.lock { margin: 12px 0 0; font-size: 13px; color: var(--faint); }
.vsplit { margin: 6px 0 0; font-size: 12px; color: var(--faint); }
.vsplit b { color: var(--muted); font-weight: 500; }
.foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 12px; }
.argue {
  display: inline-flex; align-items: center; gap: 7px; margin-left: -8px; height: 32px; padding: 0 10px; background: none; border: 0;
  border-radius: var(--r-sm); font-size: 13px; font-weight: 500; color: var(--muted); transition: background .2s, color .2s;
}
.argue svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.argue:hover { background: var(--s2); color: var(--text); }

/* comments */
.peek {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; width: 100%; margin-top: 14px; padding: 0;
  background: none; border: 0; text-align: left; font-size: 14px; color: var(--muted); line-height: 1.45;
}
.peek b { color: var(--text); font-weight: 600; }
.peek:hover { color: var(--text); }
.thread { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hair); }
@keyframes rise { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.av {
  flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: var(--bg, var(--s3)); color: var(--fg, var(--text)); font-size: 13px; font-weight: 600;
}
.compose { display: flex; gap: 10px; align-items: flex-start; }
.c-field { flex: 1; min-width: 0; background: var(--s2); border: 1px solid transparent; border-radius: var(--r-md); transition: border-color .2s, background .2s; }
.c-field:focus-within { border-color: var(--hair-2); background: var(--s2); }
.compose textarea {
  display: block; width: 100%; min-height: 40px; max-height: 200px; resize: none; background: none; border: 0; outline: none;
  padding: 10px 12px 2px; font-size: 14px; line-height: 1.45; field-sizing: content;
}
.compose textarea::placeholder { color: var(--faint); }
.c-row { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 0 6px 6px; }
.c-row .left { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.post {
  height: 28px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600;
  transition: opacity .2s, transform .15s var(--ease);
}
.post:active:not([disabled]) { transform: scale(.96); }
.post[disabled] { opacity: .25; cursor: default; }
.c-lock { margin: 0; font-size: 13px; color: var(--faint); }
.c-head { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 4px; font-size: 13px; color: var(--muted); font-weight: 500; }
.seg-t { display: flex; padding: 2px; background: var(--s2); border-radius: 999px; }
.seg-t button { height: 24px; padding: 0 10px; border: 0; background: none; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--muted); transition: background .2s, color .2s; }
.seg-t button[aria-pressed="true"] { background: var(--s3); color: var(--text); }
.cms { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; }
.cm { display: flex; gap: 10px; padding: 10px 0; }
.cm-b { flex: 1; min-width: 0; }
.cm-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; line-height: 1.3; }
.cm-top b { font-weight: 600; }
.vf { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: var(--text); color: var(--ink); font-size: 9px; font-weight: 700; }
.side-l { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.side-l::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.when { color: var(--faint); font-size: 12px; }
.when::before { content: '·'; margin-right: 6px; }
.cm p { margin: 3px 0 4px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.agree {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px; background: none; border: 0;
  border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--faint); font-variant-numeric: tabular-nums; transition: color .2s, background .2s;
}
.agree svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; transition: transform .2s var(--ease); }
.agree:hover:not([disabled]) { color: var(--text); background: var(--s2); }
.agree[aria-pressed="true"] { color: var(--accent); }
.agree[aria-pressed="true"] svg { fill: currentColor; transform: translateY(-1px); }
.agree[disabled] { cursor: default; }
.c-more { margin: 4px 0 0 34px; padding: 6px 8px; background: none; border: 0; border-radius: var(--r-sm); font-size: 13px; font-weight: 500; color: var(--muted); }
.c-more:hover { color: var(--text); background: var(--s2); }
.empty { color: var(--faint); font-size: 13px; margin: 14px 0 0; }

/* leaderboard */
.board { margin-top: 16px; border: 1px solid var(--hair); border-radius: var(--r-lg); overflow: hidden; background: var(--s1); }
.board-head, .rowb { display: grid; grid-template-columns: 32px 1fr 56px 72px; align-items: center; gap: 10px; padding: 0 16px; }
.board-head { height: 38px; font-size: 12px; color: var(--faint); font-weight: 500; border-bottom: 1px solid var(--hair); }
.board-head .num, .rowb .num { text-align: right; }
.rowb { position: relative; height: 52px; border-bottom: 1px solid var(--hair); overflow: hidden; transition: background .2s; }
.rowb:hover { background: var(--s2); }
.rowb:last-child { border-bottom: 0; }
.rowb .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--bg); opacity: .1; width: var(--w); }
.rowb > * { position: relative; }
.rowb .rk { font-size: 13px; font-weight: 500; color: var(--faint); font-variant-numeric: tabular-nums; }
.rowb.top .rk { color: var(--text); }
.rowb .sc { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 14px; font-weight: 500; }
.rowb .sc i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.rowb .sc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rowb .pc { font-family: var(--display); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.rowb .rec { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.rowb.me { background: var(--s2); }
.rowb.me .sc { font-weight: 600; }
.fine { color: var(--faint); font-size: 12px; margin: 14px 0 0; max-width: 60ch; }
.more { margin: 20px auto 0; display: flex; }

/* sheets */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(6,7,9,.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(24px); opacity: .6; } }
.sheet-in { width: 100%; max-width: 640px; max-height: 88%; overflow-y: auto; background: var(--s1); border: 1px solid var(--hair); border-bottom: 0; border-radius: 20px 20px 0 0; padding: 22px 18px 26px; animation: up .3s var(--ease); }
.sheet h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.sheet p { margin: 6px 0 16px; color: var(--muted); font-size: 14px; }
.pick-q {
  width: 100%; height: 44px; margin: 0 0 12px; padding: 0 14px; border-radius: var(--r-md); border: 1px solid transparent;
  background: var(--s2); font-size: 15px; transition: border-color .2s;
}
.pick-q:focus { outline: none; border-color: var(--hair-2); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.sheet .grid { max-height: 48vh; overflow-y: auto; margin: 0 -4px; padding: 4px; }
.pick {
  border: 0; border-radius: var(--r-sm); padding: 14px 12px; background: var(--bg); color: var(--fg); font-family: var(--display);
  font-weight: 900; font-size: 19px; line-height: 1; text-transform: uppercase; text-align: left; transition: transform .15s var(--ease), filter .2s;
}
.pick:hover { filter: brightness(1.08); }
.pick:active { transform: scale(.97); }
.pick[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--s1), 0 0 0 4px var(--text); }
.sheet .skip { margin-top: 16px; width: 100%; }

@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .sheet { align-items: center; padding: 24px; }
  .sheet-in { border-radius: 20px; border-bottom: 1px solid var(--hair); }
}
@media (max-width: 420px) {
  .side { padding-right: 24px; }
  .side.right { padding-left: 24px; }
  #authBtn { padding: 0 6px; }
}

/* feed filters: topic groups + a separate school search */
.filters { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.topics { display: flex; gap: 2px; padding: 3px; background: var(--s1); border: 1px solid var(--hair); border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
.topics::-webkit-scrollbar { display: none; }
.topics button { flex: 1 0 auto; height: 32px; padding: 0 14px; border: 0; background: none; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: background .2s var(--ease), color .2s; }
.topics button:hover { color: var(--text); }
.topics button[aria-pressed="true"] { background: var(--text); color: var(--ink); }
.sfilter { position: relative; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 12px; background: var(--s1); border: 1px solid var(--hair); border-radius: 999px; transition: border-color .2s; }
.sfilter:focus-within { border-color: var(--hair-2); }
.sfilter svg { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--faint); stroke-width: 1.5; stroke-linecap: round; }
.sfilter i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.sfilter.on { border-color: var(--hair-2); }
.sfilter input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; font-size: 14px; }
.sfilter input::placeholder { color: var(--faint); }
.sfilter input::-webkit-calendar-picker-indicator { display: none !important; }
.sx, .mine-b { flex: none; height: 28px; border: 0; border-radius: 999px; background: var(--s2); font-size: 12px; font-weight: 500; color: var(--muted); padding: 0 10px; transition: background .2s, color .2s; }
.sx { width: 28px; padding: 0; font-size: 16px; }
.sx:hover, .mine-b:hover { background: var(--s3); color: var(--text); }
.subs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.subs .chip-btn[aria-pressed="true"] { background: var(--accent); color: #fff; }

/* comment name */
.you { font-size: 11px; font-weight: 500; color: var(--accent); }
.as { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; padding-left: 6px; font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; }
.as button { min-width: 0; overflow: hidden; text-overflow: ellipsis; background: none; border: 0; padding: 2px 4px; border-radius: 6px; font-size: 12px; font-weight: 500; color: var(--muted); text-decoration: underline dotted; text-underline-offset: 3px; }
.as button:hover { color: var(--text); background: var(--s3); }
.as.edit input { width: 140px; height: 26px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--hair-2); background: var(--ink); font-size: 12px; outline: none; }
.as.edit input:focus { border-color: var(--accent); }
.as.edit button { text-decoration: none; color: var(--accent); font-weight: 600; }
.as.edit .nx { color: var(--faint); font-size: 15px; line-height: 1; }

/* card links into the detail page */

/* matchup page: two-tone, chart + school rows left, comments right */
.detail { display: flex; flex-direction: column; }
.d-main { margin-top: 16px; background: var(--s1); padding: 16px 16px 24px; border: 1px solid var(--hair); border-radius: var(--r-lg); }
.d-side { padding: 4px 0 24px; }
.back { display: inline-flex; align-items: center; gap: 4px; margin-left: -6px; padding: 4px 8px 4px 4px; border-radius: var(--r-sm); font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .2s, background .2s; }
.back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.back:hover { color: var(--text); background: var(--s2); }
.d-head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 16px; }
.d-pair { flex: none; display: flex; gap: 4px; }
.d-pair i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--bg); color: var(--fg); font-family: var(--display); font-weight: 900; font-size: 19px; font-style: normal; }
.d-title { margin: 0; font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1; text-transform: uppercase; letter-spacing: .005em; text-wrap: balance; }
.d-meta { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.d-chart { position: relative; margin-top: 22px; }
.c-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; }
.legend b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.delta { font-size: 13px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.chart { position: relative; margin-top: 14px; }
.plot { position: relative; height: 200px; margin-right: 40px; touch-action: pan-y; cursor: crosshair; }
.plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.plot .ln { fill: none; stroke-width: 2.25; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.gl { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--hair); }
.gl span { position: absolute; right: -40px; top: -8px; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; box-shadow: 0 0 0 3px var(--s1); }
.dot.live::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: inherit; opacity: .35; animation: ping 2s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.6); opacity: .45; } to { transform: scale(2.2); opacity: 0; } }
.hover { position: absolute; inset: 0; pointer-events: none; }
.hover .hl { position: absolute; top: 0; bottom: 0; left: var(--x); border-left: 1px solid var(--hair-2); }
.hover .dot { left: var(--x); }
.tip { position: absolute; top: 0; left: var(--x); transform: translate(12px, 0); display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; background: var(--ink); border: 1px solid var(--hair-2); border-radius: var(--r-sm); font-size: 12px; white-space: nowrap; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.tip.flip { transform: translate(calc(-100% - 12px), 0); }
.tip .tt { color: var(--faint); margin-bottom: 2px; }
.tip span { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.tip i { width: 7px; height: 7px; border-radius: 50%; }
.tip b { margin-left: auto; padding-left: 10px; color: var(--text); font-variant-numeric: tabular-nums; }
.xt { display: flex; justify-content: space-between; margin: 8px 40px 0 0; font-size: 11px; color: var(--faint); }
.ranges { display: flex; gap: 2px; margin-top: 10px; }
.ranges button { height: 28px; padding: 0 12px; border: 0; background: none; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--faint); transition: background .2s, color .2s; }
.ranges button:hover { color: var(--text); }
.ranges button[aria-pressed="true"] { background: rgba(240,88,60,.14); color: var(--accent); }
.d-main.locked .plot, .d-main.locked .xt, .d-main.locked .ranges { filter: blur(6px); opacity: .5; pointer-events: none; user-select: none; }
.lock-msg { position: absolute; left: 0; right: 40px; top: 124px; margin: 0; text-align: center; font-size: 14px; font-weight: 500; color: var(--text); pointer-events: none; }
.outs { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.out { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; background: var(--s2); border: 1px solid var(--hair); border-radius: var(--r-md); overflow: hidden; transition: border-color .2s; }
.out.me { border-color: color-mix(in srgb, var(--lc) 55%, transparent); }
.o-fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: var(--lc); opacity: .1; transition: width .6s var(--ease); }
.out > *:not(.o-fill) { position: relative; }
.o-chip { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--bg); color: var(--fg); font-family: var(--display); font-weight: 900; font-size: 20px; }
.o-n { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.o-n b { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.05; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-n span { font-size: 12px; color: var(--faint); }
.o-p { font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; min-width: 56px; text-align: right; }
.o-b { flex: none; height: 36px; min-width: 84px; padding: 0 14px; border: 0; border-radius: var(--r-sm); background: var(--text); color: var(--ink); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; transition: transform .15s var(--ease), background .2s; }
button.o-b:hover:not([disabled]) { background: #fff; }
button.o-b:active:not([disabled]) { transform: scale(.96); }
.o-b[disabled] { opacity: .4; cursor: default; }
.o-b.mine { background: var(--bg); color: var(--fg); }
button.o-b.mine:hover:not([disabled]) { background: var(--bg); color: var(--fg); filter: brightness(1.06); box-shadow: none; }
.d-fine { margin: 12px 0 0; font-size: 12px; color: var(--faint); }
.d-side .thread { margin: 0; padding: 0; border: 0; animation: none; }
.d-side .c-head { margin: 18px 0 14px; }
.c-head h2 { margin: 0; font-size: 15px; font-weight: 600; color: var(--text); }
.c-tools { display: flex; align-items: center; gap: 6px; }
.c-x { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--s2); color: var(--muted); font-size: 18px; line-height: 1; display: grid; place-items: center; transition: background .2s, color .2s; }
.c-x:hover { background: var(--s3); color: var(--text); }
:is(.mr-thread, .feat) .c-scroll { max-height: min(420px, 58vh); overflow-y: auto; overscroll-behavior: contain; margin: 0 -16px; padding: 0 16px; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent); }
:is(.mr-thread, .feat) .c-scroll .cms { margin-top: 0; padding-bottom: 16px; }
:is(.mr-thread, .feat) .c-dock { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--hair); }
:is(.mr-thread, .feat) .c-head h2 { font-size: 13px; font-weight: 500; color: var(--muted); }
:is(.mr-thread, .feat) .thread .c-head { margin: 0 0 12px; }
.d-side .cms { margin-top: 10px; }
.d-side .cms > .cm { padding: 14px 0; border-top: 1px solid var(--hair); }
.d-side .cms > .cm:first-child { border-top: 0; }

/* reply chains */
.cm { position: relative; }
.cm:has(> .cm-b > .replies)::before { content: ''; position: absolute; left: 15.5px; top: 42px; bottom: 6px; width: 1.5px; border-radius: 1px; background: var(--hair-2); }
.d-side .cms > .cm:has(> .cm-b > .replies)::before { top: 56px; bottom: 20px; }
.acts { display: flex; align-items: center; gap: 2px; margin-left: -8px; }
.act-l { height: 26px; padding: 0 8px; background: none; border: 0; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--faint); transition: color .2s, background .2s; }
.act-l:hover:not([disabled]) { color: var(--text); background: var(--s2); }
.act-l[disabled] { opacity: .5; cursor: default; }
.act-l.del.armed { color: var(--accent); background: rgba(240,88,60,.12); }
.replies { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; }
.cm.reply { padding: 8px 0 2px; gap: 8px; }
.cm.reply > .av { width: 24px; height: 24px; border-radius: 7px; font-size: 11px; }
.cm.reply:has(> .cm-b > .replies)::before { left: 11.5px; top: 36px; }
.at { color: var(--accent); font-weight: 500; }
.cm.is-gone .gone { margin: 6px 0 4px; font-size: 13px; font-style: italic; color: var(--faint); }
.gone-av { background: transparent; box-shadow: inset 0 0 0 1.5px var(--hair-2); }
.c-more.sub { display: inline-flex; align-items: center; gap: 10px; margin: 2px 0 0 -8px; font-size: 12px; }
.c-more.sub span { width: 22px; height: 1px; background: var(--hair-2); }
.reply-box { margin-top: 8px; }
.reply-box > .av { width: 24px; height: 24px; border-radius: 7px; font-size: 11px; }
.reply-box textarea { min-height: 36px; padding-top: 8px; }
.c-cancel { margin-right: auto; height: 26px; padding: 0 8px; background: none; border: 0; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--faint); }
.c-cancel:hover { color: var(--text); background: var(--s3); }

/* composer docked under the comments */
.c-dock { margin-top: 14px; }
.c-dock .c-lock { padding: 4px 0; }
.d-side { display: flex; flex-direction: column; }
.d-side .thread { flex: 1; display: flex; flex-direction: column; }
.d-side .c-dock { position: sticky; bottom: 0; margin-top: auto; padding: 12px 0 calc(16px + env(safe-area-inset-bottom)); background: var(--ink); box-shadow: 0 -18px 18px -6px var(--ink); }
.d-side .cms { margin-bottom: 4px; }

/* removing a vote */
.undo { margin: 10px 0 0 -8px; height: 28px; padding: 0 8px; background: none; border: 0; border-radius: var(--r-sm); font-size: 12px; font-weight: 500; color: var(--faint); transition: color .2s, background .2s; }
.undo:hover:not([disabled]) { color: var(--accent); background: rgba(240,88,60,.1); }

/* student verification prompt (school picker) */
.ver-cta { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px; background: var(--s2); border-radius: var(--r-md); font-size: 13px; color: var(--muted); }
.ver-cta span { flex: 1; }
.ver-cta b { color: var(--text); font-weight: 600; }
.ver-cta .btn { flex: none; height: 34px; padding: 0 14px; font-size: 13px; }
.ver-ok { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 13px; color: var(--muted); }

/* leaderboard */
.b-sub { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.rowb.first .rk { color: var(--accent); font-weight: 700; }
.rowb .sc em { font-style: normal; font-size: 11px; font-weight: 500; color: var(--accent); }
.rowb.hit { background: var(--s2); box-shadow: inset 3px 0 0 var(--accent); }
.rowb.me { box-shadow: inset 3px 0 0 var(--text); }
.rowb.me.hit { box-shadow: inset 3px 0 0 var(--accent); }
.b-empty { margin: 0; padding: 18px 16px; font-size: 13px; color: var(--faint); }
.b-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 12px; }
.b-foot .c-more { margin: 0 0 0 -8px; }
.b-foot .fine { margin-top: 4px; }

@media (max-width: 420px) {
  .topics { gap: 0; }
  .topics button { padding: 0 8px; font-size: 12.5px; }
}
/* first-run intro */
.intro { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(6,7,9,.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade .25s var(--ease); }
.intro.out { opacity: 0; transition: opacity .2s var(--ease); }
.intro-in { position: relative; width: min(440px, 100%); background: var(--s1); border: 1px solid var(--hair-2); border-radius: 24px; padding: 18px 0 20px; box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: up .35s var(--ease); overflow: hidden; }
.i-top { display: flex; align-items: center; justify-content: space-between; padding: 0 18px; }
.i-mark { font-family: var(--display); font-weight: 900; font-size: 22px; text-transform: uppercase; letter-spacing: .01em; }
.i-mark span { color: var(--accent); }
.i-skip { height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--s2); color: var(--muted); font-size: 13px; font-weight: 500; transition: color .2s, background .2s; }
.i-skip:hover { color: var(--text); background: var(--s3); }
.i-view { overflow: hidden; touch-action: pan-y; }
.i-track { display: flex; transition: transform .45s var(--ease); }
.i-slide { flex: 0 0 100%; padding: 8px 24px 0; }
.i-slide h2 { margin: 22px 0 8px; font-family: var(--display); font-weight: 900; font-size: 44px; line-height: .95; text-transform: uppercase; }
.i-slide h2 em { font-style: normal; color: var(--accent); }
.i-slide > p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); min-height: 68px; }
.i-art { height: 200px; margin-top: 16px; border-radius: 16px; background: radial-gradient(120% 90% at 50% 0%, var(--s3), var(--s2) 70%); display: grid; place-items: center; padding: 18px; overflow: hidden; }
.i-slide .i-art > * { opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease) .12s, transform .4s var(--ease) .12s; }
.i-slide.on .i-art > * { opacity: 1; transform: none; }
.i-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding: 0 18px; }
.i-back { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--s2); color: var(--text); font-size: 18px; transition: background .2s; }
.i-back:hover { background: var(--s3); }
.i-dots { display: flex; gap: 6px; }
.i-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: var(--hair-2); transition: width .3s var(--ease), background .3s; }
.i-dots button[aria-selected="true"] { width: 22px; background: var(--accent); }
.i-next { min-width: 132px; background: var(--accent); color: #fff; }
.i-next:hover { background: #ff6a4d; }
/* slide art */
.ia-ring { position: relative; display: flex; gap: 6px; width: 100%; height: 120px; }
.ia-tile { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 14px; border-radius: 12px; background: var(--bg); color: var(--fg); font-family: var(--display); font-weight: 900; font-size: 26px; line-height: .95; text-transform: uppercase; }
.ia-tile.r { align-items: flex-end; text-align: right; }
.ia-tile small { margin-top: 6px; font-family: var(--body); font-size: 11px; font-weight: 500; text-transform: none; opacity: .75; }
.ia-vs { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--s2); color: var(--muted); font-size: 11px; font-weight: 600; box-shadow: 0 0 0 4px var(--s2); }
.ia-tap { position: absolute; left: 46%; top: 58%; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: 0 0 0 0 rgba(255,255,255,.5); animation: tap 1.8s var(--ease) infinite; }
@keyframes tap { 0% { transform: scale(.6); box-shadow: 0 0 0 0 rgba(255,255,255,.55); } 40% { transform: scale(1); } 100% { transform: scale(.85); box-shadow: 0 0 0 22px rgba(255,255,255,0); } }
.ia-result { width: 100%; }
.ia-ring.sm { height: 96px; }
.ia-ring.sm .ia-tile { font-size: 22px; }
.ia-tile.dim { opacity: .38; filter: saturate(.5); }
.ia-tape { display: flex; gap: 2px; height: 6px; margin-top: 14px; }
.ia-nums { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; font-weight: 500; }
.ia-tape span { border-radius: 3px; }
.ia-thread { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.ia-cm { display: flex; gap: 8px; font-size: 12px; line-height: 1.35; }
.ia-cm.reply { margin-left: 30px; }
.ia-cm b { font-weight: 600; }
.ia-cm em { font-style: normal; font-weight: 400; color: var(--faint); margin-left: 4px; }
.ia-cm p { margin: 1px 0 0; color: var(--text); }
.ia-av { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--bg); color: var(--fg); font-size: 11px; font-weight: 600; }
.ia-up { margin-left: 8px; font-size: 11px; font-weight: 600; color: var(--accent); }
.ia-rank { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 8px 10px; border-radius: 10px; background: var(--s1); font-size: 13px; font-weight: 500; }
.ia-rank span { color: var(--accent); font-weight: 700; width: 12px; }
.ia-rank i { width: 9px; height: 9px; border-radius: 50%; }
.ia-rank b { margin-left: auto; font-family: var(--display); font-size: 18px; }
@media (max-width: 420px) { .i-slide h2 { font-size: 38px; } .i-art { height: 184px; } }

/* comments: new-arrivals pill, fresh post, reply target */
.c-new { position: sticky; top: 6px; z-index: 2; display: block; margin: 0 auto 8px; height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.c-new:hover { background: #ff6a4d; }
.cm.fresh > .cm-b > .cm-top, .cm.fresh > .cm-b > p { animation: freshIn 1.6s var(--ease); }
@keyframes freshIn { 0% { opacity: 0; transform: translateY(-4px); } 25% { opacity: 1; transform: none; } }
.cm.fresh::after { content: ''; position: absolute; inset: 2px -8px; border-radius: 12px; background: rgba(240,88,60,.08); pointer-events: none; animation: fadeOut 1.8s var(--ease) forwards; }
@keyframes fadeOut { 0%, 50% { opacity: 1; } 100% { opacity: 0; } }
.cm.replying > .cm-b > p { color: var(--text); }
.cm.replying > .av { box-shadow: 0 0 0 2px var(--s1), 0 0 0 3.5px var(--accent); }
.re-to { margin: 8px 0 0; font-size: 12px; color: var(--faint); }
.re-to b { color: var(--accent); font-weight: 600; }
.re-to + .reply-box { margin-top: 6px; }
.peek { -webkit-line-clamp: 1; }
/* one primary action: the + is secondary, voting leads */
.icon-btn { background: var(--s2); color: var(--text); }
.icon-btn:hover { background: var(--s3); }
.icon-btn[aria-expanded="true"] { background: var(--accent); color: #fff; }
.o-b.primary { background: var(--accent); color: #fff; }
button.o-b.primary:hover:not([disabled]) { background: #ff6a4d; }

/* ===== calm pass: dark surfaces, color only where you picked, accent only on primary actions ===== */
.hero { padding: 22px 0 0; }
.tagline { font-size: 22px; line-height: 1; }
.tagline em { color: inherit; }
.stats-line { margin: 8px 0 0; font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.nav button::after { background: var(--text); }

/* muted tiles: school color is a thin edge until you pick, then the picked side fills */
.side { background: var(--s2); color: var(--text); box-shadow: inset 0 0 0 1px var(--hair); }
.side::after { display: none; }
.side::before { content: ''; position: absolute; top: 14px; bottom: 14px; left: 0; width: 3px; border-radius: 0 3px 3px 0; background: var(--bg); }
.side.right::before { left: auto; right: 0; border-radius: 3px 0 0 3px; }
.side .nm { font-family: var(--body); font-weight: 600; text-transform: none; letter-spacing: -.01em; font-size: clamp(17px, 8cqi, 22px); line-height: 1.15; }
.side .hint { color: var(--faint); opacity: 1; }
.side:hover:not([disabled]) { filter: none; background: var(--s3); }
.side.mine { background: var(--bg); color: var(--fg); box-shadow: none; }
.side.mine::before { display: none; }
.side.mine .hint { color: inherit; opacity: .8; }
.side.mine:hover:not([disabled]) { background: var(--bg); filter: brightness(1.05); }
.ring.voted .side:not(.mine) { opacity: .55; }
.ring .vs { background: var(--s1); box-shadow: 0 0 0 4px var(--s1); }

/* featured matchup */
.feat { margin-top: 24px; padding: 18px 16px; background: var(--s1); border: 1px solid var(--hair); border-radius: var(--r-lg); animation: none; }
.f-q { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -.015em; text-wrap: balance; }
.f-q a, .mr-q a { color: inherit; text-decoration: none; }
.f-q a:hover, .mr-q a:hover { text-decoration: underline; text-decoration-color: var(--hair-2); text-underline-offset: 4px; }
.f-meta { margin: 4px 0 16px; font-size: 13px; color: var(--faint); }
.feat .ring { height: 112px; }
.feat .mr-foot { margin-top: 12px; }
.feat .f-side .thread { margin-top: 16px; }

/* topic row: one quiet line */
.topics { margin-top: 32px; display: flex; gap: 4px; padding: 0; background: none; border: 0; border-radius: 0; overflow-x: auto; scrollbar-width: none; }
.topics button { flex: none; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--faint); background: none; }
.topics button:hover { color: var(--text); }
.topics button[aria-pressed="true"] { background: var(--s2); color: var(--text); }
.topics .mine-t { margin-left: auto; box-shadow: inset 0 0 0 1px var(--hair); }
.subs { margin-top: 10px; }
.subs .chip-btn[aria-pressed="true"] { background: var(--s2); color: var(--text); box-shadow: none; }

/* compact list */
.list { margin-top: 12px; display: flex; flex-direction: column; }
.mrow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px 0; border-top: 1px solid var(--hair); }
.mrow:last-child { border-bottom: 1px solid var(--hair); }
.mr-q { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.mr-foot { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 13px; color: var(--faint); }
.mr-c { margin-left: -6px; height: 28px; padding: 0 6px; border: 0; background: none; border-radius: var(--r-sm); font-size: 13px; font-weight: 500; color: var(--muted); transition: color .2s, background .2s; }
.mr-c:hover { color: var(--text); background: var(--s2); }
.mr-n::before { content: '\00b7'; margin-right: 10px; }
.mr-picks { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-content: start; }
.pk { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; height: 44px; padding: 0 12px; border: 0; border-radius: var(--r-md); background: var(--s1); color: var(--text); box-shadow: inset 0 0 0 1px var(--hair); font-size: 14px; font-weight: 600; text-align: left; transition: background .2s, opacity .2s, transform .15s var(--ease); }
.pk i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.pk-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-p { flex: none; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; opacity: .85; }
.pk:hover:not([disabled]) { background: var(--s2); }
.pk:active:not([disabled]) { transform: scale(.98); }
.pk.mine { background: var(--bg); color: var(--fg); box-shadow: none; }
.pk.mine i { display: none; }
.pk.other { opacity: .6; }
.pk[disabled] { cursor: default; }
.mr-bar { grid-column: 1 / -1; display: flex; gap: 2px; height: 3px; margin-top: 2px; }
.mr-bar span { border-radius: 2px; transition: width .5s var(--ease); }
.mr-thread { grid-column: 1 / -1; }
.mr-thread .thread { margin-top: 2px; }
.more-l { display: block; margin: 16px auto 0; }

/* gentle first load: fade the feed in once */
#app.fade-in .feat, #app.fade-in .mrow { animation: rise .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }

/* accent only on primary actions */
.you { color: var(--muted); }
.at { color: var(--text); font-weight: 600; }
.agree[aria-pressed="true"] { color: var(--text); }
.c-new { background: var(--text); color: var(--ink); }
.c-new:hover { background: #fff; }
.re-to b { color: var(--text); }
.cm.replying > .av { box-shadow: 0 0 0 2px var(--s1), 0 0 0 3.5px var(--text); }
.cm.fresh::after { background: rgba(255,255,255,.05); }
.ranges button[aria-pressed="true"] { background: var(--s3); color: var(--text); }
.delta { color: var(--muted); }
.rowb.first .rk { color: var(--text); }
.rowb.hit { box-shadow: inset 3px 0 0 var(--text); }
.rowb .sc em { color: var(--muted); }
.i-dots button[aria-selected="true"] { background: var(--text); }
.icon-btn[aria-expanded="true"] { background: var(--text); color: var(--ink); }

/* calmer type: condensed caps only for the logo and page headlines */
.pick { font-family: var(--body); font-weight: 600; font-size: 15px; text-transform: none; line-height: 1.2; }
.rowb .pc { font-family: var(--body); font-weight: 600; font-size: 15px; }
.o-n b { font-family: var(--body); font-weight: 600; font-size: 16px; text-transform: none; }
.o-p { font-family: var(--body); font-weight: 600; font-size: 22px; }
.o-chip, .d-pair i { font-family: var(--body); font-weight: 700; font-size: 15px; }
.d-pair i { font-size: 16px; }
.d-title { font-family: var(--body); font-weight: 600; font-size: 24px; line-height: 1.2; text-transform: none; letter-spacing: -.02em; }
.ia-tile { font-family: var(--body); font-weight: 600; font-size: 19px; text-transform: none; line-height: 1.1; }
.ia-ring.sm .ia-tile { font-size: 18px; }

/* comment actions: fixed slots so nothing shifts when counts change */
.acts .agree { width: 74px; min-width: 74px; justify-content: flex-start; flex: none; }
.agree-own { display: inline-flex; align-items: center; gap: 5px; width: 74px; flex: none; height: 26px; padding: 0 8px; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.agree-own svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.del-ask { display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; font-size: 12px; color: var(--muted); }
.del-ask .act-l.yes { color: var(--accent); }

/* sign-in sheet */
.auth-in { max-width: 420px; }
.g-btn { width: 100%; gap: 10px; background: #fff; color: #1f1f1f; }
.g-btn svg { width: 18px; height: 18px; }
.g-btn[disabled] { opacity: .7; cursor: progress; }
.auth-err { margin: 12px 0 0; font-size: 13px; color: #f08a78; }
.auth-fine { margin: 14px 0 0; font-size: 12px; color: var(--faint); }
.auth-fine a { color: var(--muted); }

/* footer */
.site-foot { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--hair); font-size: 12px; color: var(--faint); }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--text); }

.c-empty { display: flex; flex-direction: column; gap: 4px; margin-top: 22px; padding: 28px 18px; border-radius: var(--r-md); background: var(--s2); text-align: center; font-size: 13px; color: var(--faint); }
.c-empty b { font-size: 15px; font-weight: 600; color: var(--text); }
.admin-rm { margin: 14px 0 0; font-size: 12px; color: var(--faint); }
.admin-rm .yes { color: var(--accent); }
.d-gone .d-title { margin-top: 18px; }

.rowb.unr { opacity: .55; }

.report { margin: 8px 0 4px; padding: 12px; border-radius: var(--r-md); background: var(--s2); font-size: 13px; }
.report p { margin: 0 0 8px; color: var(--text); font-weight: 500; }
.r-reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.r-reasons .chip-btn { height: 30px; font-size: 12px; }
.report .r-crisis { margin: 10px 0 4px; font-size: 12px; font-weight: 400; color: var(--muted); }
.report .act-l { margin-left: -8px; }
.affil { flex-basis: 100%; margin: 4px 0 0; color: var(--faint); }

/* school colors on vote buttons: tinted before you pick, full color once picked */
/* (hover rules below are written to outrank the plain :hover so a picked button never looks unpicked) */
.pk { background: color-mix(in srgb, var(--bg) 34%, var(--s1)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bg) 70%, transparent); color: #fff; }
.pk i { display: none; }
.pk:hover:not([disabled]) { background: color-mix(in srgb, var(--bg) 50%, var(--s1)); }
.pk.mine { background: var(--bg); color: var(--fg); box-shadow: none; }
.pk.other { opacity: .5; }
.side { background: color-mix(in srgb, var(--bg) 30%, var(--s2)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bg) 65%, transparent); color: #fff; }
.side::before { display: none; }
.side .hint { color: rgba(255,255,255,.65); }
.side:hover:not([disabled]) { background: color-mix(in srgb, var(--bg) 46%, var(--s2)); }
.side.mine { background: var(--bg); color: var(--fg); }
.side.mine .hint { color: inherit; }

.pk.mine:hover:not([disabled]), .pk.mine:focus-visible { background: var(--bg); color: var(--fg); filter: brightness(1.08); }
.pk.other:hover:not([disabled]) { opacity: .85; }
.side.mine:hover:not([disabled]) { background: var(--bg); color: var(--fg); filter: brightness(1.06); }
.ring.voted .side:not(.mine):hover:not([disabled]) { opacity: .85; }

/* category emoji face-off: solid silhouettes in school colors, right one mirrored */
.emo { flex: none; display: inline-grid; place-items: center; font-size: 26px; line-height: 1;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; user-select: none; }
.emo.flip { transform: scaleX(-1); }
.faceoff { display: flex; align-items: center; justify-content: center; gap: 12px; }
.faceoff .fo-t { flex: 0 1 auto; max-width: 250px; min-width: 0; text-align: center; }
.faceoff .f-q, .faceoff .d-title { text-wrap: balance; }

.d-head.faceoff { flex-direction: row; align-items: center; margin-top: 16px; }
.feat .faceoff { margin-bottom: 16px; }
.feat .faceoff .f-meta { margin-bottom: 0; }
.o-emo { width: 30px; font-size: 20px; }

/* question headlines in the athletic display font */
.f-q, .mr-q, .d-title { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: 1.02; }
.f-q { font-size: 26px; }
.mr-q { font-size: 20px; }
.d-title { font-size: 30px; }

/* comment overflow menu + delete dialog */
.cm-top { position: relative; }
.cm-more { margin-left: auto; width: 28px; height: 22px; border: 0; border-radius: 6px; background: none; color: var(--faint); font-size: 16px; line-height: 1; letter-spacing: 1px; transition: background .2s, color .2s; }
.cm-more:hover, .cm-more[aria-expanded="true"] { background: var(--s2); color: var(--text); }
.cm-menu { position: absolute; right: 0; top: 24px; z-index: 5; min-width: 168px; padding: 4px; background: var(--s3); border: 1px solid var(--hair-2); border-radius: var(--r-sm); box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.cm-menu button { display: block; width: 100%; height: 34px; padding: 0 10px; border: 0; border-radius: 6px; background: none; text-align: left; font-size: 13px; font-weight: 500; color: var(--text); }
.cm-menu button:hover { background: rgba(255,255,255,.06); }
.cm-menu .danger { color: #f08a78; }
.dlg { max-width: 360px; }
.dlg h2 { font-size: 18px; }
.dlg-b { display: flex; gap: 8px; margin-top: 18px; }
.dlg-b .btn { flex: 1; }
.btn.danger { background: #e5484d; color: #fff; }
.btn.danger:hover { background: #f2555a; }

/* loading screen */
.splash { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: var(--ink); transition: opacity .3s var(--ease); }
.splash.out { opacity: 0; pointer-events: none; }
.splash .mark { font-size: 44px; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--hair-2); border-top-color: var(--text); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* vote buttons: solid school colors before voting; after voting your pick keeps its color, the other side goes solid gray */
.pk { background: var(--bg); color: var(--fg); box-shadow: none; }
.pk:hover:not([disabled]) { background: var(--bg); filter: brightness(1.08); }
.pk.mine .pk-n::before { content: '\2713  '; }
.pk.other { opacity: .5; background: color-mix(in srgb, var(--bg) 34%, var(--s1)); color: #fff; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bg) 70%, transparent); }
.pk.other:hover:not([disabled]) { opacity: .85; filter: none; background: color-mix(in srgb, var(--bg) 34%, var(--s1)); }
.side { background: var(--bg); color: var(--fg); box-shadow: none; }
.side .hint { color: inherit; opacity: .75; }
.side:hover:not([disabled]) { background: var(--bg); filter: brightness(1.06); }
.ring.voted .side:not(.mine) { opacity: .55; background: color-mix(in srgb, var(--bg) 30%, var(--s2)); color: #fff; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bg) 65%, transparent); }
.ring.voted .side:not(.mine):hover:not([disabled]) { opacity: .85; filter: none; background: color-mix(in srgb, var(--bg) 30%, var(--s2)); }

/* header avatar -> your profile */
.me-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--s2); color: var(--text); font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: 0 0 0 0 transparent; transition: box-shadow .2s, filter .2s; }
.me-btn[style] { background: var(--bg); color: var(--fg); }
.me-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.me-btn:hover { filter: brightness(1.08); }
.me-btn.on { box-shadow: 0 0 0 2px var(--ink), 0 0 0 3.5px var(--text); }
a.who { color: var(--text); font-weight: 600; text-decoration: none; }
a.who:hover { text-decoration: underline; text-underline-offset: 3px; }

/* profile */
.prof { max-width: 680px; margin: 0 auto; padding-top: 16px; }
.p-head { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.pav { flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: var(--s3); color: var(--text); font-family: var(--display); font-weight: 900; font-size: 38px; }
.pav[style] { background: var(--bg); color: var(--fg); }
.p-id { min-width: 0; }
.p-name { margin: 0; font-family: var(--display); font-weight: 900; font-size: 34px; line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.p-name .you { font-family: var(--body); font-size: 12px; text-transform: none; vertical-align: middle; }
.p-school { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.p-school i { width: 10px; height: 10px; border-radius: 50%; background: var(--bg); }
.p-acts, .p-edit { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.p-acts .btn, .p-edit .btn { height: 36px; padding: 0 14px; font-size: 13px; }
.p-edit input { flex: 1; min-width: 160px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--hair-2); background: var(--s2); font-size: 14px; outline: none; }
.fbtn { height: 34px; min-width: 96px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; transition: background .2s, color .2s; }
.fbtn:hover { background: #ff6a4d; }
.fbtn.on { background: var(--s2); color: var(--text); box-shadow: inset 0 0 0 1px var(--hair-2); }
.fbtn.on:hover { background: var(--s3); }
.p-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin: 20px 0 0; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--r-md); overflow: hidden; }
.p-stats div { background: var(--s1); padding: 12px 8px; text-align: center; min-width: 0; }
.p-stats dt { font-size: 11px; color: var(--faint); }
.p-stats dd { margin: 2px 0 0; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.p-tabs { margin-top: 24px; }
.p-tabs span { color: var(--faint); font-weight: 500; }
.p-hint { margin: 14px 0 0; font-size: 13px; color: var(--faint); }
.p-cms { list-style: none; margin: 8px 0 0; padding: 0; }
.p-cms li { padding: 14px 0; border-bottom: 1px solid var(--hair); }
.p-q { display: block; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.p-q span { font-weight: 400; color: var(--faint); }
.p-q:hover { color: var(--text); }
.p-cms p { margin: 4px 0 6px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.p-rep { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; }
.p-meta { display: flex; align-items: center; gap: 8px; }
.plist { list-style: none; margin: 8px 0 0; padding: 0; }
.prow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.prow-n { flex: 1; min-width: 0; display: flex; flex-direction: column; text-decoration: none; color: var(--text); }
.prow-n b { font-weight: 600; font-size: 14px; }
.prow-n span { font-size: 12px; color: var(--faint); }
.prow-n:hover b { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 420px) { .p-stats div { padding: 10px 2px; } .p-stats dt { font-size: 10px; } .p-stats dd { font-size: 15px; } .pav { width: 60px; height: 60px; font-size: 32px; border-radius: 18px; } .p-name { font-size: 28px; } }

.p-votes li { padding: 12px 0; }
.p-votes .p-meta { margin-top: 6px; }

/* profile photos */
.av-pic, .pav-pic { padding: 0; overflow: hidden; background: var(--s3); }
.av-pic img, .pav-pic img, .me-btn img { display: block; width: 100%; height: 100%; object-fit: cover; }
.me-btn { overflow: hidden; }

.p-photo { position: relative; flex: none; padding: 0; border: 0; background: none; border-radius: 22px; cursor: pointer; }
.p-photo:hover .pav { filter: brightness(1.08); }
.p-photo .cam { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--text); color: var(--ink); box-shadow: 0 0 0 3px var(--ink); }
.p-photo .cam svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.p-rm { margin: 6px 0 0 -6px; padding: 2px 6px; border: 0; background: none; border-radius: 6px; font-size: 12px; color: var(--faint); }
.p-rm:hover { color: var(--text); background: var(--s2); }

.p-name-btn { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 0; border: 0; background: none; color: var(--text); text-align: left; cursor: text; }
.p-name-btn svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--faint); stroke-width: 1.5; stroke-linejoin: round; transition: stroke .2s; }
.p-name-btn:hover svg { stroke: var(--text); }
.p-name-edit { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.p-name-edit input.p-name { flex: 1 1 180px; min-width: 0; height: 44px; padding: 0 10px; margin-left: -10px; border: 1px solid var(--hair-2); border-radius: 10px; background: var(--s2); color: var(--text); outline: none; }
.p-name-edit input.p-name:focus { border-color: var(--text); }
.p-name-edit { flex-wrap: nowrap; }
.p-name-edit .btn { flex: none; height: 34px; padding: 0 14px; font-size: 13px; }
.p-name-edit .nx { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--s2); color: var(--muted); font-size: 17px; line-height: 1; }

/* school picker: search first, big cards */
.pick-search { position: relative; margin: 4px 0 14px; }
.pick-search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--faint); stroke-width: 1.5; stroke-linecap: round; pointer-events: none; }
.pick-search .pick-q { height: 54px; margin: 0; padding-left: 46px; font-size: 17px; border-radius: 14px; }
.sheet .pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: none; overflow: visible; margin: 0; padding: 0; }
.pick-grid .pick { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 68px; padding: 12px 14px; border-radius: 14px; text-align: left; }
.pick-grid .pick b { font-size: 16px; font-weight: 600; line-height: 1.2; }
.pick-grid .pick span { font-size: 12px; opacity: .75; font-family: var(--body); text-transform: none; }
.pick-none { grid-column: 1 / -1; margin: 6px 2px; font-size: 13px; color: var(--faint); }

/* desktop */
@media (min-width: 900px) {
  .wrap, .top-in { max-width: 1040px; padding-left: 32px; padding-right: 32px; }
  .top-in { padding-top: 14px; }
  #fightMount { right: 32px; }
  .hero { padding-top: 44px; }
  .tagline { font-size: 34px; }
  .feat { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 28px; padding: 24px; margin-top: 32px; }
  .feat .f-side { border-left: 1px solid var(--hair); padding-left: 28px; }
  .feat .f-side .thread { margin-top: 0; padding-top: 0; border-top: 0; }
  .feat .ring { height: 132px; }
  .mrow { grid-template-columns: minmax(0, 1fr) 380px; align-items: center; gap: 12px 32px; padding: 20px 4px; }
  .mrow .mr-thread { padding-top: 4px; }
  .prompt { font-size: 28px; }
  .stats { margin-top: 12px; }
  .chips { flex-wrap: wrap; overflow: visible; margin: 28px 0 0; padding: 0; -webkit-mask-image: none; mask-image: none; }
  .ring { height: 116px; }
  .more { max-width: 280px; }
  .board { max-width: 820px; }
  .board-head, .rowb { grid-template-columns: 44px 1fr 80px 96px; padding: 0 22px; }
  .rowb { height: 56px; }
  .sheet-in { max-width: 760px; padding: 28px; }
  .filters { flex-direction: row; align-items: center; justify-content: space-between; margin-top: 32px; }
  .topics { flex: none; }
  .sfilter { width: 300px; }
  .detail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: 0 28px; align-items: start; }
  .d-main { margin-top: 24px; padding: 24px 24px 28px; }
  .d-side { position: sticky; top: calc(var(--hh, 98px) + 16px); margin-top: 24px; height: calc(100dvh - var(--hh, 98px) - 32px); overflow-y: auto; padding: 0 4px; overscroll-behavior: contain; }
  .d-title { font-size: 38px; }
  .faceoff .fo-t { max-width: 420px; }
  .f-q { font-size: 32px; }
  .mr-q { font-size: 22px; }
  .o-emo { font-size: 22px; }
  .d-pair i { width: 48px; height: 48px; font-size: 26px; border-radius: 12px; }
  .plot { height: 300px; }
  .lock-msg { top: 174px; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .sheet .pick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sheet .grid { max-height: 52vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
