@font-face{font-family:Nunito;src:url('assets/nunito-400.ttf');font-weight:400;font-display:swap}@font-face{font-family:Nunito;src:url('assets/nunito-700.ttf');font-weight:700;font-display:swap}@font-face{font-family:Nunito;src:url('assets/nunito-800.ttf');font-weight:800;font-display:swap}@font-face{font-family:Nunito;src:url('assets/nunito-900.ttf');font-weight:900;font-display:swap}
:root{--ink:#19365d;--teal:#229b8b;--coral:#ff645f;--cream:#fffcf6;--muted:#64748b;--line:#e8e9df}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:Nunito,sans-serif;font-size:16px}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #237e72;outline-offset:4px}button:disabled{cursor:default}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}img{max-width:100%;display:block}[hidden]{display:none!important}h1,h2,h3,p{margin:0}.review-note{text-align:center;background:#f2eddf;color:#6c695c;padding:8px 18px;font-size:12px;line-height:1.5}.review-note span{padding:0 8px}.site-header{max-width:1280px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 32px}.brand{display:flex;align-items:center;gap:9px;flex-shrink:0}.brand strong{font-size:25px;letter-spacing:-.8px;font-weight:900;color:var(--teal)}.brand b,.player-brand b{color:var(--coral)}.brand small{display:block;font-size:10px;letter-spacing:.2px;color:#76816e;margin-top:-3px}.site-header nav{display:flex;gap:26px;font-size:14px;font-weight:800}.site-header nav a{padding:10px 0}.site-header nav .current{color:var(--teal);border-bottom:2px solid var(--teal)}.favorite-top{display:flex;gap:7px;align-items:center;background:transparent;border:1px solid #e6e4d8;border-radius:14px;padding:10px 13px;color:var(--ink);font-size:13px;font-weight:800}.favorite-top b{background:#e8f4eb;border-radius:20px;padding:1px 6px;color:var(--teal)}.favorite-top.active{border-color:var(--coral);color:#db5552}.container{max-width:1220px;padding:0 32px;margin:auto}.breadcrumb{display:flex;gap:9px;font-size:12px;color:#798176;margin:12px 0 22px}.breadcrumb a{color:var(--teal)}.intro{position:relative;display:grid;grid-template-columns:1.2fr 1fr;align-items:center;gap:20px;border-radius:28px;overflow:hidden;background:#f1f6e9;border:1px solid #e7eddd;padding:38px 40px}.intro-copy{z-index:1}.eyebrow{font-size:10px;letter-spacing:1.4px;color:#6c8b76;font-weight:900;margin-bottom:12px}.intro h1{font-size:clamp(30px,3.4vw,43px);font-weight:900;line-height:1.15;letter-spacing:-1px}.intro h1 span{color:var(--teal)}.intro-copy>p:not(.eyebrow){font-size:14px;line-height:1.65;color:#596a72;margin-top:18px}.intro-actions{display:flex;gap:23px;align-items:center;margin-top:25px}.button{display:inline-flex;align-items:center;justify-content:center;gap:14px;padding:13px 24px;border-radius:12px;border:1px solid transparent;font-weight:800;font-size:14px;min-height:46px;transition:transform .15s,background .15s}.button:hover{transform:translateY(-1px)}.coral{background:var(--coral);color:#fff;box-shadow:0 5px 12px #ff645f20}.outline{border:1px solid #b7d9c8;background:white;color:#248778}.quiet-note{font-size:11px;line-height:1.6;color:#7a8877}.intro-art{position:relative;padding-bottom:17px}.intro-art>img{width:100%;border-radius:22px;mix-blend-mode:multiply;object-fit:contain}.art-note{position:absolute;bottom:2px;left:50%;transform:translateX(-50%) rotate(-2deg);width:max-content;max-width:100%;background:#fff9e9;box-shadow:0 3px 12px #6e664615;color:#89734c;border-radius:8px;padding:9px 14px;font-size:11px;font-weight:800;text-align:center}.catalog{margin-top:45px;scroll-margin-top:20px}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:14px;margin-bottom:22px}.section-heading .eyebrow{margin-bottom:5px}h2{font-size:28px;font-weight:900;letter-spacing:-.6px}.catalog-total{font-size:12px;color:#839083;white-space:nowrap;margin-bottom:5px}.filters{border:1px solid var(--line);border-radius:18px;background:white;padding:20px 22px;margin-bottom:25px}fieldset{border:0;padding:0;margin:0;min-width:0}legend{font-size:12px;font-weight:800;color:#66736c;margin-bottom:9px}.chips{display:flex;gap:8px;flex-wrap:wrap}.chip{border:1px solid #e7eadf;color:#687567;background:#fbfcf8;border-radius:9px;padding:8px 14px;font-size:12px;font-weight:800;min-height:40px}.chip.active{background:var(--teal);color:white;border-color:var(--teal)}.filter-bottom{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-top:17px;border-top:1px solid #f1f0e9;padding-top:16px}.skill-chips .chip{background:transparent;border-color:transparent;padding:6px 12px}.skill-chips .active{background:#eaf5ee;color:#218b7b;border-color:#d9eadc}.reset{font-size:11px;min-height:40px;border:0;background:transparent;color:#8b9085;white-space:nowrap;text-decoration:underline;text-underline-offset:3px}.game-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.game-card{position:relative;border:1px solid var(--line);border-radius:19px;background:#fff;overflow:hidden;box-shadow:0 5px 18px #19365d04;display:flex;flex-direction:column;transition:transform .15s,box-shadow .15s}.game-card:hover{transform:translateY(-3px);box-shadow:0 10px 25px #19365d09}.card-art{height:184px;padding:12px 20px 0;display:flex;align-items:center;justify-content:center;background:var(--card-color,#f4f8ed);position:relative}.card-art img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}.card-label{position:absolute;top:13px;left:13px;background:#fffffff2;border-radius:7px;padding:5px 9px;color:#668570;font-size:10px;font-weight:900}.card-label.ready{background:#e8f6e8;color:#258666}.save-game{position:absolute;top:12px;right:12px;z-index:1;width:36px;height:36px;display:grid;place-items:center;background:white;border:1px solid #ffffffbb;border-radius:50%;color:#b6baad;box-shadow:0 2px 9px #19365d08}.save-game svg{width:18px;height:18px}.save-game[aria-pressed=true]{color:#ee6663}.save-game[aria-pressed=true] svg{fill:#ffefeb}.card-content{padding:19px 22px 20px;display:flex;flex-direction:column;flex:1}.card-meta{display:flex;gap:9px;align-items:center;color:#7a8b77;font-size:10px;font-weight:800;margin-bottom:9px}.card-meta .skill{background:#f1f6ec;padding:3px 7px;border-radius:5px}.game-card h3{font-size:21px;line-height:1.25;font-weight:900;margin-bottom:8px}.game-card p{font-size:12px;color:#768174;line-height:1.6;min-height:39px}.card-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:19px}.card-bottom>span{font-size:10px;color:#8b9589}.card-bottom .button{font-size:12px;padding:9px 17px;min-height:40px}.parent-note{display:flex;align-items:center;gap:20px;margin:38px 0 48px;padding:25px 28px;border:1px solid #e3ebde;border-radius:18px;background:#f3f8ee}.note-icon{width:48px;height:48px;flex-shrink:0;display:grid;place-items:center;background:#e3f0dc;color:#7d9c60;border-radius:14px}.note-icon svg{width:25px;height:25px}.parent-note h2{font-size:18px;letter-spacing:0}.parent-note p{font-size:12px;color:#74806e;line-height:1.7;margin-top:7px;max-width:690px}.local-progress{display:flex;gap:12px;align-items:center;flex-shrink:0;padding-left:26px;border-left:1px solid #dce6d3;margin-left:auto}.local-progress strong{font-size:32px;color:#6b9565}.local-progress span{font-size:10px;color:#7d8c76;line-height:1.6}.site-footer{border-top:1px solid #eae9de;padding:25px 32px;display:flex;align-items:center;justify-content:space-between;max-width:1220px;margin:auto;gap:25px}.site-footer .brand strong{font-size:20px}.site-footer p,.site-footer>span{font-size:11px;color:#8c9286}.empty{padding:42px 20px;text-align:center;background:#fff;border:1px dashed #dce5d3;border-radius:20px}.empty img{margin:0 auto 14px}.empty p{margin:10px 0 20px;color:var(--muted);font-size:14px}
dialog{color:var(--ink);font-family:inherit;border:0;border-radius:24px;box-shadow:0 24px 90px #19365d35;width:min(760px,calc(100% - 28px));max-width:760px;max-height:calc(100dvh - 28px);padding:24px 34px;background:var(--cream);overflow-y:auto}dialog::backdrop{background:#19365d85;backdrop-filter:blur(4px)}.player-top{display:flex;justify-content:space-between;align-items:center}.player-brand{font-size:17px;font-weight:900;color:var(--teal)}.close{border:0;background:#f0f0e7;width:36px;height:36px;border-radius:50%;font-size:26px;color:#738174;line-height:1}.player-heading{text-align:center;margin:16px 0 20px}.player-heading .eyebrow{font-size:9px}.player-heading h2{font-size:32px;margin-bottom:7px}.player-heading>p:last-child{font-size:13px;color:#798678}.setup,.result{text-align:center;padding:10px 0 20px}.setup>img,.result>img{margin:0 auto 13px}.setup h3{font-size:21px;margin-bottom:9px}.setup>p,.result>p{font-size:14px;line-height:1.7;color:#74816f}.level-options{display:flex;gap:12px;justify-content:center;margin:24px 0}.level{display:flex;flex-direction:column;gap:5px;min-width:130px;border-radius:14px;border:1px solid #dbe4d5;background:#fff;padding:16px;color:var(--ink)}.level strong{font-size:20px}.level span{font-size:11px;color:#7b8b76}.level.selected{border:2px solid var(--teal);background:#edf6eb;padding:15px}.setup .setup-note{font-size:11px;margin-top:15px}.game-toolbar{display:flex;align-items:center;gap:28px;max-width:570px;margin:auto}.stat{display:flex;flex-direction:column;gap:4px}.stat span{font-size:10px;color:#8a9382}.stat strong{font-size:20px}.sound{margin-left:auto;background:transparent;border:1px solid #e3e6da;border-radius:10px;padding:9px 12px;font-size:11px;color:#687b6b}.pair-progress{height:5px;max-width:570px;background:#e6ebdf;border-radius:5px;margin:13px auto 20px;overflow:hidden}.pair-progress span{height:100%;background:var(--teal);display:block;width:0;transition:width .25s}.memory-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;max-width:570px;margin:auto}.memory-card{aspect-ratio:1;border-radius:14px;border:2px solid #dfebd8;background:#eef5e8;position:relative;display:grid;place-items:center;padding:8px;transition:background .18s,transform .18s,border-color .18s;overflow:hidden}.memory-card:active{transform:scale(.95)}.memory-card .back{font-weight:900;color:#92b18c;font-size:30px;pointer-events:none}.memory-card img{display:none;width:100%;height:100%;object-fit:contain;pointer-events:none}.memory-card.open{background:white;border-color:#e0d8b9}.memory-card.open .back,.memory-card.matched .back{display:none}.memory-card.open img,.memory-card.matched img{display:block}.memory-card.matched{background:#e8f6e8;border-color:#8fbe9a}.memory-card.matched::after{content:'✓';position:absolute;right:4px;bottom:3px;color:#4a9668;background:#e9f7e8;border-radius:20px;width:20px;height:20px;font-size:13px;display:grid;place-items:center}.memory-card.hinted{border-color:#e0be73}.game-status{text-align:center;font-size:13px;min-height:22px;margin:17px 0 12px;color:#678766}.game-controls{display:flex;justify-content:center;gap:16px;align-items:center;flex-wrap:wrap;padding-bottom:8px}.game-controls .button{padding:10px 19px;font-size:12px}.text-button{color:#7c8775;background:transparent;border:0;font-size:12px;min-height:42px;text-decoration:underline;text-underline-offset:4px}.result h3{font-size:32px;margin:8px 0 12px;color:var(--teal)}.result .eyebrow{font-size:9px;color:#8b9c75}.result-stats{display:flex;justify-content:center;gap:28px;margin:24px auto;color:#627d63;font-size:15px}.result .text-button{display:block;margin:8px auto 0}#game-detail{max-width:460px;text-align:center;padding:30px}#game-detail>.close{position:absolute;right:15px;top:15px}#detail-image{height:180px;width:100%;object-fit:contain;margin:8px 0 22px}#game-detail h2{font-size:27px;margin-bottom:15px}#detail-description{font-size:15px;line-height:1.7}.detail-note{font-size:12px;line-height:1.7;color:#89917c;background:#f1f5e8;border-radius:12px;padding:13px;margin:20px 0}.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,12px);max-width:calc(100% - 32px);border-radius:12px;background:#274e47;color:white;padding:12px 22px;opacity:0;pointer-events:none;transition:.2s;font-size:13px;text-align:center;z-index:10}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1000px){.site-header nav{gap:15px;font-size:12px}.site-header{gap:15px}.intro{padding:30px}.game-grid{gap:16px}.card-content{padding:17px}.card-art{height:160px}.parent-note{flex-wrap:wrap}.local-progress{border:0;padding-left:68px;margin-left:0}.site-footer>span{display:none}}
@media(max-width:760px){.site-header nav{display:none}.container{padding:0 20px}.site-header{padding:18px 20px}.intro{grid-template-columns:1fr 0.85fr;padding:25px;gap:8px}.intro h1{font-size:29px}.intro-copy>p:not(.eyebrow){font-size:12px}.intro .eyebrow{font-size:8px}.art-note{font-size:9px;padding:7px}.game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-bottom{align-items:start;flex-direction:column;gap:4px}.reset{align-self:end}.parent-note>div:nth-child(2){flex:1}.parent-note{padding:22px}.local-progress{padding-left:68px}.site-footer{padding:22px 20px}.section-heading h2{font-size:25px}.intro-actions{gap:12px}.intro-actions .button{padding:12px 16px;font-size:12px}}
@media(max-width:540px){.review-note{font-size:10px}.review-note span{padding:0 3px}.brand strong{font-size:22px}.brand img{width:40px;height:40px}.favorite-top{padding:9px;font-size:11px;gap:5px}.favorite-top svg{width:18px;height:18px}.container{padding:0 16px}.site-header{padding:15px 16px}.breadcrumb{font-size:10px;margin:8px 0 17px}.intro{grid-template-columns:1fr;border-radius:22px;padding:26px 22px 17px;text-align:center}.intro h1{font-size:31px}.intro-copy>p:not(.eyebrow){font-size:13px;margin-top:14px}.intro .eyebrow{font-size:9px;letter-spacing:.8px}.intro-actions{justify-content:center;margin-top:18px}.quiet-note{text-align:left}.intro-art{max-width:285px;margin:6px auto 0;padding-bottom:9px}.intro-art>img{max-height:157px}.art-note{font-size:9px;bottom:0}.catalog{margin-top:32px}.section-heading{align-items:center;margin-bottom:17px}.section-heading .eyebrow{font-size:8px;letter-spacing:.8px}.section-heading h2{font-size:23px;max-width:260px;line-height:1.2}.catalog-total{font-size:10px}.filters{padding:16px 14px;margin-bottom:19px}.chip{font-size:11px;padding:8px 10px}.chips{gap:6px}.skill-chips .chip{padding:6px 9px}.game-grid{grid-template-columns:1fr;gap:18px}.card-art{height:190px;padding:12px 30px 0}.card-content{padding:18px 20px}.game-card h3{font-size:22px}.game-card p{font-size:13px;min-height:0}.card-meta{font-size:11px}.card-bottom .button{font-size:13px}.card-bottom>span{font-size:11px}.parent-note{align-items:start;padding:20px 17px;gap:12px;margin:28px 0}.note-icon{width:36px;height:36px;border-radius:10px}.note-icon svg{width:21px;height:21px}.parent-note h2{font-size:16px}.parent-note p{font-size:12px}.local-progress{padding-left:48px}.site-footer{flex-direction:column;gap:10px;padding:22px 16px}.site-footer p{font-size:11px}dialog{padding:18px 16px;width:calc(100% - 16px);max-height:calc(100dvh - 16px);border-radius:18px}.player-heading h2{font-size:27px}.player-heading>p:last-child{font-size:12px;line-height:1.5}.level-options{gap:7px}.level{min-width:0;flex:1;padding:14px 7px}.level.selected{padding:13px 6px}.level strong{font-size:18px}.level span{font-size:10px}.setup h3{font-size:19px}.setup>p{font-size:12px}.memory-board{gap:7px}.memory-card{padding:4px;border-radius:10px}.memory-card .back{font-size:22px}.game-toolbar{gap:20px}.stat strong{font-size:18px}.game-controls{gap:8px}.game-status{font-size:12px}.result h3{font-size:27px}.result-stats{font-size:13px;gap:15px}#game-detail{padding:28px 20px}#game-detail h2{font-size:25px}.desktop-break{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}

/* Exact original card artwork, independently clipped inside each SVG viewport. */
.memory-card{padding:3px;background:#fff;border-color:#e4eade}
.memory-card .card-face,.memory-card .card-back{width:100%;height:100%;position:absolute;inset:0;stroke:none;fill:none;pointer-events:none}
.memory-card .card-face{display:none}
.memory-card.open .card-face,.memory-card.matched .card-face{display:block}
.memory-card.open .card-back,.memory-card.matched .card-back{display:none}
.memory-card.matched::after{right:3px;bottom:3px}

/* Keep SVG atlas viewports at their explicit dimensions, not the 22px icon size. */
.memory-card{width:100%;min-width:0;min-height:0;display:block}
#player[data-pairs="8"] .memory-board{width:min(570px,100%,max(280px,calc(100dvh - 330px)))}
.result:not([hidden])>img{animation:celebrate .7s ease-out}
@keyframes celebrate{0%{transform:scale(.8) rotate(-8deg)}60%{transform:scale(1.08) rotate(5deg)}100%{transform:scale(1) rotate(0)}}
@media(prefers-reduced-motion:reduce){.result:not([hidden])>img{animation:none}}

/* Whole-image section banners: no cover cropping. */
.rasti-full-banner{position:relative;overflow:hidden;border-radius:28px;margin:24px 0;background:#fff7e8;isolation:isolate}.rasti-full-banner .rasti-banner-image{display:block;width:100%;max-width:100%;height:auto;margin:0}.rasti-banner-copy{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;padding:clamp(20px,4vw,56px);background:linear-gradient(90deg,rgba(255,250,239,.96),rgba(255,250,239,.85) 35%,transparent 75%)}.rasti-banner-copy h1{font-size:clamp(26px,3.6vw,46px);line-height:1.15;max-width:60%;margin:0 0 14px;color:#423d38}.rasti-banner-copy p{max-width:50%;font-size:clamp(16px,1.6vw,20px);line-height:1.5;margin:0;color:#423d38}.rasti-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}@media(max-width:700px){.rasti-full-banner{border-radius:20px}.rasti-banner-copy{position:relative;background:#fff7e8;padding:22px}.rasti-banner-copy h1,.rasti-banner-copy p{max-width:none}}


/* Games hero removed on desktop and mobile. */
.intro { display: none !important; }


/* Shared site header for the games catalog. */
.container{padding-top:78px}
.catalog-actions{display:flex;align-items:center;gap:12px}
.catalog-total{margin:0}
.header nav a.is-current{color:var(--teal)}
.header .brand{gap:7px}
.header .brand img{object-fit:contain;width:44px;height:48px}
.header .brand strong{display:block;font-size:25px;font-weight:900;color:#239c8b;line-height:1.05;letter-spacing:-1px}
.header .brand strong b{color:#fa6a58;font-weight:900}
.header .brand small{display:block;font-size:10px;color:#5c656d;text-align:center;margin-top:3px;letter-spacing:normal}
@media(max-width:1179px){.container{padding-top:22px}}
@media(max-width:599px){.header .brand img{width:39px;height:44px}.header .brand strong{font-size:24px}.header .brand small{font-size:9px}}
@media(max-width:540px){.section-heading{align-items:flex-start}.catalog-actions{flex-direction:column-reverse;align-items:flex-end;gap:6px}.favorite-top{padding:8px 10px}}
@media(max-width:359px){.header .brand strong{font-size:22px}.header .brand img{width:34px}.header .brand small{font-size:8px}}


/* Approved desktop-only playful decorations. */
.games-desktop-decor{display:none}
@media(min-width:1180px){
 body{position:relative;overflow-x:hidden}
 .games-desktop-decor{display:block;position:absolute;z-index:0;top:70px;left:0;width:100%;height:520px;overflow:hidden;pointer-events:none;user-select:none}
 .games-decor{position:absolute;display:block;max-width:none;height:auto;filter:drop-shadow(0 8px 16px rgba(73,96,72,.07))}
 .games-decor--bear{top:58px;left:max(-20px,calc(50% - 705px));width:155px}
 .games-decor--rocket{top:28px;left:calc(50% + 135px);width:390px}
 .games-decor--top{top:90px;right:max(-22px,calc(50% - 710px));width:128px}
 .container{position:relative;z-index:1}
}
