main {
  align-items: center;
  justify-content: center;
}

content {
  /* Color variables */
  --bg: white;
  --wood: #b07f52;
  --wood-dark: #46270c;
  --pot: #c50a29;
  --pot-shadow: #bdc5cf;

  display: block;
  position: relative;
  width: 200px;
  height: 200px;
  background: var(--bg);
  overflow: hidden;
}

content * {
  position: absolute;
  display: block;
  box-sizing: border-box;
}

/* TABLE (center) */
tabletop {
  width: 90px;
  height: 12px;
  left: 55px;
  top: 96px;
  background: var(--wood);
  z-index: 2;
}

tableleg {
  width: 20px;
  height: 70px;
  left: 92px; /* centered under tabletop */
  top: 100px;
  background: var(--wood);
  border-radius: 50%;
  z-index: 1;
}

tablebottom {
  width: 40px;
  height: 30px;
  left: 82px;
  top: 160px;
  background: var(--wood);
  clip-path: polygon(0% 100%, 100% 100%, 67% 0%, 33% 0%);
  z-index: 0;
}

/* TEAPOT (on the table) */
teabody {
  width: 56px;
  height: 38px;
  left: 73px;
  top: 58px;
  background: var(--pot);
  border-radius: 50% / 60%;
  z-index: 3;
}

teabody::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    87% 93% at 30% 30%,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 65%
  );
  filter: blur(4px);
  pointer-events: none;
}

lid {
  width: 32px;
  height: 21px;
  left: 84px;
  top: 49px;
  background: var(--pot);
  border-radius: 50%;
  z-index: 3;
}
lid::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    80% 120% at 30% 35%,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0) 65%
  );
  filter: blur(3px);
  pointer-events: none;
}
lid::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  left: 40%;
  top: -3px;
  background: var(--pot);
  border-radius: 50%;
}

spout {
  width: 20px;
  height: 8px;
  left: 63px;
  top: 65px;
  background: var(--pot);
  border-radius: 2px;
  transform: rotate(35deg);
  z-index: 1;
}

handle {
  width: 20px;
  height: 21px;
  left: 118px;
  top: 63px;
  z-index: 2;

  /* Crescent-like handle via two ellipses */
  &::before,
  &::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  }
  &::before {
    background: var(--pot);
  }
  &::after {
    inset: 3px; /* thickness of the ring */
    background: var(--bg); /* carve the inner hole */
    transform: translateX(1px); /* slight offset to look like a crescent */
  }
}

/* CHAIRS (left & right) */

/* Left chair (defaults) */
seat {
  width: 46px;
  height: 10px;
  left: 20px;
  top: 130px;
  background: var(--wood);
  z-index: 1;
}

seat > decoration {
  width: 8px;
  height: 8px;
  left: 17px;
  top: 1px; /* centered vertically on the seat */
  background: var(--wood-dark);
  border-radius: 50%;
  z-index: 1;

  &::before,
  &::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    top: 0;
    background: var(--wood-dark);
    border-radius: 50%;
  }

  &::before {
    left: 15px;
  }

  &::after {
    left: -15px;
  }
}

leg {
  width: 8px;
  height: 40px;
  left: 52px;
  top: 140px;
  background: var(--wood);
  z-index: 0;
}

/* Crescent backrest (thin moon) built from two offset circles */
backrest {
  --thick: 1px; /* thickness of the crescent */
  width: 35px;
  height: 117px;
  left: -11px;
  top: 64px;
  z-index: 0;

  &::before,
  &::after {
    content: "";
    position: absolute;
    border-radius: 50%;
  }
  &::before {
    inset: 0;
    background: var(--wood); /* outer disc */
  }
  &::after {
    inset: var(--thick);
    background: var(--bg); /* inner disc to carve */
    transform: translateX(-6px);
  }
}

/* Right chair overrides */
chair.right {
  transform: scaleX(-1); /* mirror horizontally */
  left: auto;
  right: 0px;
}
