html, body, #root { margin: 0; min-height: 100%; }
body { background: var(--ds-page); }
.mora-ar, .mora-home, .mora-play, .mora-small, .mora-big, .mora-lv, .mora-ctl { font-family: "Noto Naskh Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif; }
.mora-home { display: flex; flex-direction: column; align-items: center; gap: 18px; font-size: 18px; line-height: 1.7; }
.mora-title { font-size: 72px; line-height: 1.2; margin: 0; color: #3b2a85; letter-spacing: 0; }
.mora-sub { margin: -10px 0 0; color: #5b4b8a; text-align: center; }
.mora-hero { width: 100%; max-width: 360px; border-radius: 24px; }
.mora-card-sec { width: min(100%, 460px); background: #f6f2ff; border-radius: 22px; padding: 14px 16px; box-sizing: border-box; }
.mora-card-sec h2 { margin: 0 0 8px; font-size: 22px; color: #3b2a85; }
.mora-heroes { display: flex; gap: 8px; }
.mora-pick { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border: 3px solid transparent; border-radius: 20px; background: #fff; cursor: pointer; font-size: 18px; }
.mora-pick img { height: 110px; }
.mora-pick.is-on { border-color: #7b5cd6; background: #efe9ff; }
.mora-big { font-size: 24px; padding: 14px 32px; min-height: 60px; border: 0; border-radius: 30px; background: #ffb400; color: #3a2a00; font-weight: 700; cursor: pointer; }
.mora-small { font-size: 16px; padding: 10px 16px; min-height: 44px; border-radius: 22px; border: 1px solid var(--ds-hairline); background: #fff; cursor: pointer; }
.mora-small.is-on { background: #e6f7ee; border-color: #6fcf97; }
.mora-toggle { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 17px; }
.mora-toggle input { width: 24px; height: 24px; margin-top: 4px; flex: none; }
.mora-note { margin: 6px 0 0; font-size: 15px; color: #5b4b8a; }
.mora-tier h3 { margin: 10px 0 6px; font-size: 18px; color: #3b2a85; }
.mora-tier small { font-weight: 400; color: #6a5aa0; }
.mora-levels { display: flex; flex-wrap: wrap; gap: 8px; }
.mora-lv { position: relative; width: 48px; height: 52px; border-radius: 14px; border: 1px solid #d5c9f7; background: #fff; font-size: 18px; cursor: pointer; }
.mora-lv i { position: absolute; bottom: 0; left: 0; right: 0; font-style: normal; font-size: 9px; color: #f0a500; line-height: 1; }
.mora-lv.is-done { background: #fff6d6; border-color: #f0c850; }
.mora-friends { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mora-fr { display: flex; flex-direction: column; align-items: center; font-size: 13px; text-align: center; }
.mora-fr img { height: 64px; filter: brightness(0) opacity(0.18); }
.mora-fr.is-on img { filter: none; animation: mora-bob 3s ease-in-out infinite; }
@keyframes mora-bob { 50% { transform: translateY(-4px); } }
.mora-play { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mora-stage { position: relative; width: min(100%, 420px); }
.mora-canvas { width: 100%; aspect-ratio: 360 / 540; display: block; border-radius: 20px; touch-action: none; user-select: none; background: #2a2060; }
.mora-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(20, 14, 60, 0.78); border-radius: 20px; color: #fff; text-align: center; padding: 16px; }
.mora-over h3 { margin: 0; font-size: 24px; }
.mora-over-stars { font-size: 56px; color: #6a5aa0; letter-spacing: 6px; }
.mora-over-stars span.on { color: #ffd23f; animation: mora-pop 0.6s ease-out both; display: inline-block; }
@keyframes mora-pop { 0% { transform: scale(0.3); opacity: 0; } 70% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }
.mora-friend { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mora-friend img { height: 96px; animation: mora-bob 1.6s ease-in-out infinite; }
.mora-controls { display: flex; gap: 12px; }
.mora-ctl { min-width: 84px; height: 64px; font-size: 26px; border: 0; border-radius: 20px; background: #7b5cd6; color: #fff; cursor: pointer; }
.mora-ctl-jump { background: #f5a623; color: #3a2a00; font-size: 20px; font-weight: 700; }
.mora-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .mora-fr.is-on img, .mora-friend img, .mora-over-stars span.on { animation: none; } }
.mora-loader { position: absolute; width: 0; height: 0; overflow: hidden; }
.mora-over .mora-small { color: #3a2a6b; }
body { margin: 0; background: #efe9ff; font-family: "Noto Naskh Arabic","Noto Sans Arabic","Segoe UI",Tahoma,Arial,sans-serif; color: #2a2060; }
.app-card { max-width: 520px; margin: 0 auto; padding: 20px 16px 28px; background: #fffdfb; min-height: 100vh; box-sizing: border-box; }
.app-closing { text-align: center; color: #5b4b8a; font-size: 14px; margin-top: 24px; }
:root { --ds-hairline: #d9d0f2; --ds-page: #efe9ff; }
.mora-h { margin: 0; font-size: 22px; color: #3b2a85; text-align: center; }
.mora-herobox { position: relative; width: 100%; max-width: 360px; overflow: hidden; border-radius: 24px; }
.mora-herobox .mora-hero { display: block; }
.mora-fly { position: absolute; z-index: 3; pointer-events: none; animation: mora-fly 9s ease-in-out infinite; }
@keyframes mora-fly { 0% { left: -12%; transform: translateY(0) rotate(-6deg); } 25% { transform: translateY(-14px) rotate(6deg); } 50% { transform: translateY(8px) rotate(-6deg); } 75% { transform: translateY(-10px) rotate(6deg); } 100% { left: 108%; transform: translateY(0) rotate(-6deg); } }
.mora-menu { flex-direction: column; margin: 8px 0; width: 100%; }
.mora-menu img { height: 54px; }
.mora-maze { position: relative; width: min(100%, 460px); }
.mora-mgrid { position: relative; display: grid; aspect-ratio: 1; background: #e9dcc0; border-radius: 16px; padding: 6px; box-sizing: border-box; border: 6px solid #2f8f5f; box-shadow: inset 0 0 0 3px #58c98f; overflow: hidden; }
.mora-mcell { position: relative; border: 5px solid transparent; box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.mora-mstar { width: 56%; animation: mora-pulse 1.6s ease-in-out infinite; }
@keyframes mora-pulse { 50% { transform: scale(1.18); } }
.mora-door { width: 60%; height: 78%; border-radius: 50% 50% 6px 6px; background: #8a6d2f; border: 3px solid #5c4515; opacity: 0.55; }
.mora-door.open { background: #ffd23f; box-shadow: 0 0 14px 4px rgba(255, 210, 63, 0.7); opacity: 1; }
.mora-me { position: absolute; z-index: 2; transition: left 0.2s ease, top 0.2s ease; filter: drop-shadow(0 3px 2px rgba(0,0,0,0.3)); pointer-events: none; }
.mora-dpad { display: grid; grid-template-columns: repeat(3, 76px); grid-template-rows: repeat(2, 66px); gap: 8px; }
.mora-dpad button { font-size: 28px; border: 0; border-radius: 18px; background: #7b5cd6; color: #fff; cursor: pointer; }
.mora-mem { display: grid; gap: 10px; width: min(100%, 460px); }
.mora-mcard { aspect-ratio: 1; border: 0; border-radius: 18px; background: #7b5cd6; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 6px; }
.mora-mcard img { max-width: 80%; max-height: 80%; }
.mora-q { font-size: 44px; }
.mora-mcard.is-open { background: #fff4c2; } .mora-mcard.is-done { background: #c7f5d4; }
.mora-win-inline { text-align: center; }
.mora-menu { display: flex; align-items: center; gap: 14px; text-align: right; padding: 10px 14px; border: 2px solid #d9cffa; border-radius: 18px; background: #fff; font: inherit; cursor: pointer; flex-direction: row; }
.mora-menu img { height: 52px; width: 52px; object-fit: contain; flex: none; }
.mora-menu span { display: block; font-size: 19px; font-weight: 700; color: #3b2a85; }
.mora-menu small { display: block; font-size: 14px; color: #5b5470; margin-top: 2px; }
.mora-menu > span, .mora-menu > small { flex: none; }
.mora-mgrid .mora-fly { width: 8% !important; z-index: 1; }
.mora-over { z-index: 5; }
/* magic / gift / plan (shared, mg-) */
.mg-ar { font-family: inherit; }
.mg-play { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mg-top { display: flex; align-items: center; gap: 10px; width: 100%; }
.mg-buddy { height: 84px; width: auto; flex: none; } .mg-buddy.p-cheer { animation: mg-hop calc(.6s * var(--spd, 1)) ease-in-out 2; }
@keyframes mg-hop { 50% { transform: translateY(-12px); } }
.mg-h { margin: 0; font-size: 21px; color: var(--pri, #0b7a85); } .mg-tip { margin: 2px 0 0; font-size: 16px; color: #4a6670; }
.mg-size { display: flex; gap: 8px; align-items: center; font-size: 16px; } .mg-size button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #cfe6e3; background: #fff; font-size: 19px; font-weight: 700; cursor: pointer; } .mg-size button.on { background: var(--pri, #0b7a85); color: #fff; border-color: var(--pri, #0b7a85); }
.mg-board { width: 100%; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 10px; border-radius: 22px; background: #fbe9c8; border: 4px solid #e9c98a; }
.mg-slot { width: 84px; height: 84px; border: 3px dashed rgba(90,70,40,.35); border-radius: 16px; background: rgba(255,255,255,.55); padding: 6px; display: flex; align-items: center; justify-content: center; position: relative; cursor: pointer; }
.sz9 .mg-slot { width: 76px; height: 76px; }
.mg-slot img { max-width: 100%; max-height: 100%; object-fit: contain; pointer-events: none; }
.mg-slot img.shadow { filter: brightness(0) opacity(.28); } .mg-slot img.on { animation: mg-pop calc(.45s * var(--spd, 1)) ease-out; }
@keyframes mg-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.mg-slot.done { border-style: solid; border-color: #2fa66a; background: #e8f9ee; }
.mg-slot.hint { animation: mg-glow calc(1.6s * var(--spd, 1)) ease-in-out infinite; border-color: #ffb400; } @keyframes mg-glow { 50% { box-shadow: 0 0 0 6px rgba(255,180,0,.35); } }
.mg-check { position: absolute; top: -8px; left: -8px; width: 26px; height: 26px; border-radius: 50%; background: #2fa66a; color: #fff; display: flex; align-items: center; justify-content: center; }
.mg-stage { width: 100%; display: flex; gap: 12px; align-items: center; justify-content: center; padding: 12px; border-radius: 22px; background: #d9f0ee; border: 4px solid #aee0db; min-height: 150px; }
.mg-box { width: 128px; height: 128px; border: 0; border-radius: 24px; background: #ffb400; box-shadow: 0 5px 0 #cf8f00; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; font-size: 18px; font-weight: 800; color: #3a2800; flex: none; }
.mg-box-i { font-size: 54px; line-height: 1; } .mg-box.pulse { animation: mg-glow calc(1.8s * var(--spd, 1)) ease-in-out infinite; }
.mg-hand { flex: 1; min-height: 124px; display: flex; align-items: center; justify-content: center; }
.mg-empty { color: #5b7580; font-size: 16px; }
.mg-card { width: 118px; height: 118px; background: #fff; border-radius: 18px; padding: 6px; box-shadow: 0 3px 0 rgba(0,0,0,.15); touch-action: none; cursor: grab; display: flex; align-items: center; justify-content: center; animation: mg-pop calc(.45s * var(--spd, 1)) ease-out; user-select: none; -webkit-user-select: none; }
.mg-card img { max-width: 100%; max-height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.mg-card.sel { outline: 4px solid var(--pri, #0b7a85); } .mg-card.dragging { z-index: 30; position: relative; box-shadow: 0 10px 22px rgba(0,0,0,.28); animation: none; }
.shake { animation: mg-shake calc(.4s * var(--spd, 1)) ease-in-out; } @keyframes mg-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.mg-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.mg-btn { display: inline-block; text-decoration: none; border: 2px solid #cfe6e3; background: #fff; color: inherit; border-radius: 999px; padding: 10px 22px; font-size: 18px; cursor: pointer; min-height: 46px; font-family: inherit; }
.mg-btn.pri { background: #ffb400; border-color: #ffb400; font-weight: 800; color: #3a2800; }
.mg-over { position: fixed; inset: 0; z-index: 80; background: rgba(15,76,85,.92); overflow: auto; display: flex; padding: 16px; }
.mg-gift { margin: auto; width: 100%; max-width: 460px; background: #fffdf8; border-radius: 24px; padding: 18px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.mg-won { margin: 0; font-size: 30px; color: #d9480f; } .mg-en { margin: -6px 0 0; font-size: 24px; font-weight: 800; color: #f08a00; font-family: "Trebuchet MS", Arial, sans-serif; }
.mg-line { margin: 0; font-size: 17px; line-height: 1.7; } .mg-note { margin: 0; font-size: 14px; line-height: 1.7; color: #5b7580; }
.mg-link { width: 100%; padding: 12px; font-size: 15px; border: 2px solid #cfe6e3; border-radius: 12px; background: #fff; color: #0f4c55; }
.mg-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.mg-plan { width: 100%; max-width: 520px; margin: 14px auto 0; padding: 16px; border-radius: 22px; background: #eef7f6; display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
.mg-plan h2 { margin: 0; font-size: 21px; color: var(--pri, #0b7a85); } .mg-plan small { font-size: 14px; color: #789; }
.mg-price { margin: 0; font-size: 24px; font-weight: 800; color: #0f4c55; } .mg-price span { font-size: 16px; font-weight: 600; color: #567; }
.mg-cur { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; font-size: 16px; }
.mg-soon { border: 0; border-radius: 999px; padding: 12px 36px; font-size: 20px; font-weight: 800; background: #c9d6d4; color: #5a6b69; cursor: not-allowed; font-family: inherit; }
.mg-video { width: 100%; max-width: 520px; margin: 14px auto 0; text-align: center; } .mg-video h2 { margin: 0 0 8px; font-size: 21px; color: var(--pri, #0b7a85); }
.mg-vid, .mg-vid-ph { width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; background: #0f4c55; } .mg-vid-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #fff; font-size: 18px; } .mg-play { }
.mg-vid-ph .mg-tri { font-size: 48px; line-height: 1; }
.mg-banner { display: flex; gap: 10px; align-items: center; background: #fff1c2; border: 2px solid #ffb400; border-radius: 16px; padding: 10px 14px; margin-bottom: 10px; font-size: 16px; } .mg-banner button { border: 0; background: transparent; font-size: 20px; cursor: pointer; }
.am-magic { background: #fff1c2; border-color: #ffb400; } .am-mi { font-size: 40px; width: 60px; text-align: center; flex: none; }
:root { --pri: #3b2a85; --spd: 1; }
.mora-magic { background: #fff1c2; border-color: #ffb400; } .mora-mi { width: 60px; display: flex; justify-content: center; flex: none; }
.mg-giftic { display: flex; justify-content: center; }
.mg-en{display:none}
