/* עמודי ניהול ומשתתף (טלפון) */
.app-page { padding: 0 16px 32px; text-align: start; }
.app-page h2 { margin: 0 0 10px; font-family: var(--serif); color: var(--gold); font-size: 24px; }
.app-page h3 { margin: 14px 0 8px; font-size: 16px; color: var(--ink-soft); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.app-page button:where(:not(.wk-ui button)), .app-page .btn {
  font: inherit; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05);
  border-radius: 10px; padding: 8px 14px; min-height: 42px; cursor: pointer;
}
.app-page button:where(:not(.wk-ui button)):hover:not(:disabled), .app-page .btn:hover { background: rgba(255, 255, 255, .1); }
.app-page button:where(:not(.wk-ui button)):disabled { opacity: .4; cursor: not-allowed; }
.app-page button:where(:not(.wk-ui button)):focus-visible, .app-page .btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.app-page button:where(:not(.wk-ui button))[aria-pressed="true"] { background: rgba(240, 196, 106, .22); border-color: var(--gold); }
.app-page button:where(:not(.wk-ui button)).primary { background: linear-gradient(180deg, #f4cf7b, #c9953d); color: #23170a; border-color: transparent; font-weight: 700; }
.app-page button:where(:not(.wk-ui button)).primary:disabled { filter: grayscale(.6); }
.app-page button:where(:not(.wk-ui button)).danger { border-color: rgba(255, 120, 110, .45); color: #ffb3a8; }
.app-page button:where(:not(.wk-ui button)).big { font-size: 20px; padding: 12px 28px; min-height: 52px; }
.app-page .row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.app-page .row.wrap { flex-wrap: wrap; }
.app-page .row.end { justify-content: flex-end; }
.app-page code { background: rgba(255, 255, 255, .08); padding: 1px 5px; border-radius: 4px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin-bottom: 14px; }
.card.center { text-align: center; padding: 32px 18px; }

/* ---------- ניהול ---------- */
.app-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0; max-width: 1300px; margin: 0 auto; }
.app-head h1 { margin: 0; font-family: var(--serif); font-size: 24px; color: var(--gold); }
.conn { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 120, 110, .15); color: #ffb3a8; }
.conn[data-status="online"] { background: rgba(110, 220, 170, .12); color: #9fe8c6; }
.host-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 520px); gap: 16px; max-width: 1500px; margin: 0 auto; align-items: start; }
.side { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 0; max-height: calc(100dvh - 24px); overflow: auto; }
@media (max-width: 960px) { .host-layout { grid-template-columns: 1fr; } .side { position: static; max-height: none; } }
.head-side { display: flex; align-items: center; gap: 10px; }
.app-head { max-width: 1500px; }

/* תצוגה מקדימה חיה של מסך התצוגה (מוקטנת) */
.preview-card h2 { font-size: 18px; }
.preview-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
.preview-frame iframe { position: absolute; top: 0; right: 0; width: 1600px; height: 900px; border: 0; transform-origin: top right; pointer-events: none; }
.help { margin: 6px 0 0; padding-inline-start: 20px; line-height: 1.6; }
kbd { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 4px; padding: 0 5px; font: inherit; font-size: .9em; }

.stepper { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 12px; flex-wrap: wrap; counter-reset: st; }
.stepper li { counter-increment: st; padding: 6px 12px; border-radius: 999px; font-size: 14px; color: var(--muted); border: 1px solid rgba(255, 255, 255, .08); }
.stepper li::before { content: counter(st) ". "; }
.stepper li.done { color: var(--ink-soft); }
.stepper li.now { color: #23170a; background: var(--gold); border-color: var(--gold); font-weight: 700; }

.room-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.qr-small { width: 120px; height: 120px; border-radius: 10px; background: #fff8e8; padding: 4px; }
.room-head p { margin: 0; }
.code { font-size: 34px; font-weight: 700; letter-spacing: .14em; color: var(--ink); }
.link a { color: var(--gold); word-break: break-all; }
.room-head select { margin-top: 6px; max-width: 100%; background: #1b1424; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 4px; font: inherit; }
.warn { background: rgba(255, 170, 80, .12); border: 1px solid rgba(255, 170, 80, .4); border-radius: 10px; padding: 8px 12px; margin: 12px 0 0; font-size: 14px; }
details { margin-top: 12px; }
details a { color: var(--gold); word-break: break-all; }

.badge-n { font-family: var(--sans); font-size: 16px; background: rgba(240, 196, 106, .18); color: var(--gold); border-radius: 999px; padding: 0 10px; vertical-align: middle; }
.plist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.plist li { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 8px; background: rgba(255, 255, 255, .03); }
.plist li > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.app-page button.x { min-height: 32px; min-width: 32px; padding: 0; border-radius: 50%; color: var(--muted); }
.plist.assign .seg { display: inline-flex; gap: 4px; }
.app-page button.tbtn { min-height: 36px; min-width: 40px; padding: 0 6px; border-bottom: 3px solid var(--c, transparent); }

.seg { display: inline-flex; gap: 6px; }
.seg.big button { min-width: 72px; font-size: 22px; font-weight: 700; }
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .modes { grid-template-columns: 1fr; } }
.app-page button.mode { flex-direction: column; align-items: flex-start; text-align: start; padding: 12px; gap: 4px; }
.mode b { font-size: 18px; }
.mode span { font-size: 13px; color: var(--ink-soft); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c, #888) 45%, transparent); font-size: 14px; }
.chip.wait { --c: #999; }
.team-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.team-summary > div { border-top: 3px solid var(--c); background: rgba(255, 255, 255, .03); border-radius: 10px; padding: 8px 12px; }
.team-summary h3 { margin: 0 0 4px; display: flex; align-items: center; gap: 6px; color: var(--ink); }
.team-summary p { margin: 0; color: var(--ink-soft); }
#game-control-wrap .control { font-size: 15px; }

.toast {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 50;
  background: #3a1d1d; border: 1px solid rgba(255, 120, 110, .5); color: #ffd6cf;
  padding: 10px 16px; border-radius: 10px; max-width: calc(100vw - 32px);
}

/* ---------- משתתף (טלפון) ---------- */
.play-page { max-width: 560px; margin: 0 auto; padding-top: env(safe-area-inset-top); }
.play-head { text-align: center; padding: 18px 0 8px; }
.play-head h1 { margin: 0; font-family: var(--serif); font-weight: 900; color: var(--gold); font-size: 30px; text-shadow: 0 0 22px rgba(240, 196, 106, .25); }
.p-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px 18px; }
.p-card.center { text-align: center; }
.hello { margin: 0 0 8px; color: var(--ink-soft); }
.hello b { color: var(--ink); }
.join-form { display: flex; flex-direction: column; gap: 10px; }
.join-form label { font-size: 18px; }
.join-form input {
  font: inherit; font-size: 20px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(0, 0, 0, .3); color: var(--ink);
}
.join-form input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.err { color: #ffb3a8; margin: 4px 0 0; }
.names.small li { font-size: 15px; }
.names li.me { border-color: var(--gold); background: rgba(240, 196, 106, .22); }
.choose { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.choice { border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); border-inline-start: 5px solid var(--c); border-radius: 12px; padding: 10px 12px; background: rgba(255, 255, 255, .03); }
.choice.mine { background: color-mix(in srgb, var(--c) 16%, transparent); }
.choice-head { display: flex; align-items: center; gap: 8px; }
.choice-head b { flex: 1; font-size: 18px; }
.choice-head small { color: var(--muted); }
.choice-names { margin: 6px 0 8px; color: var(--ink-soft); font-size: 15px; }
.choice button { width: 100%; }
.my-team { border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); border-top: 6px solid var(--c); border-radius: 16px; padding: 14px; background: color-mix(in srgb, var(--c) 10%, transparent); margin: 8px 0 12px; }
.my-team-head { display: flex; align-items: center; justify-content: center; gap: 10px; }
.my-team-head h2 { margin: 0; color: var(--ink); font-size: 28px; }
.mates { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.mates li { padding: 4px 12px; border-radius: 999px; background: rgba(0, 0, 0, .25); }
.mates li.me { outline: 2px solid var(--c); }
.offline-note { display: none; position: fixed; bottom: 12px; inset-inline: 16px; text-align: center; background: #3a1d1d; border-radius: 10px; padding: 8px; color: #ffd6cf; font-size: 14px; }
body[data-conn="offline"] .offline-note { display: block; }

/* מוזיקת רקע בעמוד הניהול */
.music-card h2 small { font-size: .7em; font-weight: 400; margin-inline-start: 6px; }
.music-main { align-items: center; gap: 12px; }
.music-row { display: grid; grid-template-columns: 3.6em auto 1fr auto 5.6em; align-items: center; gap: 8px; margin-top: 10px; }
.music-row input[type=range] { width: 100%; accent-color: #f0c46a; }
.music-row b { font-variant-numeric: tabular-nums; text-align: start; }
.music-row button { padding: 4px 10px; min-width: 2.4em; }
.warn-text { color: #ffb36b; }

/* קוד החדר בהרשמה */
.join-form .code-input { text-transform: uppercase; letter-spacing: .3em; text-align: center; font-weight: 700; font-size: 22px; }

/* "הדליקו את הנר שלכם" בעמוד המשתתף */
.lit-card { margin-top: 14px; text-align: center; background: rgba(240, 196, 106, .08); border: 1px dashed rgba(240, 196, 106, .45); border-radius: 14px; padding: 14px; }
.lit-card p { margin: 0 0 10px; color: var(--ink-soft); }
.lit-card.on { border-style: solid; color: var(--gold); font-weight: 700; }
.lit-card.on p { margin: 0; color: var(--gold); }

/* שלב הדלקת הנרות בטלפון: אחרי שהנר דולק */
.lit-card.big-lit { padding: 22px 14px; }
.lit-card.big-lit h2 { margin: 4px 0 0; color: var(--gold); }
.lit-flame-big { font-size: 64px; line-height: 1; margin: 0 !important; filter: drop-shadow(0 0 18px rgba(255, 180, 80, .8)); }

/* ---------- שמונה המשימות בטלפון (riddleui.js) ---------- */
.p-card.riddle { margin-top: 12px; font-family: 'Heebo', var(--sans); }
.p-card.riddle:empty { display: none; }
.riddle p { line-height: 1.55; }
.rd-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rd-head h2 { margin: 0; font-size: 24px; }
.rd-env { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold); font-weight: 700; white-space: nowrap; }
.rd-count { margin: 4px 0 8px; }
.rd-q { font-size: 20px; font-weight: 700; color: var(--ink); margin: 14px 0 10px; }
.rd-label { margin: 12px 0 6px; color: var(--ink-soft); font-weight: 700; }
.rd-nums { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 8px; }
.app-page button.rd-num { min-height: 54px; font-size: 22px; font-weight: 700; padding: 0; }
.rd-word { display: flex; gap: 8px; justify-content: center; margin: 6px 0 4px; }
.rd-letter {
  width: 54px; height: 62px; text-align: center; font: inherit; font-size: 30px; font-weight: 700;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .3); color: var(--ink);
  caret-color: var(--gold); padding: 0;
}
.rd-letter:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.app-page button.rd-send { width: 100%; margin-top: 16px; }
.rd-msg { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; font-weight: 700; text-align: center; }
.rd-msg.bad { background: rgba(255, 120, 110, .12); color: #ffc1b8; }
.rd-msg.good { background: rgba(110, 220, 170, .14); color: #a9f0cd; }
.rd-hints { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.rd-hints li { background: rgba(240, 196, 106, .1); border: 1px solid rgba(240, 196, 106, .35); border-radius: 10px; padding: 10px 12px; }
.app-page button.rd-hint-btn { margin-top: 14px; width: 100%; background: transparent; border-style: dashed; }
.rd-hint-wait { margin-top: 14px; text-align: center; }
.rd-done { text-align: center; }
.rd-done h2 { color: var(--gold); }
.rd-flame { font-size: 54px; margin: 0; }
.p-card.rd-after { margin-top: 12px; } .p-card.rd-after .lit-card { margin-top: 0; }

/* ---------- מנורת שבעת הקנים בטלפון (riddleui.js → lampsView) ---------- */
.lm-menorah { display: block; width: 100%; max-width: 360px; margin: 8px auto 0; }
.lm-body { fill: none; stroke: #b8954f; stroke-width: 5; stroke-linecap: round; }
.lm-body path:last-child { fill: #b8954f; stroke: none; }
.lm-cup { fill: #d8b46a; }
.lm-wick { stroke: #2a1d12; stroke-width: 2; }
.lm-glow { fill: url(#lm-glow); opacity: 0; transform: translateY(-12px); transition: opacity .35s; }
.lm-flame { fill: #ffb347; opacity: 0; transform: scale(.3); transform-origin: 0 0; transition: opacity .3s, transform .35s cubic-bezier(.2, 1.4, .4, 1); }
.lm-core { fill: #fff3c4; opacity: 0; transition: opacity .3s; }
.lm-lamp.on .lm-flame { opacity: 1; transform: scale(1); animation: lm-flicker 1.6s ease-in-out infinite alternate; }
.lm-lamp.on .lm-core { opacity: .95; }
.lm-lamp.on .lm-glow { opacity: 1; }
@keyframes lm-flicker { from { transform: scale(1, 1); } to { transform: scale(.94, 1.06); } }
@media (prefers-reduced-motion: reduce) { .lm-lamp.on .lm-flame { animation: none; } }
.lm-count { text-align: center; margin: 2px 0 10px; font-weight: 700; color: var(--gold); }
.lm-oil { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.lm-oil-label { color: var(--ink-soft); }
.lm-oil-bar { flex: 1; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.lm-oil-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f4cf7b, #c9953d); transition: width .3s; margin-inline-start: auto; }
.lm-last { margin: 8px 0 0; display: flex; align-items: center; gap: 6px; min-height: 22px; }
.lm-last svg { color: var(--gold); }
.lm-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.app-page button.lm-btn { width: 86px; height: 86px; border-radius: 20px; color: var(--gold); border-color: rgba(240, 196, 106, .5); background: rgba(240, 196, 106, .08); }
.app-page button.lm-btn:active { transform: scale(.95); background: rgba(240, 196, 106, .25); }
.lm-others { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-top: 12px; }
.lm-others span { display: inline-flex; align-items: center; gap: 4px; }
/* החותם האישי (נחשף בהדלקת הנר) */
.my-seal { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 8px; color: var(--gold); }
.my-seal span { color: var(--ink); font-size: 15px; }
.app-page button.lm-reset { margin-top: 10px; width: 100%; background: transparent; }
/* "מה הכפתור עושה?" מתחת לכל כפתור, וחלון הבחירה */
.lm-one { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 104px; }
.app-page button.lm-note { padding: 3px 6px; min-height: 0; font-size: 12px; line-height: 1.25; border-radius: 8px; color: var(--muted); background: transparent; border: 1px dashed rgba(240, 196, 106, .35); width: 100%; }
.app-page button.lm-note.set { color: var(--ink); border-style: solid; background: rgba(240, 196, 106, .1); }
.lm-pick { position: fixed; inset: 0; z-index: 90; background: rgba(5, 4, 3, .7); display: flex; align-items: flex-end; justify-content: center; padding: 12px; }
.lm-pick[hidden] { display: none; }
.lm-pick-box { width: min(100%, 460px); max-height: 88vh; overflow: auto; background: #1d1626; border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: grid; gap: 8px; }
.lm-pick-head { display: flex; align-items: center; gap: 10px; color: var(--gold); }
.lm-pick-head b { flex: 1; color: var(--ink); font-size: 17px; }
.app-page button.lm-pick-x { padding: 4px 10px; min-height: 0; }
.lm-pick-box p { margin: 0; }
.app-page button.lm-pick-opt { text-align: start; font-size: 15px; line-height: 1.35; padding: 10px 12px; border-radius: 12px; }
.app-page button.lm-pick-opt.on { border-color: var(--gold); background: rgba(240, 196, 106, .2); }
.app-page button.lm-pick-opt.clear { color: var(--muted); background: transparent; }
/* הבהוב של הקנים שהשתנו בלחיצה האחרונה */
.lm-ring { fill: none; stroke: #fff1c2; stroke-width: 2.5; opacity: 0; }
.lm-lamp.chg .lm-ring { animation: lm-ring 1.4s ease-out 1; }
@keyframes lm-ring { 0% { opacity: .95; transform: scale(.6); } 40% { opacity: .85; transform: scale(1.15); } 100% { opacity: 0; transform: scale(1.5); } }
.lm-ring { transform-box: fill-box; transform-origin: center; }
/* תנועה מופחתת: הטבעת רק מופיעה ונעלמת בהדרגה (בלי לגדול). קודם היא נשארה על המסך כל הזמן (2026-11-30) */
@keyframes lm-ring-fade { 0% { opacity: .9; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lm-lamp.chg .lm-ring { animation: lm-ring-fade 1.2s ease-out 1; } }

/* הודעה מהמנחה ("בקרה חיה"): מעל כל מה שבטלפון, כולל משימת הנר התשיעי והכיול */
.msg-pop { position: fixed; inset: 0; z-index: 100; background: rgba(5, 4, 3, .78); display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(3px); }
.msg-pop[hidden] { display: none; }
.msg-card { width: min(420px, 100%); background: #1d1710; border: 2px solid var(--gold, #f0c46a); border-radius: 20px; padding: 22px 20px 18px; text-align: center; box-shadow: 0 0 40px rgba(240, 196, 106, .25); animation: msg-in .35s ease-out; }
.msg-from { color: var(--gold, #f0c46a); font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.msg-text { font-size: 24px; line-height: 1.4; margin: 0 0 18px; color: #f6eedd; white-space: pre-wrap; }
.msg-card button { width: 100%; }
@keyframes msg-in { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .msg-card { animation: none; } }

/* מסכי הטלפון: גופן אחיד לכל המלל, כמו "קוד החדר" (2026-11-30, לבקשתה). הכותרת "הנר התשיעי" למעלה נשארת */
.play-page :where(*):not(.play-head h1) { font-family: var(--sans) !important; }
/* תשובה שגויה: בולטת לכל הקבוצה */
.rd-wrong { display: flex; flex-direction: column; gap: 4px; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(231, 76, 60, .18); border: 2px solid #e74c3c; color: #ffd9d3; animation: rd-shake .45s ease-out; }
.rd-wrong b { color: #ff9b8f; font-size: 19px; }
.rd-wrong span { font-size: 15px; }
@keyframes rd-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .rd-wrong { animation: none; } }
.rd-next { font-size: 18px; line-height: 1.5; }
.p-finale h2 { line-height: 1.4; }
.p-finale-wish { font-size: 20px; line-height: 1.6; margin-top: 18px; }
.p-finale-wish b { color: var(--gold); font-size: 24px; }

/* הלוגו בראש הטלפון (במקום הכותרת) */
.play-head h1 { line-height: 0; }
.play-logo { display: inline-block; width: min(66vw, 300px); height: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
/* בזמן המשימות: שורת קבוצה קטנה במקום הכרטיס הגדול */
.team-line { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 12px 7px; border-radius: 12px; border-top: 3px solid var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); text-align: center; }
.team-line b { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; color: var(--ink); }
.team-line span { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.team-line i { font-style: normal; }
.team-line i.me { color: var(--gold); font-weight: 700; }
.team-line em { font-style: normal; margin: 0 6px; opacity: .6; }
.team-line + .p-card.riddle, .team-line + section { margin-top: 8px; }

/* מסכי המשימות בטלפון: לוגו קטן ופחות רווחים, כדי שהמשימה תיכנס למסך בלי גלילה (2026-11-30, לבקשתה) */
.in-task .play-head { padding: 6px 0 4px; }
.in-task .play-logo { width: min(40vw, 170px); }
.in-task .team-line { padding: 4px 10px 5px; }
.in-task .team-line b { font-size: 14px; }
.in-task .team-line span { font-size: 12px; }
.in-task .p-card.riddle { padding: 12px 14px 14px; }
.in-task .rd-head h2 { font-size: 20px; }
.in-task .rd-env { padding: 2px 10px; font-size: 14px; }
.in-task .rd-count { margin: 2px 0 4px; }
.in-task .p-card.riddle p { margin: 6px 0; line-height: 1.45; }
.in-task .rd-q { font-size: 18px; margin: 8px 0 6px; }
.in-task .rd-label { margin: 8px 0 4px; font-size: 14px; }
.in-task .rd-nums { gap: 6px; }
.in-task .app-page button.rd-num, .in-task button.rd-num { min-height: 44px; font-size: 20px; }
.in-task .rd-send { margin-top: 10px; }
.in-task .app-page button.big.rd-send, .in-task button.big.rd-send { min-height: 46px; padding: 8px 20px; font-size: 18px; }
.in-task .rd-wrong { margin-top: 8px; padding: 8px 12px; }
.in-task .rd-wrong b { font-size: 17px; }
.in-task .rd-hint-btn, .in-task .rd-hint-wait { margin-top: 6px; }
.in-task .lm-menorah { max-width: 280px; margin-top: 2px; }
.in-task .app-page button.lm-btn, .in-task button.lm-btn { width: 70px; height: 70px; }
.in-task .rd-flame { font-size: 42px; }
.in-task .p-card.rd-after { margin-top: 8px; padding: 10px 12px; }
/* המנורה: הכי ארוכה, ולכן מוקטנת עוד קצת */
.in-task .p-card.riddle:has(.lm-menorah) p:not(.rd-q):not(.lm-count):not(.lm-last) { font-size: 14.5px; line-height: 1.4; margin: 4px 0; }
.in-task .p-card.riddle:has(.lm-menorah) .rd-q { font-size: 17px; margin: 6px 0 2px; }
.in-task .lm-menorah { max-width: 220px; }
.in-task .lm-count { margin: 0; font-size: 15px; }
.in-task .lm-oil { margin: 4px 0 2px; }
.in-task .lm-last { margin: 2px 0; }
.in-task .p-card.riddle:has(.lm-menorah) .rd-label { margin: 4px 0 4px; }
.in-task .app-page button.lm-btn, .in-task button.lm-btn { width: 62px; height: 62px; border-radius: 16px; }
.in-task .lm-one { width: 88px; gap: 3px; }
.in-task .app-page button.lm-note { font-size: 11px; padding: 2px 4px; }
.in-task .lm-others { margin: 6px 0 0; }
.in-task .lm-reset { margin-top: 4px; }

/* הודעה "פס למעלה": לכמה שניות, לא עוצרת את המשחק (לחיצה = סגירה) */
.msg-banner { position: fixed; top: calc(8px + env(safe-area-inset-top)); inset-inline: 10px; z-index: 110; display: flex; gap: 10px; align-items: center;
  padding: 10px 14px; border-radius: 14px; background: rgba(36, 28, 46, .96); border: 1px solid rgba(240, 196, 106, .55); border-inline-start: 5px solid var(--gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55); color: var(--ink); font-size: 17px; line-height: 1.4; font-weight: 700;
  transform: translateY(-140%); opacity: 0; transition: transform .35s ease, opacity .35s ease; }
.msg-banner.in { transform: none; opacity: 1; }
.msg-banner[hidden] { display: none; }
.msg-banner small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-soft); }
.msg-banner .mb-ic { font-size: 22px; }
@media (prefers-reduced-motion: reduce) { .msg-banner { transition: opacity .2s; transform: none; } }

/* בחירת קבוצה בטלפון: קומפקטי, כדי שכל הקבוצות ייכנסו בלי גלילה (2026-12-02, לבקשתה). הכפתור באותה שורה עם שם הקבוצה */
.in-choose .play-head { padding: 6px 0 4px; }
.in-choose .play-logo { width: min(40vw, 170px); }
.choose-card { padding: 12px 12px 14px; }
.choose-card .hello { margin: 0 0 2px; font-size: 14px; }
.choose-card h2 { font-size: 21px; margin: 0; }
.choose-card .choose-tip { margin: 0 0 2px; }
.choose-card .choose { gap: 7px; margin-top: 6px; }
.choose-card .choice { padding: 7px 10px 8px; }
.choose-card .choice-head b { font-size: 16px; line-height: 1.25; }
.choose-card .choice-head small { white-space: nowrap; }
.choose-card .choice-names { margin: 3px 0 0; font-size: 13.5px; line-height: 1.4; }
.app-page .choose-card .choice button { width: auto; flex: none; min-height: 36px; padding: 4px 12px; font-size: 15px; }
.choose-card > .muted.small.center { margin: 8px 0 0; }
.choose-card .lit-card { margin-top: 10px; padding: 10px; }
.choose-card .lit-card p { margin: 0 0 6px; font-size: 14px; }
.app-page .choose-card .lit-card button.big { min-height: 44px; padding: 6px 18px; font-size: 17px; }

/* הפסקה במשחק (2026-12-02): מעל כל מסכי הטלפון (גם הכיול והמשימה), מתחת להודעות מהמנחה */
.pause-pop { position: fixed; inset: 0; z-index: 95; background: rgba(8, 6, 4, .9); display: flex; align-items: center; justify-content: center; padding: 24px; backdrop-filter: blur(4px); touch-action: none; }
.pause-pop[hidden] { display: none; }
.pause-card { text-align: center; max-width: 420px; }
.pause-ic { font-size: 54px; color: var(--gold, #f0c46a); margin-bottom: 14px; }
.pause-card p { margin: 0 0 10px; font-size: 19px; line-height: 1.5; color: #efe6d4; }
.pause-card p.big { font-size: 27px; font-weight: 700; color: var(--gold, #f0c46a); }
