/* ==========================================================================
   SPOOKIZ DAYCARE — Care Studio arcade
   Loaded after style.css. Reuses the same design tokens/components (HUD,
   buttons, stage, wardrobe, roster, quest card, loot grid, phone gallery,
   cabinet, footer, modal) and only overrides what the Daycare theme needs:
   a coin -> star swap, a pastel-leaning nursery stage, and task-board tiles
   instead of wardrobe items.

   THEME: this page trades the dress-up page's neon arcade-cabinet look for
   a dreamy night sky — soft navy instead of near-black purple, pastel
   instead of neon accents, a low moon, and a field of randomly-twinkling
   stars. Re-declaring the shared design tokens on body.daycare (below)
   retints every component that already reads them (buttons, pills, text
   gradients, hearts, quest badges, etc.) without touching style.css, which
   the dress-up page still needs at full neon brightness.
   ========================================================================== */

/* ---------- Theme tokens: warm, sleepy, pastel-on-navy ---------- */
body.daycare {
    --ink: #1b2547;
    --night: #131a38;
    --night-2: #1e2951;
    --night-3: #2a3868;

    --magenta: #ffb8ca;
    --purple: #b9a8f0;
    --cyan: #a3dbf5;
    --lime: #b7ecc7;
    --yellow: #ffe8a3;
    --orange: #ffc79e;

    --paper: #fff8ef;
    --muted: #b9c2e2;
}

/* Night sky backdrop, replacing the arcade glow gradient */
body.daycare .arcade-bg {
    background:
        radial-gradient(55% 40% at 20% 88%, rgba(255, 216, 163, .1), transparent 70%),
        radial-gradient(120% 90% at 50% -10%, #263061 0%, transparent 60%),
        linear-gradient(180deg, #141b3a 0%, #0a0e22 100%);
}
body.daycare .bg-glow { opacity: .2; filter: blur(110px); animation-duration: 26s; }
body.daycare .bg-grid { opacity: .3; }

/* A low, glowing moon */
body.daycare .bg-moon {
    position: absolute;
    top: 9%;
    right: 11%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 32%, #fffaf0, var(--yellow) 55%, #f0cf88 100%);
    box-shadow: 0 0 70px 20px rgba(255, 232, 163, .3);
    opacity: .85;
}
@media (max-width: 720px) {
    body.daycare .bg-moon { width: 74px; height: 74px; top: 4%; right: 6%; }
}

/* Stars, scattered and set twinkling with randomized timing by daycare.js
   (each gets its own --size/--dur/--delay/--peak via inline style). They're
   split into depth layers (far/mid/near) that daycare.js drifts at
   different rates on scroll for a parallax feel — see .star-layer. */
body.daycare .bg-stars { position: absolute; inset: 0; }
body.daycare .star-layer { position: absolute; inset: 0; will-change: transform; }
body.daycare .night-star {
    position: absolute;
    width: var(--size, 2px);
    height: var(--size, 2px);
    border-radius: 50%;
    background: #fff;
    opacity: 0;
    animation: dc-twinkle var(--dur, 4s) ease-in-out var(--delay, 0s) infinite;
}
body.daycare .night-star.big {
    background: var(--yellow);
    box-shadow: 0 0 6px 1px rgba(255, 232, 163, .8);
}
@keyframes dc-twinkle {
    0%, 100% { opacity: 0; transform: scale(.6); }
    50% { opacity: var(--peak, .85); transform: scale(1); }
}

/* Shooting stars: a bright head plus a fading trail (the trail is an
   angled ::after so it always points back the way the head came from).
   daycare.js spawns one at random, sets the travel vector and duration
   via --dx/--dy/--dur/--angle, then removes the element once it lands. */
body.daycare .shooting-star {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px 2px rgba(255, 255, 255, .9), 0 0 18px 5px rgba(255, 232, 163, .35);
    opacity: 0;
    pointer-events: none;
}
body.daycare .shooting-star::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0));
    transform-origin: left center;
    transform: translateY(-50%) rotate(var(--angle, 0deg));
}
body.daycare .shooting-star.go { animation: dc-shoot var(--dur, 1.2s) linear forwards; }
@keyframes dc-shoot {
    0% { opacity: 0; transform: translate(0, 0); }
    6% { opacity: 1; }
    75% { opacity: 1; }
    100% { opacity: 0; transform: translate(var(--dx), var(--dy)); }
}

/* Soften a few hardcoded (non-token) neon tints so they match the sky */
body.daycare .hud { background: rgba(17, 23, 48, .78); }
body.daycare .tagline {
    border-color: rgba(183, 236, 199, .45);
    background: rgba(183, 236, 199, .12);
}
body.daycare .coin-chip { background: rgba(255, 232, 163, .16); }
body.daycare .cabinet-body { background: radial-gradient(80% 100% at 50% 0%, rgba(255, 232, 163, .16), transparent 65%); }
body.daycare .quest-card {
    background:
        radial-gradient(60% 90% at 15% 20%, rgba(255, 184, 202, .3), transparent 60%),
        radial-gradient(60% 90% at 85% 80%, rgba(163, 219, 245, .28), transparent 60%),
        var(--night-2);
}
body.daycare .phone { background: linear-gradient(180deg, #283568, #10152e); }
body.daycare .screen-scan { opacity: .5; }

/* Click bursts read as sparkles here, not confetti */
body.daycare .burst { border-radius: 50%; box-shadow: 0 0 6px 1px rgba(255, 255, 255, .5); }

/* ---------- Star (Daycare's "coin") ---------- */
.star {
    width: 18px;
    height: 18px;
    display: inline-block;
    flex: none;
    background: var(--yellow);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    border: none;
    filter: drop-shadow(0 0 0 var(--ink));
}
.star-sm { width: 14px; height: 14px; }

.star-chip .star { margin-top: -1px; }

/* ---------- Hero tweaks ---------- */
.line-2-dc { color: var(--cyan); }
.sticker-star-dc { background: var(--purple); }

/* Hero screenshot: fixed, taller frame instead of sizing to whatever the
   image's own aspect ratio happens to be — the image crops to cover it. */
.screen-art { height: clamp(300px, 34vw, 460px); }
.screen-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.btn-dc { --btn-bg: linear-gradient(180deg, #ffe8a3, #ffc79e); }
.btn-dc .btn-kicker,
.btn-dc .btn-main { color: var(--ink); }
.pill-stars { background: var(--yellow); }

/* ---------- Stage: warm, sleepy nursery scenes ---------- */
.stage.scene-nursery {
    background:
        radial-gradient(55% 45% at 25% 88%, rgba(255, 214, 153, .22), transparent 65%),
        radial-gradient(80% 70% at 50% 10%, #3d4d86, #141a38 72%);
}
.stage.scene-bath { background: radial-gradient(75% 65% at 50% 12%, #7fc7e0, #17324d 72%); }
.stage.scene-play { background: conic-gradient(from 210deg, #b7ecc7, #ffe8a3, #a3dbf5, #b9a8f0, #b7ecc7); }
.stage.scene-bedtime { background: linear-gradient(160deg, #262f5e, #0d1128 72%); }

/* ---------- Task board tiles ----------
   Reuses .item/.ward-grid but tasks don't need the ✓ price row the same
   way outfits do, so the label sits directly under the icon. */
.ward-grid .item .task-label {
    font-size: .72rem;
    font-weight: 800;
    color: var(--muted);
    text-align: center;
}
.item.is-on .task-label { color: var(--lime); }

/* ---------- Quest card (Daycare palette lean) ---------- */
.quest-title-dc { color: var(--cyan); }

/* ---------- Cabinet marquee ---------- */
.cabinet-marquee-dc {
    background: repeating-linear-gradient(90deg, var(--cyan) 0 40px, var(--lime) 40px 80px);
}

/* ---------- Loot grid: six cards instead of four ---------- */
.loot-grid-dc { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1080px) { .loot-grid-dc { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .loot-grid-dc { grid-template-columns: 1fr; } }

