.arcade-hud {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  overflow: hidden;
  pointer-events: none;
  color: #fff2d3;
  font-family: Arial, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-variant-numeric: tabular-nums;
}
body:is([data-view='batting'], [data-view='ball-follow'], [data-view='intro'])
  .arcade-hud {
  display: block;
}
.arcade-stage {
  position: absolute;
  inset: 0 auto auto 0;
  transform-origin: top left;
}
.arcade-hud * {
  box-sizing: border-box;
}
.arcade-hud [hidden] {
  display: none !important;
}
.arcade-hud button {
  cursor: pointer;
  font-family: inherit;
  pointer-events: auto;
}
.arcade-hud button:disabled {
  cursor: default;
  opacity: 0.45;
}
.arcade-hud button:focus-visible {
  outline: 4px solid #b9744d;
  outline-offset: 5px;
}
.arcade-hud .ball-icon {
  color: #fff4d7;
}
.arcade-hud .pinned-card::before,
.arcade-hud .pinned-card::after {
  content: '';
  position: absolute;
  pointer-events: none;
}
.arcade-hud .pinned-card::before {
  z-index: 3;
  top: -16px;
  left: 50%;
  width: 25px;
  height: 25px;
  transform: translateX(-50%);
  border: 2px solid #315039;
  border-radius: 50%;
  background: radial-gradient(
    circle at 34% 25%,
    #fff9dc 0 12%,
    #f4d995 20%,
    #dcba71 48%,
    #b78a48 76%,
    #8d6738 100%
  );
  box-shadow:
    inset 0 2px 1px #fff4cb,
    inset 0 -3px 1px #9c713b,
    3px 5px 4px #193b3266;
}
.arcade-hud .pinned-card::after {
  z-index: 2;
  top: 4px;
  left: calc(50% + 3px);
  width: 3px;
  height: 12px;
  transform: rotate(-25deg);
  transform-origin: center top;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, #fbf2ce, #607560);
  box-shadow: 1px 2px 2px #193b324d;
}
.arcade-brand {
  position: absolute;
  top: 24px;
  right: 28px;
  width: clamp(160px, 15vw, 300px);
  pointer-events: none;
}
.arcade-brand img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
/* 경기 중에도 홈런더비 로고를 남긴다. 대기 화면의 우상단은 경기 중에는
   홈런 수 · 타율이 쓰므로, 비어 있는 상단 가운데로 옮기고 작게 줄인다. */
body:not([data-view='intro']) .arcade-brand {
  top: 16px;
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(120px, 11vw, 224px);
  opacity: 0.94;
}
.arcade-callout {
  position: absolute;
  z-index: 4;
  top: 245px;
  left: 50%;
  transform: translateX(-50%);
  width: 610px;
  height: 330px;
  display: grid;
  place-items: center;
  pointer-events: none;
  user-select: none;
}
.arcade-callout [data-result-art] {
  width: 100%;
  height: 100%;
}
.arcade-callout img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(
    0 calc(7px * var(--transfer-shadow, 1))
      calc(6px * var(--transfer-shadow, 1))
      rgb(9 40 36 / calc(0.25 * var(--transfer-shadow, 1)))
  );
}
.arcade-callout > strong {
  position: absolute;
  font-size: 64px;
  color: #fff2d3;
  text-shadow:
    0 4px 0 #244c36,
    0 0 12px #244c36;
}
.ball-bucket {
  position: absolute;
  top: 32px;
  left: 30px;
  width: 430px;
  background: #f6eed9;
  border: 5px solid #244c36;
  border-radius: 20px;
  padding: 20px;
  box-shadow:
    0 6px #173a27,
    0 0 0 4px #fff7dd;
  color: #244c36;
  transform: rotate(-1deg);
}
.ball-bucket > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ball-bucket > div > strong {
  font-size: 21px;
  letter-spacing: -1px;
}
.ball-bucket > div > b {
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -2px;
}
.ball-bucket > div > b small {
  font-size: 18px;
  letter-spacing: 0;
  font-weight: 500;
  color: #899276;
  margin-left: 7px;
}
.arcade-pitches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
/* A settled pitch shows its own verdict sticker, so the ten results read at a
   glance instead of decoding two-letter codes on identical balls. */
.arcade-pitches .pitch {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #ece3c9;
  box-shadow: inset 0 0 0 2px #ddd2b4;
}
.arcade-pitches .pitch img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
}
.arcade-pitches .ball-icon {
  position: relative;
  z-index: 2;
  display: none;
  width: 38px;
  height: 38px;
  color: #d9cfb2;
}
/* Empty slots keep the plain ball; a played slot hides it behind the art. */
.arcade-pitches .waiting {
  background: transparent;
  box-shadow: none;
}
.arcade-pitches :is(.waiting, .no-art) .ball-icon {
  display: block;
}
.arcade-pitches :is(.waiting, .no-art) img {
  display: none;
}
.arcade-pitches b {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: none;
  place-items: center;
  font-size: 11px;
  color: #244c36;
  font-weight: 900;
}
.arcade-pitches .no-art b {
  display: grid;
}
.arcade-pitches .current {
  outline: 3px solid #b9744d;
  outline-offset: 2px;
}
/* The flame canvas surrounds the frame; every verdict stays above the VFX. */
.arcade-pitches :is(.hr, .outOfPark) {
  background: linear-gradient(#f8e8c2, #f1d8a4);
  box-shadow:
    inset 0 0 0 2px #efa62e,
    0 0 8px 2px #ffa52c70,
    0 0 20px 4px #ff84242e;
}
.arcade-pitches .outOfPark {
  background: linear-gradient(#ffe6bb, #f6c983);
  box-shadow:
    inset 0 0 0 2px #ff9229,
    0 0 10px 2px #ff8b327d,
    0 0 24px 4px #ff5d2038;
}
.arcade-pitches :is(.hr, .outOfPark)::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: -2px;
  border-radius: 17px;
  border: 1px solid #ffcf66;
  pointer-events: none;
}
.arcade-pitches .outOfPark::after {
  border-color: #ffaf50;
}
.arcade-pitches .pitch-fire {
  position: absolute;
  z-index: 1;
  left: -20%;
  top: -58%;
  width: 140%;
  height: 178%;
  pointer-events: none;
}
.arcade-pitches [data-result-transfer='receiving'] {
  background: #ede4ca;
  box-shadow: inset 0 0 0 2px #c3ad71;
}
.arcade-pitches
  [data-result-transfer='receiving']
  :is(img, b, .ball-icon, .pitch-fire),
.arcade-pitches [data-result-transfer='receiving']::after {
  opacity: 0;
}
.pitch-stamp-ring {
  position: absolute;
  z-index: 3;
  inset: -3px;
  border: 3px solid #b88b40;
  border-radius: inherit;
  pointer-events: none;
}
.arcade-pitches :is(.hr, .outOfPark) .pitch-stamp-ring {
  border-color: #ffc044;
}
.arcade-right {
  position: absolute;
  right: 30px;
  top: 32px;
  width: 259px;
}
.arcade-tools {
  position: absolute;
  left: -65px;
  top: 0;
  display: grid;
  gap: 15px;
}
.arcade-tools button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 24px;
  color: #244c36;
  background: #fff0ca;
  border: 3px solid #244c36;
  box-shadow: 0 3px #153c28;
}
.arcade-tools .arcade-menu {
  font-size: 20px;
}
.home-plate {
  height: 280px;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
  background: #244c36;
  text-align: center;
  position: relative;
  isolation: isolate;
  padding: 22px 17px;
}
.home-plate::before,
.home-plate::after {
  content: '';
  position: absolute;
  z-index: -1;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
}
.home-plate::before {
  inset: 6px;
  background: #f0e2cb;
}
.home-plate::after {
  inset: 13px;
  background: #244c36;
}
.home-plate > span {
  font-size: 15px;
  letter-spacing: 4px;
  font-weight: 900;
}
.home-plate > strong {
  display: block;
  font-size: 112px;
  font-weight: 1000;
  letter-spacing: -6px;
  line-height: 1.1;
  color: #f9d56d;
  -webkit-text-stroke: 1px #cca450;
  text-shadow:
    0 4px #ab762d,
    0 7px #0d3928;
}
.home-plate > b {
  font-size: 24px;
  letter-spacing: 5px;
  color: #fff2cd;
  display: block;
  margin-top: 5px;
}
.home-plate > div {
  font-size: 9px;
  letter-spacing: 1.5px;
  margin-top: 17px;
  color: #ecd69d;
}
.arcade-average {
  position: relative;
  background: #faf0d8;
  border: 4px solid #244c36;
  border-radius: 16px;
  box-shadow: 0 4px #183b2b;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 13px 17px 11px;
  transform: rotate(2deg);
  color: #244c36;
  margin-top: 16px;
}
.arcade-average > span {
  font-size: 17px;
  font-weight: 800;
}
.arcade-average > span small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  margin-top: 4px;
  color: #697b55;
}
.arcade-average > strong {
  font-size: 39px;
  font-weight: 900;
  letter-spacing: -1px;
}
.arcade-average > small {
  grid-column: 1/-1;
  font-size: 10px;
  text-align: right;
  color: #637451;
  margin-top: 5px;
}
.arcade-player {
  position: absolute;
  bottom: 43px;
  left: 47px;
  display: flex;
  align-items: center;
  gap: 15px;
  max-width: 360px;
  background: #244c36;
  border: 3px solid #fff0cc;
  border-radius: 15px;
  box-shadow: 0 4px #163c2c;
  padding: 12px 23px;
  transform: rotate(-2deg);
}
.arcade-player > span {
  font-size: 42px;
  font-weight: 900;
  color: #f1cc73;
  font-style: italic;
}
.arcade-player > div {
  min-width: 0;
}
.arcade-player small {
  font-size: 9px;
  letter-spacing: 2px;
}
.arcade-player strong {
  display: block;
  font-size: 21px;
  margin-top: 3px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.arcade-ready {
  position: absolute;
  bottom: 37px;
  left: 50%;
  transform: translateX(-50%);
  width: 438px;
  text-align: center;
  background: #f8e9bb;
  border: 3px solid #244c36;
  box-shadow: 0 4px #173727;
  border-radius: 14px;
  padding: 13px 15px 11px;
  color: #244c36;
}
.arcade-ready > strong {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr) 23px;
  align-items: center;
  column-gap: 11px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.35;
}
.arcade-ready [data-message] {
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: anywhere;
}
.arcade-ready .ready-star {
  color: #b47e34;
  font-size: 23px;
  line-height: 1;
}
.arcade-ready > small {
  font-size: 12px;
  display: block;
  margin-top: 6px;
  color: #637451;
}
html:not(:lang(ko)) .arcade-ready > small {
  line-height: 1.5;
  text-wrap: balance;
}
.arcade-ready .game-actions {
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}
.arcade-ready .game-actions button {
  border: 2px solid #244c36;
  background: #fff9e7;
  color: #244c36;
  border-radius: 22px;
  padding: 8px 19px;
  font-size: 14px;
  font-weight: 700;
}
.arcade-ready .game-actions #game-swing {
  background: #244c36;
  color: #fff2d3;
  min-width: 130px;
}

/* --- 결과 카드: 기념 티켓 ---------------------------------------------------
   10구가 끝나면 8초 동안 이 한 장만 남는다. 여백은 --pad(티켓 안쪽) 과
   --gap(칸과 칸 사이) 두 값으로만 잡고, 높이는 내용이 정한다. */
.arcade-finish {
  --pad: 36px;
  --gap: 24px;
  --rule: 2px solid #244c3626;
  --finish-scale: 1;
  position: absolute;
  z-index: 6;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(var(--finish-scale));
  display: flex;
  width: 1320px;
  color: #244c36;
  filter: drop-shadow(0 28px 70px #17352680);
  pointer-events: auto;
}
.finish-stub {
  flex: none;
  width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--pad) 28px;
  background: #244c36;
  color: #f8f2e3;
  border-radius: 26px 0 0 26px;
  /* 절취선: 반원으로 물린 자리. 위아래 반쪽을 1px 겹쳐 이음선을 없앤다. */
  -webkit-mask:
    radial-gradient(circle 13px at 100% 0, transparent 13px, #000 14px) 0 0 /
      100% calc(50% + 1px) no-repeat,
    radial-gradient(circle 13px at 100% 100%, transparent 13px, #000 14px) 0
      100% / 100% calc(50% + 1px) no-repeat;
  mask:
    radial-gradient(circle 13px at 100% 0, transparent 13px, #000 14px) 0 0 /
      100% calc(50% + 1px) no-repeat,
    radial-gradient(circle 13px at 100% 100%, transparent 13px, #000 14px) 0
      100% / 100% calc(50% + 1px) no-repeat;
}
.finish-logo {
  display: block;
  width: 216px;
  height: auto;
}
.finish-stub b {
  margin-top: 12px;
  font-size: 168px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -6px;
}
.finish-stub small {
  margin-top: 4px;
  font-size: 26px;
  font-weight: 700;
}
.finish-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: var(--pad);
  background:
    repeating-linear-gradient(180deg, #244c3666 0 12px, transparent 12px 24px) 0
      0 / 3px 100% no-repeat,
    #f8f2e3;
  border-radius: 0 26px 26px 0;
  -webkit-mask:
    radial-gradient(circle 13px at 0 0, transparent 13px, #000 14px) 0 0 / 100%
      calc(50% + 1px) no-repeat,
    radial-gradient(circle 13px at 0 100%, transparent 13px, #000 14px) 0 100% /
      100% calc(50% + 1px) no-repeat;
  mask:
    radial-gradient(circle 13px at 0 0, transparent 13px, #000 14px) 0 0 / 100%
      calc(50% + 1px) no-repeat,
    radial-gradient(circle 13px at 0 100%, transparent 13px, #000 14px) 0 100% /
      100% calc(50% + 1px) no-repeat;
}
.finish-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: var(--gap);
  border-bottom: var(--rule);
}
.finish-mark {
  width: 38px;
  height: 43px;
  flex: none;
  display: grid;
  place-items: center;
  /* 홈플레이트는 아래가 뾰족해서, 상자 한가운데에 두면 글자가 가라앉아
     보인다. 평평한 윗부분의 가운데로 올린다. */
  padding-bottom: 7px;
  background: #244c36;
  color: #f8f2e3;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
}
.finish-head strong {
  display: block;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: 3px;
}
.finish-head small {
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: 1px;
  color: #5c7460;
}
.finish-zipshow {
  display: block;
  flex: none;
  margin-left: auto;
  width: 168px;
  height: auto;
}
.arcade-finish h2 {
  margin: var(--gap) 0;
  font-size: 52px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.finish-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  margin: 0;
}
.finish-rows > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  font-size: 21px;
  border-bottom: 2px dotted #244c3633;
}
/* 다섯 번째 칸이 한쪽에만 남으면 아래가 비뚤어 보인다. 통으로 깐다. */
.finish-rows .finish-row-wide {
  grid-column: 1 / -1;
}
.finish-rows dt {
  color: #5c7460;
  white-space: nowrap;
}
.finish-rows dd {
  margin: 0 0 0 auto;
  font-size: 28px;
  font-weight: 900;
  white-space: nowrap;
}
/* 티켓은 가로로 길다. 같은 칸을 5×2 대신 한 줄에 열 칸으로 편다. */
.finish-pitches {
  grid-template-columns: repeat(10, 1fr);
  margin-top: var(--gap);
}
.finish-foot {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: var(--gap);
  padding-top: var(--gap);
  border-top: var(--rule);
}
.finish-code {
  flex: none;
}
/* 입장권다운 바코드. 굵기가 다른 세 겹을 포개 규칙적인 줄무늬로 보이지 않게
   한다 — 읽히는 코드가 아니라 티켓의 결이다. */
.finish-barcode {
  width: 244px;
  height: 58px;
  background:
    repeating-linear-gradient(90deg, #244c36 0 3px, transparent 3px 8px),
    repeating-linear-gradient(90deg, #244c36 0 2px, transparent 2px 11px),
    repeating-linear-gradient(90deg, #244c36 0 5px, transparent 5px 19px);
}
.finish-code > span {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 2px;
  color: #5c7460;
}
.finish-foot p {
  flex: 1;
  margin: 0;
  line-height: 1.3;
}
.finish-foot [data-return-hint] {
  display: block;
  font-size: 26px;
  font-weight: 900;
  overflow-wrap: anywhere;
}
/* 남은 시간을 눈으로도 보여 준다. 줄어드는 시간은 카운트다운과 같은 값이다. */
.finish-hold {
  display: block;
  margin-top: 14px;
  height: 10px;
  border-radius: 999px;
  background: #244c361f;
  overflow: hidden;
}
.finish-hold i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b9744d, #dcba71);
}
/* 티켓은 끊어서 온다: 카드가 먼저 서고, 기록 칸이 왼쪽부터 하나씩 찍히고,
   그동안 숫자가 세어 오른다(countUp). 막대는 카드가 선 뒤에 줄기 시작한다. */
.arcade-finish.entering {
  animation: finish-in 0.62s cubic-bezier(0.22, 0.9, 0.28, 1.1) both;
}
.arcade-finish.entering .finish-pitches .pitch {
  animation: finish-pop 0.34s ease-out both;
  animation-delay: calc(360ms + var(--i, 0) * 45ms);
}
.arcade-finish.entering .finish-hold i {
  animation: finish-drain var(--result-hold, 8000ms) linear both;
}
@keyframes finish-in {
  from {
    opacity: 0;
    transform: translate(-50%, -46%) scale(calc(var(--finish-scale) * 0.94));
  }
  60% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(calc(var(--finish-scale) * 1.015));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(var(--finish-scale));
  }
}
@keyframes finish-pop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.86);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes finish-drain {
  from {
    width: 100%;
  }
  to {
    width: 0;
  }
}
/* 결과 티켓이 뜨면 화면은 티켓 하나다. 같은 숫자를 두 곳에서 읽게 두지
   않는다. 설정을 여는 ☰ 는 남긴다. */
body.arcade-is-complete
  .arcade-stage
  > :is(.ball-bucket, .arcade-player, .arcade-brand),
body.arcade-is-complete .arcade-right > :is(.home-plate, .arcade-average) {
  display: none;
}
.arcade-paused button {
  padding: 14px 30px;
  border: 0;
  border-radius: 30px;
  background: #244c36;
  color: #fff2d3;
  font-size: 16px;
  font-weight: 700;
}
.arcade-paused {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 410px;
  background: #244c36f5;
  padding: 30px;
  border: 3px solid #fff0cc;
  border-radius: 20px;
  font-size: 30px;
  text-align: center;
  box-shadow: 0 12px 45px #172d3944;
  pointer-events: auto;
}
.arcade-paused span {
  display: block;
  font-size: 15px;
  margin: 12px 0 20px;
}
.arcade-paused button {
  background: #f8e9bb;
  color: #244c36;
}
body.arcade-enabled #game-hud {
  display: none;
}
body.arcade-enabled:is([data-view='batting'], [data-view='ball-follow']):not(
    .arcade-tools-open
  )
  :is(.topbar, .control-deck, .batter-controls, .footer) {
  display: none;
}
body.arcade-enabled:is([data-view='batting'], [data-view='ball-follow'])
  .game-connect:not([open]) {
  display: none;
}
body.arcade-enabled:is([data-view='batting'], [data-view='ball-follow'])
  .game-connect[open] {
  z-index: 12;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(340px, calc(100% - 32px));
  max-height: calc(100svh - 40px);
  border: 3px solid #244c36;
  border-radius: 18px;
  background: #f8f2e3;
  color: #244c36;
  padding: 22px;
  font-size: 14px;
  box-shadow: 0 20px 80px #17352666;
}
body.arcade-enabled #game-qr {
  margin-inline: auto;
}
body.arcade-enabled.arcade-tools-open
  :is(.topbar, .batter-controls, .control-deck, .footer) {
  z-index: 8;
}
body.arcade-enabled.arcade-tools-open .arcade-stage > :not(.arcade-right),
body.arcade-enabled.arcade-tools-open .arcade-right > :not(.arcade-tools) {
  visibility: hidden;
}
body.arcade-enabled.arcade-tools-open .arcade-hud {
  z-index: 9;
}
body.arcade-enabled.arcade-tools-open .arcade-hud:not(.portrait) .arcade-tools {
  top: 143px;
  left: -150px;
}
body.arcade-enabled:is(
    [data-view='batting'],
    [data-view='ball-follow']
  ).arcade-tools-open
  .batter-controls {
  top: 100px;
  right: 20px;
  max-height: calc(100svh - 200px);
}
body.arcade-enabled .strike-zone {
  bottom: 20%;
  height: 21%;
  max-height: 25vw;
  border-width: 3px;
}
body.arcade-enabled .ocean-app {
  min-height: 0;
}
body:is(.arcade-is-paused, .arcade-is-complete) .strike-zone {
  visibility: hidden;
}
.arcade-hud.portrait .arcade-brand {
  display: none;
}
.arcade-hud.portrait .arcade-callout {
  top: 720px;
  width: 520px;
  height: 250px;
}
.arcade-hud.portrait .ball-bucket {
  top: 32px;
  left: 30px;
  width: 350px;
  transform: scale(0.68) rotate(-1deg);
  transform-origin: top left;
}
.arcade-hud.portrait .arcade-right {
  top: 32px;
  right: 30px;
  transform: scale(0.68);
  transform-origin: top right;
}
.arcade-hud.portrait .arcade-tools {
  left: auto;
  right: 0;
  top: -107px;
  display: flex;
  gap: 14px;
}
.arcade-hud.portrait .arcade-tools button {
  width: 65px;
  height: 65px;
  font-size: 30px;
}
.arcade-hud.portrait .arcade-player {
  left: 30px;
  bottom: 32px;
  transform: scale(0.85) rotate(-2deg);
  transform-origin: bottom left;
}
.arcade-hud.portrait .arcade-ready {
  bottom: 30px;
  width: 620px;
}
.arcade-hud.portrait .arcade-ready > small {
  font-size: 18px;
}
.arcade-hud.portrait .game-actions button {
  min-height: 58px;
  font-size: 20px;
}
.arcade-hud.portrait .arcade-finish {
  --finish-scale: 0.5;
}
/* The title and invitation belong to the film, leaving the field clear. */
body:not([data-view='intro']) .arcade-ready {
  width: auto;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
body:not([data-view='intro']) .arcade-ready > :is(strong, small) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
body:not([data-view='intro']) .arcade-ready .game-actions {
  margin: 0;
}
body:not([data-view='intro']) .arcade-ready .game-actions button {
  box-shadow: 0 3px 10px #163c2c33;
}
.arcade-join {
  display: none;
  position: absolute;
  top: 32px;
  left: 28px;
  width: 226px;
  padding: 17px 14px 12px;
  border: 3px solid #244c36;
  border-radius: 18px;
  background: #f8f2e3;
  color: #244c36;
  text-align: center;
  box-shadow:
    0 5px 0 #163c2c,
    0 12px 32px #163c2c24;
  pointer-events: auto;
}
.arcade-join > strong {
  display: block;
  font-size: 16px;
}
.arcade-join a {
  display: block;
  min-height: 192px;
  margin: 10px 0 0;
  border-radius: 8px;
  background: white;
}
.arcade-join img {
  display: block;
  width: 100%;
  height: auto;
}
body[data-view='intro'] .arcade-ready [data-actions] {
  display: none;
}

body[data-view='intro'] .arcade-join {
  display: block;
}
body[data-view='intro']
  .arcade-stage
  > :is(
    .ball-bucket,
    .arcade-right,
    .arcade-player,
    .arcade-callout,
    .arcade-finish,
    .arcade-paused
  ) {
  display: none;
}
body.arcade-enabled[data-view='intro']
  :is(
    .cinema-title,
    .cinema-brand,
    .cinema-edition,
    .cinema-shot,
    .cinema-clock,
    .cinema-progress-track
  ) {
  display: none;
}
body.arcade-enabled[data-view='intro'] .cinema-bar {
  background: transparent;
}
body.arcade-enabled[data-view='intro'] .cinema-bar-bottom {
  justify-content: flex-end;
  align-items: flex-end;
  padding-bottom: 26px;
}
body.arcade-enabled[data-view='intro'] .cinema-actions button {
  background: #244c36;
  border-color: #fff0cc;
  color: #fff2d3;
}
.arcade-hud.portrait .arcade-join {
  top: 82px;
  left: 18px;
  width: 180px;
  padding: 16px 10px 10px;
}
.arcade-hud.portrait .arcade-join a {
  min-height: 154px;
}
.arcade-hud.portrait .arcade-join > strong {
  font-size: 14px;
}
@media (orientation: portrait) {
  body.arcade-enabled.arcade-tools-open .header-actions {
    position: absolute;
    top: 65px;
    left: 20px;
  }
  body.arcade-enabled[data-view='intro'] .cinema-bar-bottom {
    padding: 0 18px 16px;
    align-content: flex-end;
  }
  body[data-view='intro'] .arcade-hud.portrait .arcade-ready {
    bottom: 120px;
  }
}
@media (orientation: landscape) and (max-height: 600px) {
  body[data-view='intro'] .arcade-ready {
    width: 660px;
    padding: 18px;
  }
  body[data-view='intro'] .arcade-ready > strong {
    font-size: 30px;
  }
  body[data-view='intro'] .arcade-ready > small {
    font-size: 24px;
  }
  body[data-view='intro'] .arcade-ready .game-actions button {
    min-height: 92px;
    font-size: 28px;
    padding-inline: 32px;
  }
  .arcade-join {
    top: 32px;
    left: 16px;
    width: 156px;
    padding: 12px 8px 8px;
  }
  .arcade-join a {
    min-height: 134px;
    margin: 6px 0 0;
  }
  .arcade-join > strong {
    font-size: 12px;
  }
}
@media (orientation: portrait) and (max-height: 740px) {
  .arcade-hud.portrait .arcade-join {
    width: 166px;
  }
  .arcade-hud.portrait .arcade-join a {
    min-height: 140px;
  }
}
@media (orientation: portrait) {
  body.arcade-enabled .strike-zone {
    bottom: 26%;
    height: 17%;
    max-height: 30vw;
  }
}
@media (orientation: portrait) and (max-height: 740px) {
  body.arcade-enabled .strike-zone {
    bottom: 22%;
  }
}
