.whack-croc-section {
  overflow: clip;
}

.whack-croc__heading {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

[data-whack-croc-root],
[data-whack-croc-root] * {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

[data-whack-croc-root] img,
[data-whack-croc-root] svg,
[data-whack-croc-root] canvas {
  -webkit-user-drag: none;
  user-drag: none;
}

[data-whack-croc-root]::selection,
[data-whack-croc-root] *::selection {
  background: transparent;
}

.whack-croc__shell {
  position: relative;
  z-index: 0;
  width: min(100%, 720px);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 32px);
  border-radius: 32px;
  display: grid;
  gap: 20px;
  isolation: isolate;
  background:
    radial-gradient(circle at top, rgba(174, 255, 152, 0.2), transparent 28%),
    radial-gradient(circle at 18% 16%, rgba(255, 213, 111, 0.14), transparent 18%),
    linear-gradient(180deg, rgba(11, 28, 25, 0.92), rgba(8, 17, 26, 0.94));
}

.whack-croc__shell::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.whack-croc__status-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.whack-croc__metric {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(9, 19, 17, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 30px rgba(1, 5, 10, 0.2);
}

.whack-croc__metric::before {
  content: "";
  position: absolute;
  inset: auto -20% -42% auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 213, 111, 0.22), transparent 66%);
  pointer-events: none;
}

.whack-croc__metric--time::before {
  background: radial-gradient(circle, rgba(124, 248, 255, 0.24), transparent 66%);
}

.whack-croc__metric-label {
  position: relative;
  z-index: 1;
  margin: 0;
  display: block;
  margin-bottom: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
}

.whack-croc__metric-value {
  position: relative;
  z-index: 1;
  display: block;
  font-size: clamp(1.55rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #fef8e9;
  text-shadow: 0 0 18px rgba(255, 213, 111, 0.16);
}

.whack-croc__metric.is-bump {
  animation: whackCrocMetricPulse 360ms ease;
}

.whack-croc__stage {
  display: grid;
  gap: 14px;
}

.whack-croc__stage-shell {
  position: relative;
  display: grid;
  gap: 0;
  justify-items: center;
  width: 100%;
  padding: clamp(18px, 4vw, 24px);
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(180, 255, 170, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(28, 77, 56, 0.72), rgba(17, 42, 34, 0.78));
  border: 1px solid rgba(191, 255, 181, 0.12);
}

.whack-croc__state-pill {
  margin: 0;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 14, 18, 0.52);
  color: #f4fbf7;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.whack-croc__board-shell {
  position: relative;
  width: min(100%, 620px);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 28px;
}

.whack-croc__board-shell::before {
  content: "";
  position: absolute;
  inset: 12% 12% 2%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(25, 10, 0, 0.16), transparent 66%);
  filter: blur(24px);
  pointer-events: none;
}

.whack-croc__board-picture,
.whack-croc__board-image {
  width: 100%;
  height: 100%;
}

.whack-croc__board-picture {
  display: block;
}

.whack-croc__board-image {
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.3));
}

.whack-croc__board-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.whack-croc__hammer-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.whack-croc__hammer {
  position: absolute;
  left: var(--whack-croc-hammer-x, 50%);
  top: var(--whack-croc-hammer-y, 50%);
  width: var(--whack-croc-hammer-size, 136px);
  aspect-ratio: 1;
  opacity: 0;
  pointer-events: none;
  transform-origin: 72% 72%;
  will-change: transform, opacity;
  filter:
    drop-shadow(0 12px 20px rgba(18, 7, 2, 0.34))
    drop-shadow(0 3px 0 rgba(255, 236, 170, 0.16));
}

.whack-croc__hammer.is-striking {
  animation: whackCrocHammerStrike 520ms cubic-bezier(0.18, 0.88, 0.32, 1)
    both;
}

.whack-croc__hammer.is-hit {
  filter:
    drop-shadow(0 12px 20px rgba(18, 7, 2, 0.34))
    drop-shadow(0 0 18px rgba(255, 214, 86, 0.26));
}

.whack-croc__hammer-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.whack-croc__combo-burst {
  position: absolute;
  left: 50%;
  top: 2.5%;
  z-index: 3;
  display: grid;
  place-items: center;
  min-width: clamp(124px, 25%, 178px);
  padding: 7px 18px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 246, 184, 0.46);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 38%),
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.46), transparent 24%),
    linear-gradient(135deg, rgba(255, 195, 56, 0.96), rgba(83, 220, 75, 0.96) 52%, rgba(44, 195, 255, 0.9));
  box-shadow:
    0 14px 28px rgba(4, 20, 13, 0.28),
    0 0 30px rgba(255, 219, 90, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.46),
    inset 0 -4px 0 rgba(24, 70, 22, 0.22);
  opacity: 0;
  transform: translate3d(-50%, 18px, 0) scale(0.78) rotate(-3deg);
  pointer-events: none;
  will-change: transform, opacity;
}

.whack-croc__combo-burst.is-visible {
  opacity: 1;
  transform: translate3d(-50%, -3px, 0) scale(1.02) rotate(0deg);
  animation: whackCrocComboBurst 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.whack-croc__combo-burst.is-super {
  border-color: rgba(255, 246, 184, 0.68);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 38%),
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.55), transparent 24%),
    linear-gradient(135deg, rgba(255, 215, 75, 0.98), rgba(255, 121, 74, 0.96) 50%, rgba(255, 71, 132, 0.92));
  box-shadow:
    0 16px 34px rgba(4, 20, 13, 0.3),
    0 0 34px rgba(255, 191, 74, 0.38),
    0 0 18px rgba(255, 88, 132, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.5),
    inset 0 -4px 0 rgba(96, 35, 10, 0.24);
}

.whack-croc__combo-spark,
.whack-croc__combo-ring {
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  pointer-events: none;
}

.whack-croc__combo-spark {
  background:
    radial-gradient(circle at 12% 44%, rgba(255, 246, 184, 0.98) 0 4px, transparent 5px),
    radial-gradient(circle at 85% 24%, rgba(255, 255, 255, 0.95) 0 3px, transparent 4px),
    radial-gradient(circle at 78% 78%, rgba(106, 245, 125, 0.9) 0 4px, transparent 5px),
    radial-gradient(circle at 28% 84%, rgba(91, 216, 255, 0.88) 0 3px, transparent 4px);
  opacity: 0;
}

.whack-croc__combo-ring {
  border: 2px solid rgba(255, 246, 184, 0.42);
  opacity: 0;
}

.whack-croc__combo-burst.is-visible .whack-croc__combo-spark {
  animation: whackCrocComboSpark 820ms ease both;
}

.whack-croc__combo-burst.is-visible .whack-croc__combo-ring {
  animation: whackCrocComboRing 820ms ease both;
}

.whack-croc__combo-text {
  position: relative;
  z-index: 1;
  color: #fffdf2;
  font-size: clamp(0.98rem, 2.7vw, 1.58rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow:
    0 3px 0 rgba(36, 84, 18, 0.32),
    0 10px 18px rgba(0, 0, 0, 0.22);
}

.whack-croc__hole {
  position: absolute;
  left: var(--hole-x, 50%);
  top: var(--hole-y, 50%);
  width: var(--hole-size, 18%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  appearance: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.whack-croc__hole[data-hole-index="0"] {
  --hole-x: 28.9%;
  --hole-y: 25.2%;
  --hole-size: 18%;
}

.whack-croc__hole[data-hole-index="1"] {
  --hole-x: 50.8%;
  --hole-y: 25.2%;
  --hole-size: 18%;
}

.whack-croc__hole[data-hole-index="2"] {
  --hole-x: 71.8%;
  --hole-y: 25.2%;
  --hole-size: 18%;
}

.whack-croc__hole[data-hole-index="3"] {
  --hole-x: 28.1%;
  --hole-y: 38.3%;
  --hole-size: 18.8%;
}

.whack-croc__hole[data-hole-index="4"] {
  --hole-x: 50.8%;
  --hole-y: 38.3%;
  --hole-size: 18.8%;
}

.whack-croc__hole[data-hole-index="5"] {
  --hole-x: 72.7%;
  --hole-y: 38.3%;
  --hole-size: 18.8%;
}

.whack-croc__hole[data-hole-index="6"] {
  --hole-x: 25%;
  --hole-y: 53.3%;
  --hole-size: 20.6%;
}

.whack-croc__hole[data-hole-index="7"] {
  --hole-x: 50.8%;
  --hole-y: 53.3%;
  --hole-size: 20.6%;
}

.whack-croc__hole[data-hole-index="8"] {
  --hole-x: 76.6%;
  --hole-y: 53.3%;
  --hole-size: 20.6%;
}

.whack-croc__hole::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 72%);
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.whack-croc__hole:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(124, 248, 255, 0.54),
    0 0 0 8px rgba(124, 248, 255, 0.16);
}

.whack-croc__hole:hover::before,
.whack-croc__hole:focus-visible::before {
  opacity: 1;
}

.whack-croc__hole:disabled {
  cursor: default;
}

.whack-croc__croc {
  position: absolute;
  left: 50%;
  bottom: -2%;
  z-index: 1;
  width: 112%;
  aspect-ratio: 1;
  transform: translate3d(-50%, 82%, 0) scale(0.94);
  transform-origin: center bottom;
  opacity: 0;
  transition:
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 120ms ease;
  pointer-events: none;
  filter:
    drop-shadow(0 12px 18px rgba(0, 0, 0, 0.22))
    drop-shadow(0 0 18px rgba(0, 0, 0, 0.14));
}

.whack-croc__croc-fallback,
.whack-croc__croc-visual {
  position: absolute;
  inset: 0;
  display: block;
}

.whack-croc__croc-fallback {
  display: grid;
  place-items: center;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  opacity: 0;
}

.whack-croc__croc-visual {
  z-index: 0;
}

.whack-croc__croc-state {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 1;
  opacity: 0;
  transition: opacity 120ms ease;
}

.whack-croc__croc-picture {
  position: absolute;
  inset: 0;
  display: block;
}

.whack-croc__croc-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center top;
  -webkit-clip-path: inset(0 0 24% 0);
  clip-path: inset(0 0 24% 0);
}

.whack-croc__croc-visual {
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 104% auto;
  -webkit-clip-path: inset(0 0 24% 0);
  clip-path: inset(0 0 24% 0);
  transition: opacity 120ms ease;
}

.whack-croc__hole[data-croc-surface="normal"],
.whack-croc__hole[data-croc-surface="happy"] {
  --whack-croc-surface-image: var(
    --whack-croc-croc-happy,
    var(--whack-croc-croc-normal)
  );
}

.whack-croc__hole[data-croc-surface="angry"] {
  --whack-croc-surface-image: var(--whack-croc-croc-angry);
}

.whack-croc__hole[data-croc-reaction="dizzy"] {
  --whack-croc-reaction-image: var(
    --whack-croc-croc-dizzy,
    var(--whack-croc-croc-hit)
  );
}

.whack-croc__hole[data-croc-reaction="sad"] {
  --whack-croc-reaction-image: var(--whack-croc-croc-sad);
}

.whack-croc__croc-visual--normal {
  background-image: var(
    --whack-croc-surface-image,
    var(--whack-croc-croc-normal)
  );
  opacity: 1;
}

.whack-croc__croc-visual--hit {
  background-image: var(
    --whack-croc-reaction-image,
    var(--whack-croc-croc-hit)
  );
  opacity: 0;
}

.whack-croc__hole.is-active[data-croc-surface="normal"]:not(.is-hit)
  .whack-croc__croc-state--normal,
.whack-croc__hole.is-active[data-croc-surface="happy"]:not(.is-hit)
  .whack-croc__croc-state--happy,
.whack-croc__hole.is-active[data-croc-surface="angry"]:not(.is-hit)
  .whack-croc__croc-state--angry,
.whack-croc__hole.is-hit[data-croc-reaction="dizzy"]
  .whack-croc__croc-state--dizzy,
.whack-croc__hole.is-hit[data-croc-reaction="sad"]
  .whack-croc__croc-state--sad {
  opacity: 1;
}

.whack-croc__hole.is-active .whack-croc__croc {
  opacity: 1;
  transform: translate3d(-50%, -4%, 0) scale(1.02);
}

.whack-croc__hole.is-active:not(.is-hit):hover .whack-croc__croc {
  transform: translate3d(-50%, -7%, 0) scale(1.04);
}

.whack-croc__hole.is-hit .whack-croc__croc {
  transform: translate3d(-50%, 1%, 0) rotate(-4deg) scale(1);
}

.whack-croc__hole.is-hit[data-croc-reaction="sad"] .whack-croc__croc {
  transform: translate3d(-50%, 0, 0) rotate(2deg) scale(1.02);
}

.whack-croc__hole.is-hit .whack-croc__croc-visual--normal {
  opacity: 0;
}

.whack-croc__hole.is-hit .whack-croc__croc-visual--hit {
  opacity: 1;
}

.whack-croc__hole.is-hit[data-croc-reaction="sad"] .whack-croc__score-popup {
  color: #ffd7df;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.18),
    0 0 22px rgba(255, 106, 137, 0.24);
}

.whack-croc__impact {
  position: absolute;
  left: 50%;
  top: 12%;
  z-index: 2;
  width: 48%;
  aspect-ratio: 1;
  transform: translate(-50%, 0) scale(0.4);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.whack-croc__impact::before,
.whack-croc__impact::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 240, 160, 0.98) 0 12%, transparent 13%),
    radial-gradient(circle at 50% 6%, rgba(255, 240, 160, 0.88) 0 12%, transparent 13%),
    radial-gradient(circle at 84% 26%, rgba(255, 240, 160, 0.88) 0 10%, transparent 11%),
    radial-gradient(circle at 94% 60%, rgba(255, 240, 160, 0.88) 0 10%, transparent 11%),
    radial-gradient(circle at 68% 92%, rgba(255, 240, 160, 0.88) 0 10%, transparent 11%),
    radial-gradient(circle at 32% 92%, rgba(255, 240, 160, 0.88) 0 10%, transparent 11%),
    radial-gradient(circle at 6% 60%, rgba(255, 240, 160, 0.88) 0 10%, transparent 11%),
    radial-gradient(circle at 16% 26%, rgba(255, 240, 160, 0.88) 0 10%, transparent 11%);
}

.whack-croc__impact::after {
  filter: blur(8px);
  opacity: 0.58;
}

.whack-croc__hole.is-pop .whack-croc__impact {
  opacity: 1;
  transform: translate(-50%, -12%) scale(1);
  transition:
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 220ms ease;
}

.whack-croc__score-popup {
  position: absolute;
  left: 50%;
  top: -8%;
  z-index: 3;
  transform: translate3d(-50%, 16px, 0) scale(0.72);
  opacity: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(12, 16, 14, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff6b8;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  pointer-events: none;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.18),
    0 0 22px rgba(255, 213, 111, 0.24);
  will-change: transform, opacity;
}

.whack-croc__hole.is-pop .whack-croc__score-popup {
  opacity: 1;
  transform: translate3d(-50%, -8px, 0) scale(1);
  transition:
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 220ms ease;
}

.whack-croc__hole[data-croc-surface="angry"] .whack-croc__croc-visual--normal {
  background-size: 112% auto;
  background-position: center 4%;
  -webkit-clip-path: inset(0 0 18% 0);
  clip-path: inset(0 0 18% 0);
}

.whack-croc__hole[data-croc-surface="angry"] .whack-croc__croc-state--angry .whack-croc__croc-image {
  object-position: center 4%;
  -webkit-clip-path: inset(0 0 18% 0);
  clip-path: inset(0 0 18% 0);
}

.whack-croc__hole[data-croc-reaction="dizzy"] .whack-croc__croc-visual--hit {
  background-size: 104% auto;
  background-position: center top;
  -webkit-clip-path: inset(0 0 22% 0);
  clip-path: inset(0 0 22% 0);
}

.whack-croc__hole[data-croc-reaction="dizzy"] .whack-croc__croc-state--dizzy .whack-croc__croc-image {
  -webkit-clip-path: inset(0 0 22% 0);
  clip-path: inset(0 0 22% 0);
}

.whack-croc__hole[data-croc-reaction="sad"] .whack-croc__croc-visual--hit {
  background-size: 106% auto;
  background-position: center top;
  -webkit-clip-path: inset(0 0 24% 0);
  clip-path: inset(0 0 24% 0);
}

.whack-croc__hole[data-croc-reaction="sad"] .whack-croc__croc-state--sad .whack-croc__croc-image {
  -webkit-clip-path: inset(0 0 24% 0);
  clip-path: inset(0 0 24% 0);
}

.whack-croc__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 26px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 220ms ease,
    visibility 220ms ease;
  pointer-events: none;
}

.whack-croc__overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.whack-croc__overlay-card {
  width: min(100%, 360px);
  padding: 20px 22px;
  text-align: center;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(11, 16, 22, 0.82), rgba(8, 11, 18, 0.9)),
    rgba(6, 10, 16, 0.9);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(124, 248, 255, 0.06);
  backdrop-filter: blur(14px);
}

.whack-croc__overlay-card .whack-croc__control--play {
  width: min(100%, 292px);
  margin-top: 16px;
}

.whack-croc__overlay-kicker {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #f8f0b8;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.whack-croc__overlay-card h3 {
  margin: 12px 0 8px;
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  line-height: 1.05;
}

.whack-croc__overlay-card p,
.whack-croc__instructions {
  margin: 0;
  color: var(--color-text-soft);
}

.whack-croc__instructions {
  text-align: center;
  font-size: 0.95rem;
  max-width: 58ch;
}

.whack-croc__controls {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  width: min(100%, 620px);
  padding: 2px 0 4px;
}

.whack-croc__control {
  width: min(100%, 322px);
  margin-inline: auto;
  padding: 0;
  border: 0;
  background: none;
  appearance: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 180ms ease,
    filter 180ms ease,
    opacity 180ms ease;
}

.whack-croc__control-surface {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 88px;
  padding: 10px 24px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #8c4910 0%, #603009 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 213, 132, 0.3),
    0 16px 26px rgba(49, 22, 4, 0.28);
  overflow: hidden;
}

.whack-croc__control--play .whack-croc__control-surface {
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}

.whack-croc__control--play .whack-croc__control-surface::before,
.whack-croc__control--play .whack-croc__control-surface::after {
  display: none;
}

.whack-croc__control-surface::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  background: linear-gradient(180deg, #c8f71f 0%, #98d80d 52%, #5fa900 100%);
  box-shadow:
    inset 0 4px 0 rgba(245, 255, 184, 0.52),
    inset 0 -5px 0 rgba(46, 103, 5, 0.34);
}

.whack-croc__control-surface::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 10px;
  height: 30%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
  opacity: 0.7;
}

.whack-croc__button-asset {
  position: relative;
  z-index: 1;
}

.whack-croc__button-asset {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 12px 18px rgba(38, 19, 2, 0.24));
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.whack-croc__button-asset--icon {
  height: 100%;
}

.whack-croc__button-asset--sound-off {
  display: none;
}

.whack-croc__icon-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.whack-croc__icon-control {
  width: 82px;
  height: 82px;
  padding: 0;
  border: 0;
  background: none;
  appearance: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 180ms ease,
    filter 180ms ease,
    opacity 180ms ease;
}

.whack-croc__icon-surface {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #8c4910 0%, #603009 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 213, 132, 0.3),
    0 16px 24px rgba(49, 22, 4, 0.26);
  overflow: hidden;
}

.whack-croc__icon-control--pause .whack-croc__icon-surface,
.whack-croc__icon-control--restart .whack-croc__icon-surface,
.whack-croc__icon-control--sound .whack-croc__icon-surface {
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}

.whack-croc__icon-control--pause .whack-croc__icon-surface::before,
.whack-croc__icon-control--pause .whack-croc__icon-surface::after,
.whack-croc__icon-control--restart .whack-croc__icon-surface::before,
.whack-croc__icon-control--restart .whack-croc__icon-surface::after,
.whack-croc__icon-control--sound .whack-croc__icon-surface::before,
.whack-croc__icon-control--sound .whack-croc__icon-surface::after {
  display: none;
}

.whack-croc__icon-surface::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: linear-gradient(180deg, #c8f71f 0%, #98d80d 52%, #5fa900 100%);
  box-shadow:
    inset 0 4px 0 rgba(245, 255, 184, 0.52),
    inset 0 -5px 0 rgba(46, 103, 5, 0.34);
}

.whack-croc__icon-surface::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 10px;
  height: 28%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0));
  opacity: 0.72;
}

.whack-croc__icon-control--sound.is-muted .whack-croc__button-asset--sound-on {
  display: none;
}

.whack-croc__icon-control--sound.is-muted .whack-croc__button-asset--sound-off {
  display: block;
}

.whack-croc__control:hover,
.whack-croc__control:focus-visible,
.whack-croc__icon-control:hover,
.whack-croc__icon-control:focus-visible {
  transform: translate3d(0, -3px, 0);
  filter: brightness(1.04);
}

.whack-croc__control:focus-visible,
.whack-croc__icon-control:focus-visible {
  outline: none;
}

.whack-croc__control:focus-visible .whack-croc__control-surface,
.whack-croc__icon-control:focus-visible .whack-croc__icon-surface {
  box-shadow:
    0 0 0 4px rgba(255, 242, 170, 0.34),
    0 0 0 10px rgba(127, 244, 103, 0.14),
    inset 0 2px 0 rgba(255, 213, 132, 0.3),
    0 16px 24px rgba(49, 22, 4, 0.26);
}

.whack-croc__control--play:focus-visible .whack-croc__control-surface,
.whack-croc__icon-control--pause:focus-visible .whack-croc__icon-surface,
.whack-croc__icon-control--restart:focus-visible .whack-croc__icon-surface,
.whack-croc__icon-control--sound:focus-visible .whack-croc__icon-surface {
  box-shadow: none;
}

.whack-croc__control--play:focus-visible .whack-croc__button-asset,
.whack-croc__icon-control--pause:focus-visible .whack-croc__button-asset,
.whack-croc__icon-control--restart:focus-visible .whack-croc__button-asset,
.whack-croc__icon-control--sound:focus-visible .whack-croc__button-asset {
  filter:
    drop-shadow(0 0 0 rgba(255, 242, 170, 0.4))
    drop-shadow(0 0 12px rgba(255, 242, 170, 0.34))
    drop-shadow(0 12px 18px rgba(38, 19, 2, 0.24));
}

.whack-croc__control:disabled,
.whack-croc__icon-control:disabled {
  opacity: 0.62;
  cursor: default;
  filter: saturate(0.86);
  transform: none;
}

.whack-croc__control:disabled .whack-croc__control-surface::before,
.whack-croc__icon-control:disabled .whack-croc__icon-surface::before {
  filter: grayscale(0.12) brightness(0.94);
}

body.theme-light .whack-croc__shell {
  background:
    radial-gradient(circle at top, rgba(152, 226, 133, 0.24), transparent 30%),
    radial-gradient(circle at 18% 16%, rgba(255, 213, 111, 0.18), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(236, 244, 240, 0.9));
}

body.theme-light .whack-croc__metric {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 249, 247, 0.82)),
    rgba(255, 255, 255, 0.88);
  border-color: rgba(82, 103, 149, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 30px rgba(148, 163, 184, 0.16);
}

body.theme-light .whack-croc__instructions {
  color: #4e627d;
}

body.theme-light .whack-croc__metric-label {
  color: #4e627d;
}

body.theme-light .whack-croc__metric-value {
  color: #0d1b34;
}

body.theme-light .whack-croc__state-pill {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(82, 103, 149, 0.14);
}

body.theme-light .whack-croc__stage-shell {
  background:
    radial-gradient(circle at top, rgba(158, 232, 151, 0.22), transparent 30%),
    linear-gradient(180deg, rgba(228, 245, 230, 0.92), rgba(214, 233, 219, 0.96));
  border-color: rgba(91, 150, 92, 0.14);
}

body.theme-light .whack-croc__overlay-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 248, 252, 0.92)),
    rgba(255, 255, 255, 0.9);
  border-color: rgba(82, 103, 149, 0.12);
  box-shadow:
    0 24px 48px rgba(148, 163, 184, 0.2),
    0 0 0 1px rgba(82, 103, 149, 0.06);
}

body.theme-light .whack-croc__overlay-kicker {
  background: rgba(75, 125, 255, 0.08);
  color: #51647f;
}

body.theme-light .whack-croc__overlay-card p {
  color: #50627f;
}

@media (max-width: 768px) {
  .whack-croc__board-shell {
    width: min(100%, 430px);
    aspect-ratio: 940 / 1231;
    border-radius: 22px;
  }

  .whack-croc__board-shell::before {
    inset: 20% 10% 8%;
  }

  .whack-croc__hole[data-hole-index="0"] {
    --hole-x: 28.8%;
    --hole-y: 16.1%;
    --hole-size: 20.5%;
  }

  .whack-croc__hole[data-hole-index="1"] {
    --hole-x: 51.3%;
    --hole-y: 16.1%;
    --hole-size: 20.5%;
  }

  .whack-croc__hole[data-hole-index="2"] {
    --hole-x: 73.6%;
    --hole-y: 16.2%;
    --hole-size: 20.5%;
  }

  .whack-croc__hole[data-hole-index="3"] {
    --hole-x: 27.8%;
    --hole-y: 34.6%;
    --hole-size: 21.8%;
  }

  .whack-croc__hole[data-hole-index="4"] {
    --hole-x: 51.4%;
    --hole-y: 34.6%;
    --hole-size: 21.8%;
  }

  .whack-croc__hole[data-hole-index="5"] {
    --hole-x: 74.7%;
    --hole-y: 34.7%;
    --hole-size: 21.8%;
  }

  .whack-croc__hole[data-hole-index="6"] {
    --hole-x: 26.2%;
    --hole-y: 54%;
    --hole-size: 22.8%;
  }

  .whack-croc__hole[data-hole-index="7"] {
    --hole-x: 50.9%;
    --hole-y: 54%;
    --hole-size: 22.8%;
  }

  .whack-croc__hole[data-hole-index="8"] {
    --hole-x: 75.6%;
    --hole-y: 54.2%;
    --hole-size: 22.8%;
  }
}

@media (max-width: 720px) {
  .whack-croc__status-row {
    grid-template-columns: 1fr;
  }

  .whack-croc__controls {
    flex-wrap: wrap;
  }

  .whack-croc__metric {
    width: min(100%, 380px);
    margin-inline: auto;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .whack-croc__shell {
    padding: 20px 16px;
    border-radius: 26px;
  }

  .whack-croc__stage-shell {
    padding: 16px 12px 18px;
  }

  .whack-croc__control {
    width: min(100%, 320px);
  }

  .whack-croc__controls {
    width: 100%;
  }

  .whack-croc__combo-burst {
    top: 4%;
    min-width: clamp(108px, 28%, 148px);
    padding: 5px 14px 7px;
  }

  .whack-croc__combo-spark,
  .whack-croc__combo-ring {
    inset: -4px;
  }

  .whack-croc__combo-text {
    font-size: 0.9rem;
  }

  .whack-croc__control-surface {
    min-height: 80px;
    padding-inline: 18px;
  }

  .whack-croc__icon-control {
    width: 74px;
    height: 74px;
  }

  .whack-croc__instructions {
    font-size: 0.9rem;
  }
}

@media (max-width: 460px) {
  .whack-croc__icon-group {
    gap: 10px;
  }
}

@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  .whack-croc__board-shell::before,
  .whack-croc__impact::after {
    filter: none;
  }

  .whack-croc__board-image {
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.24));
  }

  .whack-croc__croc {
    filter: none;
  }

  .whack-croc__overlay-card {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .whack-croc__combo-spark,
  .whack-croc__combo-ring {
    opacity: 0.72;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whack-croc__metric.is-bump,
  .whack-croc__hole.is-pop .whack-croc__impact,
  .whack-croc__hole.is-pop .whack-croc__score-popup,
  .whack-croc__combo-burst.is-visible,
  .whack-croc__combo-burst.is-visible .whack-croc__combo-spark,
  .whack-croc__combo-burst.is-visible .whack-croc__combo-ring {
    animation: none;
  }

  .whack-croc__hole::before,
  .whack-croc__croc,
  .whack-croc__croc-state,
  .whack-croc__impact,
  .whack-croc__score-popup,
  .whack-croc__hammer,
  .whack-croc__combo-burst,
  .whack-croc__overlay {
    transition: none;
  }

  .whack-croc__hammer.is-striking {
    animation: none;
    opacity: 0.98;
    transform: translate3d(-8%, -40%, 0)
      rotate(var(--whack-croc-hammer-impact-rotation, -42deg)) scale(0.96);
  }

  .whack-croc__combo-burst.is-visible {
    opacity: 1;
    transform: translate3d(-50%, -4px, 0) scale(1);
  }
}

@keyframes whackCrocMetricPulse {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.04);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes whackCrocComboBurst {
  0% {
    opacity: 1;
    transform: translate3d(-50%, 18px, 0) scale(0.68) rotate(-6deg);
  }

  24% {
    opacity: 1;
    transform: translate3d(-50%, -8px, 0) scale(1.16) rotate(2deg);
  }

  48% {
    opacity: 1;
    transform: translate3d(-50%, 0, 0) scale(0.98) rotate(-1deg);
  }

  76% {
    opacity: 1;
    transform: translate3d(-50%, -3px, 0) scale(1.02) rotate(0deg);
  }

  100% {
    opacity: 1;
    transform: translate3d(-50%, -3px, 0) scale(1.02) rotate(0deg);
  }
}

@keyframes whackCrocComboSpark {
  0% {
    opacity: 0;
    transform: scale(0.42);
  }

  34% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.38);
  }
}

@keyframes whackCrocComboRing {
  0% {
    opacity: 0;
    transform: scale(0.62);
  }

  34% {
    opacity: 0.82;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.46);
  }
}

@keyframes whackCrocHammerStrike {
  0% {
    opacity: 0;
    transform: translate3d(-2%, -58%, 0)
      rotate(var(--whack-croc-hammer-start-rotation, 0deg)) scale(1);
  }

  12% {
    opacity: 1;
    transform: translate3d(-2%, -58%, 0)
      rotate(var(--whack-croc-hammer-start-rotation, 0deg)) scale(1);
  }

  46% {
    opacity: 1;
    transform: translate3d(-8%, -40%, 0)
      rotate(var(--whack-croc-hammer-impact-rotation, -42deg)) scale(0.96);
  }

  72% {
    opacity: 1;
    transform: translate3d(-4%, -48%, 0)
      rotate(var(--whack-croc-hammer-bounce-rotation, -14deg)) scale(0.98);
  }

  100% {
    opacity: 0;
    transform: translate3d(-2%, -58%, 0)
      rotate(var(--whack-croc-hammer-recoil-rotation, 0deg)) scale(1);
  }
}
