/* app/public/room/room.css - חדר הוובינר (תוכנית 2). צבעי המותג: פוקסיה #d6247f, כחול כהה #1f2a55. טלפון קודם: וידאו למעלה ופרטים מתחת;
   ממסך רחב (900px) זה לצד זה. השכבות על הנגן: נגן 0, מגן 4, פס 5, המסך שלנו 6 (אטום ושקוף לנגיעה), כפתור קול 7, מסך סיום 8, תקלה בחיבור 9. */
:root { --pink: #d6247f; --navy: #1f2a55; --bg: #f6f7fb; --muted: #5b6380; --ok: #2e8b57; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--navy); font-family: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
/* הסרטון השקט שמונע כיבוי מסך באייפון (room.js keepPlaying): חייב להיות "על המסך", אז 2 פיקסלים כמעט שקופים בפינה */
.rm-keep { position: fixed; left: 0; bottom: 0; width: 2px; height: 2px; opacity: .01; pointer-events: none; z-index: 0; }
.rm-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); background: var(--navy); color: #fff; }
.rm-brand { display: flex; flex-direction: column; font-weight: 800; font-size: 16px; line-height: 1.25; }
.rm-brand small { font-weight: 400; font-size: 13px; opacity: .9; }
.rm-hello { margin-inline-start: auto; font-size: 14px; opacity: .9; }
.rm-badge { background: #ffd166; color: var(--navy); border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 700; }
.rm-center { max-width: 520px; margin: 48px auto; padding: 0 16px; text-align: center; }
.rm-center h1 { font-size: 22px; margin: 0 0 8px; }
.rm-spin { width: 36px; height: 36px; margin: 0 auto 12px; border-radius: 50%; border: 4px solid #d9dcea; border-top-color: var(--pink); animation: rm-spin 1s linear infinite; }
@keyframes rm-spin { to { transform: rotate(360deg); } }
.rm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border: 0; border-radius: 12px; background: var(--pink); color: #fff; font: inherit; font-weight: 800; font-size: 17px; text-decoration: none; cursor: pointer; }
.rm-btn:disabled { opacity: .5; }
.rm-muted { color: var(--muted); }
.rm-small { font-size: 13px; line-height: 1.5; }
.rm-err { color: #b42318; min-height: 1.2em; margin: 4px 0; font-weight: 700; }
.rm-formwrap { max-width: 460px; margin: 20px auto; padding: 0 16px 40px; }
.rm-card { background: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 1px 2px rgba(31, 42, 85, .06), 0 12px 32px -18px rgba(31, 42, 85, .35); }
.rm-card h1, .rm-card h2 { margin: 0 0 6px; font-size: 20px; }
#walkin label { display: block; margin: 12px 0 0; font-weight: 700; font-size: 15px; }
#walkin input:not([type=checkbox]) { display: block; width: 100%; margin-top: 6px; min-height: 48px; padding: 10px 12px; border: 1px solid #cfd3e3; border-radius: 10px; font: inherit; font-size: 16px; background: #fff; color: var(--navy); }
#walkin .rm-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 14px; line-height: 1.5; }
#walkin .rm-check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; }
#walkin .rm-btn { width: 100%; margin-top: 12px; }
.rm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rm-room { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 1200px; margin: 0 auto; padding: 12px 12px 32px; }
@media (min-width: 900px) { .rm-room { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); align-items: start; padding: 20px; gap: 20px; } }
/* הבמה = הסרטון (16:9) ומתחתיו הפס "ההדרכה של סוזי" בגובה --sb (20/11/26: הפס ישב על הסרטון והסתיר את תחתית המצגת).
   את פס הכפתורים של ווימאו כבר לא צריך להסתיר: הוא כבוי בכתובת הנגן (vimeoSrc). הנגן = אזור ה-16:9 בלבד,
   ולכן העיגול ממורכז על אזור הסרטון ולא על כל הבמה (הנגיעה בו חייבת ליפול על כפתור ההפעלה הנסתר שבמרכז הנגן) */
.rm-stage { --sb: 44px; position: relative; width: 100%; height: 0; padding-top: calc(56.25% + var(--sb)); background: #000; border-radius: 12px; overflow: hidden; }
.rm-frame { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% - var(--sb)); border: 0; z-index: 0; }
.rm-shield { position: absolute; inset: 0; z-index: 4; background: transparent; }
.rm-strip { position: absolute; left: 0; right: 0; bottom: 0; height: var(--sb); z-index: 5; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.rm-cover { position: absolute; inset: 0; z-index: 6; pointer-events: none; color: #fff; text-align: center; background: linear-gradient(rgba(31, 42, 85, .86), rgba(31, 42, 85, .94)), url("/room/suzi.webp") center 30% / cover no-repeat, var(--navy); }
.rm-cover * { pointer-events: none; }
.rm-cover-top { position: absolute; top: 8px; left: 0; right: 0; font-size: 13px; }
.rm-cover-top b { display: inline-block; direction: ltr; font-size: 20px; font-weight: 800; }
.rm-circle { position: absolute; top: calc((100% - var(--sb)) / 2); left: 50%; transform: translate(-50%, -50%); width: 150px; height: 150px; border-radius: 50%; background: var(--pink); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; line-height: 1.35; padding: 10px; box-shadow: 0 0 0 6px rgba(214, 36, 127, .25); }
/* טלפון צר: העיגול קטן עם גובה הסרטון כדי לא לעלות על השעון למעלה, ונשאר במרכז (מעל כפתור ההפעלה הנסתר) */
@supports (aspect-ratio: 1 / 1) { .rm-circle { width: auto; height: min(150px, calc((100% - var(--sb)) * .58)); aspect-ratio: 1 / 1; } }
.rm-circle.ok { background: var(--ok); box-shadow: 0 0 0 6px rgba(46, 139, 87, .25); }
.rm-cover-text { position: absolute; bottom: 8px; left: 12px; right: 12px; margin: 0; font-size: 13px; }
.rm-unmute { position: absolute; top: 0; left: 0; right: 0; z-index: 7; border: 0; width: 100%; padding: 14px; background: var(--pink); color: #fff; font: inherit; font-weight: 800; font-size: 17px; cursor: pointer; }
.rm-end { position: absolute; inset: 0; z-index: 8; background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 16px; }
/* תקלה בחיבור: מעל הכל ואטומה לגמרי, כך שהסמל המסתובב או הודעת השגיאה של הנגן לא נראים מבעדה */
.rm-fail { position: absolute; inset: 0; z-index: 9; background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 16px; }
.rm-fail p { margin: 0; font-size: 17px; font-weight: 700; }
.rm-end h2 { margin: 0; font-size: 22px; }
.rm-end p { margin: 0; font-size: 16px; }
.rm-under { margin: 10px 2px 0; font-size: 15px; font-weight: 700; min-height: 1.4em; text-align: center; }
.rm-side .rm-card p { margin: 6px 0 0; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { .rm-spin { animation: none; } }

/* שלב 1 (תוספת 21/11): כפתור ההצעה מתחת לסרטון (גם במסך הסיום), והצ'אט - בטלפון מתחת לסרטון, במחשב בטור שלצידו (הגריד של .rm-room) */
.rm-offer { margin: 12px 0 0; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.rm-offer .rm-btn { width: 100%; max-width: 420px; font-size: 19px; }
.rm-offer-left { margin: 0; font-weight: 700; }
.rm-clock { display: flex; direction: ltr; justify-content: center; gap: 8px; }
.rm-clock span { display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 6px 4px; background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(31, 42, 85, .12); }
.rm-clock b { color: var(--pink); font-size: 24px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rm-clock small { color: var(--muted); font-size: 12px; font-weight: 500; }
.rm-chat { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.rm-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rm-chat-list { max-height: 50vh; min-height: 120px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px; }
@media (min-width: 900px) { .rm-chat-list { max-height: 60vh; } }
.rm-msg { border-radius: 12px; padding: 8px 10px; background: #f1f3fa; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.rm-msg.me { background: #fde8f2; }
.rm-msg b { display: block; font-size: 13px; }
.rm-msg a { color: var(--pink); font-weight: 700; }
.rm-ask { display: flex; gap: 8px; }
.rm-ask input { flex: 1; min-width: 0; min-height: 48px; padding: 10px 12px; border: 1px solid #cfd3e3; border-radius: 10px; font: inherit; font-size: 16px; background: #fff; color: var(--navy); }
.rm-ask .rm-btn { flex: none; }
