body[data-section=memory]{background:#fbf8f2;color:#51425f;font-family:'DM Sans',Arial,sans-serif}body[data-section=memory] [data-nav=catalog]{display:none}.memory-setup{max-width:1240px;margin:auto;padding:25px 36px 44px}.memory-topline{display:flex;align-items:center;justify-content:space-between;gap:12px}.memory-topline>span{font-size:9px;letter-spacing:2.5px;color:#a48fa6}.memory-back,.memory-sound{background:#fff;border:1px solid #e5dce8;border-radius:30px;padding:10px 17px;color:#776286;font-size:12px;min-height:40px}.memory-intro{text-align:center;padding:25px 0 35px}.memory-eyebrow{letter-spacing:2px;font-size:10px;color:#a08da2}.memory-intro h1{font:500 clamp(34px,5vw,64px)/1.12 'Playfair Display',Georgia,serif;color:#605077;margin:12px 0 16px}.memory-intro h1 em{font-weight:500;color:#ac7896}.memory-intro h1>span{font:400 30px Georgia;vertical-align:top;color:#d8b66d;padding-left:12px}.memory-intro>p:last-child{font-size:14px;font-weight:400;color:#9b8a9c;line-height:1.7}.memory-section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.memory-section-heading h2,.memory-bottom h2{font:500 24px 'Playfair Display',Georgia,serif;color:#62516e}.memory-section-heading>span{font-size:11px;color:#aa99ac}.memory-themes{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px}.memory-theme{background:#fffdfb;border:1px solid #e8dfe7;border-radius:20px;padding:7px 7px 15px;min-width:0;color:#66506e;transition:transform .2s,box-shadow .2s}.memory-theme[aria-pressed=true]{border:2px solid var(--theme);box-shadow:0 5px 0 color-mix(in srgb,var(--theme) 25%,transparent);transform:translateY(-3px)}.memory-theme:disabled{opacity:.45;cursor:default}.memory-theme-art{height:135px;border-radius:14px;position:relative;background:color-mix(in srgb,var(--theme) 15%,#fff);overflow:hidden}.memory-theme-art :is(img,svg){position:absolute;width:67%;height:80%;object-fit:contain;left:calc(9% + var(--n)*10%);top:calc(11% + var(--n)*3%);transform:rotate(calc((var(--n) - 1)*10deg));background:#fff;border:4px solid white;border-radius:12px;box-shadow:0 5px 12px #58415a15}.memory-theme-art :is(img,svg):first-child{z-index:2}.memory-theme-art>span{position:absolute;right:7px;top:4px;color:var(--theme);font-size:25px;z-index:3}.memory-theme strong{display:block;font-size:12px;margin:13px 0 6px}.memory-theme small{font:400 9px 'DM Sans',Arial;color:#a08b9b}.memory-bottom{display:grid;grid-template-columns:1.5fr 1fr;gap:45px;padding-top:35px}.memory-levels{display:flex;gap:10px;margin-top:18px}.memory-levels button{flex:1;background:#fffdfb;border:1px solid #e5dce6;border-radius:15px;padding:15px 9px;color:#7a6682}.memory-levels button b{display:block;font-size:14px}.memory-levels button span{display:block;font-size:10px;font-weight:400;margin-top:7px}.memory-levels button[aria-pressed=true]{background:#eee7f6;border-color:#b8a0ca;color:#765395}.memory-start-box{display:flex;flex-direction:column;align-items:stretch;justify-content:end}.memory-start-box p{font-size:12px;margin:0 0 12px}.memory-start-box p span{font-weight:400;color:#a08c9e}.memory-start-box>button{background:#78618e;color:#fff;border-radius:17px;padding:17px 23px;text-align:left;font-size:16px;box-shadow:0 5px 0 #e3d9e7}.memory-start-box>button span{float:right}.memory-start-box>small{font-size:10px;text-align:center;color:#ab97a5;margin-top:12px}.memory-rules{margin-top:32px;font-size:12px;color:#9b879c}.memory-rules summary{cursor:pointer}.memory-rules p{font-weight:400;line-height:1.8}.memory-source-link{font-size:10px;display:inline-block;margin-top:20px;color:#a18aa4}.memory-portal-cover{background:radial-gradient(ellipse at center,#fcf2e4,#e3e3f3);display:flex;align-items:center;justify-content:center}.memory-mini-card{position:absolute;width:112px;height:150px;border:6px solid white;border-radius:15px;background:#fff;overflow:hidden;display:grid;place-items:center;box-shadow:0 10px 20px #68507722;top:70px}.memory-mini-card.one{transform:rotate(-17deg) translateX(-75px)}.memory-mini-card.two{transform:rotate(8deg) translateX(5px);z-index:2;background:white}.memory-mini-card.three{transform:rotate(22deg) translateX(85px);background:#c28ca5}.memory-mini-card>span{font:70px Georgia;color:#ffebc0}.memory-mini-card :is(img,svg){width:100%;height:100%;object-fit:contain}.game-cards:has(.memory-portal-card){grid-template-columns:repeat(3,minmax(0,1fr))}.game-cards:has(.memory-portal-card) .game-card-copy{padding:23px}.game-cards:has(.memory-portal-card) .game-card h2{font-size:27px}.game-cards:has(.memory-portal-card) .game-cover{height:250px}
body:has(.memory-play),html:has(.memory-play){overflow:hidden;overscroll-behavior:none}.memory-play{position:fixed;z-index:150;top:var(--mem-top,0px);left:var(--mem-left,0px);width:var(--mem-width,100vw);height:var(--mem-height,100dvh);background:radial-gradient(ellipse at 50% 30%,#fffcf5,#f0e8f4);padding:max(12px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:12px;color:#665272;overflow:hidden}.memory-game-head{display:flex;gap:20px;align-items:center;min-width:0}.memory-game-head>div:nth-child(2){margin-right:auto}.memory-game-head h1{font:500 25px 'Playfair Display',Georgia,serif}.memory-game-head small{font-size:10px;color:#a089a4}.memory-game-head>div:nth-child(2)>small{display:block;margin-bottom:4px}.memory-stat{text-align:center;min-width:70px;background:#ffffff90;border:1px solid #eadfe9;border-radius:14px;padding:9px 14px}.memory-stat small{display:block;font-size:8px;letter-spacing:1px}.memory-stat b{display:block;font-size:21px;font-variant-numeric:tabular-nums;margin-top:3px}.memory-grid-wrap{container-type:size;min-height:0;min-width:0;display:flex;align-items:center;justify-content:center}.memory-grid{--cols:4;--rows:2;--gap:12px;display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));grid-template-rows:repeat(var(--rows),minmax(0,1fr));gap:var(--gap);width:min(100cqw,calc((100cqh - (var(--rows) - 1)*var(--gap))/var(--rows)*var(--cols)*.86 + (var(--cols) - 1)*var(--gap)));height:min(100cqh,calc((100cqw - (var(--cols) - 1)*var(--gap))/var(--cols)/.86*var(--rows) + (var(--rows) - 1)*var(--gap)));max-width:1100px}.memory-grid.level-medium{--cols:6;--rows:2}.memory-grid.level-hard{--cols:8;--rows:2}.memory-card{padding:0;min-width:0;min-height:0;border:0;background:transparent;border-radius:15px;perspective:900px;position:relative;touch-action:manipulation}.memory-card-inner{display:block;position:absolute;inset:0;transform-style:preserve-3d;transition:transform .32s cubic-bezier(.2,.8,.3,1)}.memory-card.is-up .memory-card-inner{transform:rotateY(180deg)}.memory-card-back,.memory-card-front{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;backface-visibility:hidden;-webkit-backface-visibility:hidden;border:5px solid white;border-radius:15px;box-shadow:0 4px 0 #d8cadc,0 6px 14px #71597915;overflow:hidden}.memory-card-back{background:radial-gradient(circle at 20% 20%,#ffffff12 2px,transparent 3px) 0 0/18px 18px,linear-gradient(145deg,#b7a2ce,#89719f);color:#fff2d3}.memory-card-back:before{content:'';position:absolute;inset:7px;border:1px solid #fff5;border-radius:7px}.memory-card-star{font:clamp(28px,6vw,76px) Georgia;line-height:1}.memory-card-back small{font:600 8px 'DM Sans',Arial;letter-spacing:1.5px;margin-top:9px}.memory-card-front{transform:rotateY(180deg);background:#fff}.memory-card-front :is(img,svg){width:100%;height:100%;object-fit:contain;pointer-events:none}.memory-match-check{display:none;position:absolute;right:3px;bottom:3px;border-radius:50%;height:25px;width:25px;background:#6fae91;color:#fff;font-size:17px;line-height:25px}.memory-card.is-matched .memory-card-front{border-color:#a3cfb7;box-shadow:0 4px 0 #90bca4}.memory-card.is-matched .memory-match-check{display:block}.memory-card.is-matched{cursor:default}.memory-game-note{margin:0;text-align:center;font-size:11px;font-weight:400;color:#a58ba4}.memory-loading{display:flex;align-items:center;justify-content:center;text-align:center}.memory-loading>.memory-back{position:absolute;top:14px;left:14px}.memory-loading>div>span{font:80px Georgia;color:#b79bc3}.memory-loading h2{font:30px 'Playfair Display',Georgia}.memory-loading p{font-size:13px;color:#a28da1}.memory-finish{position:absolute;inset:0;background:#4b395a85;z-index:4;display:grid;place-items:center;padding:16px;backdrop-filter:blur(5px)}.memory-finish>section{background:#fffcf7;border-radius:28px;padding:25px 36px;text-align:center;max-height:100%;overflow:auto;width:min(560px,100%);outline:none;box-shadow:0 20px 80px #49305f33}.memory-result-star{font:50px Georgia;color:#c9a85a}.memory-finish section>p:first-of-type{font-size:9px;letter-spacing:2px;color:#b391a2}.memory-finish h2{font:38px 'Playfair Display',Georgia;color:#755a83}.memory-total{display:block;font:500 52px 'Playfair Display',Georgia;color:#9272a5;margin:10px 0 18px}.memory-total small{display:block;font:12px 'DM Sans',Arial;color:#a18a9d}.memory-breakdown{display:grid;grid-template-columns:1fr 1fr;gap:12px}.memory-breakdown>div{background:#f2edf4;padding:13px;border-radius:15px}.memory-breakdown span,.memory-breakdown small{display:block;font-size:11px;color:#9a829a}.memory-breakdown b{display:block;font-size:19px;margin:5px 0}.memory-breakdown small{font-size:9px}.memory-record{font-size:11px;color:#a3889a}.memory-result-actions{display:flex;gap:10px;margin-top:16px}.memory-result-actions button{flex:1;border-radius:13px;padding:13px;background:#8b6fa0;color:#fff;font-size:12px}.memory-result-actions button+button{background:#eee5f1;color:#876595}
@media(max-width:1000px){.memory-themes{grid-template-columns:repeat(4,minmax(0,1fr))}.memory-theme-art{height:120px}.memory-bottom{gap:25px}.game-cards:has(.memory-portal-card){grid-template-columns:repeat(2,minmax(0,1fr))}.memory-game-head{gap:10px}.memory-game-head h1{font-size:20px}.memory-stat{min-width:60px;padding:6px 10px}.memory-stat b{font-size:18px}}
@media(max-width:600px){.memory-setup{padding:18px 16px 35px}.memory-topline>span{display:none}.memory-intro{padding:24px 0}.memory-intro h1{font-size:38px}.memory-intro h1>span{display:none}.memory-section-heading>span{display:none}.memory-section-heading h2,.memory-bottom h2{font-size:22px}.memory-themes{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.memory-theme:first-child{grid-column:1/-1}.memory-theme:first-child .memory-theme-art{height:100px}.memory-theme:first-child .memory-theme-art :is(img,svg){width:35%;left:calc(22% + var(--n)*12%)}.memory-bottom{grid-template-columns:1fr;gap:24px}.memory-theme-art{height:130px}.memory-intro>p:last-child{font-size:13px}.game-cards:has(.memory-portal-card){grid-template-columns:1fr}}
.memory-play.memory-portrait{width:var(--mem-height);height:var(--mem-width);left:calc(var(--mem-left,0px) + var(--mem-width));transform-origin:top left;transform:rotate(90deg)}
@media(max-height:600px),(max-width:700px){.memory-play{padding:8px 12px;gap:6px}.memory-game-head h1{font-size:16px}.memory-game-head>div:nth-child(2)>small{font-size:9px;margin:0}.memory-game-head{gap:8px}.memory-stat{padding:4px 8px;min-width:58px;border-radius:10px}.memory-stat b{font-size:15px;margin:0}.memory-stat small{font-size:7px}.memory-game-head button{min-height:32px;padding:5px 10px}.memory-grid{--gap:7px}.memory-card-back,.memory-card-front{border-width:3px;border-radius:10px}.memory-card-back small{font-size:6px;letter-spacing:.5px}.memory-card-back:before{inset:4px}.memory-game-note{font-size:9px}.memory-finish>section{padding:14px 25px;max-width:630px}.memory-result-star{display:none}.memory-finish h2{font-size:26px}.memory-finish section>p:first-of-type{margin:0 0 5px}.memory-total{font-size:32px;margin:5px 0 8px}.memory-breakdown>div{padding:7px}.memory-breakdown b{font-size:16px;margin:2px}.memory-result-actions{margin-top:8px}.memory-result-actions button{min-height:34px;padding:8px}.memory-record{margin:7px 0;font-size:10px}}
@media(prefers-reduced-motion:reduce){.memory-card-inner,.memory-theme{transition:none}}
