.section-memory{position:relative;display:block;min-height:0;padding:var(--spacing-md) 0 var(--spacing-2xl)}.memory-page-header{text-align:center;margin-bottom:var(--spacing-sm)}.memory-back-link{display:inline-flex;align-items:center;gap:.5rem;min-height:44px;margin-bottom:var(--spacing-xs);color:var(--color-purple);font-weight:700;text-decoration:none}.memory-page-title{font-family:var(--font-display);font-size:clamp(1.7rem,4vw,2.3rem);color:var(--color-purple)}.memory-page-subtitle{margin-top:.4rem;color:var(--color-warm-brown);font-size:1.05rem}.mm-game-wrapper{position:relative;max-width:760px;margin:0 auto;scroll-margin-top:77px}.mm-game-wrapper [hidden]{display:none!important}.mm-host{display:block;flex:none;width:56px;height:56px;border-radius:50%;background:var(--color-tan);object-fit:cover;-webkit-user-drag:none;-webkit-user-select:none;user-select:none}.mm-panel{border-radius:var(--radius-md)}.mm-message-panel{display:flex;flex-direction:column;align-items:center;gap:var(--spacing-sm);padding:var(--spacing-lg) var(--spacing-sm);background:var(--color-tan-light)}.mm-start{display:flex;flex-direction:column;align-items:center;gap:var(--spacing-sm);padding:var(--spacing-md) var(--spacing-sm);background:var(--color-tan-light);box-shadow:var(--shadow-soft);text-align:center}.mm-start__title{color:var(--color-purple);font:700 clamp(1.4rem,4vw,1.9rem) var(--font-display)}.mm-start__hosts{display:flex;gap:var(--spacing-sm)}.mm-start__host{display:block;width:clamp(72px,18vw,112px);height:auto;aspect-ratio:1;border-radius:50%;background:var(--color-tan)}.mm-start__text{max-width:30rem;color:var(--color-dark);font:700 1.15rem var(--font-display)}.mm-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--spacing-xs);width:100%;max-width:30rem;border:0}.mm-modes__legend{margin-bottom:.4rem;color:var(--color-warm-brown);font-weight:700}.mm-mode{position:relative;display:flex;flex-direction:column;align-items:center;gap:.25rem;min-height:44px;padding:.8rem .6rem;border:3px solid var(--color-tan-dark);border-radius:var(--radius-md);background:var(--color-white);cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.mm-mode__input{width:22px;height:22px;margin:0;accent-color:var(--color-purple)}.mm-mode:has(.mm-mode__input:checked){border-color:var(--color-purple);box-shadow:0 0 0 3px var(--color-mint)}.mm-mode:has(.mm-mode__input:focus-visible){outline:4px solid var(--color-purple);outline-offset:3px}.mm-mode__name{color:var(--color-purple);font:700 1.2rem var(--font-display)}.mm-mode__text{color:var(--color-dark);font-size:.95rem;line-height:1.3}.mm-btn--big{min-width:10rem;min-height:56px;font-size:1.3rem}.mm-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--spacing-xs);margin-bottom:var(--spacing-xs)}.mm-bar:not(:has(>:not([hidden]))){display:none}[aria-pressed=true]>.mm-btn__icon--off,[aria-pressed=false]>.mm-btn__icon--on{display:none}.mm-btn[aria-pressed=false]{border-color:var(--color-tan-dark);color:var(--color-warm-brown)}.mm-choices.is-remind .mm-choice:not(:disabled){border-color:var(--color-purple);box-shadow:0 0 0 4px var(--color-mint)}.mm-btn:disabled{opacity:.5;cursor:default}.mm-status{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.4rem var(--spacing-sm);margin-bottom:var(--spacing-xs);padding:.5rem 1rem;border-radius:var(--radius-md);background:var(--color-white);box-shadow:var(--shadow-soft)}.mm-progress,.mm-points{color:var(--color-purple);font:700 1rem var(--font-display)}.mm-progress__label{color:var(--color-warm-brown)}.mm-stars{display:flex;gap:4px;list-style:none}.mm-star{width:14px;height:14px;border:2px solid var(--color-purple-light);border-radius:50%}.mm-star.is-done{border:0;border-radius:0;background:var(--color-purple);clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%)}.mm-hearts{display:flex;gap:.25rem}.mm-heart{width:26px;height:26px;fill:var(--color-red);transition:opacity .3s}.mm-heart.is-lost{fill:none;stroke:var(--color-warm-brown);stroke-width:2;opacity:.6}.mm-board{display:flex;flex-direction:column;align-items:center;gap:var(--spacing-xs);margin-bottom:var(--spacing-xs);padding:var(--spacing-sm);border-radius:var(--radius-md);background:var(--color-tan-light);box-shadow:var(--shadow-soft)}.mm-prompt{display:flex;align-items:center;align-self:stretch;justify-content:center;gap:.75rem}.mm-prompt__text{min-height:1.5em;color:var(--color-purple);font:700 1.15rem var(--font-display)}.mm-cards{--mm-count: 3;--mm-gap: clamp(4px, 2vw, 12px);display:grid;grid-template-columns:repeat(var(--mm-count),minmax(0,112px));justify-content:center;gap:var(--mm-gap);width:100%}.mm-card{aspect-ratio:4 / 5;perspective:700px}.mm-card__inner{position:relative;width:100%;height:100%;transform:rotateY(180deg);transform-style:preserve-3d;transition:transform .45s cubic-bezier(.4,0,.2,1)}.mm-card.is-up .mm-card__inner{transform:none}.mm-card__back,.mm-card__face{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;backface-visibility:hidden;-webkit-backface-visibility:hidden;-webkit-user-drag:none;-webkit-user-select:none;user-select:none}.mm-card__back{transform:rotateY(180deg)}.mm-cards-box{width:100%}.mm-timer{--mm-view-ms: 4s;width:100%;height:6px;overflow:hidden;border-radius:3px;background:var(--color-tan-dark);opacity:0}.mm-timer__fill{width:100%;height:100%;background:var(--color-purple-light);transform-origin:left center}.mm-timer.is-running{opacity:1}.mm-timer.is-running .mm-timer__fill{animation:mm-countdown var(--mm-view-ms) linear forwards}@keyframes mm-countdown{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.mm-choices{display:flex;flex-direction:column;gap:.75rem}.mm-choice{position:relative;display:block;width:100%;min-height:64px;padding:.5rem .75rem;border:3px solid var(--color-tan-dark);border-radius:var(--radius-md);background:var(--color-white);cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.mm-choice:focus-visible{outline:3px dotted var(--color-purple);outline-offset:5px}@media(hover:hover){.mm-choice:not(:disabled):hover{border-color:var(--color-purple-light)}}.mm-choice:disabled{cursor:default}.mm-choice__toy{display:block;aspect-ratio:1}.mm-choice__img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;-webkit-user-drag:none}.mm-choice.is-right{border-color:#2e7d32;border-style:solid;background:#e8f5e9}.mm-choice.is-wrong{border-color:var(--color-red-deep);border-style:dashed;background:var(--color-peach-light)}.mm-compare{display:flex;flex-direction:column;align-items:center;gap:.6rem;padding:var(--spacing-sm);border:3px solid var(--color-tan-dark);border-radius:var(--radius-md);background:var(--color-white)}.mm-compare__row{display:grid;grid-template-columns:6.5rem minmax(0,1fr);align-items:center;gap:var(--spacing-xs);width:100%}.mm-compare__label{color:var(--color-dark);font-weight:700;text-align:right}.mm-compare__toys{--mm-count: 3;display:grid;grid-template-columns:repeat(var(--mm-count),minmax(0,64px));gap:clamp(4px,2vw,12px)}.mm-compare__toy{position:relative;display:block;aspect-ratio:1;border-radius:50%}.mm-compare__toy.is-diff{outline:4px dashed var(--color-red-deep);outline-offset:1px}.mm-compare__mark{position:absolute;top:-6px;right:-6px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--color-red-deep);color:var(--color-white);font:700 .85rem/1 var(--font-body)}.mm-compare__note{color:var(--color-dark);font-size:.95rem}.mm-choice__toys{--mm-count: 3;display:grid;grid-template-columns:repeat(var(--mm-count),minmax(0,72px));justify-content:center;gap:clamp(4px,2vw,16px);width:100%}.mm-choice__badge{display:inline-block;margin-top:.3rem;padding:.15rem .7rem;border-radius:var(--radius-full);background:#2e7d32;color:var(--color-white);font:700 .95rem var(--font-display)}.mm-ending{display:flex;flex-direction:column;align-items:center;gap:var(--spacing-xs);padding:var(--spacing-md) var(--spacing-sm);background:var(--color-tan-light);box-shadow:var(--shadow-soft);text-align:center}.mm-celebration{display:block;width:min(100%,320px);height:auto}.mm-ending__title{color:var(--color-purple);font:700 clamp(1.4rem,4vw,1.9rem) var(--font-display)}.mm-ending__title:focus{outline:none}.mm-ending__title:focus-visible{outline:3px solid var(--color-purple);outline-offset:4px}.mm-ending__score,.mm-ending__best{color:var(--color-dark);font-size:1.1rem}.mm-ending__best{color:var(--color-purple);font-weight:700}.mm-ending__actions{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--spacing-xs);margin:var(--spacing-xs) 0}.mm-btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-width:44px;min-height:48px;padding:0 1.1rem;border:2px solid var(--color-purple-light);border-radius:var(--radius-full);background:var(--color-white);color:var(--color-purple);font:700 1.05rem var(--font-display);text-decoration:none;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.mm-btn--primary{border-color:var(--color-purple);background:var(--color-purple);color:var(--color-white)}.mm-btn--primary .mm-btn__icon{border-radius:50%;background:var(--color-white)}.mm-btn:focus-visible{outline:4px solid var(--color-purple);outline-offset:3px}.mm-btn__icon{display:block;flex:none;width:32px;height:32px;pointer-events:none}.mm-message{padding:var(--spacing-sm);text-align:center}.mm-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.mm-start__go{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.5rem var(--spacing-md)}.mm-relaxed{display:inline-flex;align-items:center;gap:.5rem;min-height:44px;color:var(--color-dark);font-weight:600;cursor:pointer;touch-action:manipulation}.mm-relaxed__input{width:22px;height:22px;accent-color:var(--color-purple)}.mm-relaxed:has(.mm-relaxed__input:focus-visible){outline:4px solid var(--color-purple);outline-offset:3px}.mm-resume{display:flex;align-items:center;justify-content:center;gap:var(--spacing-sm)}.mm-resume__text{color:var(--color-dark);font-weight:700}.mm-timer.is-held .mm-timer__fill{animation-play-state:paused}@media(prefers-reduced-motion:reduce){.mm-card__inner,.mm-heart{transition:none}}.mm-bar__games{margin-right:auto}@media(max-width:760px),(max-height:500px){html.game-page .mm-game-wrapper{display:flex;flex-direction:column;gap:6px;max-width:none;margin:0;overflow-y:auto}html.game-page .mm-bar{display:grid;flex:none;grid-template-columns:repeat(auto-fit,minmax(9.5rem,1fr));gap:6px;margin:0}html.game-page .mm-bar__btn{gap:4px;min-height:44px;margin:0;padding:2px 8px;border-radius:16px;font-size:.9rem;line-height:1.1;white-space:normal}html.game-page .mm-bar__btn .mm-btn__icon{width:26px;height:26px}html.game-page .mm-panel{flex:1 1 auto;min-height:0}html.game-page .mm-start,html.game-page .mm-ending,html.game-page .mm-message-panel{justify-content:center;gap:.6rem;padding:.75rem}html.game-page .mm-start__host{width:clamp(56px,14dvh,96px)}html.game-page .mm-start__text{font-size:1.05rem}html.game-page .mm-celebration{width:auto;max-width:100%;max-height:32dvh}html.game-page .mm-play{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;grid-template-areas:"status" "board" "choices" "compare";gap:6px}html.game-page .mm-status{grid-area:status;gap:2px .75rem;margin:0;padding:4px 10px}html.game-page .mm-board{grid-area:board;display:grid;grid-template-rows:auto minmax(0,1fr) auto;align-items:stretch;gap:6px;min-height:0;margin:0;padding:6px 8px}html.game-page .mm-prompt{gap:.5rem}html.game-page .mm-host{width:40px;height:40px}html.game-page .mm-prompt__text{font-size:1.05rem;line-height:1.2}html.game-page .mm-cards-box{container-type:size;min-height:64px}html.game-page .mm-cards{--mm-gap: clamp(3px, 1.5vw, 10px);height:100%;align-content:start;grid-template-columns:repeat(var(--mm-count),var(--mm-card));--mm-card: min(150px, calc((100cqw - (var(--mm-count) - 1) * var(--mm-gap)) / var(--mm-count)), 80cqh )}html.game-page .mm-choices{grid-area:choices;gap:6px}html.game-page .mm-choice{min-height:56px;padding:4px 8px;container-type:inline-size}html.game-page .mm-choice__toys{grid-template-columns:repeat(var(--mm-count),min(64px,calc((100cqw - (var(--mm-count) - 1) * 8px) / var(--mm-count))));gap:8px}html.game-page .mm-choice__badge{margin-top:2px;font-size:.85rem}html.game-page .mm-compare{grid-area:compare;gap:6px;padding:8px}html.game-page .mm-compare__row{grid-template-columns:max-content minmax(0,1fr)}html.game-page .mm-compare__toys{grid-template-columns:repeat(var(--mm-count),minmax(0,52px))}html.game-page .mm-ending{justify-content:flex-start;overflow-y:auto}}@media(max-width:760px)and (min-height:501px){html.game-page .mm-play{grid-template-rows:auto minmax(0,max-content) auto auto;align-content:start}html.game-page .mm-board{--mm-gap: clamp(3px, 1.5vw, 10px);container-type:inline-size}html.game-page .mm-cards-box{height:min(187.5px,calc((100cqw - (var(--mm-count, 3) - 1) * var(--mm-gap)) / var(--mm-count, 3) * 1.25));max-height:100%}}@media(max-height:500px)and (orientation:landscape){html.game-page .mm-play{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);grid-template-areas:"status choices" "board choices"}html.game-page .mm-compare{grid-area:choices;align-self:start}html.game-page .mm-cards{align-content:center}html.game-page .mm-choices{display:grid;grid-template-rows:repeat(3,minmax(0,1fr));min-height:0}html.game-page .mm-choice{min-height:44px;container-type:size}html.game-page .mm-choice__toys{grid-template-columns:repeat(var(--mm-count),min(64px,calc((100cqw - (var(--mm-count) - 1) * 8px) / var(--mm-count)),calc(100cqh - 4px)));align-content:center;height:100%}html.game-page .mm-choice:has(.mm-choice__badge) .mm-choice__toys{height:auto}html.game-page .mm-start{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"hosts title title" "hosts text text" "modes modes go";align-content:center;align-items:center;gap:.4rem .75rem}html.game-page .mm-start__title{grid-area:title;font-size:1.3rem;text-align:left;justify-self:start}html.game-page .mm-start__hosts{grid-area:hosts}html.game-page .mm-start__text{grid-area:text;font-size:1rem;text-align:left;justify-self:start}html.game-page .mm-modes{grid-area:modes;max-width:none}html.game-page .mm-modes__legend{margin-bottom:.2rem}html.game-page .mm-mode{padding:.4rem .5rem}html.game-page .mm-start__go{grid-area:go;flex-direction:column}html.game-page .mm-start__host{width:clamp(48px,16dvh,72px)}}@media(min-width:761px)and (min-height:501px){.mm-start{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"hosts text" "modes modes" "go go";align-items:center;justify-items:center;column-gap:var(--spacing-md)}.mm-start__hosts{grid-area:hosts}.mm-start__text{grid-area:text;justify-self:start;text-align:left}.mm-modes{grid-area:modes}.mm-start__go{grid-area:go}.mm-start__title{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.mm-start__host{width:88px}.mm-bar__btn{min-height:44px;padding:0 .85rem;font-size:.95rem}.mm-bar__btn .mm-btn__icon{width:28px;height:28px}}
