/* Ball PhD: the site's look (owner 2026-11-25: "exactly like the design"). Every value below is taken from the Figma board (BALL PHD / Your daily
   ball check): Inter Regular / Bold / Black, ink #1E1E1E, play blue #3DADFF with a 4 px ink edge, moments yellow #FFC943, quiet cards with a 1.5 px
   #D9D9D9 line, gray #757575. Phone frames are 390 wide with 24 px sides; the computer frames are 1440 wide with 64 px sides.
   This file: tokens, header, footer, the home page, the how-to-play text and the accounts note. The games: play.css. Daily 5 and Rewind: daily.css. */
:root {
  --bp-ink: #1E1E1E; --bp-gray: #757575; --bp-line: #D9D9D9; --bp-soft: #F9F9F9; --bp-blue: #3DADFF; --bp-yel: #FFC943;
  --bp-t-blue: #3DADFF; --bp-t-green: #66D575; --bp-t-yel: #FFC943; --bp-t-orange: #FF9E42; --bp-t-red: #F24822; --bp-t-miss: #757575; --bp-t-chalk: #D9D9D9;
  --bp-font: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --bp-side: 24px; --bp-max: 1312px;
  color-scheme: light;
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: #FFFFFF; }
body { margin: 0; background: #FFFFFF; color: var(--bp-ink); font: 400 16px/1.21 var(--bp-font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.bp-in, .gs-hub, .gs-about { box-sizing: border-box; width: 100%; max-width: calc(var(--bp-max) + 2 * var(--bp-side)); margin: 0 auto; padding-left: max(var(--bp-side), env(safe-area-inset-left)); padding-right: max(var(--bp-side), env(safe-area-inset-right)); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--bp-blue); outline-offset: 2px; }
.main:focus { outline: none; }

/* the play button: blue, a 1.5 px ink line and a 4 px ink edge under it (two rectangles in the design) */
.bp-btn { box-sizing: border-box; display: flex; align-items: center; gap: 6px; width: 100%; height: 50px; margin: 0 0 4px; padding: 0 18px; border: 1.5px solid var(--bp-ink); border-radius: 10px;
  background: var(--bp-blue); color: var(--bp-ink); box-shadow: 0 4px 0 var(--bp-ink); font: 700 16px/1 var(--bp-font); text-decoration: none; text-align: left; cursor: pointer;
  transition: transform .06s, box-shadow .06s; -webkit-tap-highlight-color: transparent; }
.bp-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--bp-ink); }

/* ---------- header ---------- */
.bp-hd { position: relative; z-index: 35; background: #FFFFFF; }
.bp-hd .bp-in { position: relative; display: flex; align-items: center; height: 73px; }
.bp-hd .bp-in::after { content: ""; position: absolute; left: max(var(--bp-side), env(safe-area-inset-left)); right: max(var(--bp-side), env(safe-area-inset-right)); bottom: 0; height: 1px; background: var(--bp-line); }
.bp-logo { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-left: -2px; text-decoration: none; font: 900 24px/1 var(--bp-font); letter-spacing: 0; }
.bp-mark { display: block; width: 30px; height: 30px; flex: none; }
/* the logo (owner 2026-11-25, option 1): BALL in ink, PHD on a blue tag shaped like the site's buttons (1.5 px ink line, ink edge below) */
/* exactly the picked picture (owner 2026-11-25, "size or spacing"): BALL 24 px, 8 px gap, the tag 28 px tall, 8 px sides, PHD 18 px, on phone and computer alike.
   Signed in, the tag takes your favorite team's color (js/me.js sets --bp-tag-c / --bp-tag-t). */
.bp-tag { box-sizing: border-box; display: inline-flex; align-items: center; height: 28px; padding: 0 8px; margin-bottom: 3px; background: var(--bp-tag-c, var(--bp-blue)); color: var(--bp-tag-t, var(--bp-ink)); border: 1.5px solid var(--bp-ink); border-radius: 7px; box-shadow: 0 3px 0 var(--bp-ink); font: 900 18px/1 var(--bp-font); }
.bp-nav { display: none; }
.bp-acct { margin-left: auto; display: flex; align-items: center; }
.bp-acct button { min-height: 44px; padding: 0; border: 0; background: none; color: var(--bp-ink); font: 700 14px/1 var(--bp-font); cursor: pointer; }
.bp-slash, .bp-join { display: none; }
.bp-menu { min-width: 32px; margin-left: 8px; font-size: 16px !important; text-align: right; }
.bp-drop { position: absolute; right: max(var(--bp-side), env(safe-area-inset-right)); top: 66px; z-index: 80; display: grid; min-width: 200px; padding: 6px 0; background: #FFFFFF;
  border: 1.5px solid var(--bp-ink); border-radius: 12px; box-shadow: 0 4px 0 var(--bp-ink); }
.bp-drop[hidden] { display: none; }
.bp-drop a, .bp-drop button { display: flex; align-items: center; min-height: 44px; padding: 0 18px; border: 0; background: none; color: var(--bp-ink); font: 700 16px/1 var(--bp-font); text-decoration: none; text-align: left; cursor: pointer; }

/* ---------- footer ---------- */
.bp-ft .bp-in { position: relative; padding-top: 20px; padding-bottom: max(28px, env(safe-area-inset-bottom)); }
.bp-ft .bp-in::before { content: ""; position: absolute; top: 0; left: max(var(--bp-side), env(safe-area-inset-left)); right: max(var(--bp-side), env(safe-area-inset-right)); height: 1px; background: var(--bp-line); }
.bp-ftl { display: none; }
.bp-ftn { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; font: 700 14px/20px var(--bp-font); }
.bp-ftn a { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; text-decoration: none; }
.bp-dom { margin: 9px 0 0; font: 400 13px/20px var(--bp-font); color: var(--bp-gray); }

/* ---------- home ---------- */
.gs-hub { padding-bottom: 31px; }
.bp-hero { position: relative; padding-top: 23px; }
.bp-eyebrow { margin: 0; font: 700 12px/20px var(--bp-font); text-transform: uppercase; }
.gs-brand { margin: 11px 0 0; max-width: 230px; font: 900 36px/44px var(--bp-font); letter-spacing: 0; outline: none; }
.bp-lede { margin: 22px 0 0; font: 400 17px/21px var(--bp-font); max-width: 225px; }
.bp-cta { margin-top: 19px; }
.bp-art { position: absolute; right: 0; top: 47px; }
.bp-bubble, .bp-docfull { display: none; }
.bp-dochead { display: block; width: 108px; height: 108px; border-radius: 50%; }
.bp-today { margin-top: 17px; }
.bp-th h2 { margin: 0; font: 900 23px/28px var(--bp-font); }
.bp-th p { margin: 5px 0 0; font: 400 12px/20px var(--bp-font); color: var(--bp-gray); }
.gs-list { display: grid; gap: 8px; margin-top: 16px; }
.gs-row { position: relative; box-sizing: border-box; display: block; min-height: 55px; padding: 8px 44px 8px 14px; border: 1.5px solid var(--bp-line); border-radius: 9px; background: #FFFFFF; text-decoration: none; color: var(--bp-ink); }
.gs-row.gs-on { border-color: var(--bp-line); }          /* owner 2026-11-25: no black outline on a game in progress (it read as a stray border); the status line and "Keep going" say it */
.gs-row:active { background: var(--bp-soft); }
.gs-top { display: block; }
.gs-name { display: block; font: 700 16px/20px var(--bp-font); }
.gs-ic, .gs-desc { display: none; }
.gs-st { display: block; margin-top: 4px; font: 400 12px/16px var(--bp-font); color: var(--bp-gray); }
.gs-go { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); font-size: 0; }
.gs-go span { font: 700 20px/24px var(--bp-font); }

/* ---------- the how-to-play text (search engines read it; build.py about()) ---------- */
.gs-about { padding-top: 28px; padding-bottom: 8px; color: #4A4A4A; font: 400 15px/1.5 var(--bp-font); }
.gs-about h1, .gs-about h2, #gs-about-h { margin: 0 0 8px; font: 900 18px/1.3 var(--bp-font) !important; color: var(--bp-ink); letter-spacing: 0; text-transform: none; }
.gs-about p { margin: 0 0 8px; max-width: 70ch; }
.gs-about ul { list-style: none; margin: 12px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 18px; }
.gs-about li a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--bp-ink); }
.gs-about .gs-small a { color: var(--bp-ink); }

/* ---------- the accounts note ---------- */
.bp-scrim { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; background: rgba(30,30,30,.35); }
.bp-sheet { box-sizing: border-box; width: 100%; max-width: 440px; margin: 0 16px max(16px, env(safe-area-inset-bottom)); padding: 24px 24px 24px; background: #FFFFFF; border: 1.5px solid var(--bp-ink); border-radius: 12px; }
.bp-sheet h2 { margin: 0 0 8px; font: 900 25px/1.2 var(--bp-font); }
.bp-sheet p { margin: 0 0 20px; font: 400 17px/1.3 var(--bp-font); }

@media (max-width: 359px) {
  :root { --bp-side: 16px; }
  .gs-brand { font-size: 32px; line-height: 40px; max-width: 190px; }
  .bp-dochead { width: 92px; height: 92px; }
}

/* ---------- computer (the 1440 frames) ---------- */
@media (min-width: 900px) {
  :root { --bp-side: 64px; }
  .bp-hd .bp-in { height: 98px; }

  .bp-mark { width: 36px; height: 36px; }

  .bp-nav { display: flex; gap: 28px; position: absolute; left: calc(max(var(--bp-side), env(safe-area-inset-left)) + 35.5%); top: 0; height: 98px; align-items: center; font: 700 16px/20px var(--bp-font); }
  .bp-nav a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
  .bp-acct button { font-size: 16px; }
  .bp-slash { display: inline; margin: 0 10px; font: 700 16px/1 var(--bp-font); }
  .bp-join { display: inline-block; }
  .bp-menu, .bp-drop { display: none !important; }
  .bp-btn { height: 52px; }

  .bp-ft .bp-in { display: flex; flex-wrap: wrap; align-items: flex-start; padding-top: 20px; padding-bottom: 36px; }
  .bp-ftl { display: block; flex: 1 1 100%; margin: 0; font: 700 14px/20px var(--bp-font); }
  .bp-ftl i { font-style: normal; margin: 0 14px; }
  .bp-ftn { display: none; }
  .bp-dom { margin: 9px 0 0 auto; width: 266px; }

  .gs-hub { padding-bottom: 54px; }
  .bp-hero { padding-top: 40px; min-height: 387px; }
  .bp-eyebrow { font-size: 14px; }
  .gs-brand { margin-top: 23px; max-width: 800px; font-size: 72px; line-height: 87px; }
  .bp-lede { margin: 15px 0 0 4px; max-width: none; font-size: 22px; line-height: 27px; }
  .bp-cta { width: 410px; margin-top: 28px; font-size: 18px; }
  .bp-art { top: 6px; right: 26px; width: 470px; height: 370px; }
  .bp-docfull { display: block; width: 470px; height: 370px; }
  .bp-dochead { display: none; }
  .bp-bubble { display: block; position: absolute; left: -18px; top: 44px; z-index: 1; box-sizing: border-box; width: 188px; min-height: 79px; margin: 0; padding: 18px 16px 17px 18px;
    background: #FFFFFF; border: 1.5px solid var(--bp-ink); border-radius: 12px; font: 700 17px/21px var(--bp-font); }
  .bp-today { margin-top: 48px; }
  .bp-th { display: flex; align-items: flex-end; }
  .bp-th h2 { font-size: 32px; line-height: 39px; }
  .bp-th p { width: 301px; margin: 0 0 6px auto; font: 700 16px/20px var(--bp-font); color: var(--bp-ink); }
  .bp-ny { display: none; }
  .gs-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 25px 24px; margin-top: 29px; }
  .gs-row { min-height: 205px; padding: 22px 22px 20px; border-radius: 12px; }
  .gs-row:hover { border-color: var(--bp-ink); }
  .gs-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
  .gs-name { font: 900 23px/28px var(--bp-font); }
  .gs-ic { display: block; flex: none; width: 44px; margin: -3px -8px 0 0; font: 900 34px/41px var(--bp-font); text-align: center; }
  .gs-ic svg { display: inline-block; width: 30px; height: 30px; vertical-align: -4px; }
  .gs-desc { display: block; margin-top: 24px; font: 400 17px/21px var(--bp-font); }
  .gs-st { margin-top: 27px; font: 400 14px/20px var(--bp-font); }
  .gs-go { position: static; transform: none; display: block; margin-top: 22px; font: 700 17px/21px var(--bp-font); }
  .gs-go span { font: inherit; }

  .gs-about { padding-top: 40px; }
}
.gs-skl { display: none; }
@media (min-width: 900px) { .gs-skl { display: inline; } .gs-sks { display: none; } }

/* ---------- home color (owner 2026-11-25: color may go beyond Figma; fonts and components stay Figma's). The top section is blue edge to edge,
   its Play button white; the cards stay white, and only each card's Play button carries its game's color (NFL green, NBA orange, Ball Knowledge yellow).
   doc-full/doc-head have see-through backgrounds so Doc sits on the blue. ---------- */
.bp-hero { background: var(--bp-blue); box-shadow: 0 0 0 100vmax var(--bp-blue); clip-path: inset(0 -100vmax); padding-bottom: 24px; }
.bp-hero .bp-cta { background: #FFFFFF; }
.gs-row { --gs-c: var(--bp-blue); }
.gs-row.gs-nfl { --gs-c: var(--bp-t-green); } .gs-row.gs-nba { --gs-c: var(--bp-t-orange); } .gs-row.gs-nhl { --gs-c: var(--bp-t-red); } .gs-row.gs-ball { --gs-c: var(--bp-t-yel); }
.gs-go { display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box; min-width: 44px; height: 34px; padding: 0 10px;
  border: 1.5px solid var(--bp-ink); border-radius: 8px; background: var(--gs-c); box-shadow: 0 3px 0 var(--bp-ink); color: var(--bp-ink); }
.gs-row:active .gs-go { box-shadow: 0 1px 0 var(--bp-ink); }
@media (min-width: 900px) {
  .bp-hero { padding-bottom: 32px; }
  .gs-go { display: inline-flex; height: 44px; padding: 0 18px; border-radius: 10px; box-shadow: 0 4px 0 var(--bp-ink); }
}

/* ---------- the game cards (owner 2026-11-25: "the games sell the page, make sure they are correct") ----------
   every card the same shape: icon and name on top, the pitch, the format, your status, and the Play button pinned to the bottom, so the four line up */
.gs-ic svg { display: block; width: 32px; height: 32px; color: var(--bp-ink); }
.gs-meta { display: none; }
.bp-th p { text-align: left; }
@media (min-width: 900px) {
  .gs-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .gs-row { display: flex; flex-direction: column; min-height: 236px; }
  .gs-top { align-items: center; }
  .gs-ic { width: 40px; margin: 0; }
  .gs-ic svg { width: 36px; height: 36px; margin-left: auto; }
  .gs-desc { margin-top: 14px; }
  .gs-meta { display: block; margin-top: 6px; font: 700 13px/18px var(--bp-font); color: var(--bp-gray); }
  .gs-st { margin-top: 10px; margin-bottom: 18px; }
  .gs-go { margin-top: auto; align-self: flex-start; }
  .bp-th { justify-content: space-between; }
  .bp-th p { width: auto; margin: 0 0 6px; text-align: right; }
}
@media (min-width: 1180px) { .gs-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) {          /* icon above the name, so every name fits on one line and the four cards' text lines up */
  .gs-top { flex-direction: column-reverse; align-items: flex-start; gap: 14px; }
  .gs-ic { width: auto; }
  .gs-ic svg { margin-left: 0; width: 40px; height: 40px; }
  .gs-name { white-space: nowrap; }
}
