:root {
  color-scheme: light;
  background: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(72, 150, 130, 0.08), transparent 34%),
    #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.stage {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.press-target {
  display: grid;
  width: min(84vmin, 760px);
  aspect-ratio: 1;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.press-target:focus {
  outline: 0;
}

.scene {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.lizard {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  z-index: 1;
}

.table {
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: 11%;
  height: 26%;
  border-radius: 54% 54% 18px 18px / 30% 30% 18px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 34%),
    linear-gradient(90deg, #5f4739, #8a6752 26%, #aa7d5f 54%, #6d4d3e);
  box-shadow:
    0 20px 32px rgba(61, 42, 31, 0.24),
    inset 0 8px 12px rgba(255, 255, 255, 0.22),
    inset 0 -12px 16px rgba(55, 36, 28, 0.25);
  pointer-events: none;
  z-index: 3;
}

.table::before {
  position: absolute;
  inset: -20% 3% auto;
  height: 54%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 52% 28%, rgba(255, 255, 255, 0.42), transparent 30%),
    linear-gradient(90deg, #83624f, #bd8b6b 48%, #745140);
  box-shadow:
    inset 0 -10px 18px rgba(54, 34, 24, 0.2),
    0 8px 12px rgba(58, 38, 27, 0.18);
  content: "";
}

.button-base {
  position: absolute;
  left: 42%;
  top: -38%;
  width: 15%;
  aspect-ratio: 1.8;
  border-radius: 50%;
  background: linear-gradient(180deg, #5b1520, #2f0b12);
  box-shadow:
    0 10px 12px rgba(48, 18, 17, 0.3),
    inset 0 -4px 6px rgba(0, 0, 0, 0.24);
  transform: rotate(-2deg);
}

.button-top {
  position: absolute;
  left: 9%;
  right: 9%;
  top: -20%;
  height: 72%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.7), transparent 20%),
    linear-gradient(180deg, #ff566f, #c31f37 72%, #8a1526);
  box-shadow:
    0 6px 0 #681320,
    0 9px 14px rgba(44, 11, 15, 0.32);
  transition:
    top 52ms ease,
    box-shadow 52ms ease,
    transform 52ms ease;
}

.press-target.is-impact .button-top {
  top: -7%;
  box-shadow:
    0 2px 0 #681320,
    0 4px 8px rgba(44, 11, 15, 0.28);
  transform: scaleY(0.88);
}
