/* Thabet Island (24 Nov 2026): cream, white and soft mint, like the v10 island. Bright and airy; no yellow notes. */
:root { --ink: #292164; --mint: #3fbf9b; --mint2: #e3f7f0; --cream: #fffaf0; --gold: #f3b91f; --lav: #efeafc; --red: #e2574c; --sea: #5fb4c9; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--sea); font-family: "Baloo Bhaijaan 2", system-ui, sans-serif; color: var(--ink); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
#cv { position: fixed; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
#cv.drag { cursor: grabbing; }

/* top bar */
#hud { position: fixed; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 6px; padding: calc(env(safe-area-inset-top) + 8px) 10px 6px; z-index: 5; pointer-events: none; }
#hud > * { pointer-events: auto; }
.hb { width: 40px; height: 40px; border-radius: 14px; border: 0; background: #fff; box-shadow: 0 3px 0 rgba(41,33,100,.15); display: grid; place-items: center; flex: none; }
.hb svg { width: 22px; height: 22px; }
.chip { display: flex; align-items: center; gap: 5px; background: rgba(255,255,255,.95); border-radius: 999px; padding: 3px 10px 3px 4px; box-shadow: 0 3px 0 rgba(41,33,100,.13); font-weight: 800; font-size: 16px; min-width: 0; }
.chip b { white-space: nowrap; }
.chip.up { animation: pop .35s; }
.chip.en { flex: 1; max-width: 340px; margin-inline-end: auto; }
.chip .bar { flex: 1; height: 12px; border-radius: 9px; background: #e6eef0; overflow: hidden; min-width: 40px; }
.chip .bar span { display: block; height: 100%; width: 100%; border-radius: 9px; background: linear-gradient(90deg, #44d1a8, #2fb38d); transition: width .4s; }
.chip.sm { font-size: 14px; padding: 2px 9px 2px 3px; }
#sub { position: fixed; top: calc(env(safe-area-inset-top) + 56px); right: 10px; display: flex; gap: 6px; z-index: 5; }
.bar2 { background: #f4efff; }
@keyframes pop { 50% { transform: scale(1.15); } }

/* icons (placeholders until the IS-G art lands) */
.ico { width: 26px; height: 26px; border-radius: 50%; flex: none; display: inline-block; position: relative; }
.ico.coin { background: radial-gradient(circle at 35% 30%, #fff3b0, #f5c02a 45%, #c98a0c); box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); }
.ico.coin::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); }
.ico.gem { border-radius: 6px; transform: rotate(45deg) scale(.78); background: linear-gradient(135deg, #b6f5e3, #34c39b 55%, #1d8f70); }
.ico.bolt { background: radial-gradient(circle at 40% 30%, #c9fbe9, #36c79e); }
.ico.bolt::after { content: ""; position: absolute; left: 9px; top: 4px; width: 9px; height: 18px; background: #fff; clip-path: polygon(60% 0, 0 58%, 45% 58%, 30% 100%, 100% 38%, 55% 38%); }
.ico.pop { background: radial-gradient(circle at 50% 30%, #ffe1c7 30%, #ffb27f 31%); }
.ico.moon { background: radial-gradient(circle at 65% 40%, transparent 42%, #b9a6f2 43%); }
.ico.box { border-radius: 8px; background: linear-gradient(#d9a66b, #b57a3e); }
.ico.scroll { border-radius: 6px; background: linear-gradient(#fff7e2, #f1dfb3); box-shadow: inset 0 0 0 2px #d9bf86; }
.ico.dome { border-radius: 50% 50% 4px 4px; background: linear-gradient(#ffffff, #d9efe9); box-shadow: inset 0 0 0 2px #9ad7c5; }

/* guided goal */
#quest { position: fixed; top: calc(env(safe-area-inset-top) + 56px); left: 10px; max-width: 62%; z-index: 5; border: 0; background: #fff; border-radius: 16px; padding: 6px 12px; font-weight: 800; font-size: 15px;
  box-shadow: 0 3px 0 rgba(41,33,100,.13); display: flex; gap: 8px; align-items: center; text-align: right; }
#quest .qdot { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); flex: none; animation: pulse 1.6s infinite; }
#quest.done { background: var(--mint2); }
@keyframes pulse { 50% { transform: scale(1.5); opacity: .6; } }

/* bottom dock */
#dock { position: fixed; bottom: calc(env(safe-area-inset-bottom) + 10px); left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
#dock button { border: 0; background: #fff; border-radius: 18px; padding: 6px 12px 4px; min-width: 76px; display: flex; flex-direction: column; align-items: center; gap: 1px;
  font-weight: 800; font-size: 14px; box-shadow: 0 4px 0 rgba(41,33,100,.15); position: relative; }
#dock button .ico { width: 30px; height: 30px; }
#dock em { position: absolute; top: -6px; left: -6px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--red); color: #fff; font-style: normal; font-size: 13px; display: grid; place-items: center; padding: 0 5px; }
#dock button:active, .hb:active, .btn:active { transform: translateY(2px); }

/* floating +coins, sparkles */
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 8; }
.plus { position: absolute; font-weight: 800; font-size: 20px; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.25); animation: rise 1s forwards; white-space: nowrap; }
.plus.gold { color: #ffe27a; }
@keyframes rise { to { transform: translateY(-50px); opacity: 0; } }
.spark { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #fff6b8; animation: fly .8s forwards; }
@keyframes fly { to { transform: translate(var(--x), var(--y)) scale(.2); opacity: 0; } }
.toast { position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 104px); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 14px; font-weight: 700; z-index: 30; animation: tin .25s; max-width: 86%; text-align: center; }
@keyframes tin { from { opacity: 0; transform: translate(-50%, 10px); } }

/* sheets (place panels) */
.sheet { position: fixed; inset: 0; z-index: 20; display: none; align-items: flex-end; justify-content: center; background: rgba(41,33,100,.25); }
.sheet.on { display: flex; }
.sheet .card { width: 100%; max-width: 520px; overflow: visible; background: var(--cream); border-radius: 26px 26px 0 0; padding: 18px 16px calc(env(safe-area-inset-bottom) + 18px); position: relative; animation: up .25s; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet h2 { margin: 0 0 8px; font-size: 22px; padding-left: 70px; }
.sheet .face { position: absolute; left: 14px; top: -54px; height: 110px; pointer-events: none; }
.sheet .face[src=""] { display: none; }
.x { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border-radius: 12px; border: 0; background: #fff; font-size: 24px; line-height: 1; box-shadow: 0 2px 0 rgba(41,33,100,.12); z-index: 2; }
.sheet h2 { padding-right: 44px; }
.sec { background: #fff; border-radius: 18px; padding: 10px 12px; margin: 10px 0; box-shadow: 0 2px 0 rgba(41,33,100,.06); }
.sec h3 { margin: 0 0 6px; font-size: 16px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.sp { justify-content: space-between; }
.btn { border: 0; border-radius: 14px; padding: 8px 14px; font-weight: 800; font-size: 15px; background: var(--mint); color: #fff; box-shadow: 0 3px 0 #2a9878; display: inline-flex; align-items: center; gap: 6px; }
.btn.gold { background: var(--gold); box-shadow: 0 3px 0 #c48f05; color: #4a3300; }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px #e4def5; }
.btn.lav { background: #8d76e0; box-shadow: 0 3px 0 #6a54c0; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn .ico { width: 20px; height: 20px; }
.big { width: 100%; justify-content: center; padding: 12px; font-size: 18px; }
.muted { color: #7b76a0; font-size: 14px; }
.lvl { display: inline-block; background: var(--mint2); color: #1d8f70; border-radius: 9px; padding: 0 8px; font-size: 14px; font-weight: 800; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.it { background: #fff; border-radius: 16px; padding: 8px 6px; text-align: center; box-shadow: inset 0 0 0 2px #f0ebdf; }
.it .gd { width: 40px; height: 40px; margin: 0 auto 2px; }
.it b { display: block; font-size: 15px; }
.it small { color: #7b76a0; display: block; }
.it .btn { padding: 4px 10px; font-size: 13px; margin-top: 4px; }
.gd { border-radius: 50%; display: block; }
.prays { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.pr { border-radius: 14px; padding: 6px 2px; text-align: center; font-weight: 800; font-size: 14px; background: #f3f1fa; color: #8b86ad; }
.pr small { display: block; font-weight: 600; font-size: 12px; }
.pr.open { background: var(--mint); color: #fff; }
.pr.done { background: var(--mint2); color: #1d8f70; }
.ord { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 16px; padding: 8px; margin: 8px 0; box-shadow: inset 0 0 0 2px #f0ebdf; }
.ord img { width: 46px; height: 56px; object-fit: contain; object-position: bottom; }
.ord .need { flex: 1; display: flex; gap: 6px; flex-wrap: wrap; }
.ord .need span { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; }
.ord .need span.no { color: var(--red); }
.ord .need .gd { width: 26px; height: 26px; }
.q { font-size: 19px; font-weight: 800; margin: 6px 0 10px; }
.qa { display: grid; gap: 8px; }
.qa .btn { justify-content: center; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px #e4def5, 0 3px 0 #e4def5; padding: 12px; }
.qa .btn.ok { background: var(--mint); color: #fff; box-shadow: 0 3px 0 #2a9878; }
.qa .btn.no { background: #fde3e0; }
.jarv { display: flex; gap: 14px; align-items: center; }
.jarv .glass { width: 70px; height: 92px; border-radius: 18px 18px 22px 22px; background: rgba(220,240,250,.7); box-shadow: inset 0 0 0 3px #bfe0ee; position: relative; overflow: hidden; flex: none; }
.jarv .jarimg { width: 104px; height: 104px; object-fit: contain; flex: none; filter: drop-shadow(0 6px 8px rgba(41,33,100,.18)); }
.num { direction: ltr; unicode-bidi: isolate; }
.jarv .glass span { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(#f6c75a, #b97a1e); }
.prog { height: 12px; border-radius: 8px; background: #efeadb; overflow: hidden; margin: 6px 0; }
.prog span { display: block; height: 100%; background: linear-gradient(90deg, #f6c75a, #e0a22a); }

/* story bubbles over the island */
.story { position: fixed; inset: 0; z-index: 25; display: none; background: linear-gradient(transparent 40%, rgba(41,33,100,.35)); cursor: pointer; }
.story.on { display: block; }
.story img { position: absolute; bottom: calc(env(safe-area-inset-bottom) + 120px); left: 8px; height: 230px; animation: hop .4s; }
.story .bub { position: absolute; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 18px); background: #fff; border-radius: 22px; padding: 12px 16px 10px; box-shadow: 0 6px 0 rgba(41,33,100,.15); animation: up .25s; }
.story .bub b { color: #1d8f70; font-size: 15px; }
.story .bub p { margin: 2px 0 4px; font-size: 20px; font-weight: 700; line-height: 1.5; }
.tapn { color: #a7a2c4; font-size: 13px; }
@keyframes hop { from { transform: translateY(30px); opacity: 0; } }

/* full-screen cards (prayer pause, rest, time's up) and the mini-games */
.full { position: fixed; inset: 0; z-index: 40; display: none; align-items: center; justify-content: center; background: rgba(41,33,100,.55); padding: 20px; }
.full.on { display: flex; }
.full .card { background: var(--cream); border-radius: 28px; padding: 20px; width: 100%; max-width: 420px; text-align: center; position: relative; padding-top: 120px; }
.full .face { position: absolute; top: -60px; left: 50%; transform: translateX(-50%); height: 170px; }
.full h2 { margin: 0 0 6px; font-size: 24px; }
.full p { margin: 0 0 14px; font-size: 17px; }
.full .count { font-size: 44px; font-weight: 800; color: #1d8f70; }
.full.game { background: #fff6e8; padding: 0; z-index: 45; }
#ifr { border: 0; width: 100%; height: 100%; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
#shB { max-height: 66vh; overflow: auto; margin: 0 -4px; padding: 0 4px; }
.gain { margin: 6px 0 0; padding: 0 18px 0 0; color: #1d8f70; font-weight: 700; font-size: 14px; }
.gain li { margin: 2px 0; }
.lvlc { min-width: 92px; } .lvlc b { background: #8d76e0; color: #fff; border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; font-size: 13px; }
.lvlc .bar { width: 54px; height: 9px; border-radius: 6px; background: #eee9fb; overflow: hidden; } .lvlc .bar span { display: block; height: 100%; background: #8d76e0; width: 0; }

/* Act 1: the grand masjid is built (27 Nov 2026) */
#act1 { background: radial-gradient(120% 75% at 50% 28%, #ffe3cf 0%, #e7b9d8 30%, #9c86dc 62%, #43397f 100%); z-index: 50; padding: 0; overflow: hidden; }
#act1 .a1 { position: relative; width: 100%; max-width: 460px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: calc(env(safe-area-inset-top) + 14px) 18px calc(env(safe-area-inset-bottom) + 18px); color: #fff; }
#act1 .rays { position: absolute; left: 50%; top: 32%; width: 1000px; height: 1000px; margin: -500px 0 0 -500px; pointer-events: none;
  background: repeating-conic-gradient(rgba(255,255,255,.17) 0 7deg, transparent 7deg 18deg); -webkit-mask: radial-gradient(circle, #000 12%, transparent 62%); mask: radial-gradient(circle, #000 12%, transparent 62%); animation: a1spin 60s linear infinite; }
#act1 .a1m { position: relative; width: min(86vw, 390px, 46vh); aspect-ratio: 1; filter: drop-shadow(0 18px 28px rgba(40,20,90,.45)); animation: a1in 1s cubic-bezier(.2,1.3,.4,1) both; }
#act1 h2 { position: relative; margin: 2px 0 0; font-size: 36px; text-shadow: 0 3px 0 rgba(70,40,130,.35); animation: a1up .6s .5s both; }
#act1 .a1s { position: relative; margin: 0 0 8px; font-size: 21px; font-weight: 800; animation: a1up .6s .65s both; }
#act1 .a1f { position: relative; display: flex; justify-content: center; align-items: flex-end; margin: 2px 0 4px; animation: a1up .6s .8s both; }
#act1 .a1f img { height: 74px; margin: 0 -6px; filter: drop-shadow(0 4px 6px rgba(40,20,90,.3)); }
#act1 .a1t { position: relative; margin: 0 0 12px; font-size: 17px; font-weight: 700; opacity: .95; animation: a1up .6s .95s both; }
#act1 .a1r { position: relative; display: flex; gap: 10px; justify-content: center; margin-bottom: 14px; animation: a1up .6s 1.1s both; }
#act1 .a1r span { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.95); color: var(--ink); border-radius: 999px; padding: 4px 14px 4px 6px; font-weight: 800; font-size: 19px; box-shadow: 0 3px 0 rgba(60,30,110,.25); }
#act1 .btn { position: relative; max-width: 320px; animation: a1up .6s 1.25s both; }
@keyframes a1spin { to { transform: rotate(360deg); } }
@keyframes a1in { from { transform: scale(.6) translateY(40px); opacity: 0; } }
@keyframes a1up { from { transform: translateY(16px); opacity: 0; } }
#act1 .a1r b { direction: ltr; unicode-bidi: isolate; }
img.gd { border-radius: 0; object-fit: contain; }

/* inside the masjid: the island prays together (27 Nov 2026) */
#prayIn { background: #e9f3ee; padding: 0; z-index: 48; }
#prayIn .pin { position: relative; height: 100%; width: 100%; overflow: hidden; }
#prayIn .pibox { position: absolute; top: 0; left: 50%; transform: translateX(-50%); height: calc(100% - 112px); aspect-ratio: 3 / 4; overflow: hidden; }
#prayIn .pib { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#prayIn .pir { position: absolute; height: auto; filter: drop-shadow(0 4px 4px rgba(40,60,50,.18)); }
#prayIn .prow { background-repeat: repeat-x; background-position: 0 100%; }
#prayIn .pir.in { animation: piIn .45s ease; }
#prayIn .pibar { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(env(safe-area-inset-bottom) + 12px); text-align: center; background: var(--cream); }
#prayIn .pibar b { display: block; font-size: 24px; color: #1d8f70; min-height: 36px; }
#prayIn .pibar small { display: block; color: #7b76a0; font-size: 14px; margin-bottom: 6px; }
#prayIn .x { top: calc(env(safe-area-inset-top) + 10px); }
@keyframes piIn { from { transform: translateY(3px); } }

/* daily story missions (28 Nov 2026) */
#dock .dmi { width: 30px; height: 30px; object-fit: cover; object-position: top; border-radius: 50%; background: #f3eee2; }
.ord.dm { width: 100%; border: 0; font: inherit; text-align: right; cursor: pointer; }
.ord.dm img { width: 50px; height: 50px; object-fit: cover; object-position: top; border-radius: 50%; background: #f3eee2; }
.ord.dm .dmt { flex: 1; display: flex; flex-direction: column; }
.ord.dm .dmt b { font-size: 15px; }
.ord.dm em { font-style: normal; font-weight: 800; min-width: 40px; text-align: center; }
.ord.dm.ok { box-shadow: inset 0 0 0 2px #9ad7c5; background: #f1fbf7; }
.ord.dm.ok em { color: #1d8f70; }
.sec.tale { display: flex; gap: 10px; align-items: center; background: #f6f1ff; box-shadow: inset 0 0 0 2px #ddd2f7; }
.sec.tale img { width: 64px; height: 64px; object-fit: cover; object-position: top; border-radius: 50%; background: #fff; }
.sec.tale > div { flex: 1; }
.sec.tale p { margin: 0 0 6px; font-weight: 800; }
.taleq { flex-direction: column; align-items: stretch; }
.taleq .btn { width: 100%; justify-content: center; }

/* level-up celebration: player level + building upgrades (28 Nov 2026) */
#lvup { background: radial-gradient(120% 80% at 50% 30%, #fffaf2 0%, #e4f6ee 34%, #a9e0cf 66%, #3f9d8a 100%); z-index: 52; padding: 0; overflow: hidden; }
#lvup[data-k="p"] { background: radial-gradient(120% 80% at 50% 30%, #fffaf2 0%, #efe9ff 34%, #bfb0f0 66%, #6a57c4 100%); }
#lvup .lu { position: relative; width: 100%; max-width: 460px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: calc(env(safe-area-inset-top) + 14px) 18px calc(env(safe-area-inset-bottom) + 18px); color: var(--ink); }
#lvup .rays { position: absolute; left: 50%; top: 30%; width: 1000px; height: 1000px; margin: -500px 0 0 -500px; pointer-events: none;
  background: repeating-conic-gradient(rgba(255,255,255,.5) 0 7deg, transparent 7deg 18deg); -webkit-mask: radial-gradient(circle, #000 10%, transparent 55%); mask: radial-gradient(circle, #000 10%, transparent 55%); animation: a1spin 50s linear infinite; }
#lvup .conf { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
#lvup .conf i { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 3px; opacity: .9; animation: luFall 3s linear both; }
#lvup .luHero { position: relative; width: min(74vw, 320px, 40vh); aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 4px; }
#lvup .star { width: 78%; aspect-ratio: 1; display: grid; place-items: center; filter: drop-shadow(0 10px 0 rgba(80,50,150,.22)) drop-shadow(0 18px 24px rgba(60,40,130,.3)); animation: a1in .9s cubic-bezier(.2,1.4,.4,1) both; }
#lvup .star::before { content: ""; grid-area: 1/1; width: 100%; height: 100%; background: radial-gradient(circle at 38% 28%, #fff6c8 0%, #ffd34d 32%, #f2a516 70%, #d9820a 100%);
  clip-path: polygon(50% 2%, 62.5% 34%, 97% 36%, 70% 58%, 79.5% 92%, 50% 73%, 20.5% 92%, 30% 58%, 3% 36%, 37.5% 34%); }
#lvup .star span { grid-area: 1/1; position: relative; top: 4%; font-size: clamp(52px, 17vw, 84px); font-weight: 800; color: #fff; text-shadow: 0 4px 0 #c97a08, 0 0 18px rgba(255,255,255,.5); direction: ltr; }
#lvup .luB { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 22px rgba(20,80,60,.35)); animation: a1in .9s cubic-bezier(.2,1.3,.4,1) both; }
#lvup .luFace { position: absolute; left: -6%; bottom: -4%; height: 52%; filter: drop-shadow(0 6px 8px rgba(40,30,90,.3)); animation: luHop .7s .45s cubic-bezier(.2,1.5,.4,1) both; }
#lvup h2 { position: relative; margin: 4px 0 0; font-size: 34px; color: #17735f; text-shadow: 0 3px 0 #fff, 0 0 16px rgba(255,255,255,.9); animation: a1up .5s .4s both; }
#lvup[data-k="p"] h2 { color: #5a43c2; }
#lvup .lus { position: relative; display: inline-block; margin: 6px 0 12px; background: #fff; border-radius: 999px; padding: 4px 18px; font-size: 20px; font-weight: 800; box-shadow: 0 4px 0 rgba(40,30,90,.14); animation: a1up .5s .55s both; }
#lvup .luList { position: relative; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 16px; max-width: 400px; }
#lvup .luList:empty { display: none; }
#lvup .it { width: 92px; background: #fff; border-radius: 20px; padding: 8px 6px 7px; box-shadow: 0 5px 0 rgba(40,30,90,.12); animation: luPop .45s cubic-bezier(.2,1.5,.4,1) both; }
#lvup .it .gd { width: 58px; height: 58px; display: block; margin: 0 auto 3px; }
#lvup .it b { display: block; font-size: 14px; line-height: 1.25; }
#lvup .chip { background: #fff; border-radius: 16px; padding: 7px 14px 7px 12px; font-weight: 800; font-size: 16px; box-shadow: 0 4px 0 rgba(20,80,60,.12); animation: luPop .45s cubic-bezier(.2,1.5,.4,1) both; }
#lvup .chip::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 8px; border-radius: 50%; background: #3fbf9b; color: #fff; font-size: 13px; vertical-align: 1px; }
#lvup .btn { position: relative; max-width: 300px; animation: a1up .5s .9s both; }
@keyframes luFall { from { transform: translateY(0) rotate(0); } to { transform: translateY(110vh) rotate(540deg); } }
@keyframes luHop { from { transform: translateY(40px) scale(.7); opacity: 0; } }
@keyframes luPop { from { transform: scale(.5); opacity: 0; } }
/* production buildings: pick what to make (29 Nov 2026) */
.it.mk { border: 0; font: inherit; color: inherit; cursor: pointer; }
.it.mk small span { display: inline-flex; align-items: center; gap: 1px; font-weight: 700; }
.it.mk small span .gd { width: 18px; height: 18px; margin: 0; display: inline-block; }
.it.mk small span.no { color: var(--red); }
.it.mk.locked, .it.mk:disabled { opacity: .55; filter: grayscale(.5); cursor: default; }
/* iPad + computer (29 Nov 2026): panels float in the middle as cards, bigger dock + bakery ovens; phones keep bottom sheets */
@media (min-width: 760px) and (min-height: 560px) {
  .sheet { align-items: center; padding: 70px 24px 24px; }
  .sheet .card { max-width: 580px; border-radius: 28px; padding: 20px 20px 22px; box-shadow: 0 18px 50px rgba(41,33,100,.25); }
  #shB { max-height: min(62vh, 620px); }
  #dock button { min-width: 92px; padding: 8px 16px 6px; font-size: 16px; }
  .items { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  body #rush .ovens { max-width: 660px; gap: 14px; }
  body #rush .ov { height: clamp(128px, 18vh, 176px); font-size: 17px; }
  body #rush .cust { max-width: 640px; }
}
@media (hover: hover) and (pointer: fine) { .btn:hover, #dock button:hover, .it.mk:not(:disabled):hover { filter: brightness(1.05); transform: translateY(-1px); } canvas { cursor: grab; } canvas.drag { cursor: grabbing; } }
/* «بيتنا» (29 Nov 2026, task I3): the room with its decorations, chores, the real-life tick */
.room { position: relative; width: 100%; aspect-ratio: 1; border-radius: 20px; background: #f3e6cf center 62%/cover no-repeat; overflow: hidden; margin: 0 0 10px; box-shadow: inset 0 0 0 3px #fff, 0 4px 0 rgba(41,33,100,.1); }
.room img { position: absolute; transform: translateX(-50%); filter: drop-shadow(0 6px 6px rgba(70,40,10,.25)); animation: luPop .45s cubic-bezier(.2,1.5,.4,1) both; }
.ord .cf { width: 46px; height: 46px; object-fit: contain; flex: none; }
.ord .tick { width: 40px; height: 40px; border-radius: 50%; background: #3fbf9b; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; flex: none; }
.ord.real { background: #f4f0ff; }
@media (min-width: 760px) and (min-height: 560px) { .room { max-width: 440px; margin: 0 auto 10px; } }
.ord .need b { width: 100%; }
/* harbour fishing game (29 Nov 2026, task I7) */
#fishG { background: linear-gradient(#bfe9f1, #5fb4c9 60%, #3f93ad); z-index: 40; }
#fishG .fg, #digG .fg, #stewG .fg { position: relative; width: 100%; max-width: 520px; padding: 24px 18px; text-align: center; color: #fff; }
#fishG .fgFace, #digG .fgFace, #stewG .fgFace { height: 130px; filter: drop-shadow(0 6px 8px rgba(20,60,80,.3)); }
#fishG h2, #digG h2, #stewG h2 { margin: 6px 0 4px; text-shadow: 0 2px 0 rgba(20,60,80,.35); }
#fishG .fgN, #digG .fgN, #stewG .fgN { margin: 0 0 18px; font-weight: 700; }
#fishG .fgBar { position: relative; height: 70px; border-radius: 35px; background: rgba(255,255,255,.35); box-shadow: inset 0 3px 8px rgba(20,60,80,.25); margin: 0 0 22px; overflow: hidden; }
#fishG .fgZone { position: absolute; top: 0; bottom: 0; background: rgba(63,191,155,.75); border-radius: 30px; }
#fishG .fgFish { position: absolute; top: 50%; width: 62px; transform: translate(-50%, -50%); filter: drop-shadow(0 3px 3px rgba(0,0,0,.25)); }
#fishG .btn, #digG .btn, #stewG .btn { display: block; width: 100%; max-width: 320px; margin: 10px auto 0; }
/* train steward game (task I8) */
#stewG { background: linear-gradient(#f6efe0, #e7dcc4); z-index: 40; }
#stewG .fg { color: var(--ink); }
#stewG .sgP { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 4px 0 10px; }
#stewG .sgWho { height: 120px; } #stewG .sgWant { background: #fff; border-radius: 50%; width: 86px; height: 86px; display: grid; place-items: center; box-shadow: 0 4px 0 rgba(41,33,100,.12); }
#stewG .sgWant .gd { width: 62px; height: 62px; }
#stewG .sgT { display: block; height: 12px; border-radius: 6px; background: #fff; overflow: hidden; margin: 0 auto 14px; max-width: 360px; } #stewG .sgT s { display: block; height: 100%; background: #3fbf9b; }
#stewG .sgBtns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 420px; margin: 0 auto; }
#stewG .sgBtns .it { border: 0; font: inherit; cursor: pointer; } #stewG .sgBtns .gd { width: 54px; height: 54px; }
/* dig game (task I9) + museum (I10) */
#digG { background: linear-gradient(#f7e9cf, #e9cf9e); z-index: 40; }
#digG .fg { color: var(--ink); } #digG h2, #stewG h2 { text-shadow: none; } #digG .fgFace, #stewG .fgFace { height: 110px; }
#digG .dgGrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 360px; margin: 0 auto 14px; }
#digG .dg { aspect-ratio: 1; border: 0; border-radius: 16px; background: radial-gradient(circle at 40% 35%, #d9a868, #a8743e); box-shadow: inset 0 -5px 0 rgba(80,45,10,.25); cursor: pointer; font-size: 26px; display: grid; place-items: center; color: #5b3a16; font-weight: 800; }
#digG .dg.open { background: #fff7e8; box-shadow: inset 0 0 0 3px #e9cf9e; }
#digG .dg .gd { width: 44px; height: 44px; }
.items.mus .it small { font-size: 12px; line-height: 1.4; }
/* fire drill (task I17) */
#fireG { background: linear-gradient(#fff1e4, #ffd9c2); z-index: 40; }
#fireG .fg { color: var(--ink); } #fireG h2 { text-shadow: none; } #fireG .fgFace { height: 110px; }
#fireG .frBox { position: relative; width: 100%; max-width: 380px; aspect-ratio: 1; margin: 0 auto 12px; }
#fireG .frHouse { width: 100%; height: 100%; object-fit: contain; }
#fireG .fl { position: absolute; border: 0; background: none; font-size: 40px; cursor: pointer; transform: translate(-50%, -50%); transition: transform .3s; padding: 6px; }
#fireG .fl.big { transform: translate(-50%, -50%) scale(1.5); }
/* learn the real thing (task I15) */
.lrn { display: grid; gap: 8px; margin: 0 0 10px; }
.lrn .lst { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 8px 10px; box-shadow: inset 0 0 0 2px #f0ebdf; }
.lrn .ln { width: 28px; height: 28px; border-radius: 50%; background: #3fbf9b; color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.lrn .gd { width: 40px; height: 40px; flex: none; } .lrn p { margin: 0; font-weight: 700; }
/* Quran circle (task I2) */
.qc .qcf { display: flex; flex-wrap: wrap; gap: 2px; align-items: flex-end; margin: 4px 0 6px; }
.qc .qcf img { height: 46px; } .qc .qcf b { font-family: "Baloo 2"; margin-inline-start: 6px; }
.qc .prog { height: 10px; border-radius: 6px; background: #ece6f8; overflow: hidden; margin: 6px 0; } .qc .prog span { display: block; height: 100%; background: #3fbf9b; }
