/* =========================================================
   station2Journey.css
   תחנה 2 - חידה רציפה בת שלושה חלקים:
   א. קולות מן השוק (זיהוי ארבעת המינים מול פריטי הסחה, תקריב)
   ב. סדר האגודה (סידור ארבעת המינים לפי טעם/ריח)
   ג. מנעול הסוחר (פענוח קוד בן 4 ספרות)
   כולם חולקים את תמונת רקע השוק הקיימת, בלי פיזור פריטים קטנים
   על פניה. מחליף את station2Market.css (נשאר בדיסק, לא נטען).
   ========================================================= */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===================== רקע משותף (שלושת החלקים) ===================== */

.journey-market-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../assets/station2/station2-market-background.png");
  background-size: cover;
  background-position: center;
  transition: transform 900ms cubic-bezier(0.3, 0.7, 0.4, 1);
}

/* החשכה עדינה בלבד - שומרת על האווירה, לא מטשטשת את הרקע. */
.journey-dim-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(6, 5, 3, 0.32);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .journey-market-bg {
    transition: none !important;
  }
}

/* ===================== חלק א: קולות מן השוק ===================== */

.voices-test-table {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1420px, 94vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.4vh, 14px);
  padding: clamp(16px, 2.6vh, 28px) clamp(24px, 3vw, 44px);
  border-radius: 14px;
  /* מסגרת עץ וברונזה + רקע קלף/קטיפה כהה - לא כרטיס מודרני */
  background:
    linear-gradient(160deg, rgba(38, 30, 18, 0.96) 0%, rgba(20, 15, 9, 0.97) 100%);
  border: 3px solid rgba(169, 102, 47, 0.55);
  outline: 1px solid rgba(232, 194, 122, 0.25);
  outline-offset: -8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), inset 0 0 40px rgba(0, 0, 0, 0.5);
}

.voices-test-title {
  margin: 0;
  font-family: var(--font-heading);
  color: var(--color-gold);
  font-size: clamp(1.15rem, 1.9vw, 1.6rem);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  letter-spacing: 0.02em;
}

.voices-test-subtitle {
  margin: 0;
  text-align: center;
  font-family: var(--font-heading);
  color: var(--color-parchment);
  font-size: clamp(0.85rem, 1.1vw, 0.98rem);
  line-height: 1.55;
}

.voices-riddle-scroll {
  width: min(680px, 88%);
  text-align: center;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(216, 164, 91, 0.35);
  border-radius: 8px;
  padding: 10px 20px;
}

.voices-riddle-line {
  margin: 0;
  font-family: var(--font-heading);
  color: var(--color-gold);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  line-height: 1.6;
}

.voices-riddle-line + .voices-riddle-line {
  margin-top: 2px;
}

.voices-hint-line {
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px solid rgba(216, 164, 91, 0.3);
  font-family: var(--font-body);
  font-style: italic;
  color: var(--color-bronze-light);
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  line-height: 1.5;
}

.voices-items-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(24px, 4vw, 64px);
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}

.voices-item-btn {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: clamp(200px, 19vw, 300px);
  height: clamp(260px, 40vh, 430px);
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.voices-item-btn img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.5));
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
  transition: filter 0.25s ease;
}

/* צל מגע קטן בלבד מתחת לכל תמונה - לא הילה גדולה, לא מדבקה צפה. */
.voices-item-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2%;
  width: 55%;
  height: 8%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 75%);
  filter: blur(2px);
  z-index: -1;
}

.voices-item-btn:hover img,
.voices-item-btn:focus-visible img {
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 10px rgba(232, 194, 122, 0.35));
}

.voices-item-btn:focus-visible {
  outline: 2px solid rgba(232, 194, 122, 0.85);
  outline-offset: 4px;
  border-radius: 8px;
}

.voices-item-btn[disabled] {
  cursor: default;
  pointer-events: none;
}

/* מסגרת זהב עדינה על הפריט הנכון ברגע הבחירה. */
.voices-item-btn.is-correct img {
  animation: voicesCorrectGlow 650ms ease;
}

@keyframes voicesCorrectGlow {
  0% {
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.5));
  }
  50% {
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 16px rgba(255, 214, 130, 0.95)) drop-shadow(0 0 30px rgba(255, 214, 130, 0.55));
  }
  100% {
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.5));
  }
}

/* רעד קצר ועדין על פריט שגוי. */
.voices-item-btn.is-wrong img {
  animation: voicesWrongShake 420ms ease;
}

@keyframes voicesWrongShake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-5px);
  }
  40% {
    transform: translateX(5px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}

/* כניסה עדינה של שני הפריטים משני צדי שולחן הבדיקה בתחילת סבב. */
.voices-item-btn.enter-from-right {
  animation: voicesEnterFromRight 500ms cubic-bezier(0.2, 0.8, 0.3, 1);
}

.voices-item-btn.enter-from-left {
  animation: voicesEnterFromLeft 500ms cubic-bezier(0.2, 0.8, 0.3, 1);
}

@keyframes voicesEnterFromRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes voicesEnterFromLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .voices-item-btn.is-correct img,
  .voices-item-btn.is-wrong img,
  .voices-item-btn.enter-from-right,
  .voices-item-btn.enter-from-left {
    animation: none !important;
  }
}

/* הילת רמז שלב 3 - עדינה, מאחורי הפריט הנכון, בלי לחשוף שם. */
.voices-item-btn .voices-hint-halo {
  position: absolute;
  inset: -6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 55%, rgba(232, 194, 122, 0.4) 0%, rgba(232, 194, 122, 0.1) 55%, rgba(232, 194, 122, 0) 78%);
  animation: voicesHintHaloPulse 900ms ease-in-out infinite alternate;
}

@keyframes voicesHintHaloPulse {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .voices-item-btn .voices-hint-halo {
    animation: none !important;
  }
}

.voices-plaque-display[hidden] {
  display: none;
}

.voices-plaque-display:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: clamp(200px, 30vh, 320px);
  width: 100%;
}

.voices-plaque-text {
  margin: 0;
  text-align: center;
  font-family: var(--font-heading);
  color: var(--color-gold);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  padding: 20px 40px;
  border: 2px solid rgba(216, 164, 91, 0.6);
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(64, 46, 22, 0.55) 0%, rgba(30, 21, 10, 0.7) 100%);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
  animation: voicesPlaqueIn 450ms cubic-bezier(0.2, 0.8, 0.3, 1);
}

@keyframes voicesPlaqueIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .voices-plaque-text {
    animation: none !important;
  }
}

.voices-feedback-message[hidden] {
  display: none;
}

.voices-feedback-message:not([hidden]) {
  margin: 0;
  max-width: min(520px, 90%);
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  color: var(--color-bronze-light);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(216, 164, 91, 0.4);
  border-radius: 8px;
  padding: 8px 20px;
}

.voices-collection-tray {
  display: flex;
  gap: 10px;
  margin-top: 2px;
}

.voices-collection-slot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(216, 164, 91, 0.4);
  background: radial-gradient(circle at 35% 30%, #3a2e1d 0%, #1b140c 72%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.voices-collection-slot img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.voices-collection-slot.is-filled {
  border-color: rgba(232, 194, 122, 0.75);
  box-shadow: 0 0 8px rgba(232, 194, 122, 0.4);
}

/* ===================== חלק ב: סדר האגודה ===================== */

.order-board {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1420px, 94vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 2.4vh, 24px);
  padding: clamp(20px, 3vh, 32px) clamp(26px, 3.4vw, 48px);
  border-radius: 14px;
  background: linear-gradient(155deg, #5a4527 0%, #3c2c17 55%, #2a1f10 100%);
  border: 3px solid rgba(169, 102, 47, 0.6);
  outline: 1px solid rgba(232, 194, 122, 0.22);
  outline-offset: -8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), inset 0 2px 0 rgba(255, 255, 255, 0.06);
}

.order-board-title {
  margin: 0;
  font-family: var(--font-heading);
  color: var(--color-gold);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.order-board-instruction {
  margin: 0;
  text-align: center;
  font-family: var(--font-heading);
  color: var(--color-parchment);
  font-size: clamp(0.88rem, 1.15vw, 1rem);
  line-height: 1.55;
}

.order-slots-row {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 26px);
  width: 100%;
}

.order-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: clamp(140px, 13.5vw, 190px);
  height: clamp(190px, 24vh, 250px);
  padding: 10px;
  border-radius: 10px;
  border: 2px dashed rgba(216, 164, 91, 0.55);
  background: rgba(0, 0, 0, 0.22);
  transition: border-color 0.3s ease, opacity 0.6s ease, background 0.3s ease;
}

.order-slot.is-drag-target {
  border-color: var(--color-gold);
  background: rgba(232, 194, 122, 0.12);
}

.order-slot.is-filled {
  border-style: solid;
  border-color: rgba(232, 194, 122, 0.35);
}

.order-slot.frames-removed {
  border-color: transparent;
  background: transparent;
}

.order-slot-label {
  margin: 0;
  text-align: center;
  font-family: var(--font-heading);
  color: var(--color-bronze-light);
  font-size: clamp(0.78rem, 0.95vw, 0.88rem);
  line-height: 1.4;
}

.order-slot-number {
  position: absolute;
  top: 6px;
  right: 8px;
  font-family: var(--font-heading);
  color: var(--color-parchment-dim);
  font-size: 0.75rem;
  opacity: 0.75;
}

.order-slot-dropzone {
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.order-slot-dropzone img {
  max-width: 82%;
  max-height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.5));
}

.order-tray {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(16px, 2.4vw, 30px);
  width: 100%;
  min-height: clamp(120px, 16vh, 170px);
}

.order-species-btn {
  position: relative;
  width: clamp(96px, 9vw, 140px);
  height: clamp(120px, 16vh, 170px);
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  cursor: grab;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.order-species-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.5));
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.order-species-btn:focus-visible {
  outline: 2px solid rgba(232, 194, 122, 0.85);
  outline-offset: 4px;
  border-radius: 8px;
}

.order-species-btn.is-selected img {
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 14px rgba(232, 194, 122, 0.8));
}

/* מציין את המקור בזמן גרירה/הנחה - החלק המקורי נשאר "רוח רפאים"
   שקופה עד לסיום הגרירה (בדיוק כמו is-dragging-placeholder בפאזל
   של תחנה 1). */
.order-species-btn.is-dragging-placeholder {
  opacity: 0.28;
}

.order-species-btn.is-locked-in-slot {
  cursor: default;
}

/* עותק הגרירה החי - נוצר/מוסר ב-JS, אותה ארכיטקטורה בדיוק כמו
   .puzzle-drag-clone בפאזל תחנה 1. */
.order-drag-clone {
  position: fixed;
  z-index: 3000;
  pointer-events: none;
  width: clamp(96px, 9vw, 140px);
  height: clamp(120px, 16vh, 170px);
}

.order-drag-clone img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 12px rgba(232, 194, 122, 0.5));
}

.order-slot.lock-flash-anim {
  animation: orderLockFlash 550ms ease;
}

@keyframes orderLockFlash {
  0% {
    box-shadow: 0 0 0 rgba(232, 194, 122, 0);
  }
  40% {
    box-shadow: 0 0 22px 4px rgba(232, 194, 122, 0.75), inset 0 0 14px rgba(232, 194, 122, 0.4);
  }
  100% {
    box-shadow: 0 0 0 rgba(232, 194, 122, 0);
  }
}

.order-slot-shadow {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: 60%;
  height: 10%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 75%);
  filter: blur(2px);
  z-index: -1;
}

@media (prefers-reduced-motion: reduce) {
  .order-slot.lock-flash-anim {
    animation: none !important;
  }
}

.order-feedback-message[hidden] {
  display: none;
}

.order-feedback-message:not([hidden]) {
  margin: 0;
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  color: var(--color-bronze-light);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(216, 164, 91, 0.4);
  border-radius: 8px;
  padding: 8px 20px;
}

/* ===================== חלק ג: מנעול הסוחר ===================== */

.lock-market-bg {
  /* "הגדל את אזור המנעול" - דחיפת מצלמה עדינה אל עבר המנעול
     המצויר בחזית הדוכן (transform-origin ממוקם ב-JS על מיקומו
     המדויק, initLockScreen). */
  transform: scale(1.55);
}

@media (prefers-reduced-motion: reduce) {
  .lock-market-bg {
    transform: none !important;
  }
}

.lock-title {
  position: absolute;
  z-index: 2;
  top: clamp(10px, 2vh, 22px);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--font-heading);
  color: var(--color-gold);
  font-size: clamp(1.15rem, 1.9vw, 1.55rem);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

/* חריטה ליד המנעול - רמז מילולי למבנה הקוד, בלי לחשוף את הקוד עצמו. */
.lock-inscription {
  position: absolute;
  z-index: 2;
  top: clamp(38px, 6.5vh, 58px);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  text-align: center;
  font-family: var(--font-body);
  font-style: italic;
  color: var(--color-parchment-dim);
  font-size: clamp(0.78rem, 0.98vw, 0.9rem);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

/* *** ארבעת המינים בלבד, בסדר שכבר פוענח - בלי שום ספרה/כמות/נקודה
   חשופה. שלב 1 בבקשת המשתמש: המנעול לעולם לא מציג את הקוד. *** */
.lock-species-row {
  position: absolute;
  z-index: 2;
  top: clamp(64px, 10.5vh, 94px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: clamp(14px, 2vw, 24px);
}

.lock-species-card {
  width: clamp(70px, 6.4vw, 96px);
  height: clamp(90px, 12vh, 122px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(44, 36, 22, 0.95) 0%, rgba(20, 15, 9, 0.96) 100%);
  border: 1.5px solid rgba(216, 164, 91, 0.45);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.55);
}

.lock-species-card img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.5));
}

/* *** פאנל מאוחד אחד (תיקון חפיפה/חיתוך): מיכל position:absolute
   *יחיד* עם עוגן אחד בלבד (bottom) - כל התוכן הפנימי (הודעת מצב/
   הצלחה, שורת הגלגלות, הודעת משוב, כפתור הפעולה) זורם בפנימו
   כילדי flex-column רגילים, בלי position/top/bottom/גובה קשיח
   משלהם. הגובה נגזר מהתוכן בפועל (לא קבוע), כך שאין אפשרות
   מבנית לחפיפה בין "לפני הפתיחה" ל"אחרי הפתיחה" - רק אחד מכל
   זוג (הודעת-מצב/כלום, כפתור-פתיחה/כפתור-המשך) גלוי בכל רגע,
   ושניהם תופסים בדיוק את אותה משבצת בטור. גדלים מגיבים (clamp)
   כדי שגם ב-1366x768 הפאנל לעולם לא ייחתך או יחרוג מהמסך. ***/
.lock-interface {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(14px, 4vh, 34px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.6vh, 14px);
  width: min(460px, 90vw);
  max-height: min(340px, 62vh);
  overflow: visible;
  padding: clamp(12px, 2.2vh, 18px) clamp(16px, 3vw, 26px);
  border-radius: 12px;
  background: linear-gradient(160deg, #2c2416 0%, #1a140c 100%);
  border: 2px solid rgba(216, 164, 91, 0.6);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

/* סעיף 1: הודעת מצב - ריקה/מוסתרת לפני הפתיחה, הודעת ההצלחה
   אחריה. אלמנט flow רגיל יחיד - לא absolute, לא פאנל נפרד. */
.lock-status-message[hidden] {
  display: none;
}

.lock-status-message {
  margin: 0;
  text-align: center;
  font-family: var(--font-heading);
  color: var(--color-gold);
  font-size: clamp(0.92rem, 1.3vw, 1.1rem);
  line-height: 1.4;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 14px rgba(232, 194, 122, 0.35);
}

.lock-dials {
  display: flex;
  gap: clamp(8px, 1.4vw, 12px);
  flex-wrap: nowrap;
}

.lock-dial-select {
  width: clamp(42px, 5.4vw, 58px);
  height: clamp(42px, 5.4vw, 58px);
  text-align: center;
  text-align-last: center;
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  font-weight: 700;
  color: #f0dcae;
  background: radial-gradient(circle at 38% 32%, #6a4a24 0%, #402c14 70%);
  border: 2px solid rgba(216, 164, 91, 0.7);
  border-radius: 50%;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.lock-dial-select:focus-visible {
  outline: 2px solid rgba(232, 194, 122, 0.9);
  outline-offset: 3px;
}

.lock-open-btn {
  padding: 10px 30px;
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 1.1vw, 1.02rem);
  font-weight: 700;
  color: var(--color-gold);
  background: rgba(169, 102, 47, 0.4);
  border: 1.5px solid rgba(216, 164, 91, 0.65);
  border-radius: 6px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.lock-open-btn:hover {
  border-color: var(--color-gold);
  box-shadow: 0 0 14px rgba(232, 194, 122, 0.5);
}

.lock-open-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.lock-interface.is-shaking {
  animation: lockShake 420ms ease;
}

@keyframes lockShake {
  0%,
  100% {
    transform: translateX(-50%);
  }
  20% {
    transform: translateX(calc(-50% - 6px));
  }
  40% {
    transform: translateX(calc(-50% + 6px));
  }
  60% {
    transform: translateX(calc(-50% - 4px));
  }
  80% {
    transform: translateX(calc(-50% + 4px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .lock-interface.is-shaking {
    animation: none !important;
  }
}

.lock-interface.is-opening {
  animation: lockOpenGlow 900ms ease;
}

@keyframes lockOpenGlow {
  0% {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 0 rgba(255, 214, 130, 0);
  }
  45% {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 50px 14px rgba(255, 214, 130, 0.85);
  }
  100% {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 0 rgba(255, 214, 130, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lock-interface.is-opening {
    animation: none !important;
  }
}

/* סעיף 3: הודעת משוב/רמז אם קיימת - אלמנט flow רגיל יחיד, משותף
   גם לרמז (showLockHintMessage) וגם למשוב ניסיון שגוי
   (handleOpenLockClick) - ראו station2Journey.js. לא absolute,
   לא ממוקם עצמאית, ולכן לעולם לא יכול לחפוף לשאר הפאנל. */
.lock-feedback-message[hidden] {
  display: none;
}

.lock-feedback-message:not([hidden]) {
  margin: 0;
  max-width: 100%;
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(0.78rem, 1.05vw, 0.96rem);
  line-height: 1.4;
  color: var(--color-bronze-light);
}
