/* ============================================================
   COLECTIA: contorul din antet, foaia cu seturi, grila de obiecte

   Contorul arata progresul setului curent, 3/9, nu un total abstract. Un total
   nu spune nimic; "mai ai sase" spune. La apasare se deschide foaia cu toate
   cele cinci seturi, obiectele stranse si cardurile castigate.
   ============================================================ */

/* ===== Contorul din antet ===== */
/* Scorul e in acelasi bej discret ca butonul de inapoi, nu in auriu aprins:
   sta permanent pe ecran, deci trebuie sa se citeasca fara sa strige. */
.coBadge{display:inline-flex; align-items:center; gap:6px;
  background:rgba(240,232,214,.16); border:1px solid rgba(240,232,214,.30);
  backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  border-radius:16px; padding:6px 12px 6px 10px; cursor:pointer;
  font-family:'Montserrat',system-ui,sans-serif; font-weight:700; font-size:13px;
  letter-spacing:.02em; color:rgba(245,239,228,.92);
  transition:transform .16s ease, background .2s}
.coBadge:active{transform:scale(.95)}
/* semnul cristalului, un romb simplu: nu are nevoie de imagine */
.coBadge i{width:9px; height:9px; flex:0 0 auto; transform:rotate(45deg);
  background:rgba(240,232,214,.85); border-radius:2px}

/* ===== Foaia, acelasi comportament ca la ghid ===== */
#coOv{position:fixed; inset:0; z-index:420;
  background:#141127; background-image:var(--feltTex); background-repeat:repeat;
  opacity:0; pointer-events:none; transition:opacity .26s ease;
  display:flex; flex-direction:column}
#coOv.on{pointer-events:auto}
#coOv.show{opacity:1}
.coSheetTop{flex:0 0 auto; display:flex; align-items:center; gap:12px;
  padding:calc(14px + env(safe-area-inset-top,0px)) 20px 12px}
.coSheetTop b{flex:1; font-family:Georgia,'Noto Serif','Times New Roman',serif; font-weight:700;
  font-size:21px; color:#f5efe4}
.coSheetBody{flex:1 1 auto; overflow-y:auto; -webkit-overflow-scrolling:touch;
  padding:0 20px calc(40px + env(safe-area-inset-bottom,0px))}

/* ===== Un set ===== */
.coSet{margin:0 0 26px; padding:0 0 22px;
  border-bottom:1px solid rgba(245,239,228,.10)}
.coSet:last-of-type{border-bottom:0}
/* setul viitor sta stins: se vede ca exista, dar ca nu e randul lui */
.coSet.lock{opacity:.42}
.coSetTop{display:flex; align-items:baseline; gap:10px; margin:0 0 9px}
.coSetTop b{flex:1; font-family:Georgia,'Noto Serif','Times New Roman',serif; font-weight:700;
  font-size:19px; color:#f5efe4}
.coSetTop span{font-family:'Montserrat',system-ui,sans-serif; font-weight:600;
  font-size:12.5px; color:var(--fv-banner,#f2c744)}

.coBar{height:6px; border-radius:3px; background:rgba(245,239,228,.14); overflow:hidden}
.coBar i{display:block; height:100%; border-radius:3px;
  background:var(--fv-banner,#f2c744); transition:width .5s ease}

/* ===== Grila celor noua obiecte =====
   Cele stranse sunt intregi. Cele care urmeaza raman ca siluete sterse: omul
   vede CE urmeaza, deci are un motiv sa continue. */
.coGrid{display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:14px 0 0}
.coIt{position:relative; aspect-ratio:1/1; border-radius:12px; overflow:hidden;
  background:rgba(245,239,228,.05)}
.coIt img{width:100%; height:100%; object-fit:contain; display:block;
  opacity:.14; filter:grayscale(1) brightness(1.6); transition:opacity .3s, filter .3s}
.coIt.on img{opacity:1; filter:none}

/* ===== Cardul de recompensa ===== */
.coCard{position:relative; width:62%; margin:18px auto 0}
.coCard img{width:100%; height:auto; display:block}
/* inca neobtinut: intunecat, cu cate mai e de strans scris peste */
.coCard.lockCard img{filter:brightness(.26) saturate(.5)}
.coCard.lockCard span{position:absolute; inset:0; display:flex;
  align-items:center; justify-content:center; text-align:center; padding:0 14px;
  font-family:'Montserrat',system-ui,sans-serif; font-weight:600; font-size:12.5px;
  line-height:1.5; color:rgba(245,239,228,.72)}
/* folosit: ramane in colectie, doar se stinge */
.coCard.used img{filter:grayscale(.7) brightness(.62)}

.coRew{text-align:center; margin:14px 0 0}
.coRew b{display:block; font-family:Georgia,'Noto Serif','Times New Roman',serif; font-weight:700;
  font-size:20px; color:#f5efe4}
.coRew em{display:block; margin-top:3px; font-style:normal;
  font-family:'Montserrat',system-ui,sans-serif; font-size:12.5px;
  color:var(--fv-banner,#f2c744)}
.coUse{display:block; width:100%; margin:14px 0 0}
.coUsed{margin:10px 0 0; text-align:center;
  font-family:'Montserrat',system-ui,sans-serif; font-size:12px;
  color:rgba(245,239,228,.55)}

/* ===== Cum se castiga ===== */
.coHow{margin:8px 0 0; padding:16px 18px; border-radius:14px;
  background:rgba(245,239,228,.05)}
.coHow b{display:block; font-family:'Montserrat',system-ui,sans-serif;
  font-weight:700; font-size:11px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--fv-banner,#f2c744); margin:0 0 10px}
.coHow ul{margin:0; padding:0 0 0 18px}
.coHow li{font-family:'Montserrat',system-ui,sans-serif; font-size:13px;
  line-height:1.7; color:rgba(245,239,228,.86)}
.coHow p{margin:12px 0 0; font-family:'Montserrat',system-ui,sans-serif;
  font-size:12.5px; line-height:1.6; color:rgba(245,239,228,.62)}

/* ===== Momentul cardului castigat =====
   Cardul apare intreg, nu ca un toast trecator. Aceeasi coloana ca telefonul:
   `fixed` ingustat la 430px, fiindca pagina e mai inalta decat ecranul si
   `absolute` ar aseza cardul in afara vederii. */
#coWinOv{position:fixed; top:0; bottom:0; left:50%; transform:translateX(-50%);
  width:100%; max-width:430px; z-index:140; display:none;
  align-items:center; justify-content:center; padding:24px;
  background:rgba(8,7,18,.72); -webkit-backdrop-filter:blur(5px); backdrop-filter:blur(5px);
  opacity:0; transition:opacity .32s ease}
#coWinOv.on{display:flex}
#coWinOv.show{opacity:1}
#coWinOv .coWin{width:100%; max-width:320px; text-align:center;
  transform:translateY(20px) scale(.94); opacity:0;
  transition:transform .55s cubic-bezier(.2,.8,.25,1), opacity .4s ease}
#coWinOv.show .coWin{transform:none; opacity:1}
#coWinOv .coWinEy{font-family:'Montserrat',system-ui,sans-serif; font-weight:700;
  font-size:11px; letter-spacing:.18em; text-transform:uppercase;
  color:var(--catB,#f2c744); margin-bottom:14px}
/* cardul intra cu o rasucire scurta, ca si cum ar fi intors cu fata in sus */
#coWinOv .coWinImg{width:100%; max-width:232px; height:auto; display:block; margin:0 auto;
  border-radius:14px; transform:rotateY(24deg) scale(.9); opacity:0;
  transition:transform .8s cubic-bezier(.2,.9,.25,1) .1s, opacity .5s ease .1s}
#coWinOv.show .coWinImg{transform:none; opacity:1}
#coWinOv .coWinNm{font-family:Georgia,'Noto Serif','Times New Roman',serif; font-weight:900;
  font-size:26px; color:#f5efe4; margin-top:18px}
#coWinOv .coWinRw{font-family:'Montserrat',system-ui,sans-serif; font-weight:600;
  font-size:14px; color:var(--catB,#f2c744); margin-top:7px}
#coWinOv .coWinHint{font-family:'Montserrat',system-ui,sans-serif; font-size:12.5px;
  line-height:1.55; color:rgba(245,239,228,.7); margin-top:12px}
#coWinOv .coWinBtn{display:block; width:100%; margin-top:20px; padding:15px 18px;
  border:0; border-radius:16px; background:#c9b6f5; color:#2a2145; cursor:pointer;
  font-family:'Montserrat',system-ui,sans-serif; font-weight:700; font-size:14px}
#coWinOv .coWinSee{display:block; width:100%; margin-top:10px; padding:13px 18px;
  border:1px solid rgba(245,239,228,.28); border-radius:16px; background:none;
  color:rgba(245,239,228,.85); cursor:pointer;
  font-family:'Montserrat',system-ui,sans-serif; font-weight:600; font-size:13px}


/* ===== Caruselul celor sapte carti =====
   Cele luate stau cu fata, restul cu spatele. Nu se arata nici desenul, nici
   recompensa inainte de deblocare: surpriza e jumatate din motivul de a
   continua. */
/* titlul in Playfair, ca numele personajului de deasupra */
.coDeckT{margin:24px 0 11px; font-family:Georgia,'Noto Serif','Times New Roman',serif;
  font-weight:900; font-size:17px; color:#f5efe4}
.coDeck{display:flex; gap:10px; overflow-x:auto; padding-bottom:6px;
  scroll-snap-type:x mandatory; scrollbar-width:none; -webkit-overflow-scrolling:touch}
.coDeck::-webkit-scrollbar{display:none}
.coCardW{flex:0 0 auto; width:118px; scroll-snap-align:start;
  display:flex; flex-direction:column; align-items:center; gap:6px}
.coCardW .coCard{width:100%; margin:0}
.coCardW .coCard img{width:100%; height:auto; display:block; border-radius:10px}
/* spatele: putin mai stins, ca sa se vada dintr-o privire ca nu e luat */
.coCardW .coCard.back img{opacity:.62}
.coCardW .coCard.used img{opacity:.42}
.coCardW span{font-family:'Montserrat',system-ui,sans-serif; font-size:11px;
  color:rgba(245,239,228,.6)}
.coCardW .coCard:not(.back)+span{color:var(--catB,#f2c744); font-weight:600}
.coCardW .coUse{width:100%; padding:8px 6px; border:0; border-radius:10px;
  background:#c9b6f5; color:#2a2145; cursor:pointer;
  font-family:'Montserrat',system-ui,sans-serif; font-weight:700; font-size:11.5px}

/* ===== Alegerea personajului urmator, in popupul de card ===== */
#coWinOv .coPickT{margin-top:18px; font-family:'Montserrat',system-ui,sans-serif;
  font-weight:600; font-size:12.5px; color:rgba(245,239,228,.75)}
#coWinOv .coPick{display:flex; gap:7px; justify-content:center; margin-top:10px;
  overflow-x:auto; scrollbar-width:none}
#coWinOv .coPick::-webkit-scrollbar{display:none}
#coWinOv .coPickB{flex:0 0 auto; width:54px; background:none; border:0; padding:0;
  cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:4px;
  opacity:.5; transform:scale(.94); transition:opacity .2s, transform .2s}
#coWinOv .coPickB.on{opacity:1; transform:scale(1)}
#coWinOv .coPickB img{width:100%; height:auto; display:block; border-radius:7px}
#coWinOv .coPickB b{font-family:'Montserrat',system-ui,sans-serif; font-weight:600;
  font-size:10px; color:#f5efe4}
#coWinOv .coPickB em{font-family:'Montserrat',system-ui,sans-serif; font-style:normal;
  font-size:9.5px; color:var(--catB,#f2c744)}


/* ===== Randul de personaje =====
   Portret rotund, apoi o bara mica cu numele si progresul. Latimea e aleasa
   ca TREI sa incapa intregi pe un ecran de telefon, iar urmatoarele doua sa se
   vada tragand la dreapta: asa se stie ca mai sunt. */
.coChars{display:flex; gap:10px; overflow-x:auto; padding:2px 0 8px;
  scroll-snap-type:x proximity; scrollbar-width:none; -webkit-overflow-scrolling:touch}
.coChars::-webkit-scrollbar{display:none}
.coCh{flex:0 0 auto; width:calc((100% - 20px) / 3); max-width:104px; scroll-snap-align:start;
  background:none; border:0; padding:0; cursor:pointer;
  display:flex; flex-direction:column; align-items:center; gap:8px;
  opacity:.45; transform:scale(.96); transition:opacity .22s ease, transform .22s ease}
.coCh.on{opacity:1; transform:scale(1)}
.coChFace{width:100%; height:auto; display:block; border-radius:50%}
.coChBar{width:100%; box-sizing:border-box; padding:5px 7px; border-radius:9px;
  background:rgba(255,255,255,.09); border:1px solid rgba(245,239,228,.14);
  display:flex; flex-direction:column; align-items:center; gap:1px}
.coChBar b{font-family:'Montserrat',system-ui,sans-serif; font-weight:600;
  font-size:11.5px; color:#f5efe4; line-height:1.2}
.coChBar i{font-family:'Montserrat',system-ui,sans-serif; font-style:normal;
  font-weight:700; font-size:10.5px; color:var(--catB,#f2c744)}
.coCh.full .coChBar i{color:#86efac}

/* ===== Personajul ales ===== */
.coFocus{margin-top:20px}
.coSetHd{display:flex; align-items:center; justify-content:space-between; gap:12px}
/* numele in Playfair, ca titlurile din restul aplicatiei */
.coSetHd b{font-family:Georgia,'Noto Serif','Times New Roman',serif; font-weight:900;
  font-size:19px; line-height:1.25; color:#f5efe4}
/* numarul poarta aceeasi forma de bara ca cele de sus */
.coSetHd .coCount{flex:0 0 auto; padding:5px 11px; border-radius:9px;
  background:rgba(255,255,255,.09); border:1px solid rgba(245,239,228,.14);
  font-family:'Montserrat',system-ui,sans-serif; font-weight:700; font-size:12px;
  color:var(--catB,#f2c744)}
/* bara de progres are aer in jur, nu sta lipita de text */
.coBarWrap{padding:14px 0 16px}

/* locasurile goale poarta spatele cardului, nu un patrat gol */
/* Locasurile sunt patrate, iar spatele cardului e inalt. Il decupam pe CENTRU
   cu object-fit, ca sa se vada medalionul din mijloc, nu marginea de sus. */
.coIt{position:relative; overflow:hidden; aspect-ratio:1/1; border-radius:10px}
.coIt img{width:100%; height:100%; display:block; object-fit:cover; object-position:center}
.coIt:not(.on) img{opacity:.34; filter:saturate(.55)}

/* ===== Cele sapte carti =====
   Cea la care lucram sta plina, restul sunt stinse. */
.coCardW{opacity:.42; transition:opacity .25s ease}
.coCardW.cur{opacity:1}
.coCardW .coCard:not(.back){opacity:1}

/* ===== Cum se aduna ===== */
.coHow{margin-top:26px; padding:18px 16px; border-radius:16px;
  background:rgba(255,255,255,.055); border:1px solid rgba(245,239,228,.12)}
.coHow b{display:block; font-family:Georgia,'Noto Serif','Times New Roman',serif; font-weight:900;
  font-size:17px; color:#f5efe4; margin-bottom:14px}
.coHowL{display:flex; align-items:center; gap:11px; margin-bottom:9px}
.coHowL i{flex:0 0 auto; width:38px; text-align:center; padding:4px 0; border-radius:8px;
  background:color-mix(in srgb, var(--catB,#f2c744) 16%, transparent);
  font-family:'Montserrat',system-ui,sans-serif; font-style:normal; font-weight:700;
  font-size:12px; color:var(--catB,#f2c744)}
.coHowL span{font-family:'Montserrat',system-ui,sans-serif; font-size:12.5px;
  line-height:1.45; color:rgba(245,239,228,.82)}
.coHowSep{height:1px; margin:14px 0 12px; background:rgba(245,239,228,.13)}
.coHowP{font-family:'Montserrat',system-ui,sans-serif; font-size:12.5px;
  line-height:1.6; color:rgba(245,239,228,.72)}
.coHowP.shop{margin-top:9px; color:var(--catB,#f2c744); opacity:.92}

/* ===== Cartea marita =====
   Aceeasi coloana ca telefonul, `fixed` ingustat la 430px. O apasare oriunde
   inchide: nu are nevoie de buton. */
#coZoomOv{position:fixed; top:0; bottom:0; left:50%; transform:translateX(-50%);
  width:100%; max-width:430px; z-index:160; display:none;
  align-items:center; justify-content:center; padding:26px; cursor:pointer;
  background:rgba(8,7,18,.82); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
  opacity:0; transition:opacity .3s ease}
#coZoomOv.on{display:flex}
#coZoomOv.show{opacity:1}
#coZoomOv .coZoomIn{width:100%; max-width:300px; text-align:center;
  transform:scale(.9); opacity:0;
  transition:transform .45s cubic-bezier(.2,.9,.25,1), opacity .35s ease}
#coZoomOv.show .coZoomIn{transform:none; opacity:1}
#coZoomOv img{width:100%; height:auto; display:block; border-radius:16px}
#coZoomOv .coZoomT{margin-top:16px; font-family:Georgia,'Noto Serif','Times New Roman',serif;
  font-weight:900; font-size:21px; color:#f5efe4}
#coZoomOv .coZoomS{margin-top:6px; font-family:'Montserrat',system-ui,sans-serif;
  font-size:13px; color:var(--catB,#f2c744)}
.coCard{cursor:pointer}

/* ===== Progresul din salutul zilnic =====
   Aceeasi grila ca in colectie, mai mica. Pe fetru deschis, deci culorile sunt
   inversate fata de foaia de colectie. */
#hsPop .coMini{margin-top:16px; padding-top:14px; border-top:1px solid rgba(27,23,48,.13)}
#hsPop .coMiniHd{display:flex; align-items:center; gap:8px; margin-bottom:9px}
#hsPop .coMiniHd img{width:26px; height:26px; border-radius:50%; display:block}
#hsPop .coMiniHd b{flex:1; text-align:left; font-family:'Montserrat',system-ui,sans-serif;
  font-weight:600; font-size:12.5px; color:#1b1730}
#hsPop .coMiniHd i{font-family:'Montserrat',system-ui,sans-serif; font-style:normal;
  font-weight:700; font-size:12px; color:#6b5a2e}
#hsPop .coMiniGrid{display:grid; grid-template-columns:repeat(9,1fr); gap:4px}
#hsPop .coMiniIt{display:block; aspect-ratio:1/1; border-radius:5px; overflow:hidden}
#hsPop .coMiniIt img{width:100%; height:100%; object-fit:cover; object-position:center; display:block}
#hsPop .coMiniIt:not(.on) img{opacity:.28; filter:saturate(.5)}

/* ===== Reguli generale pentru interiorul uneltelor =====
   Toate se leaga de `.thHero ~ div`, adica se aplica DOAR inauntrul panoului de
   unealta. Aceleasi componente folosite in alta parte raman neatinse.
   Fisierul asta se incarca ultimul, deci regulile de aici castiga fara
   `!important` acolo unde nu concureaza cu un stil scris inline. */

/* 1. Titlurile: Georgia bold, inchis, de aceeasi marime peste tot */
.thHero ~ div h2,
.thHero ~ div h3,
.thHero ~ div .hsQ,
.thHero ~ div .mtQ,
.thHero ~ div .rfSecH,
.thHero ~ div .htName,
.thHero ~ div .mtHistT,
.thHero ~ div .hsLine{
  font-family:Georgia,'Noto Serif','Times New Roman',serif;
  font-weight:700; font-size:17.5px; line-height:1.32; color:#141022}

/* 2. Aer in jurul continutului, pe toate patru laturile */
.thHero ~ div{padding:20px !important}

/* 3. Butoanele sunt PLATE: fara textura de fetru, fara border-image */
.thHero ~ div .hsBtn,
.thHero ~ div .mtBtn,
.thHero ~ div .hsOpt,
.thHero ~ div .mtOpt{
  border-image:none !important; border-style:none !important; border-width:0 !important;
  background:#ffffff; border-radius:14px;
  padding:13px 16px; min-height:46px; color:#141022;
  box-shadow:0 2px 8px -5px rgba(10,8,22,.45)}
.thHero ~ div .hsOpt.on,
.thHero ~ div .mtOpt.on{background:#141022; color:#f5efe4}
.thHero ~ div .hsBtn:active,
.thHero ~ div .mtBtn:active{transform:scale(.98)}

/* 4. Punctele de pagina: alb translucid, cel curent alb plin */
.thHero ~ div .hsDots i,
.thHero ~ div .mtDots i{background:rgba(255,255,255,.70)}
.thHero ~ div .hsDots i.on,
.thHero ~ div .mtDots i.on{background:#ffffff}

/* 5. Paginile colectionate: albe, cu o cusatura gri discreta de jur imprejur */
.thHero ~ div .hsDay{
  background-color:#ffffff !important;
  border:1px dashed rgba(90,84,110,.42) !important;
  border-radius:14px; box-shadow:none}
.thHero ~ div .hsDay .n{color:#141022}
/* numele lunii intreg, cu aer intre el si numar */
.thHero ~ div .hsDay .m{color:rgba(20,16,34,.72); margin-top:5px; font-size:11px}

/* 6. Butonul de la finalul uneltei: albastru deschis, text negru */
.thHero ~ div .endBack .ghost,
.endBack .ghost{
  background:var(--catFelt, #c3dcef) !important;
  border:1px solid rgba(20,16,34,.14) !important;
  color:#141022 !important; opacity:1 !important;
  font-family:Georgia,'Noto Serif','Times New Roman',serif;
  font-weight:700; font-size:14.5px; padding:15px 18px}

/* 7. Placa incetosata din spatele titlului nu mai e necesara: poza are partea
      de sus goala, deci titlul se citeste oricum */
header:before{display:none}

/* 8. Peisajul de categorie din spatele grilei de unelte, scos.
      L-am pus la 769 ca sa dea textura, dar acum fiecare placa isi poarta
      propria scena, iar fundalul de sub ele doar ingreuna imaginea. */
#toolGrid:before{display:none}

/* ===== Obiceiuri si celelalte unelte cu formular propriu =====
   `bigCard`, `yInput` si `cta` sunt a treia familie de clase, dupa `hs` si
   `mt`. Nu erau acoperite, deci formularul isi pastra cardul lui albastru pe
   panoul albastru: iar doua cartonase una in alta.

   Aici le aducem la aceleasi reguli: card transparent, titluri Georgia inchise,
   casete albe si butoane plate. */
.thHero ~ div .bigCard{
  background:none !important; background-image:none !important;
  border:0 !important; box-shadow:none !important;
  border-radius:0; padding:0 !important}
.thHero ~ div .bigCard b,
.thHero ~ div .bigCard > b:first-child{
  font-family:Georgia,'Noto Serif','Times New Roman',serif;
  font-weight:700; font-size:17.5px; line-height:1.32; color:#141022}
.thHero ~ div .bigCard p,
.thHero ~ div .bigCard .sub{color:rgba(20,16,34,.78)}
/* casetele de scris: albe, late cat butonul */
.thHero ~ div .yInput,
.thHero ~ div input[type="text"],
.thHero ~ div textarea{
  width:100%; box-sizing:border-box;
  background:#ffffff !important; border:1px solid rgba(20,16,34,.12) !important;
  border-radius:14px !important; padding:14px 15px !important;
  color:#141022 !important; font-size:14.5px}
.thHero ~ div .yInput::placeholder,
.thHero ~ div input::placeholder,
.thHero ~ div textarea::placeholder{color:rgba(20,16,34,.42)}
/* butonul principal, plat ca celelalte */
.thHero ~ div .cta{
  background:#141022 !important; background-image:none !important;
  color:#f5efe4 !important; border:0 !important; border-radius:14px !important;
  font-family:Georgia,'Noto Serif','Times New Roman',serif;
  font-weight:700; font-size:15px; box-shadow:none !important}
/* Titlul din formular era rescris de o regula mai specifica din alt fisier,
   deci ramanea la 14,5px. Aici il fortam la marimea comuna. */
.thHero ~ div .bigCard b,
.thHero ~ div .bigCard h3,
.thHero ~ div .bigCard .t{font-size:17.5px !important; color:#141022 !important;
  font-family:Georgia,'Noto Serif','Times New Roman',serif !important; font-weight:700 !important}

/* ===== Butoanele uneltelor, varianta cusuta =====
   Facute DOAR din CSS, fara nicio imagine PNG. Suprafata plata cu fibra foarte
   fina, si o cusatura punctata trasa la patru pixeli inauntru, printr-un
   pseudo-element. Nicio umbra: butonul pare cusut DE panou, nu asezat pe el.

   Se aplica pe toate cele patru familii gasite pana acum, `hs`, `mt`, formular
   si `cta`, si sunt legate de `.thHero ~ div`, deci acopera Mintea acum si
   Corpul cu Sufletul automat, cand primesc si ele poze de introducere. */
.thHero ~ div .hsBtn,
.thHero ~ div .mtBtn,
.thHero ~ div .hsOpt,
.thHero ~ div .mtOpt,
.thHero ~ div .cta{
  position:relative; border:0 !important; border-image:none !important;
  background-color:#fbf7ee !important;
  background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2080%2080%27%20preserveAspectRatio%3D%27none%27%3E%3Cfilter%20id%3D%27f%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%271.1%27%20numOctaves%3D%272%27%20seed%3D%279%27/%3E%3CfeColorMatrix%20type%3D%27saturate%27%20values%3D%270%27/%3E%3C/filter%3E%3Crect%20width%3D%27100%25%27%20height%3D%27100%25%27%20filter%3D%27url%28%2523f%29%27%20opacity%3D%27.10%27/%3E%3C/svg%3E") !important; background-size:70px 70px !important;
  border-radius:14px !important; color:#141022 !important;
  box-shadow:inset 0 0 0 1px rgba(20,16,34,.10) !important;
  font-family:Georgia,'Noto Serif','Times New Roman',serif !important;
  font-weight:700; padding:14px 16px; min-height:50px;
  display:flex; align-items:center; justify-content:center; text-align:center;
  transition:transform .14s ease, background-color .18s ease}
/* cusatura punctata, trasa in interiorul marginii */
.thHero ~ div .hsBtn:before,
.thHero ~ div .mtBtn:before,
.thHero ~ div .hsOpt:before,
.thHero ~ div .mtOpt:before,
.thHero ~ div .cta:before{
  content:''; position:absolute; inset:4px; border-radius:10px;
  border:1.5px dashed rgba(20,16,34,.30); pointer-events:none}
.thHero ~ div .hsBtn:active,
.thHero ~ div .mtBtn:active,
.thHero ~ div .hsOpt:active,
.thHero ~ div .mtOpt:active,
.thHero ~ div .cta:active{transform:translateY(1px) scale(.995)}
/* optiunea aleasa: fond inchis, cusatura devine deschisa */
.thHero ~ div .hsOpt.on,
.thHero ~ div .mtOpt.on{background-color:#141022 !important; color:#f7f2e6 !important}
.thHero ~ div .hsOpt.on:before,
.thHero ~ div .mtOpt.on:before{border-color:rgba(247,242,230,.42)}
/* optiunile sunt mai mici, ca sa incapa trei pe rand */
.thHero ~ div .hsOpt,
.thHero ~ div .mtOpt{font-size:12.5px; padding:11px 8px; min-height:42px}
/* butonul secundar: doar conturul, fara fond */
.thHero ~ div .ghostB,
.thHero ~ div .hsBtn.ghostB,
.thHero ~ div .mtBtn.ghostB{
  background-color:transparent !important; background-image:none !important;
  color:rgba(20,16,34,.72) !important}

/* ===== REGULA GENERALA A BUTOANELOR =====
   Contrastul se ia din fundal, nu se scrie de mana la fiecare buton:

     fundal inchis sau albastru  ->  buton ALB, text albastru inchis
     fundal alb                  ->  buton ALBASTRU, text alb
     buton ales                  ->  albastru putin mai adanc decat fundalul

   Cele trei stari sunt trei variabile. Orice buton nou le mosteneste, deci nu
   mai trebuie sa ne gandim la contrast de fiecare data. */
:root{
  --btnFelt:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2080%2080%27%20preserveAspectRatio%3D%27none%27%3E%3Cfilter%20id%3D%27f%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%271.1%27%20numOctaves%3D%272%27%20seed%3D%279%27/%3E%3CfeColorMatrix%20type%3D%27saturate%27%20values%3D%270%27/%3E%3C/filter%3E%3Crect%20width%3D%27100%25%27%20height%3D%27100%25%27%20filter%3D%27url%28%2523f%29%27%20opacity%3D%27.10%27/%3E%3C/svg%3E");
  --btnLight:#fbf7ee;                 /* fata deschisa */
  --btnInk:#14304d;                   /* textul pe fata deschisa */
  --btnDark:#1d3f63;                  /* fata albastra */
  --btnDarkInk:#f7f2e6;               /* textul pe fata albastra */
  --btnStitch:rgba(20,48,77,.30);     /* cusatura pe fata deschisa */
  --btnStitchL:rgba(247,242,230,.42); /* cusatura pe fata albastra */
}
/* alesul: mai adanc decat panoul sectiunii, nu negru */
[data-cat] .thHero ~ div .hsOpt.on,
[data-cat] .thHero ~ div .mtOpt.on,
[data-cat] .csCatCol button.on{
  background-color:color-mix(in srgb, var(--catFelt,#c3dcef) 46%, #12395c) !important;
  color:#f7f2e6 !important}

/* ===== Butoanele, in TOATE uneltele =====
   Legate de ecran, nu de panou: `Goleste Mintea` si Cartile aveau familii
   proprii care ramasesera pe stilul vechi. */
.screen:not(#s-hub) .hsBtn,
.screen:not(#s-hub) .mtBtn,
.screen:not(#s-hub) .hsOpt,
.screen:not(#s-hub) .mtOpt,
.screen:not(#s-hub) .cta,
.screen:not(#s-hub) .bdPill,
.screen:not(#s-hub) .bdDraw,
.screen:not(#s-hub) .csCatCol button,
.screen:not(#s-hub) .csBig button{
  position:relative; border:0 !important; border-image:none !important;
  background-color:var(--btnLight) !important;
  background-image:var(--btnFelt) !important; background-size:70px 70px !important;
  border-radius:14px !important; color:var(--btnInk) !important;
  box-shadow:inset 0 0 0 1px rgba(20,48,77,.10) !important;
  font-family:Georgia,'Noto Serif','Times New Roman',serif !important;
  font-weight:700; cursor:pointer;
  transition:transform .14s ease, background-color .18s ease}
.screen:not(#s-hub) .hsBtn:before,
.screen:not(#s-hub) .mtBtn:before,
.screen:not(#s-hub) .hsOpt:before,
.screen:not(#s-hub) .mtOpt:before,
.screen:not(#s-hub) .cta:before,
.screen:not(#s-hub) .bdPill:before,
.screen:not(#s-hub) .bdDraw:before,
.screen:not(#s-hub) .csCatCol button:before,
.screen:not(#s-hub) .csBig button:before{
  content:''; position:absolute; inset:4px; border-radius:10px;
  border:1.5px dashed var(--btnStitch); pointer-events:none}
.screen:not(#s-hub) .hsBtn:active,
.screen:not(#s-hub) .mtBtn:active,
.screen:not(#s-hub) .cta:active,
.screen:not(#s-hub) .csBig button:active{transform:translateY(1px) scale(.995)}

/* butonul care sta pe o SUPRAFATA ALBA se inverseaza: albastru cu text alb */
.hsPlate .hsBtn, .hsPlate .mtBtn, .hsPlate button,
.mtPlate .mtBtn, .mtPlate button,
.thHero ~ div .bigCard .cta{
  background-color:var(--btnDark) !important; background-image:none !important;
  color:var(--btnDarkInk) !important;
  box-shadow:inset 0 0 0 1px rgba(20,48,77,.25) !important}
.hsPlate .hsBtn:before, .hsPlate .mtBtn:before, .hsPlate button:before,
.mtPlate .mtBtn:before, .mtPlate button:before,
.thHero ~ div .bigCard .cta:before{border-color:var(--btnStitchL)}
/* butonul secundar din caseta ramane deschis, ca sa se distinga de cel principal */
.hsPlate .ghostB, .mtPlate .ghostB{
  background-color:var(--btnLight) !important; color:var(--btnInk) !important}
.hsPlate .ghostB:before, .mtPlate .ghostB:before{border-color:var(--btnStitch)}

/* ===== Cele doua feluri de joc, unul langa altul, cu semnul lor ===== */
.csBig{display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:14px}
.csBig button{display:flex; flex-direction:column; align-items:center; justify-content:flex-start;
  gap:6px; padding:18px 12px 16px; min-height:132px; text-align:center}
.csBig button b{font-size:14.5px; line-height:1.25}
.csBig button span{font-size:11.5px; font-weight:400; line-height:1.4;
  font-family:'Montserrat',system-ui,sans-serif; opacity:.78}
/* semnele: un jucator, respectiv doi, desenate din cerc si arc */
.csBig button:after{content:''; width:30px; height:26px; display:block; order:-1;
  background-repeat:no-repeat; background-position:center; background-size:contain; opacity:.8}
.csBig button:first-child:after{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 26' fill='none' stroke='%2314304d' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='15' cy='8' r='5'/%3E%3Cpath d='M6 24c0-5 4-8 9-8s9 3 9 8'/%3E%3C/svg%3E")}
.csBig button:last-child:after{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 26' fill='none' stroke='%2314304d' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10' cy='8' r='4.4'/%3E%3Ccircle cx='22' cy='9.5' r='3.6'/%3E%3Cpath d='M2 24c0-4.6 3.6-7.4 8-7.4s8 2.8 8 7.4'/%3E%3Cpath d='M20 17.2c4 0 8 2.4 8 6.8'/%3E%3C/svg%3E")}

/* ===== Meniuri pliante: text albastru inchis, capacul alb la jumatate ===== */
.thHero ~ div details,
.thHero ~ div .bdCard,
.thHero ~ div .ladder{
  background:rgba(255,255,255,.50) !important;
  border:1px solid rgba(20,48,77,.12) !important;
  border-radius:14px; color:var(--btnInk) !important}
.thHero ~ div details summary,
.thHero ~ div .bdCard b,
.thHero ~ div .ladder b{color:var(--btnInk) !important;
  font-family:Georgia,'Noto Serif','Times New Roman',serif}
.thHero ~ div .bdChev,
.thHero ~ div .bdDecChev{color:var(--btnInk) !important; opacity:.6}

/* ===== Paginile colectionate, acelasi tratament cusut ===== */
.screen:not(#s-hub) .hsDay{
  position:relative; background-color:var(--btnLight) !important;
  background-image:var(--btnFelt) !important; background-size:70px 70px !important;
  border:0 !important; border-radius:14px;
  box-shadow:inset 0 0 0 1px rgba(20,48,77,.10) !important}
.screen:not(#s-hub) .hsDay:before{
  content:''; position:absolute; inset:4px; border-radius:10px;
  border:1.5px dashed var(--btnStitch); pointer-events:none}
.screen:not(#s-hub) .hsDay .n{color:var(--btnInk)}
.screen:not(#s-hub) .hsDay .m{color:rgba(20,48,77,.68); margin-top:5px}

/* ===== Butonul de inapoi, rotund peste tot in aplicatie ===== */
#backBtn{border-radius:999px !important}
