/* חידוני טנזניה */
.tzq{
  --tzq-accent:#A4521F;
  --tzq-green:#3F6B1F;
  --tzq-text:#2E2A24;
  --tzq-soft:#F6F1E7;
  --tzq-sand:#FBF3DC;
  --tzq-ochre:#C9A227;
  --tzq-line:#D8CFBF;
  --tzq-muted:#6B5D45;
  --tzq-bad:#B3261E;
  direction:rtl;text-align:right;color:var(--tzq-text);
  max-width:760px;margin:0 auto;font-size:18px;line-height:1.55;
}
.tzq *{box-sizing:border-box}
.tzq-card{background:#fff;border:1px solid var(--tzq-line);border-radius:16px;padding:28px;box-shadow:0 6px 24px rgba(46,42,36,.07)}
.tzq-loading{text-align:center;color:var(--tzq-muted)}
.tzq-kicker{color:var(--tzq-accent);font-weight:700;font-size:.85em;letter-spacing:.02em}
.tzq .tzq-title,.tzq h2.tzq-title,.tzq h3.tzq-text{color:var(--tzq-text)}
.tzq-title{margin:.15em 0 .35em;font-size:1.7em;line-height:1.25;color:var(--tzq-text)}
.tzq-kicker{margin-bottom:.4em}
.tzq-lead{margin:0 0 1em;color:var(--tzq-muted)}
.tzq-label{font-weight:700;margin:1em 0 .45em}
.tzq-chips{display:flex;flex-wrap:wrap;gap:8px}
.tzq .tzq-chip{font:inherit;font-size:.9em;border:1px solid var(--tzq-line);background:var(--tzq-soft);color:var(--tzq-text);border-radius:999px;padding:7px 15px;cursor:pointer;line-height:1.3;transition:background .15s,border-color .15s}
@media (hover:hover){.tzq .tzq-chip:hover{border-color:var(--tzq-accent);background:var(--tzq-sand);color:var(--tzq-text)}}
.tzq .tzq-chip.on{background:var(--tzq-accent);border-color:var(--tzq-accent);color:#fff}
.tzq-info{margin:1.1em 0 .4em;color:var(--tzq-muted);font-size:.9em}
.tzq .tzq-btn{font:inherit;font-weight:700;background:var(--tzq-accent);color:#fff;border:0;border-radius:12px;padding:12px 26px;cursor:pointer;line-height:1.3;transition:filter .15s,transform .1s}
.tzq .tzq-btn:hover{filter:brightness(1.08);color:#fff;background:var(--tzq-accent)}
.tzq .tzq-btn:active{transform:translateY(1px)}
.tzq .tzq-btn:disabled{opacity:.45;cursor:default}
.tzq .tzq-btn.tzq-ghost{background:transparent;color:var(--tzq-accent);border:2px solid var(--tzq-accent)}
.tzq .tzq-btn.tzq-ghost:hover{background:var(--tzq-sand);color:var(--tzq-accent)}
.tzq-go{margin-top:.4em;min-width:180px;font-size:1.1em}
.tzq-best{margin-top:1em;font-size:.9em;color:var(--tzq-muted)}

/* שאלה */
.tzq-head{display:flex;justify-content:space-between;align-items:center;font-size:.9em;color:var(--tzq-muted);margin-bottom:10px}
.tzq-score b{color:var(--tzq-accent);font-size:1.25em}
.tzq-bar{height:12px;border-radius:99px;background:#E4DCCB;border:1px solid #CFC4AF;overflow:hidden}
.tzq-fill{height:100%;width:100%;background:var(--tzq-green);border-radius:99px;margin-right:0;margin-left:auto;transition:background .3s}
.tzq-fill.low{background:var(--tzq-bad)}
.tzq-meta{display:flex;align-items:center;gap:6px;margin:14px 0 6px;flex-wrap:wrap}
.tzq-tag{font-size:.75em;background:var(--tzq-soft);border:1px solid var(--tzq-line);border-radius:99px;padding:2px 10px;color:var(--tzq-muted)}
.tzq-tag.tzq-lv1{background:var(--tzq-sand);color:var(--tzq-accent);border-color:var(--tzq-ochre)}
.tzq-secs{margin-right:auto;font-weight:700;font-variant-numeric:tabular-nums;min-width:2ch;text-align:center;color:var(--tzq-text)}
.tzq-text{font-size:1.35em;line-height:1.4;margin:.2em 0 .8em;color:var(--tzq-text)}
.tzq-opts{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tzq .tzq-opt{font:inherit;display:flex;align-items:center;gap:10px;text-align:right;background:#fff;color:var(--tzq-text);border:2px solid var(--tzq-line);border-radius:12px;padding:12px 14px;cursor:pointer;min-height:58px;line-height:1.35;transition:border-color .15s,background .15s}
@media (hover:hover){.tzq .tzq-opt:hover:not(:disabled){border-color:var(--tzq-accent);background:var(--tzq-sand);color:var(--tzq-text)}}
.tzq .tzq-opt:disabled{cursor:default}
.tzq-num{flex:0 0 26px;height:26px;border-radius:50%;background:var(--tzq-soft);color:var(--tzq-muted);font-size:.8em;font-weight:700;display:flex;align-items:center;justify-content:center}
.tzq .tzq-opt.ok{border-color:var(--tzq-green);background:#EEF3E6;color:var(--tzq-text)}
.tzq .tzq-opt.ok .tzq-num{background:var(--tzq-green);color:#fff}
.tzq .tzq-opt.bad{border-color:var(--tzq-bad);background:#FBEAE8;color:var(--tzq-text)}
.tzq .tzq-opt.bad .tzq-num{background:var(--tzq-bad);color:#fff}
.tzq .tzq-opt.dim{opacity:.7}
.tzq-fb:empty{display:none}
.tzq-fb{margin-top:16px;padding:16px 18px;border-radius:12px;background:#FFFDF8;border:1px solid var(--tzq-line);color:var(--tzq-text)}
.tzq-verdict{font-weight:800;font-size:1.2em}
.tzq-verdict.ok{color:var(--tzq-green)}
.tzq-verdict.bad{color:var(--tzq-bad)}
.tzq-verdict span{font-size:.8em;color:var(--tzq-accent);margin-right:6px}
.tzq-right{margin-top:4px;color:var(--tzq-text)}
.tzq-expl{margin:.5em 0 .6em;color:var(--tzq-text)}
.tzq a.tzq-more{display:inline-block;color:var(--tzq-accent);font-weight:700;text-decoration:none;margin-bottom:12px}
.tzq a.tzq-more:hover{text-decoration:underline}
.tzq-next{display:block;margin-top:4px}

/* מי אני */
.tzq-fig{margin:4px 0 10px;text-align:center}
.tzq-fig img{display:block;width:100%;max-width:560px;aspect-ratio:4/3;object-fit:cover;border-radius:12px;margin:0 auto;background:var(--tzq-soft)}
.tzq-fig figcaption{font-size:.7em;color:var(--tzq-muted);margin-top:4px}
.tzq-fig figcaption a{color:var(--tzq-muted)}
.tzq-note{font-size:.85em;color:var(--tzq-muted);margin:.8em 0 0}
.tzq-thumb{display:block;width:120px;aspect-ratio:4/3;object-fit:cover;border-radius:8px;margin-bottom:4px}

/* סיכום */
.tzq-end{text-align:center}
.tzq-big{font-size:3.2em;font-weight:800;color:var(--tzq-accent);line-height:1.1;margin:.1em 0 .1em}
.tzq-big small{font-size:.35em;color:var(--tzq-muted);font-weight:600}
.tzq-rec{display:inline-block;background:var(--tzq-sand);border:1px solid var(--tzq-ochre);color:var(--tzq-accent);border-radius:99px;padding:4px 14px;font-weight:700;margin-bottom:.8em}
.tzq-acts{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin:.6em 0 1.2em}
.tzq-review{text-align:right;border-top:1px solid var(--tzq-line);padding-top:12px}
.tzq-review summary{cursor:pointer;font-weight:700;color:var(--tzq-accent)}
.tzq-review ol{margin:10px 0 0;padding:0 1.4em 0 0}
.tzq-review li{margin:0 0 12px;padding-right:4px}
.tzq-review li::marker{font-weight:700}
.tzq-review li.ok::marker{color:var(--tzq-green)}
.tzq-review li.bad::marker{color:var(--tzq-bad)}
.tzq-rq{font-weight:600}
.tzq-ra{font-size:.9em;color:var(--tzq-muted)}
.tzq-ra span{color:var(--tzq-accent);font-weight:700}
.tzq-review a{font-size:.85em;color:var(--tzq-accent)}

@media (max-width:600px){
  .tzq{font-size:17px}
  .tzq-card{padding:18px 16px;border-radius:14px}
  .tzq-title{font-size:1.4em}
  .tzq-text{font-size:1.2em}
  .tzq-fig img{max-height:42vh}
  .tzq-opts{grid-template-columns:1fr}
  .tzq .tzq-opt{min-height:52px}
  .tzq-num{display:none}
  .tzq .tzq-btn{width:100%}
  .tzq-acts{flex-direction:column}
}
@media (hover:none){ .tzq-num{display:none} }

/* תשבץ */
.tzx-wrap{display:flex;flex-direction:column;gap:18px;align-items:center}
.tzx-grid{--cs:34px;display:grid;gap:0;direction:rtl;user-select:none}
.tzx-cell{position:relative;width:var(--cs);height:var(--cs);border:1px solid #8C7E66;margin:0 -1px -1px 0;background:#fff}
.tzx-cell input{all:unset;box-sizing:border-box;width:100%;height:100%;text-align:center;font-size:max(16px,calc(var(--cs)*.55));font-weight:700;color:var(--tzq-text);caret-color:var(--tzq-accent);cursor:text;font-family:inherit;line-height:var(--cs)}
.tzx-num{position:absolute;top:1px;right:2px;font-size:max(8px,calc(var(--cs)*.26));line-height:1;color:var(--tzq-muted);pointer-events:none}
.tzx-cell.given{background:#EFE7D6}
.tzx-cell.given input{color:#6B5D45}
.tzx-cell.hinted{background:#F7E7C4}
.tzx-cell.hl{background:#FBF1D9}
.tzx-cell.given.hl{background:#EADDBE}
.tzx-cell.cur{background:#F6D9A8;outline:2px solid var(--tzq-accent);outline-offset:-2px;z-index:1}
.tzx-cell.bad input{color:var(--tzq-bad)}
.tzx-cell.bad{background:#FBEAE8}
.tzx-cell.shown input{color:var(--tzq-accent)}
.tzx-side{width:100%}
.tzx-bank{display:flex;flex-wrap:wrap;gap:6px}
.tzx-word{border:1px solid var(--tzq-line);background:var(--tzq-soft);border-radius:8px;padding:3px 10px;font-weight:600}
.tzx-word.on{border-color:var(--tzq-accent)}
.tzx-word.done{text-decoration:line-through;opacity:.5}
.tzx-clues{display:flex;flex-wrap:wrap;gap:6px}
.tzq .tzx-clue{font:inherit;font-size:.85em;display:flex;align-items:center;gap:6px;background:#fff;border:1px solid var(--tzq-line);border-radius:10px;padding:4px 8px;cursor:pointer;color:var(--tzq-text)}
.tzx-clues.pics .tzx-clue{flex-direction:column;gap:2px;padding:5px}
.tzx-clue img{width:96px;aspect-ratio:4/3;object-fit:cover;border-radius:6px;display:block}
.tzx-cn{font-weight:800;color:var(--tzq-accent)}
.tzx-len{color:var(--tzq-muted)}
.tzq .tzx-clue.on{border-color:var(--tzq-accent);background:var(--tzq-sand)}
.tzq .tzx-clue.done{opacity:.45}
.tzx-credits{font-size:.7em;color:var(--tzq-muted);margin-top:10px}
.tzx-credits summary{cursor:pointer}
.tzx-acts{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:18px}
.tzx-msg{text-align:center;color:var(--tzq-muted);margin-top:10px;min-height:1.4em;font-size:.9em}
.tzx-res{text-align:center}
.tzx-res:empty{display:none}
.tzx-res{border-top:1px solid var(--tzq-line);margin-top:14px;padding-top:14px}
.tzx-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px;margin-top:10px}
.tzx-li{display:flex;gap:10px;align-items:center;text-align:right;font-size:.9em}
.tzx-li img{width:72px;aspect-ratio:4/3;object-fit:cover;border-radius:6px}
.tzx-li a{color:var(--tzq-accent);font-size:.9em}
@media (min-width:900px){
  .tzq.tzx{max-width:1040px}
  .tzx-wrap{flex-direction:row;align-items:flex-start;justify-content:center}
  .tzx-side{width:280px;flex:0 0 280px}
}
@media (max-width:600px){
  .tzx-acts .tzq-btn{width:auto;flex:1}
  .tzx-clue img{width:72px}
}

/* החשבון שלי */
.tza{max-width:620px}
.tza-tabs{display:flex;gap:8px;margin-bottom:14px}
.tza-form{display:flex;flex-direction:column;gap:12px}
.tza-form[hidden]{display:none}
.tza-form label{display:flex;flex-direction:column;gap:4px;font-weight:600;font-size:.95em;color:var(--tzq-text)}
.tza-form label small{font-weight:400;color:var(--tzq-muted);font-size:.85em}
.tza-form input:not([type=checkbox]){font:inherit;font-weight:400;font-size:16px;padding:10px 12px;border:1px solid #BFB29A;border-radius:10px;background:#fff;color:var(--tzq-text);width:100%;box-sizing:border-box}
.tza-form input:focus{outline:2px solid var(--tzq-accent);outline-offset:0;border-color:var(--tzq-accent)}
.tza-form input:disabled{background:var(--tzq-soft);color:var(--tzq-muted)}
.tza-form label.tza-check{flex-direction:row;align-items:center;gap:8px;font-weight:400}
.tza-form label.tza-check input{width:18px;height:18px;accent-color:var(--tzq-accent)}
.tza-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.tza .req{color:var(--tzq-bad)}
.tza-small{font-size:.85em;color:var(--tzq-muted);margin:0}
.tza a{color:var(--tzq-accent)}
.tza .tzq-btn{align-self:flex-start;text-decoration:none;display:inline-block}
.tza-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.tza-msg{border-radius:12px;padding:12px 16px;margin-bottom:14px;font-weight:600;border:1px solid}
.tza-msg[hidden]{display:none}
.tza-msg.ok{background:#EEF3E6;border-color:#9DB585;color:#2F5016}
.tza-msg.bad{background:#FBEAE8;border-color:#E3A59F;color:#8E1F18}
.tza-hello{font-size:1.3em;margin:.2em 0}
.tza-edit{margin:12px 0;border-top:1px solid var(--tzq-line);padding-top:12px}
.tza-edit summary{cursor:pointer;font-weight:700;color:var(--tzq-accent);margin-bottom:10px}
.tza-acts{justify-content:flex-start;margin-top:14px}
@media (max-width:600px){ .tza-row{grid-template-columns:1fr} .tza .tzq-btn{align-self:stretch;text-align:center} }

/* שחקנים */
.tza-players{margin-top:16px}
.tza-plist{list-style:none;margin:0 0 6px;padding:0;display:flex;flex-direction:column;gap:8px}
.tza-plist li{border:1px solid var(--tzq-line);border-radius:12px;padding:10px 12px;background:#fff}
.tza-plist li.cur{border-color:var(--tzq-green);background:#F4F8EE}
.tza-prow{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.tza-pname{font-weight:700;font-size:1.05em}
.tza-pname small{font-weight:400;color:var(--tzq-muted)}
.tza-pbtns{display:flex;gap:6px;flex-wrap:wrap}
.tza-pbtns .tzq-chip{font-size:.8em;padding:5px 12px}
.tza .tzq-chip.tza-use.on{background:var(--tzq-green);border-color:var(--tzq-green);color:#fff}
.tza-pedit{margin-top:10px;display:flex;flex-direction:column;gap:10px}
.tza-pedit[hidden]{display:none}
.tza .tza-danger{color:var(--tzq-bad);border-color:var(--tzq-bad)}
/* פס ״משחק עכשיו״ */
.tzq-wrap{max-width:760px;margin:0 auto}
.tzq-wrap:has(.tzx){max-width:1040px}
.tzq-pbar{direction:rtl;text-align:right;font-size:15px;color:#6B5D45;background:#F6F1E7;border:1px solid #D8CFBF;border-radius:12px;padding:8px 14px;margin:0 0 12px;line-height:1.6}
.tzq-pbar:empty{display:none}
.tzq-pbar b{color:#2E2A24}
.tzq-pbar a{color:#A4521F;font-weight:600;margin-right:6px}
.tzq-pb-sel{font:inherit;font-weight:700;color:#2E2A24;border:1px solid #BFB29A;border-radius:8px;padding:2px 8px;background:#fff}

.tza-lab{display:block}
.tza-row{align-items:start}

/* טבלת מובילים */
.tzq-lbwrap{margin:18px 0 8px;text-align:right;border-top:1px solid var(--tzq-line);padding-top:14px}
.tzq-lb-status{font-weight:600;margin-bottom:10px;color:var(--tzq-text)}
.tzq-lb-status a{color:var(--tzq-accent)}
.tzq-lb-games,.tzq-lb-per{margin-bottom:10px}
.tzq-lb-per .tzq-chip{font-size:.8em;padding:4px 12px}
.tzq-lb{width:100%;border-collapse:collapse;font-size:.92em;direction:rtl}
.tzq .tzq-lb th,.tzq .tzq-lb td{padding:7px 8px;border-bottom:1px solid var(--tzq-line);text-align:right;color:var(--tzq-text);background:none}
.tzq .tzq-lb th{font-size:.85em;color:var(--tzq-muted);font-weight:700}
.tzq .tzq-lb td:first-child{width:2.5em;text-align:center}
.tzq .tzq-lb tr.me td{background:#F4F8EE;font-weight:700}
.tzq .tzq-lb tr.extra td{border-top:2px dashed var(--tzq-line)}
.tzq-lb-empty,.tzq-lb-wait,.tzq-lb-note{color:var(--tzq-muted);font-size:.9em;margin:.5em 0}
.tzq-lb-more{margin:.6em 0 0;font-size:.9em}
.tzq-lb-more a{color:var(--tzq-accent);font-weight:700}
@media (max-width:600px){ .tzq .tzq-lb th:nth-child(5),.tzq .tzq-lb td:nth-child(5){display:none} }

.tza-pw{position:relative;display:block}
.tza-form .tza-pw input{padding-right:44px}
.tza .tza-eye{position:absolute;top:50%;right:6px;transform:translateY(-50%);background:none;border:0;padding:6px;cursor:pointer;color:#6B5D45;line-height:0;border-radius:6px}
.tza .tza-eye:hover,.tza .tza-eye:focus{color:var(--tzq-accent);background:var(--tzq-soft)}

/* ניווט בין דפי החידונים */
.tzq-nav{display:flex;flex-wrap:wrap;gap:6px 4px;align-items:center;justify-content:flex-start;direction:rtl;margin:0 0 12px;font-size:15px;line-height:1.4}
.tzq-nav a,.tzq-nav span{display:inline-block;padding:5px 12px;border-radius:999px;text-decoration:none;border:1px solid #D8CFBF;background:#fff;color:#2E2A24}
.tzq-nav a:hover{border-color:#A4521F;color:#A4521F}
.tzq-nav .tzq-nav-cur{background:#A4521F;border-color:#A4521F;color:#fff;font-weight:700}
.tzq-nav a.tzq-nav-home{font-weight:700;color:#A4521F;border-color:#A4521F}
.tza-wrap{max-width:620px}
@media (max-width:600px){ .tzq-nav{font-size:14px} .tzq-nav a,.tzq-nav span{padding:4px 10px} }

/* כניסה עם Google */
.tza-google{display:flex;justify-content:center;min-height:44px;margin:4px 0 2px}
.tza-or{display:flex;align-items:center;gap:10px;color:#6B5D45;font-size:.85em;margin:10px 0 14px}
.tza-or::before,.tza-or::after{content:"";flex:1;border-top:1px solid #D8CFBF}
.tza-or[hidden],.tza-google[hidden]{display:none}
/* האפליקציה לטלפון – חיבור קבוע */
.tza-steps{margin:6px 0 8px;padding-right:22px}
.tza-steps li{margin-bottom:6px}
.tza-code{display:flex;flex-direction:column;align-items:center;gap:2px;background:#FBF3DC;border:2px dashed #A4521F;border-radius:14px;padding:14px;margin:12px 0}
.tza-code span{color:#6B5D45;font-size:.9em}
.tza-code b{font-size:2.4em;letter-spacing:.12em;color:#A4521F;line-height:1.2}
.tza-code small{color:#6B5D45}
.tza-devs{list-style:none;margin:6px 0 0;padding:0}
.tza-devs li{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid #D8CFBF;padding:8px 0}
.tza-devs li small{display:block;color:#6B5D45;font-size:.85em}
.tza-devs form{margin:0}
.tzq .tzq-btn.tzq-small{padding:6px 14px;font-size:.9em;width:auto;margin:0}
