/* סיור היברידי בסמטאות החנוכיות: עיצוב לטלפון, בחושך. ברירת מחדל כהה וחמה, עם מתג למסך בהיר.
   צבעי האתר: שמנת, חום אגוז, גוון חול. בלי כחול ובלי צהוב. */
:root {
  --bg: #1B1310; --bg2: #241A14; --card: #2B2019; --line: #3D2E24; --ink: #F3E9D8; --soft: #C9B59C; --mute: #8E7A66;
  --walnut: #E2C79A; --terra: #D9A86C; --sand: #C4A074; --route: #D9A86C; --done: #8E6B4A; --ok: #7FB27F; --warn: #E0A07A;
  --map: #22191380; --map-bg: #221912; --bld: #332620; --street: #4A392D; --stairs: #7A5E45; --wall: #6E5A48;
  --head: "Frank Ruhl Libre", Georgia, "Times New Roman", serif; --body: "Assistant", "Segoe UI", Arial, sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #FBF6EC; --bg2: #F3EADB; --card: #FFFDF8; --line: #E6D9C4; --ink: #35221A; --soft: #6F5A4B; --mute: #9A866F;
  --walnut: #5C3D2A; --terra: #A84B25; --sand: #C4A074; --route: #8A4B2A; --done: #5C3D2A; --ok: #3F6B45; --warn: #A0481E;
  --map-bg: #F1E8D8; --bld: #E2D5BF; --street: #FFFDF8; --stairs: #B98F63; --wall: #9B8468;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font: 18px/1.6 var(--body); }
body[dir="ltr"] { font-size: 17px; }
h1, h2, h3 { font-family: var(--head); color: var(--walnut); line-height: 1.2; margin: 0; text-wrap: balance; font-weight: 700; }
h1 { font-size: 30px; } h2 { font-size: 24px; } h3 { font-size: 19px; }
p { margin: 0 0 10px; }
a { color: var(--walnut); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* הכותרת העליונה: שפה, שם, מסך */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg2); border-bottom: 1px solid var(--line); padding: 7px max(12px, env(safe-area-inset-right, 0px)) 7px max(12px, env(safe-area-inset-left, 0px)); display: flex; align-items: center; gap: 8px; }
.top .name { flex: 1; min-width: 0; font: 600 14.5px/1.2 var(--body); color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.langs { display: flex; gap: 3px; }
.langs button, .ico { border: 1px solid var(--line); background: var(--card); color: var(--soft); border-radius: 8px; padding: 6px 8px; font-size: 13.5px; min-height: 36px; }
.langs button.on { background: var(--walnut); color: var(--bg); border-color: var(--walnut); font-weight: 700; }
.ico { min-width: 36px; }
.offline { font-size: 12.5px; color: var(--ok); border: 1px solid var(--ok); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }

.wrap { max-width: 560px; margin: 0 auto; padding-block: 12px 150px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap.nobar { padding-bottom: 40px; }
.draft { background: var(--card); border: 1px dashed var(--sand); color: var(--soft); font-size: 14px; padding: 6px 12px; border-radius: 8px; margin-bottom: 12px; }
.tag { font-size: 14.5px; color: var(--soft); }
.lead { font-size: 19px; }
.rule { background: var(--card); border-inline-start: 4px solid var(--sand); border-radius: 8px; padding: 8px 12px; margin: 12px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; margin: 10px 0; }
.card h3 { margin-bottom: 6px; }
.hero { border-radius: 14px; overflow: hidden; margin: 10px 0 14px; position: relative; aspect-ratio: 16 / 10; background: var(--card); }
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero .cap { position: absolute; inset: auto 0 0 0; padding: 20px 14px 10px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #FBF6EC; font-size: 14px; }
.stack { display: grid; gap: 10px; }
.q { margin: 14px 0 4px; font-weight: 700; font-size: 16.5px; color: var(--soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 9px 15px; min-height: 44px; }
.chip.on { background: var(--walnut); color: var(--bg); border-color: var(--walnut); font-weight: 700; }
.choice { display: block; width: 100%; text-align: start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; }
.choice.on { border-color: var(--sand); box-shadow: 0 0 0 2px var(--sand) inset; }
.choice b { display: block; font: 700 22px/1.25 var(--head); color: var(--walnut); }
.choice span { display: block; font-size: 15.5px; color: var(--soft); }
.choice em { display: block; font-style: normal; font-weight: 700; color: var(--route); margin-top: 3px; font-size: 15.5px; }
.choice.dim { opacity: .7; }
input[type=text], input[type=time], textarea { font: inherit; color: var(--ink); background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; min-height: 48px; }
label.f { display: block; font-weight: 600; font-size: 15.5px; margin: 12px 0 4px; color: var(--soft); }
.btn { display: block; width: 100%; border: 0; border-radius: 12px; background: var(--walnut); color: var(--bg); font: 700 19px/1.2 var(--body); padding: 15px; min-height: 56px; }
.btn.sec { background: var(--card); color: var(--walnut); border: 1px solid var(--line); font-size: 16.5px; }
.btn.small { min-height: 46px; padding: 10px 14px; font-size: 16px; width: auto; display: inline-block; }
.btn:disabled { opacity: .55; }
.ok-line { color: var(--ok); font-weight: 700; font-size: 15px; margin-top: 6px; }
.warn-line { color: var(--warn); font-weight: 700; font-size: 15px; }
.prog { height: 8px; background: var(--line); border-radius: 6px; overflow: hidden; margin: 6px 0 10px; }
.prog i { display: block; height: 100%; background: var(--sand); transition: width .3s; }
.roles { display: grid; gap: 6px; font-size: 16px; }
.roles span { display: flex; gap: 8px; align-items: baseline; }
.roles b { color: var(--walnut); }

/* מסך התחנה */
.strip { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--soft); flex-wrap: wrap; }
.mapbox { position: relative; margin: 8px 0 10px; }
.mapbox svg { display: block; width: 100%; height: min(38vh, 300px); background: var(--map-bg); border-radius: 14px; border: 1px solid var(--line); }
.mapbox .gps { position: absolute; top: 8px; inset-inline-end: 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--soft); font-size: 13px; padding: 6px 10px; min-height: 34px; }
.mapbox .gps.on { color: var(--ok); border-color: var(--ok); }
.mapbox .north { position: absolute; top: 8px; inset-inline-start: 8px; width: 34px; height: 34px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; font: 700 12px var(--body); color: var(--soft); }
.gpsline { font-size: 14.5px; color: var(--soft); min-height: 20px; margin-bottom: 6px; }
.gpsline b { color: var(--route); }
.arrow { display: inline-block; width: 16px; height: 16px; vertical-align: -2px; margin-inline-end: 4px; }
.photo { border-radius: 14px; overflow: hidden; margin: 0 0 10px; position: relative; background: var(--card); }
.photo img { display: block; width: 100%; max-height: 46vh; object-fit: cover; }
.photo .cap { position: absolute; inset: auto 0 0 0; padding: 18px 12px 8px; background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #FBF6EC; font-size: 13.5px; }
.ph { border: 1px dashed var(--line); border-radius: 12px; padding: 10px 12px; color: var(--mute); font-size: 14px; margin-bottom: 10px; }
.dir { font-weight: 700; color: var(--route); font-size: 18px; margin: 4px 0 2px; }
.lookup { background: var(--card); border-radius: 12px; padding: 10px 14px; margin: 10px 0; font-weight: 700; color: var(--walnut); display: flex; gap: 10px; align-items: center; }
.lookup svg { flex: none; width: 26px; height: 26px; }
.body p { font-size: 18.5px; }
body[dir="ltr"] .body p { font-size: 17.5px; }
.more { background: none; border: 0; color: var(--walnut); text-decoration: underline; padding: 4px 0; font-weight: 600; }
.mis { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 10px 0; display: flex; gap: 10px; align-items: flex-start; }
.mis input { width: 24px; height: 24px; flex: none; margin-top: 3px; accent-color: var(--sand); }
.mis b { color: var(--walnut); }
.letter { display: flex; align-items: center; gap: 12px; margin: 10px 0; }
.letter .big { width: 54px; height: 54px; border-radius: 12px; background: var(--walnut); color: var(--bg); display: grid; place-items: center; font: 700 30px var(--head); flex: none; }
.tools { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; font-size: 15px; }
.tools a, .tools button { color: var(--walnut); background: none; border: 0; padding: 6px 0; text-decoration: underline; font-weight: 600; }

/* הנגן הצף והכפתורים הקבועים בתחתית */
.bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--bg2); border-top: 1px solid var(--line); padding: 0 max(12px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
.bottom > div { max-width: 560px; margin: 0 auto; }
.player { display: flex; align-items: center; gap: 8px; padding: 8px 0 6px; border-bottom: 1px solid var(--line); }
.player button { border: 1px solid var(--line); background: var(--card); color: var(--walnut); border-radius: 10px; min-width: 44px; min-height: 44px; font-weight: 700; font-size: 14px; }
.player .play { background: var(--walnut); color: var(--bg); border-color: var(--walnut); min-width: 52px; }
.player .bar { flex: 1; height: 6px; background: var(--line); border-radius: 4px; overflow: hidden; }
.player .bar i { display: block; height: 100%; background: var(--sand); width: 0; }
.player .t { font-size: 12.5px; color: var(--soft); min-width: 38px; text-align: center; font-variant-numeric: tabular-nums; }
.acts { display: flex; gap: 8px; padding-top: 8px; }
.acts .btn { flex: 1 1 0; width: auto; }
.acts .btn.sec { flex: 0 0 auto; min-width: 96px; }

/* סיום ותעודה */
.phrase { font: 700 34px/1.2 var(--head); color: var(--walnut); text-align: center; margin: 14px 0; letter-spacing: 1px; }
.letters-row { display: flex; gap: 8px; justify-content: center; margin: 10px 0; }
.letters-row span { width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; font: 700 26px var(--head); background: var(--card); border: 1px solid var(--line); color: var(--mute); }
.letters-row span.got { background: var(--walnut); color: var(--bg); border-color: var(--walnut); }
.cert { width: 100%; border-radius: 12px; border: 1px solid var(--line); display: block; margin: 10px 0; }
.finale .choice b { font-size: 19px; }
.credit { font-size: 12.5px; color: var(--mute); margin-top: 20px; text-align: center; }
.shabbat { text-align: center; padding: 40px 10px; }
.shabbat h1 { font-size: 40px; margin-bottom: 10px; }
@media (prefers-reduced-motion: reduce) { .prog i, .player .bar i { transition: none; } }
@media (min-width: 700px) { .mapbox svg { height: 320px; } }

/* ===== דף ההמתנה (24.11): המוצר הפרסומי של הקישור. תמיד בהיר, בצבעי האתר. למעלה הלוגו של הרובע שלי, למטה הקישורים ופס "שותף AI" ===== */
.wait-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 16px; }
.wait-logo { display: block; width: min(54%, 215px); color: inherit; text-decoration: none; font: 700 18px/1.2 var(--head); }
.wait-logo svg { display: block; width: 100%; height: auto; direction: ltr; }
.wait .langs button { min-height: 32px; padding: 4px 8px; font-size: 12.5px; }
.wait h1 { font-size: 36px; margin: 2px 0 4px; }
.wait .hero { aspect-ratio: 16 / 9; }
.wait-open { border: 1.5px solid var(--sand); background: var(--bg2); }
.wait-open h3 { color: var(--route); }
.wait-open p { margin: 0; font-size: 16.5px; }
.wait-routes { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 8px; }
.wait-route { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 8px 26px rgba(92, 61, 42, .09); }
.wait-route img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.wait-route-text { padding: 12px 15px 15px; }
.wait-route b { display: block; font: 700 23px/1.2 var(--head); color: var(--walnut); }
.wait-route span { display: block; font-size: 15.5px; color: var(--soft); margin-top: 4px; }
/* גלריה "מה רואים בדרך": שתי עמודות, התמונה האנכית תופסת שתי שורות */
.wait-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.wait-g { display: flex; flex-direction: column; margin: 0; border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.wait-g.tall { grid-row: span 2; }
.wait-g img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.wait-g.tall img { flex: 1; min-height: 0; aspect-ratio: auto; }
.wait-g figcaption { font-size: 13.5px; line-height: 1.35; color: var(--soft); padding: 7px 10px 9px; }
/* כניסה עדינה בגלילה */
/* הכניסה היא תזוזה קלה בלבד, בלי להעלים: גם אם משהו נתקע, הכול נשאר קריא */
.rise { opacity: .5; transform: translateY(12px); transition: opacity .8s ease, transform .8s ease; }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; transform: none; transition: none; } }
.wait-links { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.wait-links h3 { font: 700 15px/1.3 var(--body); color: var(--soft); margin-bottom: 8px; }
.wait-linkrow { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.wait-linkrow a { color: var(--walnut); font-weight: 600; text-decoration: underline; text-decoration-color: var(--sand); text-underline-offset: 4px; }
/* פס "שותף AI", מועתק מתחתית האתר myoldcity.com. מצב המנוחה גלוי, והאנימציה רק מוסיפה */
.madeby { display: block; margin-top: 26px; --b-bg: #2A1B11; --b-gold: #D9A05B; --b-cream: #F4F1EA; color: var(--soft); text-decoration: none; }
.madeby .by { display: block; font-size: 13px; margin-bottom: 8px; }
.sbrand { display: flex; align-items: center; gap: 12px; background: var(--b-bg); color: var(--b-cream); border-radius: 10px; padding: 12px 26px; border: 1px solid rgba(217,160,91,.35); position: relative; overflow: hidden; text-align: start; }
.sbrand::after, .sbrand::before { content: ""; position: absolute; top: 0; bottom: 0; width: 8px; background: var(--b-gold); }
.sbrand::after { right: 0; } .sbrand::before { left: 0; }
.sbrand .word { display: flex; flex-direction: column; line-height: 1.15; position: relative; z-index: 1; padding-bottom: 6px; }
.sbrand .word b { font: 700 27px/1.15 var(--head); display: inline-flex; gap: .3em; align-items: baseline; }
.sbrand .l, .sbrand .ai { display: inline-block; }
.sbrand .ai { color: var(--b-gold); }
.sbrand .rule { height: 2px; margin-top: 4px; background: linear-gradient(to left, var(--b-gold), transparent); transform-origin: right; }
.sbrand .orb { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(217,160,91,.55), rgba(217,160,91,0) 70%); pointer-events: none; }
.sbrand .orb:nth-child(1) { width: 90px; height: 90px; left: 18%; top: -30px; }
.sbrand .orb:nth-child(2) { width: 60px; height: 60px; left: 45%; bottom: -20px; }
.sbrand .orb:nth-child(3) { width: 70px; height: 70px; left: 68%; top: -15px; }
@media (prefers-reduced-motion: no-preference) {
  .sbrand .l, .sbrand .ai { animation: 10s ease-in-out infinite; }
  .sbrand .l1 { animation-name: w1; } .sbrand .l2 { animation-name: w2; } .sbrand .l3 { animation-name: w3; } .sbrand .l4 { animation-name: w4; } .sbrand .ai { animation-name: w5; }
  .sbrand .rule { animation: w6 10s ease-in-out infinite; }
  .sbrand .orb { animation: float 9s ease-in-out infinite; }
  .sbrand .orb:nth-child(2) { animation-delay: -3s; } .sbrand .orb:nth-child(3) { animation-delay: -6s; }
}
@keyframes w1 { 0% { opacity: 0; filter: blur(6px); } 7%, 80% { opacity: 1; filter: blur(0); } 90%, 100% { opacity: 0; filter: blur(3px); } }
@keyframes w2 { 0%, 2.5% { opacity: 0; filter: blur(6px); } 9.5%, 80.5% { opacity: 1; filter: blur(0); } 90.5%, 100% { opacity: 0; filter: blur(3px); } }
@keyframes w3 { 0%, 5% { opacity: 0; filter: blur(6px); } 12%, 81% { opacity: 1; filter: blur(0); } 91%, 100% { opacity: 0; filter: blur(3px); } }
@keyframes w4 { 0%, 7.5% { opacity: 0; filter: blur(6px); } 14.5%, 81.5% { opacity: 1; filter: blur(0); } 91.5%, 100% { opacity: 0; filter: blur(3px); } }
@keyframes w5 { 0%, 11% { opacity: 0; filter: blur(8px); } 19%, 82% { opacity: 1; filter: blur(0); } 92%, 100% { opacity: 0; filter: blur(3px); } }
@keyframes w6 { 0%, 15% { opacity: 1; transform: scaleX(0); } 27%, 82% { opacity: 1; transform: scaleX(1); } 92%, 100% { opacity: 0; transform: scaleX(1); } }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(10px, -8px); } 66% { transform: translate(-8px, 6px); } }

/* ===== דף ההמתנה, סבב הצבע (24.11 בלילה): שני עמודים, כותרת על התמונה, כרטיס פתיחה כהה, טרקוטה לכותרות ולכפתורים ===== */
.wait-tabs { display: flex; gap: 8px; margin: 0 0 14px; }
.wtab { flex: 1; border: 1.5px solid var(--walnut); background: transparent; color: var(--walnut); border-radius: 999px; padding: 9px 12px; font: 700 16px/1.2 var(--body); min-height: 44px; }
.wtab.on { background: var(--walnut); color: var(--bg); }
.wait-hero { aspect-ratio: 16 / 11; margin-top: 0; }
.wait-hero .cap { padding: 70px 16px 16px; background: linear-gradient(transparent, rgba(27, 19, 16, .82)); text-align: start; }
.wait-hero .cap .tag { color: #E9D6B5; margin: 0 0 2px; font-weight: 600; }
.wait-hero .cap h1 { color: #FBF6EC; font-size: 40px; line-height: 1.1; margin: 0; text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.wait-open { background: var(--walnut); border: 0; color: #F3E9D8; }
.wait-open h3 { color: #E9D6B5; }
.wait-open p { color: #F3E9D8; }
.wait .q { color: var(--terra); font-size: 18px; display: flex; align-items: center; gap: 10px; margin: 24px 0 8px; }
.wait .q::after { content: ""; flex: 1; height: 1px; background: var(--sand); opacity: .7; }
.wait-route b { color: var(--terra); }
.wait-what { padding: 0 0 6px; overflow: hidden; }
.wait-what img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.wait-what ol { margin: 10px 0 4px; padding-inline-start: 34px; padding-inline-end: 14px; }
.wait-what li { margin: 8px 0; padding-inline-start: 2px; }
.wait-what li::marker { color: var(--terra); font-weight: 700; }
.wait-free { background: var(--terra); color: #fff; border-radius: 14px; padding: 15px 16px; font: 700 20px/1.35 var(--head); text-align: center; margin: 14px 0 10px; }
.btn.wait-cta { background: var(--terra); color: #fff; text-decoration: none; text-align: center; display: block; margin: 0 0 14px; }
.wait-mapshot { display: block; max-width: 330px; margin: 0 auto 12px; border-radius: 22px; overflow: hidden; border: 6px solid var(--walnut); box-shadow: 0 14px 36px rgba(92, 61, 42, .18); }
.wait-mapshot img { display: block; width: 100%; height: auto; }
.btn.wait-go { background: var(--walnut); color: var(--bg); margin: 24px 0 4px; }
/* קטע המפה בעמוד הראשון: תמונת המפה, הסבר קצר, כפתור לפתיחה וכפתור לעמוד המפה */
.wait-mapintro { padding: 0 0 14px; overflow: hidden; border: 1.5px solid var(--sand); }
.wait-mapintro > img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 42%; }
.wait-mapintro h3 { margin: 12px 15px 6px; color: var(--terra); }
.wait-mapintro p { margin: 0 15px 12px; }
.wait-mapintro .btn { width: calc(100% - 30px); margin: 0 15px 8px; }

/* ===== העיצוב החדש של דף ההמתנה (24.11 בלילה): תמונת סמטה מהאוסף בראש עם הכיתוב, ובסוף תמונה אחת (א) או שתיים (ג), ואז המפה ===== */
.wait-hero.v2 { aspect-ratio: 16 / 13; }
.wait-hero.v2 .cap { padding-top: 90px; }
.wait-hero.v2 .cap .lead { color: #F3E9D8; font-size: 16.5px; line-height: 1.4; margin: 6px 0 0; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.wait-routes.txt { grid-template-columns: 1fr 1fr; gap: 8px; }
.wait-routes.txt .wait-route-text { padding: 11px 13px 13px; }
.wait-routes.txt .wait-route b { font-size: 18px; }
.wait-routes.txt .wait-route span { font-size: 14px; }
.wait-end { margin: 14px 0 0; border-radius: 14px; overflow: hidden; }
.wait-end img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.wait-end2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 14px 0 0; }
.wait-end2 img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.wait-endcap { font-size: 13.5px; color: var(--mute); text-align: center; margin: 6px 0 0; }

/* ===== חוות דעת במסך הסיום (25.11, במקום התעודה) ===== */
.feedback .stars { display: flex; justify-content: center; gap: 4px; margin: 6px 0 4px; direction: ltr; }
.feedback .star { font-size: 36px; line-height: 1; background: none; border: 0; color: var(--line); cursor: pointer; padding: 4px 3px; min-height: 44px; }
.feedback .star.on { color: #E0A83A; }
.feedback textarea { width: 100%; box-sizing: border-box; margin: 6px 0 10px; font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--ink); resize: vertical; }
.feedback .btn { width: 100%; }

/* ===== תזכורת לפתיחה (25.11) ===== */
.remind { margin-top: 12px; }
.wait-open .remind-btn { background: var(--terra); color: #fff; font-size: 18px; }
.remind-sheet { margin-top: 8px; display: grid; gap: 8px; }
.remind-sheet .btn.sec { text-align: center; text-decoration: none; background: var(--card); color: var(--walnut); border-color: var(--line); display: flex; align-items: center; justify-content: center; }
.remind-hint { font-size: 13.5px; color: #E9D6B5; margin: 2px 0 0; }
/* ===== מסך השבת (25.11): סצנת ליל שבת על רקע לילה חם ===== */
html[data-rest] { background: #15100C radial-gradient(ellipse at 50% 28%, #4A2E1E 0%, #2A1A12 48%, #15100C 100%) no-repeat; min-height: 100%; }
html[data-rest] body { background: transparent; color: #F3E9D8; }
.shabbat { padding: 14px 10px 40px; }
.rest-scene { max-width: 420px; margin: 0 auto 4px; }
.rest-scene svg { width: 100%; height: auto; display: block; }
.shabbat h1 { color: #F3C77A; font-size: 40px; margin: 0 0 10px; }
.shabbat .lead { color: #F3E9D8; }

/* ===== ההצעה לתזכורת שקופצת מלמטה בכניסה הראשונה (25.11) ===== */
.remind-pop { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--walnut); color: #F3E9D8; border-radius: 20px 20px 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -10px 34px rgba(0, 0, 0, .4); max-width: 560px; margin: 0 auto; animation: popUp .45s ease-out; }
.remind-pop h3 { color: #F3C77A; font: 700 22px/1.2 var(--head); margin: 0 0 6px; }
.remind-pop p { margin: 0 0 10px; font-size: 16px; line-height: 1.45; }
.remind-pop .remind { margin-top: 0; }
.remind-pop .remind-btn { display: none; }
.remind-pop .remind-sheet { margin-top: 0; }
.remind-pop .close { display: block; margin: 8px auto 0; background: none; border: 0; color: #E9D6B5; text-decoration: underline; font: 600 16px var(--body); padding: 8px 12px; min-height: 44px; }
@keyframes popUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .remind-pop { animation: none; } }

/* ===== מסך השבת עם תמונה אמיתית (25.11, משה בחר): אור שנושם ובהירות שמרצדת מעל התמונה ===== */
.rest-pic { position: relative; max-width: 420px; margin: 0 auto 8px; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 40px rgba(0, 0, 0, .45); }
.rest-pic img { display: block; width: 100%; height: auto; max-height: 56vh; object-fit: cover; object-position: 50% 55%; animation: restFlick 1.3s ease-in-out infinite; }
.rest-glow { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 36%, rgba(255, 196, 100, .38), rgba(255, 150, 60, .12) 40%, transparent 65%); mix-blend-mode: screen; animation: restBreath 2.6s ease-in-out infinite; pointer-events: none; }
@keyframes restFlick { 0%, 100% { filter: brightness(1); } 30% { filter: brightness(1.04); } 55% { filter: brightness(.97); } 80% { filter: brightness(1.02); } }
@keyframes restBreath { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rest-pic img, .rest-glow { animation: none; } }

/* ===== החנוכייה במסך הפתיחה בחנוכה (25.11) ===== */
.chk { max-width: 440px; margin: 4px auto 12px; }
.chk .in { position: relative; }
.chk img { display: block; width: 100%; height: auto; border-radius: 14px; }
.chk svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.chk p { text-align: center; color: var(--terra); font-weight: 600; margin: 6px 0 0; font-size: 17px; }

/* ===== הסקירה: סרטון "איך עובד הסיור" בתוך הדף (25.11) ===== */
.review-btn { margin-top: 10px; }
.review-btn.small { margin: 0 0 12px; font-size: 15px; padding: 10px 14px; }
.review { position: fixed; inset: 0; z-index: 60; background: #120C08; display: flex; align-items: center; justify-content: center; }
.review canvas { width: 100%; height: 100%; object-fit: contain; display: block; }
.review .rv-x { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); inset-inline-end: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #F3E9D8; font-size: 22px; cursor: pointer; }
.review .rv-mute { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); inset-inline-start: 12px; height: 44px; padding: 0 14px; border-radius: 22px; border: 0; background: rgba(0, 0, 0, .55); color: #F3E9D8; font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.review .rv-end { position: absolute; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); min-width: 200px; }
.review .rv-wait { position: absolute; left: 0; right: 0; top: 50%; text-align: center; color: #C9B59C; font-size: 16px; margin: 0; }
body.rv-open { overflow: hidden; }

/* ===== מסך הסיום: שורת בר מצווה ואירוע, עדינה (25.11) ===== */
.finale-event { margin: 12px 0 0; font-size: 14.5px; line-height: 1.4; color: var(--soft); text-align: center; }
.finale-event a { color: var(--sand); text-decoration: underline; text-underline-offset: 3px; }

/* ===== הסקירה מיוטיוב (25.11): הנגן ממלא את הרוחב, לאורך בטלפון ולרוחב במחשב ===== */
.review iframe { border: 0; display: block; background: #000; }
.review iframe.tall { width: min(100%, calc(100vh * 9 / 16)); aspect-ratio: 9 / 16; max-height: 100%; }
.review iframe.wide { width: 100%; aspect-ratio: 16 / 9; max-height: 100%; }

/* ===== שתפו את הסיור עם חברים (משה, 25.11: "גדול, בירוק... שזה יהיה ברור"): בתחתית דף ההמתנה ובמסך הסיום ===== */
/* ברוחב מלא. האייקון לפני הטקסט, כלומר מימין בעברית ומשמאל באנגלית ובצרפתית */
.share-big { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; margin: 20px 0 6px; padding: 14px 18px; border: 0; border-radius: 14px; background: #1FAA59; color: #fff; font: 700 19px/1.25 var(--body); text-align: center; box-shadow: 0 8px 20px rgba(31,170,89,.35); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.share-big svg { width: 24px; height: 24px; flex: 0 0 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.share-big:active { transform: translateY(1px); box-shadow: 0 4px 12px rgba(31,170,89,.35); }
.share-big:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; }

/* ===== הסרטון על תמונת הראש של דף ההמתנה (25.11): כל התמונה לחיצה, ▶ זהוב וכיתוב בחלק העליון ===== */
.wait-hero .whp { position: absolute; inset: 0; z-index: 2; display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.wait-hero .whp-row { position: absolute; top: 24%; inset-inline-start: 14px; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 10px; }
.wait-hero .whp-ic { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 2.5px solid #F3C77A; background: rgba(20, 12, 8, .45); display: grid; place-items: center; box-shadow: 0 4px 18px rgba(0, 0, 0, .35); transition: transform .2s; }
.wait-hero .whp-ic svg { width: 22px; height: 22px; fill: #FBF6EC; margin-left: 3px; }
.wait-hero .whp-t { color: #FBF6EC; font: 700 15.5px/1.25 var(--body); padding: 5px 11px; border-radius: 999px; background: rgba(20, 12, 8, .42); text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.wait-hero .whp:hover .whp-ic, .wait-hero .whp:focus-visible .whp-ic { transform: scale(1.07); }
.wait-hero .whp:focus-visible { outline: 3px solid #F3C77A; outline-offset: -3px; border-radius: 14px; }
/* ===== הנגן מיוטיוב (25.11): כניסה ויציאה בעמעום, לאורך בטלפון ולרוחב במחשב ===== */
.review.yt { background: rgba(18, 12, 8, .93); opacity: 0; transition: opacity .35s ease; }
.review.yt.in { opacity: 1; }
.review .rv-box { position: relative; }
.review .rv-box.tall { aspect-ratio: 9 / 16; height: min(calc(100vh - 24px), calc((100vw - 16px) * 16 / 9)); height: min(calc(100dvh - 24px), calc((100vw - 16px) * 16 / 9)); }
.review .rv-box.wide { aspect-ratio: 16 / 9; width: min(calc(100vw - 24px), calc((100vh - 24px) * 16 / 9)); }
.review .rv-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 12px; background: #000; }
.review.yt .rv-x { z-index: 3; }
/* ===== המונה עד הפתיחה, בראש כרטיס המועד (25.11, כבוי עד שמשה מאשר) ===== */
.wait-count { margin: 0 0 12px; }
.wait-count .wc-k { margin: 0 0 6px; color: #E9D6B5; font: 600 15px/1.3 var(--body); }
.wait-count .wc-row { display: flex; gap: 8px; }
.wait-count .wc-c { flex: 1; text-align: center; padding: 8px 4px 6px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(243, 199, 122, .28); }
.wait-count .wc-c b { display: block; color: #F3C77A; font: 700 30px/1.05 var(--head); font-variant-numeric: tabular-nums; }
.wait-count .wc-c span { display: block; color: #F3E9D8; font-size: 13px; margin-top: 2px; }

/* הכיתוב על התמונה לא נחתך: בשפות עם מילים ארוכות יורד שורה (25.11) */
.wait-hero .whp-row { max-width: calc(100% - 28px); }
.wait-hero .whp-t { white-space: normal; text-align: start; }

/* כותרת ארוכה בצרפתית: מעט קטנה יותר, ושורת ▶ עולה לראש התמונה אם היא נוגעת בכותרת (25.11) */
:lang(fr) .wait-hero .cap h1 { font-size: 34px; }
.wait-hero .whp-row.whp-up { top: 12px; transform: none; } /* לא .top: השם הזה שייך לפס העליון של הסיור (רקע אטום) */
