/* ============================================================
   עיצוב המצגת — כהה, צבעוני, טקסט מעט וגדול
   ============================================================ */
:root {
  --bg: #0a0c14;
  --bg2: #121628;
  --card: #171c33;
  --line: #2a3156;
  --ink: #f5f2ea;
  --muted: #9aa3bd;
  --amber: #ffc933;
  --cyan: #4de1ff;
  --pink: #ff5c8a;
  --green: #4ade80;
  --red: #ff6b6b;
  --violet: #a78bfa;
  --head: 'Rubik', 'Heebo', system-ui, sans-serif;
  --body: 'Heebo', 'Rubik', system-ui, sans-serif;
}

html, body { background: var(--bg); }

.reveal { font-family: var(--body); font-size: 34px; color: var(--ink); }
.reveal .slides { text-align: center; }
/* reveal.js מכריח sans-serif במצב RTL — מחזירים את הגופנים שלנו */
.reveal.rtl .slides { font-family: var(--body); }
.reveal.rtl .slides h1, .reveal.rtl .slides h2, .reveal.rtl .slides h3 { font-family: var(--head); }
.reveal .slides > section { height: 100%; flex-direction: column; justify-content: center; align-items: center; }
.reveal h1, .reveal h2, .reveal h3 { font-family: var(--head); margin: 0 0 .35em; line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; }
.reveal h1 { font-size: 3.6em; font-weight: 800; }
.reveal h2 { font-size: 2.4em; font-weight: 800; }
.reveal h3 { font-size: 1.4em; font-weight: 700; }
.reveal p { margin: .3em 0; line-height: 1.35; text-wrap: balance; }
.reveal small, .reveal .small { font-size: .62em; color: var(--muted); }
.reveal .muted { color: var(--muted); }
.reveal .amber { color: var(--amber); } .reveal .cyan { color: var(--cyan); } .reveal .pink { color: var(--pink); }
.reveal .green { color: var(--green); } .reveal .red { color: var(--red); } .reveal .violet { color: var(--violet); }
.reveal .huge { font-size: 5.2em; font-weight: 900; font-family: var(--head); line-height: 1; }
.reveal .big { font-size: 1.6em; }
.reveal .en { direction: ltr; unicode-bidi: isolate; font-family: 'Rubik', 'Heebo', sans-serif; }
.reveal .kicker { font-family: var(--head); font-weight: 700; font-size: .7em; letter-spacing: .12em; color: var(--cyan); text-transform: uppercase; margin-bottom: .6em; }
.reveal .glow { text-shadow: 0 0 40px rgba(77,225,255,.45); }
.reveal .grad { background: linear-gradient(90deg, var(--cyan), var(--violet) 50%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.reveal .grad-warm { background: linear-gradient(90deg, var(--amber), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* רקע עמוק לכל השקפים */
.reveal .slide-background { background: radial-gradient(1200px 700px at 80% 0%, #1a2150 0%, transparent 60%), radial-gradient(900px 600px at 0% 100%, #2a1037 0%, transparent 55%), var(--bg); }

/* פריסות */
.row { display: flex; gap: 28px; justify-content: center; align-items: stretch; }
.col { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 18px; align-items: center; }
.center-all { display: flex !important; flex-direction: column; justify-content: center; align-items: center; height: 100%; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; text-align: right; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.card h3 { margin-bottom: .2em; }
.card p { font-size: .8em; color: var(--muted); }
.pill { display: inline-block; padding: .18em .7em; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--line); font-size: .6em; color: var(--muted); }
.emoji { font-size: 2.2em; line-height: 1; display: block; margin-bottom: .2em; }

/* ---------- מדיה ---------- */
/* כל מקום שמחכה לקובץ: <div class="m" data-m="id"> */
.m { position: relative; border-radius: 20px; overflow: hidden; background: #050710; }
.m > img, .m > video { display: block; width: 100%; height: 100%; object-fit: cover; }
.m.contain > img, .m.contain > video { object-fit: contain; }
/* מסך מלא בתוך השקף (1280x720) */
.m.full { position: absolute; inset: 0; border-radius: 0; width: 100%; height: 100%; z-index: 0; }
.m.full.contain { background: #000; }
/* כיתוב על תמונה: נמוך, עם הצללה — השקף יפה גם בלי הכיתוב */
.caption { position: absolute; z-index: 2; inset: auto 0 0 0; padding: 120px 56px 34px; text-align: right; background: linear-gradient(transparent, rgba(5,7,16,.88)); pointer-events: none; }
.caption .t { font-family: var(--head); font-weight: 800; font-size: 1.5em; line-height: 1.1; }
.caption .s { font-size: .7em; color: #cfd5e6; margin-top: .25em; }
.caption.top { inset: 0 0 auto 0; padding: 34px 56px 120px; background: linear-gradient(rgba(5,7,16,.85), transparent); }
.tag { position: absolute; z-index: 3; top: 26px; left: 30px; font-family: var(--head); font-weight: 800; font-size: .75em; padding: .25em .7em; border-radius: 12px; background: var(--amber); color: #1a1300; }
.tag.cyan { background: var(--cyan); color: #00151b; }
.tag.pink { background: var(--pink); color: #1f0010; }

/* מציין מקום לקובץ חסר — ברור מה חסר ואיפה לשים */
.m.missing { background: repeating-linear-gradient(135deg, #10142a 0 22px, #0d1124 22px 44px); border: 3px dashed #4b557f; display: flex; align-items: center; justify-content: center; }
.m.full.missing { border-width: 0; }
.m.missing-optional { display: none !important; }
.stage.current-fragment { border-color: var(--cyan); box-shadow: 0 0 40px rgba(77,225,255,.35); }
.missing-card { max-width: 82%; text-align: right; direction: rtl; padding: 18px 24px; border-radius: 16px; background: rgba(10,12,20,.82); border: 1px solid #3b4470; font-size: 18px; line-height: 1.45; color: #dfe4f3; }
.missing-card b { color: var(--amber); font-family: var(--head); }
.missing-card code { direction: ltr; unicode-bidi: isolate; display: inline-block; font-size: 16px; background: #000; color: var(--cyan); padding: 1px 8px; border-radius: 6px; }
.missing-card .why { color: var(--muted); font-size: 15px; margin-top: 6px; }
.m { container-type: inline-size; }
@container (max-width: 420px) {
  .missing-card { font-size: 13px; padding: 8px 10px; max-width: 96%; line-height: 1.3; }
  .missing-card code { font-size: 11px; }
  .missing-card .why { display: none; }
}
@container (max-width: 160px) { .missing-card { font-size: 10px; padding: 4px; } .missing-card code { font-size: 9px; word-break: break-all; } }
body.hide-missing .missing-card { display: none; }

/* וידאו: לחיצה מנגנת. סימן "▶" כשעוד לא התחיל */
.m.video::after { content: '▶'; position: absolute; z-index: 2; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 110px; color: rgba(255,255,255,.9); text-shadow: 0 10px 40px rgba(0,0,0,.6); pointer-events: none; transition: opacity .3s; }
.m.video.playing::after, .m.video.missing::after { opacity: 0; }
.video-trigger { display: none !important; }

/* ---------- קלפים (הבעיות שלי) ---------- */
.cards-row { display: flex; gap: 26px; justify-content: center; perspective: 1400px; flex-wrap: wrap; }
.pcard { width: 250px; height: 330px; border-radius: 24px; background: linear-gradient(160deg, #1d2447, #12162b); border: 2px solid #343e70; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 22px; box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.pcard .emoji { font-size: 84px; margin-bottom: 18px; }
.pcard .t { font-family: var(--head); font-weight: 700; font-size: 32px; line-height: 1.15; }
.reveal .pcard.fragment { transform: rotateY(90deg); opacity: 0; transition: all .6s cubic-bezier(.2,.8,.2,1); }
.reveal .pcard.fragment.visible { transform: none; opacity: 1; }
.pcard.private { border-color: var(--amber); background: linear-gradient(160deg, #2f2410, #15110a); }
.pcard.private .m { width: 150px; height: 150px; border-radius: 50%; margin-bottom: 16px; }
.pcard.private .m.missing { display: none; }
/* הקלף האישי מוסתר עד שלוחצים D */
.private-slot { display: none; }
body.show-private .private-slot { display: flex; animation: flipIn .7s cubic-bezier(.2,.8,.2,1); }
@keyframes flipIn { from { transform: rotateY(90deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- קיר הבעיות ---------- */
.wall { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-content: flex-start; min-height: 230px; max-height: 360px; overflow: hidden; margin: 10px auto 0; width: 1120px; }
.note { background: var(--amber); color: #241a00; font-weight: 700; font-size: 26px; padding: 12px 18px 14px; border-radius: 6px 6px 18px 6px; box-shadow: 0 10px 30px rgba(0,0,0,.4); transform: rotate(var(--r, -1deg)); animation: pop .35s cubic-bezier(.2,1.6,.4,1); max-width: 360px; line-height: 1.2; position: relative; }
.note:nth-child(3n) { background: var(--cyan); color: #00222b; }
.note:nth-child(3n+1) { background: #ffd6e2; color: #3a0016; }
.note .x { position: absolute; top: -10px; left: -10px; width: 26px; height: 26px; border-radius: 50%; background: #000; color: #fff; font-size: 16px; line-height: 26px; text-align: center; cursor: pointer; opacity: 0; transition: opacity .2s; }
.note:hover .x { opacity: 1; }
.note.solved { opacity: .35; text-decoration: line-through; }
.note.unsolvable { outline: 4px solid var(--pink); outline-offset: 4px; }
@keyframes pop { from { transform: scale(.4) rotate(-12deg); opacity: 0; } }
.wall-input { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.wall-input input { width: 560px; font: inherit; font-size: 26px; padding: 10px 18px; border-radius: 14px; border: 2px solid var(--line); background: #0d1122; color: var(--ink); direction: rtl; }
.wall-input input:focus { outline: none; border-color: var(--cyan); }
.btn { font: inherit; font-size: 22px; font-weight: 700; padding: 10px 20px; border-radius: 14px; border: 2px solid var(--line); background: #1a2040; color: var(--ink); cursor: pointer; }
.btn:hover { border-color: var(--cyan); }
.btn.primary { background: var(--cyan); color: #00151b; border-color: var(--cyan); }
.btn.ghost { background: transparent; }
.btn.small { font-size: 16px; padding: 6px 12px; border-radius: 10px; }
.hint { font-size: 15px; color: var(--muted); margin-top: 8px; }

/* ---------- ציר זמן ---------- */
.timeline { position: relative; display: flex; justify-content: space-between; align-items: flex-start; width: 1180px; margin: 40px auto 0; direction: ltr; }
.timeline::before { content: ''; position: absolute; top: 34px; left: 20px; right: 20px; height: 6px; border-radius: 6px; background: linear-gradient(90deg, #39407a, var(--cyan), var(--violet), var(--pink)); opacity: .55; }
.tl { position: relative; width: 128px; text-align: center; direction: rtl; }
.tl .dot { width: 30px; height: 30px; margin: 22px auto 14px; border-radius: 50%; background: var(--bg); border: 6px solid var(--cyan); box-shadow: 0 0 24px rgba(77,225,255,.6); }
.tl .y { font-family: var(--head); font-weight: 800; font-size: 34px; direction: ltr; }
.tl .w { font-size: 19px; line-height: 1.25; color: #d6dbea; margin-top: 4px; }
.tl .ico { font-size: 40px; display: block; margin-top: 8px; }
.tl.now .dot { border-color: var(--pink); box-shadow: 0 0 30px rgba(255,92,138,.8); }
.tl:nth-child(even) { margin-top: 0; }

/* ---------- שקף "שנה גדולה" ---------- */
.yearmark { position: absolute; z-index: 3; top: 30px; right: 46px; font-family: var(--head); font-weight: 900; font-size: 96px; line-height: 1; color: #fff; text-shadow: 0 8px 40px rgba(0,0,0,.7); direction: ltr; }

/* ---------- דמואים ---------- */
.demo { background: rgba(13,17,34,.85); border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.demo-label { position: absolute; top: 14px; left: 18px; font-size: 14px; color: var(--muted); border: 1px solid var(--line); padding: 2px 10px; border-radius: 999px; }

/* צינור האינטרנט */
.pipe { display: flex; align-items: center; justify-content: center; gap: 10px; direction: rtl; margin-top: 18px; }
.stage { width: 172px; height: 250px; border-radius: 22px; background: var(--card); border: 2px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px; position: relative; overflow: hidden; }
.stage .emoji { font-size: 64px; }
.stage .t { font-family: var(--head); font-weight: 800; font-size: 23px; margin-top: 6px; }
.stage .s { font-size: 16px; color: var(--muted); margin-top: 4px; line-height: 1.3; }
.arrow { font-size: 32px; color: var(--muted); }
.stage.active { border-color: var(--cyan); box-shadow: 0 0 40px rgba(77,225,255,.35); }
.flying { position: absolute; font-size: 22px; animation: fly 2.6s linear infinite; opacity: 0; }
@keyframes fly { 0% { transform: translate(60px, 120px) scale(.6); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(-80px, -60px) scale(1); opacity: 0; } }
.junk { text-decoration: line-through; color: var(--red); }

/* טוקנים */
.tok-input { width: 100%; font: inherit; font-size: 30px; padding: 12px 18px; border-radius: 16px; border: 2px solid var(--line); background: #0b0f1f; color: var(--ink); }
.tok-out { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; min-height: 140px; align-content: flex-start; justify-content: flex-start; }
.tok { padding: 6px 10px; border-radius: 10px; font-size: 28px; font-weight: 600; color: #071018; position: relative; white-space: pre; }
.tok i { position: absolute; bottom: -18px; left: 0; right: 0; font-style: normal; font-size: 12px; color: var(--muted); text-align: center; direction: ltr; }
.tok-stats { display: flex; gap: 26px; justify-content: center; margin-top: 26px; font-size: 22px; color: var(--muted); }
.tok-stats b { color: var(--ink); font-size: 30px; font-family: var(--head); }

/* המילה הבאה */
.nw-sentence { font-family: var(--head); font-size: 46px; font-weight: 700; min-height: 70px; }
.nw-sentence .gen { color: var(--cyan); }
.nw-sentence .cursor { display: inline-block; width: 4px; height: 46px; background: var(--amber); margin-right: 6px; vertical-align: -6px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.bars { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.bar { display: grid; grid-template-columns: 170px 1fr 80px; gap: 14px; align-items: center; font-size: 26px; cursor: pointer; }
.bar .w { text-align: left; font-weight: 700; }
.bar .track { display: block; height: 34px; background: #0b0f1f; border-radius: 10px; overflow: hidden; }
.bar .fill { display: block; height: 100%; background: linear-gradient(270deg, var(--cyan), var(--violet)); border-radius: 10px; transition: width .5s cubic-bezier(.2,.8,.2,1); }
.bar.picked .fill { background: linear-gradient(270deg, var(--amber), var(--pink)); }
.bar .p { font-family: var(--head); color: var(--muted); text-align: right; direction: ltr; }
.ctrls { display: flex; gap: 14px; justify-content: center; align-items: center; margin-top: 22px; font-size: 22px; }
.ctrls input[type=range] { width: 220px; accent-color: var(--amber); }

/* אימון */
.train-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; align-items: stretch; text-align: right; }
.knobs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 10px; }
.knob { aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--c, var(--cyan)) calc(var(--v, .5) * 1turn), #1b2142 0); position: relative; transition: background .4s; }
.knob::after { content: ''; position: absolute; inset: 22%; border-radius: 50%; background: var(--card); }
canvas.loss { width: 100%; height: 190px; background: #0b0f1f; border-radius: 14px; display: block; }
.qa { font-size: 26px; line-height: 1.5; }
.qa .guess { font-family: var(--head); font-weight: 800; font-size: 34px; }
.ok { color: var(--green); } .no { color: var(--red); }

/* דירוג אנושי */
.ab { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.ab .card { font-size: 26px; cursor: pointer; transition: transform .2s, border-color .2s; }
.ab .card:hover { transform: translateY(-4px); border-color: var(--cyan); }
.ab .card.win { border-color: var(--green); box-shadow: 0 0 40px rgba(74,222,128,.35); }
.ab .card.lose { opacity: .45; }

/* קנה מידה */
.scale-row { display: flex; align-items: flex-end; justify-content: center; gap: 70px; height: 380px; }
.scale-item { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.scale-item .t { font-size: 24px; margin-top: 12px; color: #d6dbea; }
.books { display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; }
.book { width: 120px; height: 12px; border-radius: 3px; }

/* עלות שאלה */
.cost-flow { display: flex; align-items: center; justify-content: center; gap: 22px; direction: rtl; margin-top: 30px; }
.cost-flow .node { width: 220px; text-align: center; }
.cost-flow .node .emoji { font-size: 90px; }
.cost-flow .node .t { font-size: 24px; margin-top: 8px; }
.chips { display: grid; grid-template-columns: repeat(6, 26px); gap: 6px; justify-content: center; margin-top: 8px; }
.chip { width: 26px; height: 26px; border-radius: 6px; background: #1b2142; transition: background .2s, box-shadow .2s; }
.chip.on { background: var(--amber); box-shadow: 0 0 14px var(--amber); }
.coins { font-size: 40px; min-height: 50px; letter-spacing: 4px; }
.pulse-line { width: 120px; height: 6px; border-radius: 6px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); background-size: 200% 100%; animation: pulse 1s linear infinite; }
@keyframes pulse { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ידע קפוא + חיפוש */
.freeze { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; align-items: center; direction: rtl; }
.freeze .card { text-align: center; }
.ice { font-size: 110px; filter: drop-shadow(0 0 30px rgba(77,225,255,.5)); }

/* פרומפט: שישה רכיבים */
.prompt-box { direction: rtl; text-align: right; font-size: 27px; line-height: 1.55; background: #0b0f1f; border: 1px solid var(--line); border-radius: 20px; padding: 24px 30px; }
.prompt-box .seg { border-radius: 8px; padding: 2px 6px; }
.seg.role { background: rgba(77,225,255,.18); box-shadow: inset 0 -3px 0 var(--cyan); }
.seg.goal { background: rgba(255,201,51,.18); box-shadow: inset 0 -3px 0 var(--amber); }
.seg.ctx { background: rgba(167,139,250,.2); box-shadow: inset 0 -3px 0 var(--violet); }
.seg.lim { background: rgba(255,92,138,.18); box-shadow: inset 0 -3px 0 var(--pink); }
.seg.fmt { background: rgba(74,222,128,.18); box-shadow: inset 0 -3px 0 var(--green); }
.seg.ex { background: rgba(255,255,255,.12); box-shadow: inset 0 -3px 0 #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 20px; }
.legend span { font-family: var(--head); font-weight: 700; font-size: 26px; padding: 6px 16px; border-radius: 12px; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; text-align: right; }
.vs .m { height: 330px; margin-top: 14px; }
.vs .p { font-size: 22px; background: #0b0f1f; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; min-height: 92px; line-height: 1.4; }

/* אמת או AI */
.verdict { position: absolute; z-index: 4; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-6deg); font-family: var(--head); font-weight: 900; font-size: 120px; padding: 10px 50px; border-radius: 28px; border: 10px solid currentColor; background: rgba(5,7,16,.75); }
.verdict.real { color: var(--green); }
.verdict.ai { color: var(--pink); }
.reveal .verdict.fragment { opacity: 0; transform: translate(-50%, -50%) rotate(-6deg) scale(2.2); transition: all .45s cubic-bezier(.2,1.4,.4,1); }
.reveal .verdict.fragment.visible { opacity: 1; transform: translate(-50%, -50%) rotate(-6deg) scale(1); }
.vote { position: absolute; z-index: 3; bottom: 30px; left: 0; right: 0; display: flex; justify-content: center; gap: 30px; font-family: var(--head); font-weight: 800; font-size: 40px; }
.vote span { background: rgba(5,7,16,.75); padding: 8px 26px; border-radius: 18px; border: 2px solid var(--line); }
.round { position: absolute; z-index: 3; top: 26px; right: 30px; font-family: var(--head); font-weight: 800; font-size: 26px; background: rgba(5,7,16,.7); padding: 4px 16px; border-radius: 12px; }
.verdict-note { position: absolute; z-index: 4; bottom: 110px; left: 0; right: 0; text-align: center; font-size: 26px; }
.verdict-note span { background: rgba(5,7,16,.82); padding: 6px 18px; border-radius: 12px; }

/* סיפורי סכנה */
.story { display: grid; grid-template-columns: 1fr 1.05fr; gap: 34px; align-items: center; text-align: right; height: 100%; }
.story .m { height: 520px; }
.story .big-num { font-family: var(--head); font-weight: 900; font-size: 110px; line-height: 1; direction: ltr; text-align: right; }
.callgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; height: 460px; }
.callgrid .tile { border-radius: 16px; background: #10162e; border: 2px solid var(--line); position: relative; display: flex; align-items: center; justify-content: center; font-size: 90px; overflow: hidden; }
.callgrid .tile .n { position: absolute; bottom: 8px; right: 12px; font-size: 18px; color: #cfd5e6; background: rgba(0,0,0,.5); padding: 1px 10px; border-radius: 8px; }
.callgrid .tile.fake { border-color: var(--pink); }
.callgrid .tile .fk { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255,92,138,.18); font-family: var(--head); font-weight: 900; font-size: 34px; color: var(--pink); }
.wave { display: flex; align-items: center; gap: 6px; height: 200px; justify-content: center; }
.wave i { display: block; width: 12px; border-radius: 6px; background: var(--cyan); animation: wv 1.1s ease-in-out infinite; }
.wave.clone i { background: var(--pink); }
@keyframes wv { 0%,100% { height: 20%; } 50% { height: 100%; } }

/* כללי זהב */
.rules { display: grid; grid-template-columns: 1fr; gap: 14px; width: 1000px; margin: 0 auto; text-align: right; }
.rule { display: flex; align-items: center; gap: 22px; background: linear-gradient(90deg, rgba(255,201,51,.10), rgba(255,201,51,.02)); border: 1px solid rgba(255,201,51,.35); border-radius: 18px; padding: 14px 24px; font-size: 32px; }
.rule .n { font-family: var(--head); font-weight: 900; font-size: 44px; color: var(--amber); width: 50px; text-align: center; }
.rule small { display: block; font-size: 20px; color: var(--muted); }

/* פעילות */
.qr { background: #fff; padding: 18px; border-radius: 22px; display: inline-block; }
.qr svg, .qr img { display: block; width: 300px; height: 300px; }
.url { direction: ltr; font-family: var(--head); font-weight: 700; font-size: 30px; color: var(--cyan); margin-top: 12px; word-break: break-all; }
.steps { text-align: right; font-size: 30px; line-height: 1.5; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; margin: 10px 0; display: flex; gap: 14px; align-items: baseline; }
.steps li::before { content: counter(s); font-family: var(--head); font-weight: 900; color: #00151b; background: var(--cyan); width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: 26px; }
.tool { text-align: right; }
.tool .age { font-family: var(--head); font-weight: 900; font-size: 44px; color: var(--amber); }
.countdown { font-family: var(--head); font-weight: 900; font-size: 260px; line-height: 1; direction: ltr; font-variant-numeric: tabular-nums; }
.countdown.done { color: var(--pink); animation: blink 1s steps(1) infinite; }

/* המשחק שנבנה בשיחה */
.game-wrap { position: relative; width: 1100px; height: 560px; margin: 0 auto; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); }
.game-wrap canvas { width: 100%; height: 100%; display: block; }
.game-hud { position: absolute; top: 14px; right: 18px; left: 18px; display: flex; justify-content: space-between; font-family: var(--head); font-weight: 800; font-size: 26px; pointer-events: none; }
.game-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(5,7,16,.6); font-size: 30px; cursor: pointer; }

/* סוכנים */
.loop { position: relative; width: 640px; height: 460px; margin: 0 auto; }
.loop .st { position: absolute; width: 190px; padding: 14px; border-radius: 18px; background: var(--card); border: 2px solid var(--line); font-size: 24px; text-align: center; transition: all .3s; }
.loop .st .emoji { font-size: 48px; margin: 0; }
.loop .st.on { border-color: var(--amber); box-shadow: 0 0 34px rgba(255,201,51,.45); transform: scale(1.06); }

/* תשומת לב (טרנספורמר) */
.attn { position: relative; width: 1100px; height: 330px; margin: 10px auto 0; }
.attn svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.attn .words { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; gap: 16px; direction: rtl; }
.attn .wd { font-size: 36px; font-weight: 700; padding: 8px 16px; border-radius: 14px; background: var(--card); border: 2px solid var(--line); cursor: pointer; transition: all .2s; }
.attn .wd.focus { border-color: var(--amber); color: var(--amber); }

/* מונה */
.counter { font-family: var(--head); font-weight: 900; font-size: 190px; line-height: 1; direction: ltr; font-variant-numeric: tabular-nums; }

/* HUD של המרצה (T) */
#hud { position: fixed; z-index: 50; bottom: 12px; left: 14px; font: 600 16px/1.2 'Rubik', sans-serif; color: #cfd5e6; background: rgba(0,0,0,.55); padding: 6px 12px; border-radius: 10px; display: none; direction: ltr; pointer-events: none; }
body.show-hud #hud { display: block; }
#toast { position: fixed; z-index: 60; top: 18px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.8); color: #fff; font: 600 18px 'Heebo', sans-serif; padding: 8px 18px; border-radius: 12px; opacity: 0; transition: opacity .3s; pointer-events: none; direction: rtl; }
#toast.on { opacity: 1; }
#media-panel { position: fixed; z-index: 70; inset: 40px; background: rgba(8,10,20,.97); border: 1px solid var(--line); border-radius: 18px; padding: 26px 30px; overflow: auto; direction: rtl; font: 16px/1.5 'Heebo', sans-serif; color: var(--ink); display: none; }
body.show-media-panel #media-panel { display: block; }
#media-panel h2 { font: 800 28px 'Rubik', sans-serif; margin: 0 0 8px; }
#media-panel table { width: 100%; border-collapse: collapse; margin-top: 12px; }
#media-panel td, #media-panel th { border-bottom: 1px solid #222a4a; padding: 6px 8px; text-align: right; vertical-align: top; }
#media-panel code { direction: ltr; unicode-bidi: isolate; color: var(--cyan); }
#media-panel .ok { color: var(--green); } #media-panel .no { color: var(--red); }

/* רשת עצבית ברקע */
canvas.ambient { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .8; }
.above { position: relative; z-index: 2; }

/* מעברים רכים לחשיפה הדרגתית */
.reveal .fragment.rise { opacity: 0; transform: translateY(40px); }
.reveal .fragment.rise.visible { opacity: 1; transform: none; }
.reveal .fragment.pop { opacity: 0; transform: scale(.6); transition: all .4s cubic-bezier(.2,1.5,.4,1); }
.reveal .fragment.pop.visible { opacity: 1; transform: none; }

/* PDF: שקף מלא בכל עמוד, בלי אנימציות */
html.print-pdf .reveal .slides .pdf-page > section { height: 720px !important; display: flex !important; flex-direction: column; justify-content: center; align-items: center; }
html.print-pdf .wave i, html.print-pdf .flying { animation: none !important; }
html.print-pdf .wave i { height: 60%; }
html.print-pdf .m.video::after { opacity: .6; }
html.print-pdf .wall-input, html.print-pdf .hint.screen-only { display: none; }

/* מסכים צרים: רק מוודאים שאין גלילה */
body { overflow: hidden; }
