:root {
  --uw-gold: #f2c100;
  --uw-gold-strong: #ffd84d;
  --bg: #0b1018;
  --panel: #121924;
  --panel-soft: #0f151f;
  --text: #f7f8fb;
  --muted: #b5bfd2;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.22);
  --danger: #ff9c9c;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  background: #0a0f16;
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Sora", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #0a0f16;
  background:
    radial-gradient(900px 500px at 12% 0%, rgba(242, 193, 0, 0.14), transparent 60%),
    linear-gradient(180deg, #0b1018 0%, #0a0f16 100%);
  overscroll-behavior-y: none;
}

.landing-page {
  background: #06090f;
}

.page-video-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
  filter: saturate(1.05) brightness(0.58);
}

.page-video-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(850px 420px at 18% 0%, rgba(242, 193, 0, 0.14), transparent 65%),
    linear-gradient(180deg, rgba(6, 10, 16, 0.42) 0%, rgba(6, 10, 16, 0.7) 100%);
}

.landing-page .shell {
  position: relative;
  z-index: 2;
}

.landing-page .card {
  background: rgba(10, 15, 22, 0.6);
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

.preferences-page .shell {
  padding: 14px;
}

.preferences-page .page-video-overlay {
  background: linear-gradient(180deg, rgba(2, 6, 12, 0.72) 0%, rgba(2, 6, 12, 0.86) 100%);
}

.preferences-page .preferences-card {
  width: min(860px, 100%);
  padding: 18px 18px 12px;
  border-radius: 14px;
  background: rgba(6, 12, 22, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(10px);
}

.preferences-page h1 {
  margin: 0;
  line-height: 1.12;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
}

.preferences-page .lead {
  margin: 4px 0 10px;
  color: #c0cadd;
  font-size: 0.96rem;
}

.preferences-page .compact-form {
  gap: 9px;
}

.preferences-page label {
  margin: 0 0 6px;
  font-size: 0.86rem;
  font-weight: 650;
}

.preferences-page input:not([type="checkbox"]):not([type="hidden"]) {
  padding: 11px 12px;
  font-size: 0.95rem;
  border-radius: 10px;
  border-color: rgba(255, 255, 255, 0.24);
}

.preferences-page .switch-row {
  padding: 8px 10px;
  border-radius: 10px;
}

.preferences-page .switch-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
}

.preferences-page .preferences-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.preferences-page .notify-group {
  margin: 0;
  min-height: 0;
  padding: 8px 8px 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(5, 10, 18, 0.72);
}

.preferences-page .notify-group legend {
  letter-spacing: 0.04em;
  font-size: 0.72rem;
  color: #b9c5da;
}

.preferences-page .options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-items: stretch;
}

.preferences-page .checkbox {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
  min-height: 38px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  background: rgba(3, 8, 15, 0.72);
}

.preferences-page .checkbox + .checkbox {
  margin-top: 0;
}

.preferences-page .checkbox input {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 16px;
  accent-color: var(--uw-gold);
}

.preferences-page .checkbox span {
  display: block;
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  font-size: 0.86rem;
  font-weight: 560;
}

.preferences-page .error {
  min-height: 0.8rem;
  margin: 5px 1px 0;
  font-size: 0.72rem;
}

.preferences-page .submit-row {
  margin-top: 2px;
}

.preferences-page .submit-row button {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
}

.preferences-page .fineprint {
  margin-top: 6px;
  font-size: 0.78rem;
}

.shell {
  min-height: 100vh;
  width: 100%;
  padding: 24px 16px;
  display: grid;
  place-items: center;
}

.card {
  width: min(560px, 100%);
  padding: 30px 26px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--panel), var(--panel-soft));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

.card.success {
  text-align: center;
}

.club-logo {
  display: block;
  width: min(150px, 46%);
  margin: 0 auto 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.eyebrow {
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

h1 {
  margin: 10px 0 8px;
  text-align: center;
  line-height: 1.1;
  font-size: clamp(1.55rem, 3.8vw, 2.2rem);
}

.gold {
  color: var(--uw-gold);
}

.lead {
  margin: 0 0 22px;
  text-align: center;
  color: var(--muted);
  font-size: 0.97rem;
}

.form {
  margin-top: 8px;
}

.stack {
  display: grid;
  gap: 14px;
}

label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e7f2;
}

.input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-wrap input {
  flex: 1;
}

input,
button,
.linkbtn {
  font: inherit;
  border-radius: 10px;
}

input:not([type="checkbox"]):not([type="hidden"]) {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line-strong);
  background: #0a0f16;
  color: var(--text);
}

input::placeholder {
  color: #8f98aa;
}

input:focus {
  outline: none;
  border-color: rgba(242, 193, 0, 0.9);
  box-shadow: 0 0 0 3px rgba(242, 193, 0, 0.2);
}

input[readonly] {
  background: rgba(255, 255, 255, 0.05);
  color: #e8ebf2;
}

button,
.linkbtn {
  border: 1px solid rgba(0, 0, 0, 0.3);
  background: linear-gradient(145deg, var(--uw-gold-strong), var(--uw-gold));
  color: #111317;
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  padding: 12px 16px;
  cursor: pointer;
  transition: filter 120ms ease, transform 120ms ease;
}

button:hover,
.linkbtn:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

button:active,
.linkbtn:active {
  transform: translateY(0);
}

button[disabled],
.linkbtn[disabled] {
  opacity: 0.72;
  cursor: not-allowed;
  filter: none;
  transform: none;
}

.notify-group {
  margin: 16px 0 2px;
  padding: 14px 12px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(5, 8, 12, 0.35);
}

.notify-group legend {
  padding: 0 6px;
  margin-left: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 10px;
  border-radius: 9px;
  border: 1px solid transparent;
}

.checkbox + .checkbox {
  margin-top: 7px;
}

.checkbox:hover {
  border-color: rgba(242, 193, 0, 0.45);
  background: rgba(242, 193, 0, 0.08);
}

.checkbox input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--uw-gold);
}

.checkbox span {
  color: #e9edf5;
  font-size: 0.95rem;
  font-weight: 500;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(5, 8, 12, 0.35);
}

.switch-label {
  margin: 0;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.switch-track {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(90, 100, 120, 0.35);
  transition: background-color 140ms ease, border-color 140ms ease;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f2f4f8;
  transition: transform 140ms ease;
}

.switch input:checked + .switch-track {
  background: rgba(242, 193, 0, 0.26);
  border-color: rgba(242, 193, 0, 0.72);
}

.switch input:checked + .switch-track::after {
  transform: translateX(20px);
  background: #fff4c8;
}

.switch input:focus-visible + .switch-track {
  box-shadow: 0 0 0 3px rgba(242, 193, 0, 0.22);
}

.switch-text {
  min-width: 26px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.error {
  min-height: 1.1rem;
  margin: 8px 2px 2px;
  font-size: 0.83rem;
  color: var(--danger);
}

.fineprint {
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
}

.inline-link {
  color: var(--uw-gold);
  text-underline-offset: 3px;
}

.inline-link:hover {
  color: #ffe38a;
}

.hidden {
  display: none;
}

[hidden] {
  display: none !important;
}

.submit-row {
  margin-top: 12px;
}

.corner-github {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 11px;
  border-radius: 999px;
  border: 1px solid rgba(242, 193, 0, 0.45);
  background: rgba(6, 8, 12, 0.9);
  color: var(--uw-gold);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
}

.corner-github:hover {
  background: rgba(12, 14, 19, 0.95);
}

@media (max-width: 640px) {
  .card {
    padding: 24px 18px;
    border-radius: 14px;
  }

  .input-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .preferences-page .preferences-grid {
    grid-template-columns: 1fr;
  }

  .preferences-page .preferences-card {
    padding: 18px 14px 12px;
    border-radius: 14px;
  }

  .preferences-page h1 {
    font-size: clamp(1.5rem, 7vw, 1.95rem);
  }

  .preferences-page .lead {
    margin-bottom: 12px;
    font-size: 0.93rem;
  }

  .preferences-page label {
    margin-bottom: 6px;
    font-size: 0.9rem;
  }

  .preferences-page .notify-group {
    min-height: 0;
  }

  .preferences-page .options-grid {
    grid-template-columns: 1fr;
  }

  .preferences-page .submit-row button {
    font-size: 1.05rem;
    padding: 13px 15px;
    border-radius: 12px;
  }
}
