html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.tk {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: min(100%, 320px);
}

.tk__trunk {
  position: relative;
  box-sizing: border-box;
  width: 236px;
  height: 164px;
  border-radius: 16px;
  background: #9aab89;
  box-shadow: inset 0 0 0 3px #7d8f6e;
}

.tk__lid {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  height: 88px;
  border-radius: 8px;
  background: #9aab89;
  overflow: hidden;
}

.tk__paper {
  position: absolute;
  inset: 8px;
  border-radius: 4px;
  background: #f3ead9;
}

.tk__wire {
  position: absolute;
  left: 2px;
  right: 2px;
  top: 18px;
  height: 2px;
  border-radius: 999px;
  background: rgba(122, 102, 70, 0.8);
  transform: rotate(1.2deg);
  transform-origin: left center;
}

.tk__bulb {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffd23f;
  box-shadow: 0 0 6px rgba(255, 210, 63, 0.9);
  animation-name: tkTwinkle;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

.tk__bulb--a {
  left: 8%;
  top: 16px;
  animation-delay: 0ms;
}

.tk__bulb--b {
  left: 21%;
  top: 20px;
  animation-delay: 250ms;
}

.tk__bulb--c {
  left: 34%;
  top: 22px;
  animation-delay: 500ms;
}

.tk__bulb--d {
  left: 47%;
  top: 21px;
  animation-delay: 750ms;
}

.tk__bulb--e {
  left: 60%;
  top: 18px;
  animation-delay: 1000ms;
}

.tk__bulb--f {
  left: 86%;
  top: 15px;
  animation-delay: 1250ms;
}

.tk__mirror {
  position: absolute;
  left: 50%;
  top: 30px;
  width: 38px;
  height: 38px;
  margin-left: -19px;
  border-radius: 50%;
  border: 4px solid #c89b6a;
  box-sizing: border-box;
  background: #a87e50;
}

.tk__glass {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(200deg, #dceef2 0%, #b9d7de 100%);
}

.tk__mshine {
  position: absolute;
  left: 6px;
  top: 5px;
  width: 5px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  transform: rotate(28deg);
}

.tk__frame {
  position: absolute;
  border: 2px solid #c89b6a;
  box-sizing: border-box;
  border-radius: 4px;
  background: #fdf6e8;
}

.tk__frame--a {
  left: 12px;
  top: 34px;
  width: 14px;
  height: 17px;
}

.tk__frame--b {
  left: 12px;
  top: 56px;
  width: 17px;
  height: 13px;
}

.tk__frame--c {
  left: 33px;
  top: 58px;
  width: 13px;
  height: 16px;
}

.tk__frame--d {
  right: 12px;
  top: 32px;
  width: 13px;
  height: 16px;
}

.tk__frame--e {
  right: 31px;
  top: 58px;
  width: 16px;
  height: 13px;
}

.tk__frame--f {
  right: 12px;
  top: 54px;
  width: 14px;
  height: 14px;
}

.tk__shelf {
  position: absolute;
  height: 4px;
  border-radius: 4px;
  background: #c89b6a;
}

.tk__shelf--l {
  left: 8px;
  top: 76px;
  width: 34px;
}

.tk__shelf--r {
  right: 8px;
  top: 72px;
  width: 28px;
}

.tk__book {
  position: absolute;
  bottom: 4px;
  width: 7px;
  height: 12px;
  border-radius: 4px 4px 0 0;
  background: #2f6df6;
}

.tk__shelf--l .tk__book {
  left: 4px;
}

.tk__book--lean {
  left: 13px;
  background: #ff9ebb;
  transform: rotate(9deg);
  transform-origin: bottom left;
}

.tk__shelf--r .tk__book {
  left: 8px;
  background: #4cd4a6;
}

.tk__pendant {
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  height: 18px;
  margin-left: -1.5px;
  border-radius: 999px;
  background: #c89b6a;
}

.tk__base {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 56px;
  border-radius: 8px;
  background: #9aab89;
  overflow: hidden;
}

.tk__wood {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, #d9b98c 0 22px, #cba671 22px 24px);
}

.tk__sofa {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 74px;
  height: 22px;
  margin-left: -37px;
  border-radius: 8px 8px 4px 4px;
  background: #efe3cd;
  box-shadow: inset 0 -4px 0 rgba(122, 102, 70, 0.25);
}

.tk__cushion {
  position: absolute;
  bottom: 6px;
  width: 22px;
  height: 12px;
  border-radius: 4px;
  background: #e2d2b6;
}

.tk__cushion--a {
  left: 8px;
}

.tk__cushion--b {
  right: 8px;
  background: #ff9ebb;
}

.tk__pot {
  position: absolute;
  left: 22px;
  bottom: 4px;
  width: 18px;
  height: 14px;
  border-radius: 0 0 4px 4px;
  background: #c93000;
}

.tk__leaf {
  position: absolute;
  bottom: 10px;
  width: 8px;
  height: 16px;
  border-radius: 50% 50% 50% 50%/70% 70% 30% 30%;
  background: #4cd4a6;
  transform-origin: bottom center;
}

.tk__leaf--l {
  left: 3px;
  transform: rotate(-16deg);
}

.tk__leaf--r {
  left: 9px;
  transform: rotate(16deg);
}

.tk__ladder {
  position: absolute;
  right: 24px;
  bottom: 4px;
  width: 18px;
  height: 30px;
  border-left: 3px solid #c89b6a;
  border-right: 3px solid #c89b6a;
  box-sizing: border-box;
  background: repeating-linear-gradient(0deg, transparent 0 6px, #c89b6a 6px 9px);
  opacity: 0.85;
}

.tk__lamp {
  position: absolute;
  right: 54px;
  bottom: 4px;
  width: 24px;
  height: 34px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.tk__lstand {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 3px;
  height: 12px;
  margin-left: -1.5px;
  border-radius: 999px;
  background: #a87e50;
}

.tk__lshade {
  position: absolute;
  left: 50%;
  top: 0;
  width: 20px;
  height: 14px;
  margin-left: -10px;
  clip-path: polygon(26% 0, 74% 0, 100% 100%, 0 100%);
  background: #fdf6e8;
  transition: box-shadow 300ms ease-out;
}

.tk__lglow {
  position: absolute;
  left: 50%;
  top: 2px;
  width: 38px;
  height: 30px;
  margin-left: -19px;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, rgba(255, 210, 63, 0.8) 0 34%, rgba(255, 210, 63, 0) 74%);
  transition: opacity 300ms ease-out;
}

.tk.is-lamp .tk__lshade {
  box-shadow: 0 6px 18px rgba(255, 210, 63, 0.55);
}

.tk.is-lamp .tk__lglow {
  opacity: 1;
}

.tk__warm {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at 72% 78%, rgba(255, 210, 63, 0.3) 0%, rgba(255, 210, 63, 0) 58%);
  transition: opacity 300ms ease-out;
}

.tk.is-lamp .tk__warm {
  opacity: 1;
}

.tk__hinge {
  position: absolute;
  left: 26px;
  width: 14px;
  height: 5px;
  border-radius: 4px;
  background: #a87e50;
}

.tk__hinge--l {
  top: 96px;
}

.tk__hinge--r {
  right: 26px;
  left: auto;
  top: 96px;
}

.tk__handle {
  position: absolute;
  left: 50%;
  top: 93px;
  width: 34px;
  height: 10px;
  margin-left: -17px;
  border: 3px solid #efe3cd;
  border-bottom: 0;
  box-sizing: border-box;
  border-radius: 999px 999px 0 0;
}

.tk__latch {
  position: absolute;
  top: 95px;
  width: 7px;
  height: 9px;
  border-radius: 4px;
  background: #a87e50;
}

.tk__latch--l {
  left: 48px;
}

.tk__latch--r {
  right: 48px;
}

.tk__hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 247, 230, 0.72);
}

@keyframes tkTwinkle {
  0%, 100% {
    opacity: 0.35;
  }
  18% {
    opacity: 1;
  }
  46% {
    opacity: 0.5;
  }
}
@media (max-width: 340px) {
  .tk__trunk {
    width: 208px;
    height: 146px;
  }
  .tk__lid {
    height: 78px;
  }
  .tk__base {
    height: 50px;
  }
  .tk__sofa {
    width: 64px;
  }
  .tk__lamp {
    right: 48px;
  }
  .tk__hint {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tk__bulb {
    animation-name: none !important;
  }
  .tk__lshade, .tk__lglow, .tk__warm {
    transition: none !important;
  }
}
