.hero p { margin-bottom: 28px; }

.eat {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

@media (max-width: 820px) {
  .eat { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Wheel ---------- */

.stage { display: flex; flex-direction: column; gap: 24px; }

.wheel-box {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  margin: 0 auto;
}

#wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid var(--line);
  box-shadow: 8px 8px 0 var(--shadow);
  background: var(--surface);
  transition: transform 5s cubic-bezier(.12, .7, .08, 1);
}

.pointer {
  position: absolute;
  top: -14px;
  left: 50%;
  z-index: 2;
  width: 40px;
  height: 50px;
  transform: translateX(-50%);
  background: var(--tomato);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: drop-shadow(0 0 0 var(--line));
}

.pointer::before {
  content: "";
  position: absolute;
  inset: 5px 7px 12px;
  background: var(--sun);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.hub {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 4px solid var(--line);
  background: var(--sun);
  color: #1d1a2f;
  font: inherit;
  font-weight: 800;
  font-size: clamp(16px, 4.2vw, 24px);
  letter-spacing: .04em;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}

.hub:hover:not(:disabled) { transform: translate(-50%, -50%) scale(1.06) rotate(-4deg); }
.hub:active:not(:disabled) { transform: translate(-50%, -50%) scale(.96); box-shadow: 1px 1px 0 var(--shadow); }
.hub:disabled { cursor: wait; }

.wheel-box.spinning .hub { animation: pulse .6s ease-in-out infinite alternate; }
@keyframes pulse { to { background: var(--pink); } }

/* ---------- Result ---------- */

.result {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border-radius: var(--radius);
  border: 2.5px solid var(--line);
  background: var(--surface);
  box-shadow: 6px 6px 0 var(--shadow);
  animation: pop .45s cubic-bezier(.2, 1.6, .4, 1);
}

@keyframes pop {
  from { transform: scale(.7) rotate(-3deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.result-emoji {
  flex: none;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  font-size: 46px;
  border-radius: 20px;
  border: 2.5px solid var(--line);
  background: var(--c, var(--sun));
  transform: rotate(-5deg);
}

.result-body { min-width: 0; }
.result-kicker { font-size: 14px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.result-name { font-size: clamp(26px, 5vw, 36px); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; margin: 2px 0 4px; overflow-wrap: anywhere; }
.result-meta { color: var(--muted); margin-bottom: 12px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn.primary { background: var(--mint); color: #1d1a2f; text-decoration: none; }

@media (max-width: 480px) {
  .result { flex-direction: column; align-items: flex-start; }
}

/* ---------- Panel ---------- */

.panel {
  padding: 22px;
  border-radius: var(--radius);
  border: 2.5px solid var(--line);
  background: var(--surface);
  box-shadow: 6px 6px 0 var(--shadow);
}

.panel h2 { margin: 0 0 14px; font-size: 22px; letter-spacing: -0.02em; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }

.count { margin: 14px 0 6px; font-weight: 700; color: var(--muted); font-size: 15px; }

.vetoes { margin: 0 0 8px; font-size: 15px; color: var(--muted); }

.linkish {
  font: inherit;
  font-weight: 700;
  color: var(--tomato);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

.places {
  list-style: none;
  margin: 0 -6px;
  padding: 0;
  max-height: 420px;
  overflow-y: auto;
}

.places li { display: flex; align-items: center; gap: 4px; }

.place {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.place:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }

.dot {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--c);
}

.place .name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place .sub { color: var(--muted); font-size: 14px; white-space: nowrap; margin-left: auto; }

.place.off .name { text-decoration: line-through; color: var(--muted); }
.place.off .dot { background: transparent; }

.remove {
  flex: none;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
}

.remove:hover { color: var(--tomato); background: color-mix(in srgb, var(--tomato) 12%, transparent); }

.add { display: flex; gap: 8px; margin-top: 14px; }

.add input {
  flex: 1;
  min-width: 0;
  font: inherit;
  padding: 9px 14px;
  border-radius: 999px;
  border: 2.5px solid var(--line);
  background: var(--bg);
  color: var(--ink);
}

.add input:focus { outline: 3px solid var(--sky); outline-offset: 2px; }

#confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
}
