/* ---------- אנימציית הווקאט החדשה (23.11.2026): מנהרה ובמה על המגרש. הקוד ב-js/walkout.js ---------- */
#opening { --wo-a: #ffb43a; --wo-b: #ffe7a8; --wo-deep: #1b1305; }
#opening[data-theme="future"] { --wo-a: #9a66ff; --wo-b: #7fe6ff; --wo-deep: #140a36; }
#opening[data-theme="hero"] { --wo-a: #ff7a2a; --wo-b: #9cc6f2; --wo-deep: #0e1a2c; }
#opening[data-theme="legend"] { --wo-a: #ffe9b8; --wo-b: #ffc860; --wo-deep: #231b0b; }
#opening[data-theme="totw"] { --wo-a: #f0c060; --wo-b: #ffe9b0; --wo-deep: #14110a; }
#opening[data-theme="potm"] { --wo-a: #f23a3a; --wo-b: #5a96ff; --wo-deep: #0b1438; }

/* הקנבס מצויר ברזולוציה נמוכה ומוגדל במספר שלם, בלי החלקה: כל פיקסל נשאר ריבוע חד (הגודל נקבע ב-js/walkout.js) */
.wo-gl { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }
#op-tunnel .wo-gl { z-index: 1; }
#op-tunnel { overflow: hidden; }
/* התוכן של השלטים במנהרה (עמדה, מדינה, קבוצה): קנבס 192 על 96 שמונח על השלט בפרספקטיבה ב-js/walkout.js */
#op-tunnel .wo-sign {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 2;
  width: 192px;
  height: 96px;
  transform-origin: 0 0;
  pointer-events: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* הבמה מחליפה את הרקע הישן של מסך הקלף. לוחות הנתונים הם מסכי לד בתוך הבמה (WebGL) */
#opening #op-reveal.wo-stage { background: #030304; }
#op-reveal.wo-stage .rv-bg,
#op-reveal.wo-stage .rv-beams,
#op-reveal.wo-stage .rv-floor,
#op-reveal.wo-stage .rv-side { display: none; }

/* הקלף עומד על הבמה העגולה: js/walkout.js מזיז אותו עם המצלמה (translate ו-scale) */
#op-reveal.wo-stage .rv-card {
  left: 0;
  top: 0;
  height: 54vh;
  transform-origin: 50% 100%;
}
/* הזוהר מאחורי הקלף, עמוד האור והטבעת מצוירים בפיקסלים (הבמה ב-js/walkout.js, האפקטים ב-js/walkout-fx.js) */
#op-reveal.wo-stage .rv-card::before,
#op-reveal.wo-stage .rv-ring { display: none; }
#op-reveal.wo-stage .rv-fx { image-rendering: pixelated; image-rendering: crisp-edges; }

/* הסמלים על מסכי הבמה (דירוג, עמדה, דגל, ליגה, קבוצה): קנבס 128 על 200 שמונח על המסך בפרספקטיבה ב-js/walkout.js.
   מעל האפקטים ומתחת לקלף, בפיקסלים חדים */
.wo-panel {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 128px;
  height: 200px;
  transform-origin: 0 0;
  pointer-events: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* השתקפות הקלף ברצפה המבריקה */
#op-reveal.wo-stage .rv-cardwrap {
  transform-origin: 50% 100%;
  -webkit-box-reflect: below -.2vh linear-gradient(transparent 87%, rgba(255, 255, 255, .36));
  animation: wo-card-in 1.5s cubic-bezier(.14, .82, .26, 1) .3s both;
}
#op-reveal.wo-stage .rv-cardwrap.no-in { animation: none; }
#op-reveal.wo-calm .rv-cardwrap { animation: wo-card-quick .3s ease-out both; }
@keyframes wo-card-in {
  0% { opacity: 0; transform: perspective(110vh) translateY(10vh) scale(.6) rotateY(-68deg); filter: brightness(3.4) saturate(.6); }
  42% { opacity: 1; filter: brightness(2.1); }
  100% { opacity: 1; transform: perspective(110vh); filter: none; }
}
@keyframes wo-card-quick { from { opacity: 0; transform: scale(.96); } }

/* לפני החשיפה: רואים רק את הדירוג שעולה. השם, התמונה והפלייסטייל מופיעים יחד */
.wo-hidden .card-photo,
.wo-hidden .card-name,
.wo-hidden .card-style { opacity: 0; }
.wo-unveil .card-photo { animation: wo-photo .55s cubic-bezier(.18, .84, .3, 1) both; }
.wo-unveil .card-name,
.wo-unveil .card-style { animation: wo-name .42s ease-out both; }
.wo-unveil .card-rating { animation: wo-rating .5s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes wo-photo { from { opacity: 0; scale: .93; filter: brightness(2.4); } }
@keyframes wo-name { from { opacity: 0; filter: brightness(2); } }
@keyframes wo-rating { 0% { scale: 1.24; } 100% { scale: 1; } }

#op-reveal.wo-stage .rv-prompt { bottom: 3.2vh; }

@media (prefers-reduced-motion: reduce) {
  .wo-unveil .card-photo, .wo-unveil .card-name, .wo-unveil .card-style, .wo-unveil .card-rating { animation: none; }
}
