/* booqli Games – המבנה החדש (18.11.2026). מינימליסטי: מסך = כותרת אחת + מה שצריך עכשיו.
   הרקע החלומי (זוהר וכוכבים) מגיע מ-dream.css דרך class="dream". כאן: מבנה, כרטיסים וניווט. */
:root{--pk:#FA57C4;--pk2:#E0399F;--mg:#C13671;--mint:#E1F0EA;--sage:#6F988B;--sage2:#4E8576;--ink:#213330;--sub:#566B67;
  --glass:rgba(255,255,255,.78);--line:linear-gradient(120deg,#FFB3E2,#CBE3DC,#FFE3A3,#9ED8CA,#FFB3E2)}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:76px}
body{margin:0;min-height:100vh;display:flex;flex-direction:column;font:400 17px/1.5 Assistant,Arial,sans-serif;color:var(--ink);direction:rtl;background:#FFF8FC}
a{color:inherit}
button{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--sage2);outline-offset:2px;border-radius:12px}
main{flex:1;width:100%;max-width:760px;margin:0 auto;padding:22px max(16px,env(safe-area-inset-right)) 40px max(16px,env(safe-area-inset-left))}

/* ---------- כותרת: תמיד אותו דבר, בכל עמוד ---------- */
.hb-top{position:sticky;top:0;z-index:60;background:rgba(255,250,253,.72);-webkit-backdrop-filter:blur(14px) saturate(1.4);backdrop-filter:blur(14px) saturate(1.4);border-bottom:1px solid rgba(250,87,196,.16)}
.hb-top .in{max-width:760px;margin:0 auto;display:flex;align-items:center;gap:10px;min-height:60px;padding:6px max(12px,env(safe-area-inset-right)) 6px max(12px,env(safe-area-inset-left))}
.hb-top .logo{display:flex;align-items:center;gap:8px;text-decoration:none;flex-shrink:0}
.hb-top .logo img{display:block;height:34px;width:auto}
.hb-top .logo span{font:700 19px Fredoka,Assistant,sans-serif;color:var(--mg);white-space:nowrap}
.hb-top .logo i{font-style:normal;color:var(--sage2)}
.hb-top .back{display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;border-radius:50%;background:#fff;text-decoration:none;font-size:22px;font-weight:800;color:var(--sage2);box-shadow:0 3px 10px rgba(79,133,118,.16)}
.hb-top .crumb{flex:1;min-width:0;display:flex;align-items:center;gap:6px;font-size:15px;color:var(--sub);white-space:nowrap;overflow:hidden}
.hb-top .crumb a{text-decoration:none;font-weight:700}
.hb-top .crumb b{overflow:hidden;text-overflow:ellipsis;color:var(--ink)}
.hb-top .sp{flex:1}
.hb-top .find{display:flex;align-items:center;gap:6px;flex-shrink:0;height:44px;padding:0 16px;border:0;border-radius:999px;background:#fff;cursor:pointer;font-weight:800;font-size:15px;box-shadow:0 3px 10px rgba(79,133,118,.16)}
/* טלפון: מקום לשם הלוגו או למיקום – לא לשניהם */
@media (max-width:560px){.hb-top .back~.logo span{display:none}.hb-top .find .w{display:none}.hb-top .find{width:44px;padding:0;justify-content:center}}
@media (max-width:359px){.hb-top .crumb>a,.hb-top .crumb>span{display:none}}

/* ---------- כותרת העמוד ---------- */
.hb-h1{margin:6px 0 20px;text-align:center;font:700 clamp(26px,6.4vw,38px)/1.2 Fredoka,Assistant,sans-serif;
  background:linear-gradient(100deg,#E33BAE,#FA57C4,#4E8576,#E33BAE);background-size:300% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:dzShimmer 8s linear infinite}
.hb-h1 span{-webkit-text-fill-color:initial}

/* ---------- דף הבית: 4 כרטיסים ---------- */
.hb-pillars{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.hb-pillar{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:6px;min-height:178px;padding:20px 12px;border-radius:28px;text-decoration:none;
  border:2.5px solid transparent;background:linear-gradient(#FFFDFE,#FFFDFE) padding-box,conic-gradient(from var(--a),transparent 0 62%,rgba(255,255,255,.95) 70%,#FA57C4 74%,#FFC857 78%,transparent 86%) border-box,var(--line) border-box;
  box-shadow:0 10px 30px rgba(250,87,196,.12);animation:dzRun 7s linear infinite;transition:transform .18s,box-shadow .2s}
.hb-pillar:nth-child(2){animation-delay:-1.8s}.hb-pillar:nth-child(3){animation-delay:-3.6s}.hb-pillar:nth-child(4){animation-delay:-5.4s}
.hb-pillar:hover{transform:translateY(-3px);box-shadow:0 16px 38px rgba(250,87,196,.2)}
.hb-pillar .ic{font-size:46px;line-height:1}
.hb-pillar b{font:700 19px/1.25 Fredoka,Assistant,sans-serif}
.hb-pillar small{font-size:14.5px;color:var(--sub);font-weight:600}
@media (max-width:359px){.hb-pillar{min-height:150px;padding:14px 8px}.hb-pillar .ic{font-size:38px}.hb-pillar b{font-size:16.5px}.hb-pillar small{font-size:13px}}
.hb-now{display:flex;align-items:center;justify-content:center;gap:8px;margin:20px auto 0;width:fit-content;max-width:100%;padding:12px 22px;border-radius:999px;background:var(--glass);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);text-decoration:none;font-size:16.5px;box-shadow:0 4px 14px rgba(79,133,118,.12)}

/* ---------- פעולה ראשית אחת ---------- */
.hb-main{display:flex;align-items:center;gap:14px;padding:18px 20px;margin-bottom:16px;border-radius:24px;text-decoration:none;color:#fff;
  background:linear-gradient(110deg,#FA57C4,#E33BAE,#D63AA6,#FA57C4);background-size:250% 100%;box-shadow:0 10px 26px rgba(214,58,166,.35);animation:dzShimmer 6s linear infinite}
.hb-main .ic{font-size:36px;line-height:1}
.hb-main b{display:block;font:700 19px/1.25 Fredoka,Assistant,sans-serif}
.hb-main small{display:block;font-size:14.5px;opacity:.95;font-weight:600}

/* ---------- קבוצה נפתחת – רק אחת פתוחה ---------- */
.hb-groups{display:grid;gap:10px;margin-bottom:10px}
.hb-grp{border-radius:22px;background:var(--glass);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 4px 16px rgba(79,133,118,.10);border:1.5px solid rgba(203,227,220,.9)}
.hb-grp[open]{border-color:#FFB3E2;box-shadow:0 10px 28px rgba(250,87,196,.13)}
.hb-grp summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:12px;min-height:62px;padding:10px 18px;border-radius:22px}
.hb-grp summary::-webkit-details-marker{display:none}
.hb-grp summary .ic{font-size:26px;line-height:1}
.hb-grp summary b{flex:1;font:600 18px/1.25 Fredoka,Assistant,sans-serif}
.hb-grp summary .n{min-width:30px;height:26px;padding:0 8px;display:grid;place-items:center;border-radius:999px;background:var(--mint);color:var(--sage2);font-weight:800;font-size:14px}
.hb-grp summary .ar{width:10px;height:10px;border-inline-start:2.5px solid var(--sage2);border-bottom:2.5px solid var(--sage2);transform:rotate(-45deg);transition:transform .2s;margin-inline-start:4px}
.hb-grp[open] summary .ar{transform:rotate(135deg)}
.hb-grp .hb-list{padding:0 10px 10px}

/* ---------- שורה אחידה לכל תוכן ---------- */
.hb-list{display:grid;gap:8px}
.hb-row{display:flex;align-items:center;gap:12px;width:100%;min-height:58px;padding:9px 14px;border-radius:16px;background:#fff;text-decoration:none;border:1.5px solid #EEF4F1;text-align:start;cursor:pointer;transition:border-color .15s,transform .15s}
.hb-row:hover{border-color:#FFB3E2;transform:translateX(-2px)}
.hb-row .ic{font-size:26px;line-height:1;width:34px;text-align:center;flex-shrink:0}
.hb-row .tx{flex:1;min-width:0}
.hb-row b{display:block;font-weight:700;font-size:16.5px;line-height:1.3}
.hb-row small{display:block;font-size:13.5px;color:var(--sub);font-weight:600}
.hb-row .go{font-size:22px;color:var(--pk);font-weight:800}
.hb-row .chip{flex-shrink:0;font-size:12.5px;font-weight:800;padding:4px 10px;border-radius:999px;background:#FFF3CF;color:#8A5A00;white-space:nowrap}
.hb-row.dim b,.hb-row.dim .ic{opacity:.6}

/* ---------- "עכשיו בלוח השנה" ---------- */
.hb-feature{margin-bottom:16px;padding:12px;border-radius:24px;background:linear-gradient(135deg,rgba(253,230,246,.9),rgba(225,240,234,.9));box-shadow:0 6px 20px rgba(250,87,196,.1);display:grid;gap:8px}
.hb-feature .lbl,.hb-ages .lbl{font-weight:800;font-size:14.5px;color:var(--sage2);padding:0 6px}

/* ---------- גיל ---------- */
.hb-ages{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;margin-bottom:16px}
.hb-ages .lbl{width:100%;text-align:center}
.hb-ages button{min-width:48px;height:48px;padding:0 12px;border-radius:999px;border:2px solid #CDE7DC;background:#fff;font-weight:800;font-size:18px;cursor:pointer}
.hb-ages button.all{font-size:15px}
.hb-ages button[aria-pressed=true]{background:var(--pk);border-color:var(--pk);color:#fff;box-shadow:0 6px 16px rgba(250,87,196,.35)}

/* ---------- מדף הספרים ---------- */
.hb-shelf{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 2px 12px;margin-bottom:6px;scrollbar-width:thin}
.hb-shelf a{flex:0 0 min(70%,250px);scroll-snap-align:center;text-decoration:none;text-align:center;font-weight:700;font-size:15px}
.hb-shelf img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:18px;background:#fff;box-shadow:0 8px 22px rgba(33,51,48,.14);margin-bottom:6px}

/* ---------- חיפוש ---------- */
.hb-find{width:min(640px,100%);max-width:100%;max-height:min(86vh,760px);margin:max(10px,env(safe-area-inset-top)) auto auto;padding:0;border:0;border-radius:24px;background:#FFFDFE;box-shadow:0 24px 60px rgba(33,51,48,.3);direction:rtl;color:var(--ink)}
.hb-find::backdrop{background:rgba(33,51,48,.35);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.hb-find .bar{position:sticky;top:0;display:flex;align-items:center;gap:8px;padding:12px 14px;background:#FFFDFE;border-bottom:1px solid #EEF4F1}
.hb-find input{flex:1;min-width:0;height:48px;padding:0 14px;border:2px solid #CDE7DC;border-radius:999px;font:600 17px Assistant,Arial,sans-serif;background:#fff}
.hb-find input:focus{outline:none;border-color:var(--pk)}
.hb-find .x{width:44px;height:44px;border:0;border-radius:50%;background:var(--mint);font-size:18px;cursor:pointer}
.hb-find .res{padding:10px 14px 16px}
.hb-find h3{margin:14px 4px 8px;font:600 16px Fredoka,Assistant,sans-serif;color:var(--sage2)}
.hint{text-align:center;color:var(--sub);font-weight:600}

/* ---------- תחתית ---------- */
footer.foot{margin-top:auto;padding:16px 0 6px;text-align:center;color:#fff;background:linear-gradient(120deg,#2F6F63,#6DAFA1)}
footer.foot .wrap>p{margin:0 auto;padding:0 16px;font-weight:700;font-size:15px}
footer.foot a{color:#fff}

@media (prefers-reduced-motion:reduce){.hb-h1,.hb-pillar,.hb-main{animation:none!important}.hb-row,.hb-pillar{transition:none}}
@media print{.hb-top,.hb-find,footer.foot{display:none}}
