/* ═══════════════════════════════════════════════════════════════════════
   סיבוב החימום · הקומפוננטה
   ---------------------------------------------------------------------
   שני סיבובים לפני שהמשחק מתחיל:
     סיבוב 1 · צ'אט רגיל — הקונה שואלת, שלוש תשובות. יש תשובה נכונה.
     סיבוב 2 · **הודעת מערכת** — בוחרים פעולה, לא משפט. אין תשובה נכונה.
   ואז שורת הציר, LEVEL 1, והמשחק.

   ⚠ **שני הסיבובים זהים לחלוטין בכל 100 המשחקים** — הטקסטים, התשובות של
   הקונה והמראה. שום דבר כאן לא מגיע מקונפיג הלקוח חוץ משמות המשתתפים.

   נקודת הפתיחה והסיום היא **פריים העוגן**: left 41 / width 18 /
   buyer top 9 / seller bottom 9. כל טעות חוזרת לשם בדיוק, כי זה
   ה-first_frame של הנפשת הטעות בסידנס.
   ═══════════════════════════════════════════════════════════════════════ */

:root { --ez: cubic-bezier(.22,.9,.28,1); --amb: #e8a33d; }

/* ---------- האריחים ----------
   ⚠ שתי השורות הראשונות הן ה-transition של הכניסה מ-landing.css. הקובץ
   הזה נטען אחריו ובאותה ספציפיות ולכן דורס את כל ההצהרה — בלי להעתיק
   אותן, הכניסה של האריח מאבדת את הפייד וקופצת. */
#stage .ptile {
  transition: opacity .38s ease,
              transform .44s cubic-bezier(.16, .84, .44, 1),
              left .55s var(--ez), top .55s var(--ez), width .55s var(--ez),
              filter .3s linear, box-shadow .2s linear;
}
#stage .ptile .nstrip {
  font-size: clamp(4px, calc(.85cqw * var(--tscale, 1)), 12px);
  gap: calc(6px * var(--tscale, 1));
}
#stage .ptile.speaking {
  box-shadow: 0 0 0 1px #0e1014, 0 0 2.4cqw rgba(232,163,61,.7), 3px 3px 0 rgba(0,0,0,.45);
  border-color: var(--amb);
}
/* ⚠ "מקשיב" הוא עמעום **עדין בלבד**. אף פרצוף לא נכבה בשום שלב. */
#stage .ptile.listening { filter: brightness(.82) saturate(.9); }
#stage .ptile.nope { animation: tile-nope .5s ease-in-out 2; }
@keyframes tile-nope {
  0%,100% { transform: rotate(0) }
  25% { transform: rotate(-5deg) translateX(-2%) }
  75% { transform: rotate(5deg) translateX(2%) }
}
#stage .ptile.nod { animation: tile-nod .42s ease-in-out 2; }
@keyframes tile-nod {
  0%,100% { transform: translateY(0) }
  50% { transform: translateY(4%) scale(.985) }
}
#stage.wrong .ptile { filter: saturate(.4) contrast(1.15); }

/* ═══════════ כרטיס הצ'אט ═══════════
   שכבה 20 — מתחת לאריחים (25), כך שהפרצופים תמיד למעלה. */
#qa {
  position: absolute; inset: 0; z-index: 20; direction: ltr; pointer-events: none;
  transition: transform .55s cubic-bezier(.5,0,.75,0), opacity .45s ease .06s;
}
/* 08.08 — עודד: "כשעולה קומפוננטה על המסך הכל חייב להיות חשוך". לא עלטה —
   החדרים עדיין נקראים, אבל הפוקוס עובר לשאלות. האריחים (25) מעל הסקרים (20)
   ולכן הפרצופים נשארים דלוקים. */
#qa::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(3, 4, 7, .74);
}
#qa.exit { transform: translateY(120%); opacity: 0; }
#qa.gone { display: none; }

/* --- הכרטיס · ענק, כמעט כל הבמה (08.08) ---
   ההחלטה המקורית (כרטיס 52×50 כדי שהחדרים יישארו גלויים) בוטלה במפורש:
   עודד — "למה אנחנו מתקמצנים על המקום? זה צריך להיות ענק, על גבי כל
   המסך". החדרים עדיין מציצים במסגרת שסביב, והסקרים שומר על ההקשר. */
#qa .cp {
  position: absolute; left: 6%; top: 6%; width: 88%; height: 80%;
  background: rgba(11,13,18,.9); border: 2px solid #343a48;
  box-shadow: 5px 5px 0 rgba(0,0,0,.45);
  opacity: 0; transform: translateY(3%) scale(.97);
  transition: opacity .34s ease, transform .46s var(--ez);
}
#qa.pin .cp { opacity: 1; transform: none; }
#qa .cp-head {
  display: flex; align-items: center; gap: .7cqw;
  border-bottom: 2px solid #343a48; padding: .7cqw .95cqw;
  font-family: "Press Start 2P", monospace;
  font-size: .85cqw; color: #b8bdc6; letter-spacing: .06em;
}
#qa .cp-head b { color: var(--amb); font-weight: 400; }
#qa .cp-head .dot { width: .6cqw; height: .6cqw; border-radius: 50%; background: #46e07c; }

/* --- שתי בועות: עליונה למי שבחריץ העליון, תחתונה למי שבתחתון ---
   min-height בדיוק כרוחב האריח (= גובהו, כי הוא ריבוע), כך שהבועה
   והפרצוף שלצידה מתחילים ונגמרים באותו קו. */
.bubwrap {
  position: absolute; left: 27%; width: 62%; opacity: 0;
  transform: translateY(14%) scale(.97);
  transition: opacity .34s ease, transform .44s var(--ez),
              top .55s var(--ez), left .55s var(--ez), width .55s var(--ez);
}
#qa .qtop { top: 18%; }
#qa .qbot { top: 56%; }
.bubwrap.on { opacity: 1; transform: none; }
.bubwrap .who {
  display: block; font-family: "Press Start 2P", monospace;
  font-size: .8cqw; letter-spacing: .06em; color: var(--amb); margin-bottom: .55cqw;
}
.bubwrap .txt { display: block; font-family: "Jersey 10", monospace; line-height: 1.14; font-size: 3.1cqw; color: #f4f1e8; }
.bubwrap .caret { color: var(--amb); animation: caret .7s steps(1) infinite; }
@keyframes caret { 0%,50% { opacity: 1 } 50.01%,100% { opacity: 0 } }
.bubwrap .bub {
  position: relative; min-height: 9cqw;
  background: rgba(28,33,43,.92); border: 2px solid #3f4655;
  padding: .75cqw .9cqw .55cqw;
  display: flex; flex-direction: column; justify-content: center;
  transition: min-height .5s var(--ez), padding .5s var(--ez),
              background .3s linear, border-color .3s linear;
}
.bubwrap .bub::before {              /* זנב הבועה — מצביע אל הפרצוף */
  content: ""; position: absolute; left: -.88cqw; top: 16%;
  border: .44cqw solid transparent; border-right-color: #3f4655;
  transition: border-right-color .3s linear;
}

/* --- "כבר נאמר" · השאלה הראשונה **נשארת על המסך** בזמן הודעת המערכת,
   רק מתכווצת ומתעממת ומקבלת תגית SAID. מתייחסים אליה, לא מוחקים. --- */
.bubwrap.said .bub {
  background: rgba(20,24,32,.72); border-color: #2c3341;
  min-height: 5.6cqw; padding: .5cqw .8cqw .42cqw;
}
.bubwrap.said .bub::before { border-right-color: #2c3341; }
.bubwrap.said .txt { font-size: 1.9cqw; color: #7f8798; }
.bubwrap.said .who { font-size: .62cqw; color: #6b6350; }
.bubwrap.said .who::after { content: " · SAID"; color: #4d5567; }

/* --- שלוש התשובות של סיבוב 1 --- */
#qa .ans {
  position: absolute; left: 27%; top: 56%; width: 62%;
  display: flex; flex-direction: column; gap: .7cqw;
}
/* ⚠ מנקה שאריות: בלי זה שתי התשובות הפסולות נשארות ב-opacity .25 מאחורי
   הכרטיס בשלבים הבאים, כי .dimmed גובר על #qa .a באותה ספציפיות. */
#qa.sys .ans, #qa.talk .ans { display: none; }
#qa .a {
  pointer-events: auto; cursor: pointer; text-align: left; direction: ltr;
  font-family: "Jersey 10", monospace; font-size: 2.5cqw; line-height: 1.05;
  color: #eae6dc; background: rgba(28,33,43,.92);
  border: 2px solid #3a404c; padding: .7cqw 1.1cqw .5cqw;
  display: flex; align-items: center; gap: .85cqw;
  opacity: 0; transform: translateY(22%);
  transition: opacity .3s ease, transform .4s var(--ez),
              background .12s linear, border-color .12s linear, color .12s linear;
}
#qa.live .a { opacity: 1; transform: none; }
#qa.live .a:nth-child(1) { transition-delay: .04s, .04s, 0s, 0s, 0s; }
#qa.live .a:nth-child(2) { transition-delay: .13s, .13s, 0s, 0s, 0s; }
#qa.live .a:nth-child(3) { transition-delay: .22s, .22s, 0s, 0s, 0s; }
#qa .a .k {
  flex: 0 0 auto; font-family: "Press Start 2P", monospace; font-size: .85cqw;
  color: #8f96a5; border: 2px solid #3a404c; padding: .48cqw .54cqw .38cqw; line-height: 1;
  transition: color .12s linear, border-color .12s linear, background .12s linear;
}
/* ---------- HOVER · חייב להיראות לחיץ ----------
   העמעום לבדו לא קרא כמו כפתור. שלושה דברים ביחד: מסגרת ענבר + רקע ענבר
   מוצק + **הזזה של האריח ימינה**. התנועה היא מה שהופך את זה מ"טקסט
   שמשתנה" ל"כפתור שנלחץ". ה-transform חייב לגבור על #qa.live .a. */
#qa.live .a:hover:not(:disabled) {
  border-color: var(--amb); background: rgba(58,43,20,.96); color: #fff;
  transform: translateX(1.4%);
  box-shadow: -.28cqw 0 0 var(--amb), 3px 3px 0 rgba(0,0,0,.4);
}
#qa.live .a:hover:not(:disabled) .k { color: #14161b; background: var(--amb); border-color: var(--amb); }
#qa.live .a:active:not(:disabled) { transform: translateX(1.4%) translateY(2px); }
#qa .a:disabled { cursor: default; }
#qa .a.picked-bad { border-color: #ff3b30; background: rgba(70,10,10,.94); color: #ffd9d6; animation: a-bad .38s ease-in-out 2; }
#qa .a.picked-bad .k { color: #ff3b30; border-color: #ff3b30; }
@keyframes a-bad { 0%,100% { transform: translateX(0) } 25% { transform: translateX(-1.1%) } 75% { transform: translateX(1.1%) } }
#qa .a.picked-good { border-color: #46e07c; background: rgba(10,52,28,.94); color: #dcffe9; }
#qa .a.picked-good .k { color: #46e07c; border-color: #46e07c; }
#qa .a.picked-good::after { content: "✔"; margin-left: auto; color: #46e07c; font-size: 1.6cqw; }
#qa .a.dimmed { opacity: .28; }

/* ═══════════════════════════════════════════════════════════════════════
   סיבוב 2 · בלוק המערכת — **PANEL** (נבחר 2026-08-03 מתוך 5)
   ---------------------------------------------------------------------
   השחקן בוחר **פעולה**, לא משפט. שלושת הדברים שמפרידים בין זה לדיבור:
   פונט הממשק במקום פונט הדיבור · שורות שטוחות בלי בועה ובלי זנב ·
   מסגרת ותגית SYSTEM בענבר. אותו וייב, רק ברור שזו לא בן אדם.
   ═══════════════════════════════════════════════════════════════════════ */
#sysb {
  position: absolute; left: 27%; top: 47%; width: 62%;
  display: none; direction: ltr;
  border: 2px solid rgba(232,163,61,.55);
  background: linear-gradient(rgba(232,163,61,.08), rgba(232,163,61,.02));
  padding: 1.2cqw 1.3cqw 1.1cqw;
  opacity: 0; transform: translateY(10%);
  transition: opacity .32s ease, transform .42s var(--ez);
}
#qa.sys #sysb { display: block; }
#qa.sys.symin #sysb { opacity: 1; transform: none; }
#sysb .tag {
  display: flex; align-items: center; gap: .5cqw;
  font-family: "Press Start 2P", monospace; font-size: .72cqw; letter-spacing: .16em;
  color: var(--amb); margin-bottom: .7cqw;
}
#sysb .tag i { flex: 1 1 auto; height: 2px; background: rgba(232,163,61,.35); }
#sysb .hd {
  font-family: "Press Start 2P", monospace; font-size: 1.15cqw; line-height: 1.7;
  color: #dfe4ee; margin-bottom: 1cqw;
}
#sysb .list { display: flex; flex-direction: column; gap: .55cqw; }
#sysb .act {
  pointer-events: auto; cursor: pointer; width: 100%; text-align: left; direction: ltr;
  display: flex; align-items: center; gap: .75cqw;
  font-family: "Press Start 2P", monospace; font-size: 1.05cqw; line-height: 1.65;
  color: #cdd3df; background: none; border: none;
  border-left: .4cqw solid transparent;         /* המקום של פס ההדגשה */
  padding: .6cqw .75cqw;
  transition: color .12s linear, background .12s linear,
              border-color .12s linear, transform .14s var(--ez);
}
#sysb .act .ic {
  flex: 0 0 auto; font-size: 1.55cqw; line-height: 1;
  filter: grayscale(.55) brightness(.85);
  transition: filter .14s linear, transform .14s var(--ez);
}
/* HOVER · אותה שפה של סיבוב 1: פס ענבר + רקע + הזזה. והאייקון "מתעורר" —
   מקבל צבע מלא וקופץ קצת. */
#sysb .act:hover {
  color: #fff; background: rgba(232,163,61,.18);
  border-left-color: var(--amb); transform: translateX(1.4%);
}
#sysb .act:hover .ic { filter: none; transform: scale(1.15); }
#sysb .act:active { transform: translateX(1.4%) translateY(2px); }
#sysb .act.chosen {
  color: #46e07c; background: rgba(70,224,124,.14); border-left-color: #46e07c;
}
#sysb .act.chosen .ic { filter: none; }

/* ═══════════ חיווי הטעות · מוגזם בכוונה ═══════════ */
#stage.shake { animation: shake .42s cubic-bezier(.36,.07,.19,.97) 2; }
@keyframes shake {
  10%,90% { transform: translate(-.7%, .3%) }
  20%,80% { transform: translate(1.1%, -.5%) }
  30%,50%,70% { transform: translate(-1.4%, .7%) }
  40%,60% { transform: translate(1.4%, -.7%) }
}
#rage { position: absolute; inset: 0; z-index: 60; pointer-events: none; display: none; }
#rage.on { display: block; }
#rage .flood { position: absolute; inset: 0; background: #ff1420; opacity: 0; }
#rage.on .flood { animation: flood 2.4s linear forwards; }
@keyframes flood {
  0% { opacity: 0 } 4% { opacity: .92 } 9% { opacity: .08 }
  14% { opacity: .95 } 19% { opacity: .1 }
  24% { opacity: .85 } 30% { opacity: .12 }
  36% { opacity: .7 } 44% { opacity: .18 }
  60% { opacity: .3 } 100% { opacity: 0 }
}
#rage .vig {
  position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(ellipse 62% 62% at 50% 50%, transparent 30%, rgba(190,0,10,.85) 100%);
}
#rage.on .vig { animation: vig 2.4s ease-out forwards; }
@keyframes vig { 0% { opacity: 0 } 8% { opacity: 1 } 70% { opacity: .8 } 100% { opacity: 0 } }
#rage .bars {
  position: absolute; inset: 0; opacity: 0; mix-blend-mode: overlay;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.75) 0 2px, transparent 2px 5px);
}
#rage.on .bars { animation: bars 2.4s steps(2) forwards; }
@keyframes bars { 0% { opacity: .95 } 45% { opacity: .5 } 100% { opacity: 0 } }
#rage .stamp {
  position: absolute; left: 0; right: 0; top: 34%; text-align: center; direction: ltr;
  font-family: "Press Start 2P", monospace; font-size: 8cqw; color: #fff;
  text-shadow: 0 0 3cqw #ff0018, .5cqw .5cqw 0 #7a0009, -.25cqw -.25cqw 0 #ff8f97;
  opacity: 0;
}
#rage.on .stamp { animation: stamp 2.4s cubic-bezier(.2,1.6,.4,1) forwards; }
@keyframes stamp {
  0% { opacity: 0; transform: scale(3.2) rotate(-14deg) }
  7% { opacity: 1; transform: scale(1) rotate(-5deg) }
  10% { transform: scale(1.1) rotate(-5deg) }
  14% { transform: scale(1) rotate(-5deg) }
  20% { transform: scale(1.06) rotate(-4deg) }
  26%,58% { opacity: 1; transform: scale(1) rotate(-5deg) }
  70% { opacity: 1; transform: scale(1.02) rotate(-5deg) }
  100% { opacity: 0; transform: scale(.5) rotate(-5deg) translateY(60%) }
}
#rage .sub {
  position: absolute; left: 0; right: 0; top: 51%; text-align: center; direction: ltr;
  font-family: "Press Start 2P", monospace; font-size: 1.35cqw; color: #ffe3e3;
  text-shadow: 2px 2px 0 #6e0006; opacity: 0;
}
#rage.on .sub { animation: sub 2.4s ease-out forwards; }
@keyframes sub { 0%,8% { opacity: 0 } 14%,62% { opacity: 1 } 100% { opacity: 0 } }

/* ═══════════ WRONG ארוך · `.long` (10.08) ═══════════
   עודד: "כשטועים, תשאיר עוד שנייה אחת על המסך את החלק של ה-WRONG."
   2.4 שניות → 3.4, אבל **השנייה נוספת רק להחזקה** ולא נמרחת על הכל:
   הסלאם של החותמת נשאר באותם מילישניות בדיוק (7% מ-2.4 = 5% מ-3.4),
   ורק הקטע שבו WRONG יושב על המסך מתארך. פריסה אחידה הייתה הופכת את
   המכה לאיטית — וזו בדיוק התחושה ההפוכה ממה שצריך שם.
   ⚠ הכיתה נדלקת רק בשש השאלות של השרשרת החיה. שרשרת הדמו של אורן
     (level1..4.js) לא מקבלת אותה ולכן רצה בדיוק כמו קודם. */
#rage.on.long .flood { animation: flood-long 3.4s linear forwards; }
#rage.on.long .vig   { animation: vig-long   3.4s ease-out forwards; }
#rage.on.long .bars  { animation: bars-long  3.4s steps(2) forwards; }
#rage.on.long .stamp { animation: stamp-long 3.4s cubic-bezier(.2,1.6,.4,1) forwards; }
#rage.on.long .sub   { animation: sub-long   3.4s ease-out forwards; }

@keyframes flood-long {
  0% { opacity: 0 } 3% { opacity: .92 } 6% { opacity: .08 }
  10% { opacity: .95 } 13% { opacity: .1 }
  17% { opacity: .85 } 21% { opacity: .12 }
  25% { opacity: .7 } 31% { opacity: .18 }
  42% { opacity: .3 } 72% { opacity: .22 } 100% { opacity: 0 }
}
@keyframes vig-long { 0% { opacity: 0 } 6% { opacity: 1 } 49% { opacity: .8 } 79% { opacity: .8 } 100% { opacity: 0 } }
@keyframes bars-long { 0% { opacity: .95 } 32% { opacity: .5 } 100% { opacity: 0 } }
@keyframes stamp-long {
  0% { opacity: 0; transform: scale(3.2) rotate(-14deg) }
  5% { opacity: 1; transform: scale(1) rotate(-5deg) }
  7% { transform: scale(1.1) rotate(-5deg) }
  10% { transform: scale(1) rotate(-5deg) }
  14% { transform: scale(1.06) rotate(-4deg) }
  18%,70% { opacity: 1; transform: scale(1) rotate(-5deg) }
  79% { opacity: 1; transform: scale(1.02) rotate(-5deg) }
  100% { opacity: 0; transform: scale(.5) rotate(-5deg) translateY(60%) }
}
@keyframes sub-long { 0%,6% { opacity: 0 } 10%,73% { opacity: 1 } 100% { opacity: 0 } }

/* ═══════════ דיאלוג ה-Oopsie · שאלה מקדימה (10.08) ═══════════
   חלון ווינדוז ישן, אבל בשפה של המשחק: Press Start 2P, בלי אנטי-אליאס
   בפינות, וכל המידות ב-cqw. עולה במקום חיווי הטעות — בשאלות המקדימות
   אי אפשר להיפסל.
   שכבה 68: מעל הצ'אט, מתחת לגיים-אובר (70) ולבועת ההקלטה (80). */
#oops {
  position: absolute; inset: 0; z-index: 68; display: none;
  align-items: center; justify-content: center;
  background: rgba(6, 8, 12, .55);
}
#oops.on { display: flex; }
#oops .ow {
  width: 46cqw;
  background: #c0c0c0;
  border: .3cqw solid;
  border-color: #fff #3d3d3d #3d3d3d #fff;
  box-shadow: 0 1.2cqw 3.4cqw rgba(0, 0, 0, .6);
  animation: owpop .16s cubic-bezier(.2, 1.5, .4, 1) both;
}
@keyframes owpop { 0% { transform: scale(.86); opacity: 0 } 100% { transform: scale(1); opacity: 1 } }
#oops .ow-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin: .3cqw; padding: .55cqw .5cqw .55cqw .7cqw;
  background: linear-gradient(90deg, #00108f 0%, #3a76d8 100%);
}
#oops .ow-t {
  font-family: "Press Start 2P", monospace;
  font-size: .82cqw; color: #fff; letter-spacing: .06em;
}
/* ⚠ חוק ה-hover: מסגרת + רקע + תנועה. גם לכפתור ה-X הקטן. */
#oops .ow-x {
  width: 2cqw; height: 1.8cqw; padding: 0; cursor: pointer;
  background: #c0c0c0;
  border: .22cqw solid;
  border-color: #fff #3d3d3d #3d3d3d #fff;
  font-family: "Press Start 2P", monospace; font-size: .68cqw; color: #101010;
  transition: transform .08s ease, background .12s ease, box-shadow .12s ease;
}
#oops .ow-x:hover { background: #e2e2e2; box-shadow: 0 0 0 .12cqw #00108f; transform: translateY(-.12cqw); }
#oops .ow-x:active { border-color: #3d3d3d #fff #fff #3d3d3d; transform: translateY(.12cqw); }
#oops .ow-body {
  display: flex; align-items: center; gap: 1.4cqw;
  padding: 1.7cqw 1.7cqw 1.3cqw;
}
#oops .ow-ico {
  flex: 0 0 auto;
  width: 3.6cqw; height: 3.6cqw;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #ffd21e;
  border: .26cqw solid #101010;
  font-family: "Press Start 2P", monospace; font-size: 1.7cqw; color: #101010;
  box-shadow: inset 0 -.3cqw 0 rgba(0, 0, 0, .18);
}
#oops .ow-msg {
  margin: 0;
  font-family: "Press Start 2P", monospace;
  font-size: .95cqw; line-height: 2; color: #101010;
}
#oops .ow-foot { display: flex; justify-content: center; padding: 0 1.7cqw 1.8cqw; }
#oops .ow-ok {
  padding: .85cqw 2.6cqw .95cqw; cursor: pointer;
  background: #c0c0c0;
  border: .26cqw solid;
  border-color: #fff #3d3d3d #3d3d3d #fff;
  font-family: "Press Start 2P", monospace; font-size: 1cqw; color: #101010;
  letter-spacing: .04em;
  transition: transform .08s ease, background .12s ease, box-shadow .12s ease;
}
#oops .ow-ok:hover { background: #e6e6e6; box-shadow: 0 0 0 .14cqw #00108f; transform: translateY(-.14cqw); }
#oops .ow-ok:active { border-color: #3d3d3d #fff #fff #3d3d3d; transform: translateY(.14cqw); }

/* ═══════════ חיווי נכון ═══════════ */
#good {
  position: absolute; inset: 0; z-index: 59; pointer-events: none; display: none;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(70,224,124,.34), transparent 70%);
}
#good.on { display: block; animation: goodin 1.1s ease-out forwards; }
@keyframes goodin { 0% { opacity: 0 } 12% { opacity: 1 } 100% { opacity: 0 } }

/* ═══════════ LEVEL 1 · המשחק מתחיל ═══════════
   שכבה 45 — מעל הכרטיס והחיוויים, מתחת לגיים-אובר (70). עולה על העוגן
   אחרי שנייה של שקט, ולא מכסה את החדרים: הם ממשיכים לחיות מאחוריו. */
#level-card {
  position: absolute; inset: 0; z-index: 45; display: none;
  place-items: center; direction: ltr; pointer-events: none;
  background: rgba(6, 7, 10, .62);
}
#level-card.on { display: grid; }
#level-card .lv {
  font-family: "Press Start 2P", monospace; font-size: 5.4cqw; color: #fff;
  text-shadow: 0 0 2.4cqw rgba(232,163,61,.6), .34cqw .34cqw 0 #7a5619;
  opacity: 0; transform: scale(2.2);
}
#level-card.on .lv { animation: lvl-in 2.7s cubic-bezier(.2,1.5,.4,1) forwards; }
@keyframes lvl-in {
  0%   { opacity: 0; transform: scale(2.2) }
  14%  { opacity: 1; transform: scale(1) }
  18%  { transform: scale(1.06) }
  24%, 78% { opacity: 1; transform: scale(1) }
  100% { opacity: 0; transform: scale(.94) }
}
