/* Homepage Genesis spot modal for accounts on the Genesis list.
   Copied from checker-assets/styles.css (spot / list-status / stamp / modal rules) so /checker stays untouched. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.card-dialog {
  display: flex;
  flex-direction: column;
  width: min(440px, calc(100% - 28px));
  max-height: calc(100svh - 32px);
  transform: none;
  padding: 10px clamp(16px, 4vw, 28px) 22px;
  border-top: 4px solid var(--blue);
  border-radius: 12px;
  text-align: center;
  overscroll-behavior: contain;
}
/* Keep the close control in its own row above the card so it never overlaps the image, including on narrow phones. */
.card-dialog .dialog-x {
  position: relative;
  top: auto;
  right: auto;
  align-self: flex-end;
  flex: 0 0 auto;
  margin: 0 0 8px auto;
}
.card-dialog .card-preview {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1229 / 1536;
  border-radius: 10px;
  background: #0b3a9c;
  box-shadow: 0 8px 24px #1025441f;
}
.list-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
  margin: 24px 0;
  text-align: left;
}
.list-status-icon {
  display: grid;
  place-items: center;
  align-self: stretch;
  box-sizing: border-box;
  width: 48px;
  height: auto;
  border-radius: 8px;
}
.list-status-icon svg {
  display: block;
  width: 46%;
  height: 46%;
}
.list-status.is-pending .list-status-icon {
  background: #1a1a18;
  border: 1px solid #111;
  color: #fff;
}
.list-status.is-on .list-status-icon {
  background: #e3e8dc;
  border: 1px solid #ccd1c2;
  color: #4d5840;
}
.list-status-copy { min-width: 0; }
.list-status-copy .eyebrow {
  margin: 0 0 5px;
  color: #6b6b69;
  letter-spacing: .12em;
}
.list-status-copy h3 {
  margin: 0;
  color: #1a1a18;
  font-size: clamp(18px, 5vw, 22px);
  font-weight: 560;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.list-status-copy h3:focus { outline: none; }
.list-status-copy p:not(.eyebrow) {
  margin: 6px 0 0;
  color: #6b6b69;
  font-size: 13px;
  line-height: 1.45;
}
.card-dialog .dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 0;
}
.card-dialog .dialog-actions .button { min-height: 44px; font-size: 14px; font-weight: 550; border-radius: 6px; }
.card-copy-status { margin: 10px 0 0; min-height: 1.2em; font-size: 13px; }
.card-copy-status.ok { color: #0d7a3b; }
.card-copy-status.error { color: var(--red-text); }
.check-feedback.is-error { background: var(--red-light); color: var(--red-text); }
@media (max-width: 640px) {
  .list-status { margin: 18px 0; }
}
@media (max-width: 400px) {
  .card-dialog .dialog-actions { grid-template-columns: 1fr; }
  .list-status { gap: 12px; margin: 18px 0; }
  .list-status-copy .eyebrow { letter-spacing: .08em; }
  .list-status-copy p:not(.eyebrow) { font-size: 12.5px; line-height: 1.4; }
}

/* Checker: card, list status, wallet, nomination, secure a spot. */
.spot-wrap { max-width: 560px; margin: 0 auto; padding: 28px 16px 40px; }
.spot-panel { text-align: left; }
.spot-panel > .spot-intro { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.spot-panel #check { min-height: 44px; border-radius: 6px; font-size: 14px; font-weight: 550; }
.checker .spot-panel .list-status:first-child { margin-top: 14px; }
.spot-title { margin: 8px 0 8px; font-size: clamp(30px, 8vw, 40px); font-weight: 560; letter-spacing: -.035em; line-height: 1.05; }
.spot-lede { margin: 0 auto 20px; max-width: 340px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.spot-panel .card-preview { display: block; width: 100%; height: auto; aspect-ratio: 1229 / 1536; border-radius: 10px; background: #0b3a9c; box-shadow: 0 8px 24px #1025441f; }
.spot-panel .list-status { margin: 20px 0 6px; }
.list-status.is-secured .list-status-icon { background: #e8f8ee; border: 1px solid #bfe6cc; color: #0d7a3b; }
.spot-section { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.spot-label { display: block; margin: 0 0 7px; color: var(--subtle); font-size: 11px; font-weight: 560; line-height: 16px; letter-spacing: .085em; text-transform: uppercase; }
.spot-field { margin-top: 0; }
.spot-field input { font-size: 16px; }
.spot-field input[aria-invalid="true"] { border-color: var(--red); outline-color: var(--red); }
.spot-wallet { display: flex; align-items: center; gap: 10px; }
.spot-wallet code { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--canvas); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; overflow-wrap: anywhere; }
.spot-wallet code .full { display: none; }
.spot-change { flex: 0 0 auto; min-height: 42px; border-radius: 6px; font-size: 14px; font-weight: 550; }
.spot-inline-actions { display: flex; gap: 8px; margin-top: 10px; }
.spot-inline-actions .button { min-height: 40px; border-radius: 6px; font-size: 14px; font-weight: 550; }
.spot-nominee { margin: 0; font-size: 15px; font-weight: 550; }
.spot-nominee a { color: var(--blue-hover); text-decoration: none; }
.spot-nominee a:hover { text-decoration: underline; }
.spot-error { margin: 14px 0 0; padding: 9px 11px; border-radius: 6px; font-size: 13px; text-align: left; }
.spot-cta { min-height: 48px; margin-top: 18px; border-radius: 6px; font-size: 15px; font-weight: 550; }
.spot-cta:disabled, .spot-inline-actions .button:disabled { opacity: .7; cursor: default; }
.spot-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.spot-actions .button { min-height: 46px; font-size: 14px; font-weight: 550; border-radius: 6px; }
.spot-panel .card-copy-status { text-align: center; }
.spot-loading { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.spot-account { margin: 18px 0 0; color: var(--muted); font-size: 12.5px; text-align: center; }
.spot-link { padding: 0; border: 0; background: none; color: var(--blue-hover); font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 400px) {
  .spot-wrap { padding: 16px 12px 28px; }
}

/* v2: bigger, livelier "You're on the list" / "Secured" status. */
.spot-panel .list-status.is-on, .spot-panel .list-status.is-secured { align-items: center; gap: 16px; margin-top: 22px; }
.spot-panel .list-status.is-on .list-status-copy h3, .spot-panel .list-status.is-secured .list-status-copy h3 { font-size: clamp(28px, 8vw, 36px); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; color: var(--ink); }
.spot-panel .list-status.is-on .list-status-copy p { margin-top: 8px; font-size: 13.5px; }
.spot-panel .list-status.is-on .list-status-icon, .spot-panel .list-status.is-secured .list-status-icon {
  position: relative;
  width: 64px; height: 64px; min-width: 64px; align-self: center;
  border-radius: 16px;
  animation: spot-pop .55s cubic-bezier(.2, 1.6, .4, 1) both;
}
.spot-panel .list-status.is-on .list-status-icon svg, .spot-panel .list-status.is-secured .list-status-icon svg { width: 58%; height: 58%; }
.spot-panel .list-status.is-on .list-status-icon svg path, .spot-panel .list-status.is-secured .list-status-icon svg path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: spot-draw .45s ease-out .3s forwards; }
.spot-panel.is-secured .list-status { justify-content: center; grid-template-columns: auto auto; margin: 22px 0 4px; }
@keyframes spot-pop { 0% { transform: scale(.4) rotate(-12deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes spot-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .spot-panel .list-status-icon, .spot-panel .list-status-icon svg path { animation: none !important; stroke-dashoffset: 0 !important; }
}
@media (max-width: 400px) {
  .spot-panel .list-status.is-on .list-status-icon, .spot-panel .list-status.is-secured .list-status-icon { width: 56px; height: 56px; min-width: 56px; border-radius: 14px; }
}
.spot-panel.is-on .list-status, .spot-panel.is-loading .list-status { margin-top: 14px; }

/* Modal: "Are you in?" flow over the blurred page until the spot is secured. */
body.spot-locked { overflow: hidden; }
.spot-modal {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  overflow-y: auto; overscroll-behavior: contain;
  background: #0b1b3a59;
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
}
.spot-modal[hidden] { display: none; }
.spot-modal-card {
  width: min(440px, 100%);
  margin: auto;
  padding: clamp(18px, 4.5vw, 28px);
  border: 0; border-top: 4px solid var(--blue); border-radius: 14px;
  box-shadow: 0 24px 64px #0b1b3a4d, 0 2px 8px #10254414;
  animation: spot-modal-in .28s ease-out both;
}
@keyframes spot-modal-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.spot-modal .spot-panel.is-loading-session { min-height: 180px; }
.spot-panel.is-signed-out { text-align: center; padding-block: 10px 4px; }
.spot-panel.is-signed-out .spot-cta { margin-top: 0; }
.spot-modal .spot-panel .list-status:first-child { margin-top: 0; }
@media (max-width: 520px) {
  .spot-modal { place-items: start center; padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right)); }
  .spot-modal-card { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .spot-modal-card { animation: none; } }

/* Secured: big check + "Secured" stamp centered on the card. */
.spot-card { position: relative; margin-top: 4px; }
/* On-page "APPROVED" rubber stamp across the photo and name (not exported). */
.spot-stamp {
  position: absolute; left: 50%; top: 50%; width: 84%;
  margin: 0; pointer-events: none;
  color: #e8423f; opacity: .85;
  font-family: KH Teka, "Arial Black", Impact, Arial, sans-serif;
  transform: translate(-50%, -50%) rotate(-22deg);
  animation: spot-stamp .4s cubic-bezier(.2, 1.4, .4, 1) .1s both;
}
.spot-stamp svg { display: block; width: 100%; height: auto; overflow: visible; }
.spot-stamp:focus { outline: none; }
.spot-panel.is-secured .spot-actions { margin-top: 16px; }
@keyframes spot-stamp { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-22deg) scale(1.4); } 100% { opacity: .85; transform: translate(-50%, -50%) rotate(-22deg) scale(1); } }
@media (prefers-reduced-motion: reduce) { .spot-stamp { animation: none !important; } }

/* Homepage only: the spot modal can be closed. */
.home-spot-modal .spot-modal-card { position: relative; }
.home-spot-modal .home-spot-close { position: absolute; top: 10px; right: 10px; z-index: 2; }
.home-spot-modal .spot-panel.is-on, .home-spot-modal .spot-panel.is-loading { padding-top: 14px; }
.home-spot-modal .spot-panel.is-secured { padding-top: 26px; }

/* Homepage Genesis access panel: same "Are you in?" sign-in card as /checker. */
.checker .home-signin { padding-block: 6px 2px; }
.checker .home-signin .eyebrow { margin-bottom: 0; }
.checker .home-signin h2.spot-title { margin: 8px 0 8px; color: var(--ink); }
.checker .home-signin #check { min-height: 48px; margin-top: 0; font-size: 15px; }
