/* An illustrated example of the app's memory activity, inside its phone frame. */
.demo-replay{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:8px 0 0;padding:8px 18px;border:1px solid #ffe7b788;border-radius:30px;background:#153e40cc;color:#fff1d0;font:inherit;font-size:12px;cursor:pointer;touch-action:manipulation}.demo-replay:hover{background:#285950}.demo-replay:focus-visible{outline:3px solid #ffe2a0;outline-offset:4px}
.memory-demo{position:absolute;left:14.7%;top:12.6%;width:69.8%;height:77%;z-index:0;border-radius:7%;overflow:hidden;container-type:inline-size;background:#fffaf0;color:#214b41;opacity:0;visibility:hidden;pointer-events:none;text-shadow:none;font-family:'Trebuchet MS',Arial,sans-serif}
.memory-demo-inner{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;height:100%;min-height:100%;padding:5% 8%;background:radial-gradient(ellipse at 0 12%,#dbeed8aa,transparent 47%),linear-gradient(160deg,#fffef8,#fff4d9)}
.memory-demo-brand{display:flex;align-items:center;gap:4cqw;font-size:6cqw;font-weight:900;letter-spacing:-.03em;margin-bottom:6cqw;line-height:1}
.memory-demo-brand-star{font-size:8cqw;color:#bb8e31;text-shadow:0 1px #fff}
.memory-demo-home{font-size:8cqw;font-weight:normal;margin-left:auto;color:#5c8b71}
.memory-demo-kicker{margin:0 0 2cqw;font-size:3.7cqw;line-height:1.25;font-weight:bold;letter-spacing:.055em;text-transform:uppercase;color:#7c783f}
.memory-demo-title{margin:0 0 3cqw;font-family:'Trebuchet MS',Arial,sans-serif;font-size:9cqw!important;font-weight:900!important;line-height:1.06!important;letter-spacing:-.045em!important;color:#28564c}
.memory-demo-instruction{margin:0 0 4cqw;font-size:4.7cqw;line-height:1.35;color:#4d6c5b}
.memory-demo-progress{display:flex;align-items:center;gap:4cqw;margin-bottom:5cqw;min-width:0}
.memory-demo-count{font-size:4.3cqw;line-height:1.2;font-weight:bold;white-space:nowrap;color:#50735a}
.memory-demo-track{display:block;flex:1;height:2.5cqw;background:#dce8cc;border-radius:10cqw;overflow:hidden}
.memory-demo-fill{display:block;width:100%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#a1ba5f,#4b9671);transform:scaleX(0);transform-origin:left center}
.memory-demo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5cqw;perspective:900px}
.memory-demo-card{min-width:0;aspect-ratio:1/1.12;position:relative;--memory-turn:0deg;--memory-matched:0}
.memory-demo-card-turn{position:absolute;inset:0;transform:rotateY(var(--memory-turn));transform-style:preserve-3d}
.memory-demo-card-back,.memory-demo-card-front{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow:hidden;border-radius:6cqw;border:1.1cqw solid #caa254;box-shadow:0 2cqw 0 #c9b98c55}
.memory-demo-card-back{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4cqw;color:#fbdfa0;background:radial-gradient(circle at 50% 30%,#47846b,#26604f);outline:1px solid #ffedb288;outline-offset:-4cqw}
.memory-demo-card-back>span{font-size:22cqw;line-height:1;font-weight:normal;filter:drop-shadow(0 1px 1px #183d3077)}
.memory-demo-card-back>small{font-size:4.2cqw;line-height:1;font-weight:bold;letter-spacing:.02em}
.memory-demo-card-front{transform:rotateY(180deg);display:flex;flex-direction:column;padding:2cqw;background:#fffef7;border-color:#caa254}
.memory-demo-card-front::after{content:'';position:absolute;inset:0;opacity:var(--memory-matched);border:1.5cqw solid #62a77b;border-radius:5cqw;pointer-events:none;box-shadow:inset 0 0 0 1cqw #e4f2d6}
.memory-demo-card-front img{display:block!important;width:100%!important;height:0!important;flex:1;min-height:0;object-fit:cover;border-radius:3.7cqw;background:#eaf0d9}
.memory-demo-card-name{display:flex;flex:0 0 auto;align-items:center;justify-content:center;padding-top:2cqw;font-size:4.8cqw;font-weight:bold;line-height:1.1;color:#365b48}
.memory-demo-match{position:absolute;z-index:1;right:1cqw;top:1cqw;display:grid;place-items:center;width:10cqw;height:10cqw;border:1cqw solid #fff9ed;border-radius:50%;background:#579872;color:#fff;font-size:6.2cqw;font-weight:bold;line-height:1;opacity:var(--memory-matched);transform:scale(calc(.65 + .35 * var(--memory-matched)));box-shadow:0 1cqw 3cqw #28563b44}
.memory-demo-message{display:flex;align-items:center;gap:4cqw;min-height:16cqw;margin:5cqw 0 0;padding:3cqw;border-radius:4cqw;background:#e5efda;color:#456d4a}
.memory-demo-message-icon{display:grid;place-items:center;flex:0 0 9cqw;width:9cqw;height:9cqw;border-radius:50%;background:#fffaf0;color:#6b8a3e;font-size:7cqw;line-height:1;font-weight:bold}
.memory-demo-message-copy{font-size:4.5cqw;line-height:1.3;font-weight:bold}
.memory-demo-footer{margin:5cqw 0 0;font-size:3.8cqw;line-height:1.4;text-align:center;letter-spacing:.015em;color:#6b825f}
