:root {
  --cream: #efe4d4;
  --ink: #2a1c14;
}

* {
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  height: 100svh;
  background: var(--cream);
  color: var(--ink);
  font-family: system-ui, sans-serif;
  overflow: hidden;
  overscroll-behavior: none;
}

.wash {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 520px at 50% -10%, #fff6ec 0%, transparent 70%),
    radial-gradient(700px 480px at 15% 110%, #ead7c4 0%, transparent 60%),
    radial-gradient(700px 480px at 85% 110%, #ead7c4 0%, transparent 60%);
  pointer-events: none;
}

.stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(4px, 2vw, 48px);
  width: 100%;
  height: 100%;
  padding: 8px 8px 0;
}

.friend {
  position: relative;
  width: min(47vw, calc(100svh - 130px));
  max-height: calc(100svh - 120px);
  height: auto;
  aspect-ratio: 1;
}

.friend .head {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 18px 24px rgba(60, 40, 20, 0.18));
}

.cheek-puff {
  position: absolute;
  left: calc(var(--mx) + var(--mr-x) * 0.35);
  top: var(--my);
  width: calc(var(--mr-x) * 2.55);
  height: calc(var(--mr-y) * 2.45);
  transform: translate(0, -50%);
  z-index: 9;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
}

.cheek-puff ellipse {
  fill: var(--skin);
}

.cheek-puff path {
  fill: none;
  stroke: #1a120c;
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.friend.is-in .cheek-puff {
  opacity: 1;
}

.friend[data-friend="mop"] {
  --mx: 50.9%;
  --my: 67.9%;
  --mr-x: 7.2%;
  --mr-y: 7.8%;
  --skin: #f8d595;
}

.friend[data-friend="blonde"] {
  --mx: 51%;
  --my: 62.5%;
  --mr-x: 6.8%;
  --mr-y: 8%;
  --skin: #fed799;
}

.dick-visual,
.dick-hit {
  position: fixed;
  left: 0;
  top: 0;
  width: min(58vw, 300px);
  height: calc(min(58vw, 300px) * 0.375);
  will-change: transform;
}

.dick-visual {
  z-index: 8;
  pointer-events: none;
}

.dick-hit {
  z-index: 20;
  cursor: grab;
  touch-action: none;
}

.dick-hit.is-dragging {
  cursor: grabbing;
}

.dick-art {
  display: block;
  width: 100%;
  height: 100%;
}

.tip {
  position: absolute;
  right: 5.5%;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translate(50%, -50%);
  pointer-events: none;
}

@media (max-width: 820px) {
  html,
  body {
    height: auto;
    min-height: 100svh;
    overflow: auto;
    touch-action: pan-y;
  }

  .stage {
    flex-direction: column;
    align-items: center;
    height: auto;
    min-height: 100svh;
    padding: 12px 8px 96px;
  }

  .friend {
    width: min(92vw, 520px);
    max-height: none;
  }

  .dick-visual,
  .dick-hit {
    width: min(38vw, 140px);
    height: calc(min(38vw, 140px) * 0.375);
  }
}
