/* YAHYA Kids Garden — playful, chunky, RTL-first (logical properties), reduced-motion aware. */
@font-face { font-family: "YK Display"; src: url("../fonts/baloo-bhaijaan-2-arabic-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "YK Display"; src: url("../fonts/baloo-bhaijaan-2-arabic-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "YK Display"; src: url("../fonts/baloo-bhaijaan-2-arabic-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "YK Display"; src: url("../fonts/baloo-bhaijaan-2-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "YK Display"; src: url("../fonts/baloo-bhaijaan-2-latin-700-normal.woff2") format("woff2"); font-weight: 500 700; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Amiri Quran"; src: url("/pt_yahya_quran/static/src/fonts/amiri-quran-arabic-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Amiri"; src: url("/pt_yahya_quran/static/src/fonts/amiri-arabic-400-normal.woff2") format("woff2"); font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }

:root {
    --emerald: #123C32; --emerald-2: #1d5a49; --gold: #D7B66D; --gold-2: #c49a45; --cream: #F7F4EC; --charcoal: #242824;
    --mint: #2bb07f; --sky: #4aa3df; --rose: #f05d7e; --sun: #f3d34a; --violet: #8a63d2;
    --panel: rgba(255, 253, 247, .94); --line: rgba(18, 60, 50, .12);
    --radius: 26px; --shadow: 0 10px 0 rgba(18, 60, 50, .18), 0 18px 40px rgba(18, 60, 50, .22);
    --font: "YK Display", "Tajawal", system-ui, sans-serif; --quran: "Amiri Quran", "Amiri", serif;
    --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body.yk-body { font-family: var(--font); color: var(--charcoal); background: linear-gradient(#9fd8ff, #dff3e3); overflow: hidden;
    -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; user-select: none; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 4px solid var(--gold); outline-offset: 3px; border-radius: 12px; }
[hidden] { display: none !important; }

/* splash */
.yk-splash { position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; justify-items: center; gap: 12px;
    background: radial-gradient(circle at 50% 40%, #1d5a49, var(--emerald)); color: var(--cream); font-size: 1.25rem; transition: opacity .5s; }
.yk-splash.out { opacity: 0; pointer-events: none; }
.yk-splash-logo { animation: yk-float 2.4s ease-in-out infinite; }
.yk-noscript { padding: 2rem; text-align: center; }

/* app frame */
.yk-app { position: fixed; inset: 0; }
.yk-stage { position: absolute; inset: 0; transition: filter .5s, transform .5s; }
.yk-stage canvas { display: block; width: 100% !important; height: 100% !important; touch-action: none; }
.yk-stage-dim { filter: blur(6px) saturate(1.1) brightness(.95); transform: scale(1.04); }
.yk-stage-flat { background: radial-gradient(circle at 50% 30%, #bde7ff, #9fd8ff 40%, #7cc96b 41%, #58a957); }
.yk-labels { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.yk-hud { position: absolute; inset-inline: 0; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px;
    padding: calc(10px + var(--safe-top)) 14px 10px; pointer-events: none; }
.yk-hud > * { pointer-events: auto; }
.yk-view { position: absolute; inset: 0; z-index: 3; overflow-y: auto; overflow-x: hidden; outline: none;
    padding: calc(78px + var(--safe-top)) 14px calc(18px + var(--safe-bottom)); }
body[data-route="garden"] .yk-view, body[data-route="home"] .yk-view { pointer-events: none; }
body[data-route="garden"] .yk-view > *, body[data-route="home"] .yk-view > * { pointer-events: auto; }
.yk-toasts { position: fixed; inset-inline: 0; bottom: calc(110px + var(--safe-bottom)); z-index: 30; display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.yk-toast { background: var(--emerald); color: var(--cream); padding: 10px 18px; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow);
    animation: yk-pop .35s cubic-bezier(.2, 1.6, .4, 1); transition: opacity .4s, transform .4s; }
.yk-toast.warn { background: #8a3b2b; }
.yk-toast.out { opacity: 0; transform: translateY(10px); }
.yk-confetti { position: fixed; inset: 0; z-index: 45; pointer-events: none; }

/* HUD */
.yk-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; background: rgba(18, 60, 50, .82); color: var(--cream);
    padding: 8px 16px 8px 12px; border-radius: 999px; font-weight: 800; font-size: 1.15rem; backdrop-filter: blur(6px); }
.yk-hud-kid { display: flex; align-items: center; gap: 8px; border: 0; cursor: pointer; background: rgba(18, 60, 50, .85); color: var(--cream);
    padding: 5px 14px 5px 6px; border-radius: 999px; backdrop-filter: blur(6px); box-shadow: 0 4px 0 rgba(0, 0, 0, .2); }
.yk-hud-avatar { position: relative; width: 54px; height: 54px; display: grid; place-items: center; }
.yk-hud-avatar > span { position: absolute; font-size: 30px; line-height: 1; }
.yk-ring { position: absolute; inset: 0; }
.yk-hud-name { display: grid; text-align: start; line-height: 1.15; }
.yk-hud-name small { color: var(--gold); font-weight: 500; }
.yk-hud-stats { display: flex; gap: 8px; }
.yk-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .92);
    font-weight: 800; box-shadow: 0 4px 0 rgba(18, 60, 50, .2); text-decoration: none; font-variant-numeric: tabular-nums; }
.yk-hud-stars.bump { animation: yk-bump .5s; }
.yk-hud-right { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
.yk-icon-btn { width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; font-size: 22px; background: rgba(255, 255, 255, .92);
    box-shadow: 0 4px 0 rgba(18, 60, 50, .22); transition: transform .12s; }
.yk-icon-btn:active, .yk-chip:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(18, 60, 50, .22); }

/* buttons */
.yk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 10px 24px; border-radius: 18px;
    border: 0; cursor: pointer; font-weight: 800; font-size: 1.1rem; text-decoration: none; background: var(--mint); color: #fff;
    box-shadow: 0 6px 0 #1b7e59; transition: transform .1s, box-shadow .1s; }
.yk-btn:active { transform: translateY(5px); box-shadow: 0 1px 0 #1b7e59; }
.yk-btn-gold { background: linear-gradient(#e6c983, var(--gold)); color: var(--emerald); box-shadow: 0 6px 0 var(--gold-2); }
.yk-btn-gold:active { box-shadow: 0 1px 0 var(--gold-2); }
.yk-btn-light { background: #fff; color: var(--emerald); box-shadow: 0 6px 0 rgba(18, 60, 50, .25); }
.yk-btn-ghost { background: transparent; color: var(--emerald); box-shadow: inset 0 0 0 3px rgba(18, 60, 50, .25); }
.yk-btn-xl { min-height: 64px; font-size: 1.3rem; padding-inline: 32px; }
.yk-btn[disabled], .yk-play[disabled] { opacity: .5; cursor: not-allowed; }
.yk-link { border: 0; background: none; color: var(--emerald); font-weight: 800; text-decoration: underline; cursor: pointer; }

/* home */
.yk-home { min-height: 100%; display: grid; place-items: end center; padding-bottom: 4vh; }
.yk-home-card { width: min(640px, 100%); background: var(--panel); border-radius: 32px; padding: 26px 22px; text-align: center;
    box-shadow: var(--shadow); animation: yk-rise .7s cubic-bezier(.2, 1.3, .4, 1) .3s both; }
.yk-greet { margin: 0; color: var(--mint); font-weight: 700; }
.yk-title { margin: 2px 0; font-size: clamp(2.2rem, 7vw, 3.4rem); color: var(--emerald); line-height: 1.1;
    text-shadow: 0 4px 0 rgba(215, 182, 109, .55); }
.yk-tagline { margin: 0 0 14px; color: #4b5a55; font-size: 1.1rem; }
.yk-home-q { font-size: 1.3rem; color: var(--emerald); margin: 10px 0; }
.yk-home-actions { display: grid; gap: 12px; justify-items: center; }
.yk-kids { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.yk-kid { width: 150px; display: grid; justify-items: center; gap: 4px; border: 0; cursor: pointer; padding: 14px 10px; border-radius: 24px;
    background: linear-gradient(#fffdf6, #f3ecd9); box-shadow: 0 7px 0 #d9cba4; transition: transform .12s; }
.yk-kid:hover { transform: translateY(-4px) rotate(-1deg); }
.yk-kid:active { transform: translateY(5px); box-shadow: 0 2px 0 #d9cba4; }
.yk-kid-avatar { position: relative; width: 92px; height: 92px; display: grid; place-items: center; background: var(--emerald); border-radius: 50%; }
.yk-kid-avatar > span { font-size: 52px; position: absolute; }
.yk-kid b { font-size: 1.25rem; color: var(--emerald); }
.yk-kid-meta { font-size: .9rem; color: #5b675f; }
.yk-note { color: #4b5a55; font-size: 1rem; }

/* garden ui */
.yk-garden-ui { min-height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.yk-dock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 760px; width: 100%; margin: 0 auto; }
.yk-dock-btn { display: grid; justify-items: center; gap: 2px; border: 0; cursor: pointer; padding: 12px 6px 10px; border-radius: 22px;
    font-weight: 800; font-size: 1rem; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .18); transition: transform .12s;
    animation: yk-rise .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.yk-dock-btn span { font-size: 2.1rem; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .15)); animation: yk-float 3s ease-in-out infinite; }
.yk-dock-btn.d1 { background: linear-gradient(#41c592, var(--mint)); box-shadow: 0 7px 0 #1b7e59; animation-delay: .05s; }
.yk-dock-btn.d2 { background: linear-gradient(#6fb9ea, var(--sky)); box-shadow: 0 7px 0 #2b77ad; animation-delay: .12s; }
.yk-dock-btn.d3 { background: linear-gradient(#f7dd6a, #eabf2b); box-shadow: 0 7px 0 #b88e14; color: #5b3f00; text-shadow: none; animation-delay: .19s; }
.yk-dock-btn.d4 { background: linear-gradient(#f685a0, var(--rose)); box-shadow: 0 7px 0 #b9334f; animation-delay: .26s; }
.yk-dock-btn:nth-child(2) span { animation-delay: .4s; } .yk-dock-btn:nth-child(3) span { animation-delay: .8s; } .yk-dock-btn:nth-child(4) span { animation-delay: 1.2s; }
.yk-dock-btn:hover { transform: translateY(-3px); }
.yk-dock-btn:active { transform: translateY(6px); box-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.yk-label { position: absolute; top: 0; left: 0; pointer-events: auto; border: 0; cursor: pointer; white-space: nowrap;
    background: rgba(18, 60, 50, .86); color: #fff; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: .95rem;
    box-shadow: 0 4px 0 rgba(0, 0, 0, .2); transition: opacity .3s; }
.yk-label::after { content: ""; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); border: 7px solid transparent;
    border-bottom: 0; border-top-color: rgba(18, 60, 50, .86); }
.yk-label-gift { background: var(--gold); color: var(--emerald); animation: yk-wiggle 1.6s ease-in-out infinite; }
.yk-label-gift::after { border-top-color: var(--gold); }
body:not([data-route="garden"]) .yk-label { display: none; }
.yk-bubble { position: absolute; top: 0; left: 0; max-width: 260px; background: #fff; color: var(--emerald); padding: 10px 16px; border-radius: 20px;
    font-weight: 800; box-shadow: 0 6px 0 rgba(18, 60, 50, .2); animation: yk-pop .35s cubic-bezier(.2, 1.6, .4, 1); text-align: center;
    transition: opacity .35s; white-space: normal; }
.yk-bubble::after { content: ""; position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); border: 9px solid transparent; border-bottom: 0; border-top-color: #fff; }
.yk-bubble.out { opacity: 0; }
.yk-callout { background: rgba(255, 255, 255, .95); border-radius: 18px; padding: 12px 16px; font-weight: 700; color: var(--emerald);
    box-shadow: 0 5px 0 rgba(18, 60, 50, .15); max-width: 760px; margin: 0 auto 12px; width: 100%; display: block; text-decoration: none; }
.yk-callout-night { background: linear-gradient(135deg, #1b2a52, #2b3f73); color: #f4f1dc; display: grid; gap: 4px; }
.yk-callout-link { text-align: center; }

/* panels */
.yk-panel { max-width: 860px; margin: 0 auto; background: var(--panel); border-radius: 30px; padding: 18px 18px 24px; box-shadow: var(--shadow);
    animation: yk-rise .45s cubic-bezier(.2, 1.3, .4, 1) both; }
.yk-center { text-align: center; display: grid; justify-items: center; gap: 12px; }
.yk-screen-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.yk-screen-head h1 { margin: 0; font-size: clamp(1.4rem, 4.5vw, 2rem); color: var(--emerald); flex: 1; }
.yk-back { width: 48px; height: 48px; border-radius: 16px; border: 0; cursor: pointer; font-size: 1.5rem; font-weight: 800; background: var(--emerald);
    color: var(--cream); box-shadow: 0 5px 0 #0a231d; }
.yk-back:active { transform: translateY(4px); box-shadow: 0 1px 0 #0a231d; }
.yk-reciter { font-size: .9rem; color: #5b675f; background: rgba(18, 60, 50, .07); padding: 6px 12px; border-radius: 999px; }

/* gates */
.yk-gates { display: grid; gap: 14px; }
.yk-gate { display: flex; align-items: center; gap: 16px; text-align: start; border: 0; cursor: pointer; padding: 18px; border-radius: 24px;
    background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--accent) 14%, #fff)); box-shadow: 0 7px 0 color-mix(in srgb, var(--accent) 55%, #000 10%);
    transition: transform .15s; }
.yk-gate:hover { transform: translateY(-3px) rotate(-.4deg); }
.yk-gate:active { transform: translateY(6px); box-shadow: 0 1px 0 color-mix(in srgb, var(--accent) 55%, #000 10%); }
.yk-gate-emoji { font-size: 3rem; width: 78px; height: 78px; display: grid; place-items: center; border-radius: 22px; background: var(--accent);
    box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .15); }
.yk-gate-body { display: grid; gap: 4px; flex: 1; }
.yk-gate-body b { font-size: 1.35rem; color: var(--emerald); }
.yk-gate-body small { color: #5b675f; }
.yk-bar { height: 12px; border-radius: 999px; background: rgba(18, 60, 50, .1); overflow: hidden; }
.yk-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--accent)); border-radius: inherit; }
.yk-review-btn { margin-bottom: 14px; width: 100%; }
.yk-surah-path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.yk-surah-path li { animation: yk-rise .45s cubic-bezier(.2, 1.3, .4, 1) both; animation-delay: calc(var(--i) * 25ms); }
.yk-surah { width: 100%; display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
    text-align: start; border: 0; cursor: pointer; padding: 12px; border-radius: 20px; background: #fff; box-shadow: 0 5px 0 rgba(18, 60, 50, .16); }
.yk-surah:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(18, 60, 50, .16); }
.yk-surah.is-done { background: linear-gradient(135deg, #fffaf0, #f7ecd0); }
.yk-surah-ring { grid-row: span 2; position: relative; width: 52px; height: 52px; display: grid; place-items: center; font-weight: 800; color: var(--emerald); }
.yk-surah-ring .yk-ring circle:first-child { stroke: rgba(18, 60, 50, .12); }
.yk-surah-name b { font-family: var(--quran); font-size: 1.45rem; font-weight: 400; color: var(--emerald); }
.yk-surah-name small { display: block; color: #5b675f; }
.yk-surah-meta { font-size: .85rem; color: #5b675f; }

/* player */
.yk-player { max-width: 1080px; margin: 0 auto; background: var(--panel); border-radius: 30px; padding: 16px; box-shadow: var(--shadow); }
.yk-player-grid { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 16px; align-items: start; }
.yk-mascot-stage { position: relative; aspect-ratio: 1 / 1.05; border-radius: 26px; overflow: hidden;
    background: radial-gradient(circle at 50% 30%, #fff6dc, #bfe8d3 60%, #8fd0b4); box-shadow: inset 0 -8px 0 rgba(18, 60, 50, .12); }
.yk-turn { position: absolute; inset-inline-end: 10px; top: 10px; width: 92px; height: 92px; display: grid; place-items: center; z-index: 2; }
.yk-turn svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.yk-turn circle { fill: none; stroke-width: 10; }
.yk-turn .bg { stroke: rgba(255, 255, 255, .7); }
.yk-turn .fg { stroke: var(--rose); stroke-linecap: round; }
.yk-turn span { font-size: 36px; animation: yk-pulse 1s ease-in-out infinite; }
.yk-player-main { display: grid; gap: 12px; }
.yk-modes { display: grid; grid-template-columns: 1fr 1fr; background: rgba(18, 60, 50, .08); padding: 6px; border-radius: 20px; gap: 6px; }
.yk-mode { border: 0; cursor: pointer; padding: 12px; border-radius: 16px; font-weight: 800; font-size: 1.05rem; background: transparent; color: var(--emerald); }
.yk-mode[aria-selected="true"] { background: #fff; box-shadow: 0 4px 0 rgba(18, 60, 50, .18); }
.yk-status { margin: 0; min-height: 1.5em; text-align: center; font-weight: 800; color: var(--mint); font-size: 1.15rem; }
.yk-ayah-card { background: linear-gradient(#fffdf7, #fbf4e2); border-radius: 26px; padding: 22px 20px; text-align: center; position: relative;
    box-shadow: inset 0 0 0 3px rgba(215, 182, 109, .5), 0 6px 0 rgba(18, 60, 50, .12); transition: box-shadow .3s, transform .3s; user-select: text; }
.yk-ayah-card::before, .yk-ayah-card::after { content: "۞"; position: absolute; top: 8px; color: var(--gold); font-size: 1.1rem; opacity: .8; }
.yk-ayah-card::before { inset-inline-start: 12px; } .yk-ayah-card::after { inset-inline-end: 12px; }
.yk-ayah-card.is-singing { box-shadow: inset 0 0 0 4px var(--mint), 0 0 0 8px rgba(43, 176, 127, .15), 0 6px 0 rgba(18, 60, 50, .12); }
.yk-ayah-card.is-turn { box-shadow: inset 0 0 0 4px var(--rose), 0 0 0 8px rgba(240, 93, 126, .15), 0 6px 0 rgba(18, 60, 50, .12); transform: scale(1.01); }
.yk-basmala { font-family: var(--quran); font-size: 1.4rem; color: var(--emerald-2); margin: 0 0 8px; }
.yk-ayah-text { font-family: var(--quran); font-size: clamp(1.7rem, 4.4vw, 2.5rem); line-height: 2.1; margin: 0; color: #1a2b25; }
.yk-player[data-size="s"] .yk-ayah-text { font-size: clamp(1.4rem, 3.4vw, 1.9rem); }
.yk-player[data-size="l"] .yk-ayah-text { font-size: clamp(2.1rem, 5.6vw, 3.2rem); }
.yk-ayah-no { color: var(--gold-2); font-size: .8em; white-space: nowrap; }
.yk-sajda { color: var(--gold-2); }
.yk-ayah-count { margin: 0; text-align: center; color: #5b675f; font-weight: 700; }
.yk-controls { display: flex; justify-content: center; align-items: center; gap: 18px; }
.yk-play { width: 86px; height: 86px; border-radius: 50%; border: 0; cursor: pointer; font-size: 2rem; color: #fff;
    background: radial-gradient(circle at 35% 30%, #4fd3a0, var(--mint)); box-shadow: 0 8px 0 #1b7e59, 0 14px 30px rgba(43, 176, 127, .4); }
.yk-play:active { transform: translateY(6px); box-shadow: 0 2px 0 #1b7e59; }
.yk-round-btn { width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.4rem; background: #fff; color: var(--emerald);
    box-shadow: 0 5px 0 rgba(18, 60, 50, .2); }
.yk-round-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(18, 60, 50, .2); }
.yk-after { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; animation: yk-pop .35s cubic-bezier(.2, 1.6, .4, 1); }
.yk-options { display: grid; gap: 8px; background: rgba(18, 60, 50, .05); border-radius: 20px; padding: 12px; }
.yk-options > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.yk-options > div > span { min-width: 82px; font-weight: 700; color: #4b5a55; }
.yk-pill { border: 0; cursor: pointer; padding: 6px 14px; border-radius: 999px; background: #fff; font-weight: 800; box-shadow: 0 3px 0 rgba(18, 60, 50, .15); }
.yk-pill.on { background: var(--emerald); color: var(--cream); }
.yk-check { display: flex; align-items: center; gap: 8px; font-weight: 700; flex-wrap: wrap; }
.yk-check input { width: 22px; height: 22px; accent-color: var(--mint); }
.yk-check small { color: #5b675f; font-weight: 500; }
.yk-strip { display: flex; gap: 8px; overflow-x: auto; padding: 14px 4px 6px; scrollbar-width: thin; }
.yk-chip-ayah { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; font-weight: 800; background: #fff;
    box-shadow: 0 4px 0 rgba(18, 60, 50, .15); }
.yk-chip-ayah.heard { background: #dff4ea; color: var(--emerald); }
.yk-chip-ayah.cur { background: var(--gold); color: var(--emerald); transform: scale(1.12); }

/* questions */
.yk-q { text-align: center; color: var(--emerald); font-size: 1.35rem; margin: 14px 0 10px; }
.yk-answers { display: grid; gap: 12px; }
.yk-answer { border: 0; cursor: pointer; padding: 16px 18px; border-radius: 20px; background: #fff; font-weight: 800; font-size: 1.15rem;
    color: var(--emerald); box-shadow: 0 6px 0 rgba(18, 60, 50, .18); text-align: center; transition: transform .1s, background .2s; }
.yk-answer:hover:not([disabled]) { transform: translateY(-2px); }
.yk-answer:active:not([disabled]) { transform: translateY(5px); box-shadow: 0 1px 0 rgba(18, 60, 50, .18); }
.yk-answer.ok { background: linear-gradient(#5fd6a5, var(--mint)); color: #fff; animation: yk-bump .5s; }
.yk-answer.bad { background: #fde3e6; color: #a2283f; animation: yk-shake .45s; }
.yk-answer.hint { box-shadow: 0 0 0 4px var(--gold), 0 6px 0 rgba(18, 60, 50, .18); animation: yk-wiggle 1.2s ease-in-out infinite; }
.yk-answer[disabled] { cursor: default; }
.yk-progress-dots { display: flex; justify-content: center; gap: 8px; margin: 0 0 8px; }
.yk-progress-dots i { width: 14px; height: 14px; border-radius: 50%; background: rgba(18, 60, 50, .14); }
.yk-progress-dots i.on { background: var(--accent, var(--mint)); }
.yk-progress-dots i.cur { box-shadow: 0 0 0 3px var(--gold); }
.yk-feedback { text-align: center; font-weight: 800; color: var(--emerald); min-height: 1.6em; display: grid; gap: 10px; justify-items: center; }
.yk-meaning { background: var(--soft, #e3f6ee); border-radius: 18px; padding: 12px 16px; display: grid; gap: 4px; }
.yk-meaning small { color: #5b675f; font-weight: 500; }
.yk-row { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 10px 0; }

/* map */
.yk-map { position: relative; min-height: 640px; margin-top: 6px; border-radius: 26px;
    background: radial-gradient(circle at 20% 15%, #fff7d6 0 12%, transparent 13%), linear-gradient(#c7ecff, #e2f6dc 45%, #bfe5b3); overflow: hidden; }
.yk-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.yk-map-path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-dasharray: 3 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.yk-node { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 2px; width: 170px; border: 0; cursor: pointer;
    background: transparent; text-align: center; }
.yk-node-emoji { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 2.6rem;
    background: radial-gradient(circle at 35% 30%, #fff, var(--soft)); box-shadow: 0 7px 0 var(--accent), 0 0 0 5px #fff; transition: transform .2s; }
.yk-node:hover .yk-node-emoji { transform: translateY(-4px) scale(1.05); }
.yk-node b { color: var(--emerald); font-size: 1.05rem; background: rgba(255, 255, 255, .9); padding: 2px 10px; border-radius: 999px; }
.yk-node small { color: #4b5a55; font-weight: 700; }
.yk-node.is-done .yk-node-emoji { box-shadow: 0 7px 0 var(--gold-2), 0 0 0 5px var(--gold); }
.yk-node.is-locked { cursor: not-allowed; filter: grayscale(.85); opacity: .75; }

/* bridge */
.yk-bridge { max-width: 1000px; margin: 0 auto; background: var(--panel); border-radius: 30px; padding: 16px; box-shadow: var(--shadow); }
.yk-bridge-stage { height: clamp(220px, 34vh, 340px); border-radius: 24px; overflow: hidden; background: linear-gradient(#bfe6ff, #dff3e3); }
.yk-bridge-panel { padding: 12px 4px 0; }
.yk-word-big { text-align: center; font-family: var(--quran); font-size: clamp(2.4rem, 8vw, 3.6rem); color: var(--accent); line-height: 1.6;
    text-shadow: 0 3px 0 rgba(0, 0, 0, .08); animation: yk-pop .45s cubic-bezier(.2, 1.6, .4, 1); }
.yk-ayah-small .yk-ayah-text { font-size: clamp(1.4rem, 3.6vw, 2rem); }
.yk-ayah-card.is-hidden .yk-ayah-text { filter: blur(9px); }
.yk-word { background: var(--soft); color: var(--accent); border-radius: 10px; padding: 0 6px; box-shadow: inset 0 -4px 0 color-mix(in srgb, var(--accent) 35%, transparent); }
.yk-word.pulse { animation: yk-pulse .8s ease-in-out 3; }
.yk-ref { display: block; color: #5b675f; font-family: var(--font); margin-top: 4px; }

/* words */
.yk-word-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.yk-word-card { border-radius: 22px; padding: 14px; background: linear-gradient(#fff, var(--soft)); box-shadow: 0 6px 0 color-mix(in srgb, var(--accent) 40%, transparent);
    display: grid; gap: 4px; text-align: center; }
.yk-word-card b { font-family: var(--quran); font-weight: 400; font-size: 2rem; color: var(--accent); }
.yk-word-card p { margin: 4px 0 0; }
.yk-word-card.is-locked { filter: grayscale(.6); opacity: .8; }
.yk-muted { color: #6b756f; }
.yk-src { color: #6b756f; }

/* daily */
.yk-daily { text-align: center; display: grid; gap: 12px; justify-items: center; }
.yk-daily .yk-screen-head { width: 100%; }
.yk-date { margin: 0; font-weight: 800; color: var(--gold-2); }
.yk-sun { font-size: 4rem; animation: yk-spin 18s linear infinite; }
.yk-ayah-glow { width: 100%; box-shadow: inset 0 0 0 3px rgba(215, 182, 109, .6), 0 0 40px rgba(243, 211, 74, .45), 0 6px 0 rgba(18, 60, 50, .12); }

/* badges */
.yk-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.yk-stat { background: #fff; border-radius: 20px; padding: 12px; text-align: center; box-shadow: 0 5px 0 rgba(18, 60, 50, .14); display: grid; }
.yk-stat b { font-size: 1.5rem; color: var(--emerald); }
.yk-stat small { color: #5b675f; }
.yk-weeks { margin: 0 0 14px; background: #fff; border-radius: 20px; padding: 12px; box-shadow: 0 5px 0 rgba(18, 60, 50, .14); }
.yk-weeks figcaption { font-weight: 800; color: var(--emerald); margin-bottom: 6px; }
.yk-bars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; height: 90px; align-items: end; direction: ltr; }
.yk-bars span { height: 100%; display: flex; align-items: flex-end; background: rgba(18, 60, 50, .06); border-radius: 10px; }
.yk-bars i { width: 100%; min-height: 4px; background: linear-gradient(var(--gold), var(--mint)); border-radius: 10px; }
.yk-badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.yk-badge { background: #f1efe8; border-radius: 22px; padding: 14px 10px; text-align: center; display: grid; gap: 4px; justify-items: center; }
.yk-badge-icon { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; background: #e2ded3; filter: grayscale(1); }
.yk-badge.is-earned { background: linear-gradient(#fffaf0, #f6e7c4); box-shadow: 0 6px 0 var(--gold-2); }
.yk-badge.is-earned .yk-badge-icon { filter: none; background: radial-gradient(circle at 35% 30%, #fff6d6, var(--gold)); animation: yk-float 3s ease-in-out infinite; }
.yk-badge b { color: var(--emerald); }
.yk-badge small { color: #5b675f; }

/* parents */
.yk-parents h2 { color: var(--emerald); margin: 6px 0 10px; }
.yk-parents hr { border: 0; border-top: 2px dashed var(--line); margin: 18px 0; }
.yk-avatars { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.yk-avatar-opt { width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; font-size: 2rem; background: #fff; box-shadow: 0 4px 0 rgba(18, 60, 50, .15); }
.yk-avatar-opt.on { background: var(--gold); box-shadow: 0 0 0 4px var(--emerald); }
.yk-field { display: grid; gap: 6px; margin-bottom: 12px; font-weight: 700; color: #33403b; }
.yk-field input, .yk-field select { font: inherit; min-height: 48px; padding: 8px 14px; border-radius: 14px; border: 2px solid var(--line); background: #fff; }
.yk-pin { display: grid; gap: 10px; max-width: 320px; }

/* modal */
.yk-modal-wrap { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(10, 30, 25, .45); backdrop-filter: blur(3px); }
.yk-modal { width: min(440px, 100%); background: #fffdf7; border-radius: 30px; padding: 22px; text-align: center; box-shadow: var(--shadow);
    animation: yk-pop .45s cubic-bezier(.2, 1.6, .4, 1); }
.yk-modal h2 { color: var(--emerald); margin: 6px 0; }
.yk-modal-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.yk-badge-big { font-size: 4.4rem; animation: yk-bump .8s cubic-bezier(.2, 1.6, .4, 1); }
.yk-strong { font-weight: 800; color: var(--emerald); font-size: 1.15rem; }
.yk-fly-star { position: fixed; z-index: 46; font-size: 30px; pointer-events: none; transition: transform .9s cubic-bezier(.5, -0.3, .6, 1), opacity .9s; }

/* animations */
@keyframes yk-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes yk-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes yk-rise { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes yk-bump { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes yk-shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@keyframes yk-wiggle { 0%, 100% { rotate: 0deg; } 25% { rotate: -4deg; } 75% { rotate: 4deg; } }
@keyframes yk-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@keyframes yk-spin { to { transform: rotate(360deg); } }

/* responsive */
@media (max-width: 760px) {
    .yk-hud { gap: 6px; padding-inline: 10px; flex-wrap: wrap; }
    .yk-hud-name small { display: none; }
    .yk-icon-btn { width: 40px; height: 40px; font-size: 19px; }
    .yk-hud-right { gap: 5px; }
    .yk-view { padding-top: calc(118px + var(--safe-top)); padding-inline: 10px; }
    body[data-route="home"] .yk-view { padding-top: calc(70px + var(--safe-top)); }
    .yk-dock { grid-template-columns: repeat(2, 1fr); }
    .yk-dock-btn span { font-size: 1.8rem; }
    .yk-player-grid { grid-template-columns: 1fr; }
    .yk-mascot-stage { aspect-ratio: auto; height: 190px; }
    .yk-map { min-height: 720px; }
    .yk-node { width: 140px; }
    .yk-stats { grid-template-columns: 1fr 1fr 1fr; }
    .yk-panel, .yk-player, .yk-bridge { padding: 14px 12px 18px; border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* dock with 8 entries */
.yk-dock { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.yk-dock-btn { padding: 8px 6px 8px; font-size: .95rem; }
.yk-dock-btn span { font-size: 1.8rem; }
.yk-dock-btn.d5 { background: linear-gradient(#b38cf0, var(--violet)); box-shadow: 0 7px 0 #5f3fa3; animation-delay: .33s; }
.yk-dock-btn.d6 { background: linear-gradient(#ffb27a, #f0803c); box-shadow: 0 7px 0 #b95a1f; animation-delay: .4s; }
.yk-dock-btn.d7 { background: linear-gradient(#7fe0d0, #2bb3a3); box-shadow: 0 7px 0 #1b7d72; animation-delay: .47s; }
.yk-dock-btn.d8 { background: linear-gradient(#e6c983, var(--gold-2)); box-shadow: 0 7px 0 #8f6a26; color: #3b2a07; text-shadow: none; animation-delay: .54s; }
@media (max-width: 760px) {
    .yk-dock { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
    .yk-dock-btn { padding: 7px 2px 6px; font-size: .78rem; border-radius: 16px; line-height: 1.15; }
    .yk-dock-btn span { font-size: 1.45rem; }
}

/* ================= stories, my day, colouring, museum ================= */
.yk-wide { max-width: 1120px; }
.yk-center-text { text-align: center; margin-top: -4px; }
.yk-sec-title { color: var(--emerald); font-size: 1.3rem; margin: 18px 4px 10px; }
.yk-story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.yk-story-card { border: 0; cursor: pointer; padding: 0; border-radius: 24px; overflow: hidden; background: #fff; text-align: start;
    box-shadow: 0 7px 0 color-mix(in srgb, var(--accent) 60%, #000 10%); transition: transform .18s; display: grid; }
.yk-story-card:hover { transform: translateY(-4px) rotate(-.6deg); }
.yk-story-card:active { transform: translateY(5px); box-shadow: 0 2px 0 color-mix(in srgb, var(--accent) 60%, #000 10%); }
.yk-story-art { aspect-ratio: 8 / 5; display: block; overflow: hidden; }
.yk-story-meta { padding: 10px 14px 12px; display: grid; gap: 2px; }
.yk-story-meta b { color: var(--emerald); font-size: 1.15rem; }
.yk-story-meta small { color: #5b675f; }
.yk-story-count { color: var(--accent) !important; font-weight: 800; }
.yk-story-card.is-done { outline: 4px solid var(--gold); }

.yk-book { max-width: 1000px; margin: 0 auto; background: var(--panel); border-radius: 30px; padding: 14px; box-shadow: var(--shadow); }
.yk-book-stage { position: relative; aspect-ratio: 8 / 5; width: min(100%, calc(54vh * 1.6)); margin: 0 auto; border-radius: 24px; overflow: hidden; background: #cfeaf8;
    box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--accent) 50%, #fff), 0 8px 0 rgba(18, 60, 50, .14); touch-action: pan-y; }
.yk-page { position: absolute; inset: 0; animation: yk-page-in .65s cubic-bezier(.2, .9, .3, 1) both; }
.yk-page.in-prev { animation-name: yk-page-in-prev; }
.yk-page.out-next { animation: yk-page-out .6s ease both; }
.yk-page.out-prev { animation: yk-page-out-prev .6s ease both; }
@keyframes yk-page-in { from { transform: translateX(-30%) rotateY(-25deg) scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes yk-page-in-prev { from { transform: translateX(30%) rotateY(25deg) scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes yk-page-out { to { transform: translateX(30%) scale(.9); opacity: 0; } }
@keyframes yk-page-out-prev { to { transform: translateX(-30%) scale(.9); opacity: 0; } }
[dir="ltr"] .yk-page { animation-name: yk-page-in-prev; }
[dir="ltr"] .yk-page.in-prev { animation-name: yk-page-in; }
.yk-book-dots { display: flex; justify-content: center; gap: 8px; margin: 12px 0 4px; }
.yk-book-dots i { width: 14px; height: 14px; border-radius: 50%; background: rgba(18, 60, 50, .15); cursor: pointer; transition: transform .2s; }
.yk-book-dots i.on { background: var(--accent); }
.yk-book-dots i.cur { transform: scale(1.35); box-shadow: 0 0 0 3px var(--gold); }
.yk-book-text { min-height: 110px; padding: 10px 6px; text-align: center; animation: yk-pop .45s cubic-bezier(.2, 1.6, .4, 1); }
.yk-book-surah { margin: 0; font-weight: 800; color: var(--accent); }
.yk-book-ayahs { font-family: var(--quran); font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 2.1; margin: 4px 0; color: #1a2b25; user-select: text; }
.yk-book-ayah { border-radius: 12px; padding: 0 4px; transition: background .3s; }
.yk-book-ayah.is-reading { background: color-mix(in srgb, var(--accent) 22%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent); }
.yk-book-tale { font-size: clamp(1.3rem, 3.4vw, 1.8rem); font-weight: 700; color: var(--emerald); line-height: 1.7; margin: 6px auto; max-width: 760px; border-radius: 16px; padding: 4px 8px; }
.yk-book-tale.is-reading { background: color-mix(in srgb, var(--accent) 16%, #fff); }
.yk-book-nav { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.yk-round-gold { background: linear-gradient(#e6c983, var(--gold)); color: var(--emerald); box-shadow: 0 5px 0 var(--gold-2); }
.yk-explain { margin: 8px auto 0; max-width: 680px; background: #fffaf0; border-radius: 14px; padding: 8px 12px; text-align: start; }
.yk-explain summary { cursor: pointer; font-weight: 800; color: var(--emerald); }

.yk-look { display: inline-flex; gap: 6px; }
.yk-day-path { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.yk-day-path li { animation: yk-rise .45s cubic-bezier(.2, 1.3, .4, 1) both; animation-delay: calc(var(--i) * 40ms); }
.yk-day-card { width: 100%; border: 0; cursor: pointer; padding: 0; border-radius: 22px; overflow: hidden; background: #fff; display: grid; text-align: start;
    box-shadow: 0 6px 0 rgba(18, 60, 50, .2); transition: transform .15s; }
.yk-day-card:hover { transform: translateY(-3px); }
.yk-day-card.m-morning { box-shadow: 0 6px 0 #f0a531; } .yk-day-card.m-day { box-shadow: 0 6px 0 #4aa3df; }
.yk-day-card.m-evening { box-shadow: 0 6px 0 #d6573f; } .yk-day-card.m-night { box-shadow: 0 6px 0 #2f3f7f; }
.yk-day-card.is-done { outline: 4px solid var(--mint); }
.yk-day-art { aspect-ratio: 8 / 5; overflow: hidden; display: block; }
.yk-day-meta { padding: 8px 12px 10px; display: grid; }
.yk-day-meta b { color: var(--emerald); }
.yk-day-meta small { color: #5b675f; font-weight: 700; }
.yk-dhikr-screen { max-width: 980px; margin: 0 auto; background: var(--panel); border-radius: 30px; padding: 14px; box-shadow: var(--shadow); }
.yk-dhikr-stage { aspect-ratio: 8 / 5; width: min(100%, calc(44vh * 1.6)); margin: 0 auto; border-radius: 24px; overflow: hidden; box-shadow: 0 8px 0 rgba(18, 60, 50, .14); }
.yk-dhikr-list { display: grid; gap: 12px; margin-top: 14px; }
.yk-dhikr-card { background: #fffdf7; border-radius: 22px; padding: 14px 16px; box-shadow: inset 0 0 0 3px rgba(215, 182, 109, .45), 0 5px 0 rgba(18, 60, 50, .1);
    transition: box-shadow .3s, transform .3s; animation: yk-rise .45s cubic-bezier(.2, 1.3, .4, 1) both; }
.yk-dhikr-card.is-done { box-shadow: inset 0 0 0 4px var(--mint), 0 5px 0 rgba(18, 60, 50, .1); }
.yk-dhikr-text { font-family: "Amiri Quran", "Amiri", serif; font-size: clamp(1.3rem, 3.2vw, 1.75rem); line-height: 2; margin: 0 0 8px; color: #1a2b25; user-select: text; }
.yk-dhikr-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.yk-dhikr-row details { font-size: .9rem; color: #4b5a55; max-width: 100%; }
.yk-dhikr-row summary { cursor: pointer; font-weight: 800; }
.yk-count { display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; padding: 8px 18px 8px 8px; border-radius: 999px; font-weight: 800;
    background: linear-gradient(#41c592, var(--mint)); color: #fff; box-shadow: 0 5px 0 #1b7e59; }
.yk-count-n { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--emerald); display: grid; place-items: center; font-size: 1.2rem; }
.yk-count.tap { animation: yk-bump .35s; }
.yk-dhikr-card.is-done .yk-count { background: linear-gradient(#e6c983, var(--gold)); color: var(--emerald); box-shadow: 0 5px 0 var(--gold-2); }

.yk-color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.yk-color-card { border: 0; cursor: pointer; background: #fff; border-radius: 22px; padding: 8px 8px 12px; display: grid; gap: 6px; box-shadow: 0 6px 0 rgba(18, 60, 50, .18);
    transition: transform .15s; }
.yk-color-card:hover { transform: translateY(-3px) rotate(.6deg); }
.yk-color-card b { color: var(--emerald); }
.yk-color-card.is-done { box-shadow: 0 6px 0 var(--gold-2), 0 0 0 4px var(--gold); }
.yk-color-thumb { aspect-ratio: 8 / 5; border-radius: 16px; overflow: hidden; display: block; background: #fff; }
.yk-colorer { max-width: 1200px; margin: 0 auto; background: var(--panel); border-radius: 30px; padding: 14px; box-shadow: var(--shadow); }
.yk-colorer-grid { display: grid; grid-template-columns: 1fr 260px; gap: 14px; align-items: start; }
.yk-canvas { aspect-ratio: 8 / 5; width: min(100%, calc(66vh * 1.6)); margin: 0 auto; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: inset 0 0 0 3px rgba(18, 60, 50, .12); touch-action: manipulation; }
.yk-canvas .yk-art { cursor: crosshair; }
.yk-canvas .yk-reg.pop { animation: yk-fillpop .4s cubic-bezier(.2, 1.6, .4, 1); transform-box: fill-box; transform-origin: center; }
@keyframes yk-fillpop { 0% { transform: scale(.94); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
.yk-canvas.is-complete { box-shadow: 0 0 0 6px var(--gold), 0 0 40px rgba(215, 182, 109, .7); }
.yk-tools { display: grid; gap: 12px; }
.yk-palette { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; background: #fff; padding: 12px; border-radius: 20px; box-shadow: 0 5px 0 rgba(18, 60, 50, .12); }
.yk-swatch { aspect-ratio: 1; border-radius: 50%; border: 3px solid #fff; background: var(--c); cursor: pointer; box-shadow: 0 3px 0 rgba(0, 0, 0, .18), 0 0 0 1px rgba(0, 0, 0, .1);
    transition: transform .15s; }
.yk-swatch.on { transform: scale(1.18); box-shadow: 0 0 0 4px var(--emerald); }
.yk-color-peek { background: #fff; border-radius: 18px; padding: 8px; display: grid; gap: 4px; text-align: center; color: #5b675f; }
.yk-color-peek .yk-art { border-radius: 12px; aspect-ratio: 8 / 5; height: auto; }

.yk-museum { background: linear-gradient(#fffdf6, #f3ead2); }
.yk-museum-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.yk-exhibit { border: 0; cursor: pointer; border-radius: 24px; padding: 16px 10px; display: grid; justify-items: center; gap: 6px; text-align: center;
    background: #ebe6da; color: #6b756f; box-shadow: 0 6px 0 rgba(0, 0, 0, .12); transition: transform .15s; }
.yk-exhibit.is-open { background: radial-gradient(circle at 50% 25%, #fff, #f7ecd0); color: var(--emerald); box-shadow: 0 7px 0 var(--gold-2); }
.yk-exhibit.is-open:hover { transform: translateY(-4px); }
.yk-exhibit.shake { animation: yk-shake .45s; }
.yk-exhibit-icon { font-size: 3.2rem; width: 96px; height: 96px; display: grid; place-items: center; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, #e7dcc0); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .08); }
.yk-exhibit:not(.is-open) .yk-exhibit-icon { filter: grayscale(1); opacity: .7; }
.yk-exhibit small { font-size: .82rem; }
.yk-model-screen { max-width: 980px; margin: 0 auto; background: var(--panel); border-radius: 30px; padding: 14px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.yk-model-stage { position: relative; height: clamp(300px, 52vh, 520px); border-radius: 24px; overflow: hidden;
    background: radial-gradient(circle at 50% 30%, #fffaf0, #f3e3c3 55%, #d9c49b); }
.yk-drag-hint { position: absolute; bottom: 10px; inset-inline: 0; text-align: center; margin: 0; color: #6b5a3a; font-weight: 700; z-index: 2; pointer-events: none; }
.yk-big-icon { margin: 60px auto; font-size: 6rem; width: 180px; height: 180px; }
@media (max-width: 760px) {
    .yk-colorer-grid { grid-template-columns: 1fr; }
    .yk-palette { grid-template-columns: repeat(8, 1fr); gap: 6px; padding: 8px; }
    .yk-story-grid, .yk-day-path { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .yk-color-grid, .yk-museum-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .yk-exhibit-icon { width: 72px; height: 72px; font-size: 2.4rem; }
    .yk-story-meta small:not(.yk-story-count) { display: none; }
}
