:root {
    --kz-ink: #17334b;
    --kz-navy: #102d4b;
    --kz-teal: #12a6a5;
    --kz-gold: #ffbd45;
    --kz-coral: #ff7967;
    --kz-lilac: #8767d9;
    --kz-cloud: #fffdf7;
    --kz-sky: #e8f8fb;
    --kz-card: #ffffff;
    --kz-shadow: 0 18px 48px rgba(32, 74, 90, .12);
}

.kz-shell {
    color: var(--kz-ink);
    background: linear-gradient(180deg, #fffaf1 0%, #eefcff 32%, #fffdf6 100%);
    margin-top: calc(-1 * var(--nav-height));
    padding-bottom: 4rem;
    overflow: hidden;
}

.kz-shell[data-theme="moon"] {
    --kz-ink: #f2f6ff;
    --kz-card: #17324c;
    --kz-sky: #172c48;
    background: linear-gradient(180deg, #101c3b, #132a47 35%, #15293d);
}

.kz-shell h1,
.kz-shell h2,
.kz-shell h3 {
    color: var(--kz-ink);
}

.kz-hero {
    min-height: min(780px, 88vh);
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 8rem 0 4.5rem;
}

.kz-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255, 215, 117, .78) 0 2px, transparent 3px),
        radial-gradient(circle, rgba(255, 255, 255, .6) 0 1px, transparent 2px);
    background-size: 210px 210px, 145px 145px;
    background-position: 20px 35px, 80px 100px;
    opacity: .34;
    animation: kzDrift 14s ease-in-out infinite alternate;
}

.kz-hero-image {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center center;
}

.kz-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 34, 56, .83) 0%, rgba(11, 34, 56, .57) 43%, rgba(11, 34, 56, .12) 100%),
        linear-gradient(0deg, rgba(8, 28, 50, .65), transparent 38%);
}

.kz-hero-content {
    display: flex;
    align-items: end;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    gap: 2rem;
}

.kz-hero-copy {
    max-width: 590px;
    color: white;
}

.kz-pill {
    display: inline-flex;
    border-radius: 999px;
    background: rgba(255, 189, 69, .2);
    border: 1px solid rgba(255, 222, 150, .7);
    color: #ffe8af;
    padding: .45rem 1rem;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}

.kz-hero-copy h1 {
    color: #fff;
    font-size: clamp(3.3rem, 8vw, 5.8rem);
    line-height: .95;
    font-weight: 800;
    letter-spacing: -.04em;
}

.kz-lead {
    color: #eef8ff;
    font-size: clamp(1.08rem, 2vw, 1.3rem);
    max-width: 500px;
    margin: 1.3rem 0 2rem;
}

.kz-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
}

.kz-button {
    min-height: 50px;
    border-radius: 999px;
    padding: .78rem 1.45rem;
    font-weight: 700;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    cursor: pointer;
}

.kz-button:hover {
    transform: translateY(-2px);
}

.kz-button-primary {
    color: #17334b;
    background: var(--kz-gold);
    box-shadow: 0 10px 22px rgba(255, 184, 58, .35);
}

.kz-button-primary:hover {
    color: #17334b;
    background: #ffc95f;
}

.kz-button-glass {
    color: #fff;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.4);
}

.kz-button-glass:hover {
    color: #fff;
    background: rgba(255,255,255,.25);
}

.kz-button-soft {
    background: #e8f6f4;
    color: #126a70;
}

.kz-button-soft:hover {
    color: #104f59;
    background: #cff1ed;
}

.kz-guide-card {
    display: flex;
    gap: 1rem;
    max-width: 360px;
    padding: 1.2rem 1.25rem;
    border-radius: 26px;
    background: rgba(255,255,255,.91);
    box-shadow: 0 22px 55px rgba(8, 26, 41, .17);
    animation: kzGuideFloat 5s ease-in-out infinite;
}

.kz-avatar {
    flex: none;
    height: 52px;
    width: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(145deg, var(--kz-teal), #53d7bd);
    color: white;
}

.kz-eyebrow {
    color: #0b928e;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    font-size: .74rem;
    display: block;
    margin-bottom: .32rem;
}

.kz-guide-card h2 {
    color: #17334b;
    font-size: 1.25rem;
    margin: 0 0 .38rem;
}

.kz-guide-card p {
    font-size: .9rem;
    color: #53697a;
    line-height: 1.45;
    margin: 0;
}

.kz-dock {
    background: var(--kz-card);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    transform: translateY(-30px);
    z-index: 2;
    position: relative;
    border-radius: 25px;
    padding: .55rem;
    box-shadow: var(--kz-shadow);
}

.kz-dock a {
    display: flex;
    flex-direction: column;
    text-align: center;
    border-radius: 19px;
    padding: .75rem .45rem;
}

.kz-dock a:hover {
    background: var(--kz-sky);
    color: var(--kz-ink);
}

.kz-dock span {
    color: var(--kz-ink);
    font-weight: 700;
}

.kz-dock small {
    color: #698194;
    font-size: .76rem;
}

.kz-main {
    max-width: 1240px;
}

.kz-section {
    padding: 3.2rem 0 1rem;
    scroll-margin-top: 90px;
}

.kz-heading {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: end;
    margin-bottom: 2rem;
}

.kz-heading h2,
.kz-memory-copy h2 {
    font-size: clamp(1.9rem, 3vw, 2.55rem);
    margin: 0 0 .55rem;
    letter-spacing: -.03em;
}

.kz-heading p {
    color: #657f92;
    max-width: 620px;
    margin: 0;
}

.kz-shell[data-theme="moon"] .kz-heading p,
.kz-shell[data-theme="moon"] .kz-card-body p,
.kz-shell[data-theme="moon"] .kz-dock small {
    color: #b4cadb;
}

.kz-filter-row {
    display: flex;
    border-radius: 999px;
    background: var(--kz-card);
    padding: .3rem;
    box-shadow: 0 5px 20px rgba(17, 54, 74, .07);
}

.kz-filter-row button {
    border: 0;
    background: transparent;
    color: #64798a;
    font-weight: 600;
    padding: .55rem .85rem;
    border-radius: 999px;
    white-space: nowrap;
}

.kz-filter-row .active {
    background: var(--kz-teal);
    color: white;
}

.kz-story-rail {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.kz-story-card {
    background: var(--kz-card);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(17, 54, 74, .08);
    transition: transform .22s ease, box-shadow .22s ease;
}

.kz-story-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--kz-shadow);
}

.kz-story-card[hidden] {
    display: none;
}

.kz-story-art {
    height: 198px;
    position: relative;
    overflow: hidden;
}

.kz-story-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.kz-story-card:hover img {
    transform: scale(1.05);
}

.kz-story-art span {
    position: absolute;
    left: .8rem;
    bottom: .8rem;
    padding: .3rem .7rem;
    border-radius: 99px;
    background: rgba(18, 40, 54, .78);
    color: white;
    font-size: .75rem;
    font-weight: 600;
}

.kz-video-pill {
    position: absolute;
    right: .8rem;
    bottom: .75rem;
    border-radius: 999px;
    padding: .35rem .65rem;
    background: var(--kz-coral);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
}

.kz-card-body {
    padding: 1.1rem 1.15rem 1rem;
}

.kz-card-body h3 {
    font-size: 1.18rem;
    margin-bottom: .42rem;
}

.kz-card-body p {
    color: #667f91;
    font-size: .9rem;
    min-height: 44px;
}

.kz-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.kz-card-footer small {
    font-weight: 600;
    color: #7890a1;
}

.kz-link {
    color: #087c82;
    border: none;
    background: transparent;
    font-weight: 700;
    padding: .25rem;
}

.kz-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.15rem;
}

.kz-game-card {
    border-radius: 23px;
    background: var(--kz-card);
    padding: 1.25rem;
    box-shadow: 0 7px 25px rgba(21, 57, 75, .08);
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.kz-game-icon {
    height: 46px;
    width: 46px;
    border-radius: 15px;
    background: #dff6f4;
    position: relative;
}

.kz-game-icon::after {
    content: "\2605";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--kz-teal);
    font-size: 1.4rem;
}

.kz-icon-heart {
    background: #ffe5e2;
}

.kz-icon-heart::after {
    content: "\2665";
    color: var(--kz-coral);
}

.kz-icon-verse::after {
    content: "\2726";
}

.kz-icon-ark::after,
.kz-icon-build::after {
    content: "\2302";
}

.kz-icon-waves::after {
    content: "\2248";
}

.kz-icon-question::after {
    content: "?";
    font-weight: 800;
}

.kz-age {
    color: #638091;
    font-size: .76rem;
    font-weight: 600;
}

.kz-game-card h3 {
    font-size: 1.16rem;
    margin: 0;
}

.kz-game-card p {
    color: #657e90;
    font-size: .88rem;
    flex-grow: 1;
    margin: 0;
}

.kz-game-tags span {
    display: block;
    border-radius: 12px;
    background: #f3fbfa;
    color: #577684;
    font-size: .76rem;
    padding: .45rem .55rem;
}

.kz-game-card .kz-button {
    min-height: 44px;
    width: 100%;
    font-size: .92rem;
}

.kz-memory-panel {
    display: grid;
    grid-template-columns: 1fr .9fr;
    align-items: center;
    gap: 3rem;
    border-radius: 32px;
    background: linear-gradient(125deg, #153d55, #0f777b);
    padding: clamp(1.7rem, 4vw, 3.2rem);
    color: #fff;
}

.kz-memory-copy h2 {
    color: #fff;
}

.kz-memory-copy p {
    color: #d8eef1;
    margin-bottom: 1.6rem;
}

.kz-memory-copy .kz-eyebrow {
    color: #7de2d0;
}

.kz-verse-preview {
    position: relative;
    background: rgba(255,255,255,.97);
    color: #19384c;
    border-radius: 26px;
    padding: 1.6rem 1.7rem 3rem;
    min-height: 220px;
}

.kz-verse-theme {
    font-weight: 700;
    color: #099895;
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.kz-verse-preview blockquote {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin: .8rem 0;
    font-weight: 600;
}

.kz-verse-preview cite {
    font-style: normal;
    font-weight: 700;
    color: #597285;
}

.kz-petals {
    position: absolute;
    right: 20px;
    bottom: 20px;
    height: 52px;
    width: 52px;
}

.kz-petals span {
    display: block;
    position: absolute;
    background: var(--kz-gold);
    height: 23px;
    width: 16px;
    border-radius: 14px;
    left: 18px;
    top: 0;
    transform-origin: 8px 26px;
}

.kz-petals span:nth-child(2) { transform: rotate(90deg); }
.kz-petals span:nth-child(3) { transform: rotate(180deg); }
.kz-petals span:nth-child(4) { transform: rotate(270deg); }

.kz-dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.kz-score-card {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: var(--kz-card);
    border-radius: 22px;
    padding: 1.15rem 1.25rem;
    box-shadow: 0 6px 23px rgba(20, 55, 73, .07);
}

.kz-score-star,
.kz-score-book,
.kz-score-game {
    display: grid;
    place-items: center;
    height: 55px;
    width: 55px;
    flex: none;
    border-radius: 18px;
    background: #fff2cf;
    font-size: 1.7rem;
    color: #f4a900;
}

.kz-score-book {
    background: #dff6f4;
}

.kz-score-book::after {
    content: "\2630";
    color: #119a97;
    font-size: 1.35rem;
}

.kz-score-game {
    background: #f1eaff;
}

.kz-score-game::after {
    content: "\2713";
    color: var(--kz-lilac);
    font-weight: bold;
    font-size: 1.35rem;
}

.kz-score-card strong {
    display: block;
    font-size: 1.7rem;
    color: var(--kz-ink);
    line-height: 1.1;
}

.kz-score-card span:last-child {
    color: #698292;
    font-size: .85rem;
}

.kz-theme-toggle {
    background: var(--kz-card);
    color: var(--kz-ink);
    border: 1px solid rgba(77, 104, 122, .15);
    border-radius: 999px;
    font-weight: 600;
    padding: .65rem 1rem;
}

.kz-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.kz-badge {
    background: var(--kz-card);
    border-radius: 20px;
    border: 2px dashed #e4edf1;
    padding: 1rem;
    opacity: .62;
    display: grid;
    grid-template-columns: 46px 1fr;
    column-gap: .8rem;
}

.kz-badge.unlocked {
    opacity: 1;
    border-color: var(--kz-gold);
    box-shadow: 0 8px 22px rgba(242, 176, 42, .18);
}

.kz-badge-medal {
    grid-row: span 2;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #e8edef;
    color: #9eb0b7;
    display: grid;
    place-items: center;
}

.kz-badge.unlocked .kz-badge-medal {
    background: #fff1c8;
    color: #eaa400;
}

.kz-badge strong {
    font-size: .92rem;
}

.kz-badge small {
    color: #748998;
}

.kz-production-grid,
.kz-safety {
    display: grid;
    grid-template-columns: .9fr 1fr;
    gap: 2rem;
    align-items: center;
}

.kz-production-grid {
    background: var(--kz-card);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--kz-shadow);
}

.kz-production-grid img {
    height: 390px;
    width: 100%;
    object-fit: cover;
}

.kz-production-grid div {
    padding: 2rem 2rem 2rem 0;
}

.kz-production-grid h3 {
    font-size: 1.55rem;
}

.kz-production-grid li {
    color: #607d8b;
    margin-bottom: .55rem;
}

.kz-safety-card {
    background: var(--kz-card);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 30px;
    box-shadow: var(--kz-shadow);
}

.kz-safety-card h2 {
    font-size: 2rem;
    margin-bottom: 1.3rem;
}

.kz-safety-list p {
    display: flex;
    gap: .65rem;
    color: #607c8c;
    margin-bottom: .75rem;
}

.kz-safety-list span {
    color: #0b9a87;
    font-weight: bold;
}

.kz-safety img {
    width: 100%;
    border-radius: 30px;
    max-height: 470px;
    object-fit: cover;
    box-shadow: var(--kz-shadow);
}

.kz-modal {
    border: 0;
    border-radius: 30px;
    padding: clamp(1.3rem, 3vw, 2.2rem);
    background: #fffdf7;
}

.kz-close {
    align-self: end;
    margin-left: auto;
    z-index: 2;
}

.kz-story-modal-head {
    padding-right: 2.2rem;
    margin-bottom: 1.3rem;
}

.kz-story-modal-head h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin: .25rem 0 .45rem;
}

.kz-story-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    margin: 1.1rem 0 1.35rem;
}

.kz-story-summary p {
    background: #eef9f6;
    border-radius: 16px;
    padding: .8rem .9rem;
    color: #476b74;
    margin: 0;
    font-size: .9rem;
}

.kz-video-stage {
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 16 / 9;
    background: #0d2138;
    box-shadow: 0 18px 38px rgba(11, 29, 51, .18);
}

.kz-video-stage iframe,
.kz-video-stage video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.kz-video-together {
    margin: 1rem 0;
    border-radius: 14px;
    background: #fff3d4;
    color: #755921;
    padding: .8rem .95rem;
    font-weight: 600;
}

.kz-scene-tabs {
    display: flex;
    gap: .55rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.kz-scene-tabs button {
    border: 0;
    border-radius: 999px;
    padding: .55rem .9rem;
    background: #edf3f3;
    color: #536f7b;
    white-space: nowrap;
    font-weight: 600;
}

.kz-scene-tabs button.active {
    background: var(--kz-teal);
    color: #fff;
}

.kz-scene {
    background: white;
    border-radius: 22px;
    padding: 1.25rem;
    border: 1px solid #e9f0ed;
}

.kz-scene h3 {
    font-size: 1.35rem;
}

.kz-scene-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .65rem;
    margin: 1rem 0;
}

.kz-scene-grid p,
.kz-prompt-block {
    border-radius: 13px;
    background: #f4faf9;
    margin: 0;
    padding: .7rem .75rem;
    color: #506c79;
    font-size: .86rem;
}

.kz-scene-grid strong,
.kz-prompt-block strong {
    display: block;
    color: #193a4e;
    margin-bottom: .22rem;
}

.kz-prompt-block {
    margin-top: .7rem;
    background: #f4f1fd;
}

.kz-game-modal h2 {
    margin-top: .35rem;
}

.kz-game-intro {
    color: #627e8d;
}

.kz-quiz-question {
    font-size: 1.2rem;
    color: #17384d;
    font-weight: 700;
    margin: 1.2rem 0;
}

.kz-options {
    display: grid;
    gap: .7rem;
}

.kz-option,
.kz-phrase,
.kz-match-tile {
    background: white;
    border: 2px solid #e1eeee;
    padding: .75rem 1rem;
    border-radius: 15px;
    text-align: left;
    font-weight: 600;
    color: #27495d;
}

.kz-option:hover,
.kz-phrase:hover,
.kz-match-tile:hover {
    border-color: #42c8bd;
}

.kz-option.correct,
.kz-match-tile.correct {
    background: #e5faf1;
    border-color: #23a77e;
}

.kz-option.wrong {
    background: #fff1ed;
    border-color: #ef907e;
}

.kz-feedback {
    min-height: 48px;
    border-radius: 13px;
    margin-top: .9rem;
    padding: .72rem .85rem;
    background: #eff8f8;
    color: #3f6875;
}

.kz-phrase-bank,
.kz-built-verse {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    min-height: 58px;
    border-radius: 17px;
    padding: .65rem;
    margin: .9rem 0;
    background: #eef8f7;
}

.kz-built-verse {
    background: #fff7dc;
}

.kz-match-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .7rem;
}

.kz-concept-list {
    display: grid;
    gap: .65rem;
    margin: 1.2rem 0;
}

.kz-concept-list p {
    background: #eef8f7;
    border-radius: 13px;
    padding: .7rem;
    margin: 0;
}

.kz-play-stage {
    position: relative;
    overflow: hidden;
    margin: 1rem 0;
    border-radius: 24px;
    min-height: 220px;
    padding: 1.15rem;
    background: linear-gradient(180deg, #dff7ff, #eeffe8);
}

.kz-ark-stage {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.kz-ark-mini {
    width: 110px;
    height: 72px;
    flex: none;
    border-radius: 9px 9px 34px 34px;
    background: #bb7042;
    position: relative;
    box-shadow: inset 0 -12px #965331;
}

.kz-ark-mini::before {
    content: "";
    position: absolute;
    left: 20px;
    top: -29px;
    width: 70px;
    height: 30px;
    background: #e19b57;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.kz-animal-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .55rem;
}

.kz-animal-card {
    border: 2px solid #c7ece6;
    background: #fff;
    border-radius: 17px;
    height: 64px;
    color: var(--kz-teal);
    font-size: 1.7rem;
    font-weight: 800;
    transition: transform .2s ease, background .25s ease;
}

.kz-animal-card:hover {
    transform: translateY(-3px) rotate(-1deg);
}

.kz-animal-card.revealed,
.kz-animal-card.matched {
    background: #fff3d4;
    animation: kzCardReveal .28s ease;
}

.kz-animal-card.matched {
    border-color: #4bc29c;
}

.kz-valley-stage {
    background: linear-gradient(180deg, #ffe4b1 0%, #d5ebad 58%, #bfe8e8 59%, #e1f9f5 100%);
}

.kz-stream {
    position: absolute;
    bottom: 30px;
    left: -5%;
    width: 110%;
    height: 42px;
    transform: rotate(-3deg);
    background: linear-gradient(90deg, #60d1e4, #9feaf4, #4cc2de);
    animation: kzWater 2.5s linear infinite alternate;
}

.kz-courage-targets {
    display: flex;
    justify-content: space-around;
    gap: .6rem;
    position: relative;
    z-index: 1;
    padding-top: 2.7rem;
}

.kz-courage-target {
    border: 0;
    min-width: 100px;
    border-radius: 999px;
    padding: .8rem 1rem;
    background: #fff;
    color: #416270;
    font-weight: 700;
    box-shadow: 0 9px 18px rgba(31, 60, 71, .12);
}

.kz-courage-target.hit {
    background: var(--kz-gold);
    color: #4e3712;
    transform: translateY(-10px);
}

.kz-sea-stage {
    display: flex;
    align-items: stretch;
    padding: 0;
    background: #f2dba8;
}

.kz-wave {
    width: 22%;
    background: repeating-linear-gradient(145deg, #39aecd, #39aecd 20px, #68d9e7 21px, #68d9e7 42px);
    animation: kzWave 2.4s ease-in-out infinite alternate;
}

.kz-sea-path {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .6rem;
    padding: 1.3rem .8rem;
}

.kz-sea-tile {
    border: 2px dashed #d1a963;
    border-radius: 13px;
    background: #ffedc8;
    color: #765628;
    font-weight: 700;
}

.kz-sea-tile.active {
    border-style: solid;
    border-color: #efbb47;
    background: #ffcd59;
    animation: kzGlow .5s ease;
}

.kz-kindness-stage {
    background: linear-gradient(180deg, #e8dbff, #e4f7d5);
    text-align: center;
}

.kz-kindness-plant {
    margin: 0 auto .75rem;
    width: 110px;
    height: 54px;
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: end;
}

.kz-kindness-plant span {
    width: 29px;
    height: 29px;
    opacity: .25;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: #ff7f88;
}

.kz-kindness-plant[data-blooms="1"] span:first-child,
.kz-kindness-plant[data-blooms="2"] span:nth-child(-n+2),
.kz-kindness-plant[data-blooms="3"] span {
    opacity: 1;
    animation: kzBloom .45s ease;
}

.kz-kindness-question {
    font-weight: 700;
    font-size: 1.12rem;
    color: #3d4f66;
}

.kz-kindness-choices {
    display: flex;
    gap: .65rem;
    justify-content: center;
}

.kz-kindness-choices button {
    border: 2px solid #d7ccf1;
    background: #fff;
    border-radius: 999px;
    padding: .7rem 1.05rem;
    color: #4c4970;
    font-weight: 700;
}

.kz-kindness-choices button:hover {
    border-color: var(--kz-lilac);
}

.kz-win-burst {
    display: flex;
    justify-content: center;
    gap: .8rem;
    font-size: 2rem;
    color: var(--kz-gold);
    margin: .5rem 0 -.25rem;
}

.kz-win-burst span {
    animation: kzStarPop .65s ease both;
}

.kz-win-burst span:nth-child(2) {
    animation-delay: .12s;
}

.kz-win-burst span:nth-child(3) {
    animation-delay: .22s;
}

.kz-feedback.kz-success {
    background: #e5faf1;
    color: #147052;
    font-weight: 700;
    text-align: center;
}

.shake {
    animation: kzShake .38s ease;
}

.kz-parent h2 {
    margin: .2rem 0 .75rem;
}

.kz-setting {
    display: block;
    background: #f0f9f7;
    border-radius: 15px;
    padding: .85rem;
    margin: .7rem 0;
    color: #315a69;
    font-weight: 600;
}

.kz-setting input {
    margin-right: .55rem;
    accent-color: var(--kz-teal);
}

html[dir="rtl"] .kz-story-art span {
    left: auto;
    right: .8rem;
}

html[dir="rtl"] .kz-video-pill {
    right: auto;
    left: .8rem;
}

html[dir="rtl"] .kz-option,
html[dir="rtl"] .kz-phrase,
html[dir="rtl"] .kz-match-tile {
    text-align: right;
}

html[dir="rtl"] .kz-setting input {
    margin-right: 0;
    margin-left: .55rem;
}

html[dir="rtl"] .kz-close {
    margin-left: 0;
    margin-right: auto;
}

html[dir="rtl"] .kz-production-grid div {
    padding: 2rem 0 2rem 2rem;
}

.kz-privacy {
    color: #617d8d;
    font-size: .85rem;
    margin-top: 1.1rem;
}

.kz-shell.reduce-motion *,
.kz-shell.reduce-motion *::before,
.kz-shell.reduce-motion *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
}

@keyframes kzGuideFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes kzDrift {
    from { transform: translateY(0); }
    to { transform: translateY(-16px); }
}

@keyframes kzCardReveal {
    from { transform: rotateY(90deg); }
    to { transform: rotateY(0); }
}

@keyframes kzWater {
    to { transform: rotate(-1deg) translateX(10px); }
}

@keyframes kzWave {
    to { background-position: 20px 0; }
}

@keyframes kzGlow {
    50% { transform: scale(1.06); }
}

@keyframes kzBloom {
    from { transform: rotate(-45deg) scale(.2); }
    to { transform: rotate(-45deg) scale(1); }
}

@keyframes kzStarPop {
    from { opacity: 0; transform: translateY(15px) scale(.3) rotate(-25deg); }
    to { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

@keyframes kzShake {
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-3px); }
}

@media (max-width: 1199px) {
    .kz-game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .kz-hero {
        min-height: 720px;
    }

    .kz-hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .kz-story-rail {
        grid-template-columns: repeat(2, 1fr);
    }

    .kz-memory-panel,
    .kz-production-grid,
    .kz-safety {
        grid-template-columns: 1fr;
    }

    .kz-production-grid div {
        padding: 0 1.4rem 1.6rem;
    }

    html[dir="rtl"] .kz-production-grid div {
        padding: 0 1.4rem 1.6rem;
    }

    .kz-production-grid img {
        height: 310px;
    }

    .kz-badges {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .kz-hero {
        min-height: 650px;
        padding: 7.5rem 0 3.5rem;
    }

    .kz-hero-image {
        object-position: 66% center;
    }

    .kz-hero-overlay {
        background: linear-gradient(0deg, rgba(10, 29, 49, .94), rgba(10, 29, 49, .23) 70%),
            linear-gradient(90deg, rgba(10, 29, 49, .65), transparent);
    }

    .kz-guide-card {
        display: none;
    }

    .kz-dock {
        grid-template-columns: repeat(2, 1fr);
        transform: translateY(-18px);
    }

    .kz-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .kz-story-rail,
    .kz-game-grid,
    .kz-dashboard,
    .kz-badges,
    .kz-story-summary,
    .kz-scene-grid {
        grid-template-columns: 1fr;
    }

    .kz-ark-stage,
    .kz-courage-targets,
    .kz-kindness-choices {
        flex-direction: column;
    }

    .kz-animal-grid {
        width: 100%;
    }

    .kz-story-rail {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: .7rem;
    }

    .kz-story-card {
        min-width: min(84vw, 325px);
        scroll-snap-align: start;
    }

    .kz-section {
        padding-top: 2.3rem;
    }
}
