.kitchen {
  --kitchen-ink: #143e55;
  --kitchen-edge: #32647a;
  --kitchen-shadow: #0d334c;
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1.65;
  overflow: hidden;
  border-radius: 1.1rem;
  background: #d2e6ec;
}

.kitchen *,
.kitchen *::before,
.kitchen *::after {
  box-sizing: border-box;
}

.kitchen-wall,
.kitchen-counter,
.kitchen-shadow,
.kitchen-shelf,
.kitchen-faucet,
.kitchen-stream,
.kitchen-sink,
.kitchen-rack,
.kitchen-sponge {
  position: absolute;
}

.kitchen-wall {
  inset: 0 0 46%;
  background:
    radial-gradient(ellipse at 18% 0%, #f2f8f6 0%, transparent 76%),
    repeating-linear-gradient(0deg, transparent 0 39px, #8eb8ca66 39px 41px),
    repeating-linear-gradient(90deg, transparent 0 48px, #8eb8ca66 48px 50px),
    #d1e7ed;
}

.kitchen-wall::before {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, #8eb8ca36 39px 41px),
    repeating-linear-gradient(90deg, transparent 0 48px, #8eb8ca36 48px 50px);
  content: "";
}

.kitchen-wall::after {
  position: absolute;
  top: -26%;
  left: -3%;
  width: 36%;
  height: 158%;
  transform: skewX(-29deg);
  background: linear-gradient(90deg, #fff9dd55 0 51%, transparent 51% 57%, #fff9dd2b 57%);
  content: "";
}

.kitchen-counter {
  inset: 51% 0 0;
  background:
    radial-gradient(ellipse at 27% 0%, #fff9e8 0%, transparent 66%),
    linear-gradient(#f9e8c8 0% 84%, #bf9269 84% 87%, #e1bd92 87% 100%);
  border-top: 3px solid #baa58b;
}

.kitchen-counter::after {
  position: absolute;
  inset: 0 0 16%;
  background-image: radial-gradient(#a8815e 0.6px, transparent 0.85px);
  background-size: 14px 13px;
  opacity: 0.22;
  content: "";
}

.kitchen-shelf {
  z-index: 1;
  top: 33%;
  left: 7%;
  width: 27%;
  height: 2.9%;
  border: 2px solid #a6774a;
  border-radius: 0.25rem;
  background: #d4a36e;
  box-shadow: 0 4px 0 #7556372b;
}

.kitchen-shelf span {
  position: absolute;
  bottom: 0;
  display: block;
}

.kitchen-shelf span:first-child {
  left: 13%;
  width: 21%;
  height: 480%;
  border: 1.5px solid #657b57;
  border-radius: 37% 37% 24% 24%;
  background: linear-gradient(90deg, #d8e0a3 0 22%, #aec582 22% 100%);
}

.kitchen-shelf span:first-child::before {
  position: absolute;
  bottom: 95%;
  left: 20%;
  width: 60%;
  height: 40%;
  border-radius: 2px;
  background: #3b654e;
  content: "";
}

.kitchen-shelf span:nth-child(2),
.kitchen-shelf span:nth-child(3) {
  left: 46%;
  width: 44%;
  height: 490%;
  border: 1.5px solid #a77536;
  border-radius: 13% 13% 52% 52%;
  background: linear-gradient(175deg, #f5c765 0 28%, #fbda88 29% 53%, #edb951 54%);
}

.kitchen-shelf span:nth-child(3) {
  bottom: 170%;
  left: 49%;
  width: 38%;
  height: 380%;
  border-color: #a64e46;
  background: linear-gradient(175deg, #e28978 0 27%, #f3a291 28% 52%, #d87565 53%);
}

.kitchen-shadow {
  z-index: 1;
  inset: 48% 9% 9%;
  border-radius: 22% 19% 21% 20% / 36% 36% 30% 30%;
  background: #815f4d38;
  transform: translate(1.6%, 5%);
}

.kitchen-sink {
  z-index: 3;
  inset: 46% 10% 10%;
  overflow: hidden;
  border: clamp(3px, 0.7vw, 8px) solid #6890a3;
  border-top-color: #a2c1ce;
  border-left-color: #8bafbf;
  border-radius: 19% 19% 21% 21% / 30% 30% 34% 34%;
  background: linear-gradient(#2d536b 0%, #426c81 33%, #577f92 78%, #527f92 100%);
  box-shadow: 0 0 0 2px var(--kitchen-edge), inset 0 0 0 2px #173f55aa, 0 7px 0 #926f5750;
}

.kitchen-sink::before {
  position: absolute;
  inset: 12% 6% 11%;
  border: 1.5px solid #abc9d43f;
  border-top-color: #a5cfdf6b;
  border-radius: 16% 16% 19% 19% / 26% 26% 35% 35%;
  content: "";
}

.kitchen-sink::after {
  position: absolute;
  z-index: 4;
  inset: auto 0 0;
  height: var(--fill, 0%);
  background: linear-gradient(180deg, #8ce4f31f 0 14%, #6ed4f63a 14% 15%, #58bde63b 16% 100%);
  transition: height 560ms cubic-bezier(0.2, 0.7, 0.35, 1);
  pointer-events: none;
  content: "";
}

.kitchen-drain {
  position: absolute;
  left: 19%;
  bottom: 15%;
  width: 18%;
  height: 19%;
  border-radius: 50%;
  border: 2px solid #335468;
  background:
    radial-gradient(ellipse, #254b62 0 18%, #82a5b0 19% 35%, #3b677c 36% 43%, #739ba8 44%);
  box-shadow: inset 0 -2px 0 #bdd1d750;
}

.kitchen-water {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: var(--fill, 0%);
  overflow: hidden;
  background: linear-gradient(#a8e7f1 0%, #55bfe5 36%, #399acc 100%);
  transition: height 560ms cubic-bezier(0.2, 0.7, 0.35, 1);
}

.kitchen-water::before,
.kitchen-water::after {
  position: absolute;
  top: 0;
  left: -9%;
  width: 118%;
  height: 11px;
  background: radial-gradient(ellipse at 50% -1px, #cdf5fb 0 48%, transparent 51%) repeat-x;
  background-size: 37px 9px;
  opacity: 0.75;
  content: "";
}

.kitchen-water::after {
  top: 9px;
  left: 9%;
  opacity: 0.27;
}

.kitchen-faucet {
  z-index: 5;
  top: 16%;
  left: 42%;
  width: 22%;
  height: 37%;
}

.kitchen-faucet::before {
  position: absolute;
  bottom: 8%;
  left: 4%;
  width: 31%;
  height: 14%;
  border: 2px solid #153e5b;
  border-radius: 50%;
  background: #4b87a2;
  box-shadow: 1px 4px 0 #17354a44;
  content: "";
}

.kitchen-faucet::after {
  position: absolute;
  z-index: 1;
  inset: 4% 18% 15% 13%;
  border: clamp(6px, 1.28vw, 15px) solid #0d5d85;
  border-bottom: 0;
  border-right-color: transparent;
  border-radius: 49% 53% 0 0 / 48% 46% 0 0;
  filter: drop-shadow(0 2px 0 #163951);
  content: "";
}

.kitchen-faucet i {
  position: absolute;
  z-index: 2;
  top: 26%;
  left: 69%;
  width: 23%;
  height: 13%;
  border: 2px solid #153e5b;
  border-radius: 0 36% 41% 23%;
  background: linear-gradient(#5897b4 0 27%, #186b91 28% 100%);
  transform: rotate(10deg);
}

.kitchen-faucet i::after {
  position: absolute;
  bottom: -351%;
  right: 285%;
  width: 94%;
  height: 54%;
  border-radius: 50% 50% 20% 70%;
  background: #b63c40;
  box-shadow: 1px 1px 0 #79232b;
  transform: rotate(-16deg);
  content: "";
}

.kitchen-stream {
  z-index: 5;
  top: 29%;
  left: 59.5%;
  width: 2.65%;
  height: 31%;
  border-radius: 0 0 70% 50%;
  background: repeating-linear-gradient(173deg, #d0f8ff 0 6px, #82dbf4 9px 19px, #bdeefb 20px 24px);
  box-shadow: inset 2px 0 0 #dffaff9c, 2px 0 0 #103b6220;
  opacity: 0;
  transform-origin: top;
  transform: scaleY(0.15);
  transition: opacity 140ms, transform 200ms ease-out;
}

.kitchen[data-running="true"] .kitchen-stream {
  opacity: 0.97;
  transform: scaleY(1);
  animation: kitchen-stream 420ms linear infinite;
}

.kitchen-stream::after {
  position: absolute;
  top: 89%;
  left: -46%;
  width: 190%;
  height: 11%;
  border-top: 2px solid #e7fcff;
  border-radius: 50%;
  background: #92d5f272;
  content: "";
}

.kitchen-dish {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 47%;
  width: 34%;
  height: 85%;
  border: 2px solid #ae664e;
  border-radius: 50%;
  background: radial-gradient(ellipse, #ffc5a0 0 48%, #d9795e 50% 54%, #f29a75 57% 70%, #f7b08c 72%);
  box-shadow: inset 0 3px 0 #ffe6c980, 0 5px 0 #234a603f;
  transform: rotate(-18deg);
  transition: transform 220ms ease, opacity 180ms ease;
}

.kitchen-dish::before {
  position: absolute;
  inset: 19% 14% 17%;
  border: 1px solid #b7625370;
  border-radius: 50%;
  content: "";
}

.kitchen-dish i {
  position: absolute;
  top: 23%;
  left: 26%;
  width: 32%;
  height: 20%;
  border-radius: 42% 58% 70% 29%;
  background: #845741;
  box-shadow: inset 2px 2px 0 #bd845e, -1px 7px 0 -3px #825442;
  transform: rotate(28deg);
  transition: opacity 200ms, transform 200ms;
}

.kitchen-dish i:nth-child(2) {
  top: 49%;
  left: 50%;
  width: 20%;
  height: 14%;
  transform: rotate(-38deg);
}

.kitchen-dish i:nth-child(3) {
  top: 61%;
  left: 33%;
  width: 14%;
  height: 10%;
  transform: rotate(-14deg);
}

.kitchen:is([data-dish="scrubbed"], [data-dish="soapy"], [data-dish="clean"]) .kitchen-dish i:last-child,
.kitchen:is([data-dish="soapy"], [data-dish="clean"]) .kitchen-dish i {
  opacity: 0;
  transform: scale(0.15);
}

.kitchen[data-dish="clean"] .kitchen-dish {
  transform: translate(9%, -4%) rotate(-9deg);
}

.kitchen[data-dish="empty"] .kitchen-dish {
  opacity: 0;
  transform: translate(18%, -36%) rotate(4deg);
}

.kitchen-bubbles {
  position: absolute;
  z-index: 5;
  inset: 2% 17% 8% 45%;
  pointer-events: none;
}

.kitchen-bubbles i {
  position: absolute;
  inset: 10% auto auto 17%;
  width: 24%;
  aspect-ratio: 1;
  border: 1px solid #f7fdff;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #fff 1%, #fff 6%, transparent 8%), #d9f6fc9c;
  box-shadow: 0 1px 4px #36719139;
  opacity: 0;
  transform: translateY(22%) scale(0.45);
  transition: opacity 190ms, transform 240ms ease;
}

.kitchen-bubbles i:nth-child(2) {
  top: 32%;
  left: 38%;
  width: 18%;
}

.kitchen-bubbles i:nth-child(3) {
  top: 12%;
  left: 61%;
  width: 14%;
}

.kitchen-bubbles i:nth-child(4) {
  top: 46%;
  left: 17%;
  width: 12%;
}

.kitchen[data-dish="scrubbed"] .kitchen-bubbles i:nth-child(2),
.kitchen[data-dish="soapy"] .kitchen-bubbles i {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.kitchen[data-dish="clean"] .kitchen-bubbles i:first-child,
.kitchen[data-dish="clean"] .kitchen-bubbles i:nth-child(3) {
  width: 13%;
  border: 0;
  border-radius: 0;
  background: #fff8cf;
  clip-path: polygon(50% 0, 61% 37%, 100% 50%, 61% 61%, 50% 100%, 37% 61%, 0 50%, 37% 37%);
  opacity: 1;
  transform: translateY(0) scale(1);
}

.kitchen-rack {
  z-index: 4;
  top: 40%;
  right: 4%;
  width: 22%;
  height: 19%;
  transform: rotate(-5deg);
}

.kitchen-rack::after {
  position: absolute;
  z-index: 3;
  inset: auto 0 5%;
  height: 35%;
  border: 2px solid #345a6f;
  border-radius: 0 0 25% 24%;
  background:
    repeating-linear-gradient(90deg, transparent 0 13%, #638091 13% 15%),
    linear-gradient(transparent 0 23%, #a8d1df 24% 33%, #57819a9c 34%);
  box-shadow: 0 3px 0 #52788f5a;
  content: "";
}

.kitchen-rack i {
  position: absolute;
  bottom: 23%;
  left: 6%;
  width: 43%;
  height: 84%;
  border: 1.5px solid #ac792e;
  border-radius: 50%;
  background: radial-gradient(ellipse, #fff0af 0 45%, #d9993f 47% 56%, #f8cd65 59%);
  box-shadow: inset 0 2px 0 #fff4ccad;
  transform: rotate(-9deg);
}

.kitchen-rack i:nth-child(2) {
  bottom: 19%;
  left: 27%;
  height: 78%;
  border-color: #7f4b47;
  background: radial-gradient(ellipse, #ffba9d 0 45%, #bb6758 47% 56%, #e58f78 59%);
}

.kitchen-rack i:nth-child(3) {
  bottom: 15%;
  left: 48%;
  height: 66%;
  border-color: #286c95;
  background: radial-gradient(ellipse, #c0e6f3 0 45%, #508aa7 47% 56%, #79b9d6 59%);
}

.kitchen-sponge {
  z-index: 4;
  bottom: 21%;
  left: 3%;
  width: 17%;
  height: 11%;
  border: 1.5px solid #af7e33;
  border-radius: 28% 26% 24% 26%;
  background:
    radial-gradient(ellipse at 35% 30%, #af7e3380 0 13%, transparent 17%) 0 0 / 8px 7px,
    linear-gradient(#ffeab0 0 24%, #efd073 25% 73%, #b18845 75%);
  box-shadow: 0 3px 0 #9a6d4f5a;
  transform: rotate(-12deg);
}

@keyframes kitchen-stream {
  to { background-position: 0 24px; }
}

@media (max-width: 480px) {
  .kitchen {
    aspect-ratio: 1.47;
  }

  .kitchen-wall {
    background-size: auto, 30px 41px, 50px 28px, auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kitchen *,
  .kitchen *::before,
  .kitchen *::after {
    animation: none !important;
    transition: none !important;
  }
}
