/* Phone frames with playable app demos */
.demo-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.demo-phone { position: relative; width: min(320px, 86vw); height: 640px; border-radius: 48px; background: #2A211D; padding: 11px; box-shadow: 0 30px 60px -25px rgba(74, 52, 40, .55), 0 0 0 3px #4A3428 inset; font-family: var(--display); user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.dp-notch { position: absolute; top: 18px; left: 50%; width: 92px; height: 26px; margin-left: -46px; background: #2A211D; border-radius: 20px; z-index: 5; }
.dp-status { position: absolute; top: 20px; left: 34px; right: 30px; display: flex; justify-content: space-between; font: 600 13px var(--display); z-index: 4; color: var(--ink); }
.dp-icons { letter-spacing: -2px; font-size: 10px; }
.dp-screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; padding: 52px 16px 16px; display: flex; flex-direction: column; }
.demo-phone button { font-family: inherit; cursor: pointer; border: 0; color: inherit; }
.demo-cta { text-align: center; }
.demo-cta p { margin: 0 0 10px; color: var(--ink-2); font-weight: 700; }
.demo-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: #fff; font: 600 .85rem var(--display); padding: 6px 14px; border-radius: 999px; animation: bob 3s ease-in-out infinite; }
.burst { position: fixed; width: 9px; height: 9px; border-radius: 50%; pointer-events: none; z-index: 999; transform: translate(-50%, -50%); animation: burst .7s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes burst { to { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(.2); opacity: 0; } }

/* ---------- Baby Games */
.dp-games .dp-screen { background: linear-gradient(180deg, #CDE9FA 0%, #FDF0D0 70%, #CFEAB8 100%); color: var(--ink); }
.g-home { display: grid; gap: 12px; position: relative; }
.g-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.g-bo { width: 96px; animation: bob 3s ease-in-out infinite; }
.g-bubble { background: #fff; border: 3px solid var(--ink); border-radius: 18px; padding: 8px 12px; font-weight: 600; line-height: 1.2; box-shadow: 0 4px 0 var(--ink); }
.g-bubble small { font-weight: 500; color: var(--ink-2); }
.g-tile { display: flex; align-items: center; gap: 12px; height: 78px; padding: 0 16px; border-radius: 22px; border: 3px solid var(--ink) !important; box-shadow: 0 5px 0 var(--ink); font-size: 1.15rem; font-weight: 600; text-align: left; transition: transform .15s; position: relative; }
.g-tile:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.g-tile img { width: 56px; }
.t1 { background: #FFD9A0; } .t2 { background: #FFC7D6; } .t3 { background: #C9E7FB; }
.g-ball { width: 26px; height: 32px; border-radius: 50% 50% 48% 48%; background: var(--c); border: 2.5px solid var(--ink); flex: none; }
.g-ball.b2 { margin-left: -20px; margin-top: 18px; }
.g-xylo { display: flex; gap: 3px; align-items: flex-end; height: 44px; }
.g-xylo i { width: 9px; border-radius: 4px; border: 2px solid var(--ink); }
.g-xylo i:nth-child(1) { height: 44px; background: #F2615C; } .g-xylo i:nth-child(2) { height: 38px; background: #FFD23F; } .g-xylo i:nth-child(3) { height: 32px; background: #66C96B; } .g-xylo i:nth-child(4) { height: 27px; background: #5AA9F0; } .g-xylo i:nth-child(5) { height: 22px; background: #A47CF0; }
.g-mute { position: absolute; right: 0; top: 0; background: #fff !important; width: 38px; height: 38px; border-radius: 50%; border: 2.5px solid var(--ink) !important; font-size: 16px; }
@media (hover: hover) and (pointer: fine) { .g-tile:hover { transform: translateY(-3px) rotate(-1deg); } .g-tile:hover img, .g-tile:hover .g-ball, .g-tile:hover .g-xylo { animation: wiggle .5s ease; } }
.g-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-weight: 600; }
.g-back { width: 36px; height: 36px; border-radius: 50%; background: #fff !important; border: 2.5px solid var(--ink) !important; font-size: 18px; flex: none; }
.g-bar > span:nth-child(2) { flex: 1; }
.g-stars { display: flex; gap: 2px; }
.g-stars i { width: 16px; height: 16px; clip-path: polygon(50% 0, 62% 35%, 100% 38%, 70% 60%, 80% 100%, 50% 78%, 20% 100%, 30% 60%, 0 38%, 38% 35%); background: rgba(74, 52, 40, .2); transition: background .3s, transform .3s; }
.g-stars i.on { background: #FFB800; transform: scale(1.25); }
.g-ask { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.g-ask img { width: 70px; }
.g-say { flex: 1; background: #fff !important; border: 3px solid var(--ink) !important; border-radius: 16px; padding: 10px; font-size: 1.05rem; box-shadow: 0 4px 0 var(--ink); }
.g-say b { color: var(--pink-d); }
.g-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.g-card { background: #fff !important; border: 3px solid var(--ink) !important; border-radius: 22px; aspect-ratio: 1; padding: 8px; box-shadow: 0 5px 0 var(--ink); transition: transform .15s; }
.g-card img { width: 100%; height: 100%; object-fit: contain; }
.g-card.ok { background: #DFF5D2 !important; animation: jump .6s ease; }
.g-card.no { animation: shake .45s ease; }
@media (hover: hover) and (pointer: fine) { .g-card:hover { transform: translateY(-4px) rotate(2deg); } }
.g-sky { position: relative; flex: 1; border-radius: 22px; overflow: hidden; }
.g-cloud { position: absolute; width: 90px; height: 30px; background: #fff; border-radius: 30px; opacity: .9; animation: cloud 14s linear infinite; }
.g-cloud::before { content: ""; position: absolute; width: 44px; height: 40px; background: #fff; border-radius: 50%; left: 18px; top: -18px; }
.g-cloud.c1 { top: 40px; left: -100px; } .g-cloud.c2 { top: 200px; left: -100px; animation-delay: -7s; animation-duration: 18s; }
@keyframes cloud { to { transform: translateX(420px); } }
.g-balloon { position: absolute; bottom: -90px; width: 58px; height: 70px; border-radius: 50% 50% 46% 46%; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.7) 0 8px, transparent 9px), var(--c); border: 3px solid var(--ink) !important; animation: rise var(--dur) linear forwards; padding: 0; }
.g-balloon::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 34px; background: var(--ink); }
.g-balloon.gone { animation: popout .3s ease forwards; }
@keyframes rise { to { transform: translateY(-560px) rotate(6deg); } }
@keyframes popout { to { transform: scale(1.6); opacity: 0; } }
.g-music { flex: 1; display: flex; flex-direction: column; }
.g-hint { text-align: center; font-weight: 500; margin: 0 0 12px; font-size: .95rem; }
.g-bars { flex: 1; display: flex; gap: 6px; align-items: center; justify-content: center; padding: 10px 0 30px; transform: rotate(-3deg); }
.g-key { width: 28px; height: var(--h); background: var(--c) !important; border: 3px solid var(--ink) !important; border-radius: 12px; box-shadow: 0 5px 0 var(--ink); position: relative; transition: transform .1s; }
.g-key::before, .g-key::after { content: ""; position: absolute; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: rgba(255,255,255,.75); }
.g-key::before { top: 10px; } .g-key::after { bottom: 10px; }
.g-key.next { outline: 4px solid #fff; animation: glow 1s ease-in-out infinite; }
.g-key.hit { animation: hit .25s ease; }
@keyframes glow { 50% { outline-color: #FFE27A; transform: translateY(-4px); } }
@keyframes hit { 50% { transform: translateY(5px) scaleY(.96); } }
.g-win { position: absolute; inset: 0; background: rgba(255, 249, 240, .96); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; animation: fadeup .4s ease; z-index: 6; }
.g-win img { width: 150px; animation: jump 1s ease infinite; }
.g-win h4 { font-size: 1.5rem; margin: 10px 0 4px; color: var(--ink); font-weight: 700; }
.g-win p { color: var(--ink-2); margin: 0 0 16px; font-family: var(--font); }
.g-again { background: #fff !important; border: 3px solid var(--ink) !important; border-radius: 999px; padding: 10px 22px; font-weight: 600; font-size: 1rem; box-shadow: 0 4px 0 var(--ink); margin-bottom: 12px; }
.g-get { background: var(--pink); color: #fff !important; text-decoration: none; padding: 12px 22px; border-radius: 999px; font-weight: 600; box-shadow: 0 4px 0 var(--pink-d); }
@keyframes fadeup { from { opacity: 0; transform: translateY(20px); } }
@keyframes jump { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-14px) scale(1.05); } }
@keyframes shake { 20%, 60% { transform: translateX(-7px) rotate(-3deg); } 40%, 80% { transform: translateX(7px) rotate(3deg); } }
@keyframes wiggle { 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }

/* ---------- Growth Tracker */
.dp-growth .dp-screen { background: linear-gradient(180deg, #FFE6EE 0%, #FFFFFF 40%); color: var(--ink); font-family: var(--font); }
.gr-tabs { display: flex; background: #fff; border-radius: 14px; padding: 4px; gap: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.06); margin-bottom: 12px; }
.gr-tabs button { flex: 1; padding: 8px; border-radius: 10px; background: none; font: 700 .9rem var(--font); color: var(--ink-2); }
.gr-tabs button.on { background: var(--pink); color: #fff; }
.gr-body { flex: 1; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.gr-hello { display: flex; justify-content: space-between; align-items: center; }
.gr-hello small { display: block; color: var(--ink-2); font-weight: 700; }
.gr-hello b { font: 700 1.25rem var(--display); }
.gr-avatar { width: 44px; height: 44px; border-radius: 50%; background: #FFE0B5; display: grid; place-items: center; font-size: 24px; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.1); }
.gr-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gr-tile { background: #fff; border-radius: 14px; padding: 8px; box-shadow: 0 3px 10px -4px rgba(0,0,0,.15); font-size: .72rem; line-height: 1.25; }
.gr-tile span { font-size: 18px; }
.gr-tile small { display: block; color: var(--ink-2); font-weight: 700; }
.gr-tile b { font-size: .78rem; }
.gr-label { margin: 2px 0 0; font-size: .78rem; font-weight: 800; color: var(--pink-d); text-transform: uppercase; letter-spacing: .04em; }
.gr-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.gr-quick button { background: #fff; border-radius: 16px; padding: 10px 2px 8px; font: 700 .76rem var(--font); display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: 0 4px 0 #F3D9E1, 0 4px 12px -6px rgba(0,0,0,.2); position: relative; transition: transform .12s; }
.gr-quick button span { font-size: 24px; }
.gr-quick button em { position: absolute; top: -6px; right: -2px; background: var(--orange); color: #fff; font: 800 .7rem var(--font); min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; font-style: normal; }
.gr-quick button:active { transform: translateY(3px); }
.gr-quick button.logged { animation: jump .5s ease; background: #DFF5D2; }
@media (hover: hover) and (pointer: fine) { .gr-quick button:hover { transform: translateY(-3px); } .gr-quick button:hover span { animation: wiggle .5s; } }
.gr-list { background: #fff; border-radius: 16px; padding: 4px 10px; box-shadow: 0 3px 10px -4px rgba(0,0,0,.15); }
.gr-row { display: flex; gap: 8px; align-items: center; padding: 7px 0; font-weight: 700; font-size: .85rem; border-bottom: 1px solid var(--line); animation: fadeup .3s ease; }
.gr-row:last-child { border: 0; }
.gr-row time { margin-left: auto; color: var(--ink-2); font-weight: 600; }
.gr-toast { position: absolute; left: 0; right: 0; bottom: 4px; background: var(--ink); color: #fff; border-radius: 14px; padding: 10px 12px; font-weight: 700; font-size: .85rem; display: flex; justify-content: space-between; align-items: center; animation: fadeup .25s ease; }
.gr-toast button { background: none; color: #FFC56B; font-weight: 800; }
.gr-chart svg { width: 100%; background: #fff; border-radius: 16px; box-shadow: 0 3px 10px -4px rgba(0,0,0,.15); }
.gr-chart text { font: 600 9px var(--font); fill: var(--ink-2); }
.gr-chart circle { transition: cx .15s, cy .15s; }
.gr-slide { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; font-weight: 700; font-size: .85rem; }
.gr-slide b { text-align: right; color: var(--pink-d); }
.gr-slide input { grid-column: 1 / -1; accent-color: var(--pink); width: 100%; height: 26px; }
.gr-pct { background: #fff; border-radius: 16px; padding: 10px 12px; box-shadow: 0 3px 10px -4px rgba(0,0,0,.15); font-weight: 700; }
.gr-pct b { font: 700 1.35rem var(--display); color: var(--pink-d); }
.gr-pct small { display: block; font-weight: 600; color: var(--ink-2); font-size: .74rem; margin-top: 4px; }
.gr-disc { margin: 8px 0 0; text-align: center; font-size: .66rem; color: var(--ink-2); font-weight: 700; }

/* ---------- Kids Science Explorer */
.dp-science .dp-screen { background: radial-gradient(ellipse at 30% 0%, #3C3A8F 0%, #1B1B4B 55%, #0F1030 100%); color: #fff; }
.dp-science .dp-status { color: #fff; }
.dp-science .dp-screen::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 40% 70%, #fff, transparent), radial-gradient(1px 1px at 85% 60%, #fff, transparent), radial-gradient(1px 1px at 10% 85%, #fff, transparent), radial-gradient(1.5px 1.5px at 60% 90%, #fff, transparent); background-size: 160px 160px; animation: twinkle 3s ease-in-out infinite alternate; pointer-events: none; }
@keyframes twinkle { to { opacity: .35; } }
.sp-head { position: relative; text-align: center; margin-bottom: 8px; }
.sp-head b { display: block; font-size: 1.2rem; font-weight: 600; }
.sp-head small { color: #C9C6FF; font-family: var(--font); font-weight: 600; font-size: .78rem; }
.sp-orbit { position: relative; display: flex; align-items: center; gap: 2px; height: 74px; padding-left: 26px; margin: 4px -16px 6px 0; }
.sp-sun { position: absolute; left: -38px; width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle at 60% 50%, #FFF2A8, #FFB02E 55%, #F27A1A); box-shadow: 0 0 30px 8px rgba(255, 176, 46, .6); animation: sun 4s ease-in-out infinite; }
@keyframes sun { 50% { box-shadow: 0 0 40px 14px rgba(255, 176, 46, .75); } }
.sp-slot { flex: 1; height: 44px; border: 2px dashed rgba(201, 198, 255, .45); border-radius: 50%; display: grid; place-items: center; min-width: 0; }
.sp-slot.filled { border-color: transparent; animation: jump .6s ease; cursor: pointer; }
.sp-slot .sp-planet { --s2: min(var(--s), 30px); width: var(--s2); height: var(--s2); }
.sp-planet { display: inline-block; width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.55), transparent 45%), var(--c); box-shadow: inset -4px -4px 8px rgba(0,0,0,.3); position: relative; }
.sp-planet.ring::after { content: ""; position: absolute; left: -35%; right: -35%; top: 42%; height: 16%; border-radius: 50%; border: 2px solid #F2E1AE; transform: rotate(-18deg); }
.sp-fact { position: relative; display: flex; gap: 8px; align-items: flex-start; background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.2); border-radius: 16px; padding: 10px 12px; min-height: 76px; margin-bottom: 10px; }
.sp-fact span { font-size: 22px; }
.sp-fact p { margin: 0; font: 600 .86rem/1.35 var(--font); }
.sp-tray { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sp-pick { background: rgba(255,255,255,.08) !important; border: 1.5px solid rgba(255,255,255,.2) !important; border-radius: 16px; height: 86px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #fff !important; transition: transform .15s, background .2s; }
.sp-pick small { font: 700 .66rem var(--font); }
.sp-pick.used { opacity: .25; }
.sp-pick.no { animation: shake .45s ease; }
@media (hover: hover) and (pointer: fine) { .sp-pick:hover:not(.used) { transform: translateY(-4px) scale(1.05); background: rgba(255,255,255,.18) !important; } .sp-pick:hover .sp-planet { animation: spin 1.2s linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }
.sp-win { background: rgba(15, 16, 48, .94); }
.sp-win h4, .sp-win p { color: #fff; }
.sp-rocket { font-size: 64px; animation: jump 1s ease infinite; }

@media (prefers-reduced-motion: reduce) { .g-balloon { animation-duration: 12s !important; animation-name: rise !important; } }
.g-bar > span:nth-child(2) { font-size: .95rem; white-space: nowrap; }
.g-get { background: #E0577F; box-shadow: 0 4px 0 #A93158; font-weight: 700; font-size: 1.05rem; }
.gr-tabs button.on { background: #C9446F; }
