/* Q版孔乙己彩蛋 */
.kong-overlay.active {
  display: block;
  background: radial-gradient(circle at 55% 55%, rgba(255,245,173,.24), rgba(17,44,35,.1));
}

.kong-character {
  left: -130px;
  bottom: 15%;
  width: 112px;
  height: 155px;
  scale: .8;
  transform-origin: center bottom;
  filter: drop-shadow(0 11px 8px rgba(28, 55, 44, .22));
  animation: cartoonKongRun 2.5s cubic-bezier(.35,.05,.27,1.2) forwards;
}

.kong-character .hat {
  z-index: 8;
  left: 25px;
  top: 1px;
  width: 64px;
  height: 23px;
  border: 4px solid #263c46;
  border-radius: 48% 48% 8px 8px;
  background: linear-gradient(#47616b,#2e4650);
  transform: rotate(-4deg);
}

.kong-character .hat:before {
  content: '';
  position: absolute;
  left: -15px;
  bottom: -7px;
  width: 88px;
  height: 11px;
  border-radius: 50%;
  background: #273e47;
}

.kong-character .hat:after {
  content: '乙';
  position: absolute;
  left: 21px;
  top: 1px;
  color: #d9e9e5;
  font: 600 11px var(--serif);
}

.kong-character .head {
  z-index: 6;
  left: 29px;
  top: 19px;
  width: 58px;
  height: 61px;
  border: 3px solid #704e3d;
  border-radius: 48% 48% 45% 46%;
  background: #ffd5a5;
  box-shadow: inset 0 -8px 0 rgba(219,160,106,.18);
}

.kong-character .head:before {
  content: '•   •';
  position: absolute;
  left: 13px;
  top: 17px;
  color: #49352f;
  font: 700 15px var(--sans);
  letter-spacing: 7px;
  white-space: nowrap;
}

.kong-character .head:after {
  content: '﹏';
  position: absolute;
  left: 20px;
  top: 31px;
  color: #7e493c;
  font: 700 18px var(--sans);
  transform: rotate(180deg);
}

.kong-character .ear {
  z-index: 5;
  left: 23px;
  top: 42px;
  width: 69px;
  height: 18px;
  border-radius: 12px;
  background: #f2b982;
}

.kong-character .body {
  z-index: 4;
  left: 21px;
  top: 75px;
  width: 73px;
  height: 68px;
  border: 3px solid #365b61;
  border-radius: 22px 22px 31px 31px;
  background: linear-gradient(90deg,#71a3a4,#8db9ad 52%,#639393);
  box-shadow: inset -10px 0 0 rgba(38,89,84,.13);
}

.kong-character .body:after {
  content: '';
  position: absolute;
  left: 34px;
  top: 4px;
  width: 2px;
  height: 56px;
  background: rgba(39,83,80,.3);
}

.kong-character .arm {
  z-index: 3;
  top: 78px;
  width: 22px;
  height: 58px;
  border: 3px solid #365b61;
  border-radius: 15px;
  background: #77a9a6;
}

.kong-character .arm-left { left: 9px; transform: rotate(20deg); animation: cartoonArmLeft .32s infinite alternate; }
.kong-character .arm-right { right: 5px; transform: rotate(-38deg); animation: cartoonArmRight .32s infinite alternate; }
.kong-character .leg { z-index: 2; top: 133px; width: 19px; height: 25px; border-radius: 8px; background: #304b50; }
.kong-character .leg-left { left: 31px; animation: cartoonLeg .26s infinite alternate; }
.kong-character .leg-right { right: 28px; animation: cartoonLeg .26s -.13s infinite alternate-reverse; }

.kong-character .book-prop {
  z-index: 9;
  right: 4px;
  top: 88px;
  width: 33px;
  height: 41px;
  display: grid;
  place-items: center;
  border: 3px solid #7a3f32;
  border-radius: 4px 8px 8px 4px;
  background: #d96651;
  color: #fff8d2;
  font: 700 15px var(--serif);
  transform: rotate(13deg);
  box-shadow: inset 5px 0 0 rgba(255,255,255,.18);
}

.kong-character > span {
  z-index: 10;
  left: 49px;
  top: 92px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dcebd4;
  color: #35615a;
  font-size: 10px;
}

.speech-bubble {
  top: 21%;
  border: 4px solid #31564a;
  border-radius: 25px 25px 25px 5px;
  background: #fff8bf;
  color: #315248;
  font-size: 18px;
  transform: translateX(-50%) rotate(-3deg) scale(.7);
  animation: cartoonBubble 2.5s .38s ease forwards;
}

.speech-bubble:after {
  content: '';
  position: absolute;
  left: 19px;
  bottom: -16px;
  border: 9px solid transparent;
  border-top-color: #31564a;
  transform: rotate(22deg);
}

.comic-stars {
  position: absolute;
  left: 48%;
  top: 39%;
  opacity: 0;
  color: #ffd94f;
  font-size: 27px;
  animation: starBurst 2.5s .65s ease forwards;
}

.comic-stars i { position: absolute; font-style: normal; }
.comic-stars i:nth-child(2) { left: 45px; top: -25px; color: #74ddca; }
.comic-stars i:nth-child(3) { left: 77px; top: 17px; color: #f28e73; font-size: 18px; }

@keyframes cartoonKongRun {
  0% { left: -130px; transform: translateY(0) rotate(-5deg) scale(.82); }
  36% { left: 40%; transform: translateY(-12px) rotate(4deg) scale(1.05); }
  51% { left: 46%; transform: translateY(0) rotate(-4deg) scale(1.08); }
  65% { left: 52%; transform: translateY(-8px) rotate(7deg) scale(1.04); }
  100% { left: 112%; transform: translateY(5px) rotate(6deg) scale(.88); }
}

@keyframes cartoonArmLeft { to { transform: rotate(40deg); } }
@keyframes cartoonArmRight { to { transform: rotate(-64deg); } }
@keyframes cartoonLeg { to { transform: rotate(24deg) translateY(-3px); } }
@keyframes cartoonBubble { 18%,72% { opacity:1; transform:translateX(-50%) rotate(-3deg) scale(1); } 82% { transform:translateX(-50%) rotate(3deg) scale(1.06); } 100% { opacity:0; transform:translateX(-50%) scale(.85); } }
@keyframes starBurst { 20%,72% { opacity:1; transform:scale(1.15) rotate(8deg); } 100% { opacity:0; transform:scale(1.8) rotate(28deg); } }

@media (max-width: 600px) {
  .kong-character { scale: .72; transform-origin: center bottom; }
  .speech-bubble { top: 17%; font-size: 15px; white-space: nowrap; }
}
