* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; height: 100%;
  background: #0d0221;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  touch-action: none;
}

/* ------ Board ------ */
.board {
  position: relative;
  width: min(96vw, 96vh, 540px);
  aspect-ratio: 3 / 4;
  margin: 2vh auto;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,240,200,0.22), transparent 55%),
    repeating-linear-gradient(94deg,
      #a87547 0px, #a87547 38px,
      #9c6b3f 38px, #9c6b3f 76px),
    #a87547;
  box-shadow:
    inset 0 0 60px rgba(0,0,0,0.25),
    0 10px 30px rgba(0,0,0,0.4);
  transition: filter 600ms ease;
  user-select: none;
}
.board.dimmed { filter: brightness(0.85) saturate(0.9); }

/* ------ Bowl ------ */
.bowl {
  position: absolute;
  left: 50%; top: 55%;
  transform: translate(-50%, -50%);
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #5c3a1e, #2a1808 80%);
  box-shadow:
    inset 0 -8px 18px rgba(0,0,0,0.55),
    0 10px 20px rgba(0,0,0,0.4),
    0 0 0 0 rgba(57,255,20,0);
  transition: box-shadow 700ms ease;
  pointer-events: none;
}
.board.won .bowl {
  box-shadow:
    inset 0 -8px 18px rgba(0,0,0,0.55),
    0 10px 20px rgba(0,0,0,0.4),
    0 0 40px 6px rgba(57,255,20,0.65);
}

/* ------ Ingredients ------ */
.ingredient {
  position: absolute;
  top: 0; left: 0;
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 4px 4px rgba(0,0,0,0.35));
  user-select: none;
  pointer-events: none;
  will-change: transform;
  transform: translate(50px, 50px);
}
.ingredient.locked {
  transition: transform 200ms cubic-bezier(.2, .8, .3, 1.2);
}

/* ------ Overlays ------ */
.overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.25rem;
  padding: 2rem;
  text-align: center;
  z-index: 10;
}
.overlay[hidden] { display: none; }

/* Cover */
.cover { background: rgba(13, 2, 33, 0.0); }
.play-btn {
  font: inherit;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f5e6c8;
  background: rgba(20, 10, 4, 0.85);
  border: 1.5px solid #39ff14;
  border-radius: 999px;
  padding: 1rem 1.75rem;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(57, 255, 20, 0.35);
}
.play-btn:active { transform: translateY(1px); }
.cover-sub {
  margin: 0;
  font-size: 1rem;
  color: #f5e6c8;
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
  max-width: 18rem;
  line-height: 1.4;
}

/* Won */
.won { pointer-events: auto; cursor: pointer; }
.won-headline {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: #f5e6c8;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  opacity: 0;
  animation: fadeIn 600ms ease 300ms forwards;
}
.won-sub {
  margin: 0;
  font-size: 0.95rem;
  color: #f5e6c8;
  opacity: 0;
  animation: fadeIn 600ms ease 800ms forwards;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 0.85; } }
