/* Batter Up (reading): Home Run Derby's ballpark, seen from behind home plate. The scoreboard is in the
   top right, the timing meter on the right, SWING in the bottom right and 🔊 in the bottom left (where
   the thumbs are on an iPad). The whole field is a swing button too. Spots on the field are in % of the
   park (the same as the field drawing's 0-1000 box). */
.game.batterup { background: #47ab54; }
.batterup button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.batterup .bu-park {
  flex: 1; position: relative; min-height: 0; overflow: hidden; cursor: pointer;
  background: repeating-linear-gradient(180deg, #4fb75c 0 44px, #47ab54 44px 88px);
  touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
.batterup .bu-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.batterup .bu-stands {
  position: absolute; top: 0; left: 0; right: 0; height: 70px; z-index: 1;
  background: repeating-linear-gradient(180deg, #4a69b0 0 17px, #405ea3 17px 34px);
  display: flex; justify-content: center; align-items: flex-end; gap: 2px; padding-bottom: 2px; overflow: hidden;
}
.batterup .bu-stands span { display: inline-block; position: relative; }
.batterup .bu-stands .critter-svg { width: 46px; height: 46px; }
.batterup .bu-stands.cheer span { animation: bu-fan .4s ease-out 3; }
.batterup .bu-stands span.got { animation: bu-fan .45s ease-out 4; }
.batterup .bu-stands span.got::after {
  content: ''; position: absolute; left: 50%; top: -8px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: #fffdf5; border: 2px solid var(--ink); box-sizing: border-box;
}
.batterup .bu-wall {
  position: absolute; top: 70px; left: 0; right: 0; height: 22px; z-index: 1; display: flex; justify-content: space-around; align-items: center;
  background: #2d7a3e; border-top: 4px solid #ffd23f; border-bottom: 3px solid var(--ink);
}
.batterup .bu-wall i { font-style: normal; font-weight: 800; font-size: 13px; color: #fff; opacity: .85; letter-spacing: 1px; }

/* their team in the field */
.batterup .bu-fielder { position: absolute; z-index: 2; font-size: 44px; line-height: 0; transform: translate(-50%, -100%); transition: left .7s ease-out, top .7s ease-out; pointer-events: none; }
.batterup .bu-fielder[data-field="left"] { left: 18%; top: 44%; }
.batterup .bu-fielder[data-field="center"] { left: 50%; top: 40%; }
.batterup .bu-fielder[data-field="right"] { left: 82%; top: 44%; }
.batterup .bu-fielder.jump .critter-svg { animation: bu-jump .6s ease-out; }
.batterup .bu-pitcher { position: absolute; left: 50%; top: 69.4%; z-index: 2; font-size: 66px; line-height: 0; transform: translate(-50%, -100%); pointer-events: none; }
.batterup .bu-pitcher .critter-svg { transform-origin: 50% 100%; }
.batterup .bu-pitcher.windup .critter-svg { animation: bu-windup .45s ease-in-out forwards; }
.batterup .bu-pitcher.throw .critter-svg { animation: bu-throw .45s ease-out; }

/* the ball, with its word: big and upright the whole way (only the stitches spin) */
.batterup .bu-ball { position: absolute; left: 0; top: 0; z-index: 7; opacity: 0; pointer-events: none; transform-origin: 50% 50%; will-change: transform; }
.batterup .bu-ball.show { opacity: 1; }
.batterup .bu-ball-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 4px 0 rgba(40, 30, 50, .3)); }
.batterup .bu-seams { transform-box: view-box; transform-origin: 0 0; }
/* the stitches rock a little as it flies (never across the word) */
.batterup .bu-ball.fly .bu-seams { animation: bu-seams .3s ease-in-out infinite alternate; }
.batterup .bu-word {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -52%); font-size: var(--fs, 30px); font-weight: 700; line-height: 1;
  color: var(--ink); white-space: nowrap; text-shadow: 0 0 4px #fffdf5, 0 0 2px #fffdf5;
}
/* the strike zone over the plate: gold while it's home run time */
.batterup .bu-zone {
  position: absolute; left: 0; top: 0; z-index: 5; border: 4px dashed rgba(255, 255, 255, .8); border-radius: 22px; opacity: 0; pointer-events: none;
  transition: opacity .2s, background .12s, border-color .12s, box-shadow .12s;
}
.batterup .bu-zone.show { opacity: .9; }
.batterup .bu-zone.hot { border: 5px solid var(--sun); background: rgba(255, 210, 63, .28); box-shadow: 0 0 26px 8px rgba(255, 210, 63, .75); opacity: 1; }

/* him */
.batterup .bu-batter { --bw: 112px; position: absolute; bottom: -6px; left: calc(50% - var(--bw) * .736 - 30px); width: var(--bw); z-index: 6; pointer-events: none; }
.batterup .bu-me-svg { display: block; width: 100%; height: auto; overflow: visible; transform-origin: 70% 90%; }
.batterup .bu-bat { transform-box: view-box; transform-origin: 0 0; transform: translate(93px, 127px) rotate(-78deg); }
.batterup .bu-batter.swing .bu-bat { animation: bu-swing .6s ease-out; }
.batterup .bu-batter.swing .bu-me-svg { animation: bu-twist .6s ease-out; }
.batterup .bu-batter.whiff .bu-bat { animation: bu-whiffbat .9s ease-out; }
.batterup .bu-batter.whiff .bu-me-svg { animation: bu-spin .9s ease-in-out; }
.batterup .bu-dizzy { position: absolute; left: 40%; top: -4%; font-size: 36px; line-height: 1; opacity: 0; }
.batterup .bu-batter.whiff .bu-dizzy { animation: bu-dizzy 1.3s ease-out; }

/* the catcher's mitt (the camera is the catcher) */
.batterup .bu-mitt { position: absolute; left: 0; top: 0; z-index: 8; opacity: 0; pointer-events: none; }
.batterup .bu-mitt.show { opacity: 1; }
.batterup .bu-mitt-svg { display: block; width: 100%; height: auto; }
.batterup .bu-mitt.show .bu-mitt-svg { animation: bu-mitt .5s cubic-bezier(.2, 1.4, .4, 1); }

/* runners: him, on the bases */
.batterup .bu-runners { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.batterup .bu-runner {
  position: absolute; width: 44px; height: 44px; margin: -40px 0 0 -22px; border-radius: 50%; background: #fff; overflow: hidden;
  border: 4px solid var(--c, #3f7fe0); box-shadow: 0 0 0 2px var(--ink), 0 4px 0 rgba(0, 0, 0, .25); transition: left .26s linear, top .26s linear;
}
.batterup .bu-runner .bu-head { display: block; width: 100%; height: 100%; }
.batterup .bu-runner.home { animation: bu-home .5s ease-out forwards; }

/* the scoreboard */
.batterup .bu-board {
  position: absolute; right: 10px; top: 6px; z-index: 5; background: #1f4d34; color: #fff; font-weight: 800;
  border: 4px solid var(--ink); border-radius: 14px; padding: 3px 8px 5px; box-shadow: var(--shadow); pointer-events: none;
}
.batterup .bu-line { border-collapse: collapse; font-variant-numeric: tabular-nums; }
.batterup .bu-line th { font-size: 12px; line-height: 1.2; color: #ffe27a; padding: 0 5px; text-align: center; }
.batterup .bu-line td { font-size: 19px; line-height: 1.25; text-align: center; min-width: 22px; padding: 0 4px; }
.batterup .bu-line td.now { background: rgba(255, 210, 63, .28); border-radius: 6px; }
.batterup .bu-line .r { color: var(--sun); font-size: 22px; min-width: 32px; border-left: 2px solid rgba(255, 255, 255, .3); }
.batterup .bu-line .r.pop { animation: bu-pop .5s ease-out; }
.batterup .bu-tm { display: flex; align-items: center; gap: 6px; padding: 1px 4px 1px 0 !important; }
.batterup .bu-tm span:last-child { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; text-align: left; }
.batterup .bu-badge { width: 24px; height: 27px; flex: none; display: block; }
.batterup .bu-me { display: inline-block; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--c); overflow: hidden; flex: none; }
.batterup .bu-me .bu-head { display: block; width: 100%; height: 100%; }
.batterup .bu-count { display: flex; gap: 12px; justify-content: center; align-items: center; margin-top: 3px; font-size: 14px; }
.batterup .bu-k { display: inline-flex; align-items: center; gap: 3px; color: #ffe27a; }
.batterup .bu-k i { width: 13px; height: 13px; border-radius: 50%; background: rgba(255, 255, 255, .15); border: 2px solid rgba(255, 255, 255, .55); box-sizing: border-box; }
.batterup .bu-k[data-k="s"] i.on { background: var(--sun); border-color: #fff; box-shadow: 0 0 6px var(--sun); }
.batterup .bu-k[data-k="o"] i.on, .batterup .bu-rival .bu-k i.on { background: var(--bad); border-color: #fff; box-shadow: 0 0 6px var(--bad); }
.batterup .bu-stars { display: inline-block; color: #fff; }
.batterup .bu-stars.pop { animation: bu-pop .5s ease-out; }

/* the timing meter: the ball's trip from the pitcher (top) to the mitt (bottom) */
.batterup .bu-meter { position: absolute; right: 14px; top: 28%; height: 40%; width: 84px; z-index: 5; transition: opacity .3s; pointer-events: none; }
.batterup .bu-meter.off { opacity: .5; }
.batterup .bu-zones { display: flex; flex-direction: column; height: 100%; border: 4px solid var(--ink); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.batterup .bu-z { display: flex; align-items: center; justify-content: center; min-height: 0; border-top: 2px solid rgba(58, 42, 74, .35); transition: filter .15s; }
.batterup .bu-z:first-child { border-top: none; }
.batterup .bu-z b { font-size: 12px; font-weight: 800; color: var(--ink); letter-spacing: .5px; line-height: 1; text-align: center; }
.batterup .bu-z[data-z="single"] { background: #8be39a; }
.batterup .bu-z[data-z="double"] { background: #7cc6ff; }
.batterup .bu-z[data-z="triple"] { background: #c7a4ff; }
.batterup .bu-z[data-z="hr"] { background: #ffd23f; }
.batterup .bu-z[data-z="hr"] b { font-size: 16px; line-height: 1.05; }
.batterup .bu-z[data-z="late"] { background: repeating-linear-gradient(45deg, #8be39a 0 6px, #74c983 6px 12px); }
.batterup .bu-z.now { filter: brightness(1.15) saturate(1.2); }
.batterup .bu-z.now b { transform: scale(1.15); }
.batterup .bu-mark { position: absolute; left: -10px; right: -6px; top: 0; height: 4px; margin-top: -2px; background: var(--ink); border-radius: 2px; }
.batterup .bu-mark::before {
  content: ''; position: absolute; left: -6px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%;
  background: #fffdf5; border: 3px solid var(--ink); box-sizing: border-box;
}

/* buttons: SWING (bottom right) and hear the word again (bottom left) */
.batterup .bu-swing {
  position: absolute; right: 16px; bottom: 16px; z-index: 9; width: 132px; height: 132px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 5px solid var(--ink); background: radial-gradient(circle at 35% 30%, #ff8f7f, #e0463c 70%); color: #fff; box-shadow: 0 7px 0 rgba(58, 42, 74, .35);
  font: inherit; font-weight: 800; font-size: 22px; letter-spacing: 1px; text-shadow: 0 2px 0 var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
}
.batterup .bu-swing:active { transform: translateY(4px) scale(.96); box-shadow: 0 3px 0 rgba(58, 42, 74, .35); }
.batterup .bu-swing .bu-bat-icon { width: 62%; height: auto; margin: -6px 0 -2px; }
.batterup .bu-hear {
  position: absolute; left: 16px; bottom: 16px; z-index: 9; width: 80px; height: 80px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 4px solid var(--ink); background: #fff; font-size: 40px; box-shadow: var(--shadow);
}
.batterup .bu-hear:active { transform: translateY(3px); }
.batterup .bu-hear.pulse { animation: bu-pulse .7s ease-in-out 2; }

/* "That was shop!" */
.batterup .bu-call {
  position: absolute; left: 50%; top: 40%; z-index: 10; display: flex; flex-direction: column; align-items: center; min-width: 200px;
  background: #fff; border: 5px solid var(--ink); border-radius: 24px; padding: 2px 30px 8px; box-shadow: var(--shadow); pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.5); transition: opacity .18s, transform .3s cubic-bezier(.2, 1.5, .4, 1);
}
.batterup .bu-call.show { opacity: 1; transform: translate(-50%, -50%); }
.batterup .bu-call small { font-size: 20px; font-weight: 800; color: var(--ink-soft); }
.batterup .bu-call-word { font-size: 68px; font-weight: 700; line-height: 1.1; color: var(--ink); }
.batterup .bu-call.bad { background: #ffe9ea; }
.batterup .bu-call.bad .bu-call-word { color: #b8322f; }
.batterup .bu-call.gold { background: #fff8d6; box-shadow: 0 0 0 6px var(--sun), var(--shadow); }
.batterup .bu-call-pic { position: absolute; right: -34px; top: -30px; font-size: 64px; line-height: 1; animation: bu-boing .9s ease-out; }

/* their half-inning */
.batterup .bu-rival {
  position: absolute; left: 50%; top: 42%; z-index: 11; min-width: 250px; text-align: center; pointer-events: none;
  background: #fff; border: 5px solid var(--ink); border-radius: 26px; padding: 8px 22px 12px; box-shadow: var(--shadow);
  opacity: 0; transform: translate(-50%, -50%) scale(.5); transition: opacity .25s, transform .35s cubic-bezier(.2, 1.5, .4, 1);
}
.batterup .bu-rival.show { opacity: 1; transform: translate(-50%, -50%); }
.batterup .bu-rv-top { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 22px; color: var(--grape); }
.batterup .bu-rv-top .bu-badge { width: 34px; height: 38px; }
.batterup .bu-rv-bat { position: relative; display: inline-block; font-size: 84px; line-height: 0; margin: 6px 0 2px; }
.batterup .bu-rv-bat .bu-bat-icon { position: absolute; right: -54px; top: -4px; width: 60px; transform-origin: 20% 80%; transform: rotate(-30deg); }
.batterup .bu-rv-bat.hit .bu-bat-icon { animation: bu-rvswing .35s ease-out; }
.batterup .bu-rv-row { display: flex; align-items: center; justify-content: center; gap: 18px; font-weight: 800; font-size: 26px; color: var(--ink); }
.batterup .bu-rival .bu-k { color: var(--ink); font-size: 18px; }
.batterup .bu-rival .bu-k i { width: 18px; height: 18px; background: #eee; border-color: var(--ink); }
.batterup .bu-rv-runs { display: inline-block; }
.batterup .bu-rv-runs.pop { animation: bu-pop .4s ease-out; }

.batterup .bu-banner { position: absolute; left: 0; right: 0; top: 14%; z-index: 11; text-align: center; pointer-events: none; opacity: 0; line-height: 1; }
.batterup .bu-banner b { display: block; font-size: 84px; font-weight: 800; color: #fff; text-shadow: 0 6px 0 #1d7fd0, 0 11px 0 var(--ink); }
.batterup .bu-banner small { display: block; margin-top: 10px; font-size: 30px; font-weight: 800; color: #fff; text-shadow: 0 3px 0 var(--ink); }
.batterup .bu-banner.hr b { font-size: 92px; color: var(--sun); text-shadow: 0 6px 0 var(--coral-dark), 0 11px 0 var(--ink); }
.batterup .bu-banner.gold b { font-size: 74px; color: #ffd23f; text-shadow: 0 6px 0 #d9822b, 0 11px 0 var(--ink); }
.batterup .bu-banner.strike b { font-size: 72px; text-shadow: 0 6px 0 #8a8fa8, 0 11px 0 var(--ink); }
.batterup .bu-banner.show { animation: bu-banner 1.9s ease-out forwards; }

.batterup .bu-float { position: absolute; z-index: 11; transform: translate(-50%, 0); font-size: 30px; font-weight: 800; color: #fff; text-shadow: 0 3px 0 var(--ink); white-space: nowrap; pointer-events: none; animation: bu-float 1.3s ease-out forwards; }
.batterup .bu-float.eye { color: var(--sun); }
.batterup .bu-float.run { font-size: 24px; }

.batterup .bu-burst { position: absolute; z-index: 2; width: 0; height: 0; pointer-events: none; }
.batterup .bu-burst i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; animation: bu-burst 1.2s ease-out forwards; }

/* before the game */
.batterup .bu-over { position: absolute; inset: 0; z-index: 12; display: none; place-items: center; background: rgba(40, 20, 70, .35); padding: 12px; cursor: default; overflow-y: auto; }
.batterup .bu-over.show { display: grid; }
.batterup .bu-card { background: #fff; border: 4px solid var(--ink); border-radius: 26px; padding: 12px 22px 14px; box-shadow: var(--shadow); text-align: center; width: min(560px, 100%); }
.batterup .bu-match { display: flex; align-items: center; justify-content: center; gap: 14px; }
.batterup .bu-side { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; flex: 1; }
.batterup .bu-side b { font-size: 20px; color: var(--ink); line-height: 1.1; }
.batterup .bu-me.big { width: 70px; height: 70px; border-width: 5px; box-shadow: 0 0 0 3px var(--ink); }
.batterup .bu-badge.big { width: 64px; height: 72px; }
.batterup .bu-vs { font-size: 34px; font-weight: 800; color: var(--coral-dark); }
.batterup .bu-how { display: grid; gap: 6px; justify-content: center; margin: 10px 0 4px; }
.batterup .bu-how-row { display: flex; align-items: center; gap: 10px; background: #f3fbf4; border: 3px solid #cfe9d3; border-radius: 16px; padding: 4px 14px; }
.batterup .bu-how-ear { font-size: 30px; }
.batterup .bu-how-said { font-size: 26px; font-weight: 700; color: var(--grape); }
.batterup .bu-how-ball { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #fffdf5; border: 3px solid var(--ink); font-size: 22px; font-weight: 700; color: var(--ink); box-shadow: inset 6px 0 0 -3px #ef4655, inset -6px 0 0 -3px #ef4655; }
.batterup .bu-how-arrow { font-size: 22px; color: var(--ink-soft); }
.batterup .bu-how .bu-bat-icon { width: 52px; height: 52px; }
.batterup .bu-how .bu-mitt-svg { width: 56px; height: auto; }
.batterup .bu-ok { font-size: 30px; color: var(--good); }
.batterup .bu-go { font-size: 30px; padding: 8px 40px; margin-top: 8px; }
.batterup .bu-best { margin: 8px 0 0; font-weight: 800; color: var(--ink-soft); }
.batterup .bu-off { font-weight: 700; color: var(--coral-dark); margin: 8px 0 0; }

/* short windows: smaller stands, pitcher and batter */
@media (max-height: 760px) {
  .batterup .bu-stands { height: 50px; }
  .batterup .bu-stands .critter-svg { width: 32px; height: 32px; }
  .batterup .bu-wall { top: 50px; height: 16px; border-top-width: 3px; }
  .batterup .bu-wall i { font-size: 10px; }
  .batterup .bu-fielder { font-size: 36px; }
  .batterup .bu-pitcher { font-size: 54px; }
  .batterup .bu-batter { --bw: 100px; }
  .batterup .bu-banner b { font-size: 64px; }
  .batterup .bu-banner.hr b { font-size: 72px; }
  .batterup .bu-banner.gold b, .batterup .bu-banner.strike b { font-size: 58px; }
  .batterup .bu-banner small { font-size: 24px; }
  .batterup .bu-card { padding: 8px 18px 10px; }
  .batterup .bu-how-ball { width: 50px; height: 50px; font-size: 19px; }
}
/* tall screens (an iPad held upright): a bigger batter and pitcher */
@media (min-height: 900px) and (min-width: 700px) {
  .batterup .bu-batter { --bw: 140px; }
  .batterup .bu-pitcher { font-size: 80px; }
  .batterup .bu-fielder { font-size: 52px; }
  .batterup .bu-meter { width: 92px; }
}
@media (max-width: 760px) {
  .batterup .bu-board { right: 6px; top: 4px; padding: 2px 6px 4px; border-width: 3px; border-radius: 12px; }
  .batterup .bu-line td { font-size: 16px; min-width: 18px; padding: 0 3px; }
  .batterup .bu-line .r { font-size: 18px; min-width: 26px; }
  .batterup .bu-tm span:last-child { max-width: 74px; font-size: 13px; }
  .batterup .bu-count { gap: 8px; font-size: 12px; }
  .batterup .bu-k i { width: 11px; height: 11px; }
  .batterup .bu-meter { width: 60px; right: 8px; top: 32%; height: 36%; }
  .batterup .bu-z b { font-size: 9px; letter-spacing: 0; }
  .batterup .bu-z[data-z="hr"] b { font-size: 12px; }
  .batterup .bu-swing { width: 108px; height: 108px; right: 10px; bottom: 12px; font-size: 18px; }
  .batterup .bu-hear { width: 68px; height: 68px; font-size: 32px; left: 10px; bottom: 12px; }
  .batterup .bu-batter { --bw: 96px; }
  .batterup .bu-runner { width: 36px; height: 36px; margin: -32px 0 0 -18px; border-width: 3px; }
  .batterup .bu-banner b { font-size: 50px; }
  .batterup .bu-banner.hr b { font-size: 56px; }
  .batterup .bu-banner.gold b, .batterup .bu-banner.strike b { font-size: 44px; }
  .batterup .bu-banner small { font-size: 20px; }
  .batterup .bu-call { padding: 2px 22px 6px; min-width: 160px; }
  .batterup .bu-call-word { font-size: 54px; }
  .batterup .bu-call-pic { font-size: 50px; right: -24px; }
  .batterup .bu-float { font-size: 24px; }
  .batterup .bu-match { gap: 8px; }
  .batterup .bu-side b { font-size: 16px; }
  .batterup .bu-vs { font-size: 26px; }
  .batterup .bu-how-row { gap: 6px; padding: 4px 8px; }
  .batterup .bu-how-ball { width: 48px; height: 48px; font-size: 18px; }
  .batterup .bu-how .bu-bat-icon { width: 42px; height: 42px; }
  .batterup .bu-how .bu-mitt-svg { width: 46px; }
  .batterup .bu-go { font-size: 26px; padding: 6px 30px; }
}
/* a phone: the scoreboard keeps just the badges, and he bats a little left of center so the ball
   crosses the plate clear of the SWING button */
@media (max-width: 480px) {
  .batterup .bu-tm span:last-child { display: none; }
  .batterup .game-top h2 { font-size: 20px; }
  .batterup .bu-batter { left: calc(40% - var(--bw) * .736 - 22px); }
  .batterup .bu-swing { width: 96px; height: 96px; font-size: 16px; }
  .batterup .bu-hear { width: 60px; height: 60px; font-size: 28px; }
  .batterup .bu-fielder[data-field="left"] { left: 22%; }
  .batterup .bu-fielder[data-field="right"] { left: 72%; }
}

@keyframes bu-fan { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes bu-jump { 0% { transform: none; } 45% { transform: translateY(-40%) scale(1.05); } 100% { transform: none; } }
@keyframes bu-windup { 0% { transform: none; } 60% { transform: rotate(-10deg) translateY(-6%); } 100% { transform: rotate(-14deg) translateY(-8%); } }
@keyframes bu-throw { 0% { transform: rotate(-14deg) translateY(-8%); } 35% { transform: rotate(16deg) translateY(2%); } 100% { transform: none; } }
@keyframes bu-seams { from { transform: rotate(-10deg); } to { transform: rotate(10deg); } }
@keyframes bu-swing {
  0% { transform: translate(93px, 127px) rotate(-78deg); }
  22% { transform: translate(93px, 127px) rotate(30deg); }
  40% { transform: translate(93px, 127px) rotate(40deg); }
  100% { transform: translate(93px, 127px) rotate(-78deg); }
}
@keyframes bu-twist { 0% { transform: none; } 22% { transform: rotate(5deg); } 100% { transform: none; } }
/* a big miss: the bat goes all the way around and he wobbles */
@keyframes bu-whiffbat {
  0% { transform: translate(93px, 127px) rotate(-78deg); }
  25% { transform: translate(93px, 127px) rotate(60deg); }
  45% { transform: translate(93px, 127px) rotate(150deg); }
  70% { transform: translate(93px, 127px) rotate(110deg); }
  100% { transform: translate(93px, 127px) rotate(-78deg); }
}
@keyframes bu-spin { 0% { transform: none; } 25% { transform: rotate(14deg); } 45% { transform: rotate(-12deg) translateX(-4%); } 65% { transform: rotate(8deg); } 82% { transform: rotate(-4deg); } 100% { transform: none; } }
@keyframes bu-dizzy { 0% { opacity: 0; transform: scale(.4) rotate(0); } 25% { opacity: 1; transform: scale(1.1) rotate(90deg); } 80% { opacity: 1; transform: scale(1) rotate(300deg); } 100% { opacity: 0; transform: scale(.8) rotate(360deg); } }
@keyframes bu-mitt { 0% { transform: translateY(45%) rotate(-8deg); } 55% { transform: translateY(-4%) rotate(3deg); } 75% { transform: translateY(2%) rotate(-2deg); } 100% { transform: none; } }
@keyframes bu-home { 0% { transform: none; opacity: 1; } 40% { transform: translateY(-20px) scale(1.25); opacity: 1; } 100% { transform: translateY(-36px) scale(.6); opacity: 0; } }
@keyframes bu-pop { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
@keyframes bu-pulse { 50% { transform: scale(1.14); box-shadow: 0 0 0 8px rgba(255, 210, 63, .7), var(--shadow); } }
@keyframes bu-boing { 0% { transform: scale(0) rotate(-30deg); } 45% { transform: scale(1.3) rotate(12deg); } 70% { transform: scale(.9) rotate(-6deg); } 100% { transform: none; } }
@keyframes bu-rvswing { 0% { transform: rotate(-30deg); } 50% { transform: rotate(80deg); } 100% { transform: rotate(-30deg); } }
@keyframes bu-banner { 0% { opacity: 0; transform: scale(.3) rotate(-6deg); } 18% { opacity: 1; transform: scale(1.12) rotate(-3deg); } 80% { opacity: 1; transform: scale(1) rotate(-3deg); } 100% { opacity: 0; transform: scale(1.05) translateY(-26px) rotate(-3deg); } }
@keyframes bu-float { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.7); } 20% { opacity: 1; transform: translate(-50%, 0) scale(1.1); } 100% { opacity: 0; transform: translate(-50%, -50px) scale(1); } }
@keyframes bu-burst { 0% { transform: rotate(var(--a)) translateY(0) scale(1); opacity: 1; } 70% { opacity: 1; } 100% { transform: rotate(var(--a)) translateY(-74px) scale(.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .batterup .bu-stands.cheer span, .batterup .bu-stands span.got, .batterup .bu-ball.fly .bu-seams { animation: none; }
}
