* {
  box-sizing: border-box;
}

:root {
  --card: rgba(255, 255, 255, 0.08);
  --text: #f7f1e8;
  --muted: #c7bba9;
  --accent: #ffbf47;
  --fur: #24201c;
  --fur-light: #3a3129;
  --skin: #7d6653;
  --skin-dark: #5f493a;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 191, 71, 0.13), transparent 35rem),
    linear-gradient(135deg, #09110f 0%, #14201c 100%);
  display: grid;
  place-items: center;
  padding: 54px;
}

.app {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: stretch;
}

.hero,
.stage,
.panel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.hero {
  grid-column: 1 / -1;
  padding: 28px;
}

.badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  color: #241a0d;
  background: var(--accent);
  font-weight: 700;
  font-size: 13px;
}

h1 {
  margin: 14px 0 8px;
  font-size: clamp(56px, 7vw, 78px);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

h2 {
  margin: 0 0 20px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.stage {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: end center;
  overflow: hidden;
  padding: 40px 20px 0;
  cursor: pointer;
}

.stage::before {
  content: "";
  position: absolute;
  inset: auto -12% -15% -12%;
  height: 44%;
  background: radial-gradient(ellipse at center, rgba(255, 191, 71, 0.16), rgba(255, 191, 71, 0.02) 65%, transparent);
}

.sound-rings {
  position: absolute;
  inset: 42px 0 auto;
  display: flex;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sound-rings.active {
  opacity: 0.22;
}

.sound-rings span {
  width: 70px;
  height: 70px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  animation: pulse 1.8s infinite ease-out;
}

.sound-rings span:nth-child(2) { animation-delay: 0.25s; }
.sound-rings span:nth-child(3) { animation-delay: 0.5s; }

@keyframes pulse {
  from { transform: scale(0.45); opacity: 0.55; }
  to { transform: scale(1.7); opacity: 0; }
}

.gorilla {
  position: relative;
  width: 340px;
  height: 430px;
  transform-origin: bottom center;
}

.gorilla.talking {
  animation: bob 0.45s infinite alternate ease-in-out;
}

@keyframes bob {
  from { transform: translateY(0) rotate(-0.3deg); }
  to { transform: translateY(-7px) rotate(0.3deg); }
}

.ear {
  position: absolute;
  top: 92px;
  width: 86px;
  height: 104px;
  border-radius: 50%;
  background: var(--fur);
  border: 12px solid #171513;
  z-index: 0;
}

.ear::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: var(--skin-dark);
}

.ear-left { left: 4px; }
.ear-right { right: 4px; }

.head {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  width: 285px;
  height: 295px;
  border-radius: 48% 48% 42% 42%;
  background:
    radial-gradient(circle at 50% 33%, var(--fur-light), var(--fur) 62%);
  box-shadow: inset 0 -22px 0 rgba(0, 0, 0, 0.18);
}

.head::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 26px;
  width: 190px;
  height: 128px;
  transform: translateX(-50%);
  border-radius: 50% 50% 42% 42%;
  background: #171513;
}

.brow {
  position: absolute;
  top: 100px;
  width: 82px;
  height: 28px;
  border-radius: 999px;
  background: #151312;
  z-index: 4;
}

.brow-left {
  left: 50px;
  transform: rotate(8deg);
}

.brow-right {
  right: 50px;
  transform: rotate(-8deg);
}

.eye {
  position: absolute;
  top: 126px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f6eadc;
  z-index: 5;
  display: grid;
  place-items: center;
}

.eye i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #080706;
  display: block;
}

.eye-left { left: 74px; }
.eye-right { right: 74px; }

.muzzle {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 210px;
  height: 143px;
  transform: translateX(-50%);
  background: var(--skin);
  border-radius: 48% 48% 44% 44%;
  box-shadow: inset 0 -10px 0 rgba(0,0,0,0.12);
  z-index: 3;
}

.nose {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 78px;
  height: 48px;
  transform: translateX(-50%);
  background: #161210;
  border-radius: 40% 40% 55% 55%;
}

.nose::before,
.nose::after {
  content: "";
  position: absolute;
  top: 20px;
  width: 14px;
  height: 9px;
  border-radius: 50%;
  background: #3a3028;
}

.nose::before { left: 17px; }
.nose::after { right: 17px; }

.mouth {
  position: absolute;
  left: 50%;
  top: 78px;
  width: 88px;
  height: 16px;
  transform: translateX(-50%);
  transform-origin: top center;
  background: #1c0e0d;
  border-radius: 0 0 50px 50px;
  overflow: hidden;
  transition: height 0.06s linear, width 0.06s linear;
}

.mouth.open {
  height: var(--mouth-open, 56px);
  width: var(--mouth-width, 100px);
}

.teeth {
  width: 100%;
  height: 13px;
  background: #fff4df;
  border-radius: 0 0 18px 18px;
}

.tongue {
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 54px;
  height: 28px;
  transform: translateX(-50%);
  background: #d55a55;
  border-radius: 50% 50% 0 0;
}

.body {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 330px;
  height: 195px;
  transform: translateX(-50%);
  background: var(--fur);
  border-radius: 48% 48% 0 0;
  z-index: 1;
}

.chest {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 178px;
  height: 135px;
  transform: translateX(-50%);
  background: #302820;
  border-radius: 50% 50% 0 0;
  opacity: 0.95;
}

.panel {
  min-height: 520px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

button {
  border: 0;
  border-radius: 16px;
  padding: 16px 18px;
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
  color: #22180b;
  background: var(--accent);
  box-shadow: 0 12px 24px rgba(255, 191, 71, 0.18);
}

button:nth-of-type(2) {
  margin-top: 1px;
  color: var(--text);
  background: rgba(255,255,255,0.12);
  box-shadow: none;
}

button:hover {
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  body {
    padding: 20px;
  }

  .app {
    grid-template-columns: 1fr;
  }

  .stage,
  .panel {
    min-height: 460px;
  }

  .gorilla {
    transform: scale(0.86);
  }

  .gorilla.talking {
    animation: bobMobile 0.45s infinite alternate ease-in-out;
  }

  @keyframes bobMobile {
    from { transform: scale(0.86) translateY(0) rotate(-0.3deg); }
    to { transform: scale(0.86) translateY(-7px) rotate(0.3deg); }
  }
}
