:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #292b23;
  background: #f5f2e9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #df5b2e;
  outline-offset: 6px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
}
.wordmark {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -1.2px;
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
}
.logo-dot {
  width: 16px;
  height: 16px;
  background: #ee6c38;
  border-radius: 50%;
  box-shadow: inset -3px -3px 0 #d85425;
}
.sound {
  border: 1px solid #dedbd1;
  border-radius: 50%;
  background: transparent;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}
.sound svg {
  width: 19px;
  height: 19px;
}
.sound-off {
  display: none;
}
.sound[aria-pressed="false"] .sound-waves {
  display: none;
}
.sound[aria-pressed="false"] .sound-off {
  display: block;
}
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.intro {
  text-align: center;
  position: relative;
  z-index: 1;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.6px;
  font-weight: 700;
  margin: 8px 0 12px;
  color: #7e7d70;
}
h1 {
  margin: 0;
  font-size: clamp(60px, 8vw, 100px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -7px;
}
.playground {
  width: min(640px, 100%);
  height: 430px;
  position: relative;
  perspective: 900px;
  isolation: isolate;
}
.score {
  position: absolute;
  right: 34px;
  top: 50px;
  text-align: center;
  display: grid;
  gap: 6px;
}
.score output {
  font-size: 34px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -2px;
}
.score span {
  font-size: 9px;
  color: #858375;
  letter-spacing: 2px;
}
.floor {
  position: absolute;
  width: 360px;
  height: 100px;
  border-radius: 50%;
  background: #e9e5d8;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  box-shadow:
    0 10px 0 #e1ddce,
    0 22px 27px -18px #b5b09b;
}
.toy-shadow {
  position: absolute;
  bottom: 56px;
  left: 50%;
  width: 160px;
  height: 30px;
  border-radius: 50%;
  background: #777354;
  opacity: 0.25;
  filter: blur(9px);
  transform: translateX(-50%);
}
.model {
  position: absolute;
  left: 50%;
  bottom: 62px;
  width: 260px;
  height: 340px;
  margin-left: -130px;
  transform: rotateY(var(--tilt, -7deg));
  transition: transform 0.2s ease-out;
}
.character {
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  touch-action: manipulation;
  transform-origin: 50% 95%;
}
.head {
  position: absolute;
  width: 300px;
  height: 300px;
  left: -20px;
  top: -24px;
  z-index: 3;
  transform-origin: 50% 82%;
  filter: drop-shadow(3px 8px 2px #493a2430);
}
.head img {
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
  mask-image: url("head-mask.svg");
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}
.shirt {
  position: absolute;
  width: 112px;
  height: 118px;
  left: 74px;
  top: 205px;
  border-radius: 31px 31px 25px 25px;
  background: linear-gradient(100deg, #d5d4ca, #fffef7 35%, #f7f5ed 65%, #c8c8bf);
  box-shadow:
    inset 0 -8px 9px #7f7d6c26,
    4px 3px 5px #493a2420;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding-top: 32px;
  transform: rotate(-2deg);
}
.shirt span {
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.6px;
  line-height: 0.95;
  text-align: center;
  transform: rotate(2deg);
}
.arm {
  position: absolute;
  width: 29px;
  height: 88px;
  top: 223px;
  border-radius: 30px;
  background: linear-gradient(90deg, #ce8e55, #ffce94 40%, #e9af74);
  z-index: 1;
  box-shadow: inset -4px -3px 6px #b1764c35;
}
.arm.left {
  left: 56px;
  transform: rotate(12deg);
}
.arm.right {
  right: 55px;
  transform: rotate(-12deg);
}
.legs {
  position: absolute;
  top: 306px;
  left: 87px;
  display: flex;
  gap: 12px;
}
.legs i {
  display: block;
  width: 36px;
  height: 40px;
  border-radius: 6px 6px 15px 12px;
  background: linear-gradient(90deg, #3a3c35, #62645a 45%, #31332c);
  box-shadow: 0 6px 0 #292b25;
}
.bat {
  position: absolute;
  left: calc(50% + 69px);
  top: 45px;
  width: 72px;
  height: 288px;
  transform-origin: 50% 92%;
  transform: rotate(37deg);
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(7px 10px 4px #62412226);
}
.bat svg {
  width: 100%;
  height: 100%;
}
.impact {
  position: absolute;
  top: 33px;
  left: 50%;
  z-index: 6;
  opacity: 0;
  font-size: 46px;
  letter-spacing: -3px;
  font-weight: 900;
  font-style: italic;
  color: #e96532;
  pointer-events: none;
  transform: translate(-50%, 0) rotate(-10deg);
}
.stars {
  position: absolute;
  left: 50%;
  top: 90px;
  pointer-events: none;
  z-index: 6;
}
.stars i {
  position: absolute;
  font-style: normal;
  color: #ec9c25;
  font-size: 27px;
  opacity: 0;
}
.controls {
  text-align: center;
  margin: 0 0 25px;
}
.bonk-button {
  border: 0;
  border-radius: 13px;
  padding: 17px 31px;
  min-width: 180px;
  background: #ed6b38;
  font-size: 19px;
  letter-spacing: 1px;
  font-weight: 900;
  box-shadow: 0 5px 0 #b74923;
  transition:
    transform 0.1s,
    box-shadow 0.1s;
}
.bonk-button:hover {
  background: #f67b47;
}
.bonk-button:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #b74923;
}
.bonk-button span {
  opacity: 0.45;
  padding-left: 26px;
}
.controls p {
  color: #8c897c;
  font-size: 11px;
  margin-top: 19px;
}
kbd {
  font: inherit;
  border: 1px solid #d7d3c7;
  border-radius: 4px;
  padding: 2px 5px;
  margin-left: 2px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 40px;
  color: #8c897c;
  font-size: 9px;
  letter-spacing: 1.2px;
}
footer span:last-child {
  font-family: Georgia, serif;
  font-size: 13px;
  letter-spacing: 0;
  font-style: italic;
}
@media (max-width: 540px) {
  header {
    padding: 22px;
  }
  h1 {
    letter-spacing: -4px;
  }
  .playground {
    height: 405px;
    overflow: clip;
  }
  .model {
    bottom: 58px;
  }
  .floor {
    width: 300px;
  }
  .score {
    right: 23px;
    top: 28px;
  }
  .bat {
    left: 50%;
    top: 85px;
    width: 60px;
    height: 240px;
  }
  footer {
    padding: 20px 22px;
    font-size: 8px;
  }
}
@media (max-height: 740px) and (min-width: 541px) {
  header {
    padding-top: 18px;
    padding-bottom: 18px;
  }
  h1 {
    font-size: 70px;
  }
  .playground {
    height: 365px;
  }
  .model {
    transform: scale(0.88) rotateY(var(--tilt, -7deg));
    transform-origin: bottom center;
  }
  .bat {
    top: 15px;
  }
  .score {
    top: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
