/* ikewyd signup overlay — drop-in styles. Namespaced under .ikey-su-* */

@font-face {
  font-family: "IBM Plex Mono";
  src: url(resources/fonts/IBMPlexMono-Regular.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.ikey-su-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  justify-content: center;
  overflow-y: auto;
  padding: 56px 24px;
  z-index: 50;
  animation: ikey-su-in 0.35s ease;
}
.ikey-su-overlay[hidden] { display: none; }
@keyframes ikey-su-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ikey-su-card { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ikey-su-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes ikey-su-card-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(14px); } }
.ikey-su-overlay.closing { animation: ikey-su-out 0.32s ease forwards; }
.ikey-su-overlay.closing .ikey-su-card { animation: ikey-su-card-out 0.32s ease forwards; }

.ikey-su-card {
  width: min(440px, calc(100vw - 48px));
  margin: auto;
  text-align: center;
  color: #fff;
  animation: ikey-su-card 0.45s ease;
}
.ikey-su-card .ikey-su-logo { width: min(230px, 60vw); object-fit: contain; margin-bottom: 22px; filter: url(#ikey-scribble-logo); }

.ikey-su-headline {
  font-family: "kola", monospace;
  font-size: 18px;
  letter-spacing: 0.35em;
  line-height: 1.9;
  margin-bottom: 36px;
  filter: url(#ikey-scribble);
}

.ikey-su-form { display: flex; flex-direction: column; gap: 22px; text-align: left; }
.ikey-su-form input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  color: #fff;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 15px;
  letter-spacing: 0.1em;
  padding: 12px 2px;
  outline: none;
  width: 100%;
}
.ikey-su-form input::placeholder { color: rgba(255, 255, 255, 0.35); letter-spacing: 0.12em; }
.ikey-su-form input:-webkit-autofill,
.ikey-su-form input:-webkit-autofill:hover,
.ikey-su-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #0b0b0b inset;
  caret-color: #fff;
}
.ikey-su-form input:focus { border-bottom-color: #fff; }

.ikey-su-hint {
  margin-top: -10px;
  text-align: center;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.3s;
}
.ikey-su-hint.attn { color: #fff; }

.ikey-su-submit {
  margin-top: 10px;
  background: #fff;
  color: #000;
  border: none;
  font-family: "kola", monospace;
  font-size: 17px;
  letter-spacing: 0.4em;
  padding: 17px 0 16px 8px;
  cursor: pointer;
  width: 100%;
  transition: background 0.25s;
}
.ikey-su-submit:hover { background: #c9c9c9; }

.ikey-su-dismiss {
  margin-top: 22px;
  background: none;
  border: none;
  color: #9a9a9a;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 14px;
  letter-spacing: 0.3em;
  cursor: pointer;
  padding: 6px;
}
.ikey-su-dismiss:hover { text-decoration: line-through; }

.ikey-su-noshow {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 11.5px;
  letter-spacing: 0.15em;
  color: #9a9a9a;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.ikey-su-noshow input {
  appearance: none;
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  cursor: pointer;
  display: grid;
  place-content: center;
}
.ikey-su-noshow input:checked::before {
  content: "\2715";
  color: #fff;
  font-size: 10px;
  line-height: 1;
}
.ikey-su-noshow:hover { color: #c9c9c9; }
.ikey-su-noshow[hidden] { display: none; }

.ikey-su-legal {
  margin-top: 24px;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 10.5px;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.45);
}
.ikey-su-legal a { color: rgba(255, 255, 255, 0.5); }

.ikey-su-done {
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 15px;
  letter-spacing: 0.3em;
  padding: 30px 0 40px;
}

.ikey-su-close {
  position: fixed;
  top: 22px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 17px;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  cursor: pointer;
  padding: 12px;
  z-index: 51;
}
.ikey-su-close:hover { color: #8a8a8a; }

.ikey-su-envelope {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 40;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 10px;
  transition: transform 0.3s cubic-bezier(0.13, 0.71, 0.46, 0.98);
}
.ikey-su-envelope:hover { transform: scale(1.2); }
.ikey-su-envelope svg { transform: rotate(-8deg); display: block; }
.ikey-su-envelope[hidden] { display: none; }
@keyframes ikey-su-pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes ikey-su-fade { from { opacity: 0; } to { opacity: 1; } }
