/* עיצוב "פופ" — צהוב, קווים שחורים עבים, כפתורים כמו מדבקות.
   הכל תחת html.pop (ברירת המחדל; ?pop=0 מכבה). צבעי המפה עצמה (canvas) ב-index.html (TH). */
html.pop{
  --donkey:#e8563a; --donkey-lt:#ff9270; --bg:#ffd84d; --bg2:#fff; --border:#1b1410;
  --text:#1b1410; --muted:#6b5a2a; --shadow:4px 4px 0 #1b1410; --community:#7c3aed;
  --ink:#1b1410; --lilac:#c9b8ff; --cream:#fff8dc;
}
html.pop body{ font-family:'Rubik','Heebo',sans-serif; }
html.pop input, html.pop textarea, html.pop button{ font-family:inherit; }
html.pop canvas{ touch-action:none; }  /* צביטה ביד מזיזה את המפה, לא את הדף */

/* ── המפה (index.html) ── */
html.pop #header{ background:transparent; backdrop-filter:none; border-bottom:none; }
html.pop .header-btn, html.pop #search{ border-width:2.5px; border-radius:14px; font-family:inherit; font-weight:500; }
html.pop #search:focus{ border-color:var(--ink); background:var(--cream); }
html.pop .header-btn.primary{ border-color:var(--ink); }
html.pop .brand-text{ font-family:'Rubik',sans-serif; font-weight:900; }
html.pop .brand-logo{ border:2.5px solid var(--ink); font-family:'Rubik',sans-serif; font-weight:900; }
html.pop .user-chip, html.pop .score-chip{ background:#fff; border:2.5px solid var(--ink); color:var(--ink); }
html.pop #search-results{ border-width:2.5px; border-radius:14px; }
html.pop #filters{ background:#fff; backdrop-filter:none; border-width:2.5px; }
html.pop .f-chip.on{ background:var(--cream); border-color:var(--ink); }
html.pop #stats{ background:#fff; }
html.pop #intro{ border:3px solid var(--ink); border-radius:16px; }
html.pop #tooltip{ border-width:2px; box-shadow:3px 3px 0 var(--ink); }

html.pop #panel{ border-right:3px solid var(--ink); }
html.pop #panel h1{ font-family:'Rubik',sans-serif; font-weight:900; color:var(--ink); line-height:1.15; }
html.pop #panel h2{ text-transform:none; letter-spacing:0; color:var(--ink); font-weight:700; font-size:15px; border-bottom-width:2px; }
html.pop .panel-empty-card{ background:var(--cream); border:3px solid var(--ink); box-shadow:5px 5px 0 var(--ink); }
html.pop .panel-empty-card h2{ font-family:'Rubik',sans-serif; font-weight:900; border:none; font-size:22px; }
html.pop .meta-chip{ background:#fff; border:2px solid var(--ink); color:var(--ink); font-weight:500; border-radius:10px; }
html.pop .meta-chip.typed{ background:var(--donkey); color:#fff !important; border-color:var(--ink) !important; }
html.pop .panel-actions button{ border:2.5px solid var(--ink); box-shadow:3px 3px 0 var(--ink); border-radius:12px; font-weight:700; background:#fff; }
html.pop .panel-actions button.community{ background:var(--lilac); color:var(--ink); border-color:var(--ink); }
html.pop .panel-actions #pop-share{ background:var(--donkey); color:#fff; }
html.pop #panel a.wikilink{ color:var(--ink); background:#ffe98f; border-bottom:2px solid var(--ink); border-radius:3px; padding:0 3px; }
html.pop #panel a.ts-link, html.pop .transcript-line .ts{ background:var(--lilac); color:var(--ink); font-weight:700; }
html.pop .tab.active{ color:var(--ink); border-bottom-color:var(--donkey); font-weight:700; }
html.pop .comment{ background:var(--cream); border:2px solid var(--ink); }
html.pop .comment-author{ color:var(--ink); }
html.pop .line-fb{ opacity:.7; }
html.pop .suggest-btn{ border:2px dashed var(--ink); color:var(--ink); font-weight:600; }

html.pop .modal{ border:3px solid var(--ink); box-shadow:8px 8px 0 var(--ink); }
html.pop .modal h2, html.pop .menu-head{ font-family:'Rubik',sans-serif; font-weight:900; color:var(--ink); }
html.pop .modal-bg{ backdrop-filter:none; }
html.pop #menu{ border-left:3px solid var(--ink); box-shadow:none; }
html.pop .m-row:hover, html.pop .sr-item:hover, html.pop .np-item:hover{ background:var(--cream); }
html.pop .m-tools button, html.pop .m-tools a{ border:2px solid var(--ink); font-weight:500; }
html.pop .m-tools .on{ background:var(--donkey); color:#fff; border-color:var(--ink); }
html.pop ::-webkit-scrollbar-thumb{ background:var(--ink); }

/* מגירת "מאיפה מתחילים" + לשוניות תחתונות — רק בנייד (pop.js יוצר אותן) */
#pop-start, #pop-tabs{ display:none; }

@media (max-width:768px){
  html.pop #header{ flex-wrap:wrap; padding:10px 12px 0; gap:8px; }
  html.pop .brand{ order:-2; flex:1; margin:0 !important; }
  html.pop .brand-logo{ display:none; }
  html.pop .brand-text{ display:block !important; font-size:20px; line-height:1.1; }
  html.pop #open-menu, html.pop #auth-area{ order:-1; }
  html.pop #header a[href="/questions"]{ display:none; }
  html.pop #search{ order:5; flex:1 1 100%; max-width:none; height:46px; font-size:16px; padding:0 16px; }
  html.pop #search-results{ top:114px; }
  html.pop #intro{ display:none; }  /* בנייד ההסבר עבר לשורה במגירה התחתונה */
  html.pop #app{ height:100dvh; }
  html.pop #selection-banner{ top:118px; }
  html.pop #filters{ display:none; }
  html.pop #panel{ border-right:none; border-top:3px solid var(--ink); border-radius:22px 22px 0 0; box-shadow:none; }
  html.pop .mobile-handle{ background:var(--ink); opacity:.35; }
  html.pop #panel h1{ font-size:26px; }
  /* מטרות מגע: לפחות 44px גובה לכל מה שלוחצים עליו באצבע */
  html.pop .header-btn{ min-height:44px; display:inline-flex; align-items:center; padding:0 14px; font-size:14px; }
  html.pop .panel-actions button{ min-height:44px; }
  html.pop #mobile-close-btn{ min-width:44px; min-height:44px; font-size:24px; color:var(--ink); }
  html.pop .sr-item, html.pop .m-row{ min-height:48px; font-size:15px; }
  html.pop .tab{ min-height:44px; display:flex; align-items:center; }

  html.pop #pop-tabs{ display:flex; position:fixed; inset:auto 0 0 0; z-index:40; height:calc(58px + env(safe-area-inset-bottom));
    padding-bottom:env(safe-area-inset-bottom); background:#fff; border-top:3px solid var(--ink); }
  html.pop #pop-tabs a{ flex:1; display:flex; align-items:center; justify-content:center; font-size:15px; font-weight:500;
    color:var(--muted); text-decoration:none; }
  html.pop #pop-tabs #pop-quick{ flex:none; margin:8px 10px; padding:0 12px; border:2.5px solid var(--ink); border-radius:12px; background:var(--donkey); color:#fff; font-weight:700; }
  html.pop #quick-note{ display:none; }  /* בנייד הכפתור יושב בשורת הלשוניות */
  html.pop #pop-tabs a{ font-size:14px; }
  html.pop #pop-tabs a.on{ color:var(--ink); font-weight:700; box-shadow:inset 0 4px 0 var(--donkey); }

  html.pop #pop-start{ display:block; position:fixed; inset:auto 0 calc(58px + env(safe-area-inset-bottom)) 0; z-index:39;
    background:#fff; border-top:3px solid var(--ink); border-radius:22px 22px 0 0; padding:8px 16px 14px; }
  html.pop #pop-start .mobile-handle{ margin:0 auto 8px; }
  html.pop #pop-start h2{ font-family:'Rubik',sans-serif; font-weight:900; font-size:24px; line-height:1.1; }
  /* שורה אחת שנגללת הצידה: משאירה למפה יותר מקום */
  html.pop #pop-chips{ display:flex; gap:8px; margin:10px -16px 0; padding:0 16px 6px; overflow-x:auto; scrollbar-width:none; }
  html.pop #pop-chips::-webkit-scrollbar{ display:none; }
  html.pop #pop-chips button{ flex-shrink:0; white-space:nowrap; }
  html.pop #pop-chips button{ font-size:15px; font-weight:500; min-height:44px; padding:8px 13px; border-radius:12px; border:2.5px solid var(--ink);
    box-shadow:3px 3px 0 var(--ink); background:#fff; color:var(--ink); cursor:pointer; }
  html.pop #pop-chips button:nth-child(3n+1){ background:var(--lilac); }
  html.pop #pop-chips button:nth-child(3n+2){ background:var(--donkey-lt); }
  html.pop #pop-chips #pop-dice{ background:var(--ink); color:#fff; }
  html.pop #pop-note{ display:block; margin-top:8px; font-size:13px; line-height:1.45; color:var(--muted); }
  html.pop #pop-note a{ color:var(--ink); font-weight:700; }
  html.pop #pop-start.min #pop-chips, html.pop #pop-start.min #pop-note{ display:none; }
  html.pop body:has(#panel.mobile-open) #pop-start{ display:none; }
}

/* ── עמוד השאלות (questions.html) ── */
html.pop header h1{ font-family:'Rubik',sans-serif; font-weight:900; color:var(--ink); }
html.pop header{ border-bottom:3px solid var(--ink); }
html.pop header a{ color:var(--ink); font-weight:700; }
html.pop nav.tabs a{ border:2.5px solid var(--ink); background:#fff; font-weight:500; }
html.pop nav.tabs a.on{ border-color:var(--ink); background:var(--donkey); color:#fff; font-weight:700; }
html.pop main .card{ border:3px solid var(--ink); box-shadow:5px 5px 0 var(--ink); }
html.pop main button{ border:2.5px solid var(--ink); font-weight:600; }
html.pop main button.primary{ border-color:var(--ink); box-shadow:3px 3px 0 var(--ink); }
html.pop main input, html.pop main textarea{ border:2.5px solid var(--ink); }
html.pop main .q{ font-family:'Rubik',sans-serif; font-weight:700; }
html.pop main blockquote{ background:var(--cream); border-right-color:var(--ink); }
html.pop main > p.muted{ color:var(--ink); }
