/* ===================== THE ENCORE — the ask-out ===================== */

/* the layer sits over the living map — the world keeps breathing under it */
.bonus-layer {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 14;
  background: rgba(4, 6, 10, 0.88);
  pointer-events: none;
  overflow: hidden;
}

.bonus-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  width: min(92vw, 560px);
  text-align: center;
}

.bonus-line {
  min-height: 2.6em;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
  opacity: 0;
}

.bonus-quip {
  min-height: 1.4em;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  font-weight: 300;
  color: var(--color-text-dim);
  opacity: 0;
}

.bonus-stage {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  opacity: 0;
}

/* the ask step needs open water for the "no" button to flee across */
.bonus-stage.step-ask {
  min-height: 42vh;
}

.bonus-stage.step-invite,
.bonus-stage.step-wheel {
  flex-direction: column;
}

/* ---- chips (buttons) ---- */
.bonus-chip {
  padding: 0.7rem 1.9rem;
  border: 1px solid rgba(109, 240, 194, 0.4);
  border-radius: 999px;
  background: rgba(9, 14, 24, 0.85);
  color: var(--color-text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: border-color 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft);
  will-change: transform;
}

.bonus-chip:hover {
  border-color: rgba(109, 240, 194, 0.8);
  box-shadow: 0 0 18px rgba(109, 240, 194, 0.2);
}

.bonus-chip--yes {
  border-color: rgba(255, 217, 138, 0.55);
  background: rgba(38, 30, 14, 0.85);
  color: #ffd98a;
}

.bonus-chip--yes:hover {
  border-color: rgba(255, 217, 138, 0.9);
  box-shadow: 0 0 22px rgba(255, 217, 138, 0.25);
}

.bonus-chip--card {
  padding: 1.1rem 1.6rem;
  border-radius: 18px;
  font-size: 1.05rem;
}

/* once it starts running, it's absolutely positioned in the stage */
.bonus-chip.is-fleeing {
  position: absolute;
}

.bonus-btn-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

/* ---- calendar ---- */
.bonus-cal {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: min(88vw, 360px);
  padding: 1.1rem;
  border: 1px solid rgba(109, 240, 194, 0.25);
  border-radius: 18px;
  background: rgba(9, 14, 24, 0.9);
}

.bonus-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.bonus-cal-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.04em;
}

.bonus-cal-nav {
  padding: 0.25rem 0.9rem;
  font-size: 1.1rem;
  line-height: 1;
}

.bonus-cal-nav:disabled {
  opacity: 0.25;
  cursor: default;
  box-shadow: none;
}

.bonus-cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  font-size: 0.75rem;
  color: var(--color-text-whisper);
  letter-spacing: 0.06em;
}

.bonus-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.bonus-cal-day {
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(230, 238, 248, 0.05);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.25s var(--ease-soft), background 0.25s var(--ease-soft);
}

.bonus-cal-day:hover:not(:disabled) {
  border-color: rgba(255, 217, 138, 0.6);
}

.bonus-cal-day:disabled {
  opacity: 0.22;
  cursor: default;
}

.bonus-cal-day.is-picked {
  background: rgba(255, 217, 138, 0.25);
  border-color: rgba(255, 217, 138, 0.9);
  color: #ffd98a;
}

.bonus-cal-otherlife {
  width: 100%;
  border-radius: 12px;
  border-color: rgba(255, 158, 194, 0.4);
  color: #ff9ec2;
  font-size: 0.95rem;
}

.bonus-cal-otherlife:hover {
  border-color: rgba(255, 158, 194, 0.8);
  box-shadow: 0 0 18px rgba(255, 158, 194, 0.18);
}

/* ---- the wheel ---- */
.bonus-wheel-wrap {
  position: relative;
  display: grid;
  place-items: center;
  padding-top: 14px; /* room for the pointer */
}

.bonus-wheel {
  display: block;
  will-change: transform;
}

.bonus-wheel-pointer {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 16px solid #ffd98a;
  filter: drop-shadow(0 0 6px rgba(255, 217, 138, 0.6));
  z-index: 1;
}

/* ---- the invitation card ---- */
.bonus-invite {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: min(88vw, 380px);
  padding: 1.6rem 1.4rem;
  border: 1px dashed rgba(255, 217, 138, 0.55);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 217, 138, 0.07), rgba(255, 217, 138, 0) 60%),
    rgba(9, 14, 24, 0.94);
  box-shadow: 0 0 40px rgba(255, 217, 138, 0.08);
}

.bi-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 217, 138, 0.75);
}

.bi-names {
  font-family: "Caveat", cursive;
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-text);
}

.bi-sub {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--color-text-dim);
}

.bi-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.8rem 0;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(230, 238, 248, 0.12);
  border-bottom: 1px solid rgba(230, 238, 248, 0.12);
}

.bi-rows p {
  font-size: 1.05rem;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.bi-sign {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--color-text-whisper);
}

.bonus-invite-note {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--color-text-dim);
}

/* ---- the 🎟️ reopen button, quietly parked in free-roam ---- */
.bonus-ticket-btn {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 9;
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 217, 138, 0.4);
  border-radius: 50%;
  background: rgba(9, 14, 24, 0.8);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  transition: border-color 0.3s var(--ease-soft);
}

.bonus-ticket-btn:hover {
  border-color: rgba(255, 217, 138, 0.85);
}

/* ---- small screens ---- */
@media (max-width: 480px) {
  .bonus-stage.step-ask {
    min-height: 48vh;
  }

  .bonus-chip {
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bonus-chip,
  .bonus-cal-day {
    transition: none;
  }
}
