/* Shared email-signup + modal styles for all games. */

[data-signup-footer] { margin: 1.5rem auto 0; max-width: 460px; padding: 0 1rem; }
.signup-card {
  background: var(--card, #fff);
  border: 1px solid var(--line, #e6e6ea);
  border-radius: 14px;
  padding: 1rem 1.1rem 1.1rem;
  text-align: left;
  box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 4px 14px rgba(0,0,0,.04);
}
.signup-title {
  margin: 0 0 0.15rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink, #0a0a0a);
}
.signup-sub {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  color: var(--muted, #6b6b73);
}
.signup-form { display: flex; flex-direction: column; gap: 0.5rem; }
.signup-form input[type="email"] {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line, #e6e6ea);
  border-radius: 8px;
  font: inherit;
  background: #fafafb;
  color: var(--ink, #0a0a0a);
}
.signup-form input[type="email"]:focus { outline: 2px solid var(--ink, #0a0a0a); outline-offset: -1px; background: #fff; }

/* Honeypot: invisible to humans, present in the DOM for bots.
   Position off-screen rather than display:none — display:none gets stripped
   by some bots, position:absolute+left:-9999 fools more of them.            */
.signup-hp {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.signup-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted, #6b6b73);
  line-height: 1.35;
}
.signup-consent input { margin-top: 2px; flex-shrink: 0; }
.signup-consent a { color: var(--ink, #0a0a0a); text-decoration: underline; }

.signup-form button[type="submit"], .signup-form button.submit {
  padding: 0.55rem 0.9rem;
  background: var(--ink, #0a0a0a);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.signup-form button[type="submit"]:hover { background: #1f1f24; }
.signup-form button[type="submit"]:disabled { opacity: 0.6; cursor: default; }

.signup-status {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted, #6b6b73);
  min-height: 1.1rem;
}
.signup-status.ok    { color: var(--correct, #16a34a); }
.signup-status.error { color: var(--wrong,   #dc2626); }

/* ---------- modal ---------- */
.signup-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(10,10,10,.5);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  z-index: 1000;
  animation: signupFadeIn .18s ease;
}
.signup-modal-backdrop.closing { animation: signupFadeOut .18s ease forwards; }
@keyframes signupFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes signupFadeOut { from { opacity: 1; } to { opacity: 0; } }

.signup-modal {
  position: relative;
  background: var(--card, #fff);
  width: 100%;
  max-width: 440px;
  padding: 1.5rem 1.5rem 1.25rem;
  border-radius: 16px;
  box-shadow: 0 6px 32px rgba(0,0,0,.18), 0 1px 4px rgba(0,0,0,.08);
  animation: signupSlideUp .22s cubic-bezier(.2,.8,.2,1);
}
@keyframes signupSlideUp { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.signup-modal h2 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink, #0a0a0a);
}
.signup-modal-sub {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--muted, #6b6b73);
  line-height: 1.45;
}
.signup-modal .signup-actions {
  display: flex; gap: 0.5rem; justify-content: space-between;
  margin-top: 0.2rem;
}
.signup-modal .signup-skip {
  padding: 0.55rem 0.9rem;
  background: transparent;
  color: var(--muted, #6b6b73);
  border: 1px solid var(--line, #e6e6ea);
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
}
.signup-modal .signup-skip:hover { color: var(-