/* NQ app look v1.0 (2026-10-29, gap-check chat): the shared look of every Nestling Quest home-screen app.
   Terry, 29 Oct 21:40-22:35: the soft clay style (his reference picture), six calm colours a child picks (Lavender, Pink,
   Peach, Sky blue, Mint, Stone), "each app we build gets this style as part of the modular build out".
   - DATA: each colour is one block of tokens below; a new colour is one new block (and one line in nq-app-look-v1.0.js).
   - LOGIC: nq-app-look-v1.0.js only sets html[data-nqtheme] and draws the background; nothing here is app-specific.
   - FONTS (NQ font rule, 26 Oct): Fredoka for titles and names, Andika for everything a child reads, Nunito for grown-ups'
     text. Each app declares its own @font-face (this file loads no files, so it works from any folder).
   - Every colour keeps text at 4.5:1 or more (white on the main button 4.6:1 or more); checked by the apps' tests. Kids' pages: no outside files, nothing sent anywhere. */
:root,html[data-nqtheme="lavender"]{
  --nq-bg:#D8CCF6;--nq-hill:#CBBDF1;--nq-hill2:#C4B4EE;--nq-title:#5D43BD;--nq-pri:#7A64CE;--nq-pri-e:#6450B8;--nq-ic:#8E78DB;
  --nq-soft:#F2ECFC;--nq-soft-e:#DCD2F4;--nq-soft-t:#5E4AB0;--nq-btn-e:#E4DAF2;--nq-ink:#3E3560;--nq-body:#5B5278;--nq-muted:#5F5784;
  --nq-sh:74,52,150;--nq-tint:140,118,206;--nq-c2:#E6DEFA;--nq-c2-t:#4E3A9E;--nq-line:#E7DFF5;--nq-mid:#BDB2E8}
html[data-nqtheme="pink"]{
  --nq-bg:#F6D2DF;--nq-hill:#EFC0D1;--nq-hill2:#EAB4C7;--nq-title:#9E3A65;--nq-pri:#BC4D7B;--nq-pri-e:#A63F6A;--nq-ic:#D46A95;
  --nq-soft:#FCEBF1;--nq-soft-e:#F2CCDA;--nq-soft-t:#9C3963;--nq-btn-e:#EFDCE3;--nq-ink:#4A2E3C;--nq-body:#6B3F52;--nq-muted:#714A5C;
  --nq-sh:150,52,96;--nq-tint:206,118,156;--nq-c2:#F8D9E5;--nq-c2-t:#8C2F58;--nq-line:#F3DCE5;--nq-mid:#E0A7BF}
html[data-nqtheme="peach"]{
  --nq-bg:#FADCC8;--nq-hill:#F4CBB1;--nq-hill2:#EFBFA2;--nq-title:#994E28;--nq-pri:#B45C2E;--nq-pri-e:#9A4C24;--nq-ic:#D2834F;
  --nq-soft:#FDEEE4;--nq-soft-e:#F3D6C3;--nq-soft-t:#97491F;--nq-btn-e:#F0E0D4;--nq-ink:#4A3428;--nq-body:#6A4433;--nq-muted:#744D3C;
  --nq-sh:160,80,40;--nq-tint:220,150,110;--nq-c2:#FBE1CF;--nq-c2-t:#8A421B;--nq-line:#F3E0D3;--nq-mid:#DBAE97}
html[data-nqtheme="sky"]{
  --nq-bg:#CCE2F6;--nq-hill:#BBD6F0;--nq-hill2:#B0CEEC;--nq-title:#2A64A6;--nq-pri:#3A76C0;--nq-pri-e:#2D63A6;--nq-ic:#4F8AD1;
  --nq-soft:#E8F1FC;--nq-soft-e:#CCDDF3;--nq-soft-t:#285E9C;--nq-btn-e:#DCE6F3;--nq-ink:#2C3E55;--nq-body:#3A4F6B;--nq-muted:#475B78;
  --nq-sh:40,90,150;--nq-tint:110,150,206;--nq-c2:#D6E6F8;--nq-c2-t:#23568F;--nq-line:#DCE7F3;--nq-mid:#9DBBE0}
html[data-nqtheme="mint"]{
  --nq-bg:#CBEADB;--nq-hill:#B8E0CC;--nq-hill2:#AAD8C1;--nq-title:#25705A;--nq-pri:#2E8264;--nq-pri-e:#246C53;--nq-ic:#3E9B78;
  --nq-soft:#E3F4EB;--nq-soft-e:#C6E6D5;--nq-soft-t:#246A52;--nq-btn-e:#D9EBE1;--nq-ink:#26463A;--nq-body:#35584B;--nq-muted:#41634F;
  --nq-sh:40,110,80;--nq-tint:110,190,150;--nq-c2:#D3EEDF;--nq-c2-t:#1F6149;--nq-line:#D7EBE0;--nq-mid:#97C1B2}
html[data-nqtheme="stone"]{
  --nq-bg:#E4DED5;--nq-hill:#D8D0C4;--nq-hill2:#CEC5B7;--nq-title:#5E5446;--nq-pri:#736756;--nq-pri-e:#5E5446;--nq-ic:#8C7F6C;
  --nq-soft:#F3EFE9;--nq-soft-e:#DDD5C9;--nq-soft-t:#574D40;--nq-btn-e:#E7E0D6;--nq-ink:#3E372E;--nq-body:#4A4238;--nq-muted:#5A5145;
  --nq-sh:80,70,55;--nq-tint:160,150,130;--nq-c2:#E8E2D8;--nq-c2-t:#4F463A;--nq-line:#E7E1D8;--nq-mid:#B9B3AA}
:root{--nq-card:#FBF7F2;--nq-inner:#FFFDFA;--nq-btn:#F7F2EB;--nq-yes:#DDF3EA;--nq-yes-t:#23694A;
  --nq-f-title:"Fredoka",ui-rounded,system-ui,sans-serif;--nq-f-label:"Andika","Nunito",ui-rounded,system-ui,sans-serif;--nq-f-body:"Nunito",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}

/* the page */
body.nql{background:var(--nq-bg);color:var(--nq-ink);transition:background-color .3s}

/* clay pieces */
.nql-card{background:var(--nq-card);border-radius:40px;box-shadow:0 28px 48px -24px rgba(var(--nq-sh),.5),inset 0 2px 0 #fff,inset 0 -10px 18px rgba(var(--nq-tint),.12)}
.nql-inner{background:var(--nq-inner);border-radius:34px;box-shadow:0 -6px 18px -10px rgba(var(--nq-sh),.25),0 18px 30px -16px rgba(var(--nq-sh),.42),inset 0 2px 0 #fff,inset 0 -6px 12px rgba(var(--nq-tint),.10)}
.nql-btn{background:var(--nq-btn);color:var(--nq-ink);border:0;box-shadow:0 5px 0 var(--nq-btn-e),0 14px 20px -12px rgba(var(--nq-sh),.35),inset 0 2px 0 #fff}
.nql-pill{background:var(--nq-pri);color:#fff;border:0;box-shadow:0 6px 0 var(--nq-pri-e),0 18px 24px -12px rgba(var(--nq-sh),.6),inset 0 3px 0 rgba(255,255,255,.3)}
.nql-soft{background:var(--nq-soft);color:var(--nq-soft-t);border:0;box-shadow:0 5px 0 var(--nq-soft-e),0 12px 18px -10px rgba(var(--nq-sh),.3),inset 0 2px 0 #fff}
.nql-circ{background:var(--nq-card);color:var(--nq-soft-t);border:0;border-radius:50%;box-shadow:0 5px 0 var(--nq-btn-e),0 12px 18px -10px rgba(var(--nq-sh),.4),inset 0 2px 0 #fff}
.nql-ic{flex:none;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:var(--ic,var(--nq-ic));color:#fff;
  box-shadow:inset 0 3px 0 rgba(255,255,255,.35),inset 0 -4px 0 rgba(0,0,0,.12),0 6px 12px -6px rgba(var(--nq-sh),.6)}
.nql-ic svg{width:56%;height:56%;fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.nql-btn:active,.nql-pill:active,.nql-soft:active,.nql-circ:active{transform:translateY(3px)}
.nql-btn:focus-visible,.nql-pill:focus-visible,.nql-soft:focus-visible,.nql-circ:focus-visible,.nql-sw:focus-visible{outline:3px solid #F2B705;outline-offset:3px}
@media (prefers-reduced-motion:reduce){.nql-btn:active,.nql-pill:active,.nql-soft:active,.nql-circ:active{transform:none}body.nql{transition:none}}

/* words */
.nql-title{font-family:var(--nq-f-title);font-weight:600;color:var(--nq-title);margin:0}
.nql-sub{font-family:var(--nq-f-body);font-weight:700;color:var(--nq-body);margin:0}
.nql-sparkles{display:inline-flex;align-items:center;gap:10px}
.nql-sparkles::before,.nql-sparkles::after{content:"";flex:none;width:20px;height:24px;background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 26'%3E%3Cg stroke='%23F2C23C' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M18 4 13 9M19 13h-7M18 22l-5-5'/%3E%3C/g%3E%3C/svg%3E")}
.nql-sparkles::after{transform:scaleX(-1)}
.nql-heart{display:block;width:34px;height:30px;margin:0 auto;background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 32'%3E%3Cdefs%3E%3CradialGradient id='h' cx='35%25' cy='30%25' r='75%25'%3E%3Cstop offset='0' stop-color='%23FFB8CA'/%3E%3Cstop offset='1' stop-color='%23EC7898'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M18 30C6 22 2 15 2 10 2 5 6 2 10.5 2 14 2 16.5 4 18 7 19.5 4 22 2 25.5 2 30 2 34 5 34 10c0 5-4 12-16 20z' fill='url(%23h)'/%3E%3Cellipse cx='11' cy='8.5' rx='4' ry='2.6' fill='%23fff' opacity='.55' transform='rotate(-25 11 8.5)'/%3E%3C/svg%3E")}
.nql-divider{display:flex;align-items:center;gap:12px;font-family:var(--nq-f-body);font-weight:700;font-size:14px;color:var(--nq-muted)}
.nql-divider::before,.nql-divider::after{content:"";flex:1;height:2px;border-radius:2px;background:var(--nq-line)}

/* "Pick your colour" (nq-app-look-v1.0.js builds the buttons) */
.nql-sws{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 10px}
.nql-sw{position:relative;min-height:112px;border:0;border-radius:26px;background:var(--nq-btn);cursor:pointer;display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:8px;padding:8px 4px;font:400 17px/1.2 var(--nq-f-label);color:var(--nq-ink);
  box-shadow:0 5px 0 var(--nq-btn-e),0 14px 20px -12px rgba(var(--nq-sh),.35),inset 0 2px 0 #fff}
.nql-sw .pot{width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  box-shadow:inset 0 4px 0 rgba(255,255,255,.45),inset 0 -5px 0 rgba(0,0,0,.08),0 6px 10px -4px rgba(0,0,0,.3)}
.nql-sw .pot i{display:block;width:30px;height:30px;border-radius:50%;box-shadow:inset 0 3px 0 rgba(255,255,255,.35),0 3px 6px -2px rgba(0,0,0,.25)}
.nql-sw[aria-pressed="true"]{background:var(--nq-inner);box-shadow:0 0 0 4px var(--nq-pri),0 5px 0 4px var(--nq-pri-e),0 16px 22px -10px rgba(var(--nq-sh),.5)}
.nql-sw[aria-pressed="true"]::after{content:"";position:absolute;right:-8px;top:-8px;width:32px;height:32px;border-radius:50%;box-shadow:0 3px 0 var(--nq-pri-e);
  background:var(--nq-pri) no-repeat center/18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")}
@media (min-width:700px){.nql-sws{grid-template-columns:repeat(6,minmax(0,1fr))}}

/* the grown-ups' check (kit nq-grownup) in the app's look; the free website keeps its own look (body.nql is app-only) */
body.nql .nqgu-layer{background:rgba(40,30,60,.5)}
body.nql .nqgu-card{background:var(--nq-card);color:var(--nq-ink);border-radius:36px;box-shadow:0 30px 60px -20px rgba(var(--nq-sh),.6),inset 0 2px 0 #fff}
body.nql .nqgu-card h2{font-family:var(--nq-f-title);font-weight:600;color:var(--nq-title)}
body.nql .nqgu-big{background:var(--nq-pri);border-radius:999px;text-shadow:none;font-family:var(--nq-f-label);font-weight:400;
  box-shadow:0 5px 0 var(--nq-pri-e),0 14px 20px -12px rgba(var(--nq-sh),.6),inset 0 3px 0 rgba(255,255,255,.3)}
body.nql .nqgu-big:active{box-shadow:0 2px 0 var(--nq-pri-e)}
body.nql .nqgu-soft{background:var(--nq-soft);color:var(--nq-soft-t);border:0;border-radius:999px;font-family:var(--nq-f-label);font-weight:400;box-shadow:0 5px 0 var(--nq-soft-e),inset 0 2px 0 #fff}
body.nql .nqgu-x{background:var(--nq-btn)}
body.nql .nqgu-in{border-color:var(--nq-soft-e)}

/* the background: soft hills, clouds and the leaf and clover corners (drawn by nq-app-look-v1.0.js, behind everything, never tapped) */
.nql-decor{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none}
.nql-decor .h{position:absolute;border-radius:50%;background:var(--nq-hill);box-shadow:inset 0 10px 0 rgba(255,255,255,.22);transition:background-color .3s}
.nql-decor .h1{left:-110px;bottom:-170px;width:420px;height:280px}
.nql-decor .h2{right:-120px;bottom:-180px;width:400px;height:280px;background:var(--nq-hill2)}
.nql-decor .cl{position:absolute;height:30px;background:var(--nq-inner);border-radius:999px;box-shadow:inset 0 -6px 0 rgba(var(--nq-tint),.18),0 12px 18px -10px rgba(var(--nq-sh),.45)}
.nql-decor .cl::before,.nql-decor .cl::after{content:"";position:absolute;background:var(--nq-inner);border-radius:50%}
.nql-decor .cl::before{width:40px;height:40px;left:14px;top:-20px}
.nql-decor .cl::after{width:30px;height:30px;left:42px;top:-12px}
.nql-decor .c1{left:-18px;top:120px;width:78px}
.nql-decor .c2{right:-22px;top:64px;width:68px}
/* the corners (Terry 30 Oct 12:56, option C): NQ's own 3D leaf and clover pictures on two soft mounds (was two pot plants,
   too close to the reference picture). Drawn by nq-app-look-v1.0.js; the pictures are in that file, so nothing is loaded. */
.nql-decor .p1,.nql-decor .p2{position:absolute;bottom:0}
.nql-decor .p1{left:2px;width:118px;height:120px;transform-origin:bottom left}
.nql-decor .p2{right:2px;width:84px;height:110px;transform-origin:bottom right}
.nql-decor .p1 img,.nql-decor .p2 img{position:absolute;filter:drop-shadow(0 4px 4px rgba(30,60,30,.22))}
.nql-decor .p1 svg,.nql-decor .p2 svg{position:absolute;left:0;bottom:0;width:100%;height:auto}
@media (min-width:700px){.nql-decor .p1,.nql-decor .p2{transform:scale(1.4)}.nql-decor .c1{top:180px;width:110px}.nql-decor .c2{top:90px;width:96px}}
/* room under the page for the corners, so the small print and links never sit on them (outside test, 30 Oct) */
html:not(.nql-calm) body.nql-dec{padding-bottom:128px}
@media (min-width:700px){html:not(.nql-calm) body.nql-dec{padding-bottom:180px}}
html.nql-calm .nql-decor .p1,html.nql-calm .nql-decor .p2,html.nql-calm .nql-decor .cl{display:none}
@media print{.nql-decor{display:none!important}html:not(.nql-calm) body.nql-dec{padding-bottom:0}}
