/* Layout: desert playground. Profiles → create character → walkable world map → section → game. Falcon guide speaks in a bubble. */
:root{
  --sky:#7cc6e8; --sky-deep:#3f9fcb; --sand:#f3d9a4; --sand-deep:#e2b86b;
  --falcon:#7a4a26; --ink:#3a2412; --palm:#3f8f4f; --sun:#ffc53d;
  --card:#fffaf0; --good:#3f8f4f; --bad:#d9534f;
  --display:"Baloo Bhaijaan 2", "Segoe UI", Tahoma, sans-serif;
  color-scheme: light;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family:var(--display); color:var(--ink);
  background:linear-gradient(var(--sky) 0 30%, var(--sand) 30% 100%) no-repeat var(--sand);
  padding-left:max(16px, env(safe-area-inset-left, 0px));
  padding-right:max(16px, env(safe-area-inset-right, 0px));
  padding-block:12px; overflow-x:hidden;
}
.app{max-width:560px; margin:0 auto; min-height:100%; display:flex; flex-direction:column; gap:12px}
header{display:flex; align-items:center; gap:6px; min-height:44px}
.brand{font-size:1.6rem; font-weight:800; color:#fff; text-shadow:0 2px 0 var(--sky-deep); margin-inline-end:auto}
.pill{font:inherit; border:0; background:var(--card); border-radius:999px; padding:4px 10px; font-weight:700; font-size:1rem; font-variant-numeric:tabular-nums; box-shadow:0 3px 0 var(--sand-deep); white-space:nowrap; display:flex; align-items:center; gap:4px; color:var(--ink)}
.who{cursor:pointer; margin-inline-end:auto; max-width:46%; overflow:hidden}
.who span{overflow:hidden; text-overflow:ellipsis}
.who svg{width:26px; height:34px; flex:none}
.qline .spk::before{content:"🔊"}
.choices button.saying{outline:4px solid var(--sun); outline-offset:2px}
.qline .spk{font:inherit; font-size:1.1rem; border:0; border-radius:999px; width:40px; height:40px; margin-inline-start:8px; vertical-align:middle; background:var(--sun); box-shadow:0 3px 0 #0002; cursor:pointer}
.roomrow.penrow{margin-top:10px; padding:8px 10px; border-radius:12px; background:#fff3cf} .roomrow.penrow.ok{background:#e4f4dc} .roomrow.sub{padding-inline-start:18px}
.goback{position:fixed; z-index:6; bottom:max(14px, env(safe-area-inset-bottom, 0px)); inset-inline-start:max(14px, env(safe-area-inset-right, 0px)); display:flex; align-items:center; gap:6px; font:inherit; font-weight:800; font-size:1.05rem; border:0; border-radius:999px; padding:12px 20px; background:var(--sun); color:#3a2412; box-shadow:0 4px 0 #0002, 0 6px 16px #0003; cursor:pointer}
.goback[hidden], body.w3full .goback{display:none}
body:not(.w3full) main{padding-bottom:78px}
.homebtn{font:inherit; font-size:1.25rem; border:0; border-radius:999px; width:42px; height:42px; background:var(--card); box-shadow:0 3px 0 var(--sand-deep); cursor:pointer; flex:none}
main{display:flex; flex-direction:column; gap:12px; min-width:0}
.guide{display:flex; align-items:flex-end; gap:10px}
.falcon{font-size:3.2rem; line-height:1; filter:drop-shadow(0 3px 0 #0002); transition:transform .3s}
.falcon.happy{transform:translateY(-10px) rotate(-8deg)}
.falcon.sad{transform:rotate(8deg)}
.falcon{line-height:0}
.falcon svg{width:68px; height:68px; display:block; overflow:visible}
.falcon .wing{transform-box:fill-box; transition:transform .35s}
.falcon .wL{transform-origin:80% 8%}
.falcon .wR{transform-origin:20% 8%}
.falcon.happy .wL{transform:rotate(34deg)}
.falcon.happy .wR{transform:rotate(-34deg)}
.falcon .head{transform-box:fill-box; transform-origin:50% 90%; transition:transform .35s}
.falcon.sad .head{transform:rotate(9deg) translateY(2px)}
.falcon .lid{transform-box:fill-box; transform-origin:50% 0; transform:scaleY(0); animation:blink 5s infinite}
.falcon.sad .lid{animation:none; transform:scaleY(.5)}
@keyframes blink{0%,93%,100%{transform:scaleY(0)}95%,97%{transform:scaleY(1)}}
.bubble{position:relative; background:var(--card); border-radius:18px; padding:10px 14px; font-size:1.12rem; font-weight:700; flex:1; min-width:0; box-shadow:0 3px 0 var(--sand-deep)}
.bubble::after{content:""; position:absolute; bottom:12px; right:-10px; border:8px solid transparent; border-left-color:var(--card)}
h3{margin:4px 0; font-size:1.2rem}
.cards{display:grid; gap:12px}
.card{font:inherit; border:0; border-radius:22px; padding:12px 16px; display:flex; align-items:center; gap:14px; cursor:pointer; text-align:start; transition:transform .1s; background:#fff; color:var(--ink); box-shadow:0 6px 0 var(--sand-deep)}
.card:active{transform:translateY(4px)}
.card .ic{font-size:2.4rem; line-height:1; background:var(--sand); border-radius:16px; width:58px; height:58px; display:grid; place-items:center; flex:none}
.card .nm{font-size:1.35rem; font-weight:800}
.card .sub{font-size:.9rem; opacity:.8; font-weight:500}
.card.hot{outline:3px solid var(--sun)}
.stage{background:var(--card); border-radius:28px; padding:16px; text-align:center; box-shadow:0 6px 0 var(--sand-deep); display:flex; flex-direction:column; align-items:center; gap:8px}
.pic{font-size:4.6rem; line-height:1.1}
.word{font-size:2.2rem; font-weight:800; letter-spacing:.02em}
.word .first{color:var(--sky-deep); border-bottom:4px dashed var(--sky-deep)}
.harf{font-size:5.5rem; font-weight:800; line-height:1.3; color:var(--sky-deep)}
.latin{font-family:"Arial Rounded MT Bold", "Trebuchet MS", Arial, sans-serif}
.situ{font-size:1.4rem; font-weight:800}
.small{font-size:.95rem; opacity:.75; font-weight:600}
.count-row{display:flex; flex-wrap:wrap; justify-content:center; gap:6px; font-size:2.3rem; max-width:100%}
.sum{display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px; font-size:2.1rem}
.sum b{font-size:2.5rem; color:#e07a2e}
.choices{display:grid; grid-template-columns:repeat(3,1fr); gap:12px}
.choices button{
  font:inherit; font-size:2.5rem; font-weight:800; min-height:92px; border:0; border-radius:22px;
  background:#fff; color:var(--falcon); box-shadow:0 6px 0 var(--sand-deep); cursor:pointer; transition:transform .1s;
}
.choices.txt{grid-template-columns:1fr}
.choices.txt button{font-size:1.35rem; min-height:64px; padding:8px 14px}
.choices.mid button{font-size:1.5rem}
.choices.two{grid-template-columns:1fr 1fr}
.choices.two button{font-size:1.8rem; min-height:140px; padding:10px; line-height:1.25}
.choices.colors button{min-height:104px; display:grid; place-items:center}
.dot{width:70px; height:70px; border-radius:50%; border:4px solid #0002; display:inline-block}
.choices button:active{transform:translateY(4px); box-shadow:0 2px 0 var(--sand-deep)}
.choices button.right{background:var(--good); color:#fff; box-shadow:0 6px 0 #2c6a39}
.choices button.right::after{content:" ✓"; font-weight:900}                 /* (a mark as well as a colour: not every eye tells red from green) */
.choices button.wrong::after{content:" ✗"; font-weight:900}
.falcon{cursor:pointer}                                                     /* pressed, it says again what it said last */
body.w3full .falcon{pointer-events:auto}
.pill.soon, #time.soon{animation:soon .6s ease-in-out 10; background:var(--sun)}
@keyframes soon{50%{transform:scale(1.18)}}
.card.rest:disabled{pointer-events:none; position:relative}
.card.rest:disabled .ic::after{content:"⏳"; position:absolute; inset-inline-start:6px; top:4px; font-size:1.5rem}
.choices button.wrong{background:var(--bad); color:#fff; box-shadow:0 6px 0 #a53b38; animation:shake .35s}
button{touch-action:manipulation}
button:focus-visible, input:focus-visible, select:focus-visible{outline:4px solid var(--sky-deep); outline-offset:3px}
.progress{height:12px; background:#ffffff88; border-radius:999px; overflow:hidden}
.progress span{display:block; height:100%; width:0; background:var(--palm); transition:width .4s}
.done{display:flex; flex-direction:column; align-items:center; gap:10px; text-align:center}
.done .big{font-size:4.2rem}
.wonrow{display:flex; justify-content:center; gap:6px; font-size:2.5rem; line-height:1; color:#dccfb0}
.wonrow .on{color:#f2b705; text-shadow:0 2px 0 #b88a00; animation:wonpop .5s both}
@keyframes wonpop{0%{transform:scale(0) rotate(-40deg)}70%{transform:scale(1.4)}100%{transform:scale(1)}}
.cheer{position:fixed; inset:0; z-index:60; display:grid; place-items:center; background:#0006; overflow:hidden; padding:16px}
.cheer i{position:absolute; top:-20px; width:10px; height:16px; border-radius:2px; animation:paper 2s linear infinite}
@keyframes paper{to{transform:translateY(110vh) rotate(540deg)}}
.cheerbox{position:relative; background:#fffdf5; border-radius:24px; padding:18px 16px; text-align:center; max-width:340px; width:100%; box-shadow:0 8px 0 #0003; animation:wonpop .45s both}
.cheerbox .big{font-size:4.4rem; line-height:1.1}
.cheerbox h2{margin:.2em 0 .6em}
.seal{width:64px; height:64px; opacity:.92; font-family:var(--display)}
.seal.pop{animation:sealpop .55s cubic-bezier(.2, 1.5, .4, 1) .25s both}
@keyframes sealpop{0%{transform:scale(3) rotate(-35deg); opacity:0}}
.alb .ic .seal{width:46px; height:46px; display:block}
@media (prefers-reduced-motion: reduce){ .wonrow .on, .cheerbox, .seal.pop{animation:none} }
.done h2{margin:0; font-size:1.7rem}
.done p{margin:0; font-size:1.1rem}
.row{display:flex; gap:10px; flex-wrap:wrap; justify-content:center}
.btn{font:inherit; font-weight:800; font-size:1.15rem; border:0; border-radius:18px; padding:11px 20px; background:var(--sun); color:var(--ink); box-shadow:0 5px 0 #d9a21c; cursor:pointer}
.btn.alt{background:#fff; box-shadow:0 5px 0 var(--sand-deep)}
.btn.danger{background:#fbe1e0; box-shadow:0 5px 0 #e8a6a3}
.btn:disabled{opacity:.5}
.link{font:inherit; border:0; background:none; color:#6b4a2a; text-decoration:underline; cursor:pointer; font-size:1rem}
.note{font-size:.82rem; text-align:center; color:#6b4a2a; margin:0}
/* flag */
.flag{display:inline-block; width:46px; height:28px; position:relative; border-radius:3px; box-shadow:0 0 0 2px #0002; background:linear-gradient(#00732f 0 33.33%, #fff 33.33% 66.66%, #000 66.66%)}
.flag::before{content:""; position:absolute; top:0; bottom:0; left:0; width:25%; background:#ff0000; border-radius:3px 0 0 3px}
.flag.big{width:150px; height:76px}
/* profiles & create */
.kids{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.kid{font:inherit; border:0; background:#fff; border-radius:22px; padding:10px; box-shadow:0 6px 0 var(--sand-deep); cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:2px; color:var(--ink)}
.kid svg{width:70px; height:91px}
.kid .nm{font-size:1.25rem; font-weight:800; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.kid.add{background:#ffffffaa; justify-content:center; font-size:1.2rem; font-weight:800; min-height:150px}
.kid.add b{font-size:2.6rem}
/* the first screen: six ready children to choose from, and (for the parents) a name to write if they wish */
.starters{display:grid; grid-template-columns:repeat(3, 1fr); gap:10px; width:100%}
.kid.starter{padding:8px 4px 4px; min-height:0}
.kid.starter svg{width:100%; max-width:92px; height:auto}
.nmrow{display:grid; gap:6px; justify-items:center; width:100%}
input.name.sm{font-size:1.2rem; padding:6px}
input.num.sm.nm{width:128px; font-size:1rem; direction:rtl}
input.name{font:inherit; font-size:1.8rem; font-weight:800; text-align:center; border:3px solid var(--sand-deep); border-radius:18px; padding:8px; width:100%; background:#fff; color:var(--ink)}
.avatar-lg svg{width:130px; height:169px}
.opts{display:flex; flex-wrap:wrap; gap:10px; justify-content:center}
.sw{width:46px; height:46px; border-radius:50%; border:3px solid #fff; box-shadow:0 3px 0 var(--sand-deep); cursor:pointer}
.sw[aria-pressed="true"], .chip[aria-pressed="true"]{outline:4px solid var(--sun); outline-offset:2px}
.chip{font:inherit; font-weight:700; font-size:1.02rem; border:0; border-radius:16px; padding:7px 13px; background:#fff; color:var(--ink); box-shadow:0 4px 0 var(--sand-deep); cursor:pointer}
.chip[aria-pressed="true"]{background:#fff3c4}
.chip.locked{opacity:.55}
/* world */
.season{background:#2b2350; color:#ffd76b; border-radius:16px; padding:6px 12px; text-align:center; font-weight:800}
.world{position:relative; width:100%; aspect-ratio:3/4; border-radius:28px; overflow:hidden; touch-action:none; user-select:none; -webkit-user-select:none;
  background:
    linear-gradient(90deg, transparent 45%, #e9c27f 45% 55%, transparent 55%),
    linear-gradient(transparent 46%, #e9c27f 46% 53%, transparent 53%),
    radial-gradient(circle at 15% 50%, #f9e6bd 0 10%, transparent 11%),
    radial-gradient(circle at 85% 72%, #f9e6bd 0 9%, transparent 10%),
    #f6dca6;
  box-shadow:inset 0 0 0 4px #ffffff88, 0 6px 0 var(--sand-deep)}
.deco{position:absolute; font-size:1.6rem; transform:translate(-50%,-50%); pointer-events:none; opacity:.9}
.bld{position:absolute; transform:translate(-50%,-50%); display:flex; flex-direction:column; align-items:center; border:0; background:none; font:inherit; cursor:pointer; padding:0; z-index:2; color:var(--ink)}
.bld .roof{font-size:2.3rem; width:64px; height:64px; border-radius:18px; background:#fff; box-shadow:0 5px 0 var(--sand-deep); display:grid; place-items:center}
.bld .lbl{margin-top:5px; background:#fff; padding:0 8px; border-radius:999px; font-size:.82rem; font-weight:800; white-space:nowrap; box-shadow:0 2px 0 #0001}
.bld.hot .roof{outline:3px solid var(--sun)}
#hero{position:absolute; width:52px; transform:translate(-50%,-88%); pointer-events:none; z-index:5}
#hero svg{width:52px; height:68px; display:block}
#hero.walk svg{animation:bob .3s infinite alternate}
.arm,.lg{transform-box:fill-box; transform-origin:50% 0}
#hero.walk .armL, #hero.walk .lgR{animation:sw .3s infinite alternate}
#hero.walk .armR, #hero.walk .lgL{animation:sw .3s infinite alternate-reverse}
.hname{position:absolute; bottom:100%; left:50%; transform:translateX(-50%); background:var(--sky-deep); color:#fff; font-size:.75rem; font-weight:800; padding:0 7px; border-radius:999px; white-space:nowrap}
.dpad{display:grid; grid-template-columns:repeat(3,58px); grid-template-rows:repeat(2,50px); gap:6px; justify-content:center; touch-action:none; user-select:none}
.dpad button{font:inherit; font-size:1.4rem; border:0; border-radius:16px; background:#fff; box-shadow:0 4px 0 var(--sand-deep); cursor:pointer; color:var(--ink)}
.dpad button:active{transform:translateY(3px)}
/* 3D world */
.world3d{position:relative; width:100%; height:58vh; height:min(130vw, 58vh, 700px); min-height:280px; border-radius:28px; overflow:hidden; touch-action:none; user-select:none; -webkit-user-select:none; background:#bfe4f6; box-shadow:0 6px 0 var(--sand-deep)}
.world3d, .world3d *{-webkit-touch-callout:none; -webkit-tap-highlight-color:transparent}
.world3d canvas{display:block; width:100%; height:100%; outline:0}
.modes{display:flex; gap:8px}
.modes button{flex:1; min-width:0; font:inherit; font-weight:800; font-size:1rem; border:0; border-radius:16px; padding:9px 6px; background:#ffffffb3; color:var(--ink); cursor:pointer; white-space:nowrap}
.modes button[aria-pressed="true"]{background:var(--sun); box-shadow:0 4px 0 #d9a21c}
.joy{position:absolute; left:14px; bottom:14px; width:116px; height:116px; border-radius:50%; background:#ffffff55; border:3px solid #ffffffcc; touch-action:none; z-index:3}
.knob{position:absolute; left:50%; top:50%; width:50px; height:50px; margin:-25px 0 0 -25px; border-radius:50%; background:#fff; box-shadow:0 3px 0 #0003}
.w3tr{position:absolute; top:10px; right:10px; background:#ffffffd9; border-radius:999px; padding:2px 10px; font-size:.95rem; font-weight:800; font-variant-numeric:tabular-nums; pointer-events:none; z-index:3}
.w3tr:empty{display:none}
.qm2d{color:#e0a100; font-family:var(--display); font-weight:800; font-size:1.9rem; text-shadow:0 2px 0 #fff, 0 -1px 0 #fff, 1px 0 0 #fff, -1px 0 0 #fff}
.w3qm{top:44px}
.w3fish{top:78px}
.w3quest{top:112px; pointer-events:auto; border:0; font:inherit; font-size:.95rem; font-weight:800; background:#ffe082; color:var(--ink); cursor:pointer; box-shadow:0 2px 0 #0002}
#stars{cursor:pointer}
.qline{background:var(--card); border-radius:18px; padding:10px 14px; text-align:center; font-weight:800; font-size:1.3rem; line-height:1.5; box-shadow:0 4px 0 var(--sand-deep)}
.tbanner{background:var(--sun); border-radius:16px; padding:8px 12px; text-align:center; font-weight:800; font-size:1.1rem; box-shadow:0 4px 0 #d9a21c}
.chest2d, .qm2d{position:absolute; transform:translate(-50%,-50%); font-size:1.7rem; line-height:1; pointer-events:none; z-index:3; animation:chest .6s infinite alternate}
@keyframes chest{to{transform:translate(-50%,-64%)}}
.w3hint{position:absolute; bottom:140px; left:50%; transform:translateX(-50%); background:#ffffffcc; border-radius:999px; padding:2px 12px; font-size:.82rem; font-weight:700; pointer-events:none; white-space:nowrap; z-index:3}
.w3btns{position:absolute; right:12px; bottom:14px; display:flex; flex-direction:column; gap:10px; z-index:3}
.w3b{font:inherit; font-size:1.7rem; line-height:1; width:60px; height:60px; border-radius:50%; border:3px solid #ffffffcc; background:#ffffffd9; box-shadow:0 3px 0 #0003; cursor:pointer; display:grid; place-items:center; padding:0; color:var(--ink)}
.w3b:active{transform:translateY(2px)}
.w3b[aria-pressed="true"]{background:var(--sun); border-color:#fff}
.w3b.off{opacity:.6}
.w3b span{font-size:1.45rem; line-height:1.05}
.w3b small{font-size:.62rem; font-weight:800; line-height:1.1}
.tryon{position:sticky; top:6px; z-index:6}
.w3map{position:absolute; top:10px; left:10px; width:108px !important; height:100px !important; border-radius:12px; border:2px solid #ffffffcc; box-shadow:0 2px 0 #0002; cursor:pointer; z-index:3}
/* the shops and the house */
.shopgrid{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.it{background:#fff; border-radius:18px; padding:10px 8px; box-shadow:0 5px 0 var(--sand-deep); display:flex; flex-direction:column; align-items:center; gap:4px; text-align:center; min-width:0}
.it.wide{flex-direction:row; text-align:start; gap:10px; padding:10px 12px}
.it.wide .nm{flex:1; min-width:0}
.it.wide .buy{width:auto; flex:none}
.it.own{outline:3px solid var(--good); outline-offset:-3px}
.it .ic{font-size:2.3rem; line-height:1.15}
.it .nm{font-weight:800; font-size:1.02rem; line-height:1.25}
.it .have{font-weight:800; color:var(--good); padding:7px 0}
.buy{font:inherit; font-weight:800; font-size:.98rem; border:0; border-radius:14px; padding:7px 8px; width:100%; background:var(--sun); color:var(--ink); box-shadow:0 4px 0 #d9a21c; cursor:pointer}
.buy.no{background:#eee6d6; box-shadow:0 4px 0 #d6cbb4; color:#8a7a62}
.buy.on{background:#dff0df; box-shadow:0 4px 0 #b9d9b9; color:#2c6a39}
.carsvg{width:104px; max-width:100%; height:50px}
.swp{display:flex; flex-direction:column; align-items:center; gap:2px}
.swp small{font-size:.78rem; font-weight:800}
.roomrow{display:flex; justify-content:space-between; gap:10px; width:100%; border-bottom:1px dashed var(--sand-deep); padding:5px 0; font-size:1.05rem}
.roomrow span{font-size:1.3rem}
.it .opts{gap:6px}
.it .sw{width:38px; height:38px; border-width:2px}
.it .swp small{font-size:.68rem}
.it .small{font-size:.8rem}
.stage .avatar-lg svg{width:104px; height:135px}
/* trace */
canvas.trace{background:#fff; border-radius:20px; touch-action:none; box-shadow:inset 0 0 0 3px var(--sand)}
/* parents */
.pin{font-size:2.2rem; letter-spacing:.35em; font-weight:800; direction:ltr}
.pad{display:grid; grid-template-columns:repeat(3,72px); gap:10px; justify-content:center; direction:ltr}
.pad button{font:inherit; font-size:1.6rem; font-weight:800; height:58px; border:0; border-radius:16px; background:#fff; box-shadow:0 4px 0 var(--sand-deep); cursor:pointer; color:var(--ink)}
.kcard{background:var(--card); border-radius:22px; padding:14px; box-shadow:0 6px 0 var(--sand-deep); display:flex; flex-direction:column; gap:8px}
.khead{display:flex; align-items:center; gap:10px}
.khead svg{width:46px; height:60px}
.khead .nm{font-size:1.3rem; font-weight:800}
.srow{display:flex; justify-content:space-between; gap:8px; border-bottom:1px dashed var(--sand-deep); padding:3px 0; font-size:.98rem}
.srow b{font-variant-numeric:tabular-nums; white-space:nowrap}
.tip{background:#fff3c4; border-radius:12px; padding:6px 10px; font-weight:700}
select{font:inherit; font-size:1rem; padding:3px 8px; border-radius:10px; border:2px solid var(--sand-deep); background:#fff; color:var(--ink)}
input.num.sm{font-size:1.05rem; width:108px; padding:2px; border-width:2px}
.btn.sm{font-size:.95rem; padding:5px 12px; border-radius:12px; box-shadow:0 3px 0 var(--sand-deep)}
input.num{font:inherit; font-size:1.6rem; width:120px; text-align:center; border:3px solid var(--sand-deep); border-radius:14px; padding:4px; direction:ltr}
[hidden]{display:none!important}
@keyframes shake{25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
@keyframes bob{to{transform:translateY(-3px)}}
@keyframes sw{from{transform:rotate(-16deg)}to{transform:rotate(16deg)}}
@media (prefers-reduced-motion:reduce){*{animation:none!important; transition:none!important}}
@media (max-width:380px){.choices button{font-size:2.1rem; min-height:82px}.pic{font-size:4rem}.harf{font-size:4.6rem}.bld .roof{width:56px;height:56px;font-size:2rem}.bld .lbl{font-size:.74rem}}
/* over the page (and see-through) while a part of the game is on its way: stray taps do not land on the screen behind */
.hold{position:fixed; top:0; right:0; bottom:0; left:0; z-index:9}
/* while a place is coming in: a falcon flying in place and a bar that fills */
.loadbox{position:absolute; left:50%; top:46%; transform:translate(-50%, -50%); background:#fffdf5f5; border-radius:22px; padding:14px 22px 16px; box-shadow:0 6px 0 var(--sand-deep); display:grid; gap:8px; justify-items:center; min-width:210px; font-weight:800}
.lbird{font-size:2.8rem; line-height:1.1; animation:lfly .9s ease-in-out infinite alternate}
@keyframes lfly{from{transform:translateY(5px) rotate(-7deg)} to{transform:translateY(-8px) rotate(7deg)}}
.lbar{width:180px; height:12px; border-radius:999px; background:#0000001a; overflow:hidden}
.lbar i{display:block; height:100%; width:6%; border-radius:999px; background:var(--sun); transition:width .25s}
@media (prefers-reduced-motion: reduce){ .lbird{animation:none} .lbar i{transition:none} }
/* the majlis stage of the السنع section (js/games/majlis.js): one drawing, with the people in it moved about by their transforms */
.sico{width:1.25em; height:1.25em; display:block; margin:0 auto}
.stage.mjbox{padding:8px 8px 6px; gap:2px}
.mj{position:relative; width:100%; border-radius:20px; overflow:hidden; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none}
.mj svg{display:block; width:100%; height:auto}
.mj text{font-family:var(--display); font-weight:800; fill:var(--ink)}
.mj-a{transition:transform .82s ease-in-out}
.mj-b{transition:transform .4s ease}
.mj-a.sit .mj-b{transform:translateY(var(--sit))}
.mj-a .lg{transition:opacity .2s}
.mj-a.sit .lg{opacity:0}
.mj-lap{opacity:0; transition:opacity .25s}
.mj-a.sit .mj-lap{opacity:1}
.mj-a.walk .mj-b{animation:bob .3s infinite alternate}
.mj-a.walk .lgL, .mj-a.walk .armR{animation:sw .3s infinite alternate}
.mj-a.walk .lgR, .mj-a.walk .armL{animation:sw .3s infinite alternate-reverse}
.mj-mv{transition:transform .7s ease}
.mj-cup{transform-box:fill-box; transform-origin:50% 100%}
.mj-cup.shake{animation:mjshake .16s infinite alternate}
#mj-fx path{transform-box:fill-box; transform-origin:50% 50%}
#mj-fx.pop path{animation:mjpop 1.3s ease-out both}
.mj-hot{position:absolute; transform:translate(-50%,-50%); border:3px dashed #ffffff; border-radius:50%; background:#ffc53d59; cursor:pointer; padding:0; animation:mjring 1s infinite alternate}
.mj-hot.soft{border-color:#ffffff99; background:#ffffff33; animation:none}
.mj-hot.no{border-color:var(--bad); background:#d9534f66; animation:mjno .35s}
.mj-hot.yes{border:3px solid var(--good); background:#3f8f4f66; animation:none}
.mj-say{position:absolute; transform:translate(-50%,-100%); background:#fff; border-radius:14px; padding:2px 10px; font-weight:800; font-size:.95rem; line-height:1.5; box-shadow:0 2px 0 #0002; white-space:nowrap; pointer-events:none; z-index:3}
.mj-say::after{content:""; position:absolute; left:50%; top:100%; margin-left:-6px; border:6px solid transparent; border-top-color:#fff}
.choices.mjc{min-height:64px}
.choices.txt.mjc button{min-height:58px; font-size:1.28rem}
.choices.txt .mjpour{min-height:84px; font-size:1.5rem; background:var(--sun); color:var(--ink); box-shadow:0 6px 0 #d9a21c; touch-action:none; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none}
.askmap{position:relative; width:min(100%, 300px); aspect-ratio:216/200; background-size:100% 100%; border-radius:18px; box-shadow:0 0 0 3px #ffffffcc}
.askpin{position:absolute; transform:translate(-50%,-50%); width:40px; height:40px; padding:0; border:2px solid #fff; border-radius:50%; background:#ffffffe6; font-size:.95rem; line-height:1; cursor:pointer; box-shadow:0 2px 0 #0003}
.grow{background:linear-gradient(#fff9dc, #ffe9a8); border:4px solid var(--sun); border-radius:24px; padding:14px 12px; box-shadow:0 7px 0 #d9a21c; display:grid; gap:10px; text-align:center; margin:6px 0 12px}
.grow-h{font-weight:800; font-size:1.5rem}
.grow-b{display:flex; align-items:center; justify-content:center; gap:12px; text-align:start}
.grow-b .ic{font-size:3rem; line-height:1}
.grow-b b{display:block; font-size:1.3rem}
.grow .buy{font-size:1.25rem; padding:13px 10px; background:#3f8f4f; color:#fff; box-shadow:0 5px 0 #2c6a39}
.card.hot{background:#fff3c4; outline:4px solid var(--sun)}
.ladder{display:grid; gap:6px; margin:10px 0}
.ladder .roomrow.now{outline:3px solid var(--sun)}
.ladder .roomrow span{font-size:.95rem; text-align:left}
.emfort{width:min(230px, 70%); height:auto}
.stamps{display:grid; grid-template-columns:repeat(2, 1fr); gap:10px; width:100%}
.stampc{font:inherit; border:3px dashed var(--sand-deep); border-radius:18px; background:#fff; color:var(--ink); padding:10px 6px; display:grid; gap:2px; justify-items:center; cursor:pointer}
.stampc .ic{font-size:1.9rem; line-height:1.1}
.stampc b{font-size:1.15rem}
.stampc .mark{font-size:.85rem; font-weight:700; opacity:.6}
.stampc.got{border:3px solid #3f8f4f; background:#eaf6e6}
.stampc.got .mark{color:#2c6a39; opacity:1}
.stampc:last-child{grid-column:1 / -1}
.rulers{display:grid; gap:8px; width:100%; text-align:start}
.ruler{background:#fff; border-radius:14px; padding:8px 12px; display:grid; gap:2px; box-shadow:0 3px 0 var(--sand-deep)}
.ruler b{font-size:1.08rem; line-height:1.5}
.ruler span{font-size:.92rem; font-weight:600; opacity:.8}
.ruler.now{background:#fff3c4; outline:3px solid var(--sun)}
.ruler.heir{background:#eaf6e6}
.track{display:grid; gap:8px; width:100%}
.lane{position:relative; height:46px; border-radius:14px; background:linear-gradient(90deg, #f5dfae, #ecca8a); box-shadow:inset 0 -3px 0 #0001; border-inline-end:6px double #fff}
.lane.me{outline:3px solid var(--sun)}
.lane .rn{position:absolute; top:2px; inset-inline-start:8px; font-size:.78rem; font-weight:800; opacity:.7; z-index:1}
.lane .rc{position:absolute; bottom:0; inset-inline-start:0; font-size:1.9rem; line-height:1.15; transition:inset-inline-start .08s linear}
.track.slim{gap:5px} .track.slim .lane{height:34px} .track.slim .lane .rc{font-size:1.4rem} .track.slim .lane .rn{font-size:.72rem; inset-inline-start:auto; inset-inline-end:12px; top:9px}
.tugteams{display:flex; justify-content:space-between; gap:8px; width:100%; font-size:.95rem} .tugteams .me{color:#1f7a8c}
.tug{position:relative; width:100%; height:66px; border-radius:14px; background:linear-gradient(#c4e6ae, #a9d68f); overflow:hidden}
.tug .rope{position:absolute; left:3%; right:3%; top:50%; height:6px; margin-top:-3px; border-radius:3px; background:repeating-linear-gradient(90deg, #b5843f 0 8px, #8a5f2a 8px 12px)}
.tug .tline{position:absolute; top:6px; bottom:6px; width:4px; margin-inline-start:-2px; border-radius:2px; background:#fff}
.tug .tline.a{inset-inline-start:10%} .tug .tline.b{inset-inline-start:90%}
.tug .knot{position:absolute; top:50%; inset-inline-start:50%; transform:translate(50%, -50%); font-size:1.8rem; line-height:1; transition:inset-inline-start .06s linear}
.dshow{width:70%; max-width:260px; margin:auto} .dshow svg{width:100%; height:auto}
.dtrack .lane{height:40px} .lane .dcar{bottom:2px; line-height:0} .dcar svg{width:56px; height:auto; transform:scaleX(-1)} .dmini svg{width:46px; height:auto; vertical-align:middle}
.dlights{display:flex; gap:10px; justify-content:center; direction:ltr; padding:7px 14px; border-radius:16px; background:#22262b; width:max-content; margin:8px auto}
.dlights i{width:26px; height:26px; border-radius:50%; background:#4a4f55} .dlights i.red{background:#e63946; box-shadow:0 0 10px #e63946} .dlights i.green{background:#3fbf5f; box-shadow:0 0 12px #3fbf5f} .dlights.early{outline:3px solid #e63946}
.dbar{position:relative; width:100%; height:30px; border-radius:15px; background:linear-gradient(90deg, #e9a23b, #f4d35e 35%, #f4d35e 65%, #e9a23b); overflow:hidden}
.dbar .dzone{position:absolute; top:0; bottom:0; left:39%; width:22%; background:#3fbf5f}
.dbar .dneedle{position:absolute; top:0; bottom:0; width:6px; margin-inline-start:-3px; border-radius:3px; background:#22262b; inset-inline-start:50%}
.dbar.hit{box-shadow:0 0 0 4px #3fbf5f} .dbar.near{box-shadow:0 0 0 4px #f4d35e} .dbar.miss{box-shadow:0 0 0 4px #e63946}
.count{font-size:2.2rem; font-weight:800; min-height:1.3em}
.runbtn{font-size:1.5rem; padding:18px 30px; min-width:70%; touch-action:manipulation; user-select:none; -webkit-user-select:none}
.runbtn:disabled{opacity:.5}
.runbtn:active{transform:translateY(3px)}
.card:disabled{opacity:.55}
.ranks{display:grid; gap:4px; width:100%}
.ranks .roomrow.now{outline:3px solid var(--sun); border-radius:8px; padding-inline:6px}
.sky{position:relative; width:100%; height:190px; border-radius:18px; overflow:hidden; background:linear-gradient(#9fd3f2, #dff1fb 70%, #f5dfae 70%)}
.sky .ring{position:absolute; left:50%; top:52%; width:64px; height:64px; margin:-32px 0 0 -32px; border-radius:50%; border:5px dashed #fff; box-sizing:border-box}
.sky .lure{position:absolute; top:52%; left:50%; font-size:1.9rem; line-height:1; transform:translate(-50%,-50%)}
.sky .hawk{position:absolute; top:10%; left:50%; font-size:2.3rem; line-height:1; transform:translate(-50%,-50%); transition:top .25s ease-in, left .25s ease-in}
.sky.hit .hawk, .sky.miss .hawk{top:52%}
.sky.hit .ring{border-color:var(--good); background:#3f8f4f33}
.sky.miss .ring{border-color:var(--bad); background:#d9534f33}
.chip.on{outline:3px solid var(--sun)}
.beds{display:grid; grid-template-columns:repeat(2, 1fr); gap:8px; width:100%; margin-top:10px}
.bedc{font:inherit; border:3px solid #a9743f; border-radius:14px; background:#f3e3bf; color:var(--ink); padding:8px 4px; display:grid; gap:1px; justify-items:center; cursor:pointer}
.bedc .ic{font-size:1.7rem; line-height:1.1}
.bedc:disabled{opacity:.6}
.bedc.sure{background:#fff3c4; border-color:var(--sun)}
.w3buyrow{position:absolute; top:10px; left:50%; transform:translateX(-50%); display:flex; gap:6px; z-index:4; max-width:92%}
.w3buy{font:inherit; font-weight:800; font-size:1.08rem; border:0; border-radius:16px; padding:11px 15px; background:#fff; color:var(--ink); box-shadow:0 4px 0 var(--sand-deep); cursor:pointer; white-space:nowrap}
.w3buy.sure{background:var(--good); color:#fff; box-shadow:0 4px 0 #2c6a39}
.w3buy.short{background:#ffb74d; color:var(--ink); box-shadow:0 4px 0 #c77f1a}
.w3buy.x{font-size:.9rem; padding:8px 10px; background:#ffffffd9}
.hgrid{display:grid; grid-template-columns:repeat(2, 1fr); gap:10px}
.htile{font:inherit; border:0; border-radius:20px; background:#fff; color:var(--ink); padding:12px 6px; display:grid; gap:2px; justify-items:center; text-align:center; box-shadow:0 5px 0 var(--sand-deep); cursor:pointer}
.htile .ic{font-size:2.3rem; line-height:1.15}
.htile b{font-size:1.12rem}
.htile.hot{grid-column:1 / -1; background:linear-gradient(#fff9dc, #ffe9a8); outline:4px solid var(--sun)}
.htile.full{background:#eaf6e6}
.htile:disabled{opacity:.55}
.htile:active{transform:translateY(3px)}
#w3day{top:146px}
.w3go{background:#bfe8c8}
.w3gift{top:180px; background:#ffd6e0}
.w3sing{top:214px; pointer-events:auto; border:0; font:inherit; font-size:.95rem; font-weight:800; background:#e3f1ff; color:var(--ink); cursor:pointer; box-shadow:0 2px 0 #0002}      /* the chant at the seven houses: on or off */
.dayrow{display:flex; align-items:center; gap:12px; background:#fff; border-radius:20px; padding:12px 14px; box-shadow:0 5px 0 var(--sand-deep)}
.dayrow .ic{font-size:2.3rem; line-height:1; background:var(--sand); border-radius:16px; width:58px; height:58px; display:grid; place-items:center; flex:none}
.dayrow .dt{flex:1; min-width:0; display:grid; gap:2px}
.dayrow b{font-size:1.15rem; line-height:1.4}
.dayrow.ok{background:#eaf6e6}
.howline{font-size:.95rem; line-height:1.6}
button.named{outline:4px solid var(--sun); outline-offset:2px}      /* the button whose name is being said (a long press) */
.dayrow.ok .small{color:#2c6a39; opacity:1}
.dayrow.gift{background:#fff3c4}
.w3harv{position:absolute; left:50%; bottom:22px; transform:translateX(-50%); z-index:4; font:inherit; font-weight:800; font-size:1.3rem; border:0; border-radius:18px; padding:13px 26px; background:var(--good); color:#fff; box-shadow:0 5px 0 #2c6a39; cursor:pointer}
.orders{display:grid; gap:10px; width:100%}
.order{background:#fff; border-radius:16px; padding:10px 12px; display:grid; gap:4px; text-align:start; box-shadow:0 3px 0 var(--sand-deep)}
.order.ok{background:#eaf6e6}
.order .want{font-size:1.5rem; line-height:1.5}
.order .row{justify-content:space-between; align-items:center}
.joy.float{background:#ffffff40; border-color:#ffffffe6; pointer-events:none}
.w3jump{position:absolute; left:140px; bottom:18px; z-index:3}
/* the 3D city and the 3D house fill the screen; the header, the falcon's words and the buttons lie over the picture */
body.w3full{overflow:hidden}
body.w3full .world3d{position:fixed; inset:0; width:auto; height:auto; min-height:0; border-radius:0; box-shadow:none; z-index:5}
body.w3full header{position:fixed; top:max(8px, env(safe-area-inset-top, 0px)); left:max(10px, env(safe-area-inset-left, 0px)); right:max(10px, env(safe-area-inset-right, 0px)); z-index:7; pointer-events:none}
body.w3full header > *{pointer-events:auto}
body.w3full .guide{position:fixed; top:calc(max(8px, env(safe-area-inset-top, 0px)) + 50px); left:max(10px, env(safe-area-inset-left, 0px)); right:max(10px, env(safe-area-inset-right, 0px)); z-index:6; pointer-events:none; align-items:flex-start; gap:6px}
body.w3full .falcon svg{width:46px; height:46px}
body.w3full .bubble{font-size:.95rem; line-height:1.45; padding:6px 12px; background:#fffdf5eb; max-height:4.6em; overflow:hidden}
body.w3full .bubble.more{max-height:7.6em}
body.w3full .bubble::after{bottom:auto; top:12px}
body.w3full .modes{position:fixed; left:50%; bottom:max(8px, env(safe-area-inset-bottom, 0px)); transform:translateX(-50%); z-index:6; gap:5px}
body.w3full .modes button{font-size:.78rem; padding:6px 9px; flex:none; white-space:nowrap; background:#ffffffcc}
body.w3full .note, body.w3full .season{display:none}
body.w3full .w3map{top:150px}
body.w3full .w3tr{top:150px}
body.w3full .w3qm{top:184px}
body.w3full #w3tr, body.w3full #w3qm{display:none}            /* (the two counts are on the page of the day's tasks) */
body.w3full .w3quest{top:150px; font-size:1.1rem; padding:7px 14px}
body.w3full #w3day{top:200px; font-size:.95rem; padding:3px 12px}
body.w3full .w3gift{top:236px}
body.w3full .w3fish{top:274px}
body.w3full .w3sing{top:274px; font-size:1.05rem; padding:6px 14px}
body.w3full .w3buyrow{top:150px}
body.w3full .joy{left:max(16px, env(safe-area-inset-left, 0px)); bottom:max(58px, calc(env(safe-area-inset-bottom, 0px) + 50px))}
body.w3full .joy.float{bottom:auto}
body.w3full .w3btns{right:max(12px, env(safe-area-inset-right, 0px)); bottom:max(58px, calc(env(safe-area-inset-bottom, 0px) + 50px))}
body.w3full .w3jump{left:150px; bottom:max(62px, calc(env(safe-area-inset-bottom, 0px) + 54px))}
body.w3full .w3harv{bottom:190px}
body.w3full .w3hint{bottom:200px}
.starfly{position:fixed; z-index:60; width:2.8rem; height:2.8rem; margin:-1.4rem 0 0 -1.4rem; font-size:2.5rem; line-height:2.8rem; text-align:center; pointer-events:none; filter:drop-shadow(0 2px 5px rgba(0, 0, 0, .45)); animation:starin .32s cubic-bezier(.2, 1.7, .4, 1) both; will-change:transform}
.starfly.go{animation:none; transition:transform .6s cubic-bezier(.55, 0, .3, 1)}
@keyframes starin{from{transform:scale(0) rotate(-120deg)} to{transform:scale(1) rotate(0)}}
#stars.pop{animation:starpop .35s}
@keyframes starpop{0%{transform:scale(1)} 40%{transform:scale(1.4)} 100%{transform:scale(1)}}
.tip.good{background:#eaf6e6}
/* the parents' page for paying: the child's week, three plans and three packs (the middle one marked), their controls */
.payh{margin:12px 0 0; font-size:1.12rem; font-weight:800; text-align:start; align-self:stretch}
.stage.rep{align-items:stretch; text-align:start; gap:4px}
.stage.rep .payh{margin-top:0}
.payline{margin:0; font-weight:700; line-height:1.6}
.plans{display:grid; gap:14px; margin:10px 0 6px}
.plan{position:relative; display:flex; align-items:center; justify-content:space-between; gap:10px; background:#fff; border:3px solid transparent; border-radius:18px; padding:12px 12px 10px; box-shadow:0 5px 0 var(--sand-deep)}
.plan.pick{border-color:var(--sun); background:#fffbe6}
.plan .tag{position:absolute; top:-12px; inset-inline-start:14px; background:var(--sun); color:var(--ink); border-radius:999px; padding:1px 12px; font-size:.82rem; font-weight:800}
.plan .tag.alt{background:#dff0df; color:#2c6a39}
.plan .pn{display:grid; gap:1px; min-width:0; text-align:start}
.plan .pn b{font-size:1.08rem}
.plan .pn span{font-size:.9rem; opacity:.85}
.plan .buy{width:auto; flex:none; padding:9px 12px; min-height:44px}
.paylist{list-style:none; padding:0; margin:2px 0 4px; display:grid; gap:2px; font-weight:700; text-align:start}
.srow.bill{font-size:.92rem}
.gq{margin:0; font-weight:800; font-size:1.1rem}
.gq.sum{font-size:1.7rem}
/* (its colours: a place for grown-ups, calm and apart from the child's warm pages. Blue where trust is asked, one green
   button for the one thing to do, gold only for the stars, no red. The reasons are in تقييم_الأسعار.md, part ٩.) */
.paypage{--pb:#1d4e89; --pl:#2f6fb5; --pe:#d5e3f3; --pg:#1e874b; background:#f3f8fd; color:#1c2b3a; border-radius:24px; padding:14px 8px 16px; display:grid; gap:10px}
.paypage .payh{color:var(--pb)}
.paypage .tbanner{background:#fff; color:var(--pb); box-shadow:0 4px 0 var(--pe)}
.paypage .dayrow, .paypage .plan, .paypage .stage, .paypage .kcard{background:#fff; box-shadow:0 4px 0 var(--pe)}
.paypage .dayrow .ic{background:#eaf2fb}
.paypage .plans{margin:4px 0 2px}
.paypage .plan.pick{border-color:var(--pl); background:#eef5fd}
.paypage .plan .tag{background:var(--pb); color:#fff}
.paypage .plan .tag.alt{background:#dff0e6; color:#1e6b3f}
.paypage .buy{background:#fff; color:var(--pb); box-shadow:inset 0 0 0 2px var(--pl), 0 3px 0 #c9daee}
.paypage .buy.go, .btn.go{background:var(--pg, #1e874b); color:#fff; box-shadow:0 4px 0 #14613a}
.paypage .plan:not(.pick) .buy.go{background:#fff; color:var(--pg); box-shadow:inset 0 0 0 2px var(--pg), 0 3px 0 #cfe6d8}      /* (one filled button on the page: the plan that is marked) */
.paypage .plan{padding:12px 10px 10px; gap:8px}
.paypage .plan .buy{font-size:.92rem; padding:9px 10px}
.paypage .buy.no{background:#fff; color:var(--pb); box-shadow:inset 0 0 0 2px var(--pl), 0 3px 0 #c9daee}      /* (to cancel is as plain to see and to press as to buy: never greyed, never small) */
.paypage .tip{background:#e7f1fb}
.paypage .srow{border-bottom-color:var(--pe)}
.paypage select{border-color:var(--pl)}
.stage.paygate{background:#f3f8fd; box-shadow:0 6px 0 #d5e3f3}
.stage.paygate .gq{color:#1d4e89}
.gbar{display:block; height:10px; border-radius:999px; background:#0000001a; overflow:hidden; margin-top:3px}
.gbar i{display:block; height:100%; border-radius:999px; background:var(--sun)}
.num.msg{flex:1; min-width:0; text-align:start; font-size:.95rem}
/* a phone held sideways: little height, so the map is smaller, the counts move in from the buttons, and the buttons may take two columns */
@media (max-height:480px){
  body.w3full .w3map{top:96px; width:86px !important; height:80px !important}
  body.w3full .w3tr{top:96px; right:150px}
  body.w3full .w3qm{top:126px}
  body.w3full .w3quest{top:96px; font-size:.95rem; padding:3px 10px}
  body.w3full #w3day{top:128px; font-size:.9rem; padding:2px 10px}
  body.w3full .w3gift{top:158px}
  body.w3full .w3fish{top:190px}
  body.w3full .w3sing{top:190px; font-size:.95rem; padding:3px 10px}
  body.w3full .w3buyrow{top:96px}
  body.w3full .bubble{max-height:3em}
  body.w3full .joy{bottom:44px}
  body.w3full .w3jump{bottom:48px}
  body.w3full .w3btns{bottom:44px; gap:6px; flex-wrap:wrap-reverse; max-height:calc(100vh - 150px); align-content:flex-start}
  body.w3full .w3harv{bottom:120px}
  body.w3full .w3hint{bottom:auto; top:96px}
}
.alshelf{align-items:stretch; gap:6px; padding:12px}
.altitle{display:flex; justify-content:space-between; align-items:baseline; gap:8px}
.altitle b{font-size:1.15rem}
.algrid{display:grid; grid-template-columns:repeat(4, 1fr); gap:6px}
.alb{background:#fff; border-radius:12px; padding:6px 2px; display:grid; gap:1px; justify-items:center; text-align:center; min-width:0}
.alb .ic{font-size:1.7rem; line-height:1.15; filter:grayscale(1) brightness(1.1) opacity(.3)}
.alb .nm{font-size:.68rem; font-weight:700; line-height:1.25; opacity:.5; overflow-wrap:anywhere}
.alb.got{background:#fff3c4; box-shadow:0 2px 0 var(--sand-deep)}
.alb.got .ic{filter:none}
.alb.got .nm{opacity:1}
.asklist{display:flex; flex-wrap:wrap; gap:8px; justify-content:center}
.asklist .chip{font-size:1.08rem; padding:9px 13px}
.asklist.top .chip{font-size:1.16rem; padding:12px 16px}
.choices.txt .mjnext{background:var(--sun); color:var(--ink); box-shadow:0 6px 0 #d9a21c}
@keyframes mjring{from{box-shadow:0 0 0 0 #ffc53dcc}to{box-shadow:0 0 0 8px #ffc53d00}}
@keyframes mjno{25%{transform:translate(calc(-50% - 6px),-50%)}75%{transform:translate(calc(-50% + 6px),-50%)}}
@keyframes mjshake{from{transform:rotate(-17deg)}to{transform:rotate(17deg)}}
@keyframes mjpop{0%{transform:scale(.2); opacity:0}25%{transform:scale(1.15); opacity:1}70%{transform:scale(1) translateY(-6px); opacity:1}100%{transform:scale(1) translateY(-14px); opacity:0}}

/* the funfair's games (js/pages/fair.js) */
/* the funfair (مدينة الألعاب, js/pages/fair.js): the box of a game, then the balloons, the pairs, the dates, the cans and the drums */
.fr-box{position:relative; width:100%; height:300px; border-radius:18px; overflow:hidden; touch-action:manipulation; user-select:none; -webkit-user-select:none}
.fr-box .count{position:absolute; left:0; right:0; top:36%; z-index:3; pointer-events:none; color:#fff; text-shadow:0 2px 0 #0004}
.fr-air{background:linear-gradient(#9fd3f2, #e6f5fc)}
.fr-ask{display:flex; align-items:center; gap:8px; opacity:1}
.fr-dot{width:30px; height:35px; border-radius:50%; background:var(--c); box-shadow:inset -4px -5px 0 #0002; flex:none}
.fr-bal{position:absolute; width:58px; height:68px; margin:0; padding:0; border:0; border-radius:50%; background:var(--c); box-shadow:inset -7px -9px 0 #0002, inset 6px 7px 0 #fff5; transform:translateX(-50%); cursor:pointer; transition:top .06s linear; -webkit-tap-highlight-color:transparent}
.fr-bal::before{content:""; position:absolute; left:50%; top:100%; width:0; height:0; margin:-3px 0 0 -6px; border:6px solid transparent; border-top:0; border-bottom:8px solid var(--c)}
.fr-bal::after{content:""; position:absolute; left:50%; top:100%; width:2px; height:24px; margin:5px 0 0 -1px; border-radius:1px; background:#0004}
.fr-bal.no{animation:frno .35s; filter:brightness(.78)}
.fr-bal.pop{transform:translateX(-50%) scale(1.5); opacity:0; transition:transform .16s, opacity .16s}
@keyframes frno{25%{transform:translateX(calc(-50% - 6px))}75%{transform:translateX(calc(-50% + 6px))}}
.fr-time{width:100%; height:10px; border-radius:5px; background:var(--sand); overflow:hidden; direction:ltr}
.fr-time i{display:block; width:100%; height:100%; border-radius:5px; background:var(--sun); transition:width .06s linear}
.fr-mem{display:grid; grid-template-columns:repeat(4, 1fr); gap:8px; width:100%}
.fr-mc{font:inherit; font-size:2.3rem; line-height:1; height:78px; margin:0; padding:0; border:0; border-radius:16px; display:grid; place-items:center; cursor:pointer; color:var(--ink); background:repeating-linear-gradient(45deg, #ffc53d 0 10px, #f7b524 10px 20px); box-shadow:0 5px 0 #d9a21c; -webkit-tap-highlight-color:transparent}
.fr-mc.open{background:#fff; box-shadow:0 5px 0 var(--sand-deep)}
.fr-mc.no{background:#fbe1e0; box-shadow:0 5px 0 #e8a6a3}
.fr-mc.ok{background:#e3f4e1; box-shadow:0 5px 0 var(--good)}
.fr-mc:disabled{opacity:1; cursor:default}
.fr-palm{background:linear-gradient(#9fd3f2, #dff1fb 80%, #f3d9a4 80%); touch-action:none}
.fr-fronds{position:absolute; left:0; right:0; top:2px; font-size:3rem; line-height:1; letter-spacing:.25em; text-align:center; pointer-events:none}
.fr-date{position:absolute; width:22px; height:30px; margin-left:-11px; border-radius:50%; background:linear-gradient(120deg, #a5612a, #6b3a14); box-shadow:inset 3px 3px 0 #fff3; pointer-events:none; transition:top .05s linear}
.fr-date.lost{opacity:.3}
.fr-date[hidden]{display:none}
.fr-basket{position:absolute; bottom:8px; left:50%; width:76px; height:44px; margin-left:-38px; border-radius:6px 6px 34px 34px; border-top:7px solid #8a5a22; background:repeating-linear-gradient(90deg, #c98f4a 0 8px, #a9712f 8px 12px); pointer-events:none; transition:left .05s linear}
.fr-basket.got{box-shadow:0 0 0 5px #3f8f4f77}
.fr-lr{direction:ltr; flex-wrap:nowrap}
.fr-arrow{flex:1; font-size:1.9rem; min-height:64px; user-select:none; -webkit-user-select:none}
.fr-arrow:active{transform:translateY(3px)}
.fr-shelf{height:230px; background:linear-gradient(#fdebcb, #f8d9a0)}
.fr-shelf.hit{box-shadow:inset 0 0 0 5px var(--good)}
.fr-shelf.miss{box-shadow:inset 0 0 0 5px var(--bad)}
.fr-mark{position:absolute; top:12px; left:50%; transform:translateX(-50%); font-size:2rem; line-height:1; color:var(--falcon)}
.fr-can{position:absolute; bottom:38%; width:36px; height:50px; margin-left:-18px; border-radius:5px; background:linear-gradient(90deg, #0002, #fff6 35%, #0001), repeating-linear-gradient(#2f80ed 0 12px, #fff 12px 19px, #e5484d 19px 31px, #fff 31px 38px); box-shadow:inset 0 4px 0 #9aa4ad, inset 0 -4px 0 #9aa4ad; transform-origin:50% 100%; transition:transform .3s ease-in, opacity .3s}
.fr-can.down{transform:translateY(60px) rotate(82deg); opacity:.45}
.fr-plank{position:absolute; left:4%; right:4%; top:62%; height:12px; border-radius:6px; background:#a9712f; box-shadow:0 4px 0 #8a5a22}
.fr-ball{position:absolute; top:86%; left:50%; width:30px; height:30px; margin:-15px 0 0 -15px; border-radius:50%; background:radial-gradient(circle at 35% 30%, #fff, #ffc53d 32%, #e08a1e); transition:top .22s ease-out, left .22s ease-out, transform .22s}
.fr-ball.fly{top:46%; transform:scale(.6)}

/* v83 */
.plist{list-style:none; margin:0; padding:0; display:grid; gap:8px; text-align:start; font-weight:700; line-height:1.6}
.plist li{background:#fff; border-radius:14px; padding:8px 12px}
.daycount{display:flex; justify-content:center; gap:10px; flex-wrap:wrap; font-weight:800}
.daycount span{background:#ffffffd9; border-radius:999px; padding:4px 14px}
.w3hands{position:absolute; inset:0; pointer-events:none; z-index:3}
.w3hands .hd{position:absolute; bottom:36%; display:grid; justify-items:center; gap:6px; font-weight:800; font-size:.95rem; color:#fff; text-shadow:0 2px 3px #000b, 0 0 6px #0008}
.w3hands .hd b{font-size:2.8rem; line-height:1; filter:drop-shadow(0 3px 2px #0007)}
.w3hands .walk{left:12%}
.w3hands .turn{right:10%}
.w3hands .walk b{animation:hdwalk 1.6s ease-in-out infinite}
.w3hands .turn b{animation:hdturn 1.6s ease-in-out infinite}
@keyframes hdwalk{0%,100%{transform:translateY(22px)} 50%{transform:translateY(-22px)}}
@keyframes hdturn{0%,100%{transform:translateX(-26px)} 50%{transform:translateX(26px)}}
body.lefty .w3hands .walk{left:auto; right:10%}
body.lefty .w3hands .turn{right:auto; left:12%}
body.lefty .joy:not(.float){left:auto; right:14px}
body.lefty.w3full .joy:not(.float){left:auto; right:max(16px, env(safe-area-inset-right, 0px))}
body.lefty .w3btns{right:auto; left:12px}
body.lefty.w3full .w3btns{right:auto; left:max(12px, env(safe-area-inset-left, 0px))}
body.lefty .w3jump, body.lefty.w3full .w3jump{left:auto; right:150px}
@media (prefers-reduced-motion: reduce){ .w3hands .hd b{animation:none} }
/* v84 */
.hicon{width:1.34em; height:1em; vertical-align:middle; display:inline-block}
.townpic{width:100%; max-width:340px; height:auto; border-radius:18px; display:block; margin:0 auto; box-shadow:0 4px 0 var(--sand-deep)}
.falcon.wave svg{animation:fwave 1.1s ease-in-out 4; transform-origin:50% 90%}
@keyframes fwave{0%,100%{transform:rotate(0)} 30%{transform:rotate(-9deg)} 70%{transform:rotate(9deg)}}
@media (prefers-reduced-motion: reduce){ .falcon.wave svg{animation:none} }
/* v85 */
.weekrow{display:flex; gap:4px; direction:rtl}
.weekrow i{font-style:normal; width:1.5em; height:1.5em; border-radius:50%; background:#efe6d2; color:#cdbf9f; display:grid; place-items:center; font-size:.9rem; filter:grayscale(1)}
.weekrow i.on{background:var(--sun); color:#7a5a00; filter:none}
textarea.bk{width:100%; font:inherit; font-size:.8rem; border-radius:12px; border:2px solid var(--sand-deep); padding:8px; resize:vertical; word-break:break-all}
/* v86 */
.w3folk{background:#2f8fc4; box-shadow:0 5px 0 #1f6a94}
.w3dune{background:#ffb300; color:var(--ink); box-shadow:0 5px 0 #c98a00}
.w3count{position:absolute; left:50%; top:36%; transform:translate(-50%, -50%); z-index:5; pointer-events:none; font-family:var(--display); font-size:6rem; font-weight:900; line-height:1; color:#fff; text-shadow:0 5px 0 #0007, 0 0 18px #0006}
.w3folk.req{background:#8455c9; box-shadow:0 5px 0 #603a9c}

/* ================= for a small finger and young eyes =================
   From a look at every screen the walkthrough passes (tools/audit.js, 2026-11-19). Nothing here changes how the game
   looks at a glance: things to press are at least 44 px, words at least 12 px, and words stand clear of their ground. */
.btn.sm{min-height:44px}
.link{min-height:44px; padding:8px 12px}
select{min-height:44px}
input.num.sm{min-height:44px}
.it .sw{width:44px; height:44px}
.swp small, .it .swp small{font-size:.78rem}
.w3b small{font-size:.75rem}
.lane .rn{font-size:.78rem}
.track.slim .lane .rn{font-size:.76rem}
.alb .nm{font-size:.75rem; opacity:.75}
@media (max-width:380px){ .bld .lbl{font-size:.76rem} }
.it .have{color:#2c6a39}
.stampc .mark{opacity:.85}
.w3buy.sure{background:#2f7a40}
.it .buy.no{color:#5f5038}
.harf{color:#2b84b0}
.hname{background:#267aa3}
body.w3full #w3day{padding:9px 13px}
body.w3full .w3gift{top:248px}
body.w3full .w3fish, body.w3full .w3sing{top:296px}
@media (max-height:480px){
  body.w3full #w3day{padding:6px 11px}
  body.w3full .w3gift{top:166px}
  body.w3full .w3fish, body.w3full .w3sing{top:200px}
}
/* the parents' page: nothing wider than the phone (a long line wraps; it used to push the page sideways) */
.kcard{min-width:0; max-width:100%}
.srow{flex-wrap:wrap; align-items:center}
.srow > *{min-width:0}
.srow b{white-space:normal; text-align:end; overflow-wrap:anywhere}
.srow select, .srow input{max-width:100%}
/* a thing the keyboard has reached shows it (for a parent who uses one) */
button:focus-visible, select:focus-visible, input:focus-visible{outline:3px solid #1d4e89; outline-offset:2px}
