*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0; min-height: 100vh;
  background: #fff4e2;
  background-image: radial-gradient(#ffd9c7 1.2px, transparent 1.6px);
  background-size: 26px 26px;
  color: #4a2a3a;
  font-family: "Trebuchet MS", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  overflow-x: hidden;
}
button, a { font: inherit; color: inherit; }
:focus-visible { outline: 4px dotted #e8336f; outline-offset: 4px; border-radius: 18px; }

.playground { max-width: 820px; margin: 0 auto; padding: 1.4rem 1rem 2.5rem; }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: .8rem; }
.label {
  margin: 0; font-size: .95rem; font-weight: 700;
  background: #e8336f; color: #ffffff; padding: .35rem .8rem; border-radius: 6px;
  transform: rotate(-2deg);
}
.how { margin: 0; font-size: 1rem; }

.board {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  background: #fffaf1; border: 3px solid #f6c84c; border-radius: 28px;
  box-shadow: 0 6px 0 #f6c84c;
}
.ropes { position: absolute; inset: 0; width: 100%; height: 100%; }
.ropes path {
  fill: none; stroke: #c2185b; stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 2 12; vector-effect: non-scaling-stroke; opacity: .55;
}
.ropes #rope-1-2 { stroke: #2bb3a3; }
.gumdrop-dot {
  position: absolute; left: 50%; top: 16%; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  background: #e8336f; border: 3px solid #ffffff; border-radius: 50%;
  box-shadow: 0 0 0 3px #e8336f;
  opacity: 0; z-index: 3; pointer-events: none;
}
.gumdrop-dot.moving { opacity: 1; }

.candy {
  position: absolute; width: 25%; aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  background: none; border: 0; padding: 0; cursor: pointer; z-index: 2;
  border-radius: 24px;
}
.candy picture, .candy img { display: block; width: 100%; height: auto; }
.candy img { transition: transform .2s ease; }
.candy:hover img { transform: scale(1.05) rotate(-3deg); }
.candy:active img { transform: scale(.95); }
.candy .name {
  position: absolute; left: 50%; bottom: -6%; transform: translateX(-50%);
  font-size: .8rem; font-weight: 700; background: #ffffff; border: 2px solid currentColor;
  border-radius: 999px; padding: .05rem .55rem; white-space: nowrap;
}
.berry { left: 50%; top: 18%; color: #d81b60; }
.minty { left: 16%; top: 50%; color: #2e8b57; }
.sunny { left: 84%; top: 50%; color: #c98300; }
.mallow { left: 50%; top: 80%; color: #a05a7a; }
.candy.got-it img { animation: bounce .6s ease-out; }
@keyframes bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-14px) scale(1.08); }
  70% { transform: translateY(2px) scale(.97); }
}

.ticket {
  margin: 1.6rem auto 0; max-width: 32rem; text-align: center;
  min-height: 1.5em; font-weight: 700; font-size: 1.05rem;
}
.ticket a { color: #c2185b; text-underline-offset: 4px; display: inline-block; padding: .3rem 0; }
.wrapper-tag {
  font-style: normal; margin: 1.6rem auto 0; width: fit-content; max-width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: .1rem;
  padding: .7rem 1.4rem; border-radius: 14px;
  background: repeating-linear-gradient(135deg, #ffffff 0 10px, #ffe9f0 10px 20px);
  border: 2px solid #f3a5c0; font-size: .92rem; text-align: center;
}
.wrapper-tag a { padding: .15rem 0; min-height: 26px; text-underline-offset: 3px; text-decoration-color: #e8336f; overflow-wrap: anywhere; }
.tag-note { font-weight: 700; color: #a3174d; }
.dropped .ticket { margin-top: 3rem; }

@media (max-width: 600px) {
  .board { aspect-ratio: 1 / 1.05; border-radius: 22px; }
  .candy { width: 30%; }
  .candy .name { font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
