/* ── Contend Kids Home ───────────────────────────────────────── */

html, body {
    margin: 0;
    padding: 0;
}

body.ck-splash-page {
    height: 100%;
    overflow: hidden;
    background: linear-gradient(145deg, #1A1A6E 0%, #60286C 30%, #2D1B4E 55%, #0D3D3F 80%, #1A1A6E 100%);
}

body.ck-splash-page html {
    height: 100%;
    overflow: hidden;
}

.ck-home {
    display: flex;
    flex-direction: column;
    font-family: 'Figtree', sans-serif;
    min-height: 100svh;
    background: #FFFFFF;
}

.ck-splash-page .ck-home {
    height: 100svh;
    overflow: hidden;
}

/* ── Dark Hero ─────────────────────────────────────────────────── */

.ck-dark-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100svh;
    background: linear-gradient(145deg, #1A1A6E 0%, #60286C 30%, #2D1B4E 55%, #0D3D3F 80%, #1A1A6E 100%);
    background-size: 300% 300%;
    animation: ck-bg-shift 20s ease infinite;
    overflow: hidden;
}

@keyframes ck-bg-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.ck-dark-hero__doodles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.2;
    z-index: 2;
}

.ck-dark-hero__doodles .ck-doodle {
    position: absolute;
}

.ck-dark-hero__doodles .ck-doodle:nth-child(odd) {
    animation: ck-float-a 8s ease-in-out infinite;
}

.ck-dark-hero__doodles .ck-doodle:nth-child(even) {
    animation: ck-float-b 10s ease-in-out infinite;
}

.ck-dark-hero__doodles .ck-doodle:nth-child(3n) {
    animation: ck-float-c 12s ease-in-out infinite;
}

@keyframes ck-float-a {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50%      { transform: translate(8px, -12px) rotate(5deg); }
}

@keyframes ck-float-b {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50%      { transform: translate(-10px, 8px) rotate(-4deg); }
}

@keyframes ck-float-c {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50%      { transform: translate(6px, 10px) rotate(3deg); }
}

.ck-doodle--circle-outline-dark {
    border: 4px solid #FFFFFF;
    border-radius: 50%;
}

.ck-doodle--circle-outline-orange-dark {
    border: 4px solid #FFFFFF;
    border-radius: 50%;
}

.ck-dark-hero__countdown {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 14px;
    padding: env(safe-area-inset-top, 12px) 0 0;
    padding-top: calc(env(safe-area-inset-top, 0px) + 16px);
    font-family: 'Figtree', sans-serif;
    text-align: center;
}

.ck-dark-hero__countdown span {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFFAA;
    letter-spacing: 1px;
}

.ck-dark-hero__countdown small {
    font-size: 9px;
    font-weight: 500;
    color: #FFFFFF44;
    margin-left: 1px;
    text-transform: uppercase;
}

.ck-nav--dark {
    background: transparent;
    position: relative;
    z-index: 3;
}

.ck-nav--dark .ck-nav__burger-line--long {
    background: #FFFFFF;
}

.ck-nav--dark .ck-nav__burger-line--short {
    background: #FFE81A;
}

.ck-nav__logo-img--white {
    filter: brightness(0) invert(1);
}

.ck-dark-hero__content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 0 32px 40px;
    text-align: center;
    gap: 18px;
}

.ck-dark-hero__logo-row {
    position: relative;
    display: inline-block;
}

.ck-dark-hero__logo {
    height: 52px;
    width: auto;
    filter: brightness(0) invert(1);
    display: block;
}

.ck-dark-hero__kids-badge {
    position: absolute;
    top: -8px;
    right: -28px;
    font-family: 'Lilita One', cursive;
    font-size: 13px;
    color: #1A1A6E;
    background: #FFE81A;
    padding: 3px 10px;
    border-radius: 6px;
    line-height: 1;
    letter-spacing: 1px;
    transform: rotate(12deg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.ck-dark-hero__kids-badge--sm {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    top: -5px;
    right: -18px;
}

.ck-dark-hero__date {
    font-family: 'Figtree', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #FFFFFFAA;
    text-transform: uppercase;
}

.ck-dark-hero__title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
}

.ck-dark-hero__title-line {
    font-family: 'Lilita One', cursive;
    font-size: 64px;
    font-weight: 800;
    line-height: 0.85;
    color: #FFFFFF;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.ck-dark-hero__title-line--accent {
    color: #0FACB2;
}

.ck-dark-hero__text {
    font-family: 'Figtree', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.7;
    color: #FFFFFFCC;
    max-width: 280px;
    margin: 0;
}

.ck-dark-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 14px;
    background: #FFFFFF;
    color: #1A1A6E;
    font-family: 'Figtree', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}

.ck-dark-hero__cta:hover {
    transform: scale(1.03);
}

.ck-dark-hero__cta--secondary {
    background: transparent;
    color: #FFFFFF;
    border: 2px solid rgba(255,255,255,0.5);
    box-shadow: none;
    margin-top: 10px;
}

.ck-dark-hero__ages {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border-radius: 20px;
    background: #FFFFFF22;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: 'Figtree', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #FFFFFF;
    margin-top: 4px;
}

.ck-dark-hero__ref {
    position: absolute;
    bottom: 32px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: 'Figtree', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #FFFFFF;
}

.ckh-greeting__highlight {
    display: inline;
    padding: 4px 10px;
    border-radius: 6px;
    background: #FF3B7A;
    color: #FFFFFF;
    margin: 6px 0;
    line-height: 1.6;
}

/* ── Portal Nav ───────────────────────────────────────────────── */

.ck-nav--portal {
    background: #F0F0F2;
}

.ck-nav--scrollable {
    position: sticky;
    top: 0;
    z-index: 10;
    transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.ck-nav--scrolled {
    background: #F0F0F2;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

.ck-nav--scrolled {
    background: #F0F0F2;
    box-shadow: 0 1px 8px rgba(0,0,0,0.08);
}

.ck-nav__logo-wrap {
    display: flex;
    align-items: center;
}

/* ── Hero Logo (centred) ──────────────────────────────────────── */

.ckh-hero-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 40px 24px 20px;
    background: #FFFFFF;
}

.ckh-hero-logo__img {
    height: 48px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(9%) sepia(60%) saturate(4800%) hue-rotate(234deg) brightness(80%) contrast(110%);
}

.ckh-hero-logo__date {
    font-family: 'Figtree', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #999999;
}

/* ── Labels ───────────────────────────────────────────────────── */

.ckh-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 4px;
    color: #1A1A6E44;
}

/* ── Greeting ─────────────────────────────────────────────────── */

.ckh-greeting {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
}

.ckh-greeting__title {
    font-family: 'Lilita One', cursive;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    color: #1A1A6E;
    margin: 0;
}

.ckh-greeting__bar {
    width: 40px;
    height: 3px;
    background: #0FACB2;
}

.ckh-greeting__card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    background: #0FACB2;
}

.ckh-greeting__avatar {
    width: 46px;
    height: 46px;
    border-radius: 23px;
    background: #FFFFFF44;
    flex-shrink: 0;
}

.ckh-greeting__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ckh-greeting__role {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #FFFFFF88;
}

.ckh-greeting__name {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
}

.ckh-greeting__quote {
    font-size: 13px;
    font-style: italic;
    line-height: 1.6;
    color: #66666699;
    margin: 0;
}

/* ── Centred greeting ─────────────────────────────────────────── */

.ckh-greeting--centred {
    align-items: center;
    text-align: center;
}

.ckh-greeting--centred .ckh-greeting__title {
    text-align: center;
}

.ckh-greeting__avatar-lg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #E8E8E8;
    border: 3px solid #0FACB2;
    margin-top: 8px;
}

.ckh-greeting__name-lg {
    font-family: 'Figtree', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #1A1A6E;
    margin-top: 12px;
}

.ckh-greeting__role-lg {
    font-family: 'Figtree', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #0FACB2;
    margin-top: 2px;
}

.ckh-greeting__org {
    font-family: 'Figtree', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #0FACB2;
    margin-top: 6px;
}

.ckh-greeting__bar--centred {
    margin: 0 auto;
}

.ckh-greeting__quote--centred {
    text-align: center;
    max-width: 320px;
}

.ckh-greeting__team-img {
    width: 200px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    background: #FFFFFF;
    margin-top: 8px;
}

.ckh-greeting__letter {
    text-align: left;
    margin-top: 8px;
}

.ckh-greeting__preview {
    font-family: 'Figtree', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #888888;
    margin: 0;
    text-align: center;
}

.ckh-greeting--centred {
    padding-bottom: 48px;
}

.ckh-greeting__show-more {
    font-family: 'Figtree', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #0FACB2;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 0;
    letter-spacing: 1px;
}

/* ── Letter Modal ─────────────────────────────────────────────── */

.ckh-letter-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.ckh-letter-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.ckh-letter-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: calc(100% - 24px);
    max-width: 420px;
    max-height: 80vh;
    background: #FFFFFF;
    border-radius: 20px;
    z-index: 101;
    display: flex;
    flex-direction: column;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s;
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
    overflow: hidden;
}

.ckh-letter-modal.is-open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.ckh-letter-modal__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 14px 0 0;
}

.ckh-letter-modal__header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 18px 24px 14px;
    border-bottom: 1px solid #F0F0F0;
    flex-shrink: 0;
}

.ckh-letter-modal__close {
    position: absolute;
    right: 16px;
    top: 14px;
}

.ckh-letter-modal__title {
    font-family: 'Lilita One', cursive;
    font-size: 18px;
    color: #1A1A6E;
}

.ckh-letter-modal__close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999999;
    cursor: pointer;
    line-height: 1;
}

.ckh-letter-modal__body {
    padding: 20px 24px 32px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.ckh-letter-modal__body p {
    font-family: 'Figtree', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #555555;
    margin: 0 0 14px;
}

.ckh-letter-modal__body p:last-child {
    margin-bottom: 0;
}

.ckh-letter-modal__body strong {
    color: #1A1A6E;
    font-weight: 700;
}

.ckh-letter-modal__body em {
    color: #888888;
}


/* ── Leaders ──────────────────────────────────────────────────── */

.ckh-leaders {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 24px;
}

.ckh-leaders__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ckh-leaders__see-all {
    font-size: 11px;
    font-weight: 600;
    color: #0FACB2;
    text-decoration: none;
}

.ckh-leaders__scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.ckh-leaders__scroll::-webkit-scrollbar {
    display: none;
}

.ckh-leader-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 3px;
    width: 120px;
    min-width: 120px;
    height: 150px;
    border-radius: 14px;
    padding: 12px;
}

.ckh-leader-card--teal { background: #0FACB2; }
.ckh-leader-card--orange { background: #FF8C00; }
.ckh-leader-card--purple { background: #60286C; }

.ckh-leader-card__name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF;
}

.ckh-leader-card__group {
    font-size: 10px;
    font-weight: 500;
    color: #FFFFFFAA;
}

/* ── Cards ─────────────────────────────────────────────────────── */

.ckh-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 20px 24px;
}

.ckh-card {
    position: relative;
    display: flex;
    align-items: center;
    padding: 28px 24px;
    border-radius: 20px;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ckh-card:active {
    transform: scale(0.97);
}

.ckh-card--pink {
    background: linear-gradient(135deg, #FF3B7A 0%, #D42769 100%);
}

.ckh-card--yellow {
    background: linear-gradient(135deg, #FFE81A 0%, #FFC107 100%);
}

.ckh-card--teal {
    background: linear-gradient(135deg, #0FACB2 0%, #0A8A8F 100%);
}

.ckh-card--purple {
    background: linear-gradient(135deg, #60286C 0%, #3D1A45 100%);
}

/* Decorative elements */
.ckh-card__deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.ckh-card__circle {
    position: absolute;
    border-radius: 50%;
    background: #FFFFFF15;
}

.ckh-card__circle--1 {
    width: 120px;
    height: 120px;
    right: -30px;
    top: -40px;
    animation: ck-pulse 4s ease-in-out infinite;
}

.ckh-card__circle--2 {
    width: 80px;
    height: 80px;
    right: 20px;
    bottom: -30px;
    animation: ck-pulse 5s ease-in-out infinite 1s;
}

.ckh-card__emoji {
    position: absolute;
    animation: ck-bob 3s ease-in-out infinite;
}

.ckh-card__emoji--1 {
    font-size: 32px;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes ck-pulse {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50%      { transform: scale(1.1); opacity: 0.25; }
}

@keyframes ck-bob {
    0%, 100% { transform: translateY(-50%); }
    50%      { transform: translateY(calc(-50% - 6px)); }
}

/* Card icon */
.ckh-card__icon {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #FFFFFF22;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 12px;
}

.ckh-card__icon--navy {
    background: #1A1A6E15;
}

/* Card content */
.ckh-card__text {
    position: relative;
    z-index: 1;
    flex: 1;
}

.ckh-card__title {
    font-family: 'Lilita One', cursive;
    font-size: 26px;
    line-height: 1;
    color: #FFFFFF;
    margin: 0 0 8px;
}

.ckh-card__title--navy {
    color: #1A1A6E;
}

.ckh-card__desc {
    font-family: 'Figtree', sans-serif;
    font-size: 12px;
    color: #FFFFFFBB;
    margin: 0;
    line-height: 1.4;
}

.ckh-card__desc--navy {
    color: #1A1A6EAA;
}

.ckh-card__arrow {
    position: relative;
    z-index: 1;
    font-size: 24px;
    color: #FFFFFFAA;
    margin-left: 16px;
    flex-shrink: 0;
    transition: transform 0.2s, color 0.2s;
}

.ckh-card__arrow--navy {
    color: #1A1A6E88;
}

.ckh-card:active .ckh-card__arrow {
    transform: translateX(4px);
    color: #FFFFFF;
}

.ckh-card:active .ckh-card__arrow--navy {
    color: #1A1A6E;
}

/* ── Main Conference Link ─────────────────────────────────────── */

/* ── Main Conference Signpost ──────────────────────────────────── */

.ckh-main-conference {
    display: block;
    position: relative;
    text-decoration: none;
    overflow: hidden;
    background: url('https://staging.ntcg.org/contend-kids/app/uploads/sites/27/2026/04/CONTEND-Background-2.jpg') center / cover no-repeat;
    min-height: 120px;
}

.ckh-main-conference__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.ckh-main-conference__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 28px 24px;
}

.ckh-main-conference__logo {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.ckh-main-conference__label {
    font-family: 'Figtree', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #FFFFFFCC;
}

.ckh-main-conference__arrow {
    font-size: 20px;
    color: #FFFFFF88;
    transition: transform 0.2s;
}

.ckh-main-conference:active .ckh-main-conference__arrow {
    transform: translateX(4px);
    color: #FFFFFF;
}

.ckh-main-link__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 6px;
    background: #0FACB2;
    color: #FFFFFF;
    font-family: 'Figtree', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

/* ── Footer ───────────────────────────────────────────────────── */

.ckh-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 24px 28px;
}

.ckh-footer__line {
    width: 100%;
    height: 1px;
    background: #E5E5E5;
}

.ckh-footer__text {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #CCCCCC;
}

/* ── Desktop ──────────────────────────────────────────────────── */

@media (min-width: 850px) {
    .ck-home {
        max-width: 390px;
        margin: 0 auto;
        box-shadow: 0 0 40px rgba(0,0,0,0.1);
    }
}
