/* Criccasm join — one question per screen, app chrome. */
:root {
  --navy: #16264A;
  --navy-deep: #101A34;
  --navy2: #22375C;
  --orange: #F26522;
  --orange-soft: rgba(242, 101, 34, 0.12);
  --cherry: #E63329;
  --cherry-soft: rgba(230, 51, 41, 0.10);
  --gold: #F5B542;
  --paper: #F4F6F9;
  --surface: #FFFFFF;
  --surface2: #EEF1F6;
  --line: rgba(22, 38, 74, 0.10);
  --ink: #16264A;
  --dim: #5A6B85;
  --faint: #93A0B5;
  --font: "SF Pro Rounded", "SF Compact Rounded", ui-rounded, "Nunito", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
[hidden] { display: none !important; }
body {
  font-family: var(--font);
  background: #FFFFFF;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
}

.join-stage {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  background:
    radial-gradient(1100px 640px at 8% -10%, rgba(242, 101, 34, 0.08), transparent 56%),
    radial-gradient(920px 540px at 96% 4%, rgba(22, 38, 74, 0.06), transparent 52%),
    #FFFFFF;
}

.phone {
  width: min(390px, 100%);
  height: min(844px, calc(100svh - 36px));
  background: var(--paper);
  border-radius: 44px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 0 0 10px #0B1428,
    0 0 0 11px rgba(22, 38, 74, 0.12),
    0 40px 90px rgba(22, 38, 74, 0.18);
}

.notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 118px;
  height: 28px;
  background: #0B1428;
  border-radius: 20px;
  z-index: 5;
}

.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
  background: var(--paper);
  overflow: hidden;
}

.crease-art {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 62%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
}
.crease-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0;
  transition: opacity 0.4s ease;
  -webkit-mask-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 36%,
    rgba(0, 0, 0, 0.30) 78%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 36%,
    rgba(0, 0, 0, 0.30) 78%,
    rgba(0, 0, 0, 0) 100%
  );
}
.crease-art img.is-on { opacity: 1; }

.signup-head {
  padding: 52px 16px 8px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  text-decoration: none;
}
.icon-btn[hidden] { display: none; }
.icon-btn:disabled { opacity: 0.35; cursor: default; }

.lockup-plate {
  background: #fff;
  border-radius: 12px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(22, 38, 74, 0.08);
}
.lockup-plate img { height: 22px; width: auto; display: block; }

.head-spacer {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.signup-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: calc(8px + 5svh) 22px 0;
  min-height: 0;
  position: relative;
  z-index: 1;
  background: transparent;
  transform: none;
}

.kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--orange);
  text-shadow: 0 0 16px var(--paper), 0 0 28px var(--paper);
}
.q {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.4px;
  color: var(--navy);
  margin: 8px 0 0;
  text-shadow: 0 0 16px var(--paper), 0 0 28px var(--paper);
}
.hint {
  color: var(--dim);
  font-size: 14.5px;
  line-height: 1.45;
  margin: 10px 0 0;
  text-shadow: 0 0 16px var(--paper), 0 0 28px var(--paper);
}

.field-wrap { margin-top: 28px; }
.field {
  width: 100%;
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  padding: 16px 16px;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  outline: none;
  box-shadow: 0 8px 24px rgba(22, 38, 74, 0.06);
}
.field:focus { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.field::placeholder { color: var(--faint); font-weight: 600; }

.handle-row, .phone-row {
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(22, 38, 74, 0.06);
}
.handle-row:focus-within, .phone-row:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-soft);
}
.affix {
  display: grid;
  place-items: center;
  padding: 0 14px;
  font-weight: 800;
  color: var(--orange);
  background: var(--orange-soft);
  font-size: 16px;
}
.handle-row .field, .phone-row .field {
  border: 0;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
}
.handle-row .field:focus, .phone-row .field:focus { box-shadow: none; }

.pass-wrap { position: relative; }
.pass-wrap .field { padding-right: 76px; }
.toggle-pass {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
  padding: 6px 10px;
  border-radius: 99px;
  cursor: pointer;
}

.otp {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.otp input {
  width: 100%;
  aspect-ratio: 0.78;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--navy);
  outline: none;
  caret-color: var(--orange);
}
.otp input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }

.err {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--cherry-soft);
  border: 1px solid rgba(230, 51, 41, 0.28);
  color: var(--cherry);
  font-size: 13px;
  font-weight: 700;
}
.err[hidden] { display: none; }

.slip {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7e8;
  border: 1px solid rgba(245, 181, 66, 0.45);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}
.slip[hidden] { display: none; }
.slip b { color: var(--orange); }

.signup-foot {
  margin-top: 22px;
  padding-top: 0;
  padding-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.signup-body > .signup-foot {
  margin-top: 22px;
}
.signup-body.done {
  padding-bottom: 18px;
}

.btn {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 16px 18px;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  background: var(--orange);
  color: #fff;
}
.btn:disabled { background: #C9531B; opacity: 0.7; cursor: default; }
.btn.ghost {
  background: transparent;
  color: var(--dim);
  font-size: 13.5px;
  font-weight: 700;
  padding: 4px;
}

.resend {
  border: 0;
  background: none;
  color: var(--orange);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
  padding: 0;
}

/* Done */
.done {
  text-align: center;
  padding-top: 8px;
}
.jersey {
  width: 92px;
  height: 92px;
  margin: 8px auto 0;
  border-radius: 24px;
  background: linear-gradient(160deg, #16264A, #22375C);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 800;
  box-shadow: 0 16px 32px rgba(22, 38, 74, 0.22);
}
.done .q { font-size: 26px; }
.handle-out {
  color: var(--orange);
  font-weight: 800;
  font-size: 16px;
  margin-top: 8px;
}

@media (max-width: 640px) {
  .join-stage { padding: 0; }
  .phone {
    width: 100%;
    height: 100svh;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
  }
  .notch { display: none; }
  .signup-head { padding-top: 18px; }
}

@media (max-height: 680px) {
  .q { font-size: 24px; }
  .field-wrap { margin-top: 16px; }
}
