/* The app's screens on the tool pages and the Yahoo and ESPN pages (pages/screens.ts): a slice of each screen built in
   HTML and CSS, not a screenshot, in the app's look from the brand's tokens (tokens.css, as packages/ui draws with):
   Barlow Condensed for labels and big numbers, Inter for words, the in-season colours for yours, close and theirs. Sharp
   at any size, light and dark with the system. The frame is pk.css's .shot; the faces are pk.css's .pf, with no photo. */

.app-shot { width: 100%; max-width: 390px; }
.as { display: grid; gap: 10px; padding: 16px 16px 18px; color: var(--text); font-size: 14.5px; line-height: 1.4; text-align: left; }
.as p { margin: 0; }
.as abbr { text-decoration: none; }

/* The top line: the screen's name, and what its numbers are */
.as-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--rule); }
.as-bar b { font: 800 20px/1 var(--font-display); letter-spacing: .02em; text-transform: uppercase; }
.as-bar .ex { font-size: 12.5px; color: var(--dim); text-align: right; }
.as-k { font: 700 12.5px/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.as-h { font-weight: 650; font-size: 15.5px; line-height: 1.35; }
.as-note { font-size: 13px; color: var(--dim); }
.as-note b { color: var(--text); }

/* A player: his face, his name, then his team, positions and more */
.as-p { display: flex; align-items: center; gap: 10px; min-width: 0; }
.as-p .pf { --s: 38px; }
.as-p > p, .as-p > span:not(.pf):not(.as-rank) { display: grid; gap: 2px; min-width: 0; flex: 1; }
.as-p b { font-weight: 650; font-size: 15px; }
.as-p small { display: block; color: var(--dim); font-size: 13px; }
.as-p small .tc { margin-right: 2px; }
.as .tc { vertical-align: 1px; }

/* A team's pickle (brand §6), its head on a cream disc, as the homepage draws them */
.as-tp { display: inline-block; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--pk-brine-100); box-shadow: inset 0 0 0 1.5px var(--pk-brine-300); overflow: hidden; }
.as-tp img { display: block; width: 100%; height: 100%; }

/* The tabs the app shows above a list (drawn, not controls) */
.as-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: var(--r-control); background: var(--surface-2); font-size: 13.5px; color: var(--dim); }
.as-tabs span { padding: 5px 10px; border-radius: 5px; }
.as-tabs .on { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.as-tabs .on.hot { background: var(--coral); color: var(--coral-ink); box-shadow: none; }

/* Big numbers: a score or a chance */
.as-score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.as-big { font: 800 52px/.9 var(--font-display); font-variant-numeric: tabular-nums; }
.as-big small { font-size: .5em; }
.as-them { font: 800 26px/1 var(--font-display); color: var(--dim); margin-left: -6px; }
.as-chance { font-size: 14.5px; color: var(--dim); }
.as-chance b { color: var(--text); font-weight: 750; }

/* Trade Machine */
.as-with { display: flex; align-items: center; gap: 8px; color: var(--dim); }
.as-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px 3px 4px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); font-weight: 600; }
.as-trade .as-k { padding-top: 8px; border-top: 1px solid var(--line); }
.as-swap { justify-self: center; color: var(--dim); font-size: 20px; line-height: 1; }
.as-verdict { display: grid; gap: 6px; margin-top: 4px; padding: 14px; border: 1px solid var(--line); border-top: 3px solid var(--rule); border-radius: var(--r-inner, 10px); background: var(--surface); }
.as-say { font: 800 34px/1 var(--font-display); text-transform: uppercase; letter-spacing: .01em; }
.as-verdict.win .as-say { color: var(--go-text); }
.as-verdict.lose .as-say { color: var(--stop-text); }
.as-verdict p:not(.as-say) { font-size: 14px; color: var(--dim); }
.as-verdict p b { color: var(--text); font-size: 15px; }
.as-segs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; margin: 2px 0; padding: 0; list-style: none; }
.as-segs li { height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.as-segs .y { background: var(--you); box-shadow: none; }
.as-segs .l { background: var(--them); box-shadow: none; }

/* Trade Machine in a connected league: the two sides, your team, what you give up, their side */
.as-tsides { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.as-tside { display: grid; gap: 6px; align-content: start; min-width: 0; }
.as-tside .as-p { align-items: flex-start; }
.as-tside .as-p .pf { --s: 32px; }
.as-tside .as-p b { font-size: 14px; }
.as-tside .as-p small { font-size: 12px; }
.as-trade .as-tside .as-k { padding-top: 0; border-top: 0; }
.as-rows2, .as-move { width: 100%; border-collapse: collapse; font-size: 14px; }
.as-rows2 th, .as-rows2 td, .as-move th, .as-move td { padding: 7px 4px; border-top: 1px solid var(--line); text-align: left; vertical-align: baseline; }
.as-rows2 th { font-weight: 600; }
.as-rows2 th small { display: block; font-weight: 400; font-size: 12px; color: var(--dim); }
.as-rows2 td, .as-move td { font: 800 17px/1.1 var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.as-move thead th { border-top: 0; font: 700 11px/1.2 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); text-align: right; }
.as-move thead td { border-top: 0; }
.as-move tbody th { font: 800 15px/1 var(--font-display); letter-spacing: .04em; }
.as-move .up td:last-child { color: var(--go-text); }
.as-move .down td:last-child { color: var(--stop-text); }
.as-yes { font-size: 14px; }
.as-yes b { font-weight: 750; color: var(--go-text); }
.as-yes small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--dim); }

/* Trades for you: a card an idea */
.as-idealist { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.as-idealist li { display: grid; gap: 5px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-inner, 10px); background: var(--surface); }
.as-idealist li:first-child { border-color: var(--line-strong); box-shadow: inset 3px 0 0 var(--you); }
.as-deal { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 14px; }
.as-deal small { width: 84px; font: 700 11.5px/1.2 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.as-pn b { font-weight: 650; }
.as-fig { font-size: 13.5px; color: var(--dim); }
.as-fig b { font: 800 17px/1 var(--font-display); color: var(--go-text); font-variant-numeric: tabular-nums; }
.as-idealist .as-note b { color: var(--text); }
.as-nw { white-space: nowrap; }
.as-ideas .as-tabs { flex-wrap: nowrap; font-size: 12.5px; }
.as-ideas .as-tabs span { padding: 5px 8px; white-space: nowrap; }

/* The Trade Machine's page: what the full Machine shows once a league is connected, its two screens side by side */
.t-teaser .t-lead { max-width: 64ch; margin: -6px 0 24px; color: var(--dim); font-size: 17px; }
.t-teaser .t-shots { justify-items: stretch; justify-content: start; align-items: start; }
@media (min-width: 860px) { .t-teaser .t-shots { grid-template-columns: repeat(2, minmax(0, 390px)); gap: 24px; } }
.t-teaser .ctas { margin-top: 28px; }
.t-teaser .small { margin-top: 10px; font-size: 15px; color: var(--dim); }
@media (max-width: 519px) { .t-teaser .ctas .btn { width: 100%; } }

/* Matchup Planner: each category's chance, W, ~ or L, the close ones outlined */
.as-cats { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 2px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.as-cats th { padding: 8px 0 2px; font: 700 11px/1 var(--font-display); letter-spacing: .02em; color: var(--dim); text-align: center; }
.as-cats td { padding: 2px 0 8px; text-align: center; border-radius: 0 0 6px 6px; }
.as-cats td.close { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.as-cats td b { display: block; font: 800 19px/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.as-cats td i { display: inline-grid; place-items: center; width: 20px; height: 18px; border-radius: 4px; font: 800 12px/1 var(--font-display); font-style: normal; }
.as-cats .y i { background: var(--you); color: var(--you-ink); }
.as-cats .t i { background: var(--surface-2); color: var(--dim); box-shadow: inset 0 0 0 1px var(--line-strong); }
.as-cats .l i { background: var(--them); color: var(--them-ink); }

/* Your days: starts that count each day */
.as-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
.as-days li { display: grid; justify-items: center; gap: 3px; padding: 8px 2px; border: 1px solid var(--line); border-radius: 8px; text-align: center; }
.as-days abbr { font: 800 13px/1 var(--font-display); text-transform: uppercase; letter-spacing: .04em; }
.as-days b { font: 800 22px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.as-days b small { font-size: 12px; color: var(--dim); }
.as-days i { position: relative; width: 80%; height: 5px; border-radius: 3px; background: var(--track); overflow: hidden; }
.as-days i::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--text); }
.as-days span { font: 700 11px/1 var(--font-display); letter-spacing: .03em; text-transform: uppercase; color: var(--go-text); }
.as-days .full span { color: var(--dim); }

/* League Analyser: against everyone, a box a team, your real opponent outlined */
.as-place { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 3px; margin: 0; padding: 0; list-style: none; }
.as-place li { display: grid; place-items: center; aspect-ratio: 3 / 4; border-radius: 4px; font-size: 10px; line-height: 1; }
.as-place .y { color: var(--go-text); box-shadow: inset 0 0 0 1.5px var(--go); }
.as-place .t { color: var(--dim); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.as-place .l { color: var(--stop-text); box-shadow: inset 0 0 0 1.5px var(--stop); }
.as-place .opp { outline: 2px solid var(--text); outline-offset: 1px; }
.as-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--dim); }
.as-legend b { color: var(--text); font: 800 15px/1 var(--font-display); }
.as-opp { display: inline-block; width: 11px; height: 11px; margin-right: 5px; border-radius: 3px; outline: 2px solid var(--text); vertical-align: -1px; }
.as-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.as-two p { display: grid; gap: 4px; align-content: start; font-size: 13px; color: var(--dim); }
.as-two small { font: 700 12px/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.as-two .as-big { color: var(--text); font-size: 46px; }
.as-two .as-big small { font: inherit; font-size: .5em; letter-spacing: 0; text-transform: none; }
.as-meter { position: relative; height: 9px; margin-top: 4px; border-radius: 5px; background: var(--track); overflow: hidden; }
.as-meter i { position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: 5px; background: var(--text); }
.as-meter::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1.5px dashed var(--dim); }
.as-rec { width: 100%; border-collapse: collapse; font-size: 14px; }
.as-rec th, .as-rec td { padding: 7px 4px; border-top: 1px solid var(--line); text-align: left; }
.as-rec thead th { font: 700 11.5px/1.2 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.as-rec thead th, .as-rec thead td { border-top: 0; }
.as-rec tbody td { font: 800 17px/1 var(--font-display); font-variant-numeric: tabular-nums; }

/* Players: a row a player, his stats under his name, the columns' names once */
.as-list { width: 100%; table-layout: fixed; border-collapse: collapse; }
.as-list thead th { padding: 4px 0 6px; border-bottom: 2px solid var(--rule); font: 700 11px/1 var(--font-display); letter-spacing: .02em; color: var(--dim); text-align: right; }
.as-list tbody { border-bottom: 1px solid var(--line); }
.as-list .as-who th { padding: 10px 0 4px; font-weight: 400; text-align: left; }
.as-list .as-who .pf { --s: 34px; }
.as-list .as-who b { font-size: 15px; }
.as-rank { display: grid; justify-items: end; flex: none; }
.as-rank b { font: 800 20px/1 var(--font-display); }
.as-rank small { font-size: 11.5px; color: var(--dim); }
.as-hot { display: inline-block; margin-left: 4px; font: 700 11.5px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--go-text); }
.as-list .as-stats td { padding: 0 0 10px; font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; }

/* Pickup check */
.as-check .as-p.drop { opacity: .78; }
.as-moves { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13.5px; color: var(--dim); }
.as-moves .up i { color: var(--go-text); font-style: normal; }
.as-moves .down i { color: var(--stop-text); font-style: normal; }

/* Hot or Not: a row a player, how he's playing against his projection */
.as-form { display: grid; margin: 0; padding: 0; list-style: none; }
.as-form li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.as-form .as-p, .as-form .as-note { grid-column: 1 / -1; }
.as-like { font-size: 16px; }
.as-like b { font-weight: 750; }
.as-like small, .as-stat small { display: block; font-size: 12.5px; color: var(--dim); }
.as-stat { text-align: right; }
.as-stat b { font: 800 18px/1.1 var(--font-display); }
.as-form .up .as-stat b { color: var(--go-text); }
.as-form .down .as-stat b { color: var(--stop-text); }

/* Home: the matchup, the chance, and each stat's chance */
.as-vs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14.5px; }
.as-vs span { color: var(--dim); }
.as-rows { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.as-rows li { display: grid; grid-template-columns: 40px 1fr 42px; align-items: center; gap: 10px; }
.as-rows abbr { font: 700 13px/1 var(--font-display); letter-spacing: .04em; color: var(--dim); }
.as-rows i { position: relative; height: 8px; border-radius: 4px; background: var(--track); overflow: hidden; }
.as-rows i::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: 4px; background: var(--line-strong); }
.as-rows .y i::before { background: var(--you); }
.as-rows .l i::before { background: var(--them); }
.as-rows b { justify-self: end; font: 800 15px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.as-rows .t b { color: var(--dim); }

@media (max-width: 380px) {
  .as { padding: 14px 12px 16px; }
  .as-cats td b { font-size: 16px; }
  .as-list .as-stats td, .as-list thead th { font-size: 11.5px; }
  .as-days b { font-size: 19px; }
}
