/* Hoodies waitlist — extracted from style.css so the Hoodcamp shell does not load the legacy stylesheet. */
@keyframes rhLogoFloat {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-8px) scale(1.02); }
}

/* ===== Hoodies waitlist (Robinhood migration) ===== */
/* Override login/maintenance lock so the waitlist can scroll fullscreen */
html.wl-active,
body.wl-active,
html.wl-active.maintenance-active,
body.wl-active.maintenance-active,
html.wl-active.login-active,
body.wl-active.login-active {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  height: 100dvh !important;
  max-height: none !important;
  margin: 0 !important;
  overflow: hidden !important;
}
body.wl-active.login-active #app,
body.wl-active.maintenance-active.login-active #app,
body.wl-active #app {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  height: 100dvh !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #07101f !important;
  display: block !important;
  transform: none !important;
}
.wl-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 50% -10%, #2a4a9a55, transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 80%, #ffc43a22, transparent 55%),
    linear-gradient(165deg, #07101f 0%, #0c1830 42%, #0a1224 100%);
}
.wl-grid {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(#ffffff12 1px, transparent 1px),
    linear-gradient(90deg, #ffffff12 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}
.wl-klax {
  position: absolute;
  opacity: 0.18;
  filter: drop-shadow(0 12px 28px #000a);
  animation: wlKlaxDrift 7s ease-in-out infinite alternate;
}
.wl-klax--a { left: -2%; bottom: 6%; width: min(240px, 38vw); height: auto; }
.wl-klax--b { right: -1%; top: 12%; width: min(190px, 30vw); height: auto; animation-delay: -2.5s; }
@keyframes wlKlaxDrift {
  from { transform: translateY(0) rotate(-2deg); }
  to { transform: translateY(-14px) rotate(3deg); }
}
.wl-screen {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: 100%;
  max-width: 1180px;
  min-height: 100%;
  min-height: 100dvh;
  margin: 0 auto;
  padding:
    max(20px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(40px, env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.wl-admin-bar { grid-area: admin; }
.wl-hero { grid-area: hero; }
.wl-alerts { grid-area: alert; display: flex; flex-direction: column; gap: 10px; }
.wl-area-quests { grid-area: quests; }
.wl-area-invite { grid-area: invite; }
.wl-area-points { grid-area: points; }
.wl-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  padding: 12px 10px 4px;
  border-top: 1px solid #ffffff12;
  margin-top: 0;
}
.wl-page-info {
  font-size: 12px;
  color: #9aabcc;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.wl-page-btn { min-width: 88px; }
.wl-area-foot { grid-area: foot; }
.wl-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px 20px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #ffd23d28;
}
.wl-hero-copy {
  min-width: 0;
}
.wl-logo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 30px #0008, 0 0 0 2px #ffd23d55;
  animation: rhLogoFloat 4.5s ease-in-out infinite alternate;
}
.wl-brand {
  margin: 0 0 4px;
  font-family: "Lilita One", "Russo One", Impact, sans-serif;
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffe34d;
  -webkit-text-stroke: 3.5px #142a66;
  paint-order: stroke fill;
  text-shadow: 0 3px 0 #0b1a44, 0 8px 18px #0008;
}
.wl-title {
  margin: 0 0 8px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(18px, 3.4vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  color: #f4f7ff;
  max-width: none;
}
.wl-sub {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: #b7c3de;
  max-width: 68ch;
}
.wl-hero-steps {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wl-hero-steps li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid #ffffff18;
  background: #ffffff08;
  color: #d5def3;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.wl-hero-steps li span {
  color: #ffe34d;
  font-family: "Lilita One", Impact, sans-serif;
  font-size: 13px;
  -webkit-text-stroke: 1.5px #142a66;
  paint-order: stroke fill;
}
.wl-score {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 6px;
  border: 1px solid #ffd23d44;
  background: linear-gradient(160deg, #ffd23d18, #0a1428cc);
  line-height: 1.1;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 56px;
}
.wl-score-label {
  display: block;
  width: 100%;
  font-size: 10px;
  letter-spacing: 0.02em;
  color: #c9d2ea;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wl-score-num {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: #ffe34d;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  font-variant-numeric: tabular-nums;
}
.wl-board-card {
  padding: 14px;
  border: 1px solid #ffffff14;
  background: linear-gradient(160deg, #ffffff08, #0a142888);
}
.wl-alert {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid #ff6b7a;
  background: #ff6b7a18;
  color: #ffd0d6;
  font-size: 13px;
}
.wl-alert--warn {
  border-left-color: #ffd23d;
  background: #ffd23d14;
  color: #ffe9a8;
}
.wl-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wl-section-head h2 {
  margin: 0 0 4px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #f4f7ff;
}
.wl-section-head p {
  margin: 0;
  font-size: 13px;
  color: #9aabcc;
  line-height: 1.4;
}
.wl-tasks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wl-task {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 14px 14px 14px 10px;
  border: 1px solid #ffffff14;
  background: linear-gradient(120deg, #ffffff08, #0a142888);
  transition: border-color .2s ease, background .2s ease;
}
.wl-task.is-done {
  border-color: #3dd68c44;
  background: linear-gradient(120deg, #3dd68c12, #0a142888);
}
.wl-task-index {
  font-family: "Lilita One", Impact, sans-serif;
  font-size: 22px;
  color: #ffe34d99;
  -webkit-text-stroke: 2px #142a66;
  paint-order: stroke fill;
  text-align: center;
  padding-top: 2px;
}
.wl-task.is-done .wl-task-index { color: #3dd68c; }
.wl-task-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.wl-task-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #f4f7ff;
}
.wl-task-hint {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: #9aabcc;
  line-height: 1.4;
}
.wl-badge {
  font-size: 11px;
  font-weight: 700;
  color: #ffe34d;
  white-space: nowrap;
}
.wl-badge--done { color: #3dd68c; }
.wl-task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.wl-verify-msg {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: #ff3b3b;
  line-height: 1.25;
  letter-spacing: 0.01em;
}
.wl-verify-msg[hidden] {
  display: none !important;
}
.wl-link {
  font-size: 12.5px;
  font-weight: 700;
  color: #8eb6ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.wl-btn {
  appearance: none;
  border: 1px solid #ffd23d66;
  background: linear-gradient(180deg, #ffe34d, #f0b429);
  color: #142a66;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 800;
  font-size: 13px;
  padding: 9px 14px;
  cursor: pointer;
  box-shadow: 0 6px 16px #0005;
}
.wl-btn:hover:not(:disabled) { filter: brightness(1.06); }
.wl-btn:disabled {
  opacity: 0.55;
  cursor: default;
  filter: none;
}
.wl-btn--verify {
  background: linear-gradient(180deg, #3a6dff, #244fd6);
  border-color: #6b90ff88;
  color: #fff;
}
.wl-btn--verify.is-retry {
  background: linear-gradient(180deg, #ff4d4d, #c62828);
  border-color: #ff7b7b99;
  color: #fff;
}
.wl-btn--ghost {
  background: transparent;
  border-color: #3dd68c66;
  color: #3dd68c;
  box-shadow: none;
}
.wl-ref-box {
  padding: 14px;
  border: 1px solid #ffd23d33;
  background: #ffd23d0c;
}
.wl-ref-label {
  display: block;
  font-size: 12px;
  color: #c9d2ea;
  margin-bottom: 6px;
}
.wl-ref-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.wl-ref-input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #ffffff22;
  background: #060d1a;
  color: #f4f7ff;
  font-size: 13px;
}
.wl-ref-stats {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: #9aabcc;
}
.wl-ref-locked {
  margin: 0;
  font-size: 13px;
  color: #9aabcc;
}
.wl-leaders {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #ffffff14;
}
.wl-lead-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #ffffff10;
  font-size: 13px;
}
.wl-lead-row:last-child { border-bottom: 0; }
.wl-lead-rank { color: #ffe34d; font-weight: 800; }
.wl-lead-name { color: #e8eefc; font-weight: 600; }
.wl-lead-pts { color: #9aabcc; font-variant-numeric: tabular-nums; }
.wl-lead-empty {
  padding: 14px 12px;
  color: #9aabcc;
  font-size: 13px;
}
.wl-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid #ffffff14;
}
.wl-discord {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  background: linear-gradient(180deg, #6875f5, #5865f2);
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid #5865f299;
}
.wl-admin {
  appearance: none;
  background: transparent;
  border: 0;
  color: #7a8aaa;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.wl-admin-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #ffd23d55;
  background: #ffd23d14;
  color: #ffe9a8;
  font-size: 13px;
  font-weight: 700;
}
.wl-username-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.wl-username-row .wl-ref-input { flex: 1 1 160px; }

.wl-account {
  grid-area: account;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  width: min(420px, 100%);
  margin: 0 auto;
  justify-self: center;
  padding: 12px 16px;
  border: 1px solid #ffd23d44;
  background: linear-gradient(160deg, #ffd23d14, #0a1428cc);
}
.wl-account-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.wl-account-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffd23d66;
  background: #0a1428;
  flex: 0 0 auto;
}
.wl-account-avatar--empty {
  background: linear-gradient(160deg, #2a4a9a55, #0a1428);
}
.wl-account-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.wl-account-label {
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9aabcc;
}
.wl-account-name {
  font-size: 15px;
  font-weight: 800;
  color: #f4f7ff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wl-account-handle {
  font-size: 12px;
  color: #ffe34d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wl-board-locked .wl-section-head p {
  margin: 0;
}

.wl-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  justify-self: end;
  align-self: start;
  width: min(240px, 100%);
}
.wl-hero-stats .wl-score {
  width: 100%;
  height: 100%;
  min-width: 0;
  justify-self: stretch;
  align-self: stretch;
}
.wl-hero-stats .wl-score--total {
  grid-column: 1 / -1;
}
/* Logged out: Registered under Total points, same width/center (not stuck left) */
.wl-hero-stats--public {
  grid-template-columns: 1fr;
}
.wl-hero-stats--public .wl-score--total,
.wl-hero-stats--public .wl-score--registered {
  grid-column: 1;
  width: 100%;
}

/* Desktop: full-bleed two-column layout */
@media (min-width: 900px) {
  .wl-screen {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.95fr);
    grid-template-areas:
      "admin admin"
      "hero hero"
      "alert alert"
      "account account"
      "quests invite"
      "points points"
      "foot foot";
    align-content: start;
    gap: 20px 24px;
    padding:
      max(28px, env(safe-area-inset-top))
      max(32px, env(safe-area-inset-right))
      max(48px, env(safe-area-inset-bottom))
      max(32px, env(safe-area-inset-left));
  }
  .wl-hero {
    gap: 18px 24px;
  }
  .wl-hero-stats {
    grid-template-columns: repeat(2, 1fr);
    width: 248px;
    gap: 10px;
  }
  .wl-hero-stats .wl-score {
    min-height: 64px;
    padding: 8px 10px;
  }
  .wl-hero-stats .wl-score--total {
    min-height: 56px;
  }
  .wl-score-num { font-size: 26px; letter-spacing: -0.02em; }
  .wl-sub { font-size: 15px; }
  .wl-logo { width: 96px; height: 96px; }
  .wl-klax { opacity: 0.22; }
  .wl-klax--a { width: min(280px, 22vw); }
  .wl-klax--b { width: min(220px, 18vw); }
}

@media (min-width: 1200px) {
  .wl-screen {
    max-width: 1280px;
    padding-left: max(40px, env(safe-area-inset-left));
    padding-right: max(40px, env(safe-area-inset-right));
  }
}

@media (max-width: 640px) {
  .wl-hero {
    grid-template-columns: auto 1fr;
  }
  .wl-hero-stats {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 10px;
    justify-self: stretch;
  }
  /* Logged out: stack Total + Registered full-width, centered with each other */
  .wl-hero-stats--public {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin-inline: auto;
    justify-self: center;
  }
  .wl-hero-stats--public .wl-score--total,
  .wl-hero-stats--public .wl-score--registered {
    grid-column: 1;
    width: 100%;
  }
  .wl-hero-stats .wl-score {
    min-height: 56px;
    padding: 8px 8px;
  }
  .wl-hero-stats .wl-score--total {
    grid-column: 1 / -1;
  }
  .wl-hero-stats--public .wl-score--total {
    grid-column: 1;
  }
  .wl-hero-stats .wl-score-label { font-size: 9px; }
  .wl-hero-stats .wl-score-num { font-size: 18px; }
  .wl-hero-steps li {
    font-size: 11px;
    padding: 6px 8px;
  }
  .wl-klax { opacity: 0.1; }
  .wl-screen {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }
}
@media (prefers-reduced-motion: reduce) {
  .wl-klax, .wl-logo { animation: none; }
}


/* Admin minimal login — centered form only */
html.login-minimal,
body.login-minimal,
html.login-minimal.login-active,
body.login-minimal.login-active {
  background: #0a1020 !important;
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  height: 100dvh !important;
  overflow: hidden !important;
}
body.login-minimal.login-active #app {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #0a1020 !important;
  display: grid !important;
  place-items: center !important;
  transform: none !important;
}
.login-screen--minimal,
.login-screen.login-screen--minimal {
  width: 100% !important;
  max-width: none !important;
  min-height: 100% !important;
  height: 100% !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  place-items: center !important;
  padding: 24px !important;
  box-sizing: border-box !important;
  background: #0a1020 !important;
  border: 0 !important;
  box-shadow: none !important;
}
.login-minimal-box {
  width: min(360px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 20px;
  border: 1px solid #ffffff18;
  background: linear-gradient(160deg, #ffffff0c, #0a1428ee);
  justify-self: center;
  align-self: center;
}
.login-minimal-box .login-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.login-minimal-box .login-field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #9aabcc;
}
.login-minimal-box input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #ffffff22;
  background: #060d1a;
  color: #f4f7ff;
  font-size: 15px;
}
.login-minimal-box .login-submit {
  width: 100%;
  margin-top: 4px;
  padding: 12px 16px;
  font-weight: 800;
}
@media (min-width: 768px) {
  html.login-minimal.login-active:not(.maintenance-active),
  body.login-minimal.login-active:not(.maintenance-active) {
    position: fixed !important;
    inset: 0 !important;
    height: 100dvh !important;
    overflow: hidden !important;
  }
  body.login-minimal.login-active:not(.maintenance-active) #app {
    position: fixed !important;
    inset: 0 !important;
    display: grid !important;
    place-items: center !important;
    height: 100dvh !important;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    transform: none !important;
  }
  body.login-minimal .login-screen,
  body.login-minimal .login-screen--minimal {
    display: grid !important;
    grid-template-columns: 1fr !important;
    place-items: center !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100dvh !important;
    background: #0a1020 !important;
  }
}
