@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&family=Merriweather:wght@400;700&display=swap');

:root {
  --site-font: Lato, Arial, sans-serif;
  --page-heading-size: clamp(1.75rem, 3vw, 2rem);
  font-family: var(--site-font);
  color: #23332d;
  --paper: #edfcf0;
  --beige: #e7dcc4;
  background-color: var(--paper);
  accent-color: #264e3b;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select { font-family: inherit; }
.masthead {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
  padding: .65rem max(1rem, calc((100vw - 75rem) / 2));
  color: #fff;
  background: #264e3b;
  font-weight: 600;
}
.masthead a { color: #fff; font-size: 1.35rem; font-weight: 850; text-decoration: none; }
.masthead nav { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem .9rem; }
.masthead nav a { font-size: 1rem; font-weight: 700; }
.masthead nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .25em; }
.masthead nav button { border: 1px solid currentColor; border-radius: .25rem; padding: .35rem .5rem; color: inherit; background: transparent; font: inherit; cursor: pointer; }
.about-lasr, .reference-article { max-width: 48rem; padding: 1.4rem; color: #23332d; background: #fff; border: 2px solid #264e3b; }
.about-lasr { width: min(95%, 48rem); }
.about-lasr::backdrop { background: #172a22a0; }
.about-lasr li, .reference-article li { margin-block: .5rem; }
.about-lasr form { background: none; border: 0; padding: 0; text-align: right; }
.reference-article dt { font-weight: 750; }
.reference-article dd { margin: .2rem 0 1rem; }
.header-search { position: relative; margin-inline-start: auto; width: min(22rem, 45%); padding: 0; border: 0; background: transparent; }
.header-search input, .control-strip input:not([type="checkbox"]) {
  width: 100%; min-height: 2.1rem; padding: .25rem .5rem; border: 1px solid #988d74; border-radius: .25rem; font: inherit;
}
.search-results { position: absolute; inset: calc(100% + .3rem) 0 auto; z-index: 5; padding: .4rem; background: white; border: 1px solid #264e3b; border-radius: .25rem; color: #23332d; }
.search-results a { display: block; padding: .3rem .4rem; color: #23332d; font-size: .9rem; font-weight: 600; }
.search-results a:hover, .search-results a:focus { background: var(--beige); }
main { max-width: 77rem; margin: auto; padding: 1.5rem 1rem 3rem; }
.player-heading p { margin: 0; font-weight: 600; }
h1 { margin: .2rem 0 1.25rem; font-size: var(--page-heading-size); line-height: 1.05; }
.guesser-page :is(#welcome, #completed) h1 { font-size: var(--page-heading-size); }
h2 { margin: 0 0 .65rem; font-size: 1.15rem; }
.welcome-heading { display: flex; align-items: center; gap: .7rem 1.5rem; flex-wrap: wrap; margin: .25rem 0 1.35rem; }
.welcome-heading h1 { margin: 0; flex: 1 1 15rem; }
.intro { margin: 0; max-width: 65ch; flex: 2 1 25rem; }
.home-board { margin-bottom: 1.5rem; }
.section-bar, .control-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: .65rem;
  border: 1px solid #bfb28f; border-radius: .55rem; padding: .6rem .8rem;
  background: var(--beige); margin-bottom: .7rem;
}
.section-bar h2 { margin: 0; }
.inline-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; padding: 0; border: 0; }
.inline-controls label, form.control-strip label, .team-pickers label {
  display: inline-flex; align-items: center; gap: .35rem; margin: 0; font-size: .87rem; font-weight: 650;
}
.inline-controls select, .control-strip select { width: auto; max-width: 100%; }
.control-strip input[type="number"] { width: 5.3rem; }
.control-strip input[type="search"] { width: 10rem; }
.control-strip button { min-height: 2rem; padding: .2rem .5rem; }
.board-status:empty { display: none; }
.board-bounds, .board-actions, .board-custom, .grade-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .65rem; }
.board-controls-row { display: flex; width: 100%; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.board-controls-row > label { white-space: nowrap; }
.board-controls-row + .board-controls-row { border-top: 1px solid #bfb28f; padding-top: .55rem; }
.board-controls-row button { cursor: pointer; }
.board-scope-only .board-controls-row:nth-child(2), .board-scope-only .board-controls-row:first-child > :nth-child(n+5) { display: none; }
.board-positions { width: 100%; margin: 0; border: 1px solid #bfb28f; }
.board-positions > div { display: flex; flex-wrap: wrap; gap: .3rem .8rem; }
.control-strip > .board-custom, .grade-filters { width: 100%; }
.grade-filters:empty { display: none; }
.grade-filter { padding: .35rem 0; border-top: 1px solid #bfb28f; }
.grade-filter select { width: auto; }
:where(body:not(.guesser-page)) form { background: #e7dcc4; border: 1px solid #cdc0a1; border-radius: .45rem; padding: 1rem; }
form label { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); align-items: center; gap: .45rem; margin-bottom: .6rem; font-size: .88rem; font-weight: 600; }
form label:last-child { margin-bottom: 0; }
form .check { display: flex; min-height: 1.8rem; }
input { margin: 0; }
:where(body:not(.guesser-page)) select { width: 100%; min-height: 2.1rem; padding: .2rem; border: 1px solid #988d74; border-radius: .25rem; background: #fff; color: inherit; font: inherit; }
.team-picker { display: grid; gap: .35rem; max-width: 22rem; margin-bottom: 1rem; font-weight: 600; }
.team-pickers { display: flex; flex-wrap: wrap; gap: .75rem; }
.roster-views { display: flex; gap: .5rem; margin-bottom: 1rem; }
.roster-views a { padding: .45rem .8rem; border: 1px solid #264e3b; border-radius: .25rem; color: #264e3b; }
.roster-views a[aria-current] { color: #fff; background: #264e3b; text-decoration: none; }
:focus-visible { outline: 2px solid #1e6c54; outline-offset: 2px; }
.reports { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.report-top { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 1rem; }
.scouting-card {
  color: #141c17;
  background: var(--paper) url('./LASR_no_Logo.png') center / 100% 100% no-repeat;
  border: 3px solid currentColor;
  font-family: ui-monospace, "Courier New", monospace;
  font-weight: 700;
}
.browser-game-graphic { width: 100%; min-width: 0; }
.browser-scouting-card .scouting-identity h2 { margin: 0; font-size: clamp(1rem, 2.5vw, 1.8rem); }
.browser-scouting-card .scouting-context { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem .75rem; }
.review-canvas:has(.browser-game-graphic) { overflow: auto; }
.guesser-career-sheet h2 { margin: 0; padding: .65rem; background: var(--beige); text-align: center; }
.scouting-card-header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 0; align-items: stretch; border-bottom: 3px solid; border-radius: 0; text-align: center; background: transparent; }
.scouting-identity, .scouting-context { display: grid; align-content: center; justify-items: center; gap: .32rem; padding: .7rem .55rem; }
.scouting-identity { border-right: 2px solid; font-size: 1.15rem; }
.scouting-identity h1 { margin: 0 0 .3rem; font-size: clamp(1.6rem, 3.6vw, 2.65rem); overflow-wrap: anywhere; }
.scouting-identity label { font-family: Arial, Helvetica, sans-serif; }
.scouting-context, .scouting-context label { font: 700 .9rem/1.4 Arial, Helvetica, sans-serif; }
#card-context, #card-pta { display: flex; flex-wrap: wrap; justify-content: center; gap: .1rem .55rem; }
#card-pta span { white-space: nowrap; }
.card-options { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .35rem .55rem; }
.card-options select, .scouting-identity select { background-color: white; }
.card-options #scale { max-width: min(14rem, 49vw); }
.report-categories {
  display: grid;
  grid-template-columns: minmax(0, 28fr) minmax(0, 50fr) minmax(0, 22fr);
  grid-template-areas: "hitting contact running" "hitting power running" "hitting eye running";
  gap: 2px;
}
.report-panel { display: flex; flex-direction: column; outline: 1.5px solid #141c17; padding: .55rem .65rem .9rem; }
.report-panel h3 { margin: 0; text-align: center; font-size: clamp(1rem, 2.1vw, 1.45rem); }
.report-panel h3 button { background: none; border: 0; border-radius: .2rem; color: inherit; cursor: pointer; font: inherit; padding: .1rem .35rem; }
.report-panel:has(button) { cursor: pointer; }
.report-panel:has(button):hover, .report-panel:has(button:focus-visible) { background: #ffffff40; }
.report-panel h3 button[aria-pressed="true"] { text-decoration: underline; }
.card-footer { margin: 0; padding: .4rem; border-top: 3px solid; text-align: center; font: 700 .86rem var(--site-font); }
.report-panel[data-category="Hitting"] { grid-area: hitting; }
.report-panel[data-category="Contact"] { grid-area: contact; }
.report-panel[data-category="Power"] { grid-area: power; }
.report-panel[data-category="Eye"] { grid-area: eye; }
.report-panel[data-category="Running"] { grid-area: running; }
.pitcher-report {
  grid-template-columns: minmax(0, 40fr) minmax(0, 38fr) minmax(0, 22fr);
  grid-template-areas: "overall stuff luck" "overall control luck" "overall quality luck";
}
.report-panel[data-category="Overall"] { grid-area: overall; }
.report-panel[data-category="Stuff"] { grid-area: stuff; }
.report-panel[data-category="Control"] { grid-area: control; }
.report-panel[data-category="Contact Quality"] { grid-area: quality; }
.report-panel[data-category="Luck"] { grid-area: luck; }
.major-hitter-report {
  grid-template-columns: minmax(0, 18fr) minmax(0, 17fr) minmax(0, 45fr) minmax(0, 20fr);
  grid-template-areas: "overall hitting contact defense" "overall hitting power defense" "overall hitting eye defense";
}
.report-defense { display: grid; grid-area: defense; grid-auto-rows: 1fr; gap: 2px; }
.report-defense .report-panel[data-category] { grid-area: auto; }
.report-bars { display: flex; flex: 1; justify-content: space-evenly; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.report-bar { display: flex; flex: 1; min-width: 0; flex-direction: column-reverse; align-items: center; gap: .65rem; padding-bottom: 1.15rem; }
.report-track { position: relative; flex: 1; width: 72%; min-height: 5rem; margin-top: .85rem; }
.report-bar:only-child .report-track { max-width: 16rem; }
.report-fill { position: absolute; inset-inline: 0; bottom: var(--bar-start); height: var(--bar-size); background: var(--bar-color); box-shadow: inset 0 0 0 3px #141c17; }
.report-score { position: absolute; bottom: calc(var(--score-position) + .15rem); inset-inline: 0; text-align: center; font-size: clamp(.85rem, 1.8vw, 1.25rem); }
.report-stat { white-space: nowrap; width: max-content; line-height: 1; text-align: center; transform: translateY(.55rem) rotate(-40deg); font-size: clamp(.65rem, 1.25vw, .9rem); }
.report-dense .report-stat { font-size: clamp(.57rem, 1vw, .78rem); }
.report-dense .report-bars { gap: .15rem; }
.report-dense .report-score { font-size: clamp(.62rem, 1.35vw, 1.12rem); }
.report-panel:is([data-category="Hitting"], [data-category="Running"], [data-category="Overall"], [data-category="Luck"], [data-category="Fielding"]) .report-score { font-size: clamp(.9rem, 2.8vw, 1.9rem); }
.report-simple { display: block; }
.report-simple .report-bars { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; gap: .65rem; padding: .65rem .5rem; }
.report-simple .report-bar { display: grid; grid-template-columns: 6rem minmax(0, 1fr); padding-bottom: 0; }
.report-simple .report-stat { text-align: left; transform: none; min-height: 0; }
.report-categories.report-simple { display: block; }
.report-simple .report-track { display: block; width: calc(100% - 3rem); height: 1.6rem; min-height: 0; margin: 0; }
.report-simple .report-fill { display: block; inset: 0 auto auto var(--bar-start); width: var(--bar-size); height: 100%; }
.report-simple .report-score { inset: 50% auto auto calc(var(--score-position) + .35rem); transform: translateY(-50%); }
#batted-ball { width: 50%; }
.batted-ball-layout { display: grid; grid-template-columns: minmax(0, 1fr); }
.spray-field { position: relative; border: 1px solid #b4c7b6; background: #dcebe0; }
.spray-field canvas { display: block; width: 100%; height: auto; }
.spray-grades { position: absolute; inset: 26% 12% auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; text-align: center; }
.spray-grades > div { justify-self: center; padding: .3rem .4rem; background: var(--beige); border: 1px solid #264e3b; border-radius: .3rem; }
.spray-grades > div:nth-child(2) { grid-column: 2; grid-row: 1; translate: 0 -30%; }
.spray-field[data-bats="L"] .spray-grades > div:first-child { grid-column: 3; grid-row: 1; }
.spray-field[data-bats="L"] .spray-grades > div:last-child { grid-column: 1; grid-row: 1; }
.batted-ball-layout dt { font-size: .85rem; }
.batted-ball-layout dd { margin: 0; font-size: 1.2rem; font-weight: 750; }
.contact-types { position: absolute; inset: auto .45rem .45rem auto; width: min(8.5rem, 35%); padding: .35rem .45rem; background: var(--beige); border: 1px solid #bfb28f; border-radius: .3rem; }
.contact-types h3 { margin: 0; font-size: .76rem; }
.contact-types dl { margin: .15rem 0 0; }
.contact-types dl > div { display: flex; justify-content: space-between; align-items: center; gap: .25rem; padding: .16rem 0; border-bottom: 1px solid #c9bc9b; }
.contact-types dl > div:last-child { border-bottom: 0; }
.contact-types dt { font-size: .7rem; }
.contact-types dd { font-size: .9rem; }
.contact-types dt span { margin-inline-end: .16rem; font-weight: 800; }
.field-options { position: absolute; inset: auto auto .45rem .45rem; display: grid; max-width: 37%; gap: .2rem; padding: .35rem .45rem; border: 1px solid #bfb28f; }
.field-options label { display: grid; grid-template-columns: 2.7rem minmax(0, 1fr); font-size: .72rem; }
.field-options select { width: 100%; min-height: 1.55rem; }
.field-note { margin: .45rem 0 0; font-size: .85rem; }
.note { margin: -.3rem 0 .65rem; font-size: .85rem; }
.note:empty { display: none; }
.table-scroll { overflow-x: auto; }
.stats-table { width: 100%; border-collapse: collapse; background: white; font-size: .9rem; }
.stats-table caption { text-align: left; font-weight: 600; padding: .7rem 0; background: #f8f6ef; }
.stats-table th, .stats-table td { padding: .6rem; border: 1px solid #ddd5c4; text-align: center; white-space: nowrap; }
.stats-table thead th { background: #e7dcc4; }
.stats-table th:first-child { text-align: left; }
.stats-table a { color: #264e3b; }
.stats-table thead button { border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.stats-table thead button:hover { text-decoration: underline; }
.stats-table th[aria-sort="ascending"] button::after { content: " ▲"; }
.stats-table th[aria-sort="descending"] button::after { content: " ▼"; }
.leaderboard-table { table-layout: fixed; min-width: calc(26rem + var(--grade-count, 0) * 3.65rem); border: 2px solid #000; color: #000; font: 700 .9rem "Courier New", monospace; }
.leaderboard-table th, .leaderboard-table td { padding: .35rem .4rem; border: 1px solid #000; }
.leaderboard-table thead { border-bottom: 2px solid #000; }
.leaderboard-table thead th { background: var(--beige); }
.leaderboard-table:not(.career-table) .metadata-column { width: 3.4rem; }
.leaderboard-table:not(.career-table) .metadata-column:first-child { width: 15.8rem; }
.leaderboard-table :is(th, td) { white-space: normal; overflow-wrap: anywhere; }
.leaderboard-table th button { padding-inline: .15rem; }
.leaderboard-table tbody tr:nth-child(even) > * { background-color: var(--beige); }
.leaderboard-table td { font-weight: 900; }
.leaderboard-table .board-player { font-size: 1.13rem; font-weight: 900; }
.board-player a { color: #000; line-height: 1.15; }
.board-player small { display: block; margin-top: .15rem; font: 700 .72rem Arial, Helvetica, sans-serif; }
.career-table { min-width: calc(var(--metadata-count, 0) * 4.6rem + var(--grade-count, 0) * 3.65rem); }
.career-table .metadata-column { width: 4.6rem; }
.career-table a { color: #000; }
.career-table .career-total > * { border-top-width: 2px; }
.career-total { font-weight: 700; background: #f4eddd; }
#status:empty { display: none; }
@media (max-width: 45rem) {
  .report-top { grid-template-columns: minmax(0, 1fr); }
  .insights-space { display: none; }
  #batted-ball { width: 100%; }
  .report-categories:not(.report-simple) { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; }
  .report-categories .report-panel[data-category] { grid-area: auto; }
  .report-defense { grid-area: auto; }
  .section-bar { align-items: flex-start; }
}
@media (max-width: 32rem) {
  .masthead { gap: .6rem; flex-wrap: wrap; }
  .header-search { width: 100%; margin: 0; }
  .inline-controls select { max-width: 11rem; }
}
