#page-work {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.22), transparent 25%),
    linear-gradient(180deg, #ff8fbe 0%, #ffb4cf 45%, #ffd5e5 100%);
  padding: 16px;
  box-sizing: border-box;
  overflow: hidden;
}

#page-work * {
  box-sizing: border-box;
}

#page-work .work-container {
  max-width: 980px;
  margin: 0 auto;
}

#page-work .page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

#page-work .back-btn {
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: #ff4f97;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 79, 151, 0.15);
}

#page-work .page-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(255, 79, 151, 0.25);
}

#page-work .work-stage {
  position: relative;
  height: 980px;
  max-height: calc(100vh - 180px);
  min-height: 620px;
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 68%, rgba(255,255,255,0.35), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.18) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

#page-work .work-stage::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -120px;
  height: 280px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05)),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.22) 0 2px,
      transparent 2px 84px
    ),
    repeating-linear-gradient(
      180deg,
      rgba(255,255,255,0.18) 0 2px,
      transparent 2px 84px
    );
  border-radius: 50% 50% 0 0;
  transform: perspective(700px) rotateX(70deg);
  transform-origin: bottom center;
  opacity: 0.45;
}

#page-work .work-bg-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  left: 50%;
  top: 53%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,0.55), rgba(255,255,255,0.06) 62%, transparent 72%);
  pointer-events: none;
}

#page-work .boss-bubble {
  position: absolute;
  left: 50%;
  top: 72px;
  transform: translateX(-170px) rotate(-6deg);
  width: 320px;
  min-height: 170px;
  background: #fff;
  border-radius: 48px;
  padding: 26px 28px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
  z-index: 4;
}

#page-work .boss-bubble::after {
  content: "";
  position: absolute;
  left: 58px;
  bottom: -28px;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 8px solid transparent;
  border-top: 36px solid #fff;
  transform: rotate(20deg);
}

#page-work .boss-bubble p {
  margin: 0;
  font-size: 36px;
  line-height: 1.28;
  font-weight: 900;
  color: #111;
  word-break: break-word;
}

#page-work .flying-keyboard {
  position: absolute;
  right: 120px;
  top: 160px;
  font-size: 110px;
  z-index: 5;
  transform: rotate(18deg);
  filter: drop-shadow(0 10px 12px rgba(0,0,0,0.14));
}

#page-work .flying-keyboard.attack {
  animation: keyboardAttack 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@keyframes keyboardAttack {
  0% {
    transform: translate(0, 0) rotate(18deg) scale(1);
    opacity: 1;
  }
  45% {
    transform: translate(-130px, 170px) rotate(10deg) scale(1.05);
    opacity: 1;
  }
  70% {
    transform: translate(-210px, 390px) rotate(-8deg) scale(1.12);
    opacity: 1;
  }
  100% {
    transform: translate(-150px, 560px) rotate(-18deg) scale(0.9);
    opacity: 0;
  }
}

#page-work .boss-wrap {
  position: absolute;
  left: 50%;
  bottom: 110px;
  transform: translateX(-50%);
  z-index: 3;
}

#page-work .boss-hit-effect {
  position: absolute;
  left: 50%;
  top: 24%;
  width: 170px;
  height: 170px;
  transform: translate(-50%, -50%) scale(0.2);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.9), rgba(255,110,180,0.35), transparent 70%);
  opacity: 0;
  pointer-events: none;
}

#page-work .boss-hit-effect.show {
  animation: hitFlash 0.45s ease-out;
}

@keyframes hitFlash {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }
  35% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.3);
  }
}

#page-work .boss-character {
  width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: center bottom;
}

#page-work .boss-character.hit {
  animation: bossHit 0.5s ease;
}

@keyframes bossHit {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  20% { transform: translateY(-8px) rotate(-6deg) scale(1.02); }
  40% { transform: translateY(0) rotate(5deg) scale(1); }
  60% { transform: translateY(-4px) rotate(-4deg); }
  100% { transform: translateY(0) rotate(0deg) scale(1); }
}

#page-work .boss-head {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffd9c8 0%, #ffc3ad 100%);
  box-shadow: inset 0 -8px 16px rgba(255, 130, 120, 0.12);
  z-index: 2;
}

#page-work .boss-hair {
  position: absolute;
  top: 44px;
  width: 32px;
  height: 68px;
  background: linear-gradient(180deg, #59455a, #31243c);
  border-radius: 20px;
}

#page-work .boss-hair.left {
  left: -8px;
  transform: rotate(10deg);
}

#page-work .boss-hair.right {
  right: -8px;
  transform: rotate(-10deg);
}

#page-work .boss-face {
  position: absolute;
  inset: 0;
}

#page-work .boss-brow {
  position: absolute;
  top: 42px;
  width: 38px;
  height: 9px;
  background: #2f2433;
  border-radius: 8px;
}

#page-work .brow-left {
  left: 28px;
  transform: rotate(-8deg);
}

#page-work .brow-right {
  right: 28px;
  transform: rotate(8deg);
}

#page-work .boss-eyes {
  position: absolute;
  top: 62px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 26px;
}

#page-work .boss-eyes span {
  width: 22px;
  height: 22px;
  background: #2e201d;
  border-radius: 50%;
  box-shadow: inset 4px 4px 0 #fff;
}

#page-work .boss-nose {
  position: absolute;
  top: 80px;
  left: 50%;
  width: 26px;
  height: 22px;
  background: linear-gradient(180deg, #ff9f86, #ff8b79);
  border-radius: 50%;
  transform: translateX(-50%);
}

#page-work .boss-mouth {
  position: absolute;
  bottom: 30px;
  left: 50%;
  width: 36px;
  height: 10px;
  border-bottom: 4px solid #5c3740;
  border-radius: 0 0 20px 20px;
  transform: translateX(-50%);
}

#page-work .boss-body {
  position: relative;
  width: 185px;
  height: 195px;
  margin-top: -10px;
  background: linear-gradient(180deg, #3b3444 0%, #23202c 100%);
  border-radius: 34px 34px 24px 24px;
  box-shadow: inset 0 -12px 18px rgba(0,0,0,0.22);
}

#page-work .boss-collar {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 82px;
  height: 42px;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 68% 100%, 32% 100%);
}

#page-work .boss-tie {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 82px;
  background: linear-gradient(180deg, #ff5d63, #d52f43);
  clip-path: polygon(50% 0, 100% 18%, 74% 100%, 26% 100%, 0 18%);
}

#page-work .boss-arm {
  position: absolute;
  top: 78px;
  width: 34px;
  height: 98px;
  background: linear-gradient(180deg, #312a39, #201a28);
  border-radius: 20px;
}

#page-work .boss-arm.left {
  left: -20px;
  transform: rotate(8deg);
}

#page-work .boss-arm.right {
  right: -20px;
  transform: rotate(-8deg);
}

#page-work .boss-arm::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffc9b5, #ffab91);
}

#page-work .boss-leg {
  position: absolute;
  bottom: -74px;
  width: 36px;
  height: 96px;
  background: linear-gradient(180deg, #2d2734, #19151f);
  border-radius: 20px;
}

#page-work .boss-leg.left {
  left: 44px;
}

#page-work .boss-leg.right {
  right: 44px;
}

#page-work .boss-leg::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, #2c2430, #0f0c12);
}

#page-work .work-bottom-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

#page-work .work-btn {
  height: 58px;
  border: none;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#page-work .work-btn:hover {
  transform: translateY(-2px);
}

#page-work .work-btn.secondary {
  color: #fff;
  background: linear-gradient(180deg, #ff8fc1, #ff5fa4);
  box-shadow: 0 14px 24px rgba(255, 95, 164, 0.26);
}

#page-work .work-btn.primary {
  color: #fff;
  background: linear-gradient(180deg, #ff77b0, #ff3d83);
  box-shadow: 0 14px 24px rgba(255, 61, 131, 0.28);
}

@media (max-width: 768px) {
  #page-work {
    padding: 12px;
  }

  #page-work .work-stage {
    min-height: 560px;
    height: calc(100vh - 190px);
  }

  #page-work .boss-bubble {
    left: 50%;
    top: 66px;
    width: 250px;
    min-height: 138px;
    padding: 20px 22px;
    transform: translateX(-120px) rotate(-6deg);
  }

  #page-work .boss-bubble p {
    font-size: 24px;
  }

  #page-work .flying-keyboard {
    right: 36px;
    top: 144px;
    font-size: 84px;
  }

  #page-work .boss-wrap {
    bottom: 80px;
  }

  #page-work .boss-character {
    width: 180px;
  }

  #page-work .work-bottom-bar {
    gap: 12px;
  }

  #page-work .work-btn {
    height: 52px;
    font-size: 16px;
  }
}

  #page-work .boss-bubble p {
    font-size: 24px;
  }

  #page-work .flying-keyboard {
    right: 36px;
    top: 144px;
    font-size: 84px;
  }

 #page-work .boss-wrap {
  position: absolute;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  z-index: 3;
}

#page-work .boss-hit-effect {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 170px;
  height: 170px;
  transform: translate(-50%, -50%) scale(0.2);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.9), rgba(255,110,180,0.35), transparent 70%);
  opacity: 0;
  pointer-events: none;
}

#page-work .boss-hit-effect.show {
  animation: hitFlash 0.45s ease-out;
}

@keyframes hitFlash {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }
  35% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.3);
  }
}

#page-work .boss-character {
  width: 240px;
  transform-origin: center bottom;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

#page-work .boss-character.hit {
  animation: bossHit 0.5s ease;
}

@keyframes bossHit {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  20% {
    transform: translateY(-8px) rotate(-6deg) scale(1.02);
  }
  40% {
    transform: translateY(0) rotate(5deg) scale(1);
  }
  60% {
    transform: translateY(-4px) rotate(-4deg);
  }
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

#page-work .boss-image {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.18));
}

  #page-work .work-bottom-bar {
    gap: 12px;
  }

  #page-work .work-btn {
    height: 52px;
    font-size: 16px;
  }
