

  :root {
    --bg: #0E1028;
    --bg-2: #161938;
    --panel: #1E2247;
    --panel-2: #252A55;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.18);

    --ink: #FFFFFF;
    --ink-soft: #B8BBDF;
    --ink-dim: #7B7FAE;

    --blue: #2D8FD9;
    --blue-bright: #5BC5F2;
    --blue-deep: #1A6EBA;

    --warm: #FF8A4C;
    --pink: #E94B7A;
    --yellow: #FFD66B;
    --purple: #8B5CF6;

    --grad-warm: linear-gradient(135deg, #FFD66B 0%, #FF8A4C 50%, #E94B7A 100%);
    --grad-blue: linear-gradient(135deg, #5BC5F2 0%, #2D8FD9 100%);
    --grad-purple: linear-gradient(135deg, #A78BFA 0%, #7C3AED 100%);

    --shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lift: 0 20px 50px rgba(0, 0, 0, 0.5);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  body.family-challenge-page {
    font-family: 'Changa', sans-serif;
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    background-image:
      radial-gradient(ellipse 1200px 800px at 50% 0%, rgba(139, 92, 246, 0.18), transparent 60%),
      radial-gradient(ellipse 800px 600px at 100% 100%, rgba(233, 75, 122, 0.10), transparent 60%);
    background-attachment: fixed;
  }
  body.family-challenge-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
  }

  
  .page-header {
    background: rgba(10, 12, 31, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 18px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
  }
  .page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #5BC5F2 30%, #FF8A4C 50%, #E94B7A 70%, transparent 100%);
    opacity: 0.7;
  }
  .header-logo {
    height: 42px;
    width: auto;
    filter: drop-shadow(0 0 12px rgba(91, 197, 242, 0.4));
  }
  .header-link {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    transition: all .15s;
  }
  .header-link:hover { color: var(--ink); background: rgba(255,255,255,0.08); }

  
  .main {
    max-width: 920px;
    margin: 0 auto;
    padding: 56px 32px 80px;
    position: relative;
    z-index: 1;
  }

  /* Back to Dashboard — same design as portal-shared (guaranteed on this page) */
  body.family-challenge-page .portal-back-nav {
    margin: 0 0 24px;
  }
  body.family-challenge-page .portal-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.88) !important;
    font-family: 'Changa', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
  }
  body.family-challenge-page .portal-back-link:hover {
    color: #ffffff !important;
    text-decoration: underline;
  }

  .hero {
    text-align: center;
    margin-bottom: 48px;
  }
  .hero-logo {
    width: 130px;
    height: auto;
    margin: 0 auto 18px;
    display: block;
    filter: drop-shadow(0 0 24px rgba(91, 197, 242, 0.45));
  }
  .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: var(--grad-warm);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
  }
  .hero-eyebrow::before,
  .hero-eyebrow::after {
    content: '';
    width: 40px; height: 2px;
    background: linear-gradient(90deg, transparent, #FF8A4C);
    border-radius: 2px;
  }
  .hero-eyebrow::after { background: linear-gradient(90deg, #E94B7A, transparent); }

  .hero-date {
    font-size: 18px;
    font-weight: 600;
    color: var(--blue-bright);
    margin-bottom: 12px;
    letter-spacing: 0.04em;
  }
  .hero h1 {
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1;
    margin-bottom: 18px;
    color: #fff;
  }
  .hero-lead {
    font-size: 17px;
    color: var(--ink-soft);
    line-height: 1.5;
    max-width: 620px;
    margin: 0 auto;
  }
  .hero-lead strong {
    background: var(--grad-warm);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
  }

  
  .video-section {
    margin-bottom: 48px;
  }
  .video-player {
    aspect-ratio: 16/9;
    border-radius: 20px;
    background: linear-gradient(135deg, #1A1340 0%, #3D2080 60%, #6B2787 100%);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-strong);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s, box-shadow .25s;
  }
  .video-player:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  }
  .video-player::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 80% 30%, rgba(91, 197, 242, 0.35), transparent 55%),
      radial-gradient(circle at 20% 100%, rgba(233, 75, 122, 0.3), transparent 55%);
  }
  .video-player::after {
    content: '';
    position: absolute;
    top: 24px; right: 30px;
    width: 80px; height: 80px;
    background-image: radial-gradient(circle, rgba(255,255,255,0.3) 1.5px, transparent 1.5px);
    background-size: 14px 14px;
    opacity: 0.4;
  }
  .video-watch-btn {
    background: var(--grad-warm);
    color: #2A1A0A;
    border: none;
    font-family: inherit;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 18px 32px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 16px 40px rgba(233, 75, 122, 0.5);
    transition: transform .2s, box-shadow .2s;
    position: relative;
    z-index: 1;
  }
  .video-player:hover .video-watch-btn {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(233, 75, 122, 0.7);
  }
  .video-watch-btn svg { width: 18px; height: 18px; }
  .video-caption {
    margin-top: 14px;
    font-size: 13px;
    color: var(--ink-dim);
    text-align: center;
    font-weight: 500;
  }
  .fc-share-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .fc-copy-link-btn {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.06);
    color: var(--ink);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
    padding: 12px 20px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.15s, color 0.15s;
  }
  .fc-copy-link-btn:hover {
    background: rgba(91, 197, 242, 0.14);
    border-color: rgba(91, 197, 242, 0.45);
    color: var(--blue-bright);
  }
  .fc-copy-link-btn:focus-visible {
    outline: 2px solid var(--blue-bright);
    outline-offset: 3px;
  }
  .fc-copy-link-btn.is-copied {
    border-color: rgba(94, 234, 212, 0.5);
    color: #5EEAD4;
  }
  .fc-copy-toast {
    display: none;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    min-height: 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    color: #5EEAD4;
    line-height: 1.4;
    text-align: center;
  }
  .fc-copy-toast.is-visible {
    display: block;
  }

  
  .description {
    max-width: 720px;
    margin: 0 auto 56px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-soft);
  }
  .description p { margin-bottom: 16px; }
  .description p:last-child { margin-bottom: 0; }
  .description strong { color: var(--ink); font-weight: 700; }

  
  .how-section {
    margin-bottom: 64px;
    position: relative;
  }
  .section-title {
    text-align: center;
    margin-bottom: 40px;
  }
  .section-title h2 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
  }
  .section-title h2 .accent-word {
    background: var(--grad-warm);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  
  .how-steps {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    position: relative;
    align-items: start;
  }
  
  .how-steps::before {
    content: '';
    position: absolute;
    top: 44px;
    left: 16.66%;
    right: 16.66%;
    height: 2px;
    background-image: linear-gradient(90deg, var(--blue-bright) 50%, transparent 50%);
    background-size: 14px 2px;
    background-repeat: repeat-x;
    opacity: 0.4;
    z-index: 0;
  }

  .step {
    text-align: center;
    padding: 0 16px;
    position: relative;
    z-index: 1;
  }

  
  .step-icon {
    width: 88px; height: 88px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    position: relative;
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
    transition: transform .25s cubic-bezier(.4,0,.2,1);
  }
  .step:hover .step-icon { transform: translateY(-4px) rotate(-3deg); }

  .step-icon svg {
    width: 44px; height: 44px;
    color: #fff;
    position: relative;
    z-index: 1;
  }
  .step-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: rgba(255,255,255,0.15);
    opacity: 0;
    transition: opacity .25s;
  }
  .step:hover .step-icon::after { opacity: 1; }

  
  .step-num-tag {
    position: absolute;
    top: -8px; right: -8px;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #0E1028;
    color: #fff;
    border: 2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    z-index: 2;
  }

  .step-1 .step-icon {
    background: linear-gradient(135deg, #5BC5F2 0%, #2D8FD9 100%);
  }
  .step-1 .step-num-tag { color: var(--blue-bright); }
  .step-2 .step-icon {
    background: var(--grad-warm);
  }
  .step-2 .step-icon svg { color: #2A1A0A; }
  .step-2 .step-num-tag { color: var(--warm); }
  .step-3 .step-icon {
    background: linear-gradient(135deg, #A78BFA 0%, #7C3AED 100%);
  }
  .step-3 .step-num-tag { color: var(--purple); }

  .step h3 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 6px;
    color: #fff;
    letter-spacing: -0.005em;
  }
  .step p {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.5;
    max-width: 200px;
    margin: 0 auto;
  }

  
  .entry-section {
    margin-bottom: 32px;
  }
  .entry-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
  }

  
  .entry-card-header {
    background: var(--grad-warm);
    padding: 26px 36px;
    text-align: center;
    position: relative;
  }
  .entry-card-header h2 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: #2A1A0A;
  }
  .entry-card-header h2 a {
    color: #2A1A0A;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    font-weight: 800;
  }
  .entry-card-header h2 a:hover {
    color: #fff;
  }
  .entry-card-body.family-challenge-page {
    padding: 36px 40px;
  }

  
  .form {
    position: relative;
    z-index: 1;
    max-width: 540px;
    margin: 0 auto;
  }
  .form-row {
    display: grid;
    gap: 14px;
    margin-bottom: 14px;
  }
  .form-row.two-col { grid-template-columns: 1fr 1fr; }

  .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .field label {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-soft);
    letter-spacing: 0.04em;
  }
  .field label .required-mark { color: var(--pink); margin-left: 2px; }
  .field input,
  .field select {
    background: rgba(10, 12, 31, 0.6);
    border: 1px solid var(--border);
    color: var(--ink);
    padding: 12px 14px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    transition: all .15s;
  }
  .field select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237B7FAE' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-color: rgba(10, 12, 31, 0.6);
    padding-right: 38px;
    cursor: pointer;
  }
  .field input::placeholder { color: var(--ink-dim); }
  .field input:focus,
  .field select:focus {
    outline: none;
    border-color: var(--blue-bright);
    background: rgba(10, 12, 31, 0.85);
    box-shadow: 0 0 0 3px rgba(91, 197, 242, 0.15);
  }

  
  .checkboxes {
    margin: 24px 0 8px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(10, 12, 31, 0.4);
    border: 1px solid var(--border);
    transition: all .15s;
  }
  .check:hover { background: rgba(10, 12, 31, 0.6); border-color: var(--border-strong); }
  .check input {
    appearance: none;
    width: 20px; height: 20px;
    border: 2px solid var(--border-strong);
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
    margin-top: 1px;
    flex-shrink: 0;
    position: relative;
    transition: all .15s;
  }
  .check input:checked {
    background: var(--blue-bright);
    border-color: var(--blue-bright);
  }
  .check input:checked::after {
    content: '';
    position: absolute;
    left: 5px; top: 1px;
    width: 5px; height: 10px;
    border: solid #0E1028;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
  }
  .check-text {
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--ink-soft);
    font-weight: 500;
  }
  .check.required .check-text strong {
    color: var(--ink);
    font-weight: 700;
  }
  .check-text a {
    color: var(--blue-bright);
    text-decoration: underline;
    font-weight: 700;
  }
  .check-text a:hover { color: #fff; }

  
  .submit-btn {
    width: 100%;
    background: var(--grad-warm);
    color: #2A1A0A;
    border: none;
    font-family: inherit;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 18px 28px;
    border-radius: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    box-shadow: 0 12px 32px rgba(233, 75, 122, 0.4);
    transition: transform .2s, box-shadow .2s, opacity .2s;
  }
  .submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(233, 75, 122, 0.55);
  }
  .submit-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
  }
  .submit-btn svg { width: 18px; height: 18px; }

  .fine-print {
    margin-top: 18px;
    font-size: 11.5px;
    color: var(--ink-dim);
    text-align: center;
    line-height: 1.55;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  
  .page-footer {
    border-top: 1px solid var(--border);
    margin-top: 60px;
    padding: 32px 40px;
    text-align: center;
    position: relative;
    z-index: 1;
  }
  .footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 14px;
    flex-wrap: wrap;
  }
  .footer-links a {
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color .15s;
  }
  .footer-links a:hover { color: var(--blue-bright); }
  .copyright {
    font-size: 12px;
    color: var(--ink-dim);
  }

  
  .dev-note {
    max-width: 920px;
    margin: 32px auto 0;
    padding: 0 32px;
    position: relative;
    z-index: 1;
  }
  .dev-note-inner {
    background: rgba(91, 197, 242, 0.08);
    border: 1px solid rgba(91, 197, 242, 0.25);
    border-radius: 12px;
    padding: 18px 22px;
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.6;
  }
  .dev-note-inner strong {
    color: var(--blue-bright);
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  @media (max-width: 760px) {
    .hero h1 { font-size: 44px; }
    .how-steps { grid-template-columns: 1fr; }
    .how-steps::before { display: none; }
    .form-row.two-col { grid-template-columns: 1fr; }
    .entry-card-header { padding: 22px 20px; }
    .entry-card-body { padding: 28px 22px; }
    .main { padding: 36px 24px 60px; }
    .page-header { padding: 14px 20px; }
  }

body.family-challenge-page .page-header__brand {
  display: inline-flex;
  line-height: 0;
}

body.family-challenge-page .hero-lead p {
  margin: 0;
}

body.family-challenge-page .video-player.is-playing {
  cursor: default;
  display: block;
  padding: 0;
}

body.family-challenge-page .video-player.is-playing::before,
body.family-challenge-page .video-player.is-playing::after {
  display: none;
}

body.family-challenge-page .video-player--image {
  cursor: default;
  padding: 0;
}

body.family-challenge-page .fc-challenge-feature-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

body.family-challenge-page .fc-video-iframe-wrap {
  position: absolute;
  inset: 0;
}

body.family-challenge-page .fc-video-iframe-wrap .fc-video-embed {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 20px;
}

body.family-challenge-page #fc-submission-form.fc-form {
  max-width: 540px;
  margin: 0 auto;
  padding-bottom: 50px;
}

body.family-challenge-page #fc-submission-form .fc-form__row--thirds {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

body.family-challenge-page #fc-submission-form .fc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

body.family-challenge-page #fc-submission-form .fc-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

body.family-challenge-page #fc-submission-form .fc-required {
  color: var(--pink);
  margin-left: 2px;
}

body.family-challenge-page #fc-submission-form .fc-input,
body.family-challenge-page #fc-submission-form .fc-select {
  background: rgba(10, 12, 31, 0.6);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 12px 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  width: 100%;
  transition: all 0.15s;
}

body.family-challenge-page #fc-submission-form .fc-select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237B7FAE' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: rgba(10, 12, 31, 0.6);
  padding-right: 38px;
  cursor: pointer;
}

body.family-challenge-page #fc-submission-form .fc-input::placeholder {
  color: var(--ink-dim);
}

body.family-challenge-page #fc-submission-form .fc-input:focus,
body.family-challenge-page #fc-submission-form .fc-select:focus {
  outline: none;
  border-color: var(--blue-bright);
  background: rgba(10, 12, 31, 0.85);
  box-shadow: 0 0 0 3px rgba(91, 197, 242, 0.15);
}

body.family-challenge-page #fc-submission-form .fc-form__checkboxes {
  margin: 24px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.family-challenge-page #fc-submission-form .fc-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(10, 12, 31, 0.4);
  border: 1px solid var(--border);
  transition: all 0.15s;
}

body.family-challenge-page #fc-submission-form .fc-checkbox:hover {
  background: rgba(10, 12, 31, 0.6);
  border-color: var(--border-strong);
}

body.family-challenge-page #fc-submission-form .fc-checkbox input {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-strong);
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  margin-top: 1px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.15s;
}

body.family-challenge-page #fc-submission-form .fc-checkbox input:checked {
  background: var(--blue-bright);
  border-color: var(--blue-bright);
}

body.family-challenge-page #fc-submission-form .fc-checkbox input:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #0E1028;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

body.family-challenge-page #fc-submission-form .fc-checkbox__text {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-soft);
  font-weight: 500;
}

body.family-challenge-page #fc-submission-form .fc-checkbox__text strong {
  color: var(--ink);
  font-weight: 700;
}

body.family-challenge-page #fc-submission-form .fc-checkbox__text a {
  color: var(--blue-bright);
  text-decoration: underline;
  font-weight: 700;
}

body.family-challenge-page #fc-submission-form .fc-form__hint {
  display: none;
}

body.family-challenge-page #fc-submission-form .fc-recaptcha {
  margin: 16px 0 8px;
  display: flex;
  justify-content: center;
}

body.family-challenge-page #fc-submission-form .fc-submit {
  margin-top: 8px;
  text-align: center;
}

body.family-challenge-page #fc-submission-form .fc-submit__title {
  display: none;
}

body.family-challenge-page #fc-submission-form .fc-btn.fc-btn--primary {
  width: 100%;
  background: var(--grad-warm);
  color: #2A1A0A;
  border: none;
  font-family: inherit;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 18px 28px;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  box-shadow: 0 12px 32px rgba(233, 75, 122, 0.4);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

body.family-challenge-page #fc-submission-form .fc-btn.fc-btn--primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(233, 75, 122, 0.55);
  color: #2A1A0A;
}

body.family-challenge-page #fc-submission-form .fc-btn.fc-btn--primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

body.family-challenge-page #fc-submission-form .fc-raffle-terms {
  margin-top: 18px;
  font-size: 11.5px;
  color: var(--ink-dim);
  text-align: center;
  line-height: 1.55;
}

body.family-challenge-page #fc-submission-form .fc-raffle-terms a {
  color: var(--blue-bright);
  font-weight: 600;
}

body.family-challenge-page #fc-submission-form .fc-submission-form__termsLink {
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--ink-dim);
  text-align: center;
  line-height: 1.55;
}

body.family-challenge-page #fc-submission-form .fc-submission-form__termsLink a {
  color: var(--blue-bright);
  font-weight: 600;
}

body.family-challenge-page #fc-submission-form .fc-submission-form__termsContent {
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--ink-dim);
  text-align: center;
  line-height: 1.55;
}

body.family-challenge-page #fc-submission-form .fc-submission-form__termsContent a {
  color: var(--blue-bright);
  font-weight: 600;
}

body.family-challenge-page .fc-qa-section {
  margin-top: 48px;
  margin-bottom: 16px;
}

body.family-challenge-page .fc-qa-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.family-challenge-page .fc-qa-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

body.family-challenge-page .fc-qa-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

body.family-challenge-page .fc-qa-toggle-icon {
  color: var(--blue-bright);
  transition: transform 0.2s;
  flex-shrink: 0;
}

body.family-challenge-page .fc-qa-item.is-open .fc-qa-toggle-icon {
  transform: rotate(90deg);
}

body.family-challenge-page .fc-qa-answer {
  padding: 0 20px 18px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

body.family-challenge-page .fc-qa-answer p {
  margin: 0 0 12px;
}

body.family-challenge-page .fc-qa-answer p:last-child {
  margin-bottom: 0;
}

body.family-challenge-page .mainHeader,
body.family-challenge-page .mainFooter {
  display: none !important;
}

/* Portal top nav + school banner on Family Challenge (logged-in) */
body.family-challenge-page.portal-dashboard-layout .top-nav {
  position: sticky;
  top: 0;
  z-index: 60;
}

body.family-challenge-page.portal-dashboard-layout .top-nav-inner,
body.family-challenge-page.portal-dashboard-layout .portal-banner .banner-inner {
  max-width: 1500px;
}

body.family-challenge-page.portal-dashboard-layout .main {
  max-width: 920px;
}

.video-player {
  aspect-ratio: 16/9;
  border-radius: 20px;
  background: linear-gradient(135deg, #1A1340 0%, #3D2080 60%, #6B2787 100%);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-strong);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow .25s;
}
.video-player:hover {
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.video-watch-btn,
.video-watch-btn:hover,
.video-watch-btn:focus,
.video-watch-btn:focus-visible,
.video-watch-btn:active {
  background: var(--grad-warm);
  color: #2A1A0A;
  border: none;
  font-family: inherit;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 18px 32px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 16px 40px rgba(233, 75, 122, 0.5) !important;
  -webkit-box-shadow: 0 16px 40px rgba(233, 75, 122, 0.5) !important;
  transform: none;
  transition: filter .2s, box-shadow .2s;
  position: relative;
  z-index: 1;
  outline: none;
}
.video-player:hover .video-watch-btn {
  filter: brightness(1.05);
  box-shadow: 0 20px 50px rgba(233, 75, 122, 0.7) !important;
  -webkit-box-shadow: 0 20px 50px rgba(233, 75, 122, 0.7) !important;
}
.video-watch-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Hide CTA when video is playing (display:inline-flex was overriding [hidden]) */
body.family-challenge-page .video-player.is-playing .video-watch-btn,
body.family-challenge-page .video-watch-btn[hidden] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Family Challenge thank-you */
body.family-challenge-page .fc-thankyou-hero {
  margin-bottom: 32px;
}

body.family-challenge-page .fc-thankyou-hero h1 {
  font-size: 56px;
}

body.family-challenge-page .fc-thankyou-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 40px 40px;
  text-align: center;
}

body.family-challenge-page .fc-thankyou-check {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-warm);
  color: #2A1A0A;
  box-shadow: 0 12px 32px rgba(233, 75, 122, 0.4);
}

body.family-challenge-page .fc-thankyou-check svg {
  width: 36px;
  height: 36px;
}

body.family-challenge-page .fc-thankyou-card h2 {
  font-family: 'Changa', sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 12px;
}

body.family-challenge-page .fc-thankyou-copy {
  font-family: 'Changa', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-dim);
  margin: 0 0 28px;
}

body.family-challenge-page .fc-thankyou-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

body.family-challenge-page .fc-thankyou-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 14px;
  font-family: 'Changa', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

body.family-challenge-page .fc-thankyou-btn--primary {
  background: var(--grad-warm);
  color: #2A1A0A;
  box-shadow: 0 12px 32px rgba(233, 75, 122, 0.35);
}

body.family-challenge-page .fc-thankyou-btn--primary:hover {
  transform: translateY(-2px);
  color: #2A1A0A;
  box-shadow: 0 16px 40px rgba(233, 75, 122, 0.5);
}

body.family-challenge-page .fc-thankyou-btn--ghost {
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-soft);
}

body.family-challenge-page .fc-thankyou-btn--ghost:hover {
  background: rgba(91, 197, 242, 0.14);
  border-color: rgba(91, 197, 242, 0.45);
  color: var(--blue-bright);
}

@media (max-width: 640px) {
  body.family-challenge-page .fc-thankyou-hero h1 {
    font-size: 40px;
  }

  body.family-challenge-page .fc-thankyou-card {
    padding: 36px 22px 28px;
  }

  body.family-challenge-page .fc-thankyou-card h2 {
    font-size: 22px;
  }

  body.family-challenge-page .fc-thankyou-btn {
    width: 100%;
  }
}
