/* Gruselgebräu – game specific styles (shared styles: ../shared/base.css) */

:root { --brew: #bfcc94; --brew-near: #b4cded; --brew-glow: rgb(191 204 148 / 24%); }

/* the cauldron: a dark pot with a green glow */
.cauldron {
  position: relative;
  padding: 16px 14px 20px;
  background: radial-gradient(120% 60% at 50% 0%, var(--brew-glow), transparent 70%), #0f1c28;
  border: 3px solid #05090d;
  border-radius: 28px 28px 60px 60px;
  box-shadow: inset 0 -12px 30px rgb(0 0 0 / 45%);
}

.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.row {
  display: grid;
  grid-template-columns: 1.6rem repeat(4, 1fr) 3.2rem;
  align-items: center;
  gap: 8px;
}
.row .num { color: #6f819a; font-size: 0.8rem; text-align: right; }

.slot {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.4rem, 7vw, 2rem);
  background: rgb(255 255 255 / 6%);
  border: 2px solid rgb(255 255 255 / 10%);
  border-radius: 50%;
  padding: 0;
  color: inherit;
}
.row.current .slot { border-color: var(--brew); cursor: pointer; }
.row.current .slot:empty { border-style: dashed; cursor: default; }
.row.future .slot { opacity: 0.35; }
.row.past .slot { background: rgb(255 255 255 / 10%); }

/* feedback pegs: 2 x 2 */
.pegs { display: grid; grid-template-columns: repeat(2, 12px); gap: 5px; justify-content: center; }
.peg {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgb(255 255 255 / 14%);
  vertical-align: middle;
}
.peg.exact { background: var(--brew); box-shadow: 0 0 6px var(--brew); }
.peg.near { background: var(--brew-near); }

/* ingredients */
.controls { margin-top: 4px; }
.pantry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ingredient {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 4px;
  font: inherit;
  font-size: 0.8rem;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
}
.ingredient .emoji { font-size: 1.9rem; line-height: 1.1; }
.ingredient:hover:not(:disabled) { border-color: var(--brew); }
.ingredient:disabled { opacity: 0.35; cursor: default; }
.ingredient.ruled-out .emoji { filter: grayscale(1); }

.controls .actions { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.controls .actions .btn { min-width: 140px; }

.result {
  margin-top: 14px;
  padding: 20px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.result h2 { font: 700 1.5rem "Outfit", system-ui, sans-serif; margin: 0 0 4px; }
.result .recipe { font-size: 2.2rem; letter-spacing: 0.2em; margin: 6px 0; }
.result .actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }

@keyframes bubble { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.15); } 100% { transform: none; opacity: 1; } }
.row.just .slot, .row.just .peg { animation: bubble 0.45s ease both; }
.row.just .peg:nth-child(2) { animation-delay: 0.08s; }
.row.just .peg:nth-child(3) { animation-delay: 0.16s; }
.row.just .peg:nth-child(4) { animation-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .row.just .slot, .row.just .peg { animation: none; } }
