/* Spin Wheel Creator participant gate (sign-up form before spinning). */

.swc-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 8, 24, 0.6);
}

.swc-gate-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  /* The off-screen honeypot field must not add a sideways scrollbar. */
  overflow-x: hidden;
  padding: 28px 24px 20px;
  border-radius: 16px;
  background: #fff;
  color: #1a1a2e;
  font-family: var(--font, system-ui, sans-serif);
  font-size: 14px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
}

.swc-gate-modal h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.swc-gate-lead {
  margin: 0 0 16px;
  color: #55556a;
}

.swc-gate-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: none;
  color: #8a8aa0;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.swc-gate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.swc-gate-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.swc-gate-field > label {
  font-weight: 600;
}

.swc-gate-field input:not([type='checkbox']),
.swc-gate-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 11px;
  border: 1px solid #cfcfdc;
  border-radius: 8px;
  background: #fff;
  color: #1a1a2e;
  font: inherit;
}

.swc-gate-field input[aria-invalid='true'],
.swc-gate-field select[aria-invalid='true'] {
  border-color: #c0392b;
}

.swc-gate-field--check label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 500;
  cursor: pointer;
}

.swc-gate-field--check input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex-shrink: 0;
  accent-color: #4f46e5;
}

.swc-gate-error {
  min-height: 0;
  color: #c0392b;
  font-size: 12px;
  font-weight: 600;
}

.swc-gate-error:empty {
  display: none;
}

.swc-gate-form-error {
  margin: 0;
  color: #c0392b;
  font-weight: 600;
}

.swc-gate-form-error:empty {
  display: none;
}

.swc-gate-privacy {
  margin: 0;
  font-size: 12px;
}

.swc-gate-privacy a,
.swc-gate-privacy .swc-gate-link {
  color: #4f46e5;
}

.swc-gate-legal {
  display: grid;
  gap: 8px;
  color: #5b5b72;
  text-align: center;
}

.swc-gate-legal-text {
  max-height: 180px;
  overflow-y: auto;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f3f3f8;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}

.swc-gate-legal-text p {
  margin: 6px 0 0;
}

.swc-gate-google {
  display: flex;
  justify-content: center;
  min-height: 44px;
}

/* Confirm email: Google, "or", then email → 6-digit code */
.swc-gate-verify {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  background: #f5f5fb;
}

.swc-gate-or {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8a8aa0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.swc-gate-or::before,
.swc-gate-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #dcdce8;
}

.swc-gate-code-step[hidden] {
  display: none;
}

.swc-gate-inline {
  display: flex;
  gap: 8px;
}

.swc-gate-inline input {
  flex: 1;
  min-width: 0;
}

.swc-gate-inline .swc-gate-btn {
  flex: none;
  padding: 9px 14px;
  white-space: nowrap;
}

.swc-gate-field input[name='_code'] {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 6px;
  text-align: center;
}

.swc-gate-code-note {
  margin: 0 0 8px;
  color: #55556a;
}

.swc-gate-code-links {
  margin: 6px 0 0;
  color: #4f46e5;
  font-size: 12px;
}

.swc-gate-code-links .swc-gate-link:disabled {
  color: #8a8aa0;
  text-decoration: none;
  cursor: default;
}

@media (max-width: 380px) {
  .swc-gate-inline {
    flex-direction: column;
  }
}

.swc-gate-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.swc-gate-btn {
  padding: 9px 18px;
  border: 1px solid #cfcfdc;
  border-radius: 999px;
  background: #fff;
  color: #1a1a2e;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.swc-gate-btn--primary {
  border-color: #4f46e5;
  background: #4f46e5;
  color: #fff;
}

.swc-gate-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.swc-gate-btn:focus-visible,
.swc-gate-field input:focus-visible,
.swc-gate-field select:focus-visible,
.swc-gate-close:focus-visible,
.swc-gate-link:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

.swc-gate-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* "Spinning as … · Not you?" under the page title */
.swc-gate-chip {
  margin: 4px 0 0;
  color: var(--txt, #fff);
  font-family: var(--font, system-ui, sans-serif);
  font-size: 13px;
  text-align: center;
  opacity: 0.85;
}

.swc-gate-link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
