/* Tip button and sheet. Loaded on every page with shared/tip.js. */

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

.tip-open {
  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-open.tip-pill {
  flex: 0 0 auto;
  align-self: center;
  height: 44px;
  margin: 0;
  padding: 0 0.7rem;
  border: 2px solid var(--green-deep, #1b5e20);
  background: #000;
  color: var(--ink-bright);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
}

.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;
  }
}

.tip-sheet {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
}

.tip-card {
  position: relative;
  width: min(22rem, 100%);
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  margin: 0;
  padding: 0.8rem 0.75rem 0.9rem;
  text-align: center;
  color: var(--ink-bright);
}

.tip-x {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--green-bright, #81c784);
  font: inherit;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.tip-card h2 {
  margin: 0.4rem 0 0.45rem;
  font-size: clamp(1.2rem, 5.4vw, 1.5rem);
  font-weight: 800;
}

.tip-line {
  margin: 0 0 0.7rem;
  color: var(--ink-bright);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.tip-love {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0.15rem 0 0.85rem;
}

.tip-mascot {
  display: block;
  width: 72px;
  height: 93px;
  flex: none;
  object-fit: contain;
}

.tip-bubble {
  margin: 0;
  padding: 0.55rem 0.8rem;
  border-radius: 16px;
  background: var(--white);
  color: var(--tile-present-ink);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.25;
  text-align: center;
}

.tip-amts {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 0 0.7rem;
}

.tip-amt {
  min-width: 3.2rem;
  min-height: 44px;
  padding: 0 0.7rem;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-bright);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tip-amt.on {
  background: var(--white);
  color: var(--bg);
}

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

.tip-pay {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 2px solid var(--green-bright, #81c784);
  border-radius: 999px;
  background: #000;
  color: var(--ink-bright);
  font-weight: 800;
  text-decoration: none;
}

.tip-pay.primary {
  border-color: var(--tile-correct, #2e7d32);
  background: var(--tile-correct, #2e7d32);
}
