/* NALAROO Jejak Ingatan v1.0 · Integrated Storybook Memory Garden
   One intentional theme replaces the inherited neon and sci-fi CSS stack. */
.memory-overlay{position:fixed;inset:0;z-index:9900;display:grid;place-items:center;padding:14px;background:rgba(31,47,37,.55);backdrop-filter:blur(7px)}
.memory-shell{--leaf:#476652;--soft:#6b806c;--brown:#8c6d50;--paper:#fff9ec;--stroke:#c5aa85;position:relative;width:min(960px,100%);max-height:min(92dvh,900px);overflow:auto;color:var(--leaf);background:linear-gradient(166deg,#fffaf0 0%,#f6f5e8 72%,#e5eddf 100%);border:3px solid var(--stroke);border-radius:30px;box-shadow:0 12px 0 rgba(84,67,47,.14),0 26px 58px rgba(29,45,32,.29),inset 0 0 0 5px rgba(255,255,255,.61);font-family:'Nunito',system-ui,sans-serif;isolation:isolate}
.memory-shell *{box-sizing:border-box}
.memory-shell button{font:inherit;cursor:pointer}
.memory-shell button:disabled{cursor:wait;opacity:.64}
.memory-shell :is(button,[tabindex]):focus-visible{outline:3px solid #5e8967;outline-offset:3px}
.memory-top{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px clamp(18px,4vw,32px);border-bottom:2px solid #daccb6;background:rgba(255,252,244,.88)}
.memory-brand{display:flex;align-items:center;gap:13px}
.memory-emblem{width:58px;height:58px;flex:none;display:grid;grid-template-columns:repeat(2,1fr);gap:5px;padding:12px;border:2px solid #c0a580;border-radius:19px;background:linear-gradient(145deg,#f5eedb,#dcead9);box-shadow:0 4px 0 rgba(131,103,74,.12);transform:rotate(-5deg)}
.memory-emblem i{display:block;border:1px solid rgba(68,104,83,.27);border-radius:5px;background:#b3d7ad}
.memory-emblem i:nth-child(2){background:#b9dde8}.memory-emblem i:nth-child(3){background:#f4dca3}.memory-emblem i:nth-child(4){background:#d8c7e9}
.memory-brand-copy{display:grid;gap:1px}.memory-eyebrow{font-size:10px;font-weight:900;letter-spacing:.17em;color:#9a7857}
.memory-title{font-size:clamp(22px,3vw,29px)!important;line-height:1.1!important;margin:0!important;color:#3e5846!important;font-weight:900!important}
.memory-subtitle{margin:0!important;color:#74806c;font-size:13px}
.memory-close{display:grid;place-items:center;flex:none;width:44px;height:44px;border:2px solid #dccbb4;border-radius:15px;background:#fff8e9;color:#627662;font-size:27px;line-height:1}
.memory-stage{position:relative;min-height:475px;display:grid;place-items:center;padding:clamp(15px,3vw,28px);background:radial-gradient(ellipse at 50% 92%,rgba(135,176,138,.2),transparent 54%),radial-gradient(circle at 13% 35%,rgba(222,233,209,.65),transparent 27%),radial-gradient(circle at 85% 15%,rgba(239,222,193,.46),transparent 30%)}
.memory-stage:before,.memory-stage:after{content:'';position:absolute;bottom:15px;width:92px;height:86px;border-radius:60% 40% 30% 30%;pointer-events:none;background:radial-gradient(circle at 50% 45%,#c8dfb9 4px,transparent 5px),radial-gradient(circle at 40% 70%,#bbd5b4 5px,transparent 6px);opacity:.55}
.memory-stage:before{left:5px}.memory-stage:after{right:5px;transform:scaleX(-1)}
.memory-view{position:relative;z-index:1;width:100%;max-width:820px}
.memory-view[hidden]{display:none!important}
.memory-ready{display:grid;grid-template-columns:minmax(130px,190px) 1fr;align-items:center;gap:clamp(10px,3vw,28px)}
.memory-guide{width:100%;max-height:310px;object-fit:contain;filter:drop-shadow(0 8px 5px rgba(87,96,67,.09))}
.memory-ready-main{padding:clamp(19px,3vw,30px);border:2px solid #d7c5aa;border-radius:27px;background:rgba(255,251,241,.93);box-shadow:0 9px 0 rgba(149,118,86,.09)}
.memory-ready-main h3,.memory-result h3{margin:0!important;font-size:clamp(25px,3.7vw,36px)!important;line-height:1.2!important;color:#46624d!important;font-weight:900!important}
.memory-ready-main>p{margin:9px 0!important;font-size:15px;line-height:1.55}
.memory-chips{display:flex;flex-wrap:wrap;gap:7px;margin:18px 0}
.memory-chip{padding:8px 12px;background:#e8edda;border:1px solid #c6d0b5;color:#527359;border-radius:100px;font-size:12px;font-weight:850}
.memory-chip:nth-child(2){background:#e3eff2;color:#52717a;border-color:#b7d2d7}
.memory-chip:nth-child(3){background:#f5e9c9;color:#8c7046;border-color:#e5d3a9}
.memory-rank,.memory-record,.memory-daily{color:#58735c;font-size:13px!important;font-weight:750}
.memory-primary,.memory-secondary{min-height:49px;border-radius:15px;padding:11px 25px;font-size:15px!important;font-weight:900!important;transition:transform .15s ease,box-shadow .15s ease}
.memory-primary{background:#769c79;border:2px solid #4e785b;color:#fff!important;box-shadow:0 4px 0 #406b4c}
.memory-secondary{background:#fff7e7;border:2px solid #c7ad88;color:#56715a!important;box-shadow:0 3px 0 #baa080}
.memory-primary:not(:disabled):hover,.memory-secondary:not(:disabled):hover{transform:translateY(-2px)}
.memory-primary:not(:disabled):active,.memory-secondary:not(:disabled):active{transform:translateY(2px);box-shadow:none}
.memory-note{min-height:24px;margin:12px 0 0!important;color:#718373;font-size:13px!important}
.memory-note.is-error,.memory-feedback.is-error{color:#925847}
.memory-play{text-align:center;max-width:680px}
.memory-hud{display:flex;justify-content:center;align-items:center;gap:12px;margin-bottom:12px}
.memory-stat,.memory-round-pill{padding:9px 15px;min-width:118px;max-width:35%;background:#fffbf1;border:2px solid #d9c6a8;border-radius:13px;font-size:14px;font-weight:850}
.memory-round-pill{background:#e3ede1;color:#56765d;border-color:#b7ceb8}
.memory-phase{margin:5px 0 10px!important;font-weight:900;font-size:12px;letter-spacing:.12em;color:#7f8d77}
.memory-board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;max-width:370px;margin:0 auto;padding:12px;border:3px solid #b89b73;border-radius:25px;background:linear-gradient(145deg,#f2dfc1,#e7d0ad);box-shadow:0 7px 0 #bf9f7a,inset 0 0 0 3px #fdf3de}
.memory-board.is-six{max-width:465px;grid-template-columns:repeat(3,minmax(0,1fr))}
.memory-tile{display:grid;place-items:center;min-height:102px;border:2px solid #b2c5ae;border-bottom-width:5px;border-radius:16px;background:#fdf9ed;color:#9caf9c;font-weight:900;font-size:clamp(30px,4.4vw,49px);box-shadow:inset 0 2px 5px rgba(80,98,77,.07)}
.memory-tile:nth-child(4n+1){background:#e3efda}.memory-tile:nth-child(4n+2){background:#e0eef1}.memory-tile:nth-child(4n+3){background:#faedcf}.memory-tile:nth-child(4n+4){background:#efe4f0}
.memory-tile.is-open{color:#49674f;animation:memory-appear .3s ease}
.memory-tile.is-target{background:#faf4d4;border-color:#c8a95a;box-shadow:0 0 0 4px rgba(241,214,132,.36),inset 0 0 0 2px #fff7e6;color:#967744;animation:memory-pulse 1.5s ease-in-out infinite alternate}
.memory-prompt{margin:19px 0 12px!important;color:#44634f!important;font-size:clamp(17px,2.6vw,22px)!important;font-weight:900!important;line-height:1.4!important}
.memory-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;max-width:580px;margin:0 auto}
.memory-options:empty{display:none}
.memory-choice{min-height:56px;border:2px solid #c6d3bc;border-radius:15px;background:#fffaf0;color:#466550;font-size:23px!important;font-weight:900!important;box-shadow:0 4px 0 #bccab5}
.memory-choice:nth-child(2){background:#e6eff0}.memory-choice:nth-child(3){background:#f8edcb}.memory-choice:nth-child(4){background:#f0e9f3}
.memory-choice:not(:disabled):hover{background:#d9ebcf}
.memory-feedback{min-height:24px;margin:14px 0 10px!important;font-weight:850;font-size:14px}
.memory-feedback.is-correct{color:#4a8061}
.memory-play>.memory-primary,.memory-play>.memory-secondary{margin:8px 6px}
.memory-result{text-align:center;padding:15px 0}
.memory-result-guide{width:125px;max-height:135px;object-fit:contain}
.memory-result-score{display:block;margin:16px 0;color:#466750;font-size:clamp(56px,9vw,88px);font-weight:950;line-height:1}
.memory-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:650px;margin:0 auto}
.memory-result-card{display:grid;gap:9px;padding:15px 7px;border:2px solid #c9d4bd;border-radius:18px;background:#edf2e5;color:#5b755e;font-size:12px;font-weight:800}
.memory-result-card:nth-child(2){background:#f7edce;border-color:#ddcfa4}
.memory-result-card:nth-child(3){background:#e8eff2;border-color:#bbd1d7}
.memory-result-card strong{font-size:26px;font-weight:900;color:#405f48}
.memory-result-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;margin-top:18px}
@keyframes memory-appear{from{opacity:.45;transform:scale(.96)}to{opacity:1;transform:scale(1)}}
@keyframes memory-pulse{to{box-shadow:0 0 0 7px rgba(241,214,132,.5),inset 0 0 0 2px #fff7e6}}
@media(max-width:700px){
 .memory-shell{max-height:96dvh;border-radius:22px;border-width:2px}
 .memory-top{padding:10px 15px}
 .memory-emblem{width:43px;height:43px;padding:8px;border-radius:13px}
 .memory-brand{gap:8px}.memory-subtitle{font-size:11px}.memory-close{width:39px;height:39px}
 .memory-stage{min-height:0;padding:18px 13px}
 .memory-ready{display:block;text-align:center}
 .memory-guide{height:115px;max-width:145px;margin:0 auto -12px;position:relative;z-index:2}
 .memory-ready-main{padding:20px 14px 16px}
 .memory-ready-main>p{font-size:13px}
 .memory-chips{justify-content:center}
 .memory-board{max-width:310px;padding:9px;gap:8px}
 .memory-board.is-six{max-width:350px}
 .memory-tile{min-height:85px;font-size:34px;border-radius:13px}
 .memory-hud{gap:5px}.memory-stat,.memory-round-pill{min-width:0;max-width:none;flex:1;padding:9px 3px;font-size:12px}
 .memory-options{gap:6px}.memory-choice{min-height:52px}
 .memory-result-guide{width:100px}
}
@media(max-width:380px){.memory-stage{padding:12px 10px}.memory-tile{min-height:72px}.memory-board.is-six .memory-tile{min-height:70px}.memory-title{font-size:21px!important}.memory-chip{font-size:11px;padding:7px 9px}.memory-prompt{margin:12px 0 9px!important}}
@media(prefers-reduced-motion:reduce){.memory-shell *{animation:none!important;transition:none!important}}

/* Taman Bermain · compact illustrated activity tiles, never generic icon fonts. */
.world-playground-intro{font-size:15px;line-height:1.5;margin:0 0 12px;color:#55705b}
.world-playground-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}
.world-playground-card{display:flex!important;flex-direction:column;justify-content:center;align-items:center;gap:9px;min-height:154px;padding:16px!important;text-align:center;background:#f9f0dc!important;color:#48624d!important;border:2px solid #c8af89!important;border-radius:21px!important;box-shadow:0 4px 0 #ccb38c!important}
.world-playground-card:first-child{background:#e5efdc!important;border-color:#acc8ad!important}
.world-playground-card:hover:not(:disabled){transform:translateY(-2px)}
.world-playground-card:disabled{opacity:.55}
.world-playground-card strong{font-size:18px;font-weight:900}
.world-playground-card small{font-size:12px;color:#6e806d}
.world-playground-art{height:51px;display:grid;place-items:center}
.world-playground-art.is-math{width:65px;border:3px solid #a4bd9c;border-radius:14px;background:#fcf7e8;color:#698e72;font-weight:900;font-size:24px;transform:rotate(-5deg)}
.world-playground-art.is-memory{display:grid;grid-template-columns:repeat(2,22px);gap:4px;transform:rotate(4deg)}
.world-playground-art.is-memory i{width:22px;height:22px;border:2px solid #a4bbab;border-radius:7px;background:#c9e2b9}
.world-playground-art.is-memory i:nth-child(2){background:#c5e4ec}.world-playground-art.is-memory i:nth-child(3){background:#f4dba4}.world-playground-art.is-memory i:nth-child(4){background:#e4cdea}
.world-playground-progress{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px;color:#58755f;font-size:13px}
.world-playground-progress span{background:#e8efdc;border:1px solid #c6d6c0;border-radius:20px;padding:8px 12px}
@media(max-width:470px){.world-playground-cards{grid-template-columns:1fr}.world-playground-card{min-height:110px;flex-direction:row;justify-content:flex-start;text-align:left}.world-playground-art{flex:none}}
