.tips-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(21, 32, 43, 0.55);
  opacity: 1;
}
.tips-overlay[hidden] { display: none !important; }
.tips-overlay.is-fading { opacity: 0; transition: opacity 0.7s ease; }
body.tips-lock { overflow: hidden; }
.tips-card {
  position: relative;
  width: 100%;
  max-width: 26.5rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(21, 32, 43, 0.28);
  padding: 1.6rem 1.5rem 1.35rem;
  max-height: 92vh;
  overflow: auto;
}
.tips-close-x {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  z-index: 1;
}
.tips-close-x:hover { color: var(--ink); background: var(--chip); }
.tips-close-x:focus-visible,
.tips-no:focus-visible,
.tips-card a:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 1px;
}
.tips-logo {
  width: auto;
  height: 72px;
  margin: 0 auto 0.7rem;
}
.tips-card h2 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.25;
  text-align: center;
  margin: 0 0 0.45rem;
}
.tips-card .tips-lead {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0 0 0.45rem;
}
.tips-card .tips-fine {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  margin: 0 0 1rem;
}
.tips-embed-slot {
  width: 100%;
  min-height: 24rem;
}
.tips-embed {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  background: transparent;
  min-height: 24rem;
  height: 28rem;
}
.tips-no {
  display: block;
  width: 100%;
  margin-top: 0.55rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tips-no:hover { color: var(--ink); }
.tips-join-btn { margin-top: 0.85rem; }
.tips-ref-line {
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0.75rem 0 0;
}
.tips-card .tips-ref-line { text-align: center; }
.tips-ref-line a { color: var(--copper-dark); }
.footer-signup .tips-fine {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 0.85rem;
}
.tips-form-block[hidden],
.tips-success[hidden] { display: none !important; }
.tips-success {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.65rem;
  padding: 0.55rem 0 0.15rem;
}
.tips-success-logo {
  width: auto;
  height: 48px;
  margin: 0;
}
.tips-check-svg {
  width: 72px;
  height: 72px;
  color: var(--forest);
  display: block;
}
.tips-check-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: tips-check-draw 600ms ease forwards;
}
@keyframes tips-check-draw {
  to { stroke-dashoffset: 0; }
}
.tips-success h2 {
  font-size: 1.28rem;
  margin: 0.15rem 0 0;
}
.tips-success:focus,
.tips-success:focus-visible { outline: none; }
@media (prefers-reduced-motion: reduce) {
  .tips-check-path {
    animation: none;
    stroke-dashoffset: 0;
  }
  .tips-overlay.is-fading {
    transition: none;
    opacity: 0;
  }
}
@media (max-width: 640px) {
  .tips-overlay {
    align-items: flex-end;
    padding: 0 0 0.65rem;
  }
  .tips-card {
    width: 92vw;
    max-width: 92vw;
    margin: 0 auto;
    border-radius: 16px;
    max-height: 88vh;
    padding: 1.35rem 1.15rem 1.15rem;
  }
  .tips-logo { height: 60px; }
  .tips-card h2 { font-size: 1.28rem; }
  .tips-embed {
    min-height: 22rem;
    height: 26rem;
  }
  .tips-embed-slot { min-height: 22rem; }
}
