/* adult.css — the parent zone «Для взрослых» (js/core/adult.js), its settings and «Вопросы и ответы» (js/core/help.js),
   and the «?» on the first screen. Light cream paper like the game, calm, big readable text. Loaded after album.css. */

/* ONE font for the whole game: Nunito (soft, rounded, full Cyrillic). Rubik and other fonts written anywhere else are overridden here,
   so every page looks the same; only the weight (700–900) and the size differ. The emoji fonts stay at the end, or icons like 🗑 turn into empty boxes */
*,*::before,*::after,button,input,select,textarea{font-family:"Nunito",-apple-system,"Helvetica Neue",system-ui,"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif!important}

/* the page: cream paper, scrolls when it is longer than the screen */
.home.adzone{position:fixed;inset:0;overflow-y:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;max-width:none;margin:0;
  padding:calc(max(18px,env(safe-area-inset-top)) + 8px) clamp(16px,3.4vw,40px) calc(env(safe-area-inset-bottom) + 26px);
  display:flex;flex-direction:column;gap:18px;background:#F6EEDF;color:#4A3324;font-family:Nunito,system-ui,sans-serif}
.adzone h1,.adzone h2,.adzone p{margin:0}

/* the top: a pill on each side, the title in the middle */
.adbar{display:flex;align-items:center;gap:14px}
.adbar h1{flex:1;text-align:center;font:800 clamp(24px,3.2vw,34px)/1.1 Rubik,Nunito,sans-serif;letter-spacing:-.3px}
.adpill{display:flex;align-items:center;gap:8px;min-height:50px;padding:0 20px 0 14px;border:0;border-radius:999px;cursor:pointer;
  background:#FFFBF2;color:#4A3324;font:800 clamp(15px,1.7vw,18px) Nunito,sans-serif;box-shadow:0 3px 10px rgba(74,51,36,.12)}
.adspace{width:clamp(80px,14vw,170px)}
.adh2{font:800 clamp(17px,2vw,20px) Nunito,sans-serif;color:#7A604A;margin-top:4px!important}
.adwarn{padding:14px 18px;border-radius:18px;background:#FBEFD0;color:#4A3324;font:700 15px/1.4 Nunito,sans-serif}
.adwarn b{font-weight:900}

/* cards and tiles: three in a row on a wide screen, two or one when narrower */
.adgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.adgrid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:900px){.adgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:620px){.adgrid,.adgrid.two{grid-template-columns:minmax(0,1fr)}}
.adcard{display:flex;flex-direction:column;gap:12px;padding:20px 22px;border-radius:22px;background:#FFFBF2;box-shadow:0 4px 14px rgba(74,51,36,.08)}
.adhead{display:flex;align-items:center;gap:10px;font:800 clamp(16px,1.8vw,19px) Nunito,sans-serif}
.adic{flex:none;display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:12px}
.adic.big{width:60px;height:60px;border-radius:18px}
.adbig{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.adbig b{font:900 40px/1 Rubik,Nunito,sans-serif}
.adbig span,.adsub{font:700 15px/1.35 Nunito,sans-serif;color:#7A604A}
.adprog{height:10px;border-radius:99px;background:#F1E6D2;overflow:hidden}
.adprog i{display:block;height:100%;border-radius:99px;background:#D89B2B}
.adchips{display:flex;flex-wrap:wrap;gap:6px}
.adchip{padding:4px 10px;border-radius:99px;background:#F1E6D2;font:800 14px Nunito,sans-serif;color:#7A604A}
.adchip.ok{background:#DCEDE8;color:#2F6B60}
.adlvls{display:flex;flex-direction:column;gap:9px}
.adlv{display:flex;align-items:center;gap:10px;font:700 16px Nunito,sans-serif}
.adlv>span:first-child{flex:1;min-width:0}
.addots{display:flex;gap:4px}
.addots i{width:10px;height:10px;border-radius:50%;background:#EADCC6}
.addots i.on{background:#C9735E}
.adtile{display:flex;align-items:center;gap:16px;min-height:96px;padding:18px 20px;border:0;border-radius:22px;cursor:pointer;text-align:left;
  background:#FFFBF2;color:#4A3324;box-shadow:0 4px 14px rgba(74,51,36,.08)}
.adtile.dark{background:#4A3324;color:#FFFBF2;box-shadow:0 4px 14px rgba(74,51,36,.18)}
.adtt{display:flex;flex-direction:column;gap:3px;min-width:0}
.adtt b{font:800 clamp(16px,1.8vw,19px)/1.2 Nunito,sans-serif}
.adtt span{font:700 15px/1.3 Nunito,sans-serif;color:#7A604A}
.adtile.dark .adtt span{color:#EADCC6}
.adon{display:inline-flex;align-items:center;gap:6px;font-style:normal;color:#2F6B60}
.adon::before{content:'';width:8px;height:8px;border-radius:50%;background:#3E8E7E}
.adfoot{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 18px;font:700 14px Nunito,sans-serif;color:#7A604A;text-align:center}

/* settings: a row of choices, chips, a switch */
.adfield{display:flex;flex-direction:column;gap:8px}
.adlab{font:700 16px Nunito,sans-serif;color:#7A604A}
.adseg{display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:6px;padding:5px;border-radius:16px;background:#F1E6D2}
.adseg button{min-height:44px;border:0;border-radius:12px;background:transparent;color:#4A3324;font:800 15px Nunito,sans-serif;cursor:pointer}
.adseg button.on{background:#4A3324;color:#FFFBF2}
.adpicks{display:flex;flex-wrap:wrap;gap:8px}
.adpick{min-height:42px;padding:0 14px;border:2px solid #E3D3B8;border-radius:99px;background:transparent;color:#4A3324;font:800 15px Nunito,sans-serif;cursor:pointer}
.adpick.on{border-color:#DCEDE8;background:#DCEDE8;color:#2F6B60}
.adpick.test{border-color:#FBEFD0;background:#FBEFD0}
.adtog{display:flex;align-items:center;gap:14px;padding-top:10px;border-top:2px solid #F1E6D2}
.adtog>span{flex:1;display:flex;flex-direction:column;gap:2px}
.adtog b{font:800 17px Nunito,sans-serif}
.adtog>span>span{font:700 14px/1.35 Nunito,sans-serif;color:#7A604A}
.adsw{flex:none;width:60px;height:34px;padding:3px;border:0;border-radius:99px;background:#D9CBB4;display:flex;cursor:pointer;transition:background .2s}
.adsw i{width:28px;height:28px;border-radius:50%;background:#FFFBF2;transition:transform .2s}
.adsw.on{background:#3E8E7E}
.adsw.on i{transform:translateX(26px)}

/* «Вопросы и ответы»: a question opens its answer below it */
.faq{display:flex;flex-direction:column;gap:10px;width:100%;max-width:860px;margin:0 auto}
.faqi{background:#FFFBF2;border-radius:18px;box-shadow:0 3px 10px rgba(74,51,36,.07)}
.faqi summary{cursor:pointer;list-style:none;padding:16px 50px 16px 20px;font:800 clamp(16px,2vw,19px)/1.3 Nunito,sans-serif;position:relative}
.faqi summary::-webkit-details-marker{display:none}
.faqi summary::after{content:'+';position:absolute;right:20px;top:50%;transform:translateY(-50%);font:900 26px Nunito,sans-serif;color:#7A604A}
.faqi[open] summary::after{content:'−'}
.faqi p{padding:0 20px 18px;font:700 clamp(15px,1.8vw,17px)/1.5 Nunito,sans-serif;color:#5E4636}
.faqmail{max-width:860px;width:100%;margin:0 auto;box-sizing:border-box;align-items:flex-start}

/* the «?» next to the gear on the first screen */
.hhelp{width:52px;height:52px;border:0;border-radius:50%;background:#FFFBF2;color:#4A3324;font:900 26px/1 Rubik,Nunito,sans-serif;cursor:pointer;
  box-shadow:0 3px 10px rgba(74,51,36,.15)}

/* ---------- the inner pages of the parent zone, in the same light paper look ----------
   Family photos, own voice, sync, levels, dictionary: their colours come from the shared colour variables (css/style.css),
   which a dark system theme turns navy. While one of these pages is open, body has the class adlight (js/core/adult.js):
   the variables become cream, and the pieces below get the rounded, quiet look of the main page. */
body.adlight{--bg:#F6EEDF;--ink:#4A3324;--soft:#7A604A;--panel:#FFFBF2;--on:#4A3324;--onInk:#FFFBF2;--cardInk:#4A3324;
  --ledge:rgba(74,51,36,.10);--ok:#2F6B60;--glass:#FFFBF2;--shine:rgba(255,255,255,0);
  --sky1:#F6EEDF;--sky2:#F6EEDF;--hill1:transparent;--hill2:transparent;--cloud:transparent;color-scheme:light;background:#F6EEDF}
body.adlight #app>.bar,body.adlight .home>.bar{min-height:56px}
body.adlight .bar .title{font:800 clamp(22px,3vw,30px)/1.1 Rubik,Nunito,sans-serif;color:#4A3324;justify-content:center;text-align:center}
body.adlight .bar .back{min-height:50px;padding:0 20px;border-radius:999px;background:#FFFBF2;color:#4A3324;font:800 17px Nunito,sans-serif;
  box-shadow:0 3px 10px rgba(74,51,36,.12);-webkit-backdrop-filter:none;backdrop-filter:none}
body.adlight .grown{background:#FFFBF2;border-radius:22px;padding:20px 22px;box-shadow:0 4px 14px rgba(74,51,36,.08);-webkit-backdrop-filter:none;backdrop-filter:none}
body.adlight .grown h2{font:800 18px Nunito,sans-serif;color:#7A604A}
body.adlight .tip{font:700 15px/1.5 Nunito,sans-serif;color:#7A604A}
body.adlight .warn{font:700 15px/1.5 Nunito,sans-serif;color:#A3473A;background:#FBEFD0;padding:12px 16px;border-radius:16px}
body.adlight .big-rec{border-radius:999px;padding:14px 22px;font:800 17px Nunito,sans-serif;color:#4A3324;box-shadow:0 3px 10px rgba(74,51,36,.12)}
/* the coloured buttons keep their own colour, softened to the paper palette */
body.adlight .big-rec[style*="#CAFFBF"]{background:#DCEDE8!important}
body.adlight .big-rec[style*="#FFE08A"]{background:#FBEFD0!important}
body.adlight .big-rec:not([style]){background:#F8DCD4}
body.adlight .chip{background:#FFFBF2;color:#4A3324;box-shadow:0 3px 8px rgba(74,51,36,.10);-webkit-backdrop-filter:none;backdrop-filter:none;font-family:Nunito,sans-serif}
body.adlight .chip.on{background:#4A3324;color:#FFFBF2}
body.adlight .row{background:#FFFBF2;border-radius:18px;box-shadow:0 3px 10px rgba(74,51,36,.07);-webkit-backdrop-filter:none;backdrop-filter:none}
body.adlight .row .rt b{font:800 18px Nunito,sans-serif}
body.adlight .row .rt small{font:700 14px/1.35 Nunito,sans-serif;color:#7A604A}
body.adlight .rb{background:#F1E6D2;color:#4A3324;border-radius:14px;font:800 15px Nunito,sans-serif;-webkit-backdrop-filter:none;backdrop-filter:none}
body.adlight .rb.rec{background:#F8DCD4;color:#4A3324}
body.adlight .rb.recording{background:#C9735E;color:#FFFBF2}
body.adlight .segb{background:#F1E6D2;border-radius:16px}
body.adlight .segb button{font:800 15px Nunito,sans-serif;color:#4A3324;border-radius:12px;min-height:40px}
body.adlight .segb button.on{background:#4A3324;color:#FFFBF2}
body.adlight .famadd{background:#FFFBF2;box-shadow:0 4px 14px rgba(74,51,36,.08)}
body.adlight .famph{border-color:#D9C6A6;background:#F6EEDF}
body.adlight .famf input,body.adlight .dictadd input,body.adlight #syncin{background:#F6EEDF;border:2px solid #E3D3B8;color:#4A3324;font-family:Nunito,sans-serif}
body.adlight .synccode{background:#F1E6D2;color:#4A3324}
body.adlight .pbtn{background:#F1E6D2;color:#4A3324;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none;border-radius:999px;font-family:Nunito,sans-serif}
body.adlight .dictsum{font-family:Rubik,Nunito,sans-serif;color:#4A3324}
body.adlight .chipS.ok{background:#DCEDE8;color:#2F6B60}
body.adlight .chipS.try{background:#FBEFD0;color:#7A5300}
body.adlight .lvnow{color:#7A604A;font-weight:700}
body.adlight .toast{background:#4A3324;color:#FFFBF2}
/* «Фото семьи»: the star that marks the child */
body.adlight .rb.famkid{white-space:nowrap}
body.adlight .rb.famkid.on{background:#FBEFD0;box-shadow:inset 0 0 0 2px #F3C96B}
