@import url('links-of-interest.css');

/* ===== KIDO: games for kids ===== */

:root {
    --k-ink: #2c3e50;
    --k-soft: #556270;
    --k-teal: #00bcd4;
    --k-purple: #9c27b0;
    --k-radius: 28px;
}

.kido-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.kido-page a::after {
    display: none;
}

/* The site-wide <section> style is a centered flex column with a border,
   clipped overflow and a decorative overlay: reset it for Kido's sections. */
.kido-hero,
.kido-section {
    display: block;
    min-height: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    background: none;
    box-shadow: none;
}

.kido-section::before {
    display: none;
}

/* ---------- Hero ---------- */
.kido-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 48px;
    min-height: 78vh;
    padding: 130px 0 40px;
}

.kido-hero::before,
.kido-hero::after {
    content: '';
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    background-image: none;
    animation: none;
}

.kido-hero::before {
    width: 380px;
    height: 380px;
    top: 40px;
    left: -60px;
    background: rgba(0, 188, 212, 0.3);
}

.kido-hero::after {
    width: 420px;
    height: 420px;
    right: -60px;
    bottom: -60px;
    background: rgba(156, 39, 176, 0.22);
}

.kido-eyebrow {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--k-purple);
    background: rgba(156, 39, 176, 0.1);
    border: 1px solid rgba(156, 39, 176, 0.18);
}

.kido-title {
    margin: 14px 0 4px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(3.6rem, 10vw, 6.4rem);
    line-height: 1;
    letter-spacing: -0.02em;
    background: linear-gradient(45deg, var(--k-teal), var(--k-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.kido-subtitle {
    margin: 0 0 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(1.25rem, 3vw, 1.8rem);
    line-height: 1.25;
    color: var(--k-ink);
}

.kido-lead {
    max-width: 560px;
    margin: 0 0 26px;
    font-size: 1.1rem;
    color: var(--k-soft);
}

.kido-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 26px;
}

.kido-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.05rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kido-cta-primary {
    color: #fff;
    background: linear-gradient(45deg, var(--k-teal), var(--k-purple));
    box-shadow: 0 10px 24px rgba(0, 188, 212, 0.35);
}

.kido-cta-primary:hover {
    color: #fff;
    text-shadow: none;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(156, 39, 176, 0.35);
}

.kido-cta-ghost {
    color: var(--k-ink);
    background: #fff;
    border: 2px solid rgba(44, 62, 80, 0.12);
}

.kido-cta-ghost:hover {
    color: var(--k-purple);
    text-shadow: none;
    transform: translateY(-3px);
}

.kido-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kido-badges li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--k-ink);
    background: #fff;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.08);
}

.kido-badges i {
    color: var(--k-teal);
}

/* floating icon collage: nine games, three by three */
.kido-hero-art {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 420px;
    width: 100%;
    margin-left: auto;
    padding: 20px 0 30px;
}

.kido-art-icon {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 24%;
    box-shadow: 0 12px 26px rgba(44, 62, 80, 0.22);
    border: 3px solid #fff;
    background: #fff;
    animation: kidoFloat 5s ease-in-out infinite;
}

.kido-art-1 { --r: -5deg; animation-delay: 0s; }
.kido-art-2 { --r: 4deg;  animation-delay: -0.8s; margin-top: 22px; }
.kido-art-3 { --r: -3deg; animation-delay: -1.6s; }
.kido-art-4 { --r: 5deg;  animation-delay: -2.4s; }
.kido-art-5 { --r: 4deg;  animation-delay: -3.2s; margin-top: 22px; }
.kido-art-6 { --r: -5deg; animation-delay: -4s; }
.kido-art-7 { --r: 3deg;  animation-delay: -1.2s; }
.kido-art-8 { --r: -4deg; animation-delay: -2s; margin-top: 22px; }
.kido-art-9 { --r: 5deg;  animation-delay: -2.8s; }

@keyframes kidoFloat {
    0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
    50% { transform: translateY(-10px) rotate(var(--r, 0deg)); }
}

/* ---------- Sections ---------- */
.kido-section {
    padding: 36px 0;
    scroll-margin-top: 90px;
}

.kido-section-head {
    text-align: center;
    margin-bottom: 26px;
}

.kido-section-head h2 {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--k-ink);
}

.kido-section-head p {
    margin: 12px 0 0;
    font-size: 1.1rem;
    color: var(--k-soft);
}

.kido-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: #fff;
}

.kido-pill-live {
    background: linear-gradient(45deg, #2ecc71, #1fa463);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.35);
}

.kido-pill-soon {
    background: linear-gradient(45deg, #ffb347, #ff8a5c);
    box-shadow: 0 8px 20px rgba(255, 138, 92, 0.35);
}

/* ---------- Shared bits of a game ---------- */
.game-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.game-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    flex: 0 0 auto;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.game-title {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--k-ink);
}

.game-age {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(45deg, var(--k-teal), var(--k-purple));
}

.game-description {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--k-soft);
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.game-tags li {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--k-ink);
    background: color-mix(in srgb, var(--accent, #00bcd4) 18%, white);
}

.game-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: auto;
}

.store-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 50px;
    background: var(--k-ink);
    color: #fff;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.store-button:hover {
    color: #fff;
    text-shadow: none;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.35);
}

.store-button i {
    font-size: 1.2em;
}

.store-button--soon {
    background: #9aa3ad;
    cursor: default;
    pointer-events: none;
}

.policy-link {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--k-purple);
}

.policy-link:hover {
    text-decoration: underline;
}

/* screenshot strip: swipe sideways, or use the arrows and dots */
.kido-shots {
    position: relative;
    min-width: 0;
}

.kido-card-shots {
    position: relative;
    display: flex;
    gap: 12px;
    height: 270px;
    padding: 20px 18px 34px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: linear-gradient(160deg,
        color-mix(in srgb, var(--accent, #00bcd4) 32%, white),
        color-mix(in srgb, var(--accent, #00bcd4) 8%, white));
}

.kido-card-shots::-webkit-scrollbar {
    display: none;
}

.kido-card-shots img {
    height: 100%;
    width: auto;
    flex: 0 0 auto;
    object-fit: cover;
    scroll-snap-align: start;
    border: 4px solid #fff;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    -webkit-user-drag: none;
    user-select: none;
}

.kido-shots-btn {
    position: absolute;
    top: calc(50% - 26px);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    font-size: 0.95rem;
    color: var(--k-ink);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.kido-shots-btn:hover {
    transform: scale(1.08);
}

.kido-shots-btn[hidden] {
    display: none;
}

.kido-shots-prev { left: 8px; }
.kido-shots-next { right: 8px; }

.kido-shots-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.kido-dot {
    box-sizing: content-box;
    width: 8px;
    height: 8px;
    padding: 7px 4px;
    border: 0;
    border-radius: 50px;
    background: rgba(44, 62, 80, 0.3);
    background-clip: content-box;
    cursor: pointer;
    transition: width 0.25s ease, background-color 0.25s ease;
}

.kido-dot.is-active {
    width: 22px;
    background-color: var(--k-ink);
    background-clip: content-box;
}

/* ---------- Out now: featured game ---------- */
.kido-featured {
    display: grid;
    grid-template-columns: minmax(300px, 0.85fr) 1.15fr;
    overflow: hidden;
    border-radius: 32px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(44, 62, 80, 0.16);
}

.kido-featured-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 36px;
}

.kido-featured .game-icon {
    width: 88px;
    height: 88px;
    border-radius: 24px;
}

.kido-featured .game-title {
    font-size: 1.9rem;
}

.kido-featured > .kido-shots {
    display: flex;
    flex-direction: column;
}

.kido-featured-shots {
    flex: 1;
    height: auto;
    min-height: 340px;
    align-items: center;
    padding: 28px 24px 40px;
}

.kido-featured-shots img {
    height: 290px;
}

/* ---------- Coming soon: card grid ---------- */
.kido-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.kido-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--k-radius);
    background: #fff;
    box-shadow: 0 14px 34px rgba(44, 62, 80, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kido-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(44, 62, 80, 0.2);
}

.kido-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 22px 24px 26px;
}

/* ---------- Values ---------- */
.kido-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.kido-value {
    padding: 26px 24px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(44, 62, 80, 0.1);
}

.kido-value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
    border-radius: 16px;
    font-size: 1.4rem;
    color: #fff;
    background: linear-gradient(45deg, var(--k-teal), var(--k-purple));
}

.kido-value h3 {
    margin: 0 0 6px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--k-ink);
}

.kido-value p {
    margin: 0;
    line-height: 1.5;
    color: var(--k-soft);
}

/* ---------- Parents ---------- */
.kido-parents {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 34px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.12), rgba(156, 39, 176, 0.12));
    border: 1px solid rgba(0, 188, 212, 0.2);
}

.kido-parents-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    font-size: 1.8rem;
    color: #fff;
    background: linear-gradient(45deg, var(--k-teal), var(--k-purple));
}

.kido-parents h3 {
    margin: 0 0 6px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--k-ink);
}

.kido-parents p {
    margin: 0;
    line-height: 1.55;
    color: var(--k-soft);
}

/* Below the page's max width the page fills the screen, so clipping at its
   edge is clipping at the screen edge: no blank strip to the right when
   zooming out on a phone. */
@media (max-width: 1240px) {
    .kido-page {
        overflow-x: clip;
    }
}

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
    .kido-hero {
        grid-template-columns: 1fr;
        gap: 18px;
        min-height: 0;
        padding-top: 120px;
        text-align: center;
    }

    .kido-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .kido-cta-row,
    .kido-badges {
        justify-content: center;
    }

    .kido-hero-art {
        max-width: 420px;
        margin: 0 auto;
    }

    .kido-featured {
        grid-template-columns: 1fr;
    }

    .kido-featured-info {
        padding: 28px 26px 8px;
    }

    .kido-featured-shots {
        min-height: 0;
    }
}

/* ---------- Phone ---------- */
@media (max-width: 600px) {
    .kido-page {
        padding: 0 14px 60px;
    }

    .kido-hero {
        padding-top: 104px;
    }

    .kido-hero-art {
        gap: 10px;
        max-width: 290px;
    }

    .kido-badges li {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .kido-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .kido-card-shots,
    .kido-featured-shots {
        height: 220px;
        min-height: 0;
        gap: 12px;
        padding: 14px 14px 36px;
        scroll-padding-inline: 14px;
        align-items: center;
    }

    .kido-card-shots.kido-portrait,
    .kido-featured-shots.kido-portrait {
        height: 340px;
    }

    .kido-card-shots img,
    .kido-featured-shots img {
        height: auto;
        width: auto;
        max-width: 100%;
        max-height: 100%;
        scroll-snap-align: center;
    }

    .kido-shots-btn {
        width: 34px;
        height: 34px;
        top: calc(50% - 24px);
    }

    .kido-featured-info {
        padding: 24px 20px 6px;
    }

    .kido-featured .game-title {
        font-size: 1.6rem;
    }

    .kido-parents {
        flex-direction: column;
        padding: 26px 22px;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kido-art-icon {
        animation: none;
    }

    .kido-card,
    .kido-cta,
    .store-button {
        transition: none;
    }
}
