.tip-slot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0.35rem 0 0;
}

.tip-open,
.tip-choice {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted, #8a8a9a);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  cursor: pointer;
}

.tip-choice { color: var(--cyan, #64b5f6); }

.tip-open.tip-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.75) 50%, transparent 80%);
  transform: translateX(-130%);
  opacity: 1;
  animation: tip-gloss 0.7s ease-out 1;
  pointer-events: none;
}

@keyframes tip-gloss {
  to {
    transform: translateX(130%);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tip-open.tip-shine::after {
    animation: none;
    opacity: 0;
  }
}

.tip-popup {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: end center;
  padding: 0.75rem;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  background: rgba(5, 5, 16, 0.72);
}

.tip-card {
  position: relative;
  width: min(22rem, 100%);
  margin: 0;
  padding: 0.85rem 0.8rem 0.95rem;
  text-align: center;
  background: #050510;
  color: #fff;
}

.tip-x {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #050510;
  color: #fff;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
}

.tip-mascot {
  display: block;
  width: 64px;
  height: auto;
  margin: 0.2rem auto 0.35rem;
}

.tip-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.tip-line,
.tip-who {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  line-height: 1.35;
}

.tip-who { color: #d7d7e2; }

.tip-actions {
  display: grid;
  gap: 0.45rem;
}

.tip-pay,
.tip-no {
  min-height: 2.75rem;
  width: 100%;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
}

.tip-pay {
  border: 2px solid #fff;
  background: #fff;
  color: #050510;
}

.tip-pay + .tip-pay {
  background: transparent;
  color: #fff;
}

.tip-no {
  margin-top: 0.55rem;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
}

@media (min-width: 640px) {
  .tip-popup { place-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .tip-popup, .tip-popup * { animation: none; transition: none; }
}
