/* Memory exercise and its difficulty range replace the first draft's number board. */
.memory-demo .game-heading h2{font-size:26px;letter-spacing:-.9px}
.memory-demo .game-eye{width:23px;height:23px;flex-shrink:0;margin-left:8px}
.memory-demo .game-instruction{min-height:18px;margin-bottom:17px}
.memory-grid{display:grid;grid-template-columns:repeat(var(--grid-side,5),minmax(0,1fr));gap:6px;padding:8px;border:1px solid #e9eade;border-radius:16px;background:#f4f4ed}
.memory-cell{aspect-ratio:1;min-width:0;padding:0;background:#e6e9de;border:1px solid #dce1d2;border-radius:8px;position:relative;transition:background .13s,border-color .13s}
.memory-cell.lit,.memory-cell.selected{background:#ef703d;border-color:#e3612a}
.memory-cell:hover:not(:disabled){border-color:#a15c34;background:#f4c7ab}
.memory-cell.selected:hover{background:#ee7c4e}
.memory-cell.correct{background:#9aaa7d;border-color:#829862}
.memory-cell.missed{background:#fff4e8;border:2px dashed #b9713e}
.memory-cell.incorrect{background:#edbea5;border-color:#b2775a}
.memory-cell.incorrect:after{content:'×';position:absolute;inset:0;display:grid;place-items:center;font-size:20px;line-height:1;color:#803c29}
.memory-cell:focus-visible{outline-offset:2px;outline:2px solid #25331b}
.memory-controls{display:flex;align-items:center;gap:9px;margin-top:15px}
.memory-action{flex:1;background:#e7ecdd;border:1px solid #d2dcc4;border-radius:25px;min-height:44px;padding:10px 15px;font-size:12px;font-weight:600}
.memory-action:hover:not(:disabled){background:#d7e1c6}
.memory-action:disabled{color:#62695b;background:#edf0e7;cursor:default}
.memory-demo .game-feedback{margin:10px 0 0;min-height:32px;font-size:11px;line-height:1.5}
.hero-playground:has(.memory-demo){height:535px}
.memory-demo{transform:rotate(-3deg)}
.memory-demo~.playground-note{bottom:-6px}
.difficulty{border-top:1px solid var(--line);padding:45px 0 70px}
.difficulty .section-heading{margin-bottom:30px}
.difficulty-scale{position:relative;display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.difficulty-scale:before{content:'';position:absolute;top:12px;left:calc(100% / 6);right:calc(100% / 6);height:1px;background:#c9cdbc}
.difficulty-step{position:relative;display:flex;flex-direction:column;align-items:center;gap:12px;border:0;background:none;padding:0 12px 12px;border-radius:18px}
.level-dot{height:25px;width:25px;border-radius:50%;border:6px solid var(--paper);background:#b8c1a8;box-shadow:0 0 0 1px #c3c9b9;position:relative;z-index:1}
.difficulty-step[aria-pressed=true] .level-dot{background:var(--orange);box-shadow:0 0 0 1px var(--orange)}
.level-label{font-size:16px;letter-spacing:-.3px;font-weight:600}
.level-visual{width:124px;height:124px;border-radius:16px;padding:11px;display:grid;grid-template-columns:repeat(var(--grid-side,5),1fr);gap:3px;background:#ecefe5;transform:rotate(-3deg);border:1px solid #dee4d3;transition:transform .2s,background .2s}
.memory-preview-cell{background:#d6ddc9;border-radius:3px}
.memory-preview-cell.lit{background:#b1bd99}
.difficulty-step[aria-pressed=true] .level-visual{background:#f8e4d4;border-color:#e7b99b;transform:rotate(3deg)}
.difficulty-step[aria-pressed=true] .memory-preview-cell{background:#eacdb6}
.difficulty-step[aria-pressed=true] .memory-preview-cell.lit{background:#e5753f}
.difficulty-step:hover .level-visual{transform:translateY(-4px) rotate(0deg)}
.level-detail{font-size:12px;color:#62695b;line-height:1.5}
.difficulty-hint{font-size:11px;color:#62695b;text-align:center;margin:25px 0 0;line-height:1.6}
@media(max-width:1100px){.hero-playground:has(.memory-demo){height:490px}.memory-demo .game-heading h2{font-size:23px}.memory-grid{gap:5px;padding:7px}}
@media(max-width:850px){.hero-playground:has(.memory-demo){height:455px}.memory-demo .game-heading h2{font-size:21px}.memory-grid{gap:4px;padding:5px;border-radius:13px}.memory-cell{border-radius:5px}.memory-demo .game-instruction{font-size:11px}.memory-action{font-size:11px}.difficulty{padding:38px 0 55px}.difficulty-scale{gap:15px}.level-label{font-size:15px}}
@media(max-width:650px){.hero-playground:has(.memory-demo){height:463px;margin-top:5px}.memory-demo{width:302px;max-width:100%;padding:20px}.memory-demo .game-heading h2{font-size:24px}.memory-demo .game-instruction{font-size:12px;margin-bottom:15px}.memory-grid{gap:5px;padding:6px}.memory-demo .game-feedback{font-size:11px}.memory-action{font-size:12px}.memory-demo~.playground-note{bottom:-2px}.difficulty{padding:32px 0 42px}.difficulty-scale{gap:4px}.difficulty-step{gap:12px;padding:0 2px 6px}.level-label{font-size:12px;letter-spacing:-.2px}.level-visual{width:88px;height:88px;padding:7px;gap:2px;border-radius:12px}.memory-preview-cell{border-radius:2px}.level-detail{font-size:10px;max-width:105px}.difficulty-hint{font-size:11px;max-width:280px;margin:21px auto 0}.difficulty .section-heading>p{font-size:11px;max-width:108px}.difficulty .section-heading h2{font-size:29px}.difficulty .section-heading{gap:12px}}
@media(max-width:650px){.difficulty .section-heading>p{display:none}}
@media(max-width:359px){.memory-demo{width:280px;padding:16px}.memory-demo .game-heading h2{font-size:22px}.memory-grid{gap:4px;padding:5px}.memory-demo .game-instruction{font-size:11px}.hero-playground:has(.memory-demo){height:440px}.hero-playground .orbit{max-width:calc(100% - 40px)}.level-visual{width:79px;height:79px;padding:6px}.level-label{font-size:11px}.level-detail{font-size:10px}.difficulty .section-heading>p{display:none}}
