@font-face{font-family:"Atlas";src:url(assets/fonts/atlas-light.woff2) format("woff2");font-weight:300;font-display:swap}
@font-face{font-family:"Atlas";src:url(assets/fonts/atlas-regular.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Atlas";src:url(assets/fonts/atlas-medium.woff2) format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:"Atlas";src:url(assets/fonts/atlas-bold.woff2) format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:"Mugrabi";src:url(assets/fonts/mugrabi-bold.woff2) format("woff2");font-weight:700;font-display:swap}

:root{
  --navy:#022539;
  --navy-deep:#01141f;
  --gold:#C6A06A;
  --orange:#FA991C;
  --white:#fff;
  --ink:rgba(255,255,255,.82);
  /* שכבת הכחול של המותג מעל הסריקה */
  --tint-opacity:.55;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{background:var(--navy-deep)}
body{position:relative;isolation:isolate}
html,body{margin:0;height:100%;overflow:hidden;color:var(--white);
  font-family:"Atlas",Arial,sans-serif;-webkit-font-smoothing:antialiased;overscroll-behavior:none}
button,input{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--orange);outline-offset:3px}

/* ---------- הסריקה והשכבות ---------- */
#space{position:fixed;inset:0;width:100%;height:100%;border:0;z-index:0;
  filter:blur(16px) brightness(.85);transform:scale(1.06);
  transition:filter 2.6s cubic-bezier(.3,0,.2,1),transform 2.6s cubic-bezier(.3,0,.2,1)}
/* הסריקה לא מקבלת לחיצות בכלל, כדי שאי אפשר יהיה ללכת בה מחוץ להיכל */
#space{pointer-events:none}
/* הנקודות על התמונה זזות יחד עם הסריקה */
#spots{position:fixed;inset:0;z-index:4;pointer-events:none;transform-origin:50% 50%}
body.is-hall #spots{transform:scale(var(--zs,1.3)) translate(var(--px,0%),var(--py,0%))}
body.is-hall.looking #spots{transition:transform .25s ease-out}
.spot{position:absolute;left:var(--sx,27%);top:var(--sy,41%);transform:translate(-50%,-50%) scale(calc(1 / var(--zs,1.3)));
  display:flex;flex-direction:column;align-items:center;gap:10px;background:none;border:0;padding:0;pointer-events:auto;cursor:pointer}
.spot-dot{width:34px;height:34px;border-radius:50%;background:var(--orange);position:relative;box-shadow:0 0 0 8px rgba(250,153,28,.25),0 0 30px rgba(250,153,28,.8)}
.spot-dot:before,.spot-dot:after{content:"";position:absolute;inset:-6px;border-radius:50%;border:2px solid var(--orange);animation:spot 1.8s ease-out infinite}
.spot-dot:after{animation-delay:.9s}
@keyframes spot{from{transform:scale(.8);opacity:1}to{transform:scale(2.6);opacity:0}}
.spot-label{padding:7px 14px;border-radius:999px;background:rgba(1,20,31,.85);border:1px solid rgba(250,153,28,.6);font-size:15px;font-weight:700;color:#fff;white-space:nowrap;animation:blinkL 1.8s ease-in-out infinite}
@keyframes blinkL{50%{border-color:rgba(250,153,28,1);box-shadow:0 0 18px rgba(250,153,28,.5)}}
/* במסך צר המדליקיה מחוץ לתמונה, לכן הנקודה בצד שמאל של המסך */
@media (max-aspect-ratio:1/1){.spot{--sx:12%;--sy:52%}}

/* פרק הנרות */
#candles-bg{position:fixed;inset:0;z-index:0;opacity:0;pointer-events:none;background:#000 center/cover no-repeat;
  transform:scale(1.04);transition:opacity 1.4s ease}
body.is-candles #candles-bg{opacity:1;animation:kb 28s ease-in-out infinite alternate}
@keyframes kb{to{transform:scale(1.14) translate(-1.5%,-1%)}}
body.is-candles #space,body.is-candles #look{display:none}
/* בפרק הנרות שכבת הכחול חלשה יותר, כדי שהאור החם של הנרות יישאר */
body.is-candles #tint{opacity:.28}
body.is-candles #veil{opacity:.5}
body.is-hall #space{filter:none;transform:scale(var(--zs,1.3)) translate(var(--px,0%),var(--py,0%));
  transition:filter 2.6s cubic-bezier(.3,0,.2,1),transform 2.6s cubic-bezier(.3,0,.2,1)}
body.is-hall.looking #space{transition:filter 2.6s cubic-bezier(.3,0,.2,1),transform .25s ease-out}
#look{position:fixed;inset:0;z-index:4;display:none;cursor:grab;touch-action:none}
body.is-hall #look{display:block}
body.looking #look{cursor:grabbing}
#tint{position:fixed;inset:0;z-index:1;pointer-events:none;background:var(--navy);mix-blend-mode:multiply;opacity:var(--tint-opacity)}
#veil{position:fixed;inset:0;z-index:2;pointer-events:none;transition:opacity 2.4s ease;
  background:radial-gradient(ellipse at 50% 45%,rgba(1,20,31,.35),rgba(1,20,31,.85) 75%)}
body.is-hall #veil{opacity:.35}
body.is-flood #veil{opacity:.75}
#dust{position:fixed;inset:0;z-index:3;pointer-events:none;width:100%;height:100%}
#grain{position:fixed;inset:-50%;z-index:9;pointer-events:none;opacity:.07;mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation:grain .9s steps(4) infinite}
@keyframes grain{25%{transform:translate(-3%,2%)}50%{transform:translate(2%,-3%)}75%{transform:translate(-2%,-2%)}}

/* =====================================================================
   שפת העיצוב: טקסט ישירות על הצילום, בלי קופסאות.
   מעבר כהה מהצד של הטקסט במקום לוחות, קו זהב קצר לפני כותרת קטנה,
   כפתורים ישרים ומלאים, וקווים דקים רק כדי להפריד בין שורות.
   ===================================================================== */

/* ---------- גג ---------- */
#top{position:fixed;top:0;inset-inline:0;z-index:10;display:flex;align-items:center;gap:16px;padding:16px 24px;pointer-events:none}
#top>*{pointer-events:auto}
.logo{width:50px;height:auto;aspect-ratio:260/222;object-fit:contain;flex:none}
#chapters{list-style:none;margin:0 auto;padding:0;display:flex;gap:18px;align-items:center;text-shadow:0 1px 10px rgba(0,0,0,.7)}
#chapters li{font-size:12px;letter-spacing:.06em;color:rgba(255,255,255,.42);white-space:nowrap;display:flex;align-items:center;gap:7px}
#chapters li b{font-weight:500;font-feature-settings:"tnum"}
#chapters li+li:before{content:"";width:26px;height:1px;margin-inline-end:10px;background:rgba(255,255,255,.22)}
#chapters li.now{color:#fff}
#chapters li.now b{color:var(--gold)}
#chapters li.done{color:rgba(255,255,255,.66)}
/* הלוגו של Matterport נמצא בפינה השמאלית העליונה, לכן הכפתורים שלנו יורדים מתחתיו */
.top-end{display:flex;align-items:center;gap:12px;flex:none;position:absolute;left:20px;top:54px;flex-direction:row-reverse}
.coords{font-size:11px;letter-spacing:.1em;color:rgba(255,255,255,.5);direction:ltr;font-feature-settings:"tnum"}
#sound{width:36px;height:36px;border:0;background:none;display:grid;place-items:center;color:rgba(255,255,255,.8);filter:drop-shadow(0 1px 6px rgba(0,0,0,.6))}
#sound[aria-pressed="false"] .wave{display:none}

/* ---------- מסכים ---------- */
main{position:fixed;inset:0;z-index:5;pointer-events:none}
.screen{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:96px 24px 44px;text-align:center;opacity:0;visibility:hidden;transform:translateY(14px);
  transition:opacity .9s ease,transform .9s ease,visibility 0s linear .9s}
.screen.on{opacity:1;visibility:visible;transform:none;pointer-events:auto;transition:opacity .9s ease .15s,transform .9s ease .15s,visibility 0s}
.entry-logo{width:122px;height:auto;aspect-ratio:260/222;object-fit:contain;margin:0 0 22px;filter:drop-shadow(0 8px 30px rgba(0,0,0,.5))}

/* כותרת קטנה: קו זהב קצר ואחריו המילים */
.kicker,.eyebrow{display:inline-flex;align-items:center;gap:12px;margin:0 0 16px;font-size:13px;font-weight:500;letter-spacing:.08em;color:var(--gold)}
.kicker:before,.eyebrow:before{content:"";width:28px;height:1px;background:currentColor;flex:none}
h1{font-family:"Atlas",sans-serif;font-weight:700;margin:0 0 30px;line-height:1.02;
  font-size:clamp(46px,8vw,104px);text-shadow:0 2px 40px rgba(0,0,0,.4);max-width:15ch}
.small,.fine{font-size:14px;line-height:1.55;color:var(--ink);margin:0}
.fine a,.consent a{color:var(--gold);text-underline-offset:3px}
.lede{max-width:640px;margin:14px 0 0;font-size:clamp(17px,1.8vw,21px);font-weight:300;line-height:1.55;color:#fff;text-shadow:0 1px 14px rgba(0,0,0,.7)}
.lede p{margin:0 0 10px}
.lede-1{font-size:clamp(18px,2vw,22px);font-weight:400;color:#fff;line-height:1.5}
.lede-2{font-size:clamp(14px,1.4vw,16px);font-weight:300;line-height:1.7;color:var(--ink)}
.lede-src{font-size:12px;letter-spacing:.06em;color:var(--gold)}

/* ---------- כפתורים: ישרים, מלאים, עם חץ ---------- */
.pill,.btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:14px;min-height:56px;padding:0 30px;
  border:0;border-radius:0;background:var(--orange);color:var(--navy-deep);font-size:18px;font-weight:700;letter-spacing:.01em;
  transition:background .25s ease,color .25s ease,transform .15s ease}
.pill:hover,.btn:hover{background:#ffab3d}
.pill:active,.btn:active{transform:translateY(1px)}
.btn i,.pill i{font-style:normal;font-weight:400;transition:transform .3s ease}
.btn:hover i,.pill:hover i{transform:translateX(-5px)}
.pill.solid,.btn.primary{background:var(--orange)}
.pill.orange,.btn.orange{background:var(--orange);color:var(--navy-deep)}
.pill.orange:hover,.btn.orange:hover{background:#ffab3d}
.btn.ghost{background:none;color:#fff;padding:0 4px;min-height:44px;font-weight:500;text-decoration:underline;text-decoration-color:rgba(255,255,255,.4);text-underline-offset:6px}
.btn.ghost:hover{background:none;text-decoration-color:var(--gold)}
.link{background:none;border:0;color:var(--ink);font-size:15px;padding:10px 4px;text-decoration:underline;text-decoration-color:rgba(255,255,255,.35);text-underline-offset:6px}
.link:hover{color:#fff;text-decoration-color:var(--gold)}
.actions{display:flex;align-items:center;justify-content:center;gap:26px;margin-top:26px}

/* בחירת פנייה: שתי מילים גדולות וקו זהב ביניהן */
.pair{display:flex;align-items:stretch;gap:0}
.pair .pill{min-width:0;min-height:0;padding:6px 40px 10px;background:none;color:#fff;font-family:"Atlas",sans-serif;font-size:clamp(34px,4.6vw,52px);font-weight:700}
.pair .pill+.pill{border-inline-start:1px solid rgba(198,160,106,.6)}
.pair .pill span,.pair .pill{text-decoration:underline;text-decoration-color:transparent;text-underline-offset:12px;text-decoration-thickness:2px;transition:text-decoration-color .3s,color .3s}
.pair .pill:hover{background:none;color:var(--gold);text-decoration-color:var(--gold)}

/* ---------- טופס השם ---------- */
#s-name h1{font-size:clamp(34px,4.6vw,60px);margin-bottom:26px}
form{width:min(580px,100%)}
/* הפתק במתנה: משפט בולט עם קו זהב בצד, בלי מסגרת */
.gift{margin:0 0 30px;padding:2px 20px 2px 0;border-inline-start:3px solid var(--gold);text-align:start}
.gift-t{margin:0 0 8px;font-family:"Atlas",sans-serif;font-size:clamp(26px,3.2vw,36px);line-height:1.12;color:#fff}
.gift-s{margin:0;font-size:16px;font-weight:300;line-height:1.55;color:var(--ink)}
.fields{display:grid;grid-template-columns:1fr auto 1fr;gap:18px;align-items:end;text-align:start}
.fields label{display:grid;gap:4px;font-size:13px;letter-spacing:.04em;color:var(--gold)}
.fields input[type=text],.fields input[type=tel],.fields input[type=email]{height:52px;border:0;border-bottom:1px solid rgba(255,255,255,.45);border-radius:0;background:none;
  padding:0 2px;font-size:22px;width:100%;transition:border-color .3s}
.fields input:focus{outline:none;border-bottom-color:var(--gold)}
.rel{display:block;padding-bottom:12px;font-family:"Atlas",sans-serif;font-size:24px;color:var(--gold)}
.form-note{margin:22px 0 0;text-align:start}
.form-note p{margin:0 0 6px;font-size:14px;line-height:1.55;color:var(--ink)}
.form-note p:first-child{color:#fff}
.consent{display:block;margin:6px 0 0;font-size:13px;line-height:1.55;color:rgba(255,255,255,.66)}
.err{color:#ffb4a0!important;margin-top:8px!important}

/* ---------- ההיכל ---------- */
.hint{position:fixed;bottom:34px;inset-inline:0;margin:0;text-align:center;font-size:13px;letter-spacing:.08em;color:rgba(255,255,255,.75);
  animation:breath 2.6s ease-in-out infinite;text-shadow:0 1px 10px rgba(0,0,0,.6)}
@keyframes breath{50%{opacity:.35}}
.line{position:fixed;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:0 24px}
.line p{margin:0;font-family:"Atlas",sans-serif;line-height:1.05;text-shadow:0 2px 40px rgba(0,0,0,.5);opacity:0;transform:translateY(16px);transition:opacity 1.2s ease,transform 1.2s ease}
.line .l1{font-size:clamp(40px,7vw,92px)}
.line .l2{font-size:clamp(28px,4.2vw,56px);color:var(--gold);margin-top:10px}
.line.show .l1{opacity:1;transform:none}
.line.show .l2{opacity:1;transform:none;transition-delay:.9s}
.line.out p{opacity:0;transform:translateY(-12px);transition-delay:0s}

/* משפטי האמצע: כל שורה מקבלת טשטוש משלה, צמוד למילים */
.mid{position:fixed;left:50%;top:50%;z-index:7;margin:0;width:min(1100px,calc(100vw - 16px));transform:translate(-50%,-50%);
  text-align:center;font-family:"Atlas",sans-serif;color:#fff;line-height:1.08;pointer-events:none}
.mid p{margin:0}
.mid .ln{position:relative;display:table;margin:0 auto}
.mid .ln:before{content:"";position:absolute;inset:-.3em -1.1em;opacity:0;transition:opacity .9s ease;
  background:rgba(1,20,31,.62);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  -webkit-mask-image:radial-gradient(closest-side,#000 68%,transparent);mask-image:radial-gradient(closest-side,#000 68%,transparent)}
.mid .ln b{position:relative;display:block;font-weight:700;color:#fff;opacity:0;transform:translateY(8px);
  transition:color .8s ease,transform .8s ease,text-shadow .8s ease}
.mid-1 .ln{font-size:clamp(34px,5.6vw,78px)}
.mid-2{margin-top:18px!important}
.mid-2 .ln{font-size:clamp(26px,4vw,54px)}
.mid.show .mid-1 .ln:before,.mid.two .mid-2 .ln:before{opacity:1}
.mid.show .mid-1 .ln b{opacity:1;transform:none}
.mid-2 .ln b{color:var(--gold)}
.mid.two .mid-2 .ln b{opacity:1;transform:none}

/* ---------- ההצפה ---------- */
#flood{position:fixed;inset:0;perspective:1100px;overflow:hidden;z-index:6}
.card{position:absolute;width:var(--w,300px);padding:14px 16px 15px;border-radius:14px;pointer-events:auto;cursor:pointer;
  background:rgba(250,248,244,.95);color:#1b2730;box-shadow:0 20px 50px rgba(0,0,0,.35),0 2px 6px rgba(0,0,0,.2);
  transform-style:preserve-3d;will-change:transform,opacity;user-select:none;-webkit-user-select:none;
  animation:cardIn .5s cubic-bezier(.2,.9,.25,1.15) both}
.card.dark{background:rgba(2,37,57,.96);color:#fff}
.card .meta{display:flex;align-items:center;gap:8px;font-size:12px;margin-bottom:6px;color:rgba(27,39,48,.6)}
.card.dark .meta{color:rgba(255,255,255,.6)}
.card .dot{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--navy);flex:none}
.card .dot i{width:8px;height:8px;border-radius:50%;background:var(--gold)}
.card.dark .dot{background:var(--orange)}
.card.dark .dot i{background:#fff}
.card .cat{font-weight:700;color:var(--navy);font-size:13px}
.card.dark .cat{color:var(--orange)}
.card .when{margin-inline-start:auto}
.card .txt{font-size:var(--fs,17px);font-weight:500;line-height:1.35}
.card.gone{animation:cardOut .45s ease-in forwards;pointer-events:none}
.card.fall{transition:transform var(--fd,1.4s) cubic-bezier(.5,0,.75,.3),opacity var(--fd,1.4s) ease-in;pointer-events:none}
@keyframes cardIn{from{opacity:0;transform:var(--t0)}to{opacity:1;transform:var(--t1)}}
@keyframes cardOut{to{opacity:0;transform:var(--t1) scale(.8) translateY(-30px)}}

/* כפתור ההחזקה, עם הילה כחולה מתחתיו */
#hold-halo{position:fixed;left:50%;top:50%;z-index:7;width:min(1100px,150vw);height:min(560px,70vh);transform:translate(-50%,-50%) scale(.85);
  border-radius:50%;pointer-events:none;opacity:0;transition:opacity .6s ease,transform .8s ease;
  background:radial-gradient(closest-side,rgba(2,37,57,.97) 0,rgba(2,37,57,.9) 45%,rgba(2,37,57,.55) 70%,rgba(2,37,57,0) 100%)}
#hold-halo.on{opacity:1;transform:translate(-50%,-50%) scale(1)}
#hold{position:fixed;left:50%;top:50%;z-index:8;transform:translate(-50%,-50%) scale(.9);opacity:0;
  width:min(640px,calc(100vw - 32px));min-height:120px;padding:22px 30px;border-radius:999px;border:0;overflow:hidden;
  background:var(--orange);color:var(--navy);box-shadow:0 0 0 10px rgba(250,153,28,.18),0 0 0 40px rgba(2,37,57,.55),0 30px 80px rgba(0,0,0,.45);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;pointer-events:auto;
  touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;
  transition:transform .6s cubic-bezier(.2,.9,.25,1.2),opacity .5s ease}
#hold.on{opacity:1;transform:translate(-50%,-50%) scale(1)}
#hold.pressing{transform:translate(-50%,-50%) scale(.97)}
#hold .hold-fill{position:absolute;inset:0;background:#e07e00;transform:scaleX(var(--p,0));transform-origin:right}
#hold .hold-t{position:relative;font-family:"Atlas",sans-serif;font-size:clamp(30px,4.6vw,52px);line-height:1}
#hold .hold-s{position:relative;font-size:15px;font-weight:500}

/* ---------- ההזמנה לסיור: צילומים מתחלפים ברקע, טקסט בצד ימין ---------- */
.screen.invite{z-index:12;align-items:flex-start;justify-content:center;text-align:start;padding:96px 7vw 56px;background:var(--navy-deep)}
.inv-media{position:absolute;inset:0;overflow:hidden}
.inv-v{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;filter:brightness(.8) saturate(.85);transform:scale(1.06);transition:opacity 1.4s ease,transform 6s ease}
.inv-img{background:center/cover no-repeat}
.inv-v.on{opacity:1;transform:scale(1)}
.inv-media:after{content:"";position:absolute;inset:0;
  background:linear-gradient(to left,rgba(1,20,31,.96) 0,rgba(1,20,31,.9) 38%,rgba(1,20,31,.5) 60%,rgba(1,20,31,.2) 82%,rgba(1,20,31,.4) 100%),
             linear-gradient(to top,rgba(1,20,31,.7),rgba(1,20,31,0) 30%)}
.inv-text{position:relative;max-width:560px}
.invite h1{font-size:clamp(40px,5.4vw,72px);margin-bottom:34px;max-width:14ch}
.inv-list{list-style:none;margin:0 0 30px;padding:0;counter-reset:n}
.inv-list li{position:relative;display:flex;gap:18px;align-items:baseline;padding:16px 0;border-top:1px solid rgba(255,255,255,.14);
  font-size:clamp(17px,1.6vw,20px);line-height:1.45;color:rgba(255,255,255,.38);transition:color .8s ease}
.inv-list li:last-child{border-bottom:1px solid rgba(255,255,255,.14)}
.inv-list li:after{content:"";position:absolute;top:-1px;right:0;height:1px;width:0;background:var(--gold)}
.inv-list li.seen{color:rgba(255,255,255,.72)}
.inv-list li.on{color:#fff}
.inv-list li.on:after{width:100%;transition:width 2.4s linear}
.inv-list .n{font-size:13px;letter-spacing:.08em;color:var(--gold);font-feature-settings:"tnum";flex:none}
.inv-foot{margin:0 0 22px;font-size:17px;font-weight:300;color:#fff}

/* ---------- המצבה: טקסט בצד ימין על מעבר כהה, האבנים נשארות גלויות ---------- */
.screen.split.on{pointer-events:none}
.screen.split.on .split-top,.screen.split.on .actions,.screen.split.on .small{pointer-events:auto}
body.is-matzeva #veil{opacity:1;background:rgba(1,20,31,.22);transition:opacity .6s ease}
body.is-matzeva.peek #veil{opacity:.15}
.screen.split{justify-content:space-between;padding:96px 24px max(48px,env(safe-area-inset-bottom))}
#s-next{background:linear-gradient(to left,rgba(1,20,31,.9) 0,rgba(1,20,31,.7) 26%,rgba(1,20,31,0) 52%),linear-gradient(to top,rgba(1,20,31,.65),rgba(1,20,31,0) 24%)}
#s-next .split-top{align-self:flex-start;text-align:right;max-width:min(440px,36vw);transition:opacity .5s ease}
body.is-matzeva.peek #s-next .split-top{opacity:.9}
#s-next h1{font-size:clamp(34px,4.6vw,62px);margin:0 0 6px}
#s-next .lede{margin:12px 0 0}
#s-next .pill{display:inline-flex;align-items:center;gap:10px}
#s-next .small{margin-top:12px}
@media (max-width:899px){
  #s-next{background:linear-gradient(to bottom,rgba(1,20,31,.92) 0,rgba(1,20,31,.7) 36%,rgba(1,20,31,0) 56%),linear-gradient(to top,rgba(1,20,31,.7),rgba(1,20,31,0) 24%)}
  #s-next .split-top{max-width:none;align-self:stretch}
  #s-next .lede-2{font-size:13px}
  #s-next .lede-1{font-size:16px}
}
#fade{position:fixed;inset:0;z-index:11;background:var(--navy-deep);opacity:0;pointer-events:none;transition:opacity .9s ease}
#fade.on{opacity:1}

/* נקודות מהבהבות על התמונה */
.spot-label{padding:6px 2px;background:none;border:0;border-bottom:1px solid var(--orange);font-size:15px;font-weight:700;color:#fff;white-space:nowrap;
  text-shadow:0 1px 10px rgba(0,0,0,.9),0 0 2px rgba(0,0,0,.9);animation:none}
.spot.spot-pray{--sx:50%;--sy:60%}
.spot.spot-pray .spot-label{white-space:normal;max-width:240px;text-align:center}
@media (max-aspect-ratio:1/1){.spot.spot-pray{--sx:50%;--sy:62%}}

/* ---------- מעמד התפילה: צילום המעמד, טקסט בצד, ורשימת שמות על קלף ---------- */
.screen.sheet{align-items:flex-start;text-align:start;padding:96px 7vw 40px;
  background:linear-gradient(to left,rgba(1,20,31,.94) 0,rgba(1,20,31,.84) 40%,rgba(1,20,31,.2) 75%)}
.sheet-in{width:min(560px,100%)}
.sheet-in h1{font-size:clamp(32px,4.2vw,54px);margin-bottom:14px;max-width:none}
.sheet-p{margin:0 0 22px;font-size:16px;font-weight:300;line-height:1.65;color:var(--ink)}
.sheet-q{margin:0 0 10px;font-size:13px;letter-spacing:.06em;color:var(--gold)}
.chips{display:flex;flex-wrap:wrap;gap:4px 22px;margin-bottom:22px}
.chips label{display:block;cursor:pointer}
.chips input{position:absolute;opacity:0;width:0;height:0}
.chips span{display:block;padding:6px 0;font-size:18px;color:rgba(255,255,255,.6);border-bottom:2px solid transparent;transition:color .25s,border-color .25s}
.chips span:hover{color:#fff}
.chips input:checked+span{color:#fff;border-bottom-color:var(--gold)}
.chips input:focus-visible+span{outline:2px solid var(--orange);outline-offset:2px}
.namelist{margin:0 0 6px;padding:18px 22px 20px;color:#2a2116;text-align:start;max-width:420px;transform:rotate(-.8deg);
  background:#efe4cc url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .33  0 0 0 0 .18  0 0 0 .12 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>");
  box-shadow:0 18px 40px rgba(0,0,0,.45),inset 0 0 50px rgba(120,80,30,.28)}
.nl-t{margin:0 0 8px;font-size:12px;letter-spacing:.08em;color:#E8850C;font-weight:700}
.nl-row{margin:0;padding:7px 0;border-bottom:1px solid rgba(120,90,40,.22);font-size:18px}
.nl-row.blur{filter:blur(2.5px);color:#6b5a40;user-select:none}
.nl-row.me{font-family:"Atlas",sans-serif;font-size:22px;font-weight:700;color:var(--navy)}
.nl-row.me.added{animation:nlIn 1s ease}
@keyframes nlIn{from{background:rgba(198,160,106,.6)}}
.sheet-in .actions{justify-content:flex-start}
.sheet-note{margin:14px 0 0;font-size:13px;color:rgba(255,255,255,.62)}

/* ---------- הנר ---------- */
.screen.stage{justify-content:space-between;padding:96px 24px max(40px,env(safe-area-inset-bottom))}
.stage-top{max-width:720px}
.stage-top h1{font-size:clamp(32px,4.6vw,60px);margin:0;max-width:none}
.stage-top .lede{margin:12px auto 0}
.stage-bottom{display:flex;flex-direction:column;align-items:center;gap:16px;pointer-events:auto}
/* הכוס: מחוץ למסכים, מעל הסרטון השקוף. מצב מיזוג "מסך" מעלים את השחור שסביבה, כך שנשארים רק הזכוכית והאור */
.cup{--lp:0;position:fixed;left:50%;top:54%;z-index:3;width:min(60vh,80vw);aspect-ratio:1;transform:translate(-50%,-50%) scale(.94);
  mix-blend-mode:screen;opacity:0;pointer-events:none;transition:opacity 1.6s ease,transform 2s ease;
  -webkit-mask-image:radial-gradient(closest-side,#000 58%,transparent 100%);mask-image:radial-gradient(closest-side,#000 58%,transparent 100%)}
body.is-cup .cup{opacity:1;transform:translate(-50%,-50%) scale(1)}
.cup img,.cup video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;user-select:none;-webkit-user-drag:none}
.cup-lit{opacity:0;transition:opacity .35s ease}
.cup.lit .cup-lit{opacity:1}
/* אור חם שגדל בזמן ההחזקה, בדיוק מעל הפתיל */
.cup-glow{position:absolute;left:50%;top:50%;width:46%;height:46%;transform:translate(-50%,-50%) scale(calc(.4 + var(--lp) * .8));border-radius:50%;
  background:radial-gradient(closest-side,rgba(255,200,110,.7),rgba(250,153,28,.25) 45%,rgba(250,153,28,0));opacity:calc(var(--lp) * .9);pointer-events:none}
.cup.lit .cup-glow{opacity:0;transition:opacity .6s ease}
/* אזור הלחיצה: עיגול שקוף בדיוק מעל הכוס */
.cup-hit{position:fixed;left:50%;top:54%;width:calc(min(60vh,80vw) * .5);aspect-ratio:1;transform:translate(-50%,-50%);border:0;border-radius:50%;
  background:none;cursor:pointer;pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.cup-hit:disabled{cursor:default}
/* שולחן הנרות: מלא בהתחלה, שקוף וחשוך מאחורי הנר */
body.is-candlevid.is-dim #candle-video{opacity:.24;filter:blur(3px) saturate(.6) brightness(.85)}
body.is-dim #veil{opacity:.6}
.stage-top .statement{font-size:clamp(30px,3.8vw,52px);line-height:1.18;max-width:22ch;margin:0 auto}
.phase-a{transition:opacity .9s ease}
.phase-a.out{opacity:0}
.phase-b{animation:rise .9s ease both}
.candle-note{max-width:520px;text-align:center}
/* ההתקדמות: קו דק שמתמלא מתחת להנחיה */
.hold-hint{--lp:0;display:flex;flex-direction:column;align-items:center;gap:12px}
.hold-hint .ring{display:block;width:180px;height:2px;background:linear-gradient(to left,var(--orange) calc(var(--lp) * 100%),rgba(255,255,255,.2) 0)}
.hold-hint.done .ring{background:var(--orange);opacity:0;transition:opacity 1.2s ease}
.light-t{margin:0;font-size:clamp(19px,2vw,24px);font-weight:700;letter-spacing:.01em;color:var(--orange);text-shadow:0 2px 14px rgba(0,0,0,.9)}
.hold-hint.done .light-t{opacity:0;transition:opacity .8s}
.stage-act{display:flex;flex-direction:column;align-items:center;gap:16px;max-width:520px;animation:rise .8s ease both}
@keyframes rise{from{opacity:0;transform:translateY(14px)}}
#s-candles .stage-top{animation:none}

/* שולחן הנרות של א׳ בטבת, אחרי ההדלקה */
#candle-video{position:fixed;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;opacity:0;pointer-events:none;
  filter:brightness(.85);transition:opacity 1.6s ease,filter 2.2s ease}
body.is-candlevid #candle-video{opacity:1}
body.is-candlevid #candles-bg{opacity:0!important}
body.is-candlevid #tint{opacity:.22}
body.is-candlevid #s-candles{background:linear-gradient(to bottom,rgba(1,20,31,.94) 0,rgba(1,20,31,.75) 22%,rgba(1,20,31,0) 44%),linear-gradient(to top,rgba(1,20,31,.95) 0,rgba(1,20,31,.75) 22%,rgba(1,20,31,0) 46%)}

/* ---------- המערה ---------- */
body.is-cave #veil{opacity:.45}
#cave-yt{position:fixed;inset:0;z-index:0;overflow:hidden;opacity:0;pointer-events:none;transition:opacity 1.6s ease}
#cave-yt video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:brightness(.85)}
body.is-cave.yt-on #cave-yt{opacity:1}
body.is-cave #s-cave{background:linear-gradient(to bottom,rgba(1,20,31,.88),rgba(1,20,31,0) 36%),linear-gradient(to top,rgba(1,20,31,.8),rgba(1,20,31,0) 40%)}
.note-zone{display:flex;flex-direction:column;align-items:center;gap:16px;pointer-events:auto;margin:auto 0}
/* הפתק: נייר בגוון עתיק, כמו הפתקאות במערה. השם בגופן של המותג */
.paper{--dx:0px;--dy:0px;position:relative;width:min(340px,84vw);padding:26px 26px 26px;color:#33260f;text-align:center;
  background:radial-gradient(ellipse 80% 75% at 50% 45%,#efe0bb 0%,#e3cd9a 62%,#cdb078 100%);
  box-shadow:0 24px 60px rgba(0,0,0,.55),inset 0 0 28px rgba(120,80,25,.28);
  transform:translate(var(--dx),var(--dy));animation:rise .8s ease both;transition:transform .45s ease,opacity .5s ease}
.paper-h{margin:0 0 10px;font-size:12px;letter-spacing:.1em;color:#E8850C;font-weight:700}
.hand{margin:0;font-family:"Mugrabi","Atlas",serif;font-weight:700;font-size:clamp(30px,3.4vw,40px);line-height:1.15;color:#2a2010;animation:rise .7s ease both}
.hand.small{font-family:"Atlas",sans-serif;font-weight:400;font-size:16px;color:#5e4a28;margin-top:8px}
.hand.small:empty{display:none}
.paper-fields{display:grid;gap:10px;justify-items:center}
.hand-line{display:block;width:100%}
.hand-line input{width:100%;border:0;border-bottom:1px solid rgba(60,40,10,.35);background:none;text-align:center;
  font-family:"Atlas",sans-serif;font-size:20px;line-height:1.4;color:#2a2010;padding:6px 0}
.hand-line input::placeholder{color:rgba(60,40,10,.45)}
.hand-line input:focus{outline:none;border-bottom-color:#2a2010}
.paper .rel{padding:0;font-size:16px;color:#7a5f33;font-family:"Atlas",sans-serif}
.paper .err{color:#9a2a1a!important;font-size:14px;margin:10px 0 0!important}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.note-zone .consent{max-width:380px;text-align:start}
/* מוכן לגרירה */
.paper.ready{cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}
.paper.ready:focus-visible{outline:2px solid var(--orange);outline-offset:6px}
.paper.dragging{cursor:grabbing;transition:none;transform:translate(var(--dx),var(--dy)) rotate(-2deg) scale(1.03)}
.paper.in{transition:transform .8s cubic-bezier(.5,0,.7,.4),opacity .8s ease;opacity:0;transform:translate(var(--dx),var(--dy)) scale(.14,.07)}
/* החלון: קו זהב דק, ומתחתיו מילה אחת */
.slot{position:absolute;left:50%;top:80%;width:min(260px,64vw);height:1px;transform:translate(-50%,-50%);background:var(--gold);transition:background .3s,height .3s}
.slot span{position:absolute;top:12px;left:0;right:0;text-align:center;font-size:12px;letter-spacing:.1em;color:var(--gold)}
.slot.near,.slot.take{background:var(--orange);height:2px}
.drag-hint{position:absolute;left:0;right:0;top:calc(80% - 46px);margin:0;font-size:15px;color:#fff;text-shadow:0 1px 10px rgba(0,0,0,.9);transition:opacity .4s}
.drag-hint.quiet{opacity:0}

/* ---------- הבקשה בסוף ---------- */
.summary{width:min(600px,100%);text-align:start;pointer-events:auto;animation:rise .9s ease both}
.sum-t{margin:0 0 8px;font-family:"Atlas",sans-serif;font-size:clamp(28px,3.6vw,44px);line-height:1.1;color:#fff}
.sum-list{list-style:none;margin:16px 0 22px;padding:0}
.sum-list li{display:flex;align-items:center;gap:14px;padding:12px 0;border-top:1px solid rgba(255,255,255,.16);font-size:16px}
.sum-list li:last-child{border-bottom:1px solid rgba(255,255,255,.16)}
.sum-list i{width:14px;height:14px;transform:rotate(45deg);border:1px solid rgba(255,255,255,.5);flex:none}
.sum-list li.on i{background:var(--gold);border-color:var(--gold)}
.sum-list b{margin-inline-start:auto;font-size:12px;font-weight:700;letter-spacing:.06em;color:var(--gold)}
.sum-act{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px}

/* ---------- מסילת התיקון המשולש: בצד שמאל, שלוש נקודות על קו ---------- */
#tracker{position:fixed;z-index:10;left:26px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:flex-start;gap:14px;
  text-shadow:0 1px 8px rgba(0,0,0,.8)}
#tracker .tr-t{font-size:11px;letter-spacing:.12em;color:var(--gold);writing-mode:vertical-rl;transform:rotate(180deg);margin-bottom:6px;align-self:center}
#tracker ol{position:relative;list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:22px}
#tracker ol:before{content:"";position:absolute;left:6px;top:8px;bottom:8px;width:1px;background:rgba(255,255,255,.25)}
#tracker li{position:relative;display:flex;align-items:center;gap:12px;font-size:13px;color:rgba(255,255,255,.5);transition:color .6s ease;direction:rtl;flex-direction:row-reverse}
#tracker li:before{content:"";width:9px;height:9px;margin:0 2px;transform:rotate(45deg);border:1px solid rgba(255,255,255,.55);background:var(--navy-deep);flex:none;transition:all .6s ease}
#tracker svg{display:none}
#tracker li.seen{color:#fff}
#tracker li.seen:before{border-color:var(--gold)}
#tracker li.on{color:var(--gold);font-weight:700}
#tracker li.on:before{background:var(--gold);border-color:var(--gold);box-shadow:0 0 14px rgba(198,160,106,.8)}
#tracker li.pop:before{animation:trPop .9s ease}
@keyframes trPop{40%{transform:rotate(45deg) scale(1.8);box-shadow:0 0 24px rgba(198,160,106,.9)}}

/* ---------- חלון התשלום ---------- */
dialog#pay{width:min(620px,100vw);height:min(860px,100dvh);max-width:100vw;max-height:100dvh;padding:0;border:0;border-radius:0;background:#fff;color:var(--navy);overflow:hidden}
dialog#pay[open]{display:flex;flex-direction:column}
dialog#pay::backdrop{background:rgba(1,20,31,.82)}
.pay-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:16px 20px;background:var(--navy);color:#fff;flex:none}
.pay-kicker{font-size:12px;letter-spacing:.08em;color:var(--gold)}
.pay-head h2{margin:2px 0 0;font-size:19px;font-weight:700;line-height:1.3}
#pay-close{width:44px;height:44px;border:0;background:none;display:grid;place-items:center;flex:none;color:#fff}
.pay-body{flex:1;position:relative;min-height:0}
#pay-loading{position:absolute;inset:0;display:grid;place-items:center;font-size:17px;color:var(--navy)}
#pay-frame{position:absolute;inset:0;width:100%;height:100%;border:0;background:transparent}
.pay-foot{flex:none;padding:8px 18px;font-size:14px;text-align:center;border-top:1px solid #e5e5e5}
.pay-foot a{color:var(--navy);font-weight:700}

/* תמונה על כל המסך במקום הסריקה (מעמד, מערה) */
body.is-photo #candles-bg{opacity:1}
body.is-photo #spots{visibility:hidden}
body.is-photo #space,body.is-photo #look{visibility:hidden}
body.is-photo.is-candles #candles-bg{animation:kb 28s ease-in-out infinite alternate}

/* ---------- נייד ---------- */
@media (max-width:760px){
  #top{padding:12px 14px;gap:10px}
  .logo{width:42px}
  #chapters{gap:8px}
  #chapters li{font-size:11px}
  #chapters li:not(.now){font-size:0;gap:0}
  #chapters li:not(.now) b{font-size:11px}
  #chapters li+li:before{width:10px;margin-inline-end:6px}
  .coords{display:none}
  .top-end{top:46px;left:10px}
  h1{margin-bottom:24px}
  .pair .pill{padding:4px 28px 8px}
  .fields{grid-template-columns:1fr auto 1fr;gap:10px}
  .fields input[type=text]{font-size:19px}
  .actions{flex-direction:column;gap:6px}
  .actions .pill{width:100%}
  #hold{border-radius:28px;min-height:110px}
  #s-name{justify-content:flex-start;overflow:auto;padding-top:96px}
  #s-name h1{margin-bottom:20px}
  .gift{margin-bottom:22px}
  .screen.invite{padding:90px 22px 34px;justify-content:flex-end}
  .inv-media:after{background:linear-gradient(to top,rgba(1,20,31,.96) 0,rgba(1,20,31,.86) 55%,rgba(1,20,31,.2) 85%)}
  .invite h1{margin-bottom:18px}
  .inv-list{margin-bottom:18px}
  .inv-list li{padding:11px 0}
  .invite .btn{width:100%}
  .screen.sheet{padding:90px 20px 30px;justify-content:flex-end;background:linear-gradient(to top,rgba(1,20,31,.96) 0,rgba(1,20,31,.88) 60%,rgba(1,20,31,.3) 90%)}
  .screen.split,.screen.stage{padding-bottom:84px}
  #tracker{left:50%;top:auto;bottom:max(14px,env(safe-area-inset-bottom));transform:translateX(-50%);flex-direction:row}
  #tracker .tr-t{display:none}
  #tracker ol{flex-direction:row;gap:22px}
  #tracker ol:before{left:8px;right:8px;top:50%;bottom:auto;width:auto;height:1px}
  #tracker li{flex-direction:row}
  .summary .btn{width:100%}
  .sum-act{flex-direction:column;align-items:stretch}
  .cup{width:min(92vw,52vh)}
  .cup-hit{width:calc(min(92vw,52vh) * .5)}
  dialog#pay{width:100vw;height:100dvh}
}
@media (prefers-reduced-motion:reduce){
  #grain,.hint{animation:none}
  #space,.screen,.line p{transition-duration:.01ms!important}
  .card{animation-duration:.01ms}
}

/* אחרי ההכנסה: הפתק יורד לאט אל ערימת הפתקים בתחתית הפיר */
.fall-note{position:absolute;left:50%;top:32%;width:40px;height:26px;transform:translate(-50%,0);background:#e3cd9a;box-shadow:0 6px 14px rgba(0,0,0,.6);
  animation:fallIn 3s cubic-bezier(.4,0,.6,1) forwards}
@keyframes fallIn{0%{opacity:0;transform:translate(-50%,0) scale(1.1)}12%{opacity:1}85%{opacity:1}100%{opacity:0;transform:translate(-50%,46vh) scale(.35)}}
body.is-cave.is-sum #veil{opacity:1;background:rgba(1,20,31,.62);transition:opacity 1.2s ease}

/* ההנחיה להדלקה: מתחת לכותרת, מעל הכוס */
.phase-b .hold-hint{margin-top:16px}
.phase-b .hold-hint .ring{width:220px}
/* הפרקים למעלה: לחיצים */
#chapters button{display:flex;align-items:center;gap:7px;padding:6px 0;background:none;border:0;color:inherit;font:inherit;letter-spacing:inherit;cursor:pointer;transition:color .2s}
#chapters button:hover:not(:disabled){color:#fff}
#chapters button:disabled{cursor:default;opacity:.55}
.logo-link{display:block;flex:none;line-height:0}
/* תיבת הסכמה */
label.consent{display:flex;align-items:flex-start;gap:10px;cursor:pointer}
.consent[hidden]{display:none!important}
.consent input{flex:none;width:18px;height:18px;margin:2px 0 0;accent-color:var(--orange);cursor:pointer}
/* בחירה של כמה נושאים, ושדה קצר למשהו אחר */
.chip-other input{width:150px;padding:6px 0;border:0;border-bottom:1px solid rgba(255,255,255,.35);background:none;font-size:18px;color:#fff}
.chip-other input::placeholder{color:rgba(255,255,255,.5)}
.chip-other input:focus{outline:none;border-bottom-color:var(--gold)}
/* וידאו קרוב יותר בהזמנה: מוגדל */
.inv-v{transform:scale(calc(var(--z,1) * 1.06))}
.inv-v.on{transform:scale(var(--z,1))}
.chips .chip-other input{position:static;opacity:1;width:150px;height:auto}

/* ---------- ההצעה בסוף: מה כבר בפנים, ומה בוחרים להוסיף ---------- */
.summary .eyebrow{margin-bottom:12px}
.sum-p{margin:0 0 20px;font-size:17px;font-weight:300;line-height:1.55;color:var(--ink)}
.gift-row{display:flex;align-items:center;gap:14px;padding:12px 14px;border-top:1px solid rgba(255,255,255,.16);font-size:14px;color:var(--ink)}
.gift-row i{width:14px;height:14px;transform:rotate(45deg);background:var(--gold);flex:none}
.gift-row b{display:block;font-size:16px;font-weight:500;color:#fff}
.gift-row em{margin-inline-start:auto;font-style:normal;font-size:12px;font-weight:700;letter-spacing:.06em;color:var(--gold)}
.offers{margin:0 0 24px;border-top:1px solid rgba(255,255,255,.16)}
.offer{position:relative;display:flex;align-items:center;gap:14px;padding:16px 14px;border-bottom:1px solid rgba(255,255,255,.16);cursor:pointer;transition:background .25s}
.offer:hover{background:rgba(255,255,255,.05)}
.offer input{position:absolute;opacity:0;width:0;height:0}
.offer:before{content:"";width:14px;height:14px;transform:rotate(45deg);border:1px solid rgba(255,255,255,.6);flex:none;transition:all .25s}
.offer:has(input:checked){background:rgba(250,153,28,.13)}
.offer:has(input:checked):before{background:var(--orange);border-color:var(--orange)}
.offer:has(input:focus-visible){outline:2px solid var(--orange);outline-offset:-2px}
.o-main b{display:block;font-size:17px;font-weight:700;color:#fff}
.o-main small{display:block;margin-top:3px;font-size:14px;line-height:1.5;color:var(--ink)}
.o-price{margin-inline-start:auto;padding-inline-start:12px;font-size:20px;font-weight:700;color:#fff;white-space:nowrap;font-feature-settings:"tnum"}
@media (max-width:760px){
  body.is-sum #s-cave .stage-top{display:none}
  body.is-sum #s-cave{justify-content:center}
  .offer{padding:14px 10px}
  .o-price{font-size:18px}
}

/* ---------- סבב 9 ---------- */
/* הניווט העליון מופיע רק מהמצבה והלאה */
#chapters{opacity:0;visibility:hidden;transition:opacity .8s ease,visibility 0s linear .8s}
body.nav-on #chapters{opacity:1;visibility:visible;transition:opacity .8s ease}
/* טלפון ואימייל */
.fields.contact{grid-template-columns:1fr 1fr;margin-top:16px}
.contact-why{margin:10px 0 0;font-size:14px;color:var(--gold);text-align:start}
.skip-confirm{margin-top:22px;padding:16px 0 0;border-top:1px solid rgba(255,255,255,.18);text-align:start}
.skip-confirm p{margin:0;font-size:17px;color:#fff;line-height:1.5}
.skip-confirm .actions{justify-content:flex-start}
/* רשימת המעמד: השם בגדול, הבקשות בקטן מתחת */
.nl-row.me .nl-name{display:block;font-family:"Atlas",sans-serif;font-size:24px;line-height:1.15}
.nl-row.me .nl-req{display:block;margin-top:3px;font-family:"Atlas",sans-serif;font-size:14px;font-weight:400;color:#5e4a28}
.nl-row.me .nl-req:empty{display:none}
/* דברי הצדיקים על א׳ בטבת */
.phase-q{max-width:980px;margin:0 auto;animation:rise .9s ease both;transition:opacity .7s ease}
.phase-q.out{opacity:0}
.rabanim{display:block;width:min(420px,70vw);height:auto;margin:0 auto -6px;
  -webkit-mask-image:linear-gradient(to bottom,#000 70%,transparent);mask-image:linear-gradient(to bottom,#000 70%,transparent)}
.quotes{display:grid;grid-template-columns:1fr 1fr;gap:34px;margin:0 0 26px;padding-top:22px;border-top:1px solid rgba(198,160,106,.45)}
.quotes figure{margin:0;text-align:center}
.quotes blockquote{margin:0 0 12px;font-family:"Mugrabi","Atlas",serif;font-size:clamp(19px,1.8vw,25px);line-height:1.4;color:#fff;text-shadow:0 2px 14px rgba(0,0,0,.8)}
.quotes figcaption{font-size:13px;letter-spacing:.04em;color:var(--gold)}
/* שם לנר, למי שלא כתב בהתחלה */
.candle-name{display:flex;justify-content:center;align-items:center;gap:14px;margin:12px auto 0;pointer-events:auto}
.candle-name input{width:min(260px,60vw);padding:6px 2px;border:0;border-bottom:1px solid rgba(255,255,255,.45);background:none;font-size:18px;text-align:center;color:#fff}
.candle-name input:focus{outline:none;border-bottom-color:var(--orange)}
.candle-name input::placeholder{color:rgba(255,255,255,.55)}
/* הפתק במערה: טלפון ואימייל מתחת לפתק */
.note-zone .fields.contact{width:min(380px,84vw);margin:0}
/* הכנסת הפתק: הפתק נוטה לאחור ומחליק לתוך החלון, כמו נייר שנכנס לפתח */
.paper{transform-origin:50% 100%}
.paper.in{transition:transform 1s cubic-bezier(.55,0,.75,.35),opacity .5s ease .55s,filter 1s ease;opacity:0;filter:brightness(.6);
  transform:translate(var(--dx),var(--dy)) perspective(700px) rotateX(78deg) scale(.42)}
/* אחרי ההכנסה: הסרטון בערימת הפתקאות, מעט בהיר יותר */
body.is-cave.to-pile #veil{opacity:.3}
@media (max-width:760px){
  .quotes{grid-template-columns:1fr;gap:18px;padding-top:16px;margin-bottom:18px}
  .quotes blockquote{font-size:18px}
  .rabanim{width:min(300px,76vw)}
  .fields.contact{grid-template-columns:1fr 1fr}
  .candle-name{flex-direction:column;gap:6px}
}
body.is-cave.to-pile.is-sum #veil{opacity:1;background:rgba(1,20,31,.72)}

/* ---------- סבב 11 ---------- */
/* המעמד: סרטון המעמד ליד המצבה ברקע */
#ceremony-video{position:fixed;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;opacity:0;pointer-events:none;transition:opacity 1.2s ease;filter:brightness(.8)}
body.is-ceremony #ceremony-video{opacity:1}
body.is-ceremony #space,body.is-ceremony #look,body.is-ceremony #spots{visibility:hidden}
body.is-ceremony #veil{opacity:.35}
.sheet-in .actions .pill i{font-style:normal}
/* הנר מתמזג בשולחן: השולחן חוזר במלואו, והכוס דועכת לתוכו */
body.is-merge #candle-video{opacity:1;filter:brightness(.85)}
body.is-merge .cup{opacity:0;transform:translate(-50%,-50%) scale(.55);transition:opacity 3s ease 1s,transform 4s ease}
body.is-merge #s-candles .phase-b h1{text-shadow:0 2px 24px rgba(0,0,0,.9)}
/* אישור הפתק */
.paper-ok{display:flex;flex-direction:column;align-items:center;gap:6px;animation:rise .7s ease both}
.paper-ok-q{margin:0;font-size:17px;color:#fff;text-shadow:0 1px 10px rgba(0,0,0,.8)}
.paper-ok .actions{margin-top:8px}
.hand-line.small input{font-size:16px}

/* ---------- סבב 12 ---------- */
/* פתיחה: תמונות המקום בתנועה איטית, טקסט קצר בצד */
.screen.intro .inv-v{transition:opacity 2s ease,transform 9s linear;transform:scale(1.12)}
.screen.intro .inv-v.on{transform:scale(1.02)}
.intro h1{font-size:clamp(46px,6.4vw,92px);margin-bottom:18px}
.intro-lead{margin:0 0 14px;font-family:"Atlas",sans-serif;font-size:clamp(22px,2.4vw,30px);line-height:1.3;color:#fff}
.intro-p{margin:0 0 14px;font-size:clamp(16px,1.5vw,18px);font-weight:300;line-height:1.65;color:var(--ink);max-width:520px}
.intro-gold{margin:0 0 26px;font-size:clamp(16px,1.5vw,18px);line-height:1.6;color:var(--gold);max-width:520px}
body.is-intro #tracker,body.is-intro .top-end .coords{display:none}
/* המעמד: שם למי שנכנס בלי שם */
.cer-name{margin:0 0 18px}
.cer-fields{display:flex;align-items:flex-end;gap:14px}
.cer-fields label{flex:1}
.cer-fields input{width:100%;padding:6px 2px;border:0;border-bottom:1px solid rgba(255,255,255,.45);background:none;font-size:18px;color:#fff}
.cer-fields input:focus{outline:none;border-bottom-color:var(--gold)}
.cer-fields input::placeholder{color:rgba(255,255,255,.5)}
.cer-fields .rel{padding-bottom:8px;font-size:18px}
#s-next .actions{flex-wrap:wrap}
#skip-candle{pointer-events:auto}
.tap-insert{position:absolute;left:0;right:0;top:calc(80% + 34px);margin:0 auto;width:max-content;pointer-events:auto}
#sum-end .sum-act{margin-top:10px}

/* ---------- סבב 12ב: משפטי האמצע בולטים, ומובייל בלי חפיפות ---------- */
/* משפטי האמצע: טשטוש וכהות רק מתחת למילים עצמן, עם שוליים רכים. המילים לבנות וחזקות */
.mid{z-index:9;transform:translate(-50%,-50%) translateZ(0);will-change:transform}
.mid .ln:before{display:block!important;inset:-.22em -.7em;background:rgba(1,20,31,.88);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  -webkit-mask-image:linear-gradient(to left,transparent,#000 9%,#000 91%,transparent),linear-gradient(to bottom,transparent,#000 22%,#000 78%,transparent);
  -webkit-mask-composite:source-in;mask-image:linear-gradient(to left,transparent,#000 9%,#000 91%,transparent),linear-gradient(to bottom,transparent,#000 22%,#000 78%,transparent);mask-composite:intersect}
.mid .ln b{text-shadow:0 0 2px rgba(0,0,0,.9),0 3px 22px rgba(0,0,0,.95)!important}
/* הפתקים בשכבה שטוחה משלהם, כדי שבטלפון לא יעלו מעל המשפטים */
#flood{isolation:isolate;transform:translateZ(0)}
@media (max-width:760px){
  .mid-1 .ln{font-size:clamp(30px,8.6vw,40px)}
  .mid-2 .ln{font-size:clamp(22px,6.4vw,30px)}
  /* מסכים ארוכים נגללים, ולא נדחפים מתחת לסרגל העליון או לתחתית */
  .screen{overflow-y:auto;-webkit-overflow-scrolling:touch}
  .screen.sheet,.screen.stage,.screen.invite,.screen.split{padding-top:108px;padding-bottom:100px}
  .screen.sheet,.screen.invite{justify-content:safe flex-end}
  .screen.stage,.screen.split{justify-content:safe space-between}
  .top-end{top:50px}
}

/* ---------- סבב 13 ---------- */
/* המצבה: הסיפור הוא הכפתור הבולט, בתוך הטקסט */
.film-btn{margin-top:18px;gap:12px;font-size:19px;min-height:60px}
.film-btn svg{flex:none}
#s-next #film-note{margin-top:10px}
/* המערה: כשממלאים פרטים, פחות טקסט ופתק נמוך יותר */
.screen.stage{overflow-y:auto;justify-content:safe space-between}
body.is-noteform #s-cave .stage-top h1{font-size:clamp(26px,3vw,38px)}
body.is-noteform .paper{padding:16px 22px 14px}
body.is-noteform .paper-h{margin-bottom:4px}
.paper-fields{grid-template-columns:1fr auto 1fr;align-items:end;gap:4px 10px}
.paper-fields .hand-line.small{grid-column:1/-1}
.paper-fields .rel{padding-bottom:10px}
.hand-line input{font-size:19px;padding:4px 0}
.hand-line.small input{font-size:15px}
.note-zone{gap:10px}
.note-zone .fields.contact{gap:12px}
.note-zone .fields.contact input{height:40px;font-size:16px}
.note-zone .consent{font-size:12px;max-width:380px}
.paper-acts{display:flex;align-items:center;justify-content:center;gap:20px;flex-wrap:wrap}
.fields.contact input::placeholder{color:rgba(255,255,255,.72)}

/* ---------- סבב 14 ---------- */
/* כניסה עדינה ואחידה */
@keyframes enterUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.enter{animation:enterUp .75s cubic-bezier(.2,.7,.2,1) both!important;animation-delay:var(--d,0ms)!important}
/* המצבה: שאלה בגדול, טקסט קצר, כפתור למעמד, ואחריו הסיפור */
#s-next .split-top{max-height:calc(100vh - 140px);overflow-y:auto;scrollbar-width:none}
#s-next .split-top::-webkit-scrollbar{display:none}
.mz-pre{margin:0 0 6px;font-size:clamp(16px,1.5vw,19px);font-weight:300;color:var(--ink)}
#s-next h1{font-size:clamp(30px,3.4vw,48px);line-height:1.1;margin:0 0 4px}
#s-next .lede{margin-top:12px}
#s-next .lede-1{font-size:clamp(17px,1.6vw,20px)}
#to-ceremony{margin-top:14px}
.mz-story{margin-top:22px;padding-top:16px;border-top:1px solid rgba(198,160,106,.35)}
.mz-story .lede-2{margin:0 0 6px}
.film-btn{margin-top:6px;font-size:17px;min-height:48px;padding:0 4px;gap:10px}
.film-btn svg{color:var(--orange)}
/* המעמד: קומפקטי יותר */
#s-ceremony .sheet-in h1{font-size:clamp(28px,3vw,42px);margin-bottom:10px}
#s-ceremony .chips{gap:2px 18px;margin-bottom:14px}
#s-ceremony .chips span{font-size:16px;padding:4px 0}
#s-ceremony .cer-name{margin-bottom:12px}
#s-ceremony .cer-fields input{font-size:16px}
#s-ceremony .namelist{padding:12px 18px 12px;max-width:380px}
#s-ceremony .nl-row{padding:5px 0;font-size:15px}
#s-ceremony .nl-row.me .nl-name{font-size:20px}
#s-ceremony .sheet-q{margin-bottom:6px}

/* ---------- סבב 15 ---------- */
.countdown{margin:0 0 14px;font-size:14px;letter-spacing:.02em;color:var(--gold)}
.countdown b{color:#fff;font-weight:700}
.tax{margin:-10px 0 18px;font-size:13px;color:var(--ink)}
.sum-share{margin-top:12px}
.share-btn{display:inline-flex;align-items:center;gap:8px}
.share-btn svg{flex:none;color:#25D366}
.btn.primary.share-btn svg{color:var(--navy-deep)}
.contact-why{margin:0;font-size:13px;color:var(--gold);text-align:center}
#s-thanks h1{margin-bottom:14px}
body.is-thanks #tracker,body.is-thanks #chapters,body.is-thanks .top-end .coords{display:none}

/* ---------- סבב 16 ---------- */
.mid .ln:before{transition:opacity .6s ease!important}
.mid .ln b{transition:opacity .6s ease,transform .6s ease!important}
/* המצבה: צד אחד למעמד, וסיפור האבנים כבלוק נפרד ליד האבנים */
#s-next .split-top .lede-1{margin:14px 0 10px}
#s-next .split-top .lede-2{margin:0 0 10px;line-height:1.6}
.mz-you{color:#fff!important}
.mz-story{align-self:flex-end;max-width:min(400px,40vw);margin:0 0 6px;padding:18px 22px;pointer-events:auto;text-align:right;
  background:radial-gradient(ellipse at 60% 50%,rgba(1,20,31,.82),rgba(1,20,31,.55) 60%,rgba(1,20,31,0) 100%)}
.mz-story .eyebrow{margin-bottom:8px}
.mz-story-t{margin:0 0 6px;font-family:"Atlas",sans-serif;font-size:clamp(20px,2vw,26px);line-height:1.25;color:#fff}
.mz-story .lede-2{margin:0 0 6px}
.mz-story .film-btn{margin-top:4px}
@media (max-width:899px){.mz-story{align-self:stretch;max-width:none;margin-top:18px;border-top:1px solid rgba(198,160,106,.35);background:none;padding:16px 0 0}}
/* חלון הסרט */
dialog#film{width:min(960px,96vw);max-width:96vw;padding:0;border:0;background:#000;color:#fff;overflow:visible}
dialog#film::backdrop{background:rgba(1,10,16,.9)}
#film-video{display:block;width:100%;max-height:80vh;background:#000}
#film-soon{margin:0;padding:60px 20px;text-align:center;font-family:"Atlas",sans-serif;font-size:28px}
#film-close{position:absolute;top:-48px;left:0;width:44px;height:44px;border:0;background:none;color:#fff;display:grid;place-items:center}
.film-link{margin-top:10px;font-size:14px;color:var(--gold)}
/* דברי המקובלים: כותרת */
.sages-h{margin:0 0 16px;font-family:"Atlas",sans-serif;font-size:clamp(18px,1.9vw,24px);line-height:1.35;color:var(--gold);text-shadow:0 2px 14px rgba(0,0,0,.8)}
/* ההזמנה */
.inv-when{margin:0 0 6px;font-size:15px;letter-spacing:.04em;color:var(--gold)}
/* הנר מתמזג לשולחן הנרות, לא לאדם: יורד ומתכווץ אל הכוסות שבתחתית */
body.is-merge .cup{left:30%;top:88%;transform:translate(-50%,-50%) scale(.22);opacity:0;
  transition:left 3.2s cubic-bezier(.4,0,.2,1),top 3.2s cubic-bezier(.4,0,.2,1),transform 3.2s cubic-bezier(.4,0,.2,1),opacity 1.6s ease 2.4s}
@media (max-width:760px){body.is-merge .cup{left:40%;top:90%}}
/* מעבר עכבר: הרמה קלה, זוהר עדין ושינוי גוון */
.btn,.pill{transition:background .25s ease,color .25s ease,transform .25s ease,box-shadow .25s ease}
.btn:not(.ghost):hover,.pill:not(.link):hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(250,153,28,.28)}
.btn:not(.ghost):active,.pill:active{transform:translateY(0);box-shadow:none}
.btn i{transition:transform .3s ease}
.btn:hover i{transform:translateX(-6px)}
.btn.ghost:hover,.link:hover{color:var(--gold)}
.offer{transition:background .25s ease,transform .25s ease}
.offer:hover{transform:translateX(-3px)}
.chips span{transition:color .2s ease,border-color .2s ease}
.film-btn:hover svg{transform:scale(1.15)}
.film-btn svg{transition:transform .25s ease}
/* המצבה: בלי גובה מקסימלי לטקסט, כדי שהכפתור למעמד לא ייחתך. בטלפון המסך נגלל */
#s-next .split-top{max-height:none;overflow:visible}
@media (max-width:899px){.screen.split.on{pointer-events:auto}}

/* ---------- סבב 17 ---------- */
/* לישועה / לעילוי נשמת */
.purpose{display:flex;gap:22px;margin:0 0 14px}
.purpose label{cursor:pointer}
.purpose input{position:absolute;opacity:0;width:0;height:0}
.purpose span{display:block;padding:4px 0;font-size:16px;color:rgba(255,255,255,.6);border-bottom:2px solid transparent;transition:color .2s,border-color .2s}
.purpose input:checked+span{color:#fff;border-bottom-color:var(--gold)}
.purpose input:focus-visible+span{outline:2px solid var(--orange);outline-offset:2px}
.purpose.small{grid-column:1/-1;justify-content:center;gap:16px;margin:0 0 4px}
.purpose.small span{font-size:13px;color:rgba(60,40,10,.55)}
.purpose.small input:checked+span{color:#2a2010;border-bottom-color:#7a5f33}
button.rel{background:none;border:0;cursor:default;padding-top:0;padding-inline:0;font:inherit;color:inherit}
.rel-text.can{cursor:pointer;text-decoration:underline dotted;text-underline-offset:6px}
/* קישור שקט לעמוד הנר */
.quick-ner{display:inline-block;margin:0 0 16px;font-size:14px;color:rgba(255,255,255,.7);text-decoration:underline;text-decoration-color:rgba(255,255,255,.3);text-underline-offset:5px}
.quick-ner:hover{color:var(--gold)}
/* נר במתנה */
.gift-link{display:block;margin-top:12px;font-size:14px;color:var(--gold)}
.gift-form{margin-top:16px;padding-top:14px;border-top:1px solid rgba(198,160,106,.35)}
.gift-form-t{margin:0 0 4px;font-family:"Atlas",sans-serif;font-size:24px;color:#fff}
.gift-form .fine{margin-bottom:12px}
.gift-form .cer-fields{margin-bottom:10px}
.gift-form .cer-fields input,.g-phone input{width:100%;padding:6px 2px;border:0;border-bottom:1px solid rgba(255,255,255,.45);background:none;font-size:16px;color:#fff}
.gift-form input::placeholder{color:rgba(255,255,255,.55)}
.gift-form input:focus{outline:none;border-bottom-color:var(--gold)}
.gift-rel{cursor:pointer!important;color:var(--gold)!important;text-decoration:underline dotted;text-underline-offset:6px;padding-bottom:8px}
.g-phone{display:block;margin-bottom:14px}
/* כרטיס אישי */
.card-preview{display:block;width:180px;height:auto;margin:6px 0 14px;box-shadow:0 14px 34px rgba(0,0,0,.55)}

/* נר במתנה: במסך התודה, אחרי התרומה */
#s-thanks .gift-link{display:inline-flex;margin:0 0 18px;color:var(--gold);font-size:17px;padding:0}
#s-thanks .gift-form{max-width:440px;margin:0 0 20px}

/* ---------- סבב 19: סיפור האבנים קודם ---------- */
/* השאלה למעלה, באמצע. האבנים פנויות, ועליהן כפתור הצפייה */
#s-stones{justify-content:space-between;align-items:center;text-align:center;
  background:linear-gradient(to bottom,rgba(1,20,31,.88) 0,rgba(1,20,31,.55) 26%,rgba(1,20,31,0) 46%),linear-gradient(to top,rgba(1,20,31,.7),rgba(1,20,31,0) 22%)}
.st-top{max-width:760px;pointer-events:auto}
.st-top h1{font-size:clamp(44px,6vw,86px);margin:0 0 10px;max-width:none}
.st-top .lede-1{margin:0 auto;max-width:680px;text-wrap:balance;font-size:clamp(17px,1.7vw,21px);text-shadow:0 2px 14px rgba(0,0,0,.85)}
.st-bottom{pointer-events:auto}
#stones-skip{font-size:15px;color:rgba(255,255,255,.75)}
/* כפתור הצפייה על האבנים */
.spot.spot-film{--sx:50%;--sy:60%;gap:14px}
.spot-play{position:relative;width:96px;height:96px;border-radius:50%;display:grid;place-items:center;background:var(--orange);color:var(--navy-deep);
  box-shadow:0 0 0 10px rgba(250,153,28,.22),0 0 50px rgba(250,153,28,.7);transition:transform .3s ease}
.spot-play svg{margin-inline-start:6px}
.spot-play:before,.spot-play:after{content:"";position:absolute;inset:-8px;border-radius:50%;border:2px solid var(--orange);animation:spot 2.2s ease-out infinite}
.spot-play:after{animation-delay:1.1s}
.spot-film:hover .spot-play{transform:scale(1.07)}
.spot-film .spot-label{font-family:"Atlas",sans-serif;font-size:22px;border-bottom:0;padding:4px 10px;background:rgba(1,20,31,.55)}
@media (max-aspect-ratio:1/1){.spot.spot-film{--sx:50%;--sy:62%}}
@media (max-width:760px){.spot-play{width:78px;height:78px}}

/* סבב 20: פתיחת המצבה בשלושה שלבים */
.st-top .st-1{margin:0 auto 18px;max-width:640px}
.st-top h1.st-2{font-size:clamp(30px,3.6vw,52px);line-height:1.2;margin:0 auto;max-width:820px;text-wrap:balance;text-shadow:0 2px 18px rgba(0,0,0,.8)}
.spot-film .spot-label{font-size:clamp(20px,2vw,26px)}

/* ---------- סבב 21: תיקוני מובייל ---------- */
/* פתקים אטומים: בלי טקסט של פתק אחר שמבצבץ מבעד */
.card{background:#faf8f4}
.card.dark{background:#022539}
/* כפתור התשלום: המחיר נשאר יחד */
#pay-go{flex-wrap:wrap;column-gap:10px;row-gap:0}
#pay-go .cta-p{white-space:nowrap;font-weight:700}
#pay-go .cta-p:before{content:"·";margin-inline-end:10px;opacity:.6}
/* כפתור הצפייה על האבנים: הגל לא חוצה את הכיתוב */
.spot-play:before,.spot-play:after{animation-name:spotPlay}
@keyframes spotPlay{from{transform:scale(.9);opacity:.9}to{transform:scale(1.55);opacity:0}}
.spot-film .spot-label{position:relative;z-index:1;margin-top:12px}
@media (max-width:760px){
  /* הסריקה גבוהה מהמסך, כדי שהכפתורים של Matterport בפינות לא ייראו לעולם */
  #space,#space-next{top:0!important;bottom:auto!important;height:100%!important;left:-150px!important;right:auto!important;width:calc(100% + 300px)!important}
  .card{padding:10px 12px 11px;border-radius:12px}
  .card .meta{font-size:11px;margin-bottom:4px}
  .card .dot{width:20px;height:20px}
  /* המצבה: רקע כהה יותר מאחורי הטקסט, כדי שהשלטים בתמונה לא יפריעו לקרוא */
  #s-next{background:linear-gradient(to bottom,rgba(1,20,31,.9) 0,rgba(1,20,31,.84) 62%,rgba(1,20,31,.55) 100%)}
  #s-next h1,.mz-story-t,.st-top h1.st-2,.sum-t{text-wrap:balance}
  /* ההצעה: מתחילה מתחת לניווט, נגללת, ושום דבר לא מכסה אותה */
  body.is-sum #s-cave{justify-content:flex-start;padding-top:104px;padding-bottom:40px;overflow-y:auto}
  body.is-sum #tracker{display:none}
  #pay-go{min-height:60px;padding:10px 20px;font-size:18px;line-height:1.3}
  #not-now{font-size:16px;margin-top:6px}
}
@media (max-width:760px){
  /* במובייל המחיר בשורה משלו, בלי הנקודה */
  #pay-go .cta-l{flex-basis:100%;text-align:center}
  #pay-go .cta-p:before{display:none}
}

/* ---------- סבב 23: מובייל ---------- */
@media (max-width:760px){
  /* משפטי האמצע: גדולים, על פס כהה לכל הרוחב, והפתקים מתעמעמים מאחור */
  .mid{width:100vw;padding:26px 14px;background:rgba(1,20,31,.9);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
  .mid .ln:before{display:none!important}
  .mid-1 .ln{font-size:clamp(36px,10.5vw,46px)}
  .mid-2 .ln{font-size:clamp(28px,8vw,36px)}
  #flood{transition:opacity .6s ease}
  body:has(#mid:not([hidden])) #flood{opacity:.35}
  .card{padding:9px 11px 10px}
  .card .meta{font-size:10px;gap:6px}
  .card .dot{width:18px;height:18px}
  /* הכפתור: נכנס במסך, בלי טבעת שנחתכת בצדדים */
  #hold{width:calc(100vw - 40px);min-height:0;padding:20px 16px;border-radius:22px;
    box-shadow:0 0 0 6px rgba(250,153,28,.22),0 24px 60px rgba(0,0,0,.55)}
  #hold .hold-t{font-size:clamp(24px,7vw,30px);line-height:1.15;text-wrap:balance}
  #hold .hold-s{font-size:15px}
  #hold-halo{width:120vw;height:60vh}
  /* מסך המעמד: פחות טקסט. הסיפור כבר נראה, נשאר רק הקישור לצפייה חוזרת */
  #s-next .mz-you,.mz-story .eyebrow,.mz-story .mz-story-t,.mz-story .lede-2{display:none}
  .mz-story{margin-top:18px;padding-top:0;border-top:0}
}

/* ---------- סבב 25 ---------- */
/* בן/בת נראה כמו מתג: אפשר להחליף בכל מצב */
.rel-text.can{cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;gap:6px}
.rel-text.can:after{content:"⇄";font-size:.7em;opacity:.7}

/* ---------- סבב 26 ---------- */
/* בלי זמנים על הפתקים; כיתוב קטן שאומר מה רואים */
.flood-cap{position:fixed;left:50%;top:76px;z-index:9;margin:0;transform:translateX(-50%);padding:6px 14px;border-radius:999px;
  background:rgba(1,20,31,.78);color:var(--gold);font-size:13px;letter-spacing:.04em;white-space:nowrap;pointer-events:none;
  opacity:0;visibility:hidden;transition:opacity .8s ease,visibility 0s linear .8s}
body.is-flood .flood-cap{opacity:1;visibility:visible;transition:opacity .8s ease .6s}
@media (max-width:760px){.flood-cap{top:64px;font-size:12px}}

/* ---------- סרט הפתיחה: קאבר, ואחרי הלחיצה הסרט עם פקדים ---------- */
#s-opening{padding:0;background:#000;z-index:20}
#opening-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000}
.op-cover{position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;overflow:hidden;
  background:radial-gradient(ellipse 80% 70% at 50% 40%,rgba(1,20,31,.4),rgba(1,20,31,.8) 75%),linear-gradient(to top,rgba(1,20,31,.96) 10%,rgba(1,20,31,0) 58%),#01141f url(assets/img/opening-bg.jpg) center/cover no-repeat;
  transition:opacity .7s ease,visibility 0s linear .7s}
.op-cover.gone{opacity:0;visibility:hidden;pointer-events:none}
/* הנר: אותו נר דולק כמו בפרק הנר, השחור שסביבו נעלם על הרקע */
.op-candle{position:absolute;left:50%;top:-2%;width:min(62vh,84vw);aspect-ratio:1;transform:translateX(-50%);pointer-events:none;mix-blend-mode:screen;
  -webkit-mask-image:radial-gradient(circle at 50% 50%,#000 38%,transparent 68%);mask-image:radial-gradient(circle at 50% 50%,#000 38%,transparent 68%)}
.op-candle video{display:block;width:100%;height:100%;object-fit:cover;filter:brightness(1.15) contrast(1.1)}
.op-candle span{position:absolute;left:50%;top:48%;width:60%;height:60%;transform:translate(-50%,-50%);border-radius:50%;
  background:radial-gradient(circle,rgba(250,153,28,.35),rgba(250,153,28,0) 65%);animation:opGlow 3.2s ease-in-out infinite}
@keyframes opFlicker{0%,100%{filter:brightness(1.15) contrast(1.1)}30%{filter:brightness(1.3) contrast(1.1)}55%{filter:brightness(1.05) contrast(1.1)}80%{filter:brightness(1.22) contrast(1.1)}}
@keyframes opGlow{0%,100%{opacity:.8;transform:translate(-50%,-50%) scale(1)}45%{opacity:1;transform:translate(-50%,-50%) scale(1.08)}}
.op-text{position:relative;max-width:860px;padding:0 28px max(64px,calc(env(safe-area-inset-bottom) + 56px));text-align:center;display:flex;flex-direction:column;align-items:center}
.op-logo{width:64px;height:auto;margin:0 0 14px;filter:drop-shadow(0 6px 20px rgba(0,0,0,.6))}
.op-text h1{max-width:none;margin:0 0 16px;font-size:clamp(34px,4.6vw,62px);line-height:1.12;text-shadow:0 4px 30px rgba(0,0,0,.85)}
.op-sub{margin:0 0 28px;max-width:700px;font-size:clamp(16px,1.6vw,20px);line-height:1.6;color:rgba(255,255,255,.9);text-shadow:0 2px 14px rgba(0,0,0,.9)}
.op-go{display:inline-flex;align-items:center;gap:12px;padding:17px 48px;border:0;border-radius:2px;background:var(--orange);color:var(--navy-deep);
  font:inherit;font-size:21px;font-weight:700;cursor:pointer;animation:opPulse 2s ease-in-out infinite}
.op-go i{font-style:normal}
.op-go:hover{background:#ffab3d}
@keyframes opPulse{0%,100%{box-shadow:0 0 0 0 rgba(250,153,28,.55)}50%{box-shadow:0 0 0 12px rgba(250,153,28,0),0 0 34px rgba(250,153,28,.45)}}
@media (prefers-reduced-motion:reduce){.op-go,.op-candle span{animation:none}}
@media (max-width:760px){
  .op-candle{top:9%;width:78vw}
  .op-text{padding:0 18px max(80px,calc(env(safe-area-inset-bottom) + 74px))}
  .op-logo{width:50px}
  .op-go{width:100%;justify-content:center}
}
.op-skip{display:none;position:absolute;left:24px;bottom:max(22px,env(safe-area-inset-bottom));z-index:3;padding:10px 16px;border:0;
  background:rgba(1,20,31,.55);color:rgba(255,255,255,.85);font:inherit;font-size:15px;border-radius:2px;cursor:pointer;
  text-decoration:underline;text-decoration-color:rgba(198,160,106,.6);text-underline-offset:6px;backdrop-filter:blur(4px)}
.op-skip:hover{color:var(--gold)}
#opening-video:not([hidden])~.op-skip{display:inline-block;bottom:max(76px,calc(env(safe-area-inset-bottom) + 70px))}
/* ההצפה: המשך בלי לחכות */
.flood-next{pointer-events:auto;position:fixed;left:24px;bottom:max(22px,env(safe-area-inset-bottom));z-index:9;padding:10px 16px;border:0;
  background:rgba(1,20,31,.6);color:rgba(255,255,255,.9);font:inherit;font-size:15px;border-radius:2px;cursor:pointer;
  text-decoration:underline;text-decoration-color:rgba(198,160,106,.6);text-underline-offset:6px;backdrop-filter:blur(4px)}
.flood-next:hover{color:var(--gold)}
.back-note{display:block;margin:0 0 14px;color:var(--gold)}

/* בזמן סרט הפתיחה אין רמקול של האתר (הסרט עם פקדים משלו) */
body.is-intro #sound{display:none}

/* מסך סיפור האבנים: כותרת, וחלון קאבר בשקיפות עם כפתור כתום מהבהב */
#s-stones{justify-content:center;gap:clamp(18px,3vh,34px);background:rgba(1,20,31,.66)}
#s-stones .st-top h1{font-size:clamp(28px,3.4vw,48px);line-height:1.2;max-width:900px;margin:0 auto 10px;text-wrap:balance;text-shadow:0 2px 24px rgba(0,0,0,.8)}
#s-stones .st-1{color:var(--gold);font-size:clamp(18px,1.9vw,24px);margin:0 auto}
.st-card{pointer-events:auto;position:relative;display:flex;align-items:center;justify-content:center;width:min(760px,92vw);aspect-ratio:16/9;
  padding:0;border:1px solid rgba(198,160,106,.55);border-radius:4px;cursor:pointer;overflow:hidden;background:#01141f;box-shadow:0 20px 60px rgba(0,0,0,.6)}
.st-card:before{content:"";position:absolute;inset:0;background:url(assets/img/stones-cover.jpg) center/cover no-repeat;opacity:.62;transition:opacity .4s ease,transform 6s ease}
.st-card:hover:before{opacity:.8;transform:scale(1.04)}
.st-play{position:relative;display:inline-flex;align-items:center;gap:12px;padding:18px 36px;border-radius:999px;background:var(--orange);color:#1b1206;
  font:inherit;font-size:clamp(19px,2vw,24px);font-weight:700;box-shadow:0 0 0 0 rgba(250,153,28,.7);animation:stPulse 1.9s ease-in-out infinite}
@keyframes stPulse{0%{box-shadow:0 0 0 0 rgba(250,153,28,.65);transform:scale(1)}50%{transform:scale(1.04)}70%{box-shadow:0 0 0 22px rgba(250,153,28,0)}100%{box-shadow:0 0 0 0 rgba(250,153,28,0);transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.st-play{animation:none}}

/* שגיאות הפתק: מתחת לטופס, גלויות (לא בתוך הנייר) */
.paper-err-below{margin:10px auto 0!important;max-width:520px;padding:10px 14px;background:rgba(160,30,20,.85);color:#fff!important;font-size:15px;border-radius:2px;text-align:center}


/* 17.11: הלוגו של האתר נעלם בזמן הסרטים, כי יש לוגו בסרט עצמו */
body.is-intro:has(#opening-cover.gone) .logo-link,body:has(#film[open]) .logo-link{opacity:0;pointer-events:none}
/* מסגרות הסריקה: אף פעם לא לבן, גם כשהן ריקות או נטענות */
#space,.space-frame{background:#01141f;color-scheme:dark}

/* 17.11: מעמד התפילה אחרי סרט האבנים: במרכז, עם המשפט והשם, וכפתור קטן לצפייה חוזרת */
#s-ceremony{align-items:center;background:radial-gradient(ellipse 60% 90% at 50% 55%,rgba(1,20,31,.9),rgba(1,20,31,.72) 55%,rgba(1,20,31,.35) 100%)}
.cer-lede{margin:0 0 20px;font-size:clamp(17px,1.7vw,20px);line-height:1.55;color:#fff;text-shadow:0 2px 14px rgba(0,0,0,.85)}
.film-again{display:inline-flex;align-items:center;gap:8px;margin-top:18px;padding:7px 14px;border:1px solid rgba(255,255,255,.35);border-radius:2px;background:rgba(1,20,31,.45);
  color:rgba(255,255,255,.85);font:inherit;font-size:14px;cursor:pointer}
.film-again:hover{border-color:var(--orange);color:#fff}
/* 17.11: מסכי הסיום: כפתור שיתוף אחד, לידו חזרה, ו"לסיור מההתחלה" בפינה */
#sum-end .sum-act,#s-thanks .sum-act{flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px 22px}
.restart-corner{position:absolute;left:24px;bottom:max(22px,env(safe-area-inset-bottom));z-index:12;padding:8px 4px;border:0;background:none;color:rgba(255,255,255,.7);
  font:inherit;font-size:14px;cursor:pointer;text-decoration:underline;text-decoration-color:rgba(255,255,255,.3);text-underline-offset:6px;pointer-events:auto}
.restart-corner i{font-style:normal}
.restart-corner:hover{color:#fff}
#s-cave .restart-corner{display:none}#s-cave:has(#sum-end:not([hidden])) .restart-corner{display:block}
#s-cave .contact-why{text-shadow:0 1px 8px rgba(0,0,0,.95)}
@media (max-width:760px){#sum-end .sum-act,#s-thanks .sum-act{flex-direction:column;align-items:stretch}.restart-corner{left:16px;bottom:max(16px,env(safe-area-inset-bottom))}}
/* 17.11: בפרק הפתק הכותרות בכתום ולא בזהב */
#s-cave .eyebrow,#s-cave .contact-why,#s-cave .slot span,#s-cave .paper-ok-q{color:var(--orange)}
#s-cave .eyebrow:before,#s-cave .eyebrow:after{background:var(--orange)}
/* 17.11: הטקסט בהיכל לא נקרא על הסריקה הבהירה. הצללה כהה מאחוריו */
#s-line{background:radial-gradient(ellipse 55% 34% at 50% 50%,rgba(1,20,31,.72),rgba(1,20,31,0) 72%)}
#s-line p{text-shadow:0 2px 18px rgba(0,0,0,.9),0 0 40px rgba(1,20,31,.8)}

/* 17.11: הסריקה מוסתרת עד שהיא נטענת (במסך הפתיחה אין סריקה בכלל) */
#space:not([src]){visibility:hidden}

/* ---------- 17.11: א׳ בטבת, ליבת הדף ---------- */
/* המשפט נכתב מילה אחרי מילה: כל מילה עולה מטשטוש, נדלקת בזהב חם ומתקררת ללבן. מהיר, פחות משתי שניות */
.write-in .w{display:inline-block;opacity:0;filter:blur(10px);transform:translateY(.35em) scale(1.06);
  animation:wIn .7s cubic-bezier(.2,.7,.2,1) forwards;animation-delay:calc(var(--i) * var(--st,75ms))}
@keyframes wIn{
  0%{opacity:0;filter:blur(10px);transform:translateY(.35em) scale(1.06);color:#FFD08A;text-shadow:0 0 0 rgba(250,153,28,0)}
  45%{opacity:1;filter:blur(0);color:#FFD08A;text-shadow:0 0 26px rgba(250,153,28,.9),0 0 60px rgba(250,153,28,.5)}
  100%{opacity:1;filter:blur(0);transform:none;color:#fff;text-shadow:0 2px 14px rgba(0,0,0,.7)}}
/* אחרי הכתיבה: גל אור עובר על המילים מימין לשמאל */
.write-in.lit .w{opacity:1;filter:none;transform:none;animation:glint .55s ease-in-out both;animation-delay:calc(var(--i) * 45ms)}
@keyframes glint{0%,100%{color:#fff;text-shadow:0 2px 14px rgba(0,0,0,.7)}50%{color:#FFD08A;text-shadow:0 0 22px rgba(250,153,28,.85),0 2px 14px rgba(0,0,0,.7)}}

/* ספירה לאחור */
.tevet-count{margin:26px auto 0;opacity:0;transform:translateY(10px);transition:opacity .6s ease,transform .6s ease}
.tevet-count.on{opacity:1;transform:none}
.tc-t{margin:0 0 10px;font-size:15px;letter-spacing:.04em;color:var(--orange);font-weight:700}
.tc-row{display:flex;justify-content:center;gap:10px;direction:rtl}
.tc-row span{display:flex;flex-direction:column;align-items:center;min-width:74px;padding:10px 8px 8px;background:rgba(1,20,31,.72);border:1px solid rgba(250,153,28,.45);
  box-shadow:0 0 24px rgba(250,153,28,.18) inset}
.tc-row b{font-size:clamp(28px,3.2vw,42px);line-height:1;font-weight:700;color:#fff;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}
.tc-row b.tick{animation:tick .35s ease}
@keyframes tick{0%{color:#FFD08A;transform:translateY(-3px)}100%{color:#fff;transform:none}}
.tc-row small{margin-top:5px;font-size:12px;color:rgba(255,255,255,.7)}
@media (max-width:760px){.tc-row{gap:6px}.tc-row span{min-width:62px;padding:8px 4px 6px}}


@media (prefers-reduced-motion:reduce){.write-in .w{animation:none;opacity:1;filter:none;transform:none}}
/* 17.11 ערב: כניסה למסך הפתיחה. הנר נדלק, הכותרת עולה, המשפט נכתב והכפתור מופיע אחרון */
.op-candle{animation:opIn 1.2s ease both}
.op-text h1{animation:opUp .8s cubic-bezier(.2,.7,.2,1) .35s both}
.op-sub{position:relative;animation:opIn .4s ease .9s both}
.op-sub .ghost{visibility:hidden}
.op-sub .typed{position:absolute;inset:0}
.op-go{animation:opUp .7s cubic-bezier(.2,.7,.2,1) 4.8s both,opPulse 2s ease-in-out 5.5s infinite}
@keyframes opIn{from{opacity:0}to{opacity:1}}
@keyframes opUp{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
/* בסוף סרט הפתיחה: נשאר כהה עד שמסך הפנייה כבר מוצג, ואז נחתך. במסכי הכניסה ההיכל כהה */
#s-opening.hold{opacity:1!important;visibility:visible!important;transition:none!important}
body.is-entry:not(.is-intro) #veil{opacity:1;background:rgba(1,20,31,.86)}
/* מעמד התפילה: כותרת מאוזנת, והכפתורים לא ברצף */
#s-ceremony h1{font-size:clamp(28px,3.1vw,44px);line-height:1.15;text-wrap:balance}
#s-ceremony .cer-lede{text-wrap:pretty}
#s-ceremony .actions{flex-direction:column;align-items:flex-start;gap:14px}
#s-ceremony .actions .link{font-size:14px}
#s-ceremony .film-again{position:fixed;left:24px;bottom:max(22px,env(safe-area-inset-bottom));margin:0;z-index:12}
@media (max-width:760px){#s-ceremony .actions{align-items:stretch}#s-ceremony .film-again{position:static;margin-top:16px}}
/* הטיימר מלווה את המשך הסיור, קטן בפינה השמאלית התחתונה */
.tevet-count.mini{position:fixed;left:20px;bottom:max(64px,calc(env(safe-area-inset-bottom) + 58px));z-index:9;margin:0;transform:scale(.62);transform-origin:left bottom;pointer-events:none}
.tevet-count.mini .tc-t{font-size:16px;text-align:center}
body.is-intro .tevet-count.mini,body.is-entry .tevet-count.mini{display:none}
@media (max-width:900px){.tevet-count.mini{display:none}}
@media (max-width:760px){.tevet-count.mini{left:10px;bottom:auto;top:84px;transform:scale(.5);transform-origin:left top}}

/* 17.11: הצעה לסובב את הטלפון לרוחב. רק בטלפון עומד, ורק על הקאבר */
.rotate-hint{display:none;position:absolute;top:calc(max(14px,env(safe-area-inset-top)) + 54px);left:50%;transform:translateX(-50%);z-index:3;align-items:center;gap:10px;
  padding:9px 14px;border:1px solid rgba(250,153,28,.55);border-radius:999px;background:rgba(1,20,31,.7);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  color:#fff;font:inherit;font-size:13px;white-space:nowrap;cursor:pointer;animation:opIn .6s ease 1.2s both}
.rotate-hint svg{color:var(--orange);animation:rot 2.6s ease-in-out infinite}
.rotate-hint i{font-style:normal;font-size:18px;line-height:1;opacity:.7}
@keyframes rot{0%,25%{transform:rotate(0)}55%,80%{transform:rotate(-90deg)}100%{transform:rotate(0)}}
@media (orientation:portrait) and (max-width:760px) and (pointer:coarse){.rotate-hint{display:inline-flex}.rotate-hint.off{display:none}}

/* 18.11: מסך המצבה: כפתור המשך לצד הסרטון (במחשב בצד, בנייד מתחת) */
.st-row{display:flex;align-items:center;justify-content:center;gap:22px;width:100%;pointer-events:none}
.st-row>*{pointer-events:auto}
.st-next{display:inline-flex;align-items:center;gap:10px;padding:14px 26px;border:1px solid rgba(255,255,255,.55);border-radius:2px;background:rgba(1,20,31,.55);color:#fff;font:inherit;font-size:17px;font-weight:700;cursor:pointer;white-space:nowrap}
.st-next i{font-style:normal}
.st-next:hover{border-color:var(--orange);background:rgba(250,153,28,.18)}
@media (max-width:900px){.st-row{flex-direction:column;gap:16px}.st-next{width:min(92vw,420px);justify-content:center}}

/* 18.11: מובייל: ההצעה בסוף הסיור. הכפתורים נשארים צמודים לתחתית המסך (עם אזור בטוח לאייפון), והתוכן מתגלל מעליהם. עד עכשיו "לא עכשיו" נחתך למטה */
@media (max-width:760px){
  #summary .sum-act,#s-thanks .sum-act{position:sticky;bottom:0;z-index:5;margin:10px -24px 0;padding:22px 24px max(14px,env(safe-area-inset-bottom));
    background:linear-gradient(to top,rgba(1,20,31,.98) 62%,rgba(1,20,31,0))}
  #s-cave.is-sumscreen,#s-cave{padding-bottom:0}
  .sum-t{font-size:clamp(24px,7vw,30px)}
  .offer{padding-block:12px}
  .tax{font-size:12px}
}

/* ================= 19.11 ================= */
[hidden]{display:none!important}
/* כפתור ראשי: כתום במעבר צבע, פינות מעוגלות, צל עדין. זהה בכל האתר */
.pill.solid,.pill.orange,.btn.primary,.btn.orange,.op-go,#skip-back{
  min-height:56px;padding:0 32px;border:0;border-radius:14px;
  background:linear-gradient(180deg,#FFB850 0%,#FA991C 100%)!important;color:#1b1206!important;
  font-size:18px;font-weight:700;line-height:1.2;text-decoration:none;
  box-shadow:0 8px 22px rgba(0,0,0,.32),0 2px 8px rgba(250,153,28,.22),inset 0 1px 0 rgba(255,255,255,.45)}
.pill.solid:hover,.pill.orange:hover,.btn.primary:hover,.btn.orange:hover,.op-go:hover,#skip-back:hover{
  background:linear-gradient(180deg,#FFC66E 0%,#FFA42E 100%)!important;transform:translateY(-2px);
  box-shadow:0 12px 28px rgba(0,0,0,.36),0 4px 16px rgba(250,153,28,.38),inset 0 1px 0 rgba(255,255,255,.5)}
.op-go{padding:0 48px}
/* כפתור משני: טקסט לבן עם קו זהב דק, בלי רקע ובלי מסגרת. זהה בכל האתר */
.btn.ghost,.link,.st-next,.flood-next,.restart-corner,.film-again,.op-skip,.back-note{
  min-height:44px;padding:8px 4px;border:0!important;border-radius:0;background:none!important;box-shadow:none!important;
  color:#fff!important;font-size:16px;font-weight:500;letter-spacing:0;
  text-decoration:underline;text-decoration-color:rgba(198,160,106,.8);text-decoration-thickness:1px;text-underline-offset:7px;
  text-shadow:0 1px 10px rgba(0,0,0,.85);-webkit-backdrop-filter:none;backdrop-filter:none}
.btn.ghost:hover,.link:hover,.st-next:hover,.flood-next:hover,.restart-corner:hover,.film-again:hover,.op-skip:hover,.back-note:hover{
  color:var(--gold)!important;text-decoration-color:var(--gold);transform:none}
.st-next{font-size:17px}
@media (max-width:900px){.st-next{width:auto}}
/* הטיימר: שניות בימין, ימים בשמאל */
.tc-row{direction:ltr}
/* בלי קפיצה כפולה: המסך רק מתעמעם, והאלמנטים שבו עולים פעם אחת */
.screen{transform:none!important}
.summary,.stage-act,.phase-q,.phase-b{animation:fadeOnly .5s ease both}
@keyframes fadeOnly{from{opacity:0}}
/* טיפוגרפיה: בלי מילה בודדת בשורה */
h1,h2,.sum-t,.statement,.line p,.sages-h,.intro-lead,.l1,.l2{text-wrap:balance}
p,blockquote,small,.cer-lede{text-wrap:pretty}
@media (max-width:760px){
  .line .l1{font-size:clamp(30px,9vw,38px)}
  .line .l2{font-size:clamp(21px,6.2vw,27px)}
  .mid-1 .ln{font-size:clamp(26px,7.4vw,33px)!important}
  .mid-2 .ln{font-size:clamp(20px,5.6vw,25px)!important}
  #pay-go{flex-wrap:nowrap;gap:8px;padding:0 16px;font-size:16px}
  #pay-go .cta-l{flex-basis:auto;white-space:nowrap}
  #pay-go .cta-p:before{display:inline;margin-inline-end:8px}
}
/* מעמד התפילה: שורת השם לפני שנכתב שם */
.nl-name.ph{opacity:.4;font-weight:400}
.cer-err{margin:0 0 10px!important}
/* הרבנים: שלהבת שמאירה את המילים בכתום */
.flame{position:fixed;left:0;top:0;z-index:40;width:24px;height:36px;margin:-32px 0 0 -12px;pointer-events:none;opacity:0;transition:opacity .3s ease}
.flame.on{opacity:1}
.flame svg{display:block;width:100%;height:100%;filter:drop-shadow(0 0 8px rgba(250,153,28,.95));transform-origin:50% 90%;animation:flick .45s ease-in-out infinite alternate}
.flame:after{content:"";position:absolute;left:50%;top:80%;width:170px;height:170px;margin:-85px 0 0 -85px;border-radius:50%;background:radial-gradient(rgba(250,153,28,.2),rgba(250,153,28,0) 65%)}
@keyframes flick{from{transform:scale(1,1) rotate(-3deg)}to{transform:scale(.9,1.08) rotate(3deg)}}
.quotes .w{transition:color 1s ease,text-shadow 1s ease}
.quotes .w.hot{color:#FFB43E!important;text-shadow:0 0 14px rgba(250,153,28,.85),0 2px 14px rgba(0,0,0,.8)!important;transition:color .12s,text-shadow .12s}
#candle-q.flame-in,#candle-q.flame-in *{cursor:none}
#candle-q.flame-in button,#candle-q.flame-in button *{cursor:pointer}
@media (prefers-reduced-motion:reduce){.flame{display:none}}
/* נייד: מקום לפס ההתקדמות שבתחתית, כדי שכפתורים לא ייגעו בו */
@media (max-width:760px){body:has(#tracker:not([hidden])):not(.is-sum):not(.is-thanks) .screen{padding-bottom:max(66px,calc(env(safe-area-inset-bottom) + 52px))}}
/* כפתור הצפייה בסרט האבנים: אותו כתום של הכפתור הראשי */
.st-play{border-radius:14px;background:linear-gradient(180deg,#FFB850 0%,#FA991C 100%);box-shadow:0 8px 22px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.45)}
/* דסקטופ: ההצעה והסיום במרכז הגובה, לא דחוקים לתחתית */
@media (min-width:901px){#s-cave #summary,#s-cave #sum-end{margin-block:auto}}
/* מסך גדול: הכול גדל באותו יחס, כדי שלא ייראה קטן ואבוד */
@media (min-width:1600px){
  .summary{width:min(700px,100%)}
  .sum-t{font-size:48px}
  .sum-p{font-size:19px}
  .eyebrow,.kicker{font-size:15px}
  .gift-row b,.o-main b{font-size:19px}
  .o-main small{font-size:16px}
  .o-price{font-size:23px}
  .tax{font-size:14px}
  .pill.solid,.pill.orange,.btn.primary,.btn.orange,.op-go,#skip-back{min-height:62px;font-size:20px}
  .btn.ghost,.link,.st-next,.flood-next,.restart-corner,.film-again,.op-skip,.back-note{font-size:17px}
  .phase-q{max-width:1180px}
  .sages-h{font-size:28px}
  .rabanim{width:min(520px,70vw)}
  .quotes blockquote{font-size:29px}
  .quotes figcaption{font-size:15px}
  .lede,.cer-lede,.intro-lead{font-size:20px}
}
@media (min-width:2200px){
  .summary{width:min(820px,100%)}
  .sum-t{font-size:58px}
  .sum-p{font-size:22px}
  .gift-row b,.o-main b{font-size:22px}
  .o-main small{font-size:18px}
  .o-price{font-size:27px}
  .phase-q{max-width:1400px}
  .sages-h{font-size:34px}
  .rabanim{width:min(640px,70vw)}
  .quotes blockquote{font-size:35px}
  .lede,.cer-lede,.intro-lead{font-size:23px}
}
/* "הבקשה שלך לא נשארת על המסך": שתי שורות מאוזנות במחשב */
@media (min-width:901px){.inv-text{max-width:min(720px,48vw)}.invite h1{max-width:none;font-size:clamp(40px,4.2vw,68px)}}
@media (min-width:1600px){.inv-list li{font-size:21px}}

/* ================= 2.12: סבב אחרון לפני הכיווץ ================= */
/* ---------- כפתור אחיד (דגם InteractiveHoverButton, בצבעי המותג) ----------
   במנוחה: גלולה כחולה כהה, מסגרת כתומה, נקודה כתומה לפני הטקסט.
   במעבר עכבר: הנקודה מתרחבת וממלאת בכתום, הטקסט יוצא, ונכנס מחדש בכחול עם חץ */
.ib.ib.ib{position:relative;overflow:hidden;isolation:isolate;display:inline-flex;align-items:center;justify-content:center;
  min-height:58px;padding:0 34px!important;border:1.5px solid var(--orange)!important;border-radius:999px!important;
  background:rgba(2,37,57,.82)!important;color:#fff!important;font-size:18px;font-weight:700;line-height:1.2;text-decoration:none!important;
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  box-shadow:0 0 0 4px rgba(250,153,28,.10),0 10px 28px rgba(0,0,0,.38)!important;
  transition:box-shadow .4s ease,transform .2s ease!important}
.ib.ib.ib:hover{transform:none!important;background:rgba(2,37,57,.82)!important}
.ib-a{position:relative;z-index:1;display:inline-flex;align-items:center;gap:12px}
.ib-t{display:inline-flex;align-items:center;gap:10px;transition:transform .45s cubic-bezier(.3,.7,.2,1),opacity .35s ease}
.ib-t i{display:none}
.ib-dot{position:relative;flex:none;width:9px;height:9px;border-radius:50%;background:var(--orange);z-index:-1;
  transition:transform .6s cubic-bezier(.3,.7,.2,1)}
.ib-b{position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;gap:12px;padding:0 24px;
  color:var(--navy-deep);opacity:0;transform:translateX(-46px);pointer-events:none;
  transition:transform .45s cubic-bezier(.3,.7,.2,1),opacity .35s ease}
.ib-c{display:inline-flex;align-items:center;gap:10px}
.ib-arr{font-style:normal;font-weight:400}
.ib svg{flex:none}
/* מצב מלא: מעבר עכבר (רק במחשב), או לחיצה */
@media (hover:hover) and (pointer:fine){
  .ib:hover .ib-dot,.st-card:hover .ib .ib-dot{transform:scale(140)}
  .ib:hover .ib-t,.st-card:hover .ib .ib-t{transform:translateX(-46px);opacity:0}
  .ib:hover .ib-b,.st-card:hover .ib .ib-b{transform:none;opacity:1}
  .ib:hover,.st-card:hover .ib{box-shadow:0 0 0 6px rgba(250,153,28,.18),0 14px 34px rgba(0,0,0,.42)!important}
}
.ib:active .ib-dot{transform:scale(140)}
.ib:active .ib-t{opacity:0}
.ib:active .ib-b{transform:none;opacity:1}
/* במגע אין מעבר עכבר: החץ גלוי במנוחה, והנקודה נושמת */
@media (hover:none),(pointer:coarse){
  .ib-t i{display:inline;font-style:normal;font-weight:400}
  .ib-dot{animation:ibBreath 2.2s ease-in-out infinite}
}
@keyframes ibBreath{50%{box-shadow:0 0 0 6px rgba(250,153,28,0),0 0 12px rgba(250,153,28,.9)}}
.ib:disabled{opacity:.55;cursor:default}
/* גדלים: הכפתורים המרכזיים גדולים יותר */
.op-go.ib.ib.ib{min-height:66px;font-size:21px;padding:0 46px!important}
.st-play.ib.ib.ib{min-height:64px;font-size:clamp(19px,2vw,23px);gap:0}
.st-play.ib .ib-t svg{width:22px;height:22px}
#pay-go.ib .ib-t,#pay-go.ib .ib-c{gap:12px}
@media (max-width:760px){
  .ib.ib.ib{min-height:56px;font-size:17px;padding:0 24px!important}
  .op-go.ib.ib.ib{min-height:62px;font-size:19px;padding:0 28px!important}
  #pay-go.ib.ib.ib{padding:0 18px!important;font-size:16px}
}
@media (min-width:1600px){.ib.ib.ib{min-height:64px;font-size:20px}}

/* ---------- כפתור ההחזקה בהצפה: אותו כפתור, בגדול ---------- */
#hold.ib{width:auto;max-width:calc(100vw - 32px);min-height:0;padding:26px 54px!important;border-width:2px!important;gap:0;
  flex-direction:row;background:rgba(2,37,57,.9)!important;
  box-shadow:0 0 0 8px rgba(250,153,28,.12),0 0 0 36px rgba(2,37,57,.45),0 30px 80px rgba(0,0,0,.5)!important}
#hold.ib.pressing{transform:translate(-50%,-50%) scale(.97)!important}
#hold.ib.on:not(.pressing){transform:translate(-50%,-50%)!important}
#hold .ib-a{gap:18px}
#hold .ib-t{flex-direction:column;align-items:center;gap:8px;text-align:center}
#hold .hold-fill.ib-dot{position:relative;inset:auto;width:14px;height:14px;background:var(--orange);transform:scale(calc(1 + var(--p,0) * 160));transform-origin:50% 50%;transition:none}
#hold .hold-t{font-family:"Atlas",sans-serif;font-weight:700;font-size:var(--t-title);line-height:1.1;color:#fff}
#hold .hold-s{font-size:17px;font-weight:500;color:var(--gold)}
#hold .ib-b{font-family:"Atlas",sans-serif;font-size:var(--t-title);font-weight:700}
#hold.filling .ib-t{opacity:0;transform:translateX(-46px)}
#hold.filling .ib-b{opacity:1;transform:none}
@media (hover:hover) and (pointer:fine){
  #hold.ib:hover .hold-fill.ib-dot{transform:scale(160);transition:transform .6s cubic-bezier(.3,.7,.2,1)}
}
@media (max-width:760px){
  #hold.ib{width:calc(100vw - 32px);padding:22px 20px!important;border-radius:999px!important;
    box-shadow:0 0 0 6px rgba(250,153,28,.14),0 24px 60px rgba(0,0,0,.55)!important}
  #hold .hold-t{text-wrap:balance}
  #hold .hold-s{font-size:15px}
}

/* ---------- ההצפה: טיפוגרפיה אחידה לכל הכיתובים ----------
   כותרת לבנה בגודל אחד, משפט משנה זהוב בגודל אחד, ואותו פס כהה מאחורי כל שורה */
:root{--t-title:clamp(34px,4.4vw,60px);--t-sub:clamp(24px,2.8vw,38px)}
@media (max-width:760px){:root{--t-title:clamp(27px,7.6vw,33px);--t-sub:clamp(20px,5.6vw,25px)}}
.line .l1,.mid-1 .ln{font-size:var(--t-title)!important;font-weight:700;line-height:1.12;color:#fff}
.line .l2,.mid-2 .ln{font-size:var(--t-sub)!important;font-weight:700;line-height:1.2;color:var(--gold)}
.line .l2{margin-top:14px}
.mid-2{margin-top:14px!important}
.line p{position:relative;display:table;margin-inline:auto;text-shadow:0 0 2px rgba(0,0,0,.9),0 3px 22px rgba(0,0,0,.95)}
.line p:before{content:"";position:absolute;inset:-.22em -.7em;z-index:-1;background:rgba(1,20,31,.88);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  -webkit-mask-image:radial-gradient(closest-side,#000 68%,transparent);mask-image:radial-gradient(closest-side,#000 68%,transparent)}
.line{isolation:isolate}
@media (max-width:760px){
  .mid{width:calc(100vw - 16px);padding:0;background:none;-webkit-backdrop-filter:none;backdrop-filter:none}
  .mid .ln:before{display:block!important}
  .line p,.mid .ln{max-width:calc(100vw - 48px)}
}
/* פתקים אחידים: כולם בהירים, באותו רוחב */
.card.dark{background:#faf8f4!important;color:#1b2730}

/* ---------- נקודה עדינה במקום מעוינים ---------- */
.sum-list i,.gift-row i{width:7px;height:7px;border:0;border-radius:50%;transform:none;background:var(--gold)}
.offer:before{width:9px;height:9px;border-radius:50%;transform:none!important;border:1px solid rgba(255,255,255,.6)}
#tracker li:before{width:7px;height:7px;border-radius:50%;transform:none;margin:0 3px}
@keyframes trPop{40%{transform:scale(1.8);box-shadow:0 0 24px rgba(198,160,106,.9)}}

/* ---------- המצבה: כותרת בשתי שורות מסודרות ---------- */
#s-stones .st-top h1{max-width:none}
#s-stones .st-top h1 span{display:block}
#s-stones .st-h1{font-size:clamp(34px,4.4vw,60px);line-height:1.1}
#s-stones .st-h2{margin-top:8px;font-size:clamp(20px,2.2vw,30px);font-weight:400;line-height:1.3;color:#fff}
#s-stones .st-1{margin-top:6px}
@media (max-width:760px){
  #s-stones .st-h1{font-size:clamp(28px,8vw,34px)}
  #s-stones .st-h2{font-size:clamp(17px,4.8vw,20px)}
}

/* ---------- א׳ בטבת: כפתור המשך ---------- */
#to-sages{margin-top:26px}

/* ---------- מעמד התפילה: הבקשות לבחירה קטנות יותר ---------- */
#s-ceremony .chips{gap:0 16px}
#s-ceremony .chips span{font-size:15px;padding:3px 0}
#s-ceremony .chips .chip-other input{width:120px;font-size:15px}
@media (max-width:760px){#s-ceremony .chips{gap:0 13px;margin-bottom:10px}#s-ceremony .chips span{font-size:14px}}

/* ---------- הרבנים: האור עובר לאט ---------- */
.quotes .w{transition:color 1.6s ease,text-shadow 1.6s ease}
.quotes .w.hot{transition:color .35s ease,text-shadow .35s ease}

/* ---------- סרטונים: כפתור מסך מלא ---------- */
.vid-full{display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border:1px solid rgba(255,255,255,.35);border-radius:999px;
  background:rgba(1,20,31,.6);color:#fff;font:inherit;font-size:14px;cursor:pointer;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.vid-full:hover{border-color:var(--orange);color:var(--orange)}
#opening-full{display:none;position:absolute;right:24px;top:max(18px,env(safe-area-inset-top));z-index:3}
#opening-video:not([hidden])~#opening-full{display:inline-flex}
#film-full{position:absolute;top:-50px;right:0}
@media (max-width:760px){#opening-full{right:14px}}

/* ---------- רק לוגו אחד בכל רגע ---------- */
body:has(#s-gender.on) .logo-link,
body:has(.card-preview:not([hidden])) .logo-link{opacity:0;pointer-events:none}

/* ---------- סיום ותודה: כפתור השיתוף, ומתחתיו התמונה גדולה במרכז ---------- */
.share-block{display:flex;flex-direction:column;align-items:center;gap:18px;margin:20px auto 6px;text-align:center}
.share-block .card-preview{width:min(340px,72vw);margin:0;border-radius:6px;box-shadow:0 20px 50px rgba(0,0,0,.6)}
.sum-end{text-align:center}
.sum-end .sum-act,#s-thanks .sum-act{justify-content:center}
#s-thanks .inv-text{text-align:center;margin-inline:auto}
#s-thanks .gift-link{margin-inline:auto}
@media (min-width:901px){
  body.is-thanks #s-thanks .inv-text{max-width:min(640px,90vw)}
}
@media (max-width:760px){
  .share-block .card-preview{width:min(300px,76vw)}
  #s-thanks .sum-act:not(:has(>:not([hidden]))),.sum-end .sum-act:not(:has(>:not([hidden]))){display:none}
}
@media (min-width:761px){#hold .hold-t{white-space:nowrap}}
/* התמונה לשיתוף לפי גובה המסך, כדי שהכול ייכנס בלי גלילה במחשב נייד */
.share-block .card-preview{width:min(320px,72vw,31vh)}
#s-thanks,.sum-end{overflow-y:auto}
@media (max-width:760px){.share-block .card-preview{width:min(280px,70vw,40vh)}}
/* ערימת הפתקאות: הסרטון עומד על הפריים האחרון וממשיך לנשום בזום איטי, בלי קפיצות */
body.pile-still #cave-yt video{animation:pileZoom 22s ease-in-out infinite alternate;transform-origin:50% 60%}
@keyframes pileZoom{from{transform:scale(1)}to{transform:scale(1.08)}}
@media (prefers-reduced-motion:reduce){body.pile-still #cave-yt video{animation:none}}
/* בסיום: הסיכום נכנס פעם אחת ברכות, בלי שכבת אנימציה נוספת על כל שורה (זה ריצד בטלפון) */
.summary .enter,.sum-end .enter{animation:none!important}

/* ================= 2.12 ערב: תיקונים אחרי הבדיקה של רחל ================= */
/* הכפתור: הכתום מתפשט מהנקודה לאורך כל הכפתור (מימין לשמאל), והטקסט זז באותו כיוון */
.ib-dot{transition:transform .7s cubic-bezier(.45,.05,.25,1)!important}
@media (hover:hover) and (pointer:fine){
  .ib:hover .ib-dot,.st-card:hover .ib .ib-dot{transform:scale(var(--ib-s,60))}
  .ib:hover .ib-t,.st-card:hover .ib .ib-t{transform:translateX(-40px);opacity:0;transition-duration:.35s}
  .ib:hover .ib-b,.st-card:hover .ib .ib-b{transform:none;opacity:1;transition-delay:.18s}
  #hold.ib:hover .hold-fill.ib-dot{transform:scale(var(--ib-s,160));transition:transform .7s cubic-bezier(.45,.05,.25,1)!important}
}
.ib-b{transform:translateX(40px);transition:transform .5s cubic-bezier(.3,.7,.2,1),opacity .4s ease}
.ib:active .ib-dot{transform:scale(var(--ib-s,60))}
#hold .hold-fill.ib-dot{transform:scale(calc(1 + var(--p,0) * (var(--ib-s,160) - 1)));transition:none!important}

/* כפתור "הזדהית": טקסט קטן יותר */
#hold.ib{padding:20px 44px!important}
#hold .hold-t,#hold .ib-b{font-size:clamp(22px,2.1vw,28px)!important}
#hold .hold-s{font-size:15px}
@media (max-width:760px){
  #hold.ib{padding:16px 22px!important}
  #hold .hold-t,#hold .ib-b{font-size:20px!important}
  #hold .hold-s{font-size:14px}
}

/* כל הכיתובים של ההצפה: אותו גודל, אותו משקל, אותו צבע */
:root{--t-flood:clamp(30px,3.6vw,50px)}
@media (max-width:760px){:root{--t-flood:clamp(23px,6.6vw,28px)}}
.line .l1,.line .l2,.mid-1 .ln,.mid-2 .ln{font-size:var(--t-flood)!important;font-weight:700!important;line-height:1.2!important;letter-spacing:0}
.line .l1,.line .l2,.mid .ln b,.mid-2 .ln b{color:#fff!important;font-family:"Atlas",sans-serif}
.line .l2,.mid-2{margin-top:10px!important}

/* טלפון: בלי טשטוש רקע בזמן ההצפה. הטשטוש מעל פתקים שזזים גרם לריצוד כשהכפתור הופיע */
@media (max-width:760px){
  .ib.ib.ib,#hold.ib{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
  .mid .ln:before,.line p:before{-webkit-backdrop-filter:none!important;backdrop-filter:none!important;background:rgba(1,20,31,.9)!important}
  #hold.ib{background:#022539!important;box-shadow:0 0 0 5px rgba(250,153,28,.14),0 18px 40px rgba(0,0,0,.5)!important}
  #hold-halo{display:none}
  .ib-dot{animation:none!important}
}

/* מחשב, סוף הסיור: בלי הכותרת "מערת הקבורה" מעל הסיכום, ובלי גלילה */
body.is-sum #s-cave .stage-top{display:none}
body.is-sum #s-cave{justify-content:center}
.sum-end{overflow:visible}
@media (min-width:761px){.share-block{margin-top:14px}.share-block .card-preview{width:min(300px,30vh)}}

/* ================= 5.12: קרדיט Deutsch, בפתיחה ובסוף בלבד ================= */
.dvd-credit{display:inline-flex;align-items:center;gap:10px;color:rgba(255,255,255,.62);text-decoration:none;font-size:12px;letter-spacing:.02em;
  opacity:.78;transition:opacity .3s ease,color .3s ease;direction:rtl}
.dvd-credit:hover{opacity:1;color:#fff}
.dc-logo{display:block;height:26px;aspect-ratio:552/96;border-radius:6px;overflow:hidden;background:#192830;box-shadow:0 0 0 1px rgba(255,255,255,.08)}
.dc-logo video{display:block;width:100%;height:100%;object-fit:cover}
/* בפתיחה: בפינה, עולה אחרי כפתור היציאה */
.op-cover .dvd-credit{position:absolute;left:24px;bottom:max(20px,env(safe-area-inset-bottom));z-index:2;animation:opIn .8s ease 5.6s both}
/* בסוף: במרכז, מתחת לכל השאר */
.sum-end .dvd-credit,#s-thanks .inv-text .dvd-credit{display:flex;width:max-content;margin:26px auto 0}
@media (max-width:760px){
  .op-cover .dvd-credit{left:50%;transform:translateX(-50%);bottom:max(18px,calc(env(safe-area-inset-bottom) + 8px));font-size:11px;white-space:nowrap}
  .dc-logo{height:22px}
  .sum-end .dvd-credit,#s-thanks .inv-text .dvd-credit{margin-top:18px;font-size:11px}
}
@media (prefers-reduced-motion:reduce){.op-cover .dvd-credit{animation:none}}
/* מסך התודה במחשב: מקום לקרדיט בלי גלילה */
@media (min-width:761px){#s-thanks .share-block .card-preview{width:min(300px,27vh)}#s-thanks .inv-text .dvd-credit{margin-top:16px}}

/* 5.12: קרדיט זעיר גם בסרטונים: לוגו קבוע (בלי אנימציה), שקוף למחצה, הרחק מהפקדים */
.dc-mini{gap:7px;font-size:10px;opacity:.5}
.dc-mini:hover{opacity:.95}
.dc-mini .dc-img{display:block;height:17px;width:auto;border-radius:4px}
#s-opening .dc-mini{display:none;position:absolute;left:22px;top:max(18px,env(safe-area-inset-top));z-index:3}
#opening-video:not([hidden])~.dc-mini{display:inline-flex}
dialog#film .dc-mini{position:absolute;left:2px;bottom:-34px}
@media (max-width:760px){#s-opening .dc-mini{left:14px}.dc-mini .dc-img{height:15px}}
