/* =========================================================
   station5.css
   תחנה 5 - "סוד בית השואבה": מסך פתיחה, רקע משותף לשלושת השלבים,
   כותרת/הוראה/הודעת-מצב גנרית לשלב, כפתור "איך משחקים?" (חלונית
   ההסבר עצמה משתמשת במחלקות station4-intro-* הקיימות - רק העטיפה
   החיצונית כאן שונה בשם כדי לא להתנגש בהתנהגות ייעודית לתחנה 4),
   ומסכי הסיום/הפרס (מבוססים על מחלקות תחנה 1/4 קיימות).
   ========================================================= */

/* ===================== מסך פתיחת תחנה 5 ===================== */

.station5-intro-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(ellipse 60% 50% at 50% 35%, rgba(210, 170, 110, 0.1) 0%, rgba(210, 170, 110, 0) 65%),
    url("../assets/station5/station5-water-drawing-night-background.png");
  background-size: cover;
  background-position: center 42%;
  filter: brightness(0.5) saturate(0.95);
}

.station5-intro-dim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, rgba(10, 8, 4, 0.35) 0%, rgba(8, 6, 3, 0.82) 78%);
}

.station5-intro-content {
  position: relative;
  z-index: 1;
}

/* ===================== שכבת רקע משותפת לשלושת השלבים ===================== */

.station5-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../assets/station5/station5-water-drawing-night-background.png");
  background-size: cover;
  background-position: center 42%;
}

.station5-dim-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 34% 50% at 8% 55%, rgba(10, 8, 4, 0.4) 0%, rgba(10, 8, 4, 0) 70%),
    radial-gradient(ellipse 40% 36% at 50% 94%, rgba(10, 8, 4, 0.32) 0%, rgba(10, 8, 4, 0) 72%),
    radial-gradient(ellipse 30% 50% at 92% 55%, rgba(10, 8, 4, 0.4) 0%, rgba(10, 8, 4, 0) 70%);
}

/* ===================== פאנל מידע עליון אחד (כותרת/הוראה/הודעת מצב) ===================== */

.station5-phase-title {
  position: absolute;
  z-index: 2;
  top: clamp(8px, 1.6vh, 18px);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1.7vw, 1.5rem);
  color: var(--color-gold);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 16px rgba(220, 180, 110, 0.25);
}

.station5-phase-instruction {
  position: absolute;
  z-index: 2;
  top: clamp(42px, 6.6vh, 68px);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  width: min(620px, 90%);
  text-align: center;
  font-family: var(--font-body);
  font-size: clamp(0.82rem, 1.05vw, 0.98rem);
  line-height: 1.5;
  color: var(--color-parchment-dim);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  padding: 3px 14px;
  border-radius: 10px;
  background: radial-gradient(ellipse 92% 160% at 50% 50%, rgba(10, 8, 4, 0.4) 0%, rgba(10, 8, 4, 0) 74%);
}

.station5-status-message[hidden] {
  display: none;
}

.station5-status-message {
  position: absolute;
  z-index: 3;
  top: clamp(84px, 12.6vh, 118px);
  left: 50%;
  transform: translateX(-50%);
  width: min(480px, 90%);
  margin: 0;
  text-align: center;
  font-family: var(--font-body);
  font-style: italic;
  color: var(--color-bronze-light);
  font-size: clamp(0.8rem, 1vw, 0.92rem);
  line-height: 1.5;
  background: rgba(10, 8, 4, 0.6);
  border: 1px solid rgba(210, 170, 110, 0.25);
  padding: 8px 16px;
  border-radius: 8px;
}

/* ===================== כפתור "איך משחקים?" ===================== */

.station5-howto-btn {
  position: absolute;
  z-index: 3;
  top: clamp(8px, 1.6vh, 18px);
  right: clamp(10px, 2vw, 26px);
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: clamp(0.74rem, 0.9vw, 0.84rem);
  color: var(--color-bronze-light);
  background: rgba(10, 8, 4, 0.55);
  border: 1px solid rgba(210, 170, 110, 0.4);
  border-radius: 7px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.station5-howto-btn:hover,
.station5-howto-btn:focus-visible {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* ===================== חלונית "איך משחקים?" (עטיפה - התוכן הפנימי
   משתמש ב-station4-intro-backdrop/card/title/text/close-btn הקיימים) ===================== */

.station5-intro-overlay[hidden] {
  display: none;
}

.station5-intro-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================== מסכי סיום/פרס תחנה 5 (מבוססים על מחלקות תחנה 1/4) ===================== */

/* *** תוקן: היה רקע-לילה מטושטש כאן (לא עקבי עם שאר מסכי
   התגמול) - עכשיו אותו רקע כחול-עמוק+זהב המשותף לכל שש מסכי
   התגמול (ראו ההערה המרכזית ב-reward.css). *** */
.station5-finale-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 65% 55% at 50% 28%, rgba(232, 194, 122, 0.16) 0%, rgba(232, 194, 122, 0) 60%),
    radial-gradient(ellipse 130% 100% at 50% 112%, rgba(16, 30, 58, 0.95) 0%, rgba(5, 8, 18, 1) 70%),
    linear-gradient(165deg, #101d38 0%, #070c18 55%, #04060d 100%);
}

.station5-seal-badge[hidden] {
  display: none;
}

.station5-seal-badge {
  width: clamp(120px, 9vw, 160px);
  height: clamp(120px, 9vw, 160px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(220, 180, 110, 0.28) 0%, rgba(220, 180, 110, 0.1) 55%, rgba(220, 180, 110, 0) 78%);
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55));
  animation: station5SealBadgeIn 900ms ease;
}

.station5-seal-badge img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

@keyframes station5SealBadgeIn {
  0% { opacity: 0; transform: scale(0.7); }
  60% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .station5-seal-badge {
    animation: none !important;
  }
}

/* ===================== תווית כיוון קבועה (משותפת למנורות/תריסים) ===================== */

.oil-lamp-label {
  position: absolute;
  top: -1.6em;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: clamp(0.66rem, 0.8vw, 0.76rem);
  color: #f3e6c8;
  background: rgba(10, 8, 4, 0.55);
  border: 1px solid rgba(220, 180, 110, 0.35);
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}
