@font-face {
  font-family: Barlow;
  src: url(fonts/barlow-black-italic.ttf) format("truetype");
  font-style: italic;
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url(fonts/barlow-condensed-black-italic.ttf) format("truetype");
  font-style: italic;
  font-weight: 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #07162e;
  --navy: #081e3e;
  --cream: #fff4d8;
  --gold: #ffbd26;
  --brass: #b4781e;
  --display: Barlow, sans-serif;
  --condensed: "Barlow Condensed", sans-serif;
  --mast-height: 67px;
  --gutter: clamp(12px, 3.3vw, 56px);
  font:
    16px/1.42 system-ui,
    sans-serif;
  color: var(--cream);
  background: #06142a;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body,
h1,
h2,
h3,
p {
  margin: 0;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
}
button {
  font: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
:focus-visible {
  outline: 3px solid #6ce0ff;
  outline-offset: 4px;
}
::selection {
  background: var(--gold);
  color: var(--ink);
}
.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  z-index: 60;
  inset: 8px auto auto 8px;
  color: var(--ink);
  background: var(--cream);
  padding: 12px 18px;
}
h1,
h2,
h3 {
  font: italic 900 2rem/0.99 var(--display);
  text-wrap: balance;
}
h1 em,
h2 em,
h3 em {
  color: var(--gold);
  font-style: inherit;
}

.mast {
  position: sticky;
  z-index: 20;
  top: 0;
  height: var(--mast-height);
  background: linear-gradient(90deg, #062043, #06162e 70%);
  border-bottom: 1px solid #d8ab5544;
  box-shadow: 0 2px 14px #010b1c55;
}
.mast-inner,
main,
footer {
  width: min(100%, 1600px);
  margin-inline: auto;
}
.mast-inner {
  display: flex;
  align-items: center;
  height: 100%;
  justify-content: space-between;
  padding-inline: var(--gutter);
}
.wordmark {
  display: block;
  position: relative;
  width: clamp(200px, 29vw, 445px);
  isolation: isolate;
  flex: none;
}
.wordmark::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 65% 0 calc(-1 * var(--gutter));
  background: #fff3d8;
}
.wordmark img {
  width: 100%;
  aspect-ratio: 7.55;
  object-fit: fill;
}
.mast nav {
  display: flex;
  align-items: center;
  font-weight: 730;
}
.mast nav a {
  position: relative;
  display: block;
  padding: 8px clamp(12px, 2.1vw, 32px);
  text-decoration: none;
}
.mast nav a + a {
  border-left: 1px solid #d6a53d;
}
.mast nav a:last-of-type {
  padding-right: 0;
}
.mast nav a:hover,
.mast nav a[aria-current] {
  color: var(--gold);
}
.mast nav a[aria-current] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
}
.mobile-menu {
  display: none;
}
section[id]:focus-visible {
  outline-offset: -3px;
}

section[id],
.night-game {
  scroll-margin-top: calc(var(--mast-height) + 12px);
}
.night-game {
  position: relative;
  isolation: isolate;
}
.hero {
  position: relative;
  isolation: isolate;
  background: #071a36 url(images/14-stadium-layer.webp) center/cover no-repeat;
}
.illustrated-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.illustrated-hero > img,
.catch-art {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: right center;
  z-index: -1;
}
.opening,
.reward {
  height: clamp(390px, 41vw, 660px);
  min-height: min-content;
}
.opening::after,
.reward::after {
  position: absolute;
  content: "";
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #05132ad6, #06183248 39%, transparent 62%);
}
.hero-copy,
.reward-copy {
  position: relative;
  padding: clamp(28px, 4.2vw, 72px) calc(var(--gutter) + 0.6vw) 36px;
  width: max-content;
  max-width: min(58%, 820px);
  text-shadow: 0 3px 10px #031027b3;
}
.hero-copy h1,
.reward h2 {
  font-size: clamp(42px, 5.65vw, 93px);
  letter-spacing: -0.028em;
  text-wrap: nowrap;
}
.hero-copy p {
  max-width: 34ch;
  margin-top: 18px;
  font-size: clamp(0.98rem, 1.46vw, 1.3rem);
  font-weight: 560;
  line-height: 1.37;
}
.reward h2 {
  text-transform: uppercase;
  font-family: var(--condensed);
}
.reward h2::after {
  content: "";
  display: block;
  width: 63%;
  height: 7px;
  margin-top: 11px;
  background: var(--gold);
  clip-path: polygon(0 64%, 100% 0, 95% 85%, 0 100%);
}
.reward-copy {
  padding-top: clamp(23px, 3vw, 60px);
}

.plate {
  position: relative;
  color-scheme: light;
  color: var(--ink);
  background: radial-gradient(ellipse at 44% 25%, #fff8e6 20%, #f2e4c3 100%);
  border: 2px solid #a9844c;
  border-radius: 15px;
  box-shadow:
    inset 0 0 0 2px #fffae9,
    0 7px 18px #020b2059;
}
.plate::before,
.plate::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 8px;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle at 32% 23%, #fffced 12%, #c6a779 43%, #50402b 90%);
  border: 1px solid #715738;
  border-radius: 50%;
  pointer-events: none;
}
.plate::before {
  left: 8px;
}
.plate::after {
  right: 8px;
}
.plaque,
.gold {
  background: url(images/gold-control.webp) center/100% 100% no-repeat;
  color: var(--ink);
  text-transform: uppercase;
  font: italic 900 1.8rem/1 var(--condensed);
  text-align: center;
  border: 0;
}
.plaque,
.gold,
.cream-control {
  display: inline-flex;
  min-height: 44px;
  justify-content: center;
  align-items: center;
  padding: 6px 30px 12px;
  white-space: nowrap;
  text-decoration: none;
}
.gold {
  display: inline-grid;
  /* Center labels on the gold face above the illustrated bevel and shadow. */
  grid-template-rows: 68% 1fr;
  place-items: center;
  min-width: 154px;
  min-height: 54px;
  padding-block: 0;
}
.link-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
}
.gold:hover {
  filter: brightness(1.1);
}
.gold:active,
.gold[data-held="true"] {
  transform: translateY(3px);
  filter: brightness(0.95);
}
.gold:disabled {
  opacity: 0.65;
}
.cream-control {
  gap: 0.5em;
  color: var(--ink);
  background: #ffefd0;
  border: 1px solid #976a2d;
  box-shadow:
    inset 0 0 0 2px #fff7e3,
    0 3px 6px #06132148;
  border-radius: 20px;
  padding: 6px 14px;
  font-weight: 760;
  text-align: center;
}
.cream-control:hover {
  background: #fff9e9;
}

.score {
  z-index: 3;
  width: calc(100% - 2 * var(--gutter));
  max-width: 1260px;
  margin: -78px auto 0;
  padding: 29px clamp(16px, 3vw, 46px) 11px;
  text-align: center;
}
.score > .plaque {
  padding-block: 0 clamp(11px, 1.4vw, 20px);
}
.score > .plaque,
.ballot > .plaque {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  transform: translate(-50%, -57%);
  width: clamp(167px, 23vw, 320px);
  min-height: clamp(45px, 5.1vw, 72px);
  font-size: clamp(1.7rem, 3.4vw, 3rem);
}
.count,
.face-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 1.3vw, 18px);
}
.count > span,
.face {
  isolation: isolate;
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.33em;
  min-height: clamp(54px, 6.9vw, 100px);
  padding: 5px 5.4% 7px 39%;
  background: linear-gradient(155deg, #0b2f61, #05142c 65%);
  border: 2px solid #cd9331;
  border-radius: clamp(7px, 1vw, 14px);
  box-shadow:
    inset 0 0 0 2px #fff2b32b,
    0 3px 4px #30230a42;
  color: var(--cream);
  font: italic 900 clamp(1.2rem, 3.1vw, 2.9rem)/1 var(--condensed);
}
.count > span {
  display: grid;
  grid-template-columns: auto max-content minmax(0, 1fr);
  gap: clamp(5px, 1vw, 16px);
  padding: 4px clamp(7px, 1.5vw, 24px);
  text-align: left;
}
.count b {
  font: italic 900 clamp(1.9rem, 4.9vw, 4.5rem)/1 var(--condensed);
  font-variant-numeric: tabular-nums;
  text-align: right;
  overflow-wrap: anywhere;
}
.count b[data-wide] {
  font-size: clamp(0.84rem, 2.55vw, 2.1rem);
}
.portrait {
  display: block;
  width: var(--portrait-size, 88px);
  aspect-ratio: 1;
  background: url(images/11-vote-faces-sheet.webp) 0 0/300% 200% no-repeat;
}
.portrait.sal {
  background-position: 0 100%;
}
.count .portrait {
  --portrait-size: clamp(35px, 5.8vw, 84px);
  align-self: end;
}
.face .portrait {
  --portrait-size: clamp(64px, 8vw, 113px);
  position: absolute;
  left: 2.5%;
  bottom: 0;
  z-index: -1;
}
.count > .chosen {
  color: var(--ink);
  background: linear-gradient(145deg, #ffe492, #fdb51e);
}
.tally-board {
  min-width: 0;
}
#tallyCounts:not([hidden]) + .tally-placeholder {
  display: none;
}
.tally-placeholder b {
  color: #dccda8;
}
.tally-play {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
  padding-inline: 12px;
  font-weight: 750;
}
body[data-scene="win"] .tally-play {
  display: none;
}
.tally-status {
  font-size: clamp(0.71rem, 1.2vw, 0.83rem);
  color: #374052;
  font-weight: 660;
  margin-top: 3px;
}
.vote-hint {
  margin-top: 9px;
  color: var(--ink);
  font: italic 900 clamp(1.05rem, 2vw, 1.4rem)/1.05 var(--display);
}
.vote-hint::before,
.vote-hint::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: min(13vw, 150px);
  height: 1px;
  margin-inline: 0.65em;
  background: #c39139;
}
.ballot {
  position: relative;
  padding-top: 0;
  margin-bottom: 13px;
}
body[data-scene="win"] .score:has(.ballot:not([hidden])) {
  display: grid;
  max-width: 880px;
  background: radial-gradient(ellipse at 50% 0, #fff5d2 5%, #ffcf62 83%, #e6a522);
  box-shadow:
    inset 0 0 0 2px #fff2bd,
    0 2px 0 #845317,
    0 6px 27px #ffc24c66;
}
body[data-scene="win"] .score:has(.ballot:not([hidden])) > .plaque {
  position: static;
  grid-row: 2;
  justify-self: center;
  width: auto;
  min-height: 0;
  padding: 0 0 5px;
  transform: none;
  background: none;
  font-size: 1rem;
}
.ballot > .plaque {
  width: clamp(230px, 31vw, 430px);
  transform: translate(-50%, -91%);
}
body[data-scene="win"] .face {
  --portrait-size: clamp(46px, 8vw, 88px);
  display: grid;
  grid-template-columns: var(--portrait-size) auto;
  align-items: center;
  gap: clamp(6px, 1vw, 14px);
  min-height: clamp(69px, 8vw, 103px);
  border: 4px solid #d49e31;
  justify-content: center;
  text-transform: uppercase;
  padding: 4px 8px;
  font-size: clamp(1.45rem, 3.6vw, 3.2rem);
}
body[data-scene="win"] .face .portrait {
  --portrait-size: inherit;
  position: static;
  z-index: auto;
}
.face-status {
  display: block;
  margin-top: 4px;
  color: #ffdc76;
  font: 700 clamp(0.68rem, 1.6vw, 0.92rem)/1 system-ui, sans-serif;
  text-transform: none;
}
.face[data-vote-selected]:disabled,
.face[data-vote-selected] {
  border-color: #ffdc76;
  opacity: 1;
}
.face:hover:not(:disabled) {
  color: #ffd677;
  border-color: #ffdc76;
}
.face:active {
  transform: translateY(2px);
}
.face:disabled {
  opacity: 0.74;
}

body[data-scene="ready"] .score {
  margin-top: 0;
}
body[data-scene="win"] .score {
  margin-top: -70px;
}
body[data-scene="win"] .reward {
  height: clamp(375px, 37vw, 590px);
}
body[data-scene="win"] .reward-art {
  object-position: right top;
}
body[data-scene="loss"] .score {
  margin-top: clamp(30px, 5vw, 44px);
}
body[data-scene="win"] .count .portrait {
  display: none;
}
body[data-scene="win"] .count > span {
  min-height: 51px;
  grid-template-columns: max-content minmax(0, 1fr);
  padding: 6px clamp(7px, 1vw, 15px);
  font-size: clamp(1.12rem, 2vw, 1.7rem);
}
body[data-scene="win"] .count b:not([data-wide]) {
  font-size: clamp(1.5rem, 2.9vw, 2.55rem);
}
body[data-scene="win"] .score:has(.ballot:not([hidden])) .count > span {
  min-height: 37px;
  padding: 4px 6px;
  border: 1px solid #ac7828;
  color: var(--ink);
  background: #fff2cf;
  box-shadow: none;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}
body[data-scene="win"] .score:has(.ballot:not([hidden])) .count b {
  font-size: clamp(1.25rem, 2.1vw, 1.65rem);
}
body[data-scene="win"] #checkVote {
  margin: 8px auto 4px;
}
body[data-scene="win"] #checkVote[aria-disabled="true"] {
  opacity: 0.65;
  cursor: wait;
}

.supporter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--ring);
  position: relative;
  gap: 18px;
  align-items: center;
  padding: 6px 18px 8px 0;
  --ring: clamp(98px, 10vw, 142px);
  font: italic 900 clamp(1.2rem, 2.7vw, 2rem)/1.05 var(--condensed);
}
#supporterLabel {
  justify-self: end;
  text-align: right;
}
.portrait-stage {
  position: relative;
  z-index: 1;
  display: block;
  width: var(--ring);
  aspect-ratio: 1;
  isolation: isolate;
}
.portrait-stage::before,
.portrait-stage::after {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  pointer-events: none;
}
.portrait-stage::before {
  background: radial-gradient(ellipse at 54% 40%, #30517a, #04142d 72%);
  border: 5px solid #d9a827;
  box-shadow:
    inset 0 5px 14px #030d22,
    0 4px 8px #1410066b;
}
.portrait-stage::after {
  z-index: 2;
  border: 5px solid #ffd66a;
  background: linear-gradient(transparent 78%, #1b234360);
  clip-path: inset(67% 0 0);
}
.supporter-portrait {
  position: absolute;
  z-index: 1;
  width: 112%;
  aspect-ratio: 1;
  left: -6%;
  bottom: 7%;
  transform-origin: 50% 80%;
  background-size: 400% 200%;
  background-repeat: no-repeat;
  filter: drop-shadow(0 3px 3px #0810228a);
}
.supporter-portrait.murph {
  background-image: url(images/27-murph-stage-portrait.webp);
}
.supporter-portrait.sal {
  background-image: url(images/28-sal-stage-portrait.webp);
}
.supporter-portrait[data-pose="8"]::after {
  position: absolute;
  inset: 0;
  content: "";
  background: inherit;
  background-position: 100% 100%;
  clip-path: inset(20% 30% 70% 31% round 5px);
}
body[data-scene="win"] .score:has(.supporter:not([hidden])) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  column-gap: clamp(14px, 2vw, 28px);
  align-items: center;
}
body[data-scene="win"] .score:has(.supporter:not([hidden])) .tally-board {
  grid-area: 1 / 1;
}
body[data-scene="win"] .score:has(.supporter:not([hidden])) .supporter {
  grid-area: 1 / 2 / span 2;
}
body[data-scene="win"] .score:has(.supporter:not([hidden])) .tally-status {
  grid-area: 2 / 1;
}
body[data-scene="win"] .score:has(.supporter:not([hidden])) .vote-hint {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.after-win {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  margin: 12px auto 0;
}
.after-win .gold {
  font-size: 1.45rem;
}
#confetti {
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
#confetti i {
  position: absolute;
  left: var(--confetti-x, 50%);
  top: var(--confetti-y, 76%);
  width: 8px;
  height: 13px;
  border-radius: 1px;
  background: var(--color);
  box-shadow: 0 1px 3px #634416b0;
  animation: confetti 1s var(--delay) both cubic-bezier(0.17, 0.57, 0.39, 1);
}
@keyframes confetti {
  0% {
    transform: translate(0, 0) rotate(0);
    opacity: 0;
  }
  11% {
    opacity: 1;
  }
  70% {
    opacity: 0.95;
  }
  100% {
    transform: translate(var(--x), var(--y)) rotate(var(--turn));
    opacity: 0;
  }
}

.section-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px auto 0;
  width: calc(100% - 2 * var(--gutter));
  max-width: 1260px;
}
.section-links a {
  color: var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30%;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 4px 12px;
  position: relative;
  overflow: hidden;
  min-height: 112px;
  padding: 11px 16px;
  text-decoration: none;
  background: linear-gradient(152deg, #fff9e9, #f7e9ca);
  border: 1px solid #9b7950;
  border-radius: 10px;
  font: italic 900 clamp(1.07rem, 1.8vw, 1.65rem)/1.08 var(--display);
}
.section-links a:hover {
  background: #fff9e9;
  box-shadow: inset 0 0 0 2px #e4aa42;
}
.section-links a:focus-visible,
.dugout-notes summary:focus-visible {
  outline-offset: -3px;
}
.section-links img {
  grid-column: 2;
  grid-row: 1/3;
  height: 62px;
  width: 100%;
  object-fit: contain;
}
.section-links a:first-child img {
  height: 50px;
}
.section-links b {
  grid-column: 1;
  grid-row: 2;
  color: #8c5b0b;
}
.sections {
  display: grid;
  gap: clamp(24px, 4vw, 64px);
  max-width: 1260px;
  width: calc(100% - 2 * var(--gutter));
  margin: clamp(30px, 4vw, 58px) auto 20px;
}
.sections h2 {
  font-size: clamp(1.7rem, 3.8vw, 3.45rem);
}
.brewers {
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: clamp(210px, 28vw, 400px);
}
.brewers .ballpark-art {
  width: 63%;
  min-width: 0;
  align-self: stretch;
  object-fit: cover;
  mask-image: linear-gradient(to right, transparent, #000 22%);
}
.brewers-copy {
  order: -1;
  padding: clamp(22px, 3.3vw, 54px);
}
.brewers-history {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  max-width: 36ch;
  margin-block: 14px 18px;
}
.brewers-history strong {
  padding: 2px 8px 4px;
  border-radius: 5px;
  background: #ffdf8b;
  box-shadow: inset 0 0 0 1px #b57b24;
  font: italic 900 1.15rem/1.2 var(--condensed);
}
.highlights > h2 {
  margin-bottom: 12px;
}
.highlight-card {
  position: relative;
  isolation: isolate;
  min-height: clamp(385px, 40vw, 600px);
  border: 1px solid #8b632a;
  border-radius: 13px;
  overflow: hidden;
  background: linear-gradient(145deg, #06182f, #0a2345);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.catch-art {
  inset: 0 0 auto auto;
  width: 78%;
  height: auto;
  object-fit: contain;
  mask-image: linear-gradient(to right, transparent, #000 18%);
}
.highlight-copy {
  width: 44%;
  padding: clamp(22px, 3.6vw, 52px);
}
.player-tag {
  display: inline-block;
  padding: 7px 14px;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid #ba873f;
  border-radius: 4px;
  text-transform: uppercase;
  font: italic 900 1.3rem/1 var(--condensed);
}
.highlight-copy h3 {
  font-size: clamp(2.15rem, 4.9vw, 5.25rem);
  margin: 9px 0 15px;
  text-shadow: 0 3px 10px #071225;
}
.clip-meta {
  font-size: 0.9rem;
  font-weight: 700;
  text-shadow: 0 2px 6px #041228;
}
.clip-meta > span {
  white-space: nowrap;
}
@media (min-width: 621px) and (max-width: 1050px) {
  .catch-art {
    width: 72%;
  }
  .clip-meta {
    max-width: 28ch;
  }
}
@media (min-width: 941px) and (max-width: 1100px) {
  .opening .hero-copy p {
    max-width: 28ch;
  }
}
.clip-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 14px;
  padding: 8px clamp(10px, 2vw, 26px);
}
.clip-note {
  font: italic 900 clamp(1.22rem, 2.35vw, 1.95rem)/1.08 var(--display);
}
#clipFallback {
  display: none;
}
#clipFallback p + p {
  margin-top: 5px;
  font: 520 0.92rem/1.4 system-ui, sans-serif;
}
[data-clip-available="false"] :is(#clipLink, #clipCue, #clipDuration) {
  display: none;
}
[data-clip-available="false"] #clipFallback {
  display: block;
}
.clip-links {
  display: grid;
  justify-items: center;
  gap: 3px;
}
.clip-links .gold {
  font-size: clamp(1rem, 2vw, 1.65rem);
}
.game-story {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: 8px;
  font-size: 0.86rem;
  font-weight: 670;
}
[data-clip-available="false"] .game-story {
  display: inline-grid;
  grid-template-rows: 68% 1fr;
  place-items: center;
  min-height: 49px;
  padding: 0 24px;
  background: url(images/gold-control.webp) center/100% 100% no-repeat;
  font-weight: 800;
  text-decoration: none;
}

.dugout-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 0.56fr);
  align-items: center;
  column-gap: clamp(10px, 2vw, 28px);
  padding: 12px 16px 0;
  overflow: hidden;
}
.dugout-pair {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  align-self: end;
  object-position: bottom;
}
.dugout-copy {
  border-left: 1px solid #b57b24;
  padding: 5px 0 5px clamp(9px, 2vw, 26px);
}
.dugout-copy > p {
  margin-top: 7px;
  font-weight: 610;
}
.dugout-notes {
  grid-column: 1/-1;
  border-top: 1px solid #b57b2466;
}
.dugout-notes summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding-inline: 7px;
  cursor: pointer;
  font-weight: 730;
  list-style: none;
}
.dugout-notes summary::-webkit-details-marker {
  display: none;
}
.dugout-notes summary span {
  width: 9px;
  height: 9px;
  margin-right: 5px;
  border: solid #96630f;
  border-width: 0 2px 2px 0;
  transform: rotate(-45deg);
}
.dugout-notes[open] summary span {
  transform: rotate(45deg);
}
.dugout-body {
  max-width: 68ch;
  padding: 1px 7px 18px;
}
.dugout-body p + p {
  margin-top: 9px;
}
.scorebook-art {
  width: 100%;
  max-height: 165px;
  object-fit: contain;
}

.cabinet-entry {
  position: relative;
  overflow: hidden;
  padding: clamp(14px, 4vw, 58px) var(--gutter) 12px;
  background: #081e3d url(images/14-stadium-layer.webp) center 63% / cover no-repeat;
  border-top: 1px solid #7b552a;
}
.machine {
  --machine-fill: linear-gradient(
    96deg,
    #ac6918,
    #fabe38 5%,
    #0d2a53 7%,
    #08172f 88%,
    #e8a424 94%,
    #9d5911
  );
  isolation: isolate;
  position: relative;
  color: var(--cream);
  display: grid;
  text-align: center;
  background: var(--machine-fill);
  border: 3px solid #eeb43f;
  border-radius: 23px 23px 13px 13px;
  box-shadow:
    inset 0 0 0 3px #1d1c21,
    0 10px 0 #080d18,
    0 20px 24px #031122b3;
}
.marquee > strong {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 57px;
  color: var(--ink);
  background: linear-gradient(146deg, #fff9e7, #e7cca0);
  border: 4px groove #f4bf51;
  border-radius: 8px 8px 12px 12px;
  box-shadow: 0 3px 5px #02091b;
  font: italic 900 clamp(2rem, 5.1vw, 4.7rem)/1 var(--condensed);
  text-transform: uppercase;
}
.start-message p {
  font: italic 900 clamp(1.1rem, 2.9vw, 2.05rem)/1.1 var(--display);
}
.start-message span {
  display: block;
  font-weight: 650;
  margin-top: 5px;
}
#gameLoading {
  width: fit-content;
  margin: 12px auto 0;
  padding: 9px 14px;
  color: var(--cream);
  background: #07172d;
  border: 1px solid #e0a632;
  border-radius: 8px;
  text-align: center;
}
#gameLoading a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 4px;
  color: var(--gold);
  font-weight: 750;
  text-decoration: underline;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px var(--gutter) max(2px, env(safe-area-inset-bottom));
  background: #062142;
  border-top: 2px solid #dba829;
  font: italic 900 clamp(0.85rem, 1.7vw, 1.2rem)/1.2 var(--display);
}
footer a {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.25em;
  min-height: 44px;
}

.cabinet {
  width: clamp(390px, 48vw, 740px);
  margin-inline: auto;
  padding: 11px 6% 15px;
  gap: 8px;
  transform-origin: top left;
}
.hero:has(.cabinet:not([hidden])) {
  padding: 18px 8px 29px;
  background-position: center 62%;
}
.marquee {
  display: grid;
  gap: 7px;
}
.marquee > strong {
  font-size: clamp(1.8rem, 4.2vw, 3.7rem);
}
.cabinet-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.small {
  padding-inline: 10px;
  min-height: 40px;
  background: #092b51;
  color: var(--cream);
  border: 1px solid #ecd09b;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 700;
}
.small:hover {
  background: #204569;
}
.screen {
  position: relative;
  overflow: hidden;
  border: 3px solid #d19b46;
  border-radius: 6px;
  background: #071731;
  aspect-ratio: 15 / 8;
}
.field-frame {
  position: relative;
  width: 100%;
  height: 100%;
}
.field-frame canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#gameHud {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  font: italic 900 clamp(1rem, 2.1vw, 1.35rem)/1.1 var(--condensed);
}
#pitch {
  flex: none;
  color: var(--gold);
}
#cue {
  color: var(--cream);
  text-align: right;
}
.deck {
  justify-items: center;
  display: grid;
  gap: 3px;
}
.deck p {
  font-weight: 740;
  font-size: clamp(0.8rem, 1.5vw, 1.05rem);
  text-shadow: 0 2px 6px #051122;
}
.timing-meter-slot {
  width: min(100%, 420px);
  height: 13px;
}
.timing-meter {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border: 1px solid #dfac50;
  border-radius: 12px;
  background: #071b39;
}
.timing-zone {
  position: absolute;
  inset: 1px var(--zone-edge, 39%);
  background: #d59c31;
  border-radius: 5px;
}
.timing-marker {
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  border-radius: 4px;
  transform: translateX(-50%);
  background: #fff4d9;
  box-shadow: 0 0 6px #fff4d9;
}
.timing-meter[data-aligned="true"] .timing-zone {
  background: #ffd976;
}
.timing-meter[data-mode="charge"] .timing-zone {
  display: none;
}
.timing-meter[data-mode="charge"] .timing-marker {
  width: 100%;
  transform: translateX(-100%);
  border-radius: 6px;
  background: linear-gradient(90deg, #d19115, #ffc63c);
  transition: left 105ms ease-out;
}
.deck .gold {
  width: min(76%, 470px);
  min-height: clamp(56px, 7vw, 82px);
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
}
#swing {
  touch-action: none;
  user-select: none;
}
#swing[aria-disabled="true"],
#play[aria-disabled="true"],
#retry[aria-disabled="true"] {
  opacity: 0.62;
  cursor: default;
}
#instructions:focus-visible {
  outline-offset: 1px;
}
body[data-scene="play"] {
  overflow: hidden;
}
body[data-scene="play"] .cabinet {
  --cabinet-spacing: clamp(9px, 1.5vh, 16px);
  --action-height: 56px;
  position: fixed;
  z-index: 40;
  inset: 0;
  width: 100%;
  height: 100dvh;
  margin: 0;
  padding: max(9px, env(safe-area-inset-top)) max(11px, env(safe-area-inset-right))
    max(9px, env(safe-area-inset-bottom)) max(11px, env(safe-area-inset-left));
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: #061831 url(images/14-stadium-layer.webp) center/cover;
  background-image:
    linear-gradient(#04142de5, #061832d9 72%, #061630),
    url(images/14-stadium-layer.webp);
  display: grid;
  grid-template-rows: auto minmax(64px, 1fr) auto;
  justify-items: center;
  gap: var(--cabinet-spacing);
  overflow: auto;
}
body[data-scene="play"] :is(.hero, .night-game) {
  isolation: auto;
}
body[data-scene="play"] .screen {
  display: grid;
  place-items: center;
  container-type: size;
  aspect-ratio: auto;
  min-height: 0;
  max-width: 1330px;
  width: 100%;
  overflow: visible;
  border: 0;
  background: none;
}
body[data-scene="play"] .field-frame {
  width: min(100cqw, 187.5cqh);
  height: auto;
  aspect-ratio: 15 / 8;
  border-radius: 5px;
  overflow: hidden;
}
:is(body[data-scene="ready"], body[data-scene="play"]) .field-frame canvas {
  object-fit: contain;
}
body[data-scene="play"] .marquee {
  display: flex;
  width: min(100%, 1330px);
  color: var(--cream);
  align-items: center;
  justify-content: space-between;
}
body[data-scene="play"] .marquee > strong {
  font-size: clamp(1.3rem, 2.6vw, 2.1rem);
  color: var(--gold);
  display: block;
  min-height: 0;
  width: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: none;
  text-align: left;
}
body[data-scene="play"] .small {
  min-height: 44px;
}
body[data-scene="play"] .deck {
  width: min(100%, 420px);
  grid-template-rows: 1.65rem minmax(2lh, auto) 13px var(--action-height);
  align-items: center;
  gap: 4px;
  line-height: 1.2;
  text-align: center;
}
body[data-scene="play"] .deck .gold {
  grid-row: 4;
  min-height: var(--action-height);
  width: 100%;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
}
body[data-scene="play"] #swing[data-outcome] {
  grid-template-rows: 1fr;
  color: var(--cream);
  background: #102946;
  border: 1px solid #c79745;
  border-radius: 6px;
  box-shadow: none;
  font-size: clamp(1.4rem, 4.5vw, 2.3rem);
  opacity: 1;
}
body[data-scene="play"] #swing[data-outcome="win"] {
  color: var(--gold);
}
body[data-scene="play"] .deck p {
  grid-row: 2;
  font-size: clamp(0.92rem, 1.55vw, 1.1rem);
}
body[data-scene="play"] .timing-meter-slot {
  grid-row: 3;
}
.cabinet-zoom {
  position: fixed;
  z-index: 1;
  transform-origin: top left;
  background: url(images/cabinet-shell.webp) center/100% 100% no-repeat;
  pointer-events: none;
}
.cabinet-zoom canvas {
  position: absolute;
  border-radius: 4% / 7%;
}
.cabinet[data-zooming] :is(.deck, .marquee > strong) {
  visibility: hidden;
}
.cabinet[data-zooming] .cabinet-actions {
  position: relative;
  z-index: 2;
}

.loss {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 3vw, 42px);
  padding: clamp(10px, 2.5vw, 36px) var(--gutter);
  background: #071a36;
  text-align: center;
  overflow: visible;
}
.loss-field {
  display: grid;
  width: 100%;
  aspect-ratio: 15 / 8;
  align-self: center;
  border-radius: 6px;
  overflow: hidden;
}
.loss-field :is(img, canvas) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.loss-panel {
  display: grid;
  justify-items: center;
  gap: clamp(10px, 2vw, 24px);
}
.loss h2 {
  font-size: clamp(2rem, 4.35vw, 4.75rem);
  line-height: 0.98;
  text-wrap: balance;
  text-shadow: 0 3px 7px #041122;
}
.loss-copy p {
  margin-top: 9px;
  font: italic 900 clamp(1rem, 2vw, 1.5rem)/1.15 var(--display);
}
.loss-actions {
  display: grid;
  justify-items: center;
  width: min(100%, 270px);
  gap: 7px;
}
.loss-actions .gold {
  width: 100%;
  font-size: clamp(1.75rem, 3.5vw, 2.85rem);
  min-height: 50px;
}
.loss-actions .cream-control {
  width: 100%;
}

@media (max-width: 820px) {
  :root {
    --mast-height: 56px;
  }
  .mast-inner {
    padding-right: 12px;
  }
  .wordmark {
    width: clamp(218px, 56vw, 340px);
  }
  .desktop-navigation {
    display: none !important;
  }
  .mobile-menu {
    display: block;
  }
  .menu-button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--cream);
    cursor: pointer;
    list-style: none;
  }
  .menu-button::-webkit-details-marker {
    display: none;
  }
  .menu-icon {
    display: block;
    position: relative;
    width: 22px;
    height: 2px;
    background: currentColor;
  }
  .menu-icon::before,
  .menu-icon::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background: currentColor;
  }
  .menu-icon::before {
    transform: translateY(-7px);
  }
  .menu-icon::after {
    transform: translateY(7px);
  }
  .mobile-menu[open] .menu-icon {
    background: none;
  }
  .mobile-menu[open] .menu-icon::before {
    transform: rotate(45deg);
  }
  .mobile-menu[open] .menu-icon::after {
    transform: rotate(-45deg);
  }
  .mobile-menu nav {
    display: grid;
    align-content: start;
    position: absolute;
    z-index: 1;
    inset: 100% 0 auto;
    max-height: calc(100dvh - var(--mast-height));
    overflow-y: auto;
    padding: 4px var(--gutter) 8px;
    background: #071b39;
    border-bottom: 2px solid #d6a53d;
  }
  body[data-browse-ready] .mobile-menu nav {
    height: calc(100dvh - var(--mast-height));
    background: linear-gradient(#071b39 44%, #071b39cc 72%, transparent),
      #071b39 url(images/14-stadium-layer.webp) center bottom/cover no-repeat;
  }
  body:not([data-browse-ready]) .mast:has(.mobile-menu[open]) {
    position: relative;
  }
  .mobile-menu nav a {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 9px 12px;
    min-height: 56px;
    font: italic 900 clamp(1.1rem, 5.5vw, 1.65rem)/1.1 var(--display);
  }
  .mobile-menu nav a + a {
    border-left: 0;
    border-top: 1px solid #d6a53d88;
  }
  .mobile-menu nav img {
    width: 100%;
    height: 37px;
    object-fit: contain;
  }
  .hero-copy,
  .reward-copy {
    max-width: 66%;
  }
  .score {
    margin-top: -58px;
  }
  .section-links a {
    min-height: 81px;
  }
}
@media (max-width: 940px) {
  .night-game:has(.opening:not([hidden])) .score {
    margin-top: -25px;
  }
  .opening {
    display: grid;
    grid-template-rows: auto auto;
    height: auto;
    min-height: 0;
    background: #071b38;
  }
  .opening::after {
    display: none;
  }
  .opening .hero-copy {
    grid-row: 1;
    width: auto;
    max-width: none;
    padding: clamp(15px, 2.8vw, 30px) var(--gutter) 3px;
  }
  .opening .hero-copy h1 {
    text-wrap: wrap;
  }
  .opening .opening-art {
    grid-row: 2;
    position: relative;
    inset: auto;
    height: clamp(242px, 48vw, 400px);
    object-position: 89% center;
    mask-image: linear-gradient(transparent, #000 12%);
  }
}
@media (max-width: 620px) {
  .reward {
    height: clamp(390px, 107vw, 580px);
  }
  .opening .opening-art {
    height: clamp(238px, 65vw, 360px);
  }
  .reward-art {
    height: 77% !important;
    top: auto !important;
    object-position: 89% bottom !important;
  }
  .reward::after {
    background: linear-gradient(180deg, #071b38 17%, #071b382b 48%, transparent 73%);
  }
  .hero-copy,
  .reward-copy {
    max-width: calc(100% - 22px);
    width: auto;
    padding: 16px 0 0 18px;
  }
  .hero-copy h1,
  .reward h2 {
    font-size: clamp(2.25rem, 9.3vw, 3.4rem);
  }
  .hero-copy p {
    margin-top: 9px;
    font-size: 0.91rem;
    max-width: 33ch;
  }
  .reward h2 {
    font-size: clamp(3.05rem, 13vw, 5rem);
  }
  body[data-scene="win"] .reward {
    height: clamp(305px, 99vw, 465px);
  }
  body[data-scene="win"] .reward-art {
    height: 76% !important;
    object-position: right top !important;
  }
  .score {
    padding: 23px 11px 8px;
  }
  .score > .plaque,
  .ballot > .plaque {
    min-height: 49px;
  }
  .count > span {
    min-height: 62px;
    padding: 5px;
    gap: 4px;
    font-size: clamp(1.05rem, 4.9vw, 1.2rem);
  }
  .count .portrait {
    --portrait-size: clamp(30px, 10.8vw, 52px);
  }
  .count b:not([data-wide]) {
    font-size: clamp(1.42rem, 7.14vw, 2.22rem);
  }
  .count > span:has(b[data-wide]) {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: 29px auto;
    row-gap: 0;
  }
  .count > span:has(b[data-wide]) .portrait {
    --portrait-size: 25px;
  }
  .count b[data-wide] {
    grid-column: 1/-1;
    text-align: center;
  }
  body[data-scene="win"] .count > span:has(b[data-wide]) {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .vote-hint {
    margin-top: 6px;
    font-size: 0.98rem;
  }
  .vote-hint::before,
  .vote-hint::after {
    display: none;
  }
  body[data-scene="win"] .score {
    margin-top: -61px;
  }
  body[data-scene="win"] .face {
    --portrait-size: clamp(39px, 13vw, 62px);
    border-width: 2px;
    min-height: 65px;
    padding-inline: 3px;
  }
  .ballot > .plaque {
    transform: translate(-50%, -88%);
  }
  body[data-scene="win"] .score:has(.supporter:not([hidden])) {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  body[data-scene="win"] .score:has(.supporter:not([hidden])) .supporter {
    grid-area: 2 / 1;
    gap: 15px;
    padding: 8px 14px 6px 5px;
    --ring: 94px;
  }
  body[data-scene="win"] .score:has(.supporter:not([hidden])) .tally-status {
    grid-row: 3;
  }
  .section-links {
    grid-template-columns: 1fr;
    gap: 0;
    background: #fff3d9;
    border: 1px solid #b48640;
    border-radius: 10px;
    overflow: hidden;
  }
  .section-links a {
    grid-template-rows: auto;
    padding: 4px 12px;
    border: 0;
    border-radius: 0;
    gap: 10px;
    min-height: 44px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    font-size: clamp(0.93rem, 4.4vw, 1.15rem);
  }
  .section-links a + a {
    border-top: 1px solid #85734b67;
  }
  .section-links img,
  .section-links a:first-child img {
    grid-column: 1;
    grid-row: 1;
    height: 32px;
  }
  .section-links b {
    grid-column: 3;
    grid-row: 1;
  }
  .sections {
    gap: 24px;
    margin-top: 32px;
  }
  .brewers {
    display: flex;
    flex-direction: column;
  }
  .brewers .ballpark-art {
    width: 100%;
    height: clamp(150px, 49vw, 260px);
    mask-image: linear-gradient(transparent, #000 16%);
  }
  .brewers-copy {
    align-self: start;
    padding: 17px 17px 5px;
  }
  .brewers-history {
    margin-block: 9px 12px;
  }
  .highlight-card {
    min-height: 0;
  }
  .catch-art {
    position: relative;
    order: -1;
    width: 100%;
    aspect-ratio: 16 / 9;
    mask-image: linear-gradient(#000 75%, transparent);
  }
  .highlight-copy {
    order: -2;
    width: auto;
    padding: 14px 12px 0;
  }
  .highlight-copy h3 {
    margin-block: 7px 6px;
  }
  .clip-actions {
    gap: 5px;
    grid-template-columns: 53px minmax(0, 1fr);
    margin: 7px;
    padding: 5px 9px 10px;
  }
  .clip-actions .portrait {
    --portrait-size: 56px;
  }
  .clip-links {
    grid-column: 1/-1;
    width: 100%;
  }
  .clip-links .gold {
    width: min(100%, 220px);
    min-height: 47px;
  }
  .dugout-card {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.6fr) minmax(0, 0.52fr);
    column-gap: 6px;
    padding: 10px 9px 0;
  }
  .dugout-copy {
    padding-left: 7px;
  }
  .dugout-copy h2 {
    font-size: clamp(1.12rem, 5.6vw, 1.6rem);
  }
  .dugout-copy > p {
    font-size: 0.875rem;
  }
  .dugout-pair {
    max-height: 160px;
  }
  .scorebook-art {
    align-self: end;
    margin-bottom: 7px;
  }
  .cabinet {
    width: min(100%, 390px);
  }
  .hero:has(.cabinet:not([hidden])) {
    padding-inline: 9px;
  }
}
@media (max-width: 360px) {
  body[data-scene="win"] .reward {
    height: clamp(282px, 90vw, 324px);
  }
}
@media (min-width: 621px) and (max-height: 540px) {
  body[data-scene="win"] .reward {
    height: clamp(164px, 46dvh, 250px);
    background: #071b36;
  }
  body[data-scene="win"] .reward-art {
    width: auto;
    height: calc(100% - 18px);
    inset: 18px 0 auto auto;
    object-fit: contain;
    mask-image: linear-gradient(90deg, transparent, #000 25%);
  }
}
@media (max-width: 620px) and (orientation: portrait) {
  .loss {
    grid-template-columns: 1fr;
    padding-block: 14px 18px;
  }
  body[data-scene="play"] .cabinet {
    --action-height: 60px;
  }
}
@media (max-width: 620px) and (orientation: portrait) and (min-height: 480px) {
  body[data-scene="play"] .cabinet {
    grid-template-rows: auto auto auto;
    align-content: center;
  }
  body[data-scene="play"] .screen {
    container-type: normal;
    height: min(109vw, calc(100dvh - 195px));
    aspect-ratio: auto;
  }
  body[data-scene="play"] .field-frame {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }
  body[data-scene="play"] .field-frame canvas {
    object-fit: cover;
  }
}
@media (orientation: landscape) and (max-height: 480px) {
  body[data-scene="play"] .cabinet {
    --action-height: 44px;
    --cabinet-spacing: 5px;
    padding-block: max(5px, env(safe-area-inset-top)) max(5px, env(safe-area-inset-bottom));
  }
  body[data-scene="play"] .deck .gold {
    font-size: 1.65rem;
  }
  body[data-scene="play"] .deck {
    grid-template-rows: 1.65rem minmax(1lh, auto) 13px var(--action-height);
  }
  .loss-field {
    max-width: calc((100dvh - var(--mast-height) - 42px) * 1.875);
    justify-self: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cabinet,
  .cabinet * {
    transition-property: none;
  }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* The generated cabinet supplies the rails, fasteners, screen bezel, and plinth. */
.start,
body[data-scene="ready"] .cabinet,
body[data-scene="home-run"] .cabinet {
  aspect-ratio: 1328 / 1184;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: url(images/cabinet-shell.webp) center/100% 100% no-repeat;
  box-shadow: none;
  filter: drop-shadow(0 12px 9px #020917a6);
}
.start {
  width: min(100%, 800px);
  margin-inline: auto;
}
.start h2 {
  display: grid;
  place-items: center;
  color: var(--ink);
  font: italic 900 clamp(2rem, 5.1vw, 4.7rem)/1 var(--condensed);
  text-transform: uppercase;
}
.start h2,
body[data-scene="ready"] .marquee > strong,
body[data-scene="home-run"] .marquee > strong {
  position: absolute;
  inset: 5.5% 12% auto;
  width: auto;
  height: 10.8%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: none;
}
.start-screen {
  position: absolute;
  inset: 25% 15% 34%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  justify-items: center;
  align-items: center;
  gap: clamp(4px, 1vw, 12px);
  padding-block: clamp(3px, 1.4vw, 18px);
}
.start-message span {
  font-size: clamp(0.78rem, 1.55vw, 1.05rem);
  line-height: 1.2;
}
.start-ball {
  width: auto;
  height: min(100%, 108px);
  min-height: 0;
  aspect-ratio: 1;
  object-fit: contain;
  padding: clamp(2px, 0.35vw, 5px);
  border: 2px solid #ffca42;
  border-radius: 50%;
  background: #ffd273;
}
.start .gold {
  position: absolute;
  left: 50%;
  bottom: 13.6%;
  width: min(65%, 380px);
  height: 14%;
  min-height: 45px;
  padding-inline: 10px;
  font-size: clamp(1.65rem, 4.4vw, 3.2rem);
  transform: translateX(-50%);
}
.start .gold:active {
  transform: translate(-50%, 2px);
}

:is(body[data-scene="ready"], body[data-scene="home-run"]) .cabinet .marquee {
  display: contents;
}
:is(body[data-scene="ready"], body[data-scene="home-run"]) .cabinet-actions {
  position: absolute;
  inset: 18.7% 13.8% auto;
  z-index: 2;
  pointer-events: none;
}
:is(body[data-scene="ready"], body[data-scene="home-run"]) .cabinet-actions button {
  pointer-events: auto;
}
:is(body[data-scene="ready"], body[data-scene="home-run"]) .cabinet .small {
  min-height: 35px;
  padding-inline: 7px;
  font-size: 0.77rem;
}
:is(body[data-scene="ready"], body[data-scene="home-run"]) .cabinet .screen {
  position: absolute;
  inset: 24.5% 13.8% auto;
  height: 41.5%;
  border: 0;
  border-radius: 4% / 7%;
}
:is(body[data-scene="ready"], body[data-scene="home-run"]) .cabinet .deck {
  position: absolute;
  inset: auto 16% 13.5%;
}
:is(body[data-scene="ready"], body[data-scene="home-run"]) .cabinet .deck p {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
body[data-scene="ready"] .cabinet {
  margin-bottom: 44px;
}
body[data-scene="ready"] .cabinet-actions {
  inset: calc(100% - 4px) 13.8% auto;
  justify-content: center;
}
body[data-scene="ready"] .cabinet .small {
  min-height: 44px;
}
body[data-scene="ready"] .cabinet .screen {
  width: 72.4%;
  height: auto;
}
:is(body[data-scene="ready"], body[data-scene="home-run"]) .cabinet .timing-meter-slot {
  display: none;
}
body[data-scene="ready"] .cabinet .deck {
  display: contents;
}
body[data-scene="ready"] .cabinet .deck p {
  inset: 18.4% 13.8% auto;
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible;
  text-align: center;
  font-size: clamp(0.75rem, 1.45vw, 1rem);
  line-height: 1.12;
}
body[data-scene="ready"] #play {
  position: absolute;
  inset: auto 0 13.5%;
  margin-inline: auto;
  width: min(64%, 350px);
  min-height: 44px;
}
#cabinetHomeRun {
  position: absolute;
  inset: 6% auto auto 6%;
  font: italic 900 clamp(1.4rem, 4.8vw, 4rem)/1 var(--condensed);
  text-transform: uppercase;
  text-shadow: 0 3px 6px #05122b;
  color: var(--gold);
}
body[data-scene="home-run"] .score {
  margin-top: 0;
}
body[data-scene="home-run"] .night-game:has([data-home-run-pullback]) {
  z-index: 10;
}
body[data-scene="home-run"] .hero[data-home-run-pullback] {
  z-index: 4;
}
body[data-scene="home-run"] .hero[data-home-run-pullback]::after {
  content: "";
  position: fixed;
  z-index: -1;
  inset: var(--mast-height) 0 0;
  background: inherit;
  pointer-events: none;
}
body[data-scene="home-run"] .cabinet {
  width: min(100%, clamp(390px, 48vw, 740px), calc((100dvh - var(--mast-height) - 32px) * 1.12));
}
body[data-scene="home-run"] .cabinet .cabinet-actions {
  inset: auto 14% 13.4%;
}
body[data-scene="home-run"] .cabinet .small {
  min-height: 44px;
  min-width: 44px;
}
@media (max-width: 620px) {
  .start h2 {
    font-size: clamp(1.8rem, 8.4vw, 3rem);
  }
  .start-message p {
    font-size: clamp(0.94rem, 4.15vw, 1.22rem);
  }
  .start-message span {
    font-size: clamp(0.75rem, 3.1vw, 0.95rem);
  }
  :is(body[data-scene="ready"], body[data-scene="home-run"]) .cabinet .small {
    min-height: 44px;
  }
  :is(body[data-scene="ready"], body[data-scene="home-run"]) .cabinet .deck .gold {
    min-height: 44px;
    width: 64%;
  }
  .cabinet .marquee > strong {
    font-size: clamp(1.7rem, 7vw, 2.8rem);
  }
}
@media (orientation: landscape) and (max-height: 480px) {
  body[data-scene="ready"] .cabinet {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 8px 12px;
    align-items: center;
    width: min(100%, 590px);
    aspect-ratio: auto;
    margin-bottom: 0;
    padding: 12px;
    border: 1px solid #b7853d;
    border-radius: 10px;
    background: #081b35;
  }
  body[data-scene="ready"] .cabinet .screen {
    position: relative;
    inset: auto;
    grid-area: 1 / 1 / 3;
    width: 100%;
    border-radius: 5px;
  }
  body[data-scene="ready"] .cabinet .marquee {
    display: grid;
    grid-area: 1 / 2;
    align-self: end;
  }
  body[data-scene="ready"] .marquee > strong {
    position: static;
    height: auto;
    color: var(--gold);
    font-size: clamp(1.2rem, 4vw, 1.85rem);
  }
  body[data-scene="ready"] .cabinet-actions {
    position: static;
  }
  body[data-scene="ready"] .cabinet .deck {
    position: static;
    display: grid;
    grid-area: 2 / 2;
    align-self: start;
    gap: 7px;
  }
  body[data-scene="ready"] .cabinet .deck p,
  body[data-scene="ready"] #play {
    position: static;
  }
  body[data-scene="ready"] #play {
    width: min(100%, 200px);
    font-size: 1.65rem;
  }
  .cabinet-zoom {
    background: #081b35;
    border-radius: 10px;
  }
}
