
*{box-sizing:border-box}body{margin:0;background:#0b1526;color:#f6f8fc;font-family:Inter,system-ui,sans-serif}main,header{max-width:1050px;margin:auto;padding:0 clamp(10px,3vw,32px)}header{height:64px;display:flex;align-items:center;border-bottom:1px solid #334154}header a{display:inline-flex;align-items:center;gap:9px;color:inherit;text-decoration:none;font-weight:800;font-size:20px}header img{width:32px;height:32px;object-fit:contain}main{padding-bottom:28px}.intro{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:30px 0 22px}.eyebrow,h2{font-weight:800;text-transform:uppercase;letter-spacing:.09em}.eyebrow{font-size:12px;color:#9eb4d0}h1{font-size:clamp(27px,5vw,55px);line-height:1.05;letter-spacing:-.055em;margin:7px 0 0}nav{display:flex;border:1px solid #435270;border-radius:9px;padding:3px}button{background:transparent;color:#cdd8e5;border:0;font:inherit;font-weight:700;padding:8px 13px;cursor:pointer;border-radius:6px}button[aria-pressed=true]{background:#edf4fa;color:#132438}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(5px,2vw,20px)}h2{border-top:3px solid var(--accent);padding-top:10px;margin:0 0 12px;font-size:clamp(13px,2vw,19px)}section{min-width:0}.tile{position:relative;display:flex;align-items:center;gap:9px;background:linear-gradient(110deg,color-mix(in srgb,var(--team) 57%,#16253b),#192638 90%);height:76px;border-radius:8px;margin-bottom:9px;padding:8px 13px 13px;overflow:hidden;box-shadow:inset 0 0 0 1px #ffffff20}.logo{width:48px;height:48px;object-fit:contain;filter:drop-shadow(0 1px 2px #0008)}.code{font-weight:750}.numbers{margin-left:auto;text-align:right;font-variant-numeric:tabular-nums}.seed{display:block;color:#d2dbe6;font-size:13px}.record{display:block;font-size:clamp(20px,2.6vw,29px);font-weight:800;line-height:1.15;white-space:nowrap}.bar{position:absolute;bottom:0;left:0;right:0;height:6px;background:#ff786c}.bar i{display:block;height:100%;background:#44d599}.legend{display:flex;justify-content:flex-end;gap:14px;margin-bottom:12px;font-size:13px;color:#c4cfdf}.legend span:before{content:'';display:inline-block;width:12px;height:6px;background:#44d599;margin-right:5px;vertical-align:middle}.legend span+span:before{background:#ff786c}
@media(max-width:650px){header{height:49px}.intro{display:block;margin:20px 0 10px}nav{display:inline-flex;margin-top:15px}.legend{margin-top:-32px;margin-bottom:20px;height:22px;align-items:center;pointer-events:none}.tile{height:69px;padding:5px 6px 10px;gap:2px}.logo{width:clamp(26px,8vw,45px);height:40px}.code{display:none}.record{font-size:clamp(16px,4.6vw,24px)}.seed{font-size:12px}.numbers{flex-shrink:0}h2{letter-spacing:.04em}}
button.tile{width:100%;text-align:left;color:inherit;font:inherit}.tile:focus-visible{outline:2px solid white;outline-offset:2px}.identity{position:relative;display:grid;place-items:center;min-width:0}.flag{position:absolute;bottom:-5px;left:50%;transform:translateX(-50%);background:#ffe1a0;color:#352209;padding:1px 3px;border-radius:3px;font-size:10px;font-weight:800}.delta{display:block;font-size:12px;font-weight:650;color:#e1eaf3}.hint{position:fixed;z-index:5;background:#f4f8ff;color:#142134;padding:7px 10px;border-radius:6px;font-size:14px;font-weight:700;pointer-events:none;box-shadow:0 3px 14px #0005}.tile .record{line-height:1.05}@media(max-width:650px){button.tile{height:77px;padding:4px 5px 9px}.delta{font-size:11px}.flag{font-size:9px;left:-3px;transform:none;bottom:-7px}}

.hint{width:min(300px,calc(100vw - 16px));padding:12px 14px;border-radius:10px;line-height:1.25}.hint strong{font-size:16px}.hint small{display:block;font-weight:500;margin:2px 0 7px;color:#485b70}.hint dl{display:grid;grid-template-columns:1fr auto 1fr auto;gap:5px 6px;font-size:12px;border-top:1px solid #b9c6d3;padding-top:8px;margin:0}.hint dt{font-weight:500}.hint dd{font-variant-numeric:tabular-nums;margin:0}.hint dd:nth-child(4n+2){padding-right:7px}.bar{display:flex}.bar b{display:block;background:#d7bb7c}.legend .ties:before{background:#d7bb7c}
@media(max-width:650px){.tile:has(.bar b) .record{font-size:15px}.tile:has(.bar b) .logo{max-width:26px}}

.legend[hidden]{display:none}.cup-section{margin:0}.cup-section:first-child{margin-top:22px}.cup-section+.cup-section{margin-top:8px}.cup-section+small{display:block;margin-top:8px}.cup-section h2{border:0;text-transform:none;font-size:22px;letter-spacing:-.03em}.cup-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.cup-block{border:1px solid #34445a;background:#142235;border-radius:9px;padding:12px}.cup-section h3{margin:0 0 8px;font-size:16px}.cup-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}.cup-table :is(td,th){padding:6px 4px;text-align:right}.cup-table td:first-child,.cup-table th:first-child{text-align:left}.cup-table th{color:#abbed4;font-size:12px}.cup-table td{border-top:1px solid #304057}.cup-table img{width:26px;height:26px;object-fit:contain;vertical-align:middle;margin-right:5px}.cup-bar{display:flex;width:44px;height:4px;background:#364256;margin:3px 0 0 auto}.cup-lead td:first-child{box-shadow:inset 3px 0 #44d599}.cup-wild td:first-child{box-shadow:inset 3px 0 #eec569}@media(max-width:620px){.cup-groups{grid-template-columns:1fr}.cup-block{padding:10px 14px}.cup-table td{padding:4px 8px}.cup-bar{width:56px}body:has([data-conf=Cup]) .legend{margin:8px 0;height:auto}}
header:has(.sm-league){gap:14px}body nav.sm-section{max-width:1050px;border-color:#34455b;padding-inline:clamp(10px,3vw,32px)}body nav.sm-section a{color:#b9cadd}body nav.sm-section a[aria-current]{color:#9dd2ff;border-color:#68b7fa}

.title-share{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.title-share h1{margin-right:0}#share-board{display:inline-flex;align-items:center;gap:4px;color:#b5cadc;font-size:14px;padding:6px 4px}#share-board:disabled{opacity:.45}#share-board:hover{color:#fff}#share-dialog{background:#142235;color:#f3f7fb;border:1px solid #41536a;border-radius:12px;width:min(420px,94vw);padding:16px}#share-dialog::backdrop{background:#050a14c9}#share-dialog header{height:auto;padding:0;border:0;justify-content:space-between}#share-dialog h2{border:0;padding:0;margin:0;font-size:17px;text-transform:none;letter-spacing:0}#share-dialog img{max-height:59vh;max-width:100%;margin:10px auto;object-fit:contain;display:block}#share-dialog [hidden]{display:none!important}#share-dialog p:empty{display:none}.share-actions{display:flex;gap:8px;flex-wrap:wrap}.share-actions a,.share-actions button{border:1px solid #536984;color:#e4f1ff;background:#22354a;text-decoration:none;border-radius:6px;padding:8px 10px;font:600 14px system-ui}#share-dialog .dismiss{font-size:22px}
.hint-team{display:flex;align-items:center;gap:7px}.hint-logo{width:25px;height:25px;object-fit:contain}.hint .hint-streak{grid-column:3}.hint .hint-streak-value{grid-column:4;padding:0;text-align:right}.hint .hint-streak-value.winning{background:#c5f4d9;color:#105031;border-radius:4px;padding:1px 4px;justify-self:end}

/* Let conference controls and the record legend share a row only when both fit. */
@media(max-width:650px){
 body[data-sport="nfl"] main{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
 body[data-sport="nfl"] .intro{display:contents}
 body[data-sport="nfl"] .intro>div{flex-basis:100%;margin-top:14px}
 body[data-sport="nfl"] .intro nav{margin:0}
 body[data-sport="nfl"] .legend{margin:0 0 0 auto;height:auto;gap:8px;flex-wrap:wrap}
 body[data-sport="nfl"] .legend span{white-space:nowrap}
 body[data-sport="nfl"] #board{flex:0 0 100%;min-width:0;margin-top:4px}
}

@media(max-width:650px){
body[data-sport="nfl"] #board .grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.62fr);gap:7px}
body[data-sport="nfl"] #board .grid section{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:42px;grid-auto-rows:max-content;align-content:start;gap:6px}
body[data-sport="nfl"] #board .grid section:last-child{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:4px}
body[data-sport="nfl"] #board .grid section h2{grid-column:1/-1;line-height:1.15;align-self:stretch;margin:0;font-size:12px;letter-spacing:.04em;padding-top:7px}
body[data-sport="nfl"] #board .grid button.tile{margin:0;height:68px;gap:2px;padding:3px 5px 8px;border-radius:6px}
body[data-sport="nfl"] #board .grid .logo{width:clamp(23px,7.1vw,34px);height:33px}
body[data-sport="nfl"] #board .grid .record{font-size:20px}
body[data-sport="nfl"] #board .grid .seed{font-size:11px}
body[data-sport="nfl"] #board .grid .delta{font-size:10px;white-space:nowrap}
body[data-sport="nfl"] #board .grid .bar{height:4px}
body[data-sport="nfl"] #board .grid section:last-child .tile{display:grid;grid-template-columns:1fr auto;grid-template-rows:19px 18px 11px;align-content:center;height:61px;padding:2px 5px 6px;gap:1px 0}
body[data-sport="nfl"] #board .grid section:last-child .identity{justify-self:start}
body[data-sport="nfl"] #board .grid section:last-child .logo{width:24px;height:20px}
body[data-sport="nfl"] #board .grid section:last-child .numbers{display:contents}
body[data-sport="nfl"] #board .grid section:last-child .seed{grid-column:2;grid-row:1;text-align:right}
body[data-sport="nfl"] #board .grid section:last-child :is(.record,.delta){grid-column:1/-1;text-align:center}
body[data-sport="nfl"] #board .grid section:last-child .record{font-size:18px;line-height:1}
body[data-sport="nfl"] #board .grid section:last-child .delta{font-size:9px;letter-spacing:.02em}
}
@media(max-width:355px){
body[data-sport="nfl"] #board .grid{gap:4px}body[data-sport="nfl"] #board .grid button.tile{padding-inline:3px}body[data-sport="nfl"] #board .grid .delta{font-size:9px}body[data-sport="nfl"] #board .grid .record{font-size:18px}body[data-sport="nfl"] #board .grid section h2{font-size:11px}
}
@media(max-width:650px){
 body[data-sport="nfl"] #board .grid .tile:has(.bar b) .record{font-size:15px}
 body[data-sport="nfl"] #board .grid .tile:has(.bar b) .logo{max-width:23px}
}

@media (min-width: 651px) {
  body[data-sport="nfl"] #board .grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.62fr);
    gap: clamp(10px, 1.5vw, 18px);
  }
  body[data-sport="nfl"] #board section {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 44px;
    gap: 8px;
    align-content: start;
  }
  body[data-sport="nfl"] #board section:last-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body[data-sport="nfl"] #board section h2 {
    grid-column: 1 / -1;
    margin: 0;
  }
  body[data-sport="nfl"] #board .tile { margin: 0; }
  body[data-sport="nfl"] #board section:last-child .tile {
    height: 64px;
    padding: 4px 8px 9px;
    gap: 5px;
  }
  body[data-sport="nfl"] #board section:last-child .logo { width: 34px; height: 34px; }
  body[data-sport="nfl"] #board section:last-child .record { font-size: 22px; }
  body[data-sport="nfl"] #board section:last-child .code { font-size: 14px; }
  body[data-sport="nfl"] #board section:last-child .seed,
  body[data-sport="nfl"] #board section:last-child .delta { font-size: 11px; }
}
@media (min-width: 651px) and (max-width: 850px) {
  body[data-sport="nfl"] #board .tile { padding-inline: 6px; gap: 4px; }
  body[data-sport="nfl"] #board .logo { max-width: 34px; }
  body[data-sport="nfl"] #board section:last-child .code { display: none; }
}

/* Keep the selected conference in the export title and the tab selector. */
body:not([data-sport="nfl"]) .intro { display: block; }
body:not([data-sport="nfl"]) .intro > div { display: flex; align-items: center; justify-content: space-between; }
body:not([data-sport="nfl"]) .intro #title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
body:not([data-sport="nfl"]) .intro nav { display: inline-flex; margin-top: 8px; }
body:not([data-sport="nfl"]) .eyebrow { font-size: 16px; }
#board img:is([src="/logos/UTA.png"], [src="/logos/HOU.png"], [src="/logos/PHI.png"], [src="/logos/TOR.png"], [src="/logos/CHI.png"], [src="/logos/MEM.png"], [src="/logos/CLE.png"], [src="/logos/NOP.png"], [src="/logos/MIA.png"], [src="/logos/GSW.png"]) { background: #edf2f7; border-radius: 50%; aspect-ratio: 1; object-fit: contain; box-sizing: border-box; padding: 2px; height: auto; }
body:not([data-sport="nfl"]) .identity:has(.flag) { position: static; }
body:not([data-sport="nfl"]) .flag {
  left: 70px; top: 4px; bottom: auto; transform: none; font-size: 9px; line-height: 10px;
}
@media (max-width: 650px) {
  body:not([data-sport="nfl"]) .flag { left: 5px; top: 2px; font-size: 8px; line-height: 9px; }
}
