/* New-look polish after the live cutover (معاذ 11-03, on the phone): the screens that still had the old dark theme or old colours,
   and the iPhone top bar hidden under the status bar. Loaded after ui-new.css; everything is under html.nw (?look=old keeps the old look). */

/* iPhone home-screen app (status bar «black-translucent» + viewport-fit=cover): the page starts UNDER the status bar / Dynamic Island,
   so the top bar (☰ ⚠️ ↩) sat behind it and could not be tapped. Leave room for it (0 on Android and in a normal browser tab). */
html.nw #app{padding-top:calc(16px + env(safe-area-inset-top, 0px));padding-bottom:calc(16px + env(safe-area-inset-bottom, 0px));}
@media (max-width:560px){ html.nw #app{padding-top:calc(10px + env(safe-area-inset-top, 0px));} }

/* Mrs. Zakia (Languages track): the «go» buttons and the selected states were still the old green → the track's apricot.
   أبلة ذكيّة (Arabic track) keeps its mint. */
html.nw.t-lang{--mint-deep:var(--nw-pri);--mint:var(--nw-acc);}
html.nw .btn-go,html.nw .lab-go{background-color:var(--nw-pri);color:#fff;}
html.nw .btn-go,html.nw .lab-go,html.nw .choice.go{box-shadow:inset 0 1px 0 #ffffff55,0 4px 0 var(--nw-pri2),0 12px 22px -10px color-mix(in srgb,var(--nw-pri) 55%,transparent);}
html.nw .btn-go:active,html.nw .lab-go:active,html.nw .choice.go:active{box-shadow:inset 0 1px 0 #ffffff55,0 1px 0 var(--nw-pri2);}

/* the sign-in screen (activation code) */
html.nw .name-wrap input{border-color:var(--nw-line);color:var(--nw-ink);}
html.nw .name-wrap input:focus{border-color:var(--nw-pri);}
html.nw .nocode{border-top-color:var(--nw-line);}
html.nw .nc-wa{background:#fff;color:#128C4A;border:2px solid #25D366;}
html.nw .nc-app{background:var(--nw-soft);color:var(--nw-pri2);border:1px solid var(--nw-line);}

/* «افتح نشاط جديد» card: the old sky-blue header and the loud gradient tile → the track's colours */
html.nw .unlock-top{background:var(--nw-pri);}
html.nw .unlock-art{background:linear-gradient(160deg,var(--nw-soft),var(--nw-tint)) !important;border:1px solid var(--nw-line);}

/* sort game: the old dark «space» board → the light board, bins in soft colours with dark words */
html.nw .sc-space{background:radial-gradient(ellipse at 50% 0%,var(--nw-tint) 0%,var(--nw-bg) 80%);color:var(--nw-ink);}
html.nw .sc-space .dots i{background:var(--nw-line);}
html.nw .sc-space .dots i.ok{background:var(--ok);}
html.nw .sc-space .dots i.no{background:var(--no);}
html.nw .sc-space .score{background:#fff;border-color:var(--nw-line);color:var(--nw-ink);box-shadow:0 2px 8px #0000000d;}
html.nw .sc-space .fact-card{border:1px solid var(--nw-line);box-shadow:0 10px 28px #00000014;}
html.nw .sc-space .sort-note{color:var(--nw-pri2);font-weight:700;}
html.nw .bin{color:var(--nw-ink);box-shadow:0 3px 10px #0000000d;}
html.nw .bin small{color:var(--nw-muted);opacity:1;}
html.nw .bin-0,html.nw .bin-m{background:#FDEDE7;border-color:#E9876B;}
html.nw .bin-1,html.nw .bin-b{background:#FFF6E2;border-color:#D7B163;}
html.nw .bin-2{background:#E9F3FB;border-color:#6AAAD8;}
html.nw .unlock{border-color:var(--nw-line);}

/* iPhone (11-03, معاذ: «إنجازاتي» back button hidden like the top bar was): every full-screen panel keeps clear of the status bar / home bar */
#nwDrawer{padding-top:calc(16px + env(safe-area-inset-top, 0px));padding-bottom:calc(16px + env(safe-area-inset-bottom, 0px));}
#nwProg,#parent,.leave-ov{padding-top:calc(16px + env(safe-area-inset-top, 0px)) !important;padding-bottom:calc(16px + env(safe-area-inset-bottom, 0px)) !important;}
.lg-ov{padding-top:env(safe-area-inset-top, 0px);padding-bottom:env(safe-area-inset-bottom, 0px);}
