/* Kids Hub shared styles */
[hidden] { display: none !important; }
.k-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 4px 0 14px; }
.k-top h1 { margin: 0; }
.k-back { font-weight: 700; text-decoration: none; }
.k-lead { font-size: 1.1rem; }
.k-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.k-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 130px; padding: 14px 10px; border-radius: 20px; background: var(--c, #ffe58a); color: #1d2433; text-decoration: none; font-weight: 800; font-size: 1.1rem; text-align: center; border: 3px solid rgba(0,0,0,.06); box-shadow: 0 4px 0 rgba(0,0,0,.12); transition: transform .12s; }
.k-tile:hover, .k-tile:focus-visible { transform: translateY(-2px); }
.k-tile:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.12); }
.k-tile .k-e { font-size: 2.6rem; line-height: 1; }
.k-tile small { font-weight: 600; font-size: .85rem; opacity: .8; }
.k-card { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 16px 18px; margin: 0 0 12px; }
.k-card h2, .k-card h3 { margin-top: 0; }
.k-big { font-size: 1.35rem; font-weight: 700; line-height: 1.35; }
.k-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 10px 18px; border-radius: 999px; border: 0; background: var(--door, #e85a3c); color: #fff; font-weight: 800; font-size: 1.05rem; cursor: pointer; box-shadow: 0 3px 0 rgba(0,0,0,.18); }
.k-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.18); }
.k-btn.alt { background: #fff; color: var(--ink); border: 2px solid var(--line); box-shadow: none; }
.k-say { background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 6px 12px; font-weight: 700; cursor: pointer; }
html.no-speech .k-say, html.no-speech [data-needs-speech] { display: none !important; }
.k-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.k-chip { padding: 8px 14px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-weight: 700; cursor: pointer; }
.k-chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.k-note { font-size: .9rem; color: var(--muted, #5a6475); }
.k-gate { position: fixed; inset: 0; z-index: 2000; background: rgba(20,26,40,.6); display: flex; align-items: center; justify-content: center; padding: 18px; }
.k-gate[hidden] { display: none; }
.k-gate-box { background: #fff; border-radius: 20px; padding: 20px 22px; max-width: 380px; width: 100%; text-align: center; }
.k-gate-box h2 { margin: 0 0 6px; }
.k-hold { position: relative; overflow: hidden; width: 100%; min-height: 64px; border-radius: 16px; border: 3px solid var(--ink); background: #fff; font-weight: 800; font-size: 1.1rem; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.k-hold-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: #ffd34d; }
.k-hold-t { position: relative; }
body.kids main a:not(.k-tile):not(.btn):not(.k-btn) { text-underline-offset: 3px; }
@media print { .k-noprint, header.top, footer.foot, .apptabs, .to-top { display: none !important; } }

/* Easter egg hunt */
.egg-hidden { position: absolute; z-index: 5; background: none; border: 0; padding: 0; cursor: pointer; line-height: 0; transition: transform .2s; }
.egg-hidden:hover { transform: rotate(-8deg) scale(1.08); }
.egg-roll { animation: eggroll .45s ease-in; }
@keyframes eggroll { to { transform: translateX(60px) rotate(360deg); opacity: 0; } }
.egg-win { position: fixed; inset: 0; z-index: 2100; background: rgba(20,26,40,.55); display: flex; align-items: center; justify-content: center; padding: 18px; overflow: hidden; }
.egg-win-box { background: #fff; border-radius: 22px; padding: 22px; max-width: 380px; width: 100%; text-align: center; position: relative; z-index: 2; }
.egg-win-box h2 { margin: 6px 0; }
.egg-hatch { position: relative; height: 130px; display: flex; align-items: center; justify-content: center; }
.egg-shell { animation: eggshake .8s ease-in-out 2, eggpop .3s ease-in 1.6s forwards; }
.egg-baby { position: absolute; font-size: 84px; opacity: 0; transform: scale(.3); animation: eggbaby .5s ease-out 1.8s forwards; }
@keyframes eggshake { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
@keyframes eggpop { to { transform: scale(0); opacity: 0; } }
@keyframes eggbaby { to { opacity: 1; transform: scale(1); } }
.egg-conf { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: eggfall 2.6s linear forwards; z-index: 1; }
@keyframes eggfall { to { transform: translateY(110vh) rotate(540deg); } }
.egg-levels { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.egg-book { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 12px 0; }
.egg-st { background: #faf8f6; border: 2px dashed var(--line); border-radius: 14px; padding: 8px 2px; text-align: center; font-size: .7rem; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.egg-st.got { border-style: solid; border-color: #ffd34d; background: #fffbe8; }
.egg-st:not(.got) svg { filter: grayscale(1) opacity(.25); }
.egg-hint { font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .egg-shell, .egg-baby, .egg-conf, .egg-roll { animation: none; } .egg-baby { opacity: 1; transform: none; } .egg-shell { display: none; } }
