/* The Board: tote-board layout. Built on desk.css tokens. */


/* top */
.live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 6px; box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

h1 { margin: 6px 0 4px; font-size: clamp(32px, 6vw, 54px); letter-spacing: -.045em; line-height: 1; }
h1 span { color: var(--tx3); font-weight: 500; }
.sub { color: var(--tx2); margin: 0 0 18px; max-width: 62ch; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; border: 1px solid var(--line2); background: transparent; color: var(--tx2); height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; }
.tab[aria-selected="true"] { background: var(--tx); color: var(--bg); border-color: var(--tx); font-weight: 600; }
.tab small { font: 11px var(--mono); opacity: .6; margin-left: 6px; }

.key { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; padding: 12px 14px; margin-bottom: 18px; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 12px; font-size: 13px; color: var(--tx2); }
.key .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.how { display: none; margin: -6px 0 18px; padding: 14px 16px; border: 1px solid var(--line2); border-radius: 12px; background: var(--panel); color: var(--tx2); font-size: 14px; }
.how.on { display: block; }
.how ol { margin: 6px 0 0 18px; padding: 0; } .how li { margin: 4px 0; } .how b { color: var(--tx); }

/* the board */
.boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(560px, 1fr)); gap: 18px; }
.game { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.g-head { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.025); font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--tx3); }
.g-head .lg { color: var(--tx); border: 1px solid var(--line2); border-radius: 5px; padding: 1px 6px; }
.g-head .tm { margin-left: auto; color: var(--tx2); }
.g-head .smp { color: var(--yellow); }
.cols, .row { display: grid; grid-template-columns: 44px minmax(0, 1fr) repeat(3, var(--cw)); gap: 8px; align-items: center; padding: 0 14px; --cw: 104px; }
.cols { height: 30px; font: 10px var(--mono); letter-spacing: .12em; color: var(--tx3); text-transform: uppercase; }
.cols span:nth-child(n+3) { text-align: center; }
.row { padding-top: 7px; padding-bottom: 7px; }
.row + .row { border-top: 1px dashed var(--line); }
.rot { height: 34px; display: grid; place-items: center; font: 600 15px var(--mono); border-radius: 8px; background: #05080f; border: 1px solid var(--line2); color: var(--tx); letter-spacing: .02em; }
.team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo { width: 34px; height: 34px; flex: none; position: relative; }
.logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo .mono { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; font: 700 11px var(--sans); color: #fff; letter-spacing: -.02em; }
.game.wrot .cols, .game.wrot .row { grid-template-columns: 66px minmax(0, 1fr) repeat(3, var(--cw)); }
.rot.long { font-size: 13px; letter-spacing: 0; white-space: nowrap; }
.rot.tba { color: var(--tx3); font-size: 12px; letter-spacing: .06em; }
.tname { min-width: 0; line-height: 1.15; }
.tname b { display: block; font-size: 16px; font-weight: 650; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tname small { font: 11px var(--mono); color: var(--tx3); }
.tname .abbr, .tname .nick { display: none; }

/* cells */
.cell { height: var(--cell-h); border-radius: 11px; border: 1px dashed var(--line); background: transparent; display: grid; place-items: center; position: relative; }
.cell.off::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--line2); }
button.cell.lit { --gc: var(--grey); border: 1px solid color-mix(in srgb, var(--gc) 70%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--gc) 20%, #0a0f1c), color-mix(in srgb, var(--gc) 7%, #0a0f1c)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gc) 12%, transparent), 0 8px 26px -8px color-mix(in srgb, var(--gc) 55%, transparent); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 4px 2px; animation: flip .5s both cubic-bezier(.2,.7,.2,1); animation-delay: calc(var(--i, 0) * 70ms); transition: transform .15s; }
button.cell.lit:hover { transform: translateY(-2px); }
button.cell.lit:active { transform: scale(.97); }
button.cell.lit:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@keyframes flip { from { opacity: 0; transform: perspective(300px) rotateX(-70deg) translateY(6px); } to { opacity: 1; transform: none; } }
.g-Green { --gc: var(--green) !important; } .g-Yellow { --gc: var(--yellow) !important; } .g-Orange { --gc: var(--orange) !important; } .g-Red { --gc: var(--red) !important; } .g-Grey { --gc: var(--grey) !important; }
.c-top { font: 600 11px var(--mono); color: var(--tx2); letter-spacing: .04em; height: 13px; }
.c-px { font: 700 21px/1 var(--mono); letter-spacing: -.03em; color: var(--tx); }
.c-edge { font: 600 10px var(--mono); color: var(--gc); letter-spacing: .02em; margin-top: 2px; white-space: nowrap; }
.c-edge i { font-style: normal; color: var(--tx3); font-weight: 500; margin-right: 3px; }
.g-Green.lit .c-px { text-shadow: 0 0 18px color-mix(in srgb, var(--green) 70%, transparent); }
.g-foot { display: flex; gap: 10px; align-items: center; padding: 10px 14px 12px; border-top: 1px solid var(--line); font: 11px var(--mono); color: var(--tx3); letter-spacing: .03em; }
.g-foot .gd { display: inline-flex; gap: 6px; align-items: center; }
.g-foot .gd i { width: 8px; height: 8px; border-radius: 2px; background: var(--gc); }

/* sheet */
.scrim { position: fixed; inset: 0; background: rgba(2,4,10,.62); z-index: 50; opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; background: var(--panel2); border: 1px solid var(--line2); border-bottom: 0; border-radius: 20px 20px 0 0; padding: 18px 20px calc(24px + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .26s cubic-bezier(.2,.8,.2,1); box-shadow: 0 -30px 80px rgba(0,0,0,.6); max-height: 90vh; overflow-y: auto; }
.sheet.on { transform: none; }
.s-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.s-top .tag { font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--tx3); }
.s-x { margin-left: auto; background: var(--panel); border: 1px solid var(--line2); width: 34px; height: 34px; border-radius: 50%; font-size: 16px; }
.s-pick { font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.s-meta { color: var(--tx2); font-size: 14px; margin-top: 2px; }
.say { margin: 16px 0 10px; padding: 16px 16px 14px; border-radius: 14px; background: #05080f; border: 1px solid var(--line2); }
.say small { display: block; font: 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--tx3); margin-bottom: 8px; }
.say .line { font: 700 clamp(20px, 6.2vw, 34px)/1.15 var(--mono); letter-spacing: -.04em; }
.say .line em { font-style: normal; color: var(--gc); }
.amts { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.amt { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; font: 600 14px var(--mono); }
.amt[aria-pressed="true"] { background: var(--tx); color: var(--bg); border-color: var(--tx); }
.win { font: 13px var(--mono); color: var(--tx2); margin-bottom: 14px; }
.win b { color: var(--tx); }
.read { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; }
.pbar2 { height: 8px; border-radius: 4px; background: var(--line); position: relative; }
.pbar2 b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.pbar2 .m { background: var(--gc); } .pbar2 .i { background: var(--tx3); top: 2px; bottom: 2px; }
.lbl { display: flex; justify-content: space-between; font: 12px var(--mono); color: var(--tx2); }
.read p { margin: 0; font-size: 13px; color: var(--tx2); }
.acts { display: flex; gap: 10px; }
.sbtn { flex: 1; height: 46px; border-radius: 12px; border: 1px solid var(--line2); background: var(--panel); font-weight: 600; }
.sbtn.pri { background: var(--tx); color: var(--bg); border-color: var(--tx); }
.listline { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); font: 600 18px var(--mono); }
.listline:first-of-type { border-top: 0; }
.listline span { flex: 1; letter-spacing: -.02em; }
.listline small { font: 11px var(--sans); color: var(--tx3); display: block; font-weight: 400; letter-spacing: 0; }
.listline button { background: none; border: 0; color: var(--tx3); font-size: 18px; }

.slip { position: fixed; z-index: 40; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translate(-50%, 140%); background: var(--tx); color: var(--bg); border-radius: 999px; padding: 0 8px 0 20px; height: 54px; display: flex; align-items: center; gap: 14px; box-shadow: 0 16px 50px rgba(0,0,0,.6); transition: transform .25s cubic-bezier(.2,.8,.2,1); font-weight: 600; border: 0; max-width: calc(100vw - 28px); }
.slip.on { transform: translate(-50%, 0); }
.slip i { font-style: normal; background: var(--bg); color: var(--tx); border-radius: 999px; padding: 9px 16px; font-size: 14px; }
.fine { margin-top: 28px; color: var(--tx3); font-size: 12px; max-width: 80ch; }

/* sizes */
@media (min-width: 700px) { .tname .full { display: block; } }
@media (max-width: 699px) {
  .boards { grid-template-columns: 1fr; gap: 14px; }
  .cols, .row { --cw: 1fr; grid-template-columns: 34px 84px repeat(3, minmax(0, 1fr)); gap: 5px; padding: 0 8px; }
  .team .full, .tname small { display: none; }
  .tname .abbr { display: block; font-size: 14px; letter-spacing: -.02em; }
  .logo { width: 24px; height: 24px; } .logo .mono { font-size: 8px; } .team { gap: 5px; }
  .rot { font-size: 13px; height: 32px; }
  .game.wrot .cols, .game.wrot .row { grid-template-columns: 46px 72px repeat(3, minmax(0, 1fr)); }
  .rot.long { font-size: 10.5px; padding: 0 2px; }
  .c-px { font-size: 18px; } .c-edge { font-size: 8.5px; letter-spacing: 0; } .c-edge i { margin-right: 2px; } h1 span { display: block; font-size: .6em; margin-top: 4px; }
  :root { --cell-h: 62px; }
  .g-names { display: block !important; }
}
.g-names { display: none; padding: 0 14px 10px; font-size: 12px; color: var(--tx3); }
@media (prefers-reduced-motion: reduce) { button.cell.lit { animation: none; } .live { animation: none; } .sheet, .slip, .scrim { transition: none; } }

/* v2: line is the hero */
.cell .c-main { font: 700 22px/1 var(--mono); letter-spacing: -.04em; color: var(--tx); }
.cell .c-main small { font: 700 12px var(--mono); color: var(--tx2); margin-right: 3px; letter-spacing: 0; text-transform: uppercase; }
.cell .c-sub { font: 500 13px/1 var(--mono); color: var(--tx2); letter-spacing: -.02em; margin-top: 2px; }
.cell .c-lab { font: 600 10px var(--mono); color: var(--tx3); letter-spacing: .1em; height: 12px; }
.cell.lit .c-main { text-shadow: none; }
.g-Green.lit .c-main { text-shadow: 0 0 18px color-mix(in srgb, var(--green) 70%, transparent); }
/* v2: quiet other side */
.cell.alt { border: 1px solid var(--line); background: rgba(255,255,255,.02); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; opacity: .72; }
.cell.alt .c-main { font-size: 16px; color: var(--tx2); font-weight: 600; }
.cell.alt .c-main small { font-size: 10px; }
.cell.alt .c-sub { font-size: 11px; color: var(--tx3); }
.cell.alt .c-lab { color: var(--tx3); }
.mode { display: inline-flex; border: 1px solid var(--line2); border-radius: 999px; overflow: hidden; margin-left: auto; }
.mode button { height: 30px; padding: 0 12px; background: transparent; border: 0; color: var(--tx2); font-size: 12.5px; }
.mode button[aria-pressed="true"] { background: var(--tx); color: var(--bg); font-weight: 600; }
@media (max-width: 699px) { .cell .c-main { font-size: 19px; } .cell .c-sub { font-size: 11.5px; } .cell.alt .c-main { font-size: 14px; } .mode { margin-left: 0; } }
/* v2: amount input + units */
.amtrow { display: flex; gap: 10px; align-items: stretch; margin: 12px 0 8px; }
.amtbox { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; height: 52px; padding: 0 14px; background: #05080f; border: 1px solid var(--line2); border-radius: 12px; }
.amtbox:focus-within { border-color: var(--tx); }
.amtbox span { font: 600 22px var(--mono); color: var(--tx3); }
.amtbox input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--tx); font: 700 24px var(--mono); letter-spacing: -.03em; }
.unitset { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tx2); margin: 4px 0 12px; flex-wrap: wrap; }
.unitset input { width: 76px; height: 32px; padding: 0 10px; border-radius: 8px; background: #05080f; border: 1px solid var(--line2); color: var(--tx); font: 600 14px var(--mono); }
.unitset .link { background: none; border: 0; color: var(--tx); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.amt small { font-weight: 400; color: var(--tx3); margin-left: 4px; }
.amt[aria-pressed="true"] small { color: #3a4259; }
.win b.big { font-size: 18px; color: var(--green); }
.sbtn.done { background: transparent; color: var(--green); border-color: var(--green); }
.toast { position: fixed; z-index: 70; left: 50%; top: 18px; transform: translate(-50%, -20px); opacity: 0; pointer-events: none; background: var(--green); color: #04130b; font-weight: 700; padding: 10px 18px; border-radius: 999px; transition: transform .25s, opacity .25s; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.toast.on { transform: translate(-50%, 0); opacity: 1; }
.slip.bump { animation: bump .4s; } @keyframes bump { 40% { transform: translate(-50%, -6px) scale(1.04); } }
.la { width: 78px; height: 34px; padding: 0 8px; border-radius: 8px; background: #05080f; border: 1px solid var(--line2); color: var(--tx); font: 600 15px var(--mono); }

/* ---- page frame ---- */
.deskhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.deskhead h1 { font-size: clamp(32px, 6vw, 54px); letter-spacing: -.045em; }
.deskhead h1 span { color: var(--tx3); font-weight: 500; }
.datenav { display: flex; align-items: center; gap: 14px; margin: 10px 0 0; font-size: 14px; }
.datenav a { color: var(--tx2); text-decoration: none; }
.datenav a:hover { color: var(--tx); }
.datenav-today { border: 1px solid var(--line2); border-radius: 999px; padding: 1px 12px; font-size: 12px; }
.tape { font: 11px/1.7 var(--mono); color: var(--tx3); text-align: right; letter-spacing: .04em; text-transform: uppercase; }
.tape b { color: var(--tx2); font-weight: 500; }
.tape .live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 6px; box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.sub { color: var(--tx2); margin: 6px 0 18px; max-width: 64ch; }
@media (max-width: 640px) { .tape { text-align: left; } .deskhead h1 span { display: block; font-size: .6em; margin-top: 4px; } }

.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; border: 1px solid var(--line2); background: transparent; color: var(--tx2); height: 36px; padding: 0 15px; border-radius: 999px; font-size: 14px; }
.tab[aria-selected="true"] { background: var(--tx); color: var(--bg); border-color: var(--tx); font-weight: 600; }
.tab small { font: 11px var(--mono); opacity: .6; margin-left: 6px; }

.key { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 10px 14px; margin-bottom: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; background: transparent; border: 1px solid var(--line2); color: var(--tx2); font-size: 13px; }
.chip i { width: 9px; height: 9px; border-radius: 3px; background: var(--gc); }
.chip small { font: 11px var(--mono); color: var(--tx3); }
.chip[aria-pressed="false"] { opacity: .45; }
.chip[aria-pressed="false"] i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--gc); }
.linkbtn { margin-left: auto; background: none; border: 0; color: var(--tx); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.findbox input { width: 220px; height: 36px; padding: 0 14px; background: var(--s1); border: 1px solid var(--line2); border-radius: 999px; }
.findbox input:focus { outline: none; border-color: var(--tx2); }
.sortsel select { height: 36px; padding: 0 12px; background: var(--s1); border: 1px solid var(--line2); border-radius: 999px; font-size: 13px; }
.controls .mode { margin-left: auto; }
.mode { display: inline-flex; border: 1px solid var(--line2); border-radius: 999px; overflow: hidden; }
.mode button { height: 34px; padding: 0 14px; background: transparent; border: 0; color: var(--tx2); font-size: 13px; }
.mode button[aria-pressed="true"] { background: var(--tx); color: var(--bg); font-weight: 600; }
@media (max-width: 699px) { .findbox { flex: 1 1 100%; } .findbox input { width: 100%; } .controls .mode { margin-left: 0; } }
.nores { color: var(--tx2); padding: 30px 0; }
.nores .linkbtn { margin-left: 6px; }

/* ---- cell extras ---- */
.cell .mv { display: inline-grid; place-items: center; width: 13px; height: 13px; margin-left: 5px; border-radius: 4px; font: 800 8px/1 var(--mono); vertical-align: 1px; background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px #fff; opacity: 1; }
.cell .mv.away { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.cell .rs { position: absolute; top: -7px; left: 50%; transform: translateX(-50%); font: 800 8px var(--mono); letter-spacing: .08em; padding: 2px 7px; border-radius: 999px; color: #04130b; }
.cell .rs.WIN { background: var(--win); } .cell .rs.LOSS { background: var(--loss); color: #fff; } .cell .rs.PUSH { background: var(--push); }
.cell.alt .c-edge { color: var(--tx3); font-size: 9.5px; margin-top: 1px; }
.cell.alt { gap: 0; }
.cell.dim { opacity: .55; }
.g-head .tm .st { color: var(--tx3); margin-left: 8px; }
.tname small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.logo .mono { color: #fff; }
.sheet .res { font: 600 13px var(--mono); margin: 6px 0 0; }
.sheet .res.WIN { color: var(--win); } .sheet .res.LOSS { color: var(--loss); } .sheet .res.PUSH { color: var(--push); }
.mvline { font: 12px/1.5 var(--mono); color: var(--tx2); }
.mvline b { color: var(--tx); font-weight: 500; }
.why { font-size: 13px; color: var(--tx2); margin: 0; }
.rowhint { font-size: 12px; color: var(--tx3); margin: 2px 0 0; }

@media (max-width: 699px) {
  .deskhead { flex-direction: column; align-items: flex-start; gap: 8px; }
  .sub { display: none; }
  .key { padding: 6px 8px; margin-bottom: 10px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .key::-webkit-scrollbar { display: none; }
  .key .chips { flex-wrap: nowrap; }
  .chip { flex: none; }
  .linkbtn { flex: none; margin-left: 4px; white-space: nowrap; }
  .controls { gap: 8px; margin-bottom: 14px; }
  .sortsel { flex: 1; } .sortsel select { width: 100%; }
  .controls .mode { flex: none; }
  .tabs { margin-bottom: 10px; }
}
@media (max-width: 699px) {
  .tname small { display: none; }
  .tname .abbr { white-space: normal; overflow-wrap: anywhere; font-size: 12.5px; line-height: 1.1; letter-spacing: -.03em; }
  .tape { font-size: 10px; line-height: 1.6; } .tape br { display: none; } .tape b { margin-right: 8px; }
}
@media (max-width: 699px) {
  .cols, .row { grid-template-columns: 34px 90px repeat(3, minmax(0, 1fr)); }
  .tname .abbr { overflow-wrap: normal; word-break: normal; hyphens: none; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
}

.tname small.rec { color: var(--tx2); }
.tname small:first-of-type { font-size: 10.5px; }

/* Red, Grey or no-edge picks: stay tappable and honest, but no glow */
button.cell.lit.calm { background: #0d1322; border: 1px solid color-mix(in srgb, var(--gc) 38%, transparent); box-shadow: none; }
.cell.lit.calm .c-main { color: var(--tx2); text-shadow: none; }
.cell.lit.calm .c-sub, .cell.lit.calm .c-lab { color: var(--tx3); }
.cell.lit.calm .c-edge { color: var(--tx2); }
.cell.lit.calm .c-edge i { color: var(--tx3); }

/* league tabs are real links now */
a.tab { display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
a.tab[aria-current="page"] { background: var(--tx); color: var(--bg); border-color: var(--tx); font-weight: 600; }
a.tab:hover { border-color: var(--tx2); }
a.tab[aria-current="page"]:hover { border-color: var(--tx); }

/* plain-text card (readable by people and crawlers alike) */
.plain { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 80ch; }
.plain h2 { font-size: 18px; letter-spacing: -.02em; margin-bottom: 6px; }
.plain h3 { font-size: 15px; margin: 18px 0 6px; letter-spacing: -.01em; }
.plain h3 a { text-decoration: none; }
.plain-s { color: var(--tx3); font-size: 13px; margin: 0 0 12px; }
.pg { margin: 0 0 12px; }
.pg h3, .pg h4 { font-size: 14px; font-weight: 600; margin: 0 0 3px; letter-spacing: 0; line-height: 1.3; }
.pg time { font: 11px var(--mono); color: var(--tx3); margin-left: 8px; font-weight: 400; }
.pg ul { margin: 0; padding-left: 18px; color: var(--tx2); font-size: 13.5px; }
.pg li { margin: 2px 0; }
.pg-m { color: var(--tx3); font-size: 12px; }

.plain { margin-top: 28px; padding-top: 0; border-top: 0; }
.plain > summary { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 999px; color: var(--tx2); font-size: 13px; list-style: none; }
.plain > summary::-webkit-details-marker { display: none; }
.plain > summary::after { content: "+"; font: 600 15px var(--mono); color: var(--tx3); }
.plain[open] > summary::after { content: "\2212"; }
.plain > summary:hover { color: var(--tx); border-color: var(--tx2); }
.plain[open] > h2 { margin-top: 18px; }

.cover { margin: -4px 0 14px; padding: 8px 12px; border: 1px dashed var(--line2); border-radius: 10px; color: var(--tx3); font-size: 12.5px; max-width: 80ch; }
.cover b { color: var(--tx2); font-weight: 600; }
.cover[hidden] { display: none; }
/* leagues with no rotation numbers: drop the column rather than show dashes */
.game.norot .cols, .game.norot .row { grid-template-columns: minmax(0, 1fr) repeat(3, var(--cw)); }
@media (max-width: 699px) { .game.norot .cols, .game.norot .row { grid-template-columns: 100px repeat(3, minmax(0, 1fr)); } }

.tname.long b { font-size: 13.5px; letter-spacing: -.03em; }

/* compact pick sheet: header + scrolling body + pinned actions */
.sheet.pk { display: flex; flex-direction: column; overflow: hidden; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); max-height: 92vh; max-height: 92dvh; }
.sheet.pk .s-top { margin-bottom: 8px; flex: none; }
.sheet.pk .s-x { width: 32px; height: 32px; }
.sheet.pk .s-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet.pk .acts { flex: none; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.sheet.pk .sbtn { height: 44px; }
.sheet.pk .s-pick { font-size: 19px; }
.sheet.pk .say { margin: 10px 0 8px; padding: 10px 14px 9px; }
.sheet.pk .say small { margin-bottom: 3px; }
.sheet.pk .say .line { font-size: clamp(18px, 5.4vw, 28px); }
.amtline { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.sheet.pk .amtrow { margin: 0; flex: 0 0 104px; }
.sheet.pk .amtbox { height: 40px; padding: 0 10px; }
.sheet.pk .amtbox span { font-size: 17px; }
.sheet.pk .amtbox input { font-size: 18px; }
.sheet.pk .amts { margin: 0; gap: 6px; flex-wrap: nowrap; flex: 1; min-width: 0; }
.sheet.pk .amt { flex: 1; min-width: 0; padding: 0 2px; min-height: 40px; height: auto; font-size: 13px; }
.sheet.pk .win { margin-bottom: 6px; }
.sheet.pk .unitset { margin: 0 0 8px; }
.sheet.pk .read { padding: 10px 12px; gap: 8px; margin-bottom: 6px; }
.sheet.pk .amtrow { min-width: 0; width: 104px; } .sheet.pk .amtbox input { width: 100%; min-width: 0; }

/* Market-move arrows: the glyph stays (so layout never changes) but is hidden; a drawn triangle is centred in the box. */
.cell .mv { position: relative; color: transparent; }
.cell .mv::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 5px; background: #fff; clip-path: polygon(50% 0, 100% 100%, 0 100%); transform: translate(-50%, -50%) translateY(-.4px); }
.cell .mv.away::after { clip-path: polygon(0 0, 100% 0, 50% 100%); transform: translate(-50%, -50%) translateY(.4px); }

/* ML arrow sits after the price, like the other markets. */
.cell .c-main .mv { vertical-align: 4px; margin-left: 6px; }

/* Bet-type filter (Spread / Moneyline / Total) beside the grade chips */
.chips.mkts { padding-left: 14px; border-left: 1px solid var(--line); }
@media (max-width: 699px) {
  /* phones: colours scroll on the first line, bet types sit on their own line so they are always visible */
  .key { flex-wrap: wrap; overflow-x: visible; row-gap: 8px; }
  .key .chips[data-grades] { flex: 1 1 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .key .chips[data-grades]::-webkit-scrollbar { display: none; }
  .chips.mkts { padding-left: 0; border-left: 0; }
  .key .linkbtn { margin-left: auto; }
}

/* Behind the Board: watch pill in the filter strip + shared pop-over player (assets/js/btb.js) */
.khelp { position: relative; margin-left: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.khelp::before { content: ''; position: absolute; left: -8px; top: 4px; bottom: 4px; width: 1px; background: var(--line); } /* divider drawn in the gap: takes no space */
.khelp.rowstart { margin-left: 0; }
.khelp.rowstart::before { display: none; }
.key .chips.mkts.rowstart { padding-left: 0; border-left: 0; }
.khelp .linkbtn { margin-left: 0; }
.btbw { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 4px; border: 1px solid var(--line2); border-radius: 999px; color: var(--tx2); font-size: 13px; text-decoration: none; white-space: nowrap; background: transparent; flex: none; }
.btbw:hover, .btbw:focus-visible { border-color: var(--tx2); color: var(--tx); }
.btbw .btbp { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--tx); color: var(--bg); flex: none; }
.btbw .btbp svg { margin-left: 2px; }
.btbw small { font: 11px var(--mono); color: var(--tx3); }
.how .howv { margin: 0 0 10px; }
/* "?" help button: opens the How to read panel (board.js toggles #how via id howBtn) */
.khq { position: relative; width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--line2); background: transparent; color: var(--tx2); font: 600 14px/1 inherit; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.khq:focus-visible, .khq[aria-expanded="true"] { border-color: var(--tx2); color: var(--tx); }
.khq[aria-expanded="true"] { background: var(--s3); }
.khtip { position: absolute; bottom: calc(100% + 8px); right: -6px; white-space: nowrap; padding: 6px 10px; border-radius: 8px; background: var(--s3); border: 1px solid var(--line2); color: var(--tx); font: 500 12px/1.2 inherit; box-shadow: 0 8px 24px rgba(0,0,0,.4); opacity: 0; visibility: hidden; transform: translateY(3px); transition: opacity .12s, transform .12s, visibility .12s; pointer-events: none; z-index: 20; }
.khq:focus-visible .khtip { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) { .khq:hover { border-color: var(--tx2); color: var(--tx); } .khq:hover .khtip { opacity: 1; visibility: visible; transform: none; } }
@media (max-width: 480px) { .khelp .btbw small { display: none; } } /* portrait phones: keep topic names, drop run times */
.btbk { font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--tx3); }
html.btb-open { overflow: hidden; }
.btbd { padding: 0; margin: auto; border: 1px solid var(--line2); border-radius: 16px; background: var(--s1); color: var(--tx); width: min(960px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 24px); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.btbd::backdrop { background: rgba(4,6,12,.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btbd[open] { animation: btbin .18s ease-out; }
@keyframes btbin { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.btbdh { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 18px; }
.btbdh h2 { font-size: 17px; letter-spacing: -.01em; margin: 2px 0 0; }
.btbx { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line2); background: transparent; color: var(--tx); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.btbx:hover, .btbx:focus-visible { background: var(--s3); border-color: var(--tx3); }
.btbd video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100dvh - 100px); background: #000; object-fit: contain; }
@media (max-width: 699px) { .khelp { gap: 6px; } .khelp .linkbtn { margin-left: 0; } .khelp .btbw { padding-right: 10px; } }
@media (max-width: 600px) { .btbd { width: calc(100vw - 16px); border-radius: 12px; } .btbdh { padding: 10px 10px 10px 14px; } .btbdh h2 { font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { .btbd[open] { animation: none; } }

/* Filter fixes 2026-11-17: Clear control + visible scroll bars on phone chip rows */
.kclear { height: 30px; padding: 0 10px; border: 0; background: none; color: var(--tx2); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; flex: none; }
.kclear:hover, .kclear:focus-visible { color: var(--tx); }
@media (max-width: 699px) {
  .tabs, .key .chips[data-grades] { scrollbar-width: thin; scrollbar-color: var(--line2) transparent; padding-bottom: 6px; }
  .tabs::-webkit-scrollbar, .key .chips[data-grades]::-webkit-scrollbar { display: block; height: 3px; }
  .tabs::-webkit-scrollbar-track, .key .chips[data-grades]::-webkit-scrollbar-track { background: transparent; }
  .tabs::-webkit-scrollbar-thumb, .key .chips[data-grades]::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 3px; }
}
/* soft edge fades (classes set by board.js only when the row overflows) */
.fade-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
.fade-l { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px); mask-image: linear-gradient(to right, transparent, #000 28px); }
.fade-l.fade-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
/* multi-league select: selected league tabs look like the current tab did */
a.tab[aria-pressed="true"] { background: var(--tx); color: var(--bg); border-color: var(--tx); font-weight: 600; }
a.tab[aria-pressed="true"]:hover { border-color: var(--tx); }

/* Behind the Board videos on the Prev / Next line, in Winmora gold so they never read as filters */
.datenav { flex-wrap: wrap; row-gap: 8px; }
.dn-watch { margin-left: auto; display: inline-flex; gap: 8px; flex-wrap: wrap; }
.btbgo { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 4px; border: 1px solid rgba(240,160,32,.55); border-radius: 999px; background: rgba(240,160,32,.10); color: #f5b84a; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.datenav .btbgo { color: #f5b84a; }
.btbgo:hover, .btbgo:focus-visible { background: rgba(240,160,32,.18); border-color: #f0a020; color: #ffc768; }
.btbgo .btbp { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #f0a020; color: #120c02; flex: none; }
.btbgo .btbp svg { margin-left: 2px; }
.btbgo small { font-weight: 500; color: rgba(245,184,74,.75); font-size: 13px; }
.btbgo.pulse { animation: btbpulse 1.6s ease-out 0.8s 3; }
@keyframes btbpulse { 0% { box-shadow: 0 0 0 0 rgba(240,160,32,.55); } 100% { box-shadow: 0 0 0 12px rgba(240,160,32,0); } }
@media (prefers-reduced-motion: reduce) { .btbgo.pulse { animation: none; } }
@media (max-width: 400px) { .btbgo small { display: none; } }
/* phones: keep the Prev / Next line at its usual height and fit the "?" on the bet-type row */
@media (max-width: 699px) { .btbgo { height: 28px; font-size: 13.5px; padding-right: 12px; } .btbgo .btbp { width: 22px; height: 22px; } .datenav { row-gap: 6px; } }
@media (max-width: 380px) { .key .chips.mkts { gap: 5px; } .key .chips.mkts .chip { padding: 0 9px; } .khq { width: 28px; height: 28px; } }
/* two-line label: small mono "VIDEOS" eyebrow (like the board's other labels) over "How it works" */
.btbtx { display: inline-flex; flex-direction: column; justify-content: center; line-height: 1; }
.btbtx em { font: 600 9px/1 var(--mono); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: rgba(245,184,74,.8); margin-bottom: 2px; }
.btbtx span { line-height: 1.05; }
/* the video button sits just after "Next" (normal gap) at every width */
.dn-watch { margin-left: 0; }
/* LAST CAPTURED line: always left-aligned (no ragged second line when it wraps under the title);
   phones show it as one line with a dot between the parts instead of an odd gap */
.tape { text-align: left; }
@media (max-width: 699px) { .tape b { margin-right: 0; } .tape b:not(:last-of-type)::after { content: "\00a0\00b7\00a0"; color: var(--tx3); font-weight: 400; } }
/* the "?" follows Total directly, at every width: no divider, no push to the far edge */
.khelp { margin-left: 0; }
.khelp::before { display: none; }
/* bet-type pills + "?" are one group: the divider belongs to the group, and the "?" never wraps alone */
.kbet { display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; min-width: 0; padding-left: 14px; border-left: 1px solid var(--line); }
.key .kbet .chips.mkts { padding-left: 0; border-left: 0; }
.kbet.rowstart { padding-left: 0; border-left: 0; }
@media (max-width: 699px) { .kbet { padding-left: 0; border-left: 0; } }
@media (max-width: 400px) { .tape { letter-spacing: 0; } }
/* chooser inside the player when one button offers several videos */
.btbdl { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 18px 12px; }
.btbdl button { height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--tx2); font: 600 13px var(--sans); cursor: pointer; }
.btbdl button small { font: 11px var(--mono); color: var(--tx3); margin-left: 4px; }
.btbdl button[aria-pressed="true"] { background: #f0a020; border-color: #f0a020; color: #120c02; }
.btbdl button[aria-pressed="true"] small { color: rgba(18,12,2,.7); }

/* NCAAB_NEUTRAL_DISPLAY_V1: event name in the card header, between the league chip and the start time */
.g-head .lg, .g-head .tm { flex: none; white-space: nowrap; }
.g-head .ev { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tx3); letter-spacing: .03em; }
@media (max-width: 480px) { .g-head .evc { display: none; } }
