:root {
  --paper: #f5eedc;
  --light: #fff7e5;
  --ink: #203c33;
  --forest: #174638;
  --brick: #ad442c;
  --gold: #f6c752;
  --line: #b7ac90;
  --display: 'Barlow Condensed', Impact, sans-serif;
  --script: Yellowtail, Georgia, serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: Barlow, sans-serif;
  background-image: url('./assets/grain.png');
}
button,
a {
  touch-action: manipulation;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
canvas:focus-visible {
  outline: 3px solid #db8329;
  outline-offset: 3px;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
[hidden] {
  display: none !important;
}
button {
  border: 0;
  background: none;
}
button svg,
i svg,
span[data-icon] svg {
  width: 1.15em;
  height: 1.15em;
  display: block;
}
i {
  font-style: normal;
}
.wrap {
  width: min(1504px, calc(100% - clamp(36px, 7.6vw, 146px)));
  margin: auto;
}
.topbar {
  border-bottom: 2px solid var(--ink);
  background: #1b3e33;
  color: #fff3d6;
}
.nav,
.nav-right,
.nav-right button,
.brand {
  display: flex;
  align-items: center;
}
.nav {
  height: 59px;
  justify-content: space-between;
}
.brand {
  gap: 10px;
  color: inherit;
  font-family: var(--script);
  font-size: 27px;
  text-decoration: none;
}
.brandmark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
}
.brandmark svg {
  width: 37px !important;
  height: 37px !important;
}
.nav-right {
  gap: 21px;
}
.nav-right button {
  gap: 8px;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 0;
}
.nav-right button:hover {
  color: var(--gold);
}
.nav-rule {
  height: 20px;
  width: 1px;
  background: #718477;
}
.nav-right i {
  font-size: 17px;
}
.hero {
  margin-top: 23px;
  height: clamp(217px, 18vw, 282px);
  position: relative;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: #326a53;
  box-shadow: 0 3px 0 #c8bca1;
  isolation: isolate;
}
.hero-art {
  position: absolute;
  inset: 0 0 0 35%;
  background: url('./assets/cover.webp') center 48% / cover no-repeat;
}
.hero-ink {
  position: absolute;
  inset: 0 auto 0 0;
  width: 48%;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
  background: #174737 url('./assets/ink-grain.png');
  border-left: 7px solid #d4aa54;
}
.hero-lines {
  position: absolute;
  inset: 0 auto 0 0;
  width: 48%;
  clip-path: polygon(99% 0, 100% 0, 85% 100%, 84% 100%);
  background: #e2bf74;
}
.hero-title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 43%;
  height: 100%;
  transform: rotate(-3deg);
  color: #fff1ce;
}
.hero-kicker,
.hero-meta,
.field-tag,
.eyebrow,
.chip,
.special,
.sheet-label,
.micro,
.tag,
.section-caption {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 1.55px;
  text-transform: uppercase;
}
.hero-kicker {
  font-size: clamp(11px, 1vw, 15px);
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f5d48c;
}
.hero-kicker b {
  width: 27px;
  border-top: 1.5px solid currentColor;
}
.hero h1 {
  margin: 3px 0 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  position: relative;
  align-items: center;
}
.hero h1 span {
  font: italic 900 clamp(79px, 7.4vw, 127px)/0.88 var(--display);
  text-transform: uppercase;
  letter-spacing: -0.045em;
  text-shadow:
    2px 3px #17382d,
    4px 5px #bd643b;
  -webkit-text-stroke: 1px #f9eac6;
}
.hero h1 em {
  font: normal clamp(57px, 5.3vw, 87px)/0.77 var(--script);
  color: var(--gold);
  text-shadow: 2px 3px #233a2b;
  margin-top: -4px;
  transform: rotate(-4deg) translateX(12px);
  padding: 0 6px 11px;
}
.hero h1 em:after {
  content: '';
  height: 3px;
  position: absolute;
  bottom: 2px;
  left: 7%;
  right: -5%;
  background: var(--gold);
  transform: rotate(-4deg);
  border-radius: 100%;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 1.8px;
  margin-top: 14px;
}
.hero-meta i {
  width: 4px;
  height: 4px;
  background: #e4c476;
  transform: rotate(45deg);
}
.hero-meta .star {
  color: #edc467;
  font-size: 11px;
}
.field-tag {
  position: absolute;
  bottom: 12px;
  right: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  font-size: 11px;
  letter-spacing: 1.2px;
  background: #f6e8c9;
  color: #2c4536;
  border: 1px solid var(--ink);
  box-shadow: 1px 2px var(--ink);
  transform: rotate(-2deg);
}
.field-tag i {
  font-size: 14px;
}
.draft-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 27px 0 18px;
  gap: 12px;
}
.eyebrow {
  font-size: 12px;
  color: var(--brick);
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 1.9px;
}
.eyebrow:before {
  content: '';
  width: 19px;
  height: 2px;
  background: currentColor;
}
.draft-header h2,
.dialog-paper h2,
.result h2 {
  font: 800 clamp(39px, 3.5vw, 57px)/1.02 var(--display);
  letter-spacing: -1.2px;
  margin: 5px 0 0;
  text-transform: uppercase;
}
.draft-header p {
  margin: 6px 0 0;
  font-size: 15px;
  color: #526052;
}
.round {
  font: 700 14px var(--display);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--forest);
  text-transform: uppercase;
  padding: 7px 11px;
  border: 1px solid #94a28a;
  background: #e8ecd8;
  border-radius: 3px;
  white-space: nowrap;
}
.round:before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #45734e;
}
.draft-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(234px, 24%);
  gap: 23px;
  align-items: stretch;
}
.board-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.board-top h3,
.side-top,
.strip-title,
.scout h3 {
  margin: 0;
  font: 800 18px var(--display);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.board-name {
  display: flex;
  align-items: center;
  gap: 9px;
}
.available {
  font: 600 12px var(--display);
  letter-spacing: 0.4px;
  background: #e8dfca;
  border: 1px solid #bdb399;
  border-radius: 12px;
  padding: 1px 8px;
}
.pager {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 13px var(--display);
  letter-spacing: 1px;
}
.pager button {
  padding: 3px;
  border: 1px solid #88917d;
  border-radius: 3px;
  background: var(--light);
}
.pager button:hover {
  background: #e8dfcb;
}
.pager button svg {
  width: 15px;
  height: 15px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.kid-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff6df;
  border: 1.6px solid var(--ink);
  border-radius: 5px;
  box-shadow: 2px 3px 0 #c6b99b;
  transition:
    transform 0.17s,
    box-shadow 0.17s;
}
.kid-card:hover {
  transform: translateY(-3px);
  box-shadow: 2px 6px 0 #c6b99b;
}
.card-inspect {
  padding: 0;
  text-align: left;
  display: block;
  width: 100%;
}
.portrait {
  position: relative;
  height: clamp(140px, 12.8vw, 205px);
  border-bottom: 1.6px solid var(--ink);
  overflow: hidden;
  background: #dfc88e;
}
.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 37%;
}
.jersey {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #fff3d5;
  color: var(--ink);
  font: 800 14px var(--display);
  border: 1px solid var(--ink);
  padding: 2px 6px;
  transform: rotate(-3deg);
  border-radius: 2px;
}
.card-info {
  padding: 10px 13px 7px;
}
.special {
  font-size: 10px;
  color: var(--brick);
  letter-spacing: 1.5px;
}
.kid-card h4 {
  font: 800 clamp(24px, 2vw, 32px)/1 var(--display);
  text-transform: uppercase;
  letter-spacing: -0.6px;
  margin: 3px 0 4px;
}
.stats {
  display: flex;
  gap: 9px;
  justify-content: space-between;
  border-top: 1px dashed #c4b799;
  margin: 0 13px;
  padding: 8px 0;
}
.stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font: 700 10px var(--display);
  letter-spacing: 0.45px;
}
.pips {
  display: flex;
  gap: 1px;
}
.pips b {
  height: 8px;
  width: 3px;
  background: #dad1b8;
}
.pips b.on {
  background: #47745a;
}
.draft-btn,
.primary,
.secondary,
.game-action {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.draft-btn {
  background: #f1e9d3;
  margin: 1px 12px 12px;
  padding: 6px 5px;
  line-height: 1;
}
.draft-btn:hover {
  background: var(--forest);
  color: var(--light);
}
.draft-btn svg {
  width: 14px;
  height: 14px;
}
.primary,
.game-action {
  background: var(--brick);
  border-color: #713321;
  color: #fff7df;
  box-shadow: 0 2px 0 #713321;
  padding: 9px 18px;
  font-size: 17px;
}
.primary:hover,
.game-action:hover {
  background: #923921;
}
.secondary {
  background: var(--paper);
  padding: 8px 12px;
}
.secondary:hover {
  background: #e5d9bc;
}
.notice {
  font-size: 13px;
  line-height: 1.3;
  color: #4b6353;
  min-height: 17px;
  margin: 8px 0 0;
}
.dugout {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #e6ddc6 url('./assets/grain.png');
  border: 1px solid #928b72;
  border-radius: 4px;
  box-shadow: 2px 3px 0 #c6b99b;
  overflow: hidden;
}
.side-top {
  background: var(--forest) url('./assets/ink-grain.png');
  color: #ffefcf;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  font-size: 17px;
}
.side-top span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.side-top small {
  font: 700 13px var(--display);
  letter-spacing: 1px;
  background: #10392c;
  border: 1px solid #79937c;
  padding: 2px 7px;
  border-radius: 3px;
}
.side-body {
  padding: 10px 14px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.team-title {
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
  margin: 0 0 6px;
  font: normal 31px var(--script);
  color: #3b5038;
}
.team-title:before,
.team-title:after {
  content: '';
  height: 1px;
  flex: 1;
  background: #a99e7f;
}
.lineup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: column;
  grid-template-rows: repeat(5, 1fr);
  column-gap: 10px;
  row-gap: 0;
  margin-bottom: 8px;
}
.lineup div {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  border-bottom: 1px dashed #b0a68c;
  min-width: 0;
}
.lineup b {
  font: 700 11px var(--display);
  color: #6a715e;
}
.lineup span {
  font: 700 13px var(--display);
  color: var(--ink);
  min-height: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lineup .empty span {
  width: 31px;
  height: 1px;
  min-height: 0;
  background: #b6aa89;
}
.dugout .secondary,
.dugout .primary {
  width: 100%;
  margin-top: auto;
}
.dugout .side-hint {
  font-size: 12px;
  color: #58634f;
  text-align: center;
  margin: 2px 0 9px;
}
.controls-strip {
  margin: 16px 0 22px;
  padding: 13px 0;
  border-top: 1px solid #aca88c;
  border-bottom: 1px solid #aca88c;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 42px);
}
.strip-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}
.controls-strip > span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}
.controls-strip button {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  font: 700 14px var(--display);
  text-transform: uppercase;
}
.controls-strip button:hover {
  text-decoration: underline;
}
kbd {
  font:
    700 11px Barlow,
    sans-serif;
  background: #fff8e7;
  border: 1px solid #a49c84;
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 3px 6px;
  white-space: nowrap;
}
dialog {
  position: fixed;
  padding: 0;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 6px;
  max-width: min(520px, 94vw);
  max-height: 90dvh;
  background: var(--paper);
  box-shadow: 6px 7px #142e2550;
}
dialog::backdrop {
  background: #0e2925bd;
}
.dialog-paper {
  position: relative;
  padding: 29px;
  background-image: url('./assets/grain.png');
}
.dialog-paper h2 {
  font-size: 40px;
  margin: 6px 35px 15px 0;
}
.dialog-paper p {
  line-height: 1.45;
}
.dialog-paper .x {
  position: absolute;
  top: 9px;
  right: 9px;
  border: 1px solid #b3aa8f;
  background: var(--light);
  width: 30px;
  height: 30px;
  line-height: 22px;
  font-size: 24px;
  border-radius: 3px;
}
.guide-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}
.guide-grid strong {
  font: 800 17px var(--display);
  text-transform: uppercase;
}
.guide-grid p {
  font-size: 14px;
  margin: 3px 0 0;
}
.scout-portrait {
  width: 124px;
  height: 126px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  object-fit: cover;
  float: right;
  margin: 0 0 12px 14px;
}
.scout .stats {
  clear: both;
  margin: 16px 0;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}
@media (min-width: 1600px) {
  .draft-header {
    margin: 33px 0 23px;
  }
  .portrait {
    height: 225px;
  }
  .card-info {
    padding: 13px 16px 10px;
  }
  .draft-btn {
    padding: 9px;
  }
  .side-body {
    padding: 16px 18px;
  }
  .lineup div {
    padding: 7px 0;
  }
  .controls-strip {
    margin-top: 22px;
  }
}
@media (max-width: 1000px) {
  .draft-layout {
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) 213px;
  }
  .cards {
    gap: 9px;
  }
  .card-info {
    padding: 8px;
  }
  .stats {
    margin: 0 8px;
    gap: 4px;
  }
  .pips b {
    width: 2px;
  }
  .nav {
    height: 52px;
  }
  .controls-strip {
    gap: 12px;
  }
  .controls-strip > span {
    font-size: 12px;
  }
  .hero-title {
    width: 45%;
  }
  .draft-btn {
    margin-left: 8px;
    margin-right: 8px;
  }
  .lineup {
    column-gap: 5px;
  }
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 26px);
  }
  .hero {
    margin-top: 13px;
    height: 185px;
  }
  .hero-title {
    width: 48%;
  }
  .hero-ink,
  .hero-lines {
    width: 55%;
  }
  .hero h1 span {
    font-size: clamp(48px, 10vw, 78px);
  }
  .hero h1 em {
    font-size: clamp(40px, 7.8vw, 58px);
  }
  .hero-kicker {
    font-size: 9px;
    letter-spacing: 0.9px;
    gap: 4px;
  }
  .hero-kicker b {
    width: 10px;
  }
  .hero-meta {
    font-size: 9px;
    gap: 5px;
    letter-spacing: 0.5px;
  }
  .draft-layout {
    grid-template-columns: 1fr;
  }
  .dugout {
    display: grid;
    grid-template-columns: 155px 1fr;
  }
  .side-top {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
  .side-body {
    padding: 9px;
  }
  .team-title {
    font-size: 24px;
  }
  .lineup {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
  .side-body .side-hint {
    margin-bottom: 5px;
  }
  .controls-strip {
    flex-wrap: wrap;
  }
  .controls-strip .strip-title {
    width: 100%;
  }
  .field-tag {
    font-size: 9px;
    right: 7px;
    bottom: 7px;
  }
  .draft-header {
    margin: 20px 0 14px;
  }
  .draft-header h2 {
    font-size: 38px;
  }
  .draft-header p {
    font-size: 14px;
  }
  .portrait {
    height: clamp(100px, 20vw, 148px);
  }
  .kid-card h4 {
    font-size: 23px;
  }
  .special {
    font-size: 9px;
    letter-spacing: 0.5px;
  }
  .nav-right {
    gap: 12px;
  }
  .brand {
    font-size: 24px;
    gap: 4px;
  }
  .nav-right button {
    font-size: 13px;
  }
  .round {
    font-size: 11px;
    padding: 5px;
  }
  .stats {
    flex-wrap: wrap;
  }
  .draft-btn {
    font-size: 12px;
  }
  .dugout .secondary,
  .dugout .primary {
    margin-top: 4px;
  }
}
@media (max-width: 480px) {
  .hero {
    height: 147px;
  }
  .hero-art {
    left: 34%;
  }
  .nav-right #sound span {
    display: none;
  }
  .nav-rule {
    display: none;
  }
  .nav {
    height: 47px;
  }
  .draft-header {
    align-items: start;
  }
  .draft-header p {
    max-width: 250px;
  }
  .cards {
    gap: 6px;
  }
  .card-info {
    padding: 6px 5px;
  }
  .kid-card h4 {
    font-size: 19px;
  }
  .portrait {
    height: 99px;
  }
  .stats {
    margin: 0 5px;
    gap: 4px;
  }
  .stat {
    font-size: 9px;
    gap: 2px;
  }
  .pips b {
    width: 2px;
    height: 6px;
  }
  .draft-btn {
    margin: 2px 4px 5px;
    font-size: 11px;
    gap: 3px;
  }
  .dugout {
    grid-template-columns: 108px 1fr;
  }
  .side-top {
    padding: 6px;
    font-size: 14px;
  }
  .field-tag {
    font-size: 8px;
  }
  .round {
    font-size: 10px;
    gap: 4px;
    letter-spacing: 0.4px;
  }
  .controls-strip {
    gap: 10px;
  }
}
.rosters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.rosters > div {
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: var(--light);
  overflow: hidden;
}
.rosters h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 12px;
  color: var(--light);
  background: var(--forest);
  font: 800 19px var(--display);
  text-transform: uppercase;
}
.rosters > div:nth-child(2) h3 {
  background: #36556c;
}
.rosters h3 svg {
  width: 18px;
}
.rosters ol {
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: order;
}
.rosters li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 2px 10px;
  border-bottom: 1px solid #d4ccb7;
  font-size: 13px;
}
.rosters li:before {
  content: counter(order);
  counter-increment: order;
  font: 700 13px var(--display);
  color: #827f65;
}
.rosters li img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}
.rosters li small {
  margin-left: auto;
  font: 700 12px var(--display);
}
#match.wrap {
  max-width: min(1504px, calc((100dvh - 211px) * 1.875));
  min-width: min(780px, calc(100% - 26px));
}
.ballpark-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 15px 0 12px;
}
.ballpark-head h1 {
  font: 800 34px/1 var(--display);
  text-transform: uppercase;
  margin: 3px 0 0;
}
.ballpark-head .eyebrow {
  font-size: 10px;
}
.ballpark-head .secondary {
  font-size: 13px;
}
.gameframe {
  border: 2px solid var(--ink);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 3px 4px 0 #c2b597;
  background: var(--light);
}
.playing-field {
  position: relative;
  aspect-ratio: 1200/640;
  background-color: #577741;
  background-size: 100% 100%;
  overflow: hidden;
  isolation: isolate;
}
.playing-field[data-view='plate'] {
  background-image: url('./assets/plate-view.webp');
}
.playing-field[data-view='field'] {
  background-image: url('./assets/field.webp');
}
.playing-field canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  outline: 0;
  cursor: crosshair;
}
.score-bug {
  position: absolute;
  left: 1.5%;
  top: 2.5%;
  width: clamp(144px, 14%, 205px);
  padding: 0 9px 6px;
  background: #173f32f5;
  color: #ffefcf;
  border: 2px solid #e6d6ae;
  box-shadow: 2px 3px #253328aa;
  border-radius: 4px;
  font-family: var(--display);
  pointer-events: none;
}
.scoreline,
.score-team,
.counts,
.count-set {
  display: flex;
  align-items: center;
}
.scoreline {
  justify-content: space-between;
  border-bottom: 1px solid #83927a;
  height: 27px;
  color: #f6d483;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.base-icons {
  position: relative;
  width: 25px;
  height: 19px;
}
.base-icons i {
  position: absolute;
  border: 1px solid #c0c5aa;
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
}
.base-icons .occupied {
  background: var(--gold);
}
.base-icons .b1 {
  right: 3px;
  top: 9px;
}
.base-icons .b2 {
  right: 9px;
  top: 3px;
}
.base-icons .b3 {
  right: 15px;
  top: 9px;
}
.score-team {
  gap: 6px;
  font-size: clamp(16px, 1.6vw, 23px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15;
}
.score-team i {
  width: 4px;
  height: 4px;
  transform: rotate(45deg);
}
.score-team.at-bat i {
  background: #efcb63;
}
.score-team b {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.counts {
  gap: 8px;
  border-top: 1px solid #718975;
  margin-top: 3px;
  padding-top: 3px;
}
.count-set {
  gap: 2px;
}
.count-set b {
  font: 700 11px var(--display);
  margin-right: 1px;
}
.count-set i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 1px solid #859786;
}
.count-set .green {
  background: #98cf7a;
}
.count-set .gold {
  background: #e9bc55;
}
.count-set .red {
  background: #df795e;
}
.mode-tag {
  position: absolute;
  top: 3%;
  right: 1.5%;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--light);
  border: 1.4px solid var(--ink);
  box-shadow: 2px 2px var(--ink);
  padding: 5px 9px;
  font: 700 clamp(11px, 1.1vw, 16px) var(--display);
  text-transform: uppercase;
  letter-spacing: 1px;
  transform: rotate(1deg);
  pointer-events: none;
}
.mode-tag svg {
  width: 16px;
  height: 16px;
}
#zone-hint {
  position: absolute;
  left: 50%;
  top: 81%;
  transform: translateX(-50%);
  color: #fff8df;
  text-shadow: 1px 1px 3px #262c23;
  background: #213e31aa;
  border-radius: 2px;
  font: 700 10px var(--display);
  letter-spacing: 1.1px;
  padding: 2px 5px;
  pointer-events: none;
}
.meter {
  position: absolute;
  bottom: 3.5%;
  right: 2%;
  width: 21%;
  color: #fff7da;
  background: #193c30ed;
  padding: 7px 10px 9px;
  border: 1px solid #e8d9b1;
  border-radius: 3px;
  pointer-events: none;
}
.meter-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 700 12px var(--display);
  letter-spacing: 0.9px;
  text-transform: uppercase;
}
.meter-title span {
  color: var(--gold);
  font-size: 9px;
}
.meter-rail {
  height: 10px;
  background: #647d63;
  position: relative;
  margin-top: 5px;
  overflow: hidden;
}
.meter-rail i {
  position: absolute;
  left: 73%;
  width: 23%;
  height: 100%;
  background: #e7b840;
}
.meter-rail i:after {
  content: '';
  position: absolute;
  left: 48%;
  height: 100%;
  width: 18%;
  background: #ffec8a;
}
.meter-rail b {
  position: absolute;
  height: 100%;
  width: 3px;
  left: 0;
  top: 0;
  background: #fff9e7;
  box-shadow: 1px 0 2px #263c2a;
}
.duel-panel {
  display: flex;
  align-items: center;
  min-height: 75px;
  gap: 16px;
  padding: 10px 15px;
  border-top: 2px solid var(--ink);
  background: #f6efd9 url('./assets/grain.png');
}
.at-plate {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.at-plate img {
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
}
.at-plate strong {
  font: 800 clamp(20px, 1.65vw, 29px)/1 var(--display);
  text-transform: uppercase;
}
.at-plate .special {
  margin-bottom: 3px;
}
.play-instruction {
  padding-left: 16px;
  border-left: 1px solid #beb69a;
  color: #52604f;
  font-size: 14px;
  line-height: 1.3;
  max-width: 410px;
}
.action-row {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.game-action {
  white-space: nowrap;
  font-size: 16px;
}
.small-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font: 700 13px var(--display);
  border: 1px solid #958f78;
  border-radius: 3px;
  padding: 6px;
  background: #fdf5dd;
}
.small-btn b {
  font-weight: 700;
  font-size: 10px;
  opacity: 0.7;
}
.small-btn.selected {
  background: var(--forest);
  color: var(--light);
  border-color: var(--forest);
}
.pitch-choices,
.base-choices {
  display: flex;
  gap: 3px;
}
.action-row kbd {
  color: var(--ink);
  font-size: 10px;
}
.field-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  font: 700 11px var(--display);
  letter-spacing: 1.3px;
  color: #68715f;
}
.field-footer span,
.field-footer button {
  display: flex;
  align-items: center;
  gap: 5px;
}
.field-footer svg {
  width: 14px;
  height: 14px;
}
.field-footer button {
  font: 700 13px var(--display);
  text-transform: uppercase;
}
.ump-call,
.inning-card {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.ump-call {
  top: 28%;
  pointer-events: none;
  min-width: 23%;
  padding: 7px 18px 9px;
  background: var(--light);
  border: 2px solid var(--ink);
  box-shadow: 3px 4px var(--ink);
  border-radius: 3px;
  animation: stamp 0.16s ease-out;
}
.ump-call strong {
  display: block;
  font: italic 900 clamp(25px, 3.1vw, 54px)/1.05 var(--display);
  text-transform: uppercase;
  color: var(--brick);
}
.ump-call span {
  display: block;
  margin-top: 4px;
  font-weight: 600;
  font-size: 13px;
}
.inning-card {
  top: 52%;
  background: #fbf0d8 url('./assets/grain.png');
  padding: 22px 28px 24px;
  border: 2px solid var(--ink);
  box-shadow: 5px 6px var(--ink);
  border-radius: 3px;
  width: min(82%, 440px);
}
.inning-card .eyebrow {
  justify-content: center;
}
.inning-card .eyebrow:before {
  display: none;
}
.inning-card h2 {
  font: italic 900 43px/1 var(--display);
  text-transform: uppercase;
  margin: 7px 0;
}
.inning-card p {
  margin: 6px 0;
  font-size: 14px;
}
.table-scroll {
  overflow-x: auto;
  max-width: 100%;
}
.boxscore {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0 16px;
  font-family: var(--display);
  text-align: center;
}
.boxscore th,
.boxscore td {
  padding: 3px 5px;
  border-bottom: 1px solid #b0a789;
}
.boxscore th:first-child {
  text-align: left;
}
.boxscore thead {
  background: var(--forest);
  color: var(--light);
  text-transform: uppercase;
  font-size: 13px;
}
.boxscore td {
  font-weight: 600;
}
.boxscore .tot {
  font-weight: 800;
  color: var(--brick);
}
.final-score {
  font: 800 60px/1 var(--display);
}
.final-score small {
  color: #998e74;
}
.result-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.playing-field[data-phase='final']:before,
.playing-field[data-phase='change']:before {
  content: '';
  position: absolute;
  inset: 0;
  background: #1f352555;
}
.rosters + .side-body {
  min-width: 0;
}
@keyframes stamp {
  from {
    opacity: 0;
    scale: 1.09;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}
@media (max-width: 1050px) {
  .duel-panel {
    gap: 9px;
    padding: 8px;
  }
  .play-instruction {
    padding-left: 9px;
    font-size: 12px;
  }
  .small-btn {
    font-size: 12px;
  }
  .action-row {
    gap: 5px;
  }
  .game-action {
    font-size: 14px;
    padding: 8px 9px;
  }
}
@media (max-width: 760px) {
  #match.wrap {
    min-width: 0;
    width: calc(100% - 16px);
    max-width: none;
  }
  .ballpark-head {
    margin: 9px 0;
  }
  .ballpark-head h1 {
    font-size: 26px;
  }
  .playing-field {
    min-height: 250px;
  }
  .duel-panel {
    flex-wrap: wrap;
  }
  .action-row {
    margin-left: auto;
  }
  .play-instruction {
    flex: 1;
    max-width: none;
  }
  .game-action {
    font-size: 14px;
  }
  .score-bug {
    transform: scale(0.78);
    transform-origin: top left;
  }
  .mode-tag {
    font-size: 10px;
    padding: 3px;
  }
  .inning-card {
    padding: 12px;
    top: 54%;
  }
  .inning-card h2 {
    font-size: 28px;
  }
  .boxscore {
    margin: 5px 0 8px;
  }
  .meter {
    width: 26%;
  }
  .meter-title {
    font-size: 9px;
  }
  .field-footer {
    padding: 5px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
.hero-art {
  background-position: center 19%;
}
.side-top > span svg {
  width: 19px;
  height: 19px;
  flex: none;
}
.side-top > span {
  white-space: nowrap;
}
.rosters h3 svg {
  height: 18px;
}
.mode-tag svg,
.field-footer svg {
  flex: none;
}
.mode-tag:has(small) {
  display: grid;
  grid-template-columns: 16px 1fr;
  column-gap: 6px;
  row-gap: 1px;
}
.mode-tag small {
  grid-column: 1/-1;
  font: 600 10px var(--display);
  letter-spacing: 0.85px;
  color: #5d6858;
  border-top: 1px solid #b3af94;
  padding-top: 2px;
  text-align: center;
}
