:root{--oh-ink:#1f2440;--oh-purple:#ad3a61;--oh-purple-dark:#9c315d;--oh-gold:#f6b93b;--oh-cream:#fffaf1;--oh-blue:#34557d;--oh-green:#3d856b;--oh-line:#eadbcf;--oh-muted:#687081}
.oh-app{width:min(1180px,calc(100% - 28px));min-height:720px;margin:14px auto 80px;position:relative;overflow:hidden;border-radius:44px;background:radial-gradient(circle at 7% 10%,#fff 0 1%,transparent 1.2%),radial-gradient(circle at 92% 11%,#ecdaf7 0 8%,transparent 8.2%),linear-gradient(140deg,#fffaf2,#f8edf8);color:var(--oh-ink);box-shadow:0 28px 80px #44213c14}
.oh-app button,.oh-app input,.oh-app select{font:inherit}.oh-screen{display:none;min-height:720px;padding:48px clamp(22px,6vw,74px);animation:ohIn .45s ease}.oh-screen.is-active{display:block}.oh-gate.is-active{display:grid;grid-template-columns:1fr 1.05fr;align-items:center;gap:36px}.oh-kicker{display:inline-flex;padding:6px 14px;border-radius:999px;background:#f8dfeb;color:var(--oh-purple);font-weight:900}.oh-gate h1{font-size:clamp(50px,7vw,92px);line-height:1.05;margin:18px 0 20px;font-family:var(--font-display)}.oh-gate h1 em{font-style:normal;color:var(--oh-purple)}.oh-gate-copy>p{font-size:19px;color:var(--oh-muted);max-width:580px}.oh-gate-copy>small{display:block;margin-top:15px;color:var(--oh-muted)}
.oh-primary,.oh-secondary,.oh-record,.oh-back{border:0;cursor:pointer;font-weight:900}.oh-primary{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:52px;padding:11px 25px;border-radius:999px;background:linear-gradient(135deg,var(--oh-purple),var(--oh-purple-dark));color:#fff;box-shadow:0 12px 25px #8b2d5a2d}.oh-primary:hover{transform:translateY(-2px)}.oh-secondary{min-height:48px;padding:10px 20px;border-radius:999px;background:#fff;color:var(--oh-purple);box-shadow:inset 0 0 0 2px #ddcbd5}.oh-back{background:none;color:var(--oh-purple);padding:9px}.oh-door-stage{height:550px;display:flex;align-items:flex-end;justify-content:center;position:relative}.oh-door{width:245px;height:390px;position:relative;z-index:2;border:12px solid #74452e;border-bottom:0;border-radius:130px 130px 8px 8px;background:linear-gradient(90deg,#9a5f39,#c8864d 48%,#915735 49%);box-shadow:inset 0 0 0 8px #e9b467,0 30px 35px #492a2526;display:flex;align-items:center;flex-direction:column;padding-top:95px}.oh-door span{display:grid;place-items:center;width:95px;height:95px;border-radius:50%;background:#fff1c9;color:var(--oh-purple);font-size:53px;font-weight:900;box-shadow:0 10px 20px #492a2538}.oh-door b{margin-top:38px;color:#fff4d4;font-size:20px}.oh-door i{position:absolute;left:23px;top:205px;width:15px;height:15px;border-radius:50%;background:var(--oh-gold);box-shadow:0 0 0 6px #6a3b27}.oh-character{position:absolute;bottom:0;z-index:3}.oh-character img{height:340px;max-width:230px;object-fit:contain;filter:drop-shadow(0 18px 18px #27314928)}.oh-hakim{right:-4px;transform:rotate(2deg)}.oh-fahima{left:-5px;transform:rotate(-2deg)}
.oh-stars i{position:absolute;color:var(--oh-gold);font-style:normal;font-size:26px;z-index:1}.oh-stars i:nth-child(1){top:45px;right:45%}.oh-stars i:nth-child(2){top:130px;right:5%;color:var(--oh-purple)}.oh-stars i:nth-child(3){bottom:70px;left:6%}.oh-stars i:nth-child(4){top:34px;left:20%;color:var(--oh-blue)}.oh-step-head{display:grid;grid-template-columns:150px 1fr 220px;gap:25px;align-items:center;margin-bottom:30px}.oh-step-head>div:nth-child(2){text-align:center}.oh-step-head span{color:var(--oh-purple);font-weight:900}.oh-step-head h2{font-size:34px;margin:2px}.oh-progress{height:9px;border-radius:20px;background:#eadde6;overflow:hidden}.oh-progress i{display:block;height:100%;border-radius:20px;background:linear-gradient(90deg,var(--oh-purple),var(--oh-gold))}.oh-dialogue{display:flex;align-items:center;gap:16px;max-width:760px;margin:0 auto 28px;padding:14px 20px;border:1px solid var(--oh-line);border-radius:24px;background:#fff}.oh-dialogue img{width:65px;height:74px;object-fit:contain}.oh-dialogue p{margin:0}.oh-dialogue b{color:var(--oh-purple)}.oh-dialogue.is-fahima{background:#fff7df}.oh-capture-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.oh-panel{position:relative;padding:30px;border:1px solid var(--oh-line);border-radius:28px;background:#fff;box-shadow:0 15px 35px #44213c0b}.oh-panel h3{font-size:24px;margin:6px 0}.oh-panel>p{color:var(--oh-muted)}.oh-panel-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:17px;background:#f8e3ed;color:var(--oh-purple);font-size:25px;font-weight:900}.oh-recorder-status{margin:25px 0 10px;text-align:center;font-weight:900}.oh-wave{height:52px;display:flex;align-items:center;justify-content:center;gap:5px}.oh-wave i{display:block;width:5px;height:13px;border-radius:5px;background:var(--oh-purple);opacity:.45}.oh-recorder.is-recording .oh-wave i{animation:ohWave .8s ease-in-out infinite alternate}.oh-recorder.is-recording .oh-wave i:nth-child(2n){animation-delay:.2s}.oh-recorder.is-recording .oh-wave i:nth-child(3n){animation-delay:.35s}.oh-recorder-actions{display:flex;justify-content:center;gap:10px}.oh-record{min-height:48px;padding:10px 18px;border-radius:999px;background:#f9e2eb;color:var(--oh-purple)}.oh-record span{display:inline-block;width:12px;height:12px;border-radius:50%;background:#d43753;margin-left:7px}.oh-record:disabled,.oh-secondary:disabled{opacity:.45;cursor:not-allowed}.oh-recorder audio{width:100%;margin-top:18px}.oh-error{min-height:22px;color:#b4233d!important;font-size:13px}.oh-demo-card{background:linear-gradient(145deg,#fff4d7,#fff)}.oh-demo-tags{display:flex;gap:7px;flex-wrap:wrap;margin:24px 0}.oh-demo-tags span{padding:5px 10px;border-radius:999px;background:#fff;border:1px solid #ecd8a5;font-size:13px}.oh-continue{display:flex;margin:30px auto 0}
.oh-memory-form{max-width:850px;margin:auto;padding:30px;border-radius:30px;background:#fff;border:1px solid var(--oh-line);display:grid;gap:25px}.oh-form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.oh-memory-form label{display:grid;gap:7px;font-weight:800}.oh-memory-form input,.oh-memory-form select{width:100%;min-height:50px;padding:10px 14px;border:2px solid var(--oh-line);border-radius:14px;background:#fff;color:var(--oh-ink)}.oh-memory-form input:focus,.oh-memory-form select:focus{outline:0;border-color:var(--oh-purple);box-shadow:0 0 0 3px #ad3a6118}.oh-memory-form fieldset{border:0;padding:0;margin:0}.oh-memory-form legend{font-weight:900;margin-bottom:10px}.oh-choice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.oh-choice-grid input{position:absolute;opacity:0;width:1px}.oh-choice-grid span{display:block;border:2px solid var(--oh-line);border-radius:15px;padding:11px;text-align:center;cursor:pointer}.oh-choice-grid input:checked+span{border-color:var(--oh-purple);background:#faeaf1;color:var(--oh-purple)}.oh-field-hint{color:var(--oh-muted);font-size:13px;margin:0 0 10px}.oh-steps-inputs{display:grid;grid-template-columns:1fr 1fr;gap:10px}.oh-memory-form>.oh-primary{justify-self:center;min-width:220px}
.oh-processing.is-active{display:grid;place-items:center;text-align:center;align-content:center}.oh-memory-orb{position:relative;width:160px;height:160px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,var(--oh-purple),var(--oh-blue));box-shadow:0 0 0 18px #ffffff8c,0 25px 50px #472a5938}.oh-memory-orb span{color:var(--oh-gold);font-size:48px;animation:ohPulse 1.2s infinite}.oh-memory-orb i{position:absolute;width:12px;height:12px;border-radius:50%;background:var(--oh-gold);animation:ohOrbit 2s linear infinite}.oh-memory-orb i:nth-child(2){animation-delay:-.65s}.oh-memory-orb i:nth-child(3){animation-delay:-1.3s}.oh-processing h2{font-size:35px;margin:40px 0 4px}.oh-processing p{color:var(--oh-muted)}.oh-processing-characters{height:135px;display:flex;justify-content:center;margin-top:18px}.oh-processing-characters img{height:100%;width:100px;object-fit:contain}.oh-experience-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;max-width:960px;margin:50px auto}.oh-experience-grid button{position:relative;min-height:260px;border:2px solid var(--oh-line);border-radius:28px;background:#fff;cursor:pointer;padding:30px 22px;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:8px;color:var(--oh-ink)}.oh-experience-grid button:hover{transform:translateY(-6px);border-color:var(--oh-purple);box-shadow:0 20px 35px #42213b17}.oh-experience-grid button.is-featured{background:linear-gradient(145deg,#f9e4ee,#fff8df);border-color:#d99ab6}.oh-experience-grid i{font-style:normal;font-size:52px}.oh-experience-grid b{font-size:23px}.oh-experience-grid span{color:var(--oh-muted)}.oh-experience-grid small{position:absolute;top:14px;left:14px;padding:4px 10px;border-radius:999px;background:var(--oh-purple);color:#fff}
.oh-result-head{text-align:center;margin-bottom:28px}.oh-result-head .oh-back{display:block;margin:0 0 15px auto}.oh-result-head h2{font-size:38px;margin:10px}.oh-result-panel{max-width:950px;margin:auto;border-radius:32px;background:#fff;border:1px solid var(--oh-line);overflow:hidden;box-shadow:0 20px 45px #44213c10}.oh-result-panel[hidden]{display:none}.oh-result-panel[data-result=story]{display:grid;grid-template-columns:.7fr 1.3fr}.oh-story-cover{min-height:410px;padding:35px;background:linear-gradient(160deg,var(--oh-blue),#21334f);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.oh-story-cover>span{font-size:48px;color:var(--oh-gold)}.oh-story-cover b{font-family:var(--font-editorial);font-size:34px;line-height:1.3;margin:20px 0}.oh-story-cover small{color:#dce7f1}.oh-story-copy{padding:45px;display:flex;flex-direction:column;justify-content:center}.oh-story-copy>p{font-family:var(--font-editorial);font-size:24px;line-height:2;color:#3e4252}.oh-story-copy footer{display:flex;align-items:center;gap:12px;border-top:1px solid var(--oh-line);padding-top:20px;color:var(--oh-purple);font-weight:800}.oh-story-copy footer img{width:55px;height:65px;object-fit:contain}.oh-game-panel{padding:28px}.oh-game-instructions{display:flex;align-items:center;gap:14px;padding:15px;border-radius:20px;background:#fff5d8}.oh-game-instructions img{width:65px;height:75px;object-fit:contain}.oh-game-instructions p{margin:2px 0;color:var(--oh-muted)}.oh-game-board{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:22px}.oh-game-board>div{padding:18px;border-radius:22px;background:#faf6f1}.oh-game-board h3{margin:0 0 14px}.oh-game-pool{display:grid;gap:9px}.oh-game-card{width:100%;border:2px solid var(--oh-line);border-radius:14px;background:#fff;padding:12px;text-align:right;cursor:pointer;color:var(--oh-ink);font-weight:800}.oh-game-card:hover{border-color:var(--oh-purple)}.oh-game-card:disabled{opacity:.35}.oh-game-order{min-height:180px;margin:0;padding:8px 33px 8px 8px;border:2px dashed #dbcbd4;border-radius:15px}.oh-game-order li{padding:8px;margin-bottom:7px;border-radius:10px;background:#fff;cursor:pointer}.oh-game-order li::marker{color:var(--oh-purple);font-weight:900}.oh-game-actions{display:flex;justify-content:center;gap:10px;margin-top:20px}.oh-game-feedback{min-height:45px;text-align:center;font-weight:900;padding:12px}.oh-game-feedback.is-success{color:var(--oh-green)}.oh-game-feedback.is-error{color:#b4233d}.oh-audio-panel{display:grid!important;grid-template-columns:1fr 1fr}.oh-scene-visual{min-height:420px;position:relative;overflow:hidden;background:linear-gradient(#bfe5ee 0 58%,#d8bd7b 58%)}.oh-sun{position:absolute;top:35px;left:40px;width:70px;height:70px;border-radius:50%;background:var(--oh-gold);box-shadow:0 0 0 15px #f6b93b2e}.oh-house{position:absolute;right:55px;bottom:70px;font-size:170px;line-height:1;color:#f7e2ba;text-shadow:0 10px 0 #aa704c}.oh-scene-characters{position:absolute;bottom:0;left:20px;height:220px;display:flex}.oh-scene-characters img{height:100%;width:135px;object-fit:contain;filter:drop-shadow(0 14px 12px #2225)}.oh-audio-copy{padding:42px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.oh-audio-copy>span{color:var(--oh-purple);font-weight:900}.oh-audio-copy h3{font-size:30px;margin:5px 0}.oh-audio-copy p{color:var(--oh-muted);font-size:18px}.oh-audio-copy audio{width:100%;margin:10px 0}.oh-audio-copy small{color:var(--oh-muted);margin-top:12px}.oh-final-actions{text-align:center;margin-top:24px}
@keyframes ohIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}@keyframes ohWave{to{height:42px;opacity:1}}@keyframes ohPulse{50%{transform:scale(1.25);opacity:.65}}@keyframes ohOrbit{from{transform:rotate(0) translateX(95px) rotate(0)}to{transform:rotate(360deg) translateX(95px) rotate(-360deg)}}
@media(max-width:900px){.oh-gate.is-active{grid-template-columns:1fr;text-align:center}.oh-gate-copy>p{margin-inline:auto}.oh-door-stage{height:430px}.oh-door{height:330px;width:210px;padding-top:75px}.oh-door span{width:75px;height:75px;font-size:42px}.oh-character img{height:260px}.oh-step-head{grid-template-columns:110px 1fr}.oh-step-head .oh-progress{grid-column:1/-1}.oh-result-panel[data-result=story],.oh-audio-panel{grid-template-columns:1fr}.oh-story-cover,.oh-scene-visual{min-height:320px}.oh-experience-grid{grid-template-columns:1fr}.oh-experience-grid button{min-height:180px}.oh-game-board{grid-template-columns:1fr}}
@media(max-width:620px){.oh-app{width:calc(100% - 14px);border-radius:25px}.oh-screen{padding:28px 14px;min-height:680px}.oh-gate h1{font-size:52px}.oh-gate-copy>p{font-size:16px}.oh-door-stage{height:360px}.oh-door{width:165px;height:270px;border-width:9px;padding-top:58px}.oh-door span{width:62px;height:62px;font-size:34px}.oh-door b{font-size:14px;margin-top:27px}.oh-door i{top:160px}.oh-character img{height:190px;max-width:135px}.oh-hakim{right:-8px}.oh-fahima{left:-8px}.oh-step-head{grid-template-columns:1fr;text-align:center;gap:8px}.oh-step-head .oh-back{justify-self:start}.oh-step-head h2{font-size:27px}.oh-capture-grid,.oh-form-row,.oh-steps-inputs{grid-template-columns:1fr}.oh-choice-grid{grid-template-columns:1fr 1fr}.oh-memory-form{padding:20px 14px}.oh-dialogue{align-items:flex-start}.oh-story-copy{padding:25px}.oh-story-copy>p{font-size:21px}.oh-game-panel{padding:14px}.oh-game-actions{flex-direction:column}.oh-audio-copy{padding:25px}.oh-scene-characters{height:170px}.oh-house{font-size:130px}.oh-result-head h2{font-size:30px}}
@media(prefers-reduced-motion:reduce){.oh-screen,.oh-wave i,.oh-memory-orb span,.oh-memory-orb i{animation:none!important}.oh-primary:hover,.oh-experience-grid button:hover{transform:none}}
.oh-result-panel[hidden]{display:none!important}
.oh-mic-help{margin-top:14px;padding:15px;border:1px solid #efc5d2;border-radius:16px;background:#fff7f9;text-align:right;color:#5b3441}.oh-mic-help strong{display:block;color:#a12f56;margin-bottom:6px}.oh-mic-help ol{margin:0 0 12px;padding-right:20px;font-size:13px;line-height:1.8}.oh-mic-help>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.oh-mic-help .oh-secondary{min-height:40px;padding:7px 14px;font-size:13px}.oh-link-button{border:0;background:none;color:var(--oh-purple);font-weight:900;text-decoration:underline;cursor:pointer}.oh-mic-help>small{display:block;margin-top:8px;color:var(--oh-green)}

/* Open Hakeem text experience: scoped additions only. */
.oh-memory-form textarea{font:inherit;width:100%;resize:vertical;min-height:140px;padding:14px;border:2px solid var(--oh-line);border-radius:14px;background:#fff;color:var(--oh-ink)}.oh-memory-form textarea:focus{outline:2px solid var(--oh-purple)}.oh-ai-options{display:grid;gap:12px;margin:20px 0}.oh-ai-options button{font:inherit;text-align:right;padding:16px;min-height:52px;border:2px solid var(--oh-line);border-radius:16px;background:#fff;cursor:pointer}.oh-ai-options button.is-selected{border-color:var(--oh-purple);background:#faeaf1}.oh-ai-options button:disabled{cursor:default}.oh-ai-summary{line-height:1.9;color:var(--oh-muted)}.oh-ai-closing{padding:22px;margin:22px 0;border-radius:18px;background:#fff5d8;line-height:1.9}.oh-primary:disabled{opacity:.6;cursor:wait}.oh-app button:focus-visible{outline:3px solid var(--oh-blue);outline-offset:3px}.oh-ai-options button span{font-weight:bold;margin-left:10px}

/* =========================================================
   Open Hakeem — AI Game Director v2
   Four safe mechanics: objects / search / sequence / rule
========================================================= */
.oh-ai-game-panel{padding:30px}.oh-ai-intro{padding-bottom:20px;border-bottom:1px solid var(--oh-line)}.oh-ai-intro .oh-kicker{display:inline-block;margin-bottom:8px}.oh-ai-summary{margin:0;color:var(--oh-muted);font-size:17px;line-height:1.9}.oh-memory-snapshot{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.oh-memory-snapshot span{display:inline-flex;align-items:center;padding:7px 11px;border-radius:999px;background:#fff5d8;color:#5a4a34;font-size:13px;border:1px solid #f1deb0}.oh-memory-snapshot b{color:var(--oh-purple)}.oh-ai-play{padding-top:22px}.oh-ai-play>h3{font-size:26px;line-height:1.55;margin:0 0 18px}.oh-ai-game{margin:0 0 14px}.oh-ai-game+.oh-game-feedback{margin-top:10px}.oh-ai-play>.oh-primary{display:flex;margin:14px auto 0;min-width:170px;justify-content:center}

.oh-object-grid,.oh-rule-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.oh-object-card,.oh-rule-card,.oh-sequence-card{font:inherit;border:2px solid var(--oh-line);background:#fff;color:var(--oh-ink);border-radius:18px;min-height:100px;padding:16px;cursor:pointer;font-weight:850;line-height:1.55;transition:.18s ease;box-shadow:0 8px 18px #44213c08}.oh-object-card:hover,.oh-rule-card:hover,.oh-sequence-card:hover{transform:translateY(-2px);border-color:#d99ab6}.oh-object-card.is-selected{border-color:var(--oh-purple);background:#faeaf1;box-shadow:0 0 0 3px #ad3a6112}.oh-object-card.is-correct,.oh-rule-card.is-correct{border-color:var(--oh-green);background:#edf8f3;color:#174d3f}.oh-rule-card.is-wrong{border-color:#d99aa9;background:#fff4f6;color:#8f304d}.oh-object-card:disabled,.oh-rule-card:disabled,.oh-sequence-card:disabled{cursor:default;transform:none}

.oh-search-scene{position:relative;min-height:390px;overflow:hidden;border-radius:26px;border:1px solid #eadcca;background:radial-gradient(circle at 20% 20%,#fff8df 0 6%,transparent 7%),linear-gradient(180deg,#dff1f3 0 46%,#ebd6a9 46% 64%,#d3b37d 64%);box-shadow:inset 0 0 0 10px #ffffff85,0 18px 35px #44213c0c}.oh-search-scene::before{content:"";position:absolute;right:7%;bottom:13%;width:27%;height:42%;border:7px solid #ffffff9c;border-bottom:0;border-radius:90px 90px 0 0;opacity:.8}.oh-search-scene::after{content:"";position:absolute;left:8%;bottom:8%;width:36%;height:12%;border-radius:50%;background:#8d5d7240}.oh-search-scene-label{position:absolute;top:18px;right:20px;z-index:2;padding:7px 11px;border-radius:999px;background:#ffffffdc;color:var(--oh-purple);font-weight:900;font-size:13px}.oh-search-item{position:absolute;z-index:3;max-width:190px;min-width:105px;min-height:54px;border:2px solid #ffffffdc;border-radius:17px;padding:10px 13px;background:#ffffffec;color:var(--oh-ink);font:inherit;font-weight:850;cursor:pointer;box-shadow:0 10px 25px #3f2d331c;transition:.18s ease}.oh-search-item:hover{transform:translateY(-2px) scale(1.02);border-color:var(--oh-gold)}.oh-search-item.is-found{background:#edf8f3;border-color:var(--oh-green);color:#174d3f}.oh-search-item.is-found::before{content:"✓ ";font-weight:950}.oh-search-item.is-wrong{opacity:.42;filter:grayscale(.4)}

.oh-sequence-game{display:grid;grid-template-columns:1fr 1fr;gap:16px}.oh-sequence-pool{display:grid;gap:9px;align-content:start;padding:15px;border-radius:20px;background:#faf6f1}.oh-sequence-order{min-height:280px;margin:0;padding:16px 42px 16px 16px;border:2px dashed #d9c4cf;border-radius:20px;background:#fffdfb}.oh-sequence-order:empty::before{content:"اضغط الأحداث بالترتيب لتظهر هنا";display:block;color:var(--oh-muted);font-size:14px;padding:14px 0}.oh-sequence-order li{margin:0 0 8px}.oh-sequence-order li::marker{color:var(--oh-purple);font-weight:950}.oh-sequence-order button{width:100%;border:1px solid #ead8df;border-radius:13px;background:#fff;padding:11px;text-align:right;color:var(--oh-ink);font:inherit;font-weight:800;cursor:pointer}.oh-sequence-reset{grid-column:1/-1;justify-self:center}.oh-game-feedback.is-success{color:var(--oh-green)}.oh-game-feedback.is-error{color:#b4233d}

@media(max-width:900px){.oh-object-grid,.oh-rule-grid{grid-template-columns:1fr 1fr}.oh-search-scene{min-height:360px}.oh-sequence-game{grid-template-columns:1fr}.oh-sequence-order{min-height:190px}.oh-sequence-reset{grid-column:auto}}
@media(max-width:620px){.oh-ai-game-panel{padding:18px 13px}.oh-ai-play>h3{font-size:21px}.oh-object-grid,.oh-rule-grid{grid-template-columns:1fr}.oh-object-card,.oh-rule-card,.oh-sequence-card{min-height:76px}.oh-search-scene{min-height:470px}.oh-search-item{max-width:145px;min-width:88px;font-size:13px;padding:8px 10px}.oh-memory-snapshot{gap:6px}.oh-memory-snapshot span{font-size:12px}.oh-sequence-order{padding-right:36px}}

/* =========================================================
   Voice memory → transcription
========================================================= */
.oh-gate-actions{display:flex;gap:12px;align-items:center;justify-content:center;flex-wrap:wrap;margin-top:22px}.oh-gate-actions .oh-primary,.oh-gate-actions .oh-secondary{margin:0}.oh-transcribe-actions{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:16px}.oh-transcribe-actions .oh-primary{min-width:280px}.oh-transcription-status{min-height:24px;margin:12px 0 0!important;text-align:center;color:#24725b!important;font-size:14px;font-weight:800}.oh-voice-note{margin:8px 0 0!important;padding:10px 14px;border-radius:14px;background:#eaf7f2;color:#24725b!important;font-size:14px;font-weight:800}.oh-recorder.is-recording .oh-record{box-shadow:0 0 0 5px rgba(212,55,83,.08)}
@media(max-width:620px){.oh-gate-actions{flex-direction:column;align-items:stretch}.oh-gate-actions button{width:100%}.oh-transcribe-actions{flex-direction:column;align-items:stretch}.oh-transcribe-actions .oh-primary,.oh-transcribe-actions .oh-secondary{width:100%;min-width:0;text-align:center}}


/* =========================================================
   Open Hakeem — Local Test Gallery (Phase 1)
   Open with /open-hakeem?test=1
========================================================= */
.oh-test-gallery.is-active{display:block}
.oh-test-head{max-width:760px;margin:0 auto 34px;text-align:center}
.oh-test-head h2{margin:14px 0 8px;font-size:clamp(34px,5vw,54px);font-family:var(--font-display)}
.oh-test-head p{margin:0;color:var(--oh-muted);font-size:17px;line-height:1.8}
.oh-test-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;max-width:920px;margin:0 auto}
.oh-test-card{font:inherit;min-height:220px;padding:26px;border:2px solid var(--oh-line);border-radius:26px;background:#fff;color:var(--oh-ink);cursor:pointer;text-align:right;display:grid;grid-template-columns:auto 1fr;grid-template-areas:"icon title" "icon code" "copy copy";column-gap:16px;align-content:center;box-shadow:0 15px 32px #44213c0b;transition:.18s ease}
.oh-test-card:hover{transform:translateY(-4px);border-color:#d99ab6;box-shadow:0 20px 36px #44213c15}
.oh-test-card:focus-visible{outline:3px solid var(--oh-blue);outline-offset:4px}
.oh-test-icon{grid-area:icon;display:grid;place-items:center;width:62px;height:62px;border-radius:19px;background:linear-gradient(145deg,#f8e3ed,#fff4d7);color:var(--oh-purple);font-size:30px;font-weight:950}
.oh-test-card b{grid-area:title;font-size:23px;align-self:end}
.oh-test-card small{grid-area:code;color:var(--oh-purple);font-weight:900;align-self:start}
.oh-test-card p{grid-area:copy;margin:18px 0 0;color:var(--oh-muted);line-height:1.75}
.oh-test-note{max-width:920px;margin:22px auto 0;padding:15px 18px;border:1px dashed #d9c4cf;border-radius:18px;background:#fffaf2;color:var(--oh-muted);line-height:1.8}
.oh-test-note b{color:var(--oh-purple)}
.oh-test-note code{direction:ltr;unicode-bidi:embed;display:inline-block;padding:2px 7px;border-radius:8px;background:#f4e8ed;color:var(--oh-purple-dark)}
.oh-test-return{display:flex;margin:14px auto 0}

/* Match Pairs demo */
.oh-match-game{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.oh-match-column{display:grid;gap:10px;padding:16px;border-radius:22px;background:#faf6f1;align-content:start}
.oh-match-column h4{margin:0 0 4px;color:var(--oh-purple);font-size:15px}
.oh-match-card{font:inherit;width:100%;min-height:64px;padding:12px 14px;border:2px solid var(--oh-line);border-radius:16px;background:#fff;color:var(--oh-ink);cursor:pointer;font-weight:850;line-height:1.5;transition:.16s ease}
.oh-match-card:hover{border-color:#d99ab6;transform:translateY(-1px)}
.oh-match-card.is-selected{border-color:var(--oh-purple);background:#faeaf1;box-shadow:0 0 0 3px #ad3a6112}
.oh-match-card.is-correct{border-color:var(--oh-green);background:#edf8f3;color:#174d3f}
.oh-match-card.is-correct::before{content:"✓ ";font-weight:950}
.oh-match-card.is-wrong{border-color:#d94d6a;background:#fff0f3;animation:ohMatchWrong .28s ease}
.oh-match-card:disabled{cursor:default;transform:none}
@keyframes ohMatchWrong{0%,100%{transform:translateX(0)}35%{transform:translateX(5px)}70%{transform:translateX(-5px)}}

@media(max-width:720px){
    .oh-test-grid{grid-template-columns:1fr}
    .oh-test-card{min-height:180px}
    .oh-match-game{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
    .oh-test-card,.oh-match-card{transition:none}
    .oh-match-card.is-wrong{animation:none}
}

.oh-screen.is-test-run .oh-result-head .oh-back,.oh-screen.is-test-run .oh-final-actions{display:none}


/* =========================================================
   Open Hakeem — Test Gallery Phase 2 mechanics
   who_did_it / memory_detail / category_sort
========================================================= */
.oh-who-prompt{display:flex;align-items:center;gap:12px;margin:0 0 18px;padding:16px 18px;border-radius:20px;background:#fff5d8}
.oh-who-prompt span{display:grid;place-items:center;min-width:56px;height:56px;border-radius:18px;background:#fff;color:var(--oh-purple);font-weight:950}
.oh-who-prompt b{font-size:20px}
.oh-who-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.oh-who-card{font:inherit;min-height:170px;border:2px solid var(--oh-line);border-radius:22px;background:#fff;color:var(--oh-ink);cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;font-weight:900;transition:.18s ease}
.oh-who-card:hover{transform:translateY(-3px);border-color:#d99ab6}
.oh-who-avatar{display:grid;place-items:center;width:82px;height:82px;border-radius:50%;background:linear-gradient(145deg,#f8e3ed,#fff4d7);font-size:42px}
.oh-who-card.is-correct{border-color:var(--oh-green);background:#edf8f3;color:#174d3f}
.oh-who-card.is-wrong{border-color:#d99aa9;background:#fff4f6;opacity:.7}
.oh-who-card:disabled{cursor:default;transform:none}

.oh-memory-preview{padding:24px;border:2px dashed #d7c5ce;border-radius:24px;background:linear-gradient(145deg,#fffaf2,#fff);text-align:center}
.oh-memory-preview>strong{display:block;margin-bottom:16px;font-size:20px;color:var(--oh-purple)}
.oh-memory-preview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:20px}
.oh-memory-preview-grid span{display:grid;place-items:center;min-height:105px;padding:14px;border:1px solid var(--oh-line);border-radius:18px;background:#fff;font-weight:850;line-height:1.6}
.oh-memory-preview>.oh-primary{margin:auto}
.oh-memory-challenge h4{text-align:center;font-size:23px;margin:4px 0 18px}
.oh-memory-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.oh-memory-choice{font:inherit;min-height:92px;border:2px solid var(--oh-line);border-radius:18px;background:#fff;color:var(--oh-ink);font-weight:900;cursor:pointer;padding:14px}
.oh-memory-choice:hover{border-color:#d99ab6}
.oh-memory-choice.is-correct{border-color:var(--oh-green);background:#edf8f3;color:#174d3f}
.oh-memory-choice.is-wrong{border-color:#d99aa9;background:#fff4f6;color:#8f304d}
.oh-memory-choice:disabled{cursor:default}

.oh-sort-game{display:grid;grid-template-columns:.8fr 1.2fr;gap:16px}
.oh-sort-source,.oh-sort-zone{padding:16px;border-radius:22px;background:#faf6f1}
.oh-sort-source h4{margin:0 0 12px;color:var(--oh-purple)}
.oh-sort-pool{display:grid;gap:9px;min-height:210px}
.oh-sort-zones{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.oh-sort-zone{background:#fff;border:2px dashed #dccbd3;transition:.16s ease}
.oh-sort-zone.is-dragover{border-color:var(--oh-purple);background:#faeaf1}
.oh-sort-zone-title{font:inherit;width:100%;border:0;background:none;color:var(--oh-ink);cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;padding:4px 0 12px;font-weight:950}
.oh-sort-zone-title span{font-size:26px}
.oh-sort-zone-list{min-height:190px;display:grid;align-content:start;gap:8px;border-radius:14px}
.oh-sort-item{font:inherit;width:100%;min-height:58px;padding:10px 12px;border:2px solid var(--oh-line);border-radius:15px;background:#fff;color:var(--oh-ink);cursor:grab;font-weight:850}
.oh-sort-item:active{cursor:grabbing}
.oh-sort-item.is-selected{border-color:var(--oh-purple);background:#faeaf1;box-shadow:0 0 0 3px #ad3a6112}
.oh-sort-item.is-correct{border-color:var(--oh-green);background:#edf8f3}
.oh-sort-reset{grid-column:1/-1;justify-self:center}
.oh-sort-game>.oh-secondary{margin-top:2px}

@media(max-width:900px){
    .oh-who-grid,.oh-memory-preview-grid,.oh-memory-choice-grid{grid-template-columns:1fr 1fr}
    .oh-sort-game{grid-template-columns:1fr}
}
@media(max-width:620px){
    .oh-who-grid,.oh-memory-preview-grid,.oh-memory-choice-grid,.oh-sort-zones{grid-template-columns:1fr}
    .oh-who-card{min-height:125px}
    .oh-who-avatar{width:68px;height:68px;font-size:34px}
    .oh-memory-preview-grid span{min-height:82px}
    .oh-sort-zone-list{min-height:120px}
}

.oh-challenge-progress{display:inline-flex;margin-inline-start:12px;padding:7px 12px;border-radius:999px;background:#f1ead8;color:#17483f;font-size:14px}
.oh-memory-image-stage{display:grid;gap:18px;justify-items:center;text-align:center;padding:26px 0}
.oh-generated-image{width:min(100%,900px);aspect-ratio:16/9;overflow:hidden;border-radius:24px;background:linear-gradient(135deg,#efe7d8,#dbe8df);border:1px solid rgba(23,72,63,.15);display:grid;place-items:center;color:#405d55;padding:18px;box-sizing:border-box}
.oh-generated-image img{display:block;width:100%;height:100%;object-fit:cover}
.oh-generated-image.is-fallback{font-weight:700;line-height:1.8}
.oh-ai-closing{display:grid;gap:18px;justify-items:center;text-align:center}
.oh-final-memory-image{margin-top:8px}
@media(max-width:620px){.oh-memory-image-stage{padding:12px 0}.oh-generated-image{border-radius:16px}.oh-challenge-progress{display:flex;width:max-content;margin:8px 0 0}}

/* Open Hakeem — memory map and 12-challenge journey */
.oh-memory-map{background:radial-gradient(circle at 10% 10%,#fff7dd 0,transparent 34%),radial-gradient(circle at 92% 15%,#f7e3ec 0,transparent 32%),linear-gradient(180deg,#fffdf8,#f6f1e8)}
.oh-map-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.oh-map-score{display:inline-flex;align-items:center;gap:8px;padding:9px 15px;border-radius:999px;background:#fff4c9;color:#805a00;border:1px solid #ead38a;font-weight:950;box-shadow:0 8px 22px #5a431013}
.oh-map-score span{color:#e5a900;font-size:20px}
.oh-unlocked-card{display:grid;grid-template-columns:minmax(280px,.9fr) 1.1fr;gap:26px;align-items:center;overflow:hidden;padding:20px;border:1px solid #dfd3c3;border-radius:30px;background:#fff;box-shadow:0 22px 60px #4c382114}
.oh-unlocked-image{aspect-ratio:16/10;border-radius:22px;overflow:hidden;background:linear-gradient(135deg,#efe7d8,#dbe8df);display:grid;place-items:center;color:#405d55;text-align:center;font-weight:800;padding:16px}
.oh-unlocked-image img{width:100%;height:100%;object-fit:cover}
.oh-unlocked-copy h2{margin:10px 0;font-size:clamp(28px,4vw,48px);color:var(--oh-purple-dark)}
.oh-unlocked-copy p{margin:0 0 18px;color:var(--oh-muted);font-size:18px;line-height:1.85}
.oh-unlocked-badge{display:inline-flex;padding:8px 13px;border-radius:999px;background:#eaf7ef;color:#176342;font-weight:950}
.oh-listen-memory{width:max-content}
.oh-map-progress{max-width:860px;margin:24px auto;padding:17px 20px;border-radius:20px;background:#fff;border:1px solid #e6ddd1}
.oh-map-progress>div{display:flex;justify-content:space-between;gap:12px;margin-bottom:10px;color:var(--oh-muted)}
.oh-map-progress b{color:var(--oh-ink)}
.oh-map-progress>i{display:block;height:12px;border-radius:99px;background:#eee7dd;overflow:hidden}
.oh-map-progress>i span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--oh-purple),#e4ad33);transition:width .35s ease}
.oh-stations{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;position:relative}
.oh-station{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;min-height:300px;padding:26px 20px 20px;border:2px solid #e4d8c8;border-radius:28px;background:#fff;box-shadow:0 14px 36px #3e2e1b12;transition:.2s ease}
.oh-station:not(.is-locked):hover{transform:translateY(-4px);border-color:#d49bb4}
.oh-station>i{font-style:normal;font-size:45px;margin:8px 0}
.oh-station h3{margin:5px 0;font-size:23px;color:var(--oh-purple-dark)}
.oh-station p{margin:0 0 14px;line-height:1.7;color:var(--oh-muted)}
.oh-station .oh-primary{margin-top:auto;width:100%;justify-content:center}
.oh-station-number{position:absolute;top:14px;inset-inline-start:14px;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#f3e5eb;color:var(--oh-purple);font-weight:950}
.oh-station-dots{display:flex;gap:7px;margin:5px 0 18px}.oh-station-dots span{width:12px;height:12px;border-radius:50%;background:#ddd5cb}.oh-station-dots span.is-done{background:#38a675;box-shadow:0 0 0 3px #38a67520}
.oh-station.is-locked{opacity:.48;filter:grayscale(.6)}.oh-station.is-complete{border-color:#8bc7a9;background:#f7fff9}.oh-station.is-complete>i::after{content:' ✓';font-size:22px;color:#25865e}
.oh-result-head{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px}.oh-result-head .oh-kicker,.oh-result-head h2{grid-column:1/-1}.oh-result-head .oh-map-score{grid-column:2;grid-row:1}
.oh-learning-card{margin:18px 0;padding:18px 20px;border:2px solid #e7c766;border-radius:20px;background:linear-gradient(135deg,#fff9dc,#fff);text-align:start;animation:ohNoteIn .3s ease}
.oh-learning-card span{display:inline-flex;margin-bottom:6px;color:#805a00;font-weight:950}.oh-learning-card p{margin:0;color:#4a3d20;font-size:18px;line-height:1.8}
@keyframes ohNoteIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.oh-search-scene.has-memory-image{background-size:cover;background-position:center;isolation:isolate}.oh-search-scene.has-memory-image::before{content:'';position:absolute;inset:0;background:#fff8;z-index:-1;border-radius:inherit}
.oh-ai-closing h3{margin:0;font-size:clamp(28px,4vw,44px);color:var(--oh-purple-dark)}
.oh-book-stats{display:flex;gap:14px;flex-wrap:wrap;justify-content:center}.oh-book-stats span{padding:12px 18px;border-radius:16px;background:#f7efe3;color:var(--oh-muted)}.oh-book-stats b{color:var(--oh-purple);font-size:22px}
@media(max-width:820px){.oh-unlocked-card{grid-template-columns:1fr}.oh-stations{grid-template-columns:1fr}.oh-station{min-height:255px}.oh-map-head{align-items:flex-start}}
@media(max-width:520px){.oh-unlocked-card{padding:13px;border-radius:22px}.oh-map-progress>div{font-size:14px}.oh-result-head{grid-template-columns:1fr auto}.oh-station{padding-inline:15px}.oh-learning-card p{font-size:16px}}
@media(prefers-reduced-motion:reduce){.oh-map-progress>i span,.oh-station,.oh-learning-card{transition:none;animation:none}}

/* Open Hakeem — Manus-inspired story journey */
.oh-app{width:min(1480px,calc(100% - 28px));background:radial-gradient(circle at 4% 92%,#f8e6f0 0 10%,transparent 10.2%),radial-gradient(circle at 96% 6%,#f5eafa 0 12%,transparent 12.2%),linear-gradient(135deg,#fffaf3,#fffdf9 55%,#fdf3f7)}
.oh-screen{padding-inline:clamp(24px,5vw,76px)}

.oh-gate.is-active{position:relative;grid-template-columns:minmax(360px,.86fr) minmax(480px,1.14fr);min-height:760px;gap:24px;padding-block:54px}
.oh-gate-copy{position:relative;z-index:5;padding:44px clamp(26px,4vw,58px);border:1px solid #fff9;border-radius:34px;background:#fffaf0d9;box-shadow:0 26px 70px #763b5712;backdrop-filter:blur(16px)}
.oh-gate h1{font-size:clamp(48px,5.6vw,82px);line-height:1.13;margin:16px 0 20px;color:#14213d}
.oh-gate h1 em{display:block;color:#b32d68}
.oh-gate-copy>p{font-size:18px;line-height:1.9;color:#766d70}
.oh-gate-actions{justify-content:flex-start}
.oh-gate-actions .oh-primary{border-radius:15px;min-height:58px;padding-inline:28px}
.oh-gate-actions .oh-secondary{border-radius:15px}
.oh-privacy-note{color:#8d8585!important}.oh-privacy-note::first-letter{color:#2e9b72}
.oh-door-stage{height:610px;filter:saturate(.85)}
.oh-door{width:280px;height:455px;border-color:#a56c47;background:linear-gradient(90deg,#c58d64,#e3b48c 48%,#bd8059 49%);box-shadow:inset 0 0 0 8px #f8dba2,0 35px 50px #67442b24}
.oh-character img{height:390px}

.oh-screen[data-screen="capture"].is-active{display:block;padding-top:38px;background:linear-gradient(135deg,#fffaf5,#fff8f2)}
.oh-screen[data-screen="capture"] .oh-step-head{margin-bottom:44px}
.oh-screen[data-screen="capture"] .oh-dialogue{max-width:680px;margin-inline-start:auto;margin-inline-end:0;background:transparent;border:0;box-shadow:none;padding:0}
.oh-screen[data-screen="capture"] .oh-dialogue p{font-size:18px;line-height:1.9}
.oh-screen[data-screen="capture"] .oh-capture-grid{grid-template-columns:minmax(340px,.85fr) minmax(360px,1.15fr);gap:clamp(30px,7vw,100px);align-items:center;direction:ltr}
.oh-screen[data-screen="capture"] .oh-panel{direction:rtl;box-shadow:0 22px 55px #6b3f5212}
.oh-screen[data-screen="capture"] .oh-recorder{grid-column:1;grid-row:1;padding:34px;border-radius:28px}
.oh-screen[data-screen="capture"] .oh-demo-card{grid-column:2;grid-row:1;background:linear-gradient(145deg,#fffaf2,#fff);min-height:310px;display:flex;flex-direction:column;justify-content:center}
.oh-recorder .oh-wave{height:66px}.oh-recorder .oh-record{border-radius:14px;background:linear-gradient(135deg,#bd316c,#922552);color:#fff;min-width:180px}

.oh-ready.is-active{display:grid;place-items:center;text-align:center;background:linear-gradient(145deg,#fffaf4,#fff8f5)}
.oh-ready-card{width:min(720px,100%);padding:48px clamp(24px,6vw,70px);border:1px solid #ead7ce;border-radius:30px;background:#fffdfbdd;box-shadow:0 30px 80px #67374e12}
.oh-ready-icon{display:grid;place-items:center;width:88px;height:88px;margin:0 auto 14px;border:12px solid #fff4df;border-radius:50%;background:linear-gradient(145deg,#dda52b,#b12d69);color:#fff;font-size:34px}
.oh-ready-card h2{margin:18px 0 8px;font-size:clamp(34px,5vw,54px);color:#14213d}
.oh-ready-card>p{margin:0 auto;color:#7b6d6d;font-size:18px;line-height:1.9}
.oh-ready-pills{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:24px 0}
.oh-ready-pills span{padding:8px 14px;border:1px solid #a9dac9;border-radius:999px;background:#edfbf5;color:#23715a;font-size:14px;font-weight:800}
.oh-ready-card>.oh-primary{border-radius:15px}

.oh-memory-map.is-active{display:block;min-height:760px;padding-top:24px}
.oh-world-nav{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:18px;border-bottom:1px solid #eadfd7}
.oh-world-brand{display:flex;align-items:center;gap:10px;border:0;background:none;color:#6f2450;text-align:right;cursor:pointer;font:inherit}
.oh-world-brand>span{display:grid;place-items:center;width:46px;height:46px;border-radius:15px;background:linear-gradient(145deg,#b52f69,#84234f);color:#fff;font-size:25px;font-weight:950;box-shadow:0 8px 18px #96265b35}
.oh-world-brand b{display:grid;font-size:18px}.oh-world-brand small{font-size:11px;color:#98858b;font-weight:700}
.oh-world-tools{display:flex;align-items:center;gap:10px}.oh-world-tools .oh-map-score{background:#fff;border-color:#eedeb2}.oh-world-tools .oh-map-score small{font-size:11px;color:#957d55}
.oh-world-help,.oh-child-avatar{display:grid;place-items:center;width:44px;height:44px;border:1px solid #e4d7cf;border-radius:50%;background:#fff;color:#922657;font:inherit;font-weight:900}.oh-world-help{cursor:pointer}.oh-child-avatar{background:#f1d4e1}
.oh-world-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:28px 0 22px}
.oh-world-intro h2{margin:9px 0 5px;font-size:clamp(32px,4vw,58px);line-height:1.2;color:#682044}.oh-world-intro p{margin:0;max-width:760px;color:#776c70;font-size:17px;line-height:1.8}
.oh-world-intro>.oh-secondary{border-radius:14px;white-space:nowrap}
.oh-world-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.58fr);gap:22px;direction:ltr;align-items:stretch}
.oh-map-canvas,.oh-journey-panel{direction:rtl}
.oh-map-canvas{position:relative;min-height:610px;overflow:hidden;border:10px solid #fff;border-radius:34px;background:linear-gradient(150deg,#f2dfca,#dbe9dd);box-shadow:0 25px 65px #57354720;isolation:isolate}
.oh-world-image{position:absolute;inset:0;display:grid;place-items:center;background:linear-gradient(150deg,#f0dfcb,#dceadb);color:#45665e;text-align:center;font-weight:800}
.oh-world-image::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#fff2,transparent 45%,#55354422);pointer-events:none}
.oh-world-image img{width:100%;height:100%;object-fit:cover}
.oh-world-image.is-fallback{padding:30px;background:radial-gradient(circle at 30% 30%,#fff6d8,transparent 25%),linear-gradient(145deg,#f3d9ce,#d9ebe2)}
.oh-map-caption,.oh-map-hint{position:absolute;z-index:4;padding:8px 12px;border-radius:999px;background:#fffdf0e8;color:#814f65;font-size:12px;font-weight:900;box-shadow:0 8px 18px #4c293416}
.oh-map-caption{right:18px;top:18px}.oh-map-hint{left:18px;bottom:18px}
.oh-map-hotspot{position:absolute;z-index:6;display:grid;grid-template-columns:42px auto;grid-template-areas:"icon title" "icon status";column-gap:9px;align-items:center;min-width:175px;padding:10px 13px;border:2px solid #fff;border-radius:18px;background:#fffdf4f2;color:#55203c;font:inherit;text-align:right;cursor:pointer;box-shadow:0 15px 32px #48263532;backdrop-filter:blur(8px);transition:.2s ease}
.oh-map-hotspot:hover{transform:translateY(-4px) scale(1.02);border-color:#eab64a}.oh-map-hotspot>i{grid-area:icon;display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:linear-gradient(145deg,#f5cd68,#d48e21);font-style:normal}.oh-map-hotspot>b{grid-area:title}.oh-map-hotspot>small{grid-area:status;color:#23805f;font-weight:850}
.oh-hotspot-one{left:12%;bottom:16%}.oh-hotspot-two{left:46%;top:39%}.oh-hotspot-three{right:11%;top:15%}
.oh-map-hotspot.is-locked{filter:grayscale(.8);opacity:.62;cursor:not-allowed}.oh-map-hotspot.is-locked>i{background:#ddd}.oh-map-hotspot.is-locked>small{color:#867b7f}.oh-map-hotspot.is-complete{border-color:#72bc9e;background:#f3fff9f2}.oh-map-hotspot.is-complete>i{background:#55a984}
.oh-map-characters{position:absolute;z-index:3;right:3%;bottom:-8px;display:flex;align-items:flex-end;height:225px;pointer-events:none}.oh-map-characters img{height:100%;width:120px;object-fit:contain;filter:drop-shadow(0 12px 12px #40262d35)}.oh-map-characters img+img{height:90%;margin-right:-28px}
.oh-journey-panel{display:flex;flex-direction:column;gap:14px;padding:20px;border:1px solid #eadbd3;border-radius:30px;background:#fffdf9;box-shadow:0 22px 55px #5e354817}
.oh-journey-panel .oh-map-progress{width:100%;margin:0;padding:0;border:0;box-shadow:none;background:transparent}.oh-journey-panel .oh-map-progress>div:first-child{font-size:17px}
.oh-journey-steps{display:grid!important;grid-template-columns:repeat(6,1fr);gap:7px!important;margin-top:13px!important;margin-bottom:0!important}.oh-journey-steps span{display:grid;place-items:center;aspect-ratio:1;border-radius:50%;background:#f0e8e4;color:#928389;font-size:11px;font-weight:950}.oh-journey-steps span.is-done{background:#46a681;color:#fff}.oh-journey-steps span.is-current{box-shadow:0 0 0 3px #b6336c33;background:#b6336c;color:#fff}
.oh-fahima-tip{position:relative;padding:18px 18px 18px 74px;border-radius:20px;background:linear-gradient(145deg,#fce8f0,#fff8dc)}.oh-fahima-tip img{position:absolute;left:8px;bottom:0;width:66px;height:82px;object-fit:contain}.oh-fahima-tip span{color:#ac2d66;font-size:12px;font-weight:950}.oh-fahima-tip p{margin:4px 0 0;color:#5d4650;line-height:1.7;font-size:14px}
.oh-journey-panel .oh-listen-memory{width:100%;border-radius:14px}
.oh-memory-box{margin-top:auto;padding:16px;border:1px solid #eadbd3;border-radius:20px;background:#fff}.oh-memory-box>span{color:#79234c;font-weight:950}.oh-memory-box p{margin:5px 0 13px;color:#766a6e}.oh-memory-box>div{display:flex;gap:8px}.oh-memory-box i{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#fae7ef;color:#af2e68;font-style:normal;font-weight:950}
.oh-trusted-note{display:flex;align-items:center;gap:10px;padding:12px;border-radius:16px;background:#fff7da;color:#6f5520}.oh-trusted-note>span{font-size:22px;color:#d59a12}.oh-trusted-note p{display:grid;margin:0;font-size:12px;line-height:1.5}.oh-trusted-note b{font-size:13px}

.oh-encouragement{display:flex;align-items:center;justify-content:center;gap:12px;margin:14px 0;padding:15px 18px;border-radius:18px;background:linear-gradient(135deg,#f7dfeb,#fff1c9);color:#9c315d;text-align:center;animation:ohNoteIn .3s ease}.oh-encouragement>span{display:grid;place-items:center;min-width:38px;height:38px;border-radius:50%;background:#b12f68;color:#fff}.oh-encouragement p{margin:0;font-size:18px;font-weight:950;line-height:1.6}
.oh-ai-closing{padding:34px;border-radius:28px;background:linear-gradient(145deg,#fff4d6,#fff7f9)}

@media(max-width:1050px){.oh-world-layout{grid-template-columns:minmax(0,1fr) 285px}.oh-map-canvas{min-height:540px}.oh-map-hotspot{min-width:155px;font-size:13px}.oh-map-characters{height:175px}}
@media(max-width:900px){.oh-gate.is-active{grid-template-columns:1fr}.oh-gate-copy{order:1;text-align:center}.oh-gate-actions{justify-content:center}.oh-door-stage{order:2;height:430px}.oh-screen[data-screen="capture"] .oh-capture-grid{grid-template-columns:1fr;direction:rtl}.oh-screen[data-screen="capture"] .oh-recorder,.oh-screen[data-screen="capture"] .oh-demo-card{grid-column:auto;grid-row:auto}.oh-world-layout{grid-template-columns:1fr}.oh-map-canvas{min-height:560px}.oh-journey-panel{min-height:0}.oh-world-intro{align-items:center}}
@media(max-width:620px){.oh-app{width:calc(100% - 10px);border-radius:22px}.oh-gate.is-active{padding-block:24px}.oh-gate-copy{padding:28px 18px;border-radius:25px}.oh-gate h1{font-size:44px}.oh-door-stage{height:345px}.oh-ready-card{padding:32px 16px}.oh-ready-pills{display:grid}.oh-world-nav{align-items:flex-start}.oh-world-brand b{font-size:15px}.oh-world-tools .oh-map-score small{display:none}.oh-world-intro{display:grid;padding-top:22px}.oh-world-intro>.oh-secondary{justify-self:start}.oh-world-intro h2{font-size:34px}.oh-map-canvas{min-height:570px;border-width:6px;border-radius:25px}.oh-map-hotspot{min-width:145px;grid-template-columns:34px auto;padding:8px 9px}.oh-map-hotspot>i{width:34px;height:34px}.oh-hotspot-one{left:5%;bottom:17%}.oh-hotspot-two{left:39%;top:42%}.oh-hotspot-three{right:5%;top:17%}.oh-map-characters{height:150px;right:-3%}.oh-map-characters img{width:90px}.oh-map-caption{right:9px;top:9px}.oh-map-hint{left:9px;bottom:9px}.oh-encouragement p{font-size:16px}}
@media(max-width:430px){.oh-map-canvas{min-height:620px}.oh-map-hotspot{min-width:132px;font-size:12px}.oh-hotspot-one{left:3%;bottom:18%}.oh-hotspot-two{left:31%;top:43%}.oh-hotspot-three{right:3%;top:16%}.oh-map-characters{height:132px}}
@media(prefers-reduced-motion:reduce){.oh-map-hotspot,.oh-encouragement{transition:none;animation:none}}


/* Opening UX only: reuse gate/capture states and the existing recorder. */
.oh-gate.is-active{display:flex;justify-content:flex-start;align-items:center;min-height:700px;padding-block:48px;isolation:isolate}
.oh-gate-copy{width:min(740px,66%);margin-inline-start:3%;padding:38px 28px;text-align:center;border:0;background:linear-gradient(90deg,#fffaf3b8,#fffaf3ef 35%,#fffaf3e8);box-shadow:none;backdrop-filter:blur(3px)}
.oh-gate h1{font-size:clamp(46px,5.7vw,80px);line-height:1.18;letter-spacing:-.025em}
.oh-gate-copy>p{max-width:610px;margin-inline:auto;font-size:19px;line-height:1.9}
.oh-gate-actions{justify-content:center}
.oh-gate .oh-door-stage{position:absolute;left:2%;bottom:42px;width:55%;height:570px;opacity:.4;z-index:-1;pointer-events:none}
.oh-gate .oh-door{width:280px;height:455px}
.oh-gate .oh-character img{height:390px}
.oh-capture-screen.is-active{padding-top:24px}
.oh-capture-back{display:block;margin-bottom:12px}
.oh-screen[data-screen="capture"] .oh-capture-grid{grid-template-columns:minmax(0,.9fr) minmax(0,1.2fr);gap:clamp(28px,6vw,90px);align-items:center;min-height:530px}
.oh-capture-intro{direction:rtl;min-width:0;padding-block:20px}
.oh-capture-eyebrow{color:var(--oh-purple);font-weight:900}
.oh-capture-intro h2{font-family:var(--font-display);font-size:clamp(40px,5.2vw,72px);line-height:1.22;margin:16px 0 22px;color:#14213d}
.oh-capture-intro h2 em{display:block;font-style:normal;color:var(--oh-purple)}
.oh-capture-intro>p{font-size:18px;line-height:1.9;color:#766d70;margin:0 0 30px}
.oh-capture-steps{list-style:none;display:grid;gap:20px;padding:0;margin:0}
.oh-capture-steps li{display:flex;align-items:center;gap:14px}
.oh-capture-steps li>span{flex:0 0 38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--oh-purple);color:#fff;font-weight:900}
.oh-capture-steps b,.oh-capture-steps small{display:block}
.oh-capture-steps b{color:#233c60;font-size:18px}.oh-capture-steps small{color:#928589;font-size:14px;margin-top:3px}
.oh-capture-extras{display:flex;align-items:center;justify-content:center;gap:24px;flex-wrap:wrap;margin-top:36px;padding-top:24px;border-top:1px solid #eadbcf}
.oh-screen[data-screen="capture"] .oh-capture-extras .oh-demo-card{min-height:0;width:min(580px,100%);padding:20px 24px;display:block}
.oh-capture-extras .oh-panel-icon,.oh-capture-extras .oh-demo-tags{display:none}
.oh-capture-extras .oh-demo-card h3{font-size:20px}.oh-capture-extras .oh-demo-card>p{margin-block:8px}
.oh-capture-extras .oh-continue{margin:0}
@media(max-width:900px){.oh-gate.is-active{display:grid;grid-template-columns:1fr;min-height:0;padding-block:30px}.oh-gate-copy{width:100%;margin:0;padding:28px 18px}.oh-gate .oh-door-stage{position:relative;left:auto;bottom:auto;width:min(560px,100%);height:400px;margin:auto;opacity:.55;z-index:-1}.oh-gate .oh-door{width:210px;height:330px}.oh-gate .oh-character img{height:260px}.oh-screen[data-screen="capture"] .oh-capture-grid{grid-template-columns:1fr;direction:rtl;min-height:0;gap:26px}.oh-capture-intro{grid-row:1;padding:0;text-align:center}.oh-capture-steps{width:fit-content;margin-inline:auto;text-align:right}.oh-screen[data-screen="capture"] .oh-recorder{grid-row:2;width:min(560px,100%);margin:auto}.oh-capture-intro h2{font-size:52px}.oh-capture-intro>p{max-width:650px;margin-inline:auto}.oh-capture-extras{margin-top:28px}}
@media(max-width:620px){.oh-gate-copy{padding:24px 10px}.oh-gate h1{font-size:42px}.oh-gate-copy>p{font-size:16px}.oh-gate .oh-door-stage{height:310px}.oh-gate .oh-door{width:165px;height:270px}.oh-gate .oh-character img{height:190px;max-width:135px}.oh-capture-intro h2{font-size:39px}.oh-capture-intro>p{font-size:16px}.oh-screen[data-screen="capture"] .oh-recorder{padding:24px 18px}.oh-capture-extras{gap:18px}.oh-capture-extras .oh-continue{width:100%}.oh-capture-steps{gap:16px}.oh-capture-steps b{font-size:17px}}

/* Open Hakeem landing — matched to the approved Manus direction. */
.oh-app:has(.oh-gate.is-active){width:100%;margin:0 0 80px;border-radius:0;background:#fffcf6;box-shadow:none;overflow:hidden}
.oh-app:has(.oh-gate.is-active)>.oh-stars{display:none}
.oh-gate.is-active{display:block;min-height:0;padding:0;background:#fffcf6}
.oh-landing-hero{position:relative;display:grid;grid-template-columns:minmax(430px,1fr) minmax(430px,1fr);grid-template-areas:"art copy";align-items:center;gap:clamp(30px,5vw,76px);width:min(1480px,calc(100% - 48px));min-height:590px;margin:14px auto 0;padding:54px clamp(30px,6vw,92px);overflow:hidden;border-radius:38px;background:radial-gradient(circle at 94% 3%,#ead8f2 0 13%,transparent 13.2%),radial-gradient(circle at 3% 97%,#fae8ef 0 13%,transparent 13.2%),linear-gradient(125deg,#fffaf3,#fbf1f4);direction:ltr}
.oh-landing-hero .oh-gate-copy,.oh-landing-hero .oh-door-stage{direction:rtl}
.oh-landing-hero::before,.oh-landing-hero::after{content:"✦";position:absolute;color:#e5b849;font-size:30px;opacity:.8}.oh-landing-hero::before{top:54px;left:42%}.oh-landing-hero::after{right:45px;bottom:110px;color:#bc4a72;font-size:20px}
.oh-landing-hero .oh-gate-copy{grid-area:copy;width:auto;max-width:650px;margin:0;padding:0;text-align:right;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none}
.oh-landing-hero .oh-kicker{padding:7px 15px;background:#fae2ea;color:#b33465;font-size:14px}
.oh-landing-hero .oh-gate h1,.oh-landing-hero h1{margin:20px 0 18px;font-family:var(--font-display);font-size:clamp(52px,5.8vw,86px);font-weight:800;line-height:1.12;letter-spacing:-.025em;color:#17233e}
.oh-landing-hero h1 em{display:block;color:#b62f68}
.oh-landing-hero .oh-gate-copy>p{max-width:620px;margin:0;color:#7d7778;font-size:18px;line-height:2}
.oh-landing-hero .oh-gate-actions{justify-content:flex-start;gap:14px;margin-top:24px}
.oh-landing-hero .oh-primary,.oh-how .oh-primary{min-height:54px;padding:12px 28px;border-radius:14px;background:linear-gradient(135deg,#b83269,#932652);box-shadow:0 12px 24px #9f2d5a28}
.oh-landing-hero .oh-secondary,.oh-how .oh-secondary{min-height:54px;padding:12px 25px;border-radius:14px;background:#fff;color:#a3315e;box-shadow:inset 0 0 0 1px #decbd2}
.oh-landing-hero .oh-privacy-note{margin-top:17px;color:#968d90!important;font-size:12px}
.oh-landing-hero .oh-door-stage{grid-area:art;position:relative;left:auto;bottom:auto;width:100%;height:470px;margin:0;opacity:1;z-index:1;filter:none}
.oh-landing-hero .oh-door{width:220px;height:325px;padding-top:76px;border:0;border-radius:118px 118px 4px 4px;background:linear-gradient(90deg,#e7d4bd,#f2e4d1 48%,#dec7ad 49%);box-shadow:inset 0 0 0 7px #f6ead8,0 24px 45px #765c4317}
.oh-landing-hero .oh-door span{width:78px;height:78px;background:#fff6df;color:#bd6688;font-size:42px;box-shadow:none}
.oh-landing-hero .oh-door b{margin-top:28px;color:#fff;font-size:17px;text-shadow:0 1px 4px #8d6f5c55}
.oh-landing-hero .oh-door i{left:16px;top:178px;width:11px;height:11px;background:#d3a54b;box-shadow:0 0 0 5px #b18f62}
.oh-landing-hero .oh-character{bottom:0}.oh-landing-hero .oh-character img{height:280px;max-width:190px;filter:drop-shadow(0 16px 16px #2731491b)}
.oh-landing-hero .oh-fahima{left:10%}.oh-landing-hero .oh-hakim{right:6%}

.oh-how{padding:82px max(28px,calc((100% - 1380px)/2)) 74px;background:#fffcf6}
.oh-how-head{text-align:center}.oh-how-head>span{color:#ae3262;font-size:14px;font-weight:900}.oh-how-head h2{margin:14px 0 8px;font-family:var(--font-display);font-size:clamp(38px,4vw,58px);line-height:1.25;color:#19233e}.oh-how-head p{margin:0;color:#8b8c93;font-size:17px}
.oh-how-rule{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:18px;margin:44px 0 25px;color:#9a9290;font-size:13px}.oh-how-rule>b{color:#a62e5b;font-size:15px}.oh-how-rule>span{height:1px;background:#e7ddd4}
.oh-how-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;direction:rtl}
.oh-how-grid article{min-height:255px;padding:27px 25px;border:1px solid #e7dcd2;border-radius:24px;background:#fff;box-shadow:0 12px 30px #5f43360a;text-align:right}
.oh-how-grid article>div{display:flex;align-items:center;justify-content:space-between}.oh-how-grid strong{color:#d8cbb8;font-family:var(--font-display);font-size:42px;line-height:1}.oh-how-grid i{display:grid;place-items:center;width:43px;height:43px;border-radius:12px;background:#fae3ed;color:#b63667;font-style:normal;font-size:20px}.oh-how-grid article:nth-child(even) i{background:#fff4cf;color:#9d721e}
.oh-how-grid h3{margin:45px 0 8px;font-family:var(--font-display);font-size:23px;color:#202940}.oh-how-grid p{margin:0;color:#85858c;font-size:14px;line-height:1.9}
.oh-how-actions{display:flex;justify-content:center;gap:14px;margin-top:32px}

@media(max-width:1000px){.oh-landing-hero{grid-template-columns:1fr 1fr;gap:20px;padding-inline:35px}.oh-landing-hero .oh-character img{height:235px}.oh-landing-hero .oh-door{width:190px;height:290px}.oh-how-grid{grid-template-columns:repeat(2,1fr)}.oh-how-grid article{min-height:230px}.oh-how-grid h3{margin-top:28px}}
@media(max-width:760px){.oh-app:has(.oh-gate.is-active){margin-bottom:50px}.oh-landing-hero{grid-template-columns:1fr;grid-template-areas:"copy" "art";width:calc(100% - 20px);padding:42px 22px 20px;border-radius:28px;text-align:center}.oh-landing-hero .oh-gate-copy{text-align:center}.oh-landing-hero .oh-gate-actions{justify-content:center}.oh-landing-hero .oh-gate-copy>p{margin-inline:auto}.oh-landing-hero .oh-door-stage{height:360px}.oh-landing-hero .oh-character img{height:220px}.oh-landing-hero .oh-door{width:180px;height:280px}.oh-how{padding:58px 18px}.oh-how-rule{grid-template-columns:auto 1fr}.oh-how-rule small{grid-column:1/-1}.oh-how-grid{gap:13px}.oh-how-grid article{padding:22px 19px}.oh-how-head p{font-size:15px}}
@media(max-width:520px){.oh-landing-hero h1{font-size:43px;line-height:1.18}.oh-landing-hero .oh-gate-copy>p{font-size:16px}.oh-landing-hero .oh-gate-actions,.oh-how-actions{display:grid;grid-template-columns:1fr;width:100%}.oh-landing-hero .oh-primary,.oh-landing-hero .oh-secondary,.oh-how .oh-primary,.oh-how .oh-secondary{width:100%}.oh-landing-hero .oh-door-stage{height:300px}.oh-landing-hero .oh-character img{height:180px;max-width:128px}.oh-landing-hero .oh-door{width:145px;height:235px;padding-top:55px}.oh-landing-hero .oh-door span{width:64px;height:64px;font-size:34px}.oh-landing-hero .oh-door i{top:145px}.oh-how-grid{grid-template-columns:1fr}.oh-how-grid article{min-height:205px}.oh-how-grid h3{margin-top:22px}.oh-how-rule{margin-top:34px}}

/* Change step numbers color */
.oh-how-grid strong {
    color: #BD4968;
}

