/* ==========================================================
   Children's Day welcome (14 November)
   Screen 1: greeting with the national flag, Nehru & Gandhi
   Screen 2: thank-you message
   Shared: top bar (Why Box logo, music player, Government of
   Telangana emblem), festive background and falling rose petals.
   ========================================================== */
:root {
    --cd-saffron: #ff9933;
    --cd-saffron-deep: #d9700f;
    --cd-green: #138808;
    --cd-green-deep: #0d6b05;
    --cd-navy: #000080;
    --cd-ink: #1c2147;
    --cd-ink-soft: #3d4266;
    --cd-ivory: #fffaf2;
    --cd-gold: #c9a14a;
    --cd-card: #ffffff;
    --cd-topbar-h: 104px;
}

html.cd-entry-active,
html.cd-entry-active body {
    overflow: hidden;
}

.cd-welcome {
    position: fixed;
    inset: 0;
    z-index: 10000;
    box-sizing: border-box;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    color: var(--cd-ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background:
        radial-gradient(ellipse 60% 55% at 0% 0%, rgba(255, 153, 51, .28), transparent 70%),
        radial-gradient(ellipse 60% 55% at 100% 100%, rgba(19, 136, 8, .22), transparent 70%),
        radial-gradient(ellipse 45% 40% at 70% 45%, rgba(255, 255, 255, .95), transparent 75%),
        linear-gradient(180deg, #fff4e6 0%, #fffaf2 45%, #f3f9ef 100%);
    opacity: 1;
    visibility: visible;
    transition: opacity .7s ease, visibility .7s ease;
}

.cd-welcome *,
.cd-welcome *::before,
.cd-welcome *::after { box-sizing: border-box; }

.cd-welcome.is-leaving {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Thin tricolour bands along the top and bottom edges */
.cd-welcome::before,
.cd-welcome::after {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 8;
    height: 6px;
    background: linear-gradient(90deg, var(--cd-saffron) 0 33.33%, #fff 33.33% 66.66%, var(--cd-green) 66.66%);
    content: "";
    pointer-events: none;
}
.cd-welcome::before { top: 0; }
.cd-welcome::after { bottom: 0; }

/* ---------- Decorative background ---------- */
.cd-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Soft sun rays fanning out from behind the photographs */
.cd-rays {
    position: absolute;
    top: 46%;
    left: 70%;
    width: 170vmax;
    height: 170vmax;
    border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, rgba(255, 153, 51, .10) 0deg 6deg, transparent 6deg 15deg);
    -webkit-mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .6) 22%, transparent 55%);
    mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .6) 22%, transparent 55%);
    transform: translate(-50%, -50%);
    animation: cd-rays-turn 120s linear infinite;
}

@keyframes cd-rays-turn { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Large, faint Ashoka Chakra watermark */
.cd-watermark {
    position: absolute;
    bottom: -14vmin;
    left: -12vmin;
    width: 58vmin;
    height: 58vmin;
    color: var(--cd-navy);
    opacity: .05;
}

.cd-watermark svg { display: block; width: 100%; height: 100%; }
.cd-watermark .cd-chakra { fill: currentColor; }
.cd-chakra--slow { animation-duration: 60s !important; }

/* Tricolour bunting hanging just below the top bar */
.cd-bunting {
    position: absolute;
    top: calc(var(--cd-topbar-h) - 4px);
    left: 0;
    right: 0;
    height: 44px;
    opacity: .95;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='44' viewBox='0 0 240 44'%3E%3Cpath d='M0 3 Q120 22 240 3' fill='none' stroke='%23b08a46' stroke-width='1.6'/%3E%3Cpath d='M22 9.2 L48 13.6 L33 38 Z' fill='%23ff9933'/%3E%3Cpath d='M70 15.6 L98 18.4 L82 42 Z' fill='%23ffffff' stroke='%23e6dccb' stroke-width='1'/%3E%3Cpath d='M120 18.6 L148 18 L134 42 Z' fill='%23138808'/%3E%3Cpath d='M170 16.8 L196 12.8 L184 37.5 Z' fill='%23ff9933'/%3E%3Cpath d='M214 10.5 L236 4.6 L227 29 Z' fill='%23ffffff' stroke='%23e6dccb' stroke-width='1'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 240px 44px;
    filter: drop-shadow(0 3px 3px rgba(28, 33, 71, .12));
}

/* ---------- Top bar ---------- */
.cd-topbar {
    position: absolute;
    top: 6px;
    left: 0;
    right: 0;
    z-index: 7;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
    height: calc(var(--cd-topbar-h) - 6px);
    padding: 0 clamp(14px, 3vw, 44px);
    background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .78));
    border-bottom: 1px solid rgba(201, 161, 74, .35);
    box-shadow: 0 6px 24px rgba(28, 33, 71, .07);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.cd-brand {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-self: start;
    min-width: 0;
}

.cd-brand img {
    width: auto;
    height: 68px;
}

.cd-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.cd-brand-text strong {
    color: var(--cd-green-deep);
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: .01em;
}

.cd-brand-text small {
    color: #5a5e7a;
    font-size: .78rem;
}

/* Centre: "An Initiative by" / "Government of Telangana" */
.cd-initiative {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
    text-align: center;
    line-height: 1.15;
}

.cd-initiative-by {
    color: #8a4a0d;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.cd-initiative-by::before,
.cd-initiative-by::after {
    display: inline-block;
    width: 26px;
    height: 1px;
    margin: 0 10px;
    vertical-align: middle;
    background: currentColor;
    opacity: .5;
    content: "";
}

.cd-initiative-org {
    margin-top: 4px;
    padding-bottom: 6px;
    background: linear-gradient(90deg, var(--cd-saffron) 0 33.33%, #e3dccd 33.33% 66.66%, var(--cd-green) 66.66%) bottom center / 70% 3px no-repeat;
    color: var(--cd-green-deep);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.15rem, 1.7vw, 1.6rem);
    font-weight: 700;
    letter-spacing: .01em;
    white-space: nowrap;
}

/* Right: music player + emblem */
.cd-topbar-end {
    display: flex;
    gap: clamp(12px, 1.6vw, 24px);
    align-items: center;
    justify-self: end;
}

/* Government of Telangana emblem */
.cd-govt {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    justify-self: end;
    text-align: center;
}

.cd-govt-seal {
    display: grid;
    place-items: center;
    width: 80px;
    height: 80px;
    padding: 2px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 62%, #fdf6e6 100%);
    box-shadow: 0 0 0 2px rgba(201, 161, 74, .55), 0 6px 16px rgba(19, 136, 8, .18);
}

.cd-govt-seal img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.cd-govt-name {
    position: relative;
    padding-bottom: 4px;
    color: var(--cd-green-deep);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* thin tricolour rule under the caption */
.cd-govt-name::after {
    position: absolute;
    right: 18%;
    bottom: 0;
    left: 18%;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--cd-saffron) 0 33.33%, #e3dccd 33.33% 66.66%, var(--cd-green) 66.66%);
    content: "";
}

/* ---------- Screens ---------- */
.cd-screen {
    position: absolute;
    top: var(--cd-topbar-h);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: clamp(22px, 2.8vh, 40px) clamp(16px, 4vw, 64px) clamp(12px, 2vh, 26px);
    opacity: 1;
    transform: none;
    transition: opacity .6s ease, transform .6s ease;
}

.cd-screen[hidden] { display: none; }

.cd-screen.is-entering,
.cd-screen.is-exiting {
    opacity: 0;
    transform: translateY(14px);
}

.cd-screen.is-exiting { transform: translateY(-14px); }

.cd-inner {
    width: 100%;
    max-width: 1560px;
    margin-block: auto;
}

/* ---------- Typography ---------- */
.cd-eyebrow {
    margin: 0 0 12px;
    color: #a4520a;
    font-size: clamp(.78rem, 1.1vw, .9rem);
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.cd-title {
    margin: 0;
    color: var(--cd-ink);
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: clamp(2.5rem, 6.2vw, 5rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -.01em;
}

.cd-title span {
    display: block;
    color: var(--cd-navy);
}

.cd-title:focus, .cd-title:focus-visible { outline: none; }

.cd-message {
    max-width: 36rem;
    margin: 16px 0 0;
    color: var(--cd-ink-soft);
    font-size: clamp(1rem, 1.25vw, 1.12rem);
    line-height: 1.65;
}

.cd-message strong { color: var(--cd-ink); }

/* ---------- Buttons ---------- */
.cd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 26px;
}

.cd-btn {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 32px;
    border: 2px solid var(--cd-navy);
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #0b1aa8, var(--cd-navy));
    box-shadow: 0 12px 26px rgba(0, 0, 128, .25);
    font: inherit;
    font-size: 1.06rem;
    font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.cd-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(0, 0, 128, .3); }
.cd-btn:active { transform: translateY(0); }
.cd-btn:focus-visible { outline: 3px solid var(--cd-saffron); outline-offset: 3px; }

.cd-btn--ghost {
    color: var(--cd-navy);
    background: rgba(255, 255, 255, .9);
    box-shadow: none;
}

.cd-btn--ghost:hover { color: #fff; background: var(--cd-navy); }

.cd-btn span[aria-hidden] { transition: transform .2s ease; }
.cd-btn:hover span[aria-hidden] { transform: translateX(3px); }
.cd-btn--ghost:hover span[aria-hidden] { transform: translateX(-3px); }

/* ---------- Screen 1: hero ---------- */
.cd-hero {
    display: grid;
    grid-template-columns: minmax(340px, 5fr) 7fr;
    grid-template-areas:
        "intro visual"
        "values values";
    column-gap: clamp(28px, 4.5vw, 80px);
    row-gap: clamp(16px, 2.4vh, 30px);
    align-items: center;
}

.cd-intro { grid-area: intro; }
.cd-visual { grid-area: visual; }
.cd-values { grid-area: values; }

/* Flag: drawn on a canvas and waving in a strong wind (js/childrens-day.js),
   stretched across the full width of the text column */
.cd-flag {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 5 / 4;
    margin: 0 0 20px;
    overflow: hidden;
    border: 5px solid #fff;
    border-radius: 20px;
    background: linear-gradient(180deg, #9db3c9 0%, #c9d6e2 100%);
    box-shadow: 0 18px 40px rgba(28, 33, 71, .22), 0 0 0 1px rgba(201, 161, 74, .35);
}

.cd-flag-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Positioned exactly over the chakra's place on the waving white band.
   The SVG is stretched (preserveAspectRatio="none") to the band's perspective. */
.cd-chakra-wrap {
    position: absolute;
    left: 43.11%;
    top: 51.23%;
    width: 15.7%;
    height: 22.9%;
    transform: translate(-50%, -50%) rotate(2deg);
    mix-blend-mode: multiply;
    pointer-events: none;
}

.cd-chakra-wrap svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.cd-chakra {
    /* Pivot on the wheel's own centre so it spins in place */
    transform-box: fill-box;
    transform-origin: center;
    animation: cd-chakra-spin 12s linear infinite;
    will-change: transform;
}

@keyframes cd-chakra-spin { to { transform: rotate(360deg); } }

.cd-chip {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    margin: 0 0 14px;
    padding: 8px 16px;
    border: 1px solid rgba(217, 112, 15, .3);
    border-radius: 999px;
    color: #9a4a06;
    background: rgba(255, 153, 51, .12);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.cd-chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cd-saffron);
    box-shadow: 0 0 0 4px rgba(255, 153, 51, .25);
}

.cd-hero-title { font-size: clamp(2.6rem, 5.2vw, 5.4rem); }
.cd-hero-title .cd-gradient-text { white-space: nowrap; }

.cd-gradient-text {
    background: linear-gradient(100deg, var(--cd-saffron-deep) 0%, #c2410c 22%, var(--cd-navy) 50%, #0a5c2e 78%, var(--cd-green) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
    padding-bottom: .06em;
}

.cd-quote {
    position: relative;
    max-width: 34rem;
    margin: 20px 0 0;
    padding: 14px 18px 14px 22px;
    border-left: 4px solid var(--cd-saffron);
    border-radius: 0 14px 14px 0;
    background: linear-gradient(90deg, rgba(255, 153, 51, .12), rgba(255, 255, 255, .6));
}

.cd-quote p {
    margin: 0;
    color: var(--cd-ink);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.08rem, 1.5vw, 1.3rem);
    font-style: italic;
    line-height: 1.45;
}

.cd-quote cite {
    display: block;
    margin-top: 6px;
    color: #8a4a0d;
    font-size: .86rem;
    font-style: normal;
    font-weight: 700;
}

/* Photographs: Nehru with children, Gandhi medallion overlapping */
.cd-visual {
    position: relative;
    padding: clamp(36px, 5vw, 64px) 0 0 clamp(36px, 5vw, 70px);
}

.cd-visual-glow {
    position: absolute;
    inset: 4% -4% 10% 10%;
    border-radius: 40px;
    background:
        linear-gradient(135deg, rgba(255, 153, 51, .55), rgba(255, 255, 255, .2) 50%, rgba(19, 136, 8, .5));
    filter: blur(28px);
    opacity: .55;
}

.cd-nehru {
    position: relative;
    margin: 0;
}

.cd-nehru-frame {
    position: relative;
    overflow: hidden;
    padding: 8px;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--cd-saffron), #fff 45%, #fff 55%, var(--cd-green));
    box-shadow: 0 30px 60px rgba(28, 33, 71, .22);
}

.cd-nehru-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 19px;
}

.cd-nehru figcaption,
.cd-gandhi figcaption {
    display: flex;
    flex-direction: column;
    width: fit-content;
    padding: 8px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 8px 22px rgba(28, 33, 71, .14);
    line-height: 1.3;
    text-align: center;
}

.cd-nehru figcaption {
    position: relative;
    margin: -22px auto 0;
}

.cd-nehru figcaption strong,
.cd-gandhi figcaption strong {
    color: var(--cd-ink);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.08rem;
}

.cd-nehru figcaption span,
.cd-gandhi figcaption span {
    color: var(--cd-ink-soft);
    font-size: .84rem;
}

.cd-gandhi {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: clamp(120px, 17%, 210px);
    margin: 0;
}

.cd-gandhi-ring {
    overflow: hidden;
    aspect-ratio: 1;
    padding: 6px;
    border-radius: 50%;
    background: conic-gradient(var(--cd-saffron) 0 33%, #fff 33% 66%, var(--cd-green) 66% 100%);
    box-shadow: 0 16px 34px rgba(28, 33, 71, .28);
}

.cd-gandhi-ring img {
    display: block;
    width: 100%;
    height: 100%;
    border: 4px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 30%;
}

.cd-gandhi figcaption {
    position: relative;
    margin: -14px auto 0;
    padding: 6px 12px;
    white-space: nowrap;
}

.cd-gandhi figcaption strong { font-size: .95rem; }
.cd-gandhi figcaption span { font-size: .74rem; }

/* Thank-you screen keeps room at the bottom for the floating music player */
#cdThanks { padding-bottom: 96px; }

/* Values row (on desktop it stops short of the floating music player) */
.cd-values {
    margin-right: 360px !important;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(10px, 1.4vw, 20px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.cd-values li {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px 18px;
    border: 1px solid rgba(201, 161, 74, .28);
    border-radius: 18px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 10px 26px rgba(28, 33, 71, .08);
}

.cd-values i {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    color: #fff;
    font-size: 1.1rem;
}

.cd-values li:nth-child(1) i { background: linear-gradient(135deg, #ffb357, var(--cd-saffron-deep)); }
.cd-values li:nth-child(2) i { background: linear-gradient(135deg, #3b48d6, var(--cd-navy)); }
.cd-values li:nth-child(3) i { background: linear-gradient(135deg, #34b02a, var(--cd-green-deep)); }
.cd-values li:nth-child(4) i { background: linear-gradient(135deg, #f7c548, #c98a08); }

.cd-values span {
    display: flex;
    flex-direction: column;
    color: var(--cd-ink-soft);
    font-size: .84rem;
    line-height: 1.35;
}

.cd-values strong { color: var(--cd-ink); font-size: .98rem; }

.cd-credit {
    margin: 22px 0 0;
    color: #5a5e7a;
    font-size: .72rem;
    line-height: 1.5;
}

.cd-credit a { color: inherit; }

/* ---------- Screen 2: thank you ---------- */
.cd-thanks {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    max-width: 1100px;
    margin-inline: auto;
    padding: clamp(26px, 4vw, 56px);
    border-radius: 28px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 30px 70px rgba(28, 33, 71, .14), 0 0 0 1px rgba(201, 161, 74, .25);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.cd-leader {
    width: clamp(200px, 24vw, 300px);
    margin: 0;
    text-align: center;
}

.cd-leader-frame {
    position: relative;
    padding: 7px;
    border-radius: 22px;
    background: linear-gradient(160deg, var(--cd-saffron), #fff 48%, var(--cd-green));
    box-shadow: 0 18px 40px rgba(28, 33, 71, .2);
}

.cd-leader-frame img {
    display: block;
    width: 100%;
    height: auto;
    border: 4px solid #fff;
    border-radius: 16px;
    background: #d9d9d9;
}

.cd-leader figcaption {
    margin-top: 14px;
    color: var(--cd-ink-soft);
    font-size: .9rem;
    line-height: 1.45;
}

.cd-leader figcaption strong {
    display: block;
    color: var(--cd-ink);
    font-size: 1rem;
}

.cd-thanks .cd-title {
    font-size: clamp(2.3rem, 5vw, 4rem);
    white-space: nowrap;
}

/* Title + tricolour underline share one width, so the line spans all of "Thank You" */
.cd-title-wrap {
    width: fit-content;
    max-width: 100%;
}

.cd-divider {
    display: flex;
    width: 120px;
    height: 4px;
    margin: 18px 0 20px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--cd-saffron) 0 33.33%, #e8e2d6 33.33% 66.66%, var(--cd-green) 66.66%);
}

.cd-title-wrap .cd-divider {
    position: relative;
    width: 100%;
    height: 5px;
    margin-top: 18px;
    margin-bottom: 26px;
    overflow: visible;
}

/* Small rotating Ashoka Chakra in the middle of the white section of the line */
.cd-divider-chakra {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(20px, 2.2vw, 26px);
    height: clamp(20px, 2.2vw, 26px);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 1px 4px rgba(15, 42, 133, .25);
}

.cd-divider-chakra svg { display: block; width: 100%; height: 100%; }
.cd-chakra--small { animation-duration: 6s; }

/* "Thank You" on a single line */
.cd-thanks .cd-title span { display: inline; }

.cd-gratitude {
    max-width: 40rem;
    margin: 0;
    color: var(--cd-ink);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.15rem, 1.9vw, 1.5rem);
    line-height: 1.55;
}

.cd-gratitude strong { color: var(--cd-navy); font-weight: 700; }
.cd-thanks .cd-message { max-width: 38rem; }

/* ---------- Background music player (floating, bottom-right) ---------- */
.cd-player {
    position: absolute;
    right: clamp(12px, 1.6vw, 26px);
    bottom: clamp(14px, 2vh, 24px);
    z-index: 9;
    display: flex;
    gap: 12px;
    align-items: center;
    width: 350px;
    max-width: calc(100% - 24px);
    padding: 7px 10px 7px 7px;
    border: 1px solid rgba(201, 161, 74, .35);
    border-radius: 999px;
    color: var(--cd-ink);
    background: #fff;
    box-shadow: 0 14px 34px rgba(28, 33, 71, .22), 0 0 0 4px rgba(255, 255, 255, .6);
}

.cd-player[hidden] { display: none; }

.cd-player-btn {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--cd-navy);
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.cd-player-btn svg { width: 22px; height: 22px; fill: currentColor; }
.cd-player-btn:focus-visible { outline: 3px solid var(--cd-saffron); outline-offset: 2px; }

.cd-player-play {
    width: 46px;
    height: 46px;
    color: #fff;
    background: linear-gradient(145deg, #ff9933, #e07a12);
    box-shadow: 0 6px 14px rgba(224, 122, 18, .35);
}

.cd-player-play:hover { filter: brightness(1.05); }
.cd-player-mute:hover { background: rgba(0, 0, 128, .07); }

.cd-ico-pause, .cd-ico-muted { display: none; }
.cd-player.is-playing .cd-ico-play { display: none; }
.cd-player.is-playing .cd-ico-pause { display: block; }
.cd-player.is-muted .cd-ico-vol { display: none; }
.cd-player.is-muted .cd-ico-muted { display: block; }

/* Pulse on the play button until music starts, so visitors notice it */
.cd-player:not(.is-playing) .cd-player-play { animation: cd-pulse 1.8s ease-out infinite; }
@keyframes cd-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 153, 51, .55); }
    100% { box-shadow: 0 0 0 14px rgba(255, 153, 51, 0); }
}

.cd-player-info { flex: 1 1 auto; min-width: 0; }

.cd-player-title {
    display: flex;
    gap: 8px;
    align-items: center;
    overflow: hidden;
    color: var(--cd-ink);
    font-size: .9rem;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cd-player-title small { color: #5a5e7a; font-size: .76rem; font-weight: 500; }

.cd-eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.cd-eq i { display: block; width: 3px; height: 3px; border-radius: 2px; background: var(--cd-green); }
.cd-player.is-playing .cd-eq i { animation: cd-eq .8s ease-in-out infinite alternate; }
.cd-player.is-playing .cd-eq i:nth-child(2) { animation-delay: -.3s; }
.cd-player.is-playing .cd-eq i:nth-child(3) { animation-delay: -.55s; }
@keyframes cd-eq { from { height: 3px; } to { height: 12px; } }

.cd-player-bar { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.cd-player-time { flex: 0 0 auto; min-width: 2.4em; color: #4a4e6c; font-size: .72rem; font-variant-numeric: tabular-nums; }

.cd-player-seek {
    --pct: 0%;
    flex: 1 1 auto;
    min-width: 0;
    height: 4px;
    margin: 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--cd-saffron) 0 var(--pct), #e6e1d6 var(--pct));
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.cd-player-seek::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--cd-navy);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
    -webkit-appearance: none;
    appearance: none;
}

.cd-player-seek::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--cd-navy);
}

.cd-player-seek:focus-visible { outline: 3px solid var(--cd-saffron); outline-offset: 4px; }

/* ---------- Falling rose petals (behind content) ---------- */
.cd-petals {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    contain: strict;
}

.cd-petal {
    position: absolute;
    top: -12vh;
    left: var(--x, 50%);
    width: var(--size, 34px);
    animation: cd-fall var(--fall, 12s) linear var(--delay, 0s) infinite;
    will-change: transform;
}

.cd-petal-sway {
    display: block;
    animation: cd-sway var(--sway-t, 4s) ease-in-out var(--delay, 0s) infinite alternate;
    will-change: transform;
}

.cd-petal img {
    display: block;
    width: 100%;
    height: auto;
    opacity: var(--alpha, .95);
    filter: drop-shadow(0 6px 5px rgba(60, 10, 20, .18)) blur(var(--blur, 0px));
    transform: rotate(var(--r0, 0deg)) scaleX(var(--flip, 1));
    animation: cd-flutter var(--flut, 3.2s) ease-in-out var(--delay, 0s) infinite alternate;
    -webkit-user-drag: none;
    user-select: none;
}

@keyframes cd-fall {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(var(--drift, 40px), 124vh, 0); }
}

@keyframes cd-sway {
    from { transform: translate3d(calc(var(--amp, 30px) * -1), 0, 0) rotate(calc(var(--spin, 40deg) * -1)); }
    to   { transform: translate3d(var(--amp, 30px), 0, 0) rotate(var(--spin, 40deg)); }
}

@keyframes cd-flutter {
    from { transform: rotate(var(--r0, 0deg)) scaleX(var(--flip, 1)) rotateX(0deg) rotateY(0deg); }
    to   { transform: rotate(calc(var(--r0, 0deg) + 25deg)) scaleX(var(--flip, 1)) rotateX(55deg) rotateY(35deg); }
}

/* Static petals used when the visitor prefers reduced motion */
.cd-petals.is-static .cd-petal,
.cd-petals.is-static .cd-petal-sway,
.cd-petals.is-static .cd-petal img { animation: none; }
.cd-petals.is-static .cd-petal { top: var(--y, 50%); }

/* ---------- Responsive ---------- */

/* Shorter desktop / laptop screens: tighten so everything fits without scrolling */
@media (min-width: 981px) and (max-height: 980px) {
    .cd-flag { max-width: 300px; margin-bottom: 16px; }
    .cd-hero-title { font-size: clamp(2.4rem, 4.3vw, 4.4rem); }
    .cd-quote { margin-top: 14px; padding: 10px 16px 10px 18px; }
    .cd-message { display: none; }
    .cd-actions { margin-top: 20px; }
    .cd-values li { padding: 10px 14px; }
    .cd-values i { width: 40px; height: 40px; border-radius: 12px; }
    .cd-visual { padding-top: clamp(30px, 4vw, 52px); }
}

@media (min-width: 981px) and (max-height: 860px) {
    .cd-flag { max-width: 250px; }
    .cd-chip { margin-bottom: 10px; padding: 6px 14px; }
    .cd-hero-title { font-size: clamp(2.2rem, 3.8vw, 3.7rem); }
    .cd-values span { font-size: 0; }
    .cd-values strong { font-size: .95rem; }
    .cd-visual { max-width: 860px; justify-self: center; width: 100%; }
}

@media (min-width: 981px) and (max-height: 740px) {
    :root { --cd-topbar-h: 80px; }
    .cd-brand img { height: 54px; }
    .cd-govt-seal { width: 58px; height: 58px; }
    .cd-flag { max-width: 195px; }
    .cd-thanks { padding: 22px 36px; }
    .cd-leader { width: 180px; }
    .cd-thanks .cd-title { font-size: 2.6rem; }
    .cd-gratitude { font-size: 1.12rem; }
    #cdThanks { padding-top: 24px; }
    .cd-values { display: none; }
    .cd-bunting { height: 34px; background-size: 180px 33px; }
}

@media (max-width: 1280px) {
    .cd-brand-text { display: none; }
}

@media (max-width: 980px) {
    :root { --cd-topbar-h: 78px; }
    .cd-topbar { gap: 10px; }
    .cd-brand img { height: 52px; }
    .cd-govt-seal { width: 56px; height: 56px; }
    .cd-initiative-by { font-size: .62rem; letter-spacing: .14em; }
    .cd-initiative-by::before, .cd-initiative-by::after { width: 12px; margin: 0 6px; }
    .cd-initiative-org { font-size: clamp(.92rem, 3.6vw, 1.2rem); margin-top: 2px; padding-bottom: 5px; }

    .cd-player { right: 12px; left: 12px; width: auto; max-width: 520px; margin-inline: auto; }
    .cd-values { margin-right: 0 !important; }
    .cd-screen { place-items: start center; padding: 46px 16px 110px; }
    .cd-hero {
        grid-template-columns: 1fr;
        grid-template-areas: "intro" "visual" "values";
        text-align: center;
    }
    .cd-intro {
        max-width: 640px;
        margin-inline: auto;
        padding: 22px 16px 26px;
        border-radius: 24px;
        background: rgba(255, 252, 246, .9);
        box-shadow: 0 18px 44px rgba(28, 33, 71, .1), 0 0 0 1px rgba(201, 161, 74, .2);
    }
    .cd-flag { margin-inline: auto; max-width: 340px; }
    .cd-quote { margin-inline: auto; text-align: left; }
    .cd-message { margin-inline: auto; }
    .cd-actions { justify-content: center; }
    .cd-visual { width: 100%; max-width: 720px; margin-inline: auto; padding: 46px 0 0 24px; }
    .cd-values { grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: left; }
    .cd-credit { text-align: center; }
    .cd-thanks { grid-template-columns: 1fr; text-align: center; }
    .cd-leader { margin-inline: auto; }
    .cd-divider, .cd-title-wrap { margin-inline: auto; }
    .cd-gratitude, .cd-thanks .cd-message { margin-inline: auto; }
    .cd-watermark { width: 80vmin; height: 80vmin; }
    .cd-rays { top: 40%; left: 50%; }
}

@media (max-width: 600px) {
    .cd-hero-title { font-size: clamp(2.3rem, 10vw, 3rem); }
    .cd-hero-title .cd-gradient-text { white-space: normal; }
    .cd-chip { font-size: .72rem; letter-spacing: .12em; }
    .cd-btn { width: 100%; max-width: 360px; }
    .cd-values { grid-template-columns: 1fr; }
    .cd-thanks { padding: 24px 16px; border-radius: 22px; }
    .cd-leader { width: min(56vw, 210px); }
    .cd-gandhi { width: 31%; }
    .cd-gandhi figcaption { display: none; }
    .cd-visual { padding: 34px 0 0 14px; }
    .cd-nehru figcaption { margin-top: 10px; }
    .cd-bunting { height: 34px; background-size: 180px 33px; }
    .cd-brand img { height: 44px; }
    .cd-govt-seal { width: 48px; height: 48px; }
    .cd-topbar { padding: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .cd-chakra, .cd-rays { animation: none; }
    .cd-welcome, .cd-screen, .cd-btn, .cd-btn span[aria-hidden] { transition-duration: .01ms !important; }
    .cd-screen.is-entering, .cd-screen.is-exiting { transform: none; }
    .cd-player:not(.is-playing) .cd-player-play,
    .cd-player.is-playing .cd-eq i { animation: none; }
    .cd-player.is-playing .cd-eq i { height: 9px; }
}