/* Beer/lunch picker: result card, primary buttons, confetti */

.result {
  background: linear-gradient(180deg, rgba(255,184,0,0.08) 0%, rgba(255,184,0,0.02) 100%);
  border: 2px solid rgba(var(--a), 0.3);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  margin: 1.5rem 0;
  height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.result::after {
  content: '\01F37A'; /* beer mug watermark */
  position: absolute;
  font-size: 4rem;
  opacity: 0.06;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.result-lunch::after {
  content: '\01F35D'; /* spaghetti watermark */
}

.result-line {
  font-size: 1.4rem;
  line-height: 1.7;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
}

.result-line.reveal {
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.result-extra {
  font-size: 1rem;
  opacity: 0.85;
  margin-top: 0.75rem;
  font-style: italic;
}

.result-timer {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  color: rgba(var(--a), 0.9);
  margin-top: 0.75rem;
}

.result-line .highlight {
  color: #ffb800;
  font-weight: 700;
  font-size: 1.6rem;
  display: inline-block;
  text-shadow: 0 0 20px rgba(var(--a), 0.4);
  text-decoration: none;
}

.result-line a.highlight:hover {
  text-decoration: underline;
}

.result.spin .result-line {
  animation: shake 0.1s linear 6;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.btn {
  display: inline-block;
  background: linear-gradient(180deg, #ffb800 0%, #e69500 100%);
  color: #0d0d0d !important;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: all 0.15s ease;
  box-shadow: 0 4px 0 #b37300, 0 6px 20px rgba(0,0,0,0.3); /* 3D ledge */
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 0 #b37300, 0 12px 30px rgba(var(--a), 0.4);
  background: linear-gradient(180deg, #ffc233 0%, #e69500 100%);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 2px 0 #b37300, 0 4px 15px rgba(0,0,0,0.3);
  transition-duration: 0.05s;
}

.btn .ripple {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100px;
  height: 100px;
  margin: -50px 0 0 -50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.btn.loading {
  pointer-events: none;
  animation: btnPulse 0.4s ease-in-out 6;
}

@keyframes btnPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.97); }
}

.btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.5);
}

.actions {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.map-link {
  margin-top: 5rem;
  font-size: 0.95rem;
  opacity: 0.85;
}

.map-link a {
  color: #ffb800;
  text-decoration: none;
}

.map-link a:hover {
  text-decoration: underline;
}

.confirm-row {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

/* "Let's go!" — green confirm after a pick */
.btn-confirm {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 4px 0 #15803d, 0 6px 20px rgba(0, 0, 0, 0.3);
  font-size: 1rem;
  padding: 0.85rem 1.8rem;
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-confirm:hover {
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
  box-shadow: 0 8px 0 #15803d, 0 12px 30px rgba(34, 197, 94, 0.4);
}

.btn-confirm:active {
  box-shadow: 0 2px 0 #15803d, 0 4px 15px rgba(0, 0, 0, 0.3);
}

.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
}

.confetti span {
  position: absolute;
  background: #ffb800;
  animation: confettiFall 1.5s ease-out forwards;
}

.confetti span:nth-child(odd) { background: #ff6b00; }
.confetti span:nth-child(3n) { background: #fff; }

@keyframes confettiFall {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(720deg);
  }
}
