/*************************************************************************
 * IPFL 27 - WHITE, GOLD & EMERALD + PRO STADIUM DRAFT EDITION (STYLES.CSS)
 *************************************************************************/

/* פונטים נטענים מ-index.html (ללא @import כדי לא לחסום את הטעינה) */

:root {
  --ipfl-white: #ffffff;
  --ipfl-pearl: #f8f6f0;
  --ipfl-gold: #c8a253;
  --ipfl-gold-light: #e6c875;
  --ipfl-gold-dark: #9a7428;
  --ipfl-emerald: #14532d;
  --ipfl-emerald-mid: #166534;
  --ipfl-ink: #0f172a;
}

* {
  box-sizing: border-box;
  font-family: 'Rubik', 'Heebo', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 50% 0%, #1e293b 0%, #090d16 100%);
  color: var(--ipfl-ink);
  direction: rtl;
  overflow-x: hidden;
}

/* ================= APP CONTAINER (PEARL WHITE & GOLD) ================= */
#app,
.app-container {
  max-width: 440px;
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 12%, rgba(200, 162, 83, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(20, 83, 45, 0.08) 0%, transparent 45%),
    linear-gradient(180deg, #ffffff 0%, #f7f4ec 52%, #f1ede2 100%) !important;
  color: #0f172a !important;
  border-left: 1px solid rgba(200, 162, 83, 0.35) !important;
  border-right: 1px solid rgba(200, 162, 83, 0.35) !important;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.75) !important;
  position: relative;
}

#app::before {
  content: '';
  position: fixed;
  inset: 0;
  max-width: 440px;
  margin: 0 auto;
  background-image:
    radial-gradient(rgba(200, 162, 83, 0.16) 1px, transparent 1px),
    linear-gradient(135deg, transparent 48%, rgba(200, 162, 83, 0.08) 49%, rgba(200, 162, 83, 0.08) 51%, transparent 52%);
  background-size: 16px 16px, 140px 140px;
  pointer-events: none;
  z-index: 0;
}

#mainContent {
  position: relative;
  z-index: 1;
}

/* ================= TOP BAR ================= */
.mf-topbar {
  background: linear-gradient(180deg, #060a12 0%, #111827 100%) !important;
  border-bottom: 2px solid var(--ipfl-gold) !important;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25) !important;
  color: #ffffff;
}

.mf-crest-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(230, 200, 117, 0.3);
  border-radius: 11px;
}

.mf-slash-gauge {
  width: 8px;
  height: 26px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  transform: skewX(-15deg);
  border: 1px solid rgba(52, 211, 153, 0.45);
}

.mf-slash-fill {
  width: 100%;
  background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
  transition: height 0.3s ease;
}

/* ================= SEAMLESS WHITE TILES (MATCHING דראפט.jpg) ================= */
.white-menu-tile,
.ipfl-white-card {
  background: #ffffff !important;
  border: 1.5px solid rgba(200, 162, 83, 0.42) !important;
  border-radius: 22px !important;
  box-shadow:
    0 10px 24px -6px rgba(154, 116, 40, 0.16),
    0 4px 10px -2px rgba(15, 23, 42, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.9) !important;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.white-menu-tile:hover,
.ipfl-white-card:hover {
  border-color: var(--ipfl-gold) !important;
  box-shadow:
    0 14px 28px -6px rgba(154, 116, 40, 0.26),
    0 6px 14px -3px rgba(20, 83, 45, 0.1),
    inset 0 0 0 1px #ffffff !important;
}

.white-menu-tile:active,
.ipfl-white-card:active {
  transform: scale(0.975) !important;
}

.white-geo-lines::before,
.ipfl-white-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(200, 162, 83, 0.22) 1.25px, transparent 1.25px),
    linear-gradient(135deg, rgba(200, 162, 83, 0.12) 0%, transparent 36%, transparent 64%, rgba(20, 83, 45, 0.06) 100%);
  background-size: 10px 10px, 100% 100%;
  opacity: 0.65;
  pointer-events: none;
  z-index: 0;
}

.white-geo-lines::after,
.ipfl-white-card::after {
  content: '';
  position: absolute;
  top: -30%;
  left: -20%;
  width: 65%;
  height: 160%;
  border-right: 1.5px solid rgba(200, 162, 83, 0.25);
  border-left: 1px solid rgba(200, 162, 83, 0.15);
  transform: rotate(28deg);
  pointer-events: none;
  z-index: 0;
}

.ipfl-draft-banner-tile {
  background: #ffffff !important;
  padding: 0 !important;
  border: 2px solid var(--ipfl-gold) !important;
  border-radius: 22px !important;
  box-shadow:
    0 14px 30px -6px rgba(154, 116, 40, 0.28),
    0 4px 12px rgba(15, 23, 42, 0.08) !important;
  overflow: hidden;
}

.ipfl-white-footer {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 7px 10px;
  background: linear-gradient(90deg, #faf7f0 0%, #ffffff 50%, #faf7f0 100%);
  border-top: 1.5px solid rgba(200, 162, 83, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ipfl-title-emerald {
  font-weight: 900;
  font-size: 13.5px;
  color: var(--ipfl-emerald);
  letter-spacing: -0.2px;
}

.ipfl-albums-overview {
  display: grid;
  grid-template-rows: 36px 32px 6px;
  align-content: center;
  gap: 6px;
  padding-inline: clamp(9px, 3vw, 15px);
  text-align: start;
  color: var(--ipfl-emerald);
}

.ipfl-albums-tile::before,
.ipfl-albums-tile::after {
  content: none;
}

.ipfl-albums-heading,
.ipfl-albums-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.ipfl-albums-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
}

.ipfl-albums-cards {
  position: relative;
  flex: 0 0 35px;
  height: 34px;
}

.ipfl-albums-cards::before,
.ipfl-albums-cards > span {
  position: absolute;
  top: 3px;
  width: 21px;
  height: 28px;
  border-radius: 5px;
}

.ipfl-albums-cards::before {
  content: '';
  left: 1px;
  transform: rotate(-17deg);
  background: #fbf1d9;
  border: 1px solid var(--ipfl-gold);
}

.ipfl-albums-cards > span {
  right: 2px;
  transform: rotate(12deg);
  background: linear-gradient(155deg, #287454, #104532);
  border: 1px solid #327555;
  box-shadow: 0 3px 5px #14532d26;
}

.ipfl-albums-cards > span::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid #f1d690;
  border-radius: 2px 2px 5px 5px;
}

.ipfl-albums-stats {
  align-items: baseline;
  color: #4e6056;
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ipfl-albums-stats strong {
  color: var(--ipfl-emerald);
  font-size: clamp(22px, 6.5vw, 30px);
  font-weight: 900;
  line-height: 1;
}

.ipfl-albums-track {
  overflow: hidden;
  border-radius: 999px;
  background: #e8eee9;
}

.ipfl-albums-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(to left, #14532d, #3c916b);
}

.ipfl-albums-tile:focus-visible {
  outline: 2px solid var(--ipfl-emerald);
  outline-offset: 2px;
}

.ipfl-badge-gold {
  background: linear-gradient(135deg, #e6c875 0%, #b88b32 100%);
  color: #111827;
  font-weight: 900;
  border: 1px solid #fff3c4;
  box-shadow: 0 2px 6px rgba(184, 139, 50, 0.35);
}

.ipfl-btn-gold {
  background: linear-gradient(135deg, #dfbe6a 0%, #b3862c 100%);
  color: #0f172a;
  border: 1.5px solid #f7e6b5;
  box-shadow: 0 4px 12px rgba(179, 134, 44, 0.35);
}

.ipfl-btn-emerald {
  background: linear-gradient(135deg, #166534 0%, #0f3d23 100%);
  color: #ffffff;
  border: 1.5px solid rgba(230, 200, 117, 0.6);
  box-shadow: 0 4px 12px rgba(20, 83, 45, 0.3);
}

/* ================= 3D FOIL PACKS ================= */
.foil-pack-3d {
  position: relative;
  isolation: isolate;
  z-index: 5;
  flex-shrink: 0;
  width: 64px;
  height: 90px;
  color: var(--pack-ink);
  filter: drop-shadow(0 3px 3px #0a10154a);
}

.foil-pack-sleeve {
  position: absolute;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--pack-base);
  /* Pinched sides and a tiny tear notch under the upper seal. */
  clip-path: polygon(0 0, 100% 0, 100% 7%, 96% 9%, 99% 11%, 97% 16%, 97% 84%, 100% 94%, 100% 100%, 0 100%, 0 94%, 3% 84%, 3% 16%, 0 7%);
}

.foil-pack-sleeve::before,
.foil-pack-sleeve::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.foil-pack-sleeve::before {
  inset: 4px 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, var(--pack-base), transparent 24% 74%, var(--pack-base)),
    linear-gradient(90deg, #0007 2%, #fff4 5%, transparent 11% 90%, #0005 94%, #fff4 97%),
    linear-gradient(var(--pack-tint), var(--pack-tint)),
    var(--pack-art) center / cover;
  background-blend-mode: normal, normal, multiply, normal;
}

.foil-pack-sleeve::after {
  inset: 4px 0;
  background: linear-gradient(108deg, transparent 38%, #fff2 46%, #fff6 50%, transparent 57%);
  transform: translateX(-125%);
}

@media (prefers-reduced-motion: no-preference) {
  .foil-pack-3d:hover .foil-pack-sleeve::after,
  button:focus-visible .foil-pack-sleeve::after,
  .pack-shake .foil-pack-sleeve::after {
    animation: foil-pack-reflection 2.8s ease-out infinite;
  }
}

@keyframes foil-pack-reflection {
  0%, 24% { transform: translateX(-125%); }
  68%, 100% { transform: translateX(125%); }
}

/* The crimp catches light on a different axis from the printed face. */
.foil-pack-3d::before,
.foil-pack-3d::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  z-index: 1;
  height: 5px;
  background:
    repeating-linear-gradient(90deg, transparent 0 1px, #fff5 1px 1.6px, #0005 1.6px 3px),
    linear-gradient(var(--pack-trim), var(--pack-base));
  border-bottom: 1px solid #0006;
  clip-path: polygon(0 18%, 5% 0, 10% 18%, 15% 0, 20% 18%, 25% 0, 30% 18%, 35% 0, 40% 18%, 45% 0, 50% 18%, 55% 0, 60% 18%, 65% 0, 70% 18%, 75% 0, 80% 18%, 85% 0, 90% 18%, 95% 0, 100% 18%, 100% 100%, 0 100%);
}

.foil-pack-3d::before { top: 0; }
.foil-pack-3d::after { bottom: 0; transform: rotate(180deg); }

.foil-pack-brand {
  position: absolute;
  inset: 7px 6px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 6.8px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.45px;
  white-space: nowrap;
  text-shadow: 0 1px 2px var(--pack-base);
}

.foil-pack-brand b {
  border-left: 1px solid var(--pack-trim);
  padding-left: 3px;
  color: var(--pack-ink);
  font-size: 7px;
  letter-spacing: 0;
}

.foil-pack-caption {
  position: absolute;
  inset: auto 2px 4px;
  padding: 4px 1px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  background: linear-gradient(to top, var(--pack-base) 30%, transparent);
  line-height: 1;
}

.foil-pack-label,
.foil-pack-mark {
  color: var(--pack-ink);
  font-weight: 900;
  white-space: nowrap;
  text-shadow: 0 1px 2px var(--pack-base), 0 0 3px var(--pack-base);
}

.foil-pack-label {
  text-transform: uppercase;
  font-size: 7.5px;
  letter-spacing: 0.7px;
}

.foil-pack-label:only-child {
  font-size: 12px;
  letter-spacing: 1.1px;
  padding-bottom: 1px;
}

.foil-pack-mark {
  font-size: 15px;
  font-style: italic;
  letter-spacing: -0.6px;
  font-variant-numeric: tabular-nums;
}

.pack-theme-bronze,
.pack-theme-silver,
.pack-theme-gold { --pack-art: url("assets/pack-art/striker-relief.webp"); }

.pack-theme-ligat,
.pack-theme-free { --pack-art: url("assets/pack-art/floodlights.webp"); }

.pack-theme-pick,
.pack-theme-pick-83,
.pack-theme-special { --pack-art: url("assets/pack-art/prism-cards.webp"); }

.pack-theme-bronze { --pack-base: #35150d; --pack-tint: #e89c74; --pack-trim: #d08a69; --pack-ink: #ffe8d8; }
.pack-theme-silver { --pack-base: #142232; --pack-tint: #dceaff; --pack-trim: #acbfd2; --pack-ink: #f4faff; }
.pack-theme-gold { --pack-base: #33200a; --pack-tint: #ffcf6f; --pack-trim: #e2b654; --pack-ink: #fff0c6; }
.pack-theme-ligat { --pack-base: #0b2b1c; --pack-tint: #8becae; --pack-trim: #ceb36f; --pack-ink: #fff3c4; }
.pack-theme-free { --pack-base: #082c35; --pack-tint: #84ebef; --pack-trim: #8dd6da; --pack-ink: #e7ffff; }
.pack-theme-pick { --pack-base: #112a53; --pack-tint: #94c4ff; --pack-trim: #83b4f0; --pack-ink: #ecf5ff; }
.pack-theme-pick-83 { --pack-base: #2d144b; --pack-tint: #d8acff; --pack-trim: #b797f4; --pack-ink: #f9ebff; }
.pack-theme-special { --pack-base: #3b1026; --pack-tint: #ff9bbd; --pack-trim: #e5a1bb; --pack-ink: #ffe9f0; }
.pack-theme-legends {
  --pack-art: url("assets/pack-art/icon-trophy.webp");
  --pack-base: #fff0c9;
  --pack-tint: transparent;
  --pack-trim: #bc8841;
  --pack-ink: #40280f;
}

/* ================= FUT CARDS ================= */
.fut-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-gold { background: linear-gradient(135deg, #422006 0%, #ca8a04 45%, #fef08a 70%, #854d0e 100%); border: 2px solid #fde047; color: #fef08a; }
.card-silver { background: linear-gradient(135deg, #1e293b 0%, #64748b 45%, #f1f5f9 70%, #334155 100%); border: 2px solid #cbd5e1; color: #f8fafc; }
.card-bronze { background: linear-gradient(135deg, #451a03 0%, #b45309 45%, #fed7aa 70%, #78350f 100%); border: 2px solid #f97316; color: #ffedd5; }
.card-inform { background: linear-gradient(135deg, #090d16 0%, #1e293b 50%, #eab308 100%); border: 2px solid #facc15; color: #fef08a; }
.card-hero { background: linear-gradient(135deg, #0369a1 0%, #0284c7 50%, #38bdf8 100%); border: 2px solid #7dd3fc; color: #f0f9ff; }
.card-icon { background: linear-gradient(135deg, #78350f 0%, #d97706 50%, #fef3c7 100%); border: 2px solid #fde68a; color: #fffbeb; }
.card-missing { background: linear-gradient(145deg, #f1efe8 0%, #e2dfd5 100%); border: 1.5px dashed #b8a67e; color: #78716c; box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.06); }

/* ================= PRO STADIUM DRAFT & SQUAD OVERHAUL ================= */
.draft-dark-screen {
  background: linear-gradient(180deg, #06100b 0%, #0a1912 40%, #040907 100%) !important;
  color: #ffffff;
}

/* Broadcast Scoreboard Top Header */
.ipfl-draft-hud {
  background:
    radial-gradient(circle at 50% 0%, rgba(200, 162, 83, 0.22) 0%, transparent 70%),
    linear-gradient(180deg, #060d14 0%, #0d1824 100%);
  border-bottom: 2px solid rgba(200, 162, 83, 0.65);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.75);
  position: relative;
  z-index: 25;
}

.ipfl-stat-pod {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(15, 23, 42, 0.75) 100%);
  border: 1px solid rgba(200, 162, 83, 0.4);
  border-radius: 14px;
  padding: 5px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Subbar with DOTD, Formation Badge & Play */
.ipfl-draft-subbar {
  background: linear-gradient(90deg, rgba(6, 15, 11, 0.96) 0%, rgba(20, 83, 45, 0.88) 50%, rgba(6, 15, 11, 0.96) 100%);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
}
/* ================= NIGHT-MATCH STADIUM PITCH ================= */
.draft-pitch-full {
  position: relative;
  background-color: #0f6b33;
  background-image:
    /* אור הזרקורים מלמעלה */
    radial-gradient(ellipse 75% 34% at 50% -4%, rgba(255, 244, 200, 0.38) 0%, rgba(255, 244, 200, 0) 72%),
    /* זוהר זהוב עדין מלמטה */
    radial-gradient(ellipse 70% 22% at 50% 104%, rgba(230, 200, 117, 0.16) 0%, rgba(230, 200, 117, 0) 75%),
    /* עיגול כהה בשוליים (ויניאט) */
    radial-gradient(ellipse 125% 88% at 50% 50%, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, 0.52) 100%),
    /* פסי כיסוח דשא */
    repeating-linear-gradient(180deg, #179043 0px, #179043 46px, #12782f 46px, #12782f 92px);
  box-shadow: inset 0 0 55px rgba(0, 0, 0, 0.5), inset 0 2px 0 rgba(230, 200, 117, 0.45);
}

/* במסך הדראפט/הסגל המגרש גבוה יותר, כדי שהקלפים לא יצטופפו */
.draft-pitch-full.flex-1 {
  min-height: 820px !important;
}

/* קווי המגרש */
.ipfl-pitch-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  --pl-line: rgba(255, 255, 255, 0.5);
  --pl-glow: 0 0 5px rgba(255, 255, 255, 0.18);
}

.ipfl-pitch-lines .pl-outer {
  position: absolute;
  inset: 12px 12px;
  border: 1.5px solid var(--pl-line);
  border-radius: 6px;
  box-shadow: var(--pl-glow);
}

.ipfl-pitch-lines .pl-half {
  position: absolute;
  top: 50%;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--pl-line);
  transform: translateY(-50%);
  box-shadow: var(--pl-glow);
}

.ipfl-pitch-lines .pl-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92px;
  height: 92px;
  border: 1.5px solid var(--pl-line);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: var(--pl-glow);
}

.ipfl-pitch-lines .pl-center-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
}

.ipfl-pitch-lines .pl-logo {
  position: absolute;
  top: calc(50% + 9px);
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: rgba(255, 255, 255, 0.2);
}

/* רחבות */
.ipfl-pitch-lines .pl-box {
  position: absolute;
  left: 21%;
  width: 58%;
  height: 16%;
  border: 1.5px solid var(--pl-line);
  box-shadow: var(--pl-glow);
}
.ipfl-pitch-lines .pl-box-top { top: 12px; border-top: none; }
.ipfl-pitch-lines .pl-box-bot { bottom: 12px; border-bottom: none; }

.ipfl-pitch-lines .pl-six {
  position: absolute;
  left: 50%;
  width: 46%;
  height: 38%;
  transform: translateX(-50%);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}
.ipfl-pitch-lines .pl-box-top .pl-six { top: 0; border-top: none; }
.ipfl-pitch-lines .pl-box-bot .pl-six { bottom: 0; border-bottom: none; }

.ipfl-pitch-lines .pl-spot {
  position: absolute;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
}
.ipfl-pitch-lines .pl-box-top .pl-spot { top: 64%; }
.ipfl-pitch-lines .pl-box-bot .pl-spot { bottom: 64%; }

.ipfl-pitch-lines .pl-d {
  position: absolute;
  left: 50%;
  width: 66px;
  height: 20px;
  transform: translateX(-50%);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}
.ipfl-pitch-lines .pl-box-top .pl-d { top: 100%; margin-top: 1.5px; border-top: none; border-radius: 0 0 66px 66px; }
.ipfl-pitch-lines .pl-box-bot .pl-d { bottom: 100%; margin-bottom: 1.5px; border-bottom: none; border-radius: 66px 66px 0 0; }

/* שערים */
.ipfl-pitch-lines .pl-goal {
  position: absolute;
  left: 39%;
  width: 22%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}
.ipfl-pitch-lines .pl-goal-top { top: 4px; border-bottom: none; border-radius: 3px 3px 0 0; }
.ipfl-pitch-lines .pl-goal-bot { bottom: 4px; border-top: none; border-radius: 0 0 3px 3px; }

/* קשתות פינה */
.ipfl-pitch-lines .pl-corner {
  position: absolute;
  width: 11px;
  height: 11px;
  overflow: hidden;
}
.ipfl-pitch-lines .pl-corner::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--pl-line);
  border-radius: 50%;
}
.ipfl-pitch-lines .pl-corner-tl { top: 12px; left: 12px; }
.ipfl-pitch-lines .pl-corner-tl::after { top: -11px; left: -11px; }
.ipfl-pitch-lines .pl-corner-tr { top: 12px; right: 12px; }
.ipfl-pitch-lines .pl-corner-tr::after { top: -11px; right: -11px; }
.ipfl-pitch-lines .pl-corner-bl { bottom: 12px; left: 12px; }
.ipfl-pitch-lines .pl-corner-bl::after { bottom: -11px; left: -11px; }
.ipfl-pitch-lines .pl-corner-br { bottom: 12px; right: 12px; }
.ipfl-pitch-lines .pl-corner-br::after { bottom: -11px; right: -11px; }

/* עמדה ריקה - קלף "רוח רפאים" בגודל קלף אמיתי */
.ipfl-empty-slot {
  width: 95px;
  height: 131.8px;
  border-radius: 10px 10px 20px 20px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.06) 55%, rgba(0, 0, 0, 0.14) 100%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  position: relative;
  display: block;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

/* קו זהב עדין פנימי */
.ipfl-empty-slot::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 7px 7px 16px 16px;
  border: 1px solid rgba(230, 200, 117, 0.38);
  pointer-events: none;
}

/* צללית שחקן שקופה */
.ipfl-empty-slot::after {
  content: '';
  position: absolute;
  top: 17%;
  left: 50%;
  width: 46%;
  height: 46%;
  transform: translateX(-50%);
  opacity: 0.22;
  background: center / contain no-repeat url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v2.4h19.2v-2.4c0-3.2-6.4-4.8-9.6-4.8z'/%3E%3C/svg%3E");
  pointer-events: none;
}

.ipfl-empty-slot:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: #e6c875;
  background: linear-gradient(165deg, rgba(230, 200, 117, 0.3) 0%, rgba(255, 255, 255, 0.08) 55%, rgba(0, 0, 0, 0.14) 100%);
}

@keyframes ipflSlotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(230, 200, 117, 0.55), 0 2px 8px rgba(0, 0, 0, 0.35); }
  70%  { box-shadow: 0 0 0 9px rgba(230, 200, 117, 0), 0 2px 8px rgba(0, 0, 0, 0.35); }
  100% { box-shadow: 0 0 0 0 rgba(230, 200, 117, 0), 0 2px 8px rgba(0, 0, 0, 0.35); }
}

.ipfl-empty-slot-plus {
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f3d98a 0%, #c8a253 100%);
  color: #1a1406;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 1px;
  z-index: 2;
  animation: ipflSlotPulse 2.4s ease-out infinite;
}

/* תגית עמדה וכימיה מתחת לשחקן */
.ipfl-pos-plate {
  margin-top: 3px;
  min-width: 52px;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(15, 23, 36, 0.95) 0%, rgba(6, 11, 18, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  line-height: 1;
}

.ipfl-pos-plate .inline-flex {
  margin-left: 0 !important;
}

.ipfl-pos-plate .chem-diamond {
  width: 7px;
  height: 7px;
  margin: 0 1px;
}

.ipfl-pos-plate-fullchem {
  border-color: #22d3ee;
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.4), 0 3px 8px rgba(0, 0, 0, 0.65);
}

.ipfl-pos-plate-wrong {
  border-color: #f43f5e;
}

.ipfl-card-fullchem-aura {
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.35));
}





/* Chem Diamonds */
.chem-diamond {
  display: inline-block;
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  margin: 0 1px;
}

.chem-diamond-on {
  background-color: #22d3ee;
  box-shadow: 0 0 7px #22d3ee;
}

.chem-diamond-off {
  background-color: rgba(255, 255, 255, 0.22);
}

/* Pitch Floating Buttons */
.mf-dotd-btn {
  background: linear-gradient(135deg, #111827 0%, #1e293b 100%);
  border: 1.5px solid #e6c875;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 10px rgba(230, 200, 117, 0.25);
}

.mf-play-btn {
  background: linear-gradient(135deg, #dfbe6a 0%, #b3862c 100%);
  color: #0f172a !important;
  border: 1.5px solid #fff3c4;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(200, 162, 83, 0.5);
}

.mf-bench-btn {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1.5px solid #e6c875;
  border-left: none;
  border-radius: 0 22px 22px 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.65);
}

.mf-chem-helper-btn {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1.5px solid #22d3ee;
  border-right: none;
  border-radius: 22px 0 0 22px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.65);
}

.mf-save-btn {
  background: linear-gradient(135deg, #dfbe6a 0%, #9a7428 100%);
  border: 1.5px solid #fff3c4;
  border-right: none;
  border-radius: 22px 0 0 22px;
  box-shadow: 0 6px 18px rgba(154, 116, 40, 0.55);
}

/* ================= WHITE & GOLD MODALS ================= */
#modalBox,
#firstTeamModal > div {
  background: linear-gradient(180deg, #ffffff 0%, #f9f6ef 100%) !important;
  color: #0f172a !important;
  border: 2px solid var(--ipfl-gold) !important;
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.55) !important;
}

/* חלון הקלף המוגדל: בלי רקע לבן/מסגרת זהב מאחורי הקלף (הכלל למעלה עם !important דרס את השקיפות) */
#modalBox.ipfl-modal-transparent {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

@keyframes seqFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.seq-fade-item {
  animation: seqFadeIn 0.32s ease both;
}

/* גודל קלף כמו במדפוט: ~70x98 במגרש ובספסל (הקלף נשאר 88x122 ומוקטן ביחס, כך שכל הטקסטים בתוכו מתכווצים יחד איתו) */
.draft-pitch-full .ipfl-layered-card,
#draftBenchScrollContainer .ipfl-layered-card,
.draft-pitch-full .fut-card,
#draftBenchScrollContainer .fut-card {
  zoom: 1.18;
}

/* משבצות ריקות באותו גודל כמו קלף שנבחר, כדי שהמגרש לא יקפוץ אחרי בחירה */
.draft-pitch-full .ipfl-empty-slot,
#draftBenchScrollContainer .ipfl-empty-slot {
  zoom: 1.09;
}

/* תגית עמדה + כימיה חופפת לשפת הקלף התחתונה (בסגנון FC Mobile) */
.draft-pitch-full .ipfl-pos-plate,
#draftBenchScrollContainer .ipfl-pos-plate {
  position: relative;
  z-index: 6;
  margin-top: -9px !important;
  min-width: 44px;
  padding: 2px 6px;
  gap: 3px;
  background: linear-gradient(180deg, #0b1320 0%, #05080f 100%);
  border: 1px solid rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.25), 0 2px 6px rgba(0, 0, 0, 0.7);
}
.draft-pitch-full .ipfl-pos-plate span.text-amber-300,
#draftBenchScrollContainer .ipfl-pos-plate span.text-amber-300 {
  color: #ffffff !important;
  font-size: 8.5px !important;
  letter-spacing: 0.02em;
}
.draft-pitch-full .ipfl-pos-plate .chem-diamond,
#draftBenchScrollContainer .ipfl-pos-plate .chem-diamond {
  width: 5.5px;
  height: 5.5px;
  margin: 0 1px;
}

/* ספסל שנפתח בתוך המגרש (מעל השוער וההגנה) */
.ipfl-bench-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 10px 10px 12px;
  background: linear-gradient(180deg, rgba(4, 12, 8, 0.82) 0%, rgba(4, 12, 8, 0.94) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 2px solid rgba(230, 200, 117, 0.75);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.6);
}

/* בלי אנימציות/הקטנה על קלפים במגרש ובספסל בזמן לחיצה ובחירה */
.draft-pitch-full .ipfl-layered-card,
#draftBenchScrollContainer .ipfl-layered-card {
  transition: none !important;
}
.draft-pitch-full .ipfl-layered-card:active,
#draftBenchScrollContainer .ipfl-layered-card:active {
  transform: none !important;
}

/* אנימציית כניסה בעת מעבר בין מסכים / חזרה לתפריט */
@keyframes ipflTabEnter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ipfl-tab-enter {
  animation: ipflTabEnter 0.28s ease-out both;
}
@keyframes ipflImgFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.ipfl-img-loading { opacity: 0; }
.ipfl-img-fadein  { animation: ipflImgFade 0.35s ease-out both; }


/* ================= SHOP 2.0 (shop.js) ================= */
.shop-balance {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 11px; border-radius: 999px;
  background: linear-gradient(135deg, #166534 0%, #0f3d23 100%);
  border: 1.5px solid rgba(230, 200, 117, 0.7);
  color: #fde68a; font-weight: 900; font-size: 13px;
  box-shadow: 0 3px 10px rgba(20, 83, 45, 0.3);
}

.shop-pill-row {
  display: flex; gap: 6px; overflow-x: auto; padding: 2px 1px 4px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.shop-pill-row::-webkit-scrollbar { display: none; }
.shop-pill {
  position: relative; flex-shrink: 0;
  padding: 8px 13px; border-radius: 999px;
  font-size: 12px; font-weight: 900; white-space: nowrap;
  background: #fff; color: #78716c;
  border: 1px solid rgba(184, 139, 50, 0.45);
  transition: all 0.15s ease;
}
.shop-pill.active {
  background: linear-gradient(135deg, #166534 0%, #0f3d23 100%);
  color: #fff; border-color: rgba(230, 200, 117, 0.8);
  box-shadow: 0 3px 10px rgba(20, 83, 45, 0.3);
}
.shop-pill-badge {
  display: inline-block; margin-inline-start: 5px;
  min-width: 17px; padding: 1px 5px; border-radius: 999px;
  background: #e11d48; color: #fff; font-size: 10px; line-height: 14px; text-align: center;
}

.shop-chip {
  display: inline-block; padding: 1px 7px; border-radius: 999px;
  font-size: 9.5px; font-weight: 800; color: #44403c;
  background: #fafaf9; border: 1px solid #d6d3d1;
}
.shop-chip-star { background: #fffbeb; border-color: #fcd34d; color: #92400e; }

.shop-btn-poor { opacity: 0.55; filter: grayscale(0.5); }
.shop-fav-club { border-color: #c8a253 !important; box-shadow: 0 0 0 2px rgba(200, 162, 83, 0.35); }

.odds-track { height: 7px; border-radius: 999px; background: #e7e5e4; overflow: hidden; }
.odds-fill { height: 100%; border-radius: 999px; }

.deal-ribbon {
  position: absolute; top: 9px; left: -30px; z-index: 20;
  transform: rotate(-35deg); width: 110px; text-align: center;
  background: linear-gradient(135deg, #e11d48 0%, #9f1239 100%);
  color: #fff; font-weight: 900; font-size: 11px; padding: 2px 0;
  box-shadow: 0 2px 6px rgba(159, 18, 57, 0.4);
}

/* ---- אנימציית פתיחת חבילה ---- */
.shop-reveal-stage {
  width: 100%; min-height: 440px; padding: 14px; border-radius: 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: 8px; text-align: center; color: #fff; user-select: none; cursor: pointer;
  background: radial-gradient(circle at 50% 30%, #14532d 0%, #052e16 62%, #020a06 100%);
  border: 2px solid rgba(230, 200, 117, 0.65);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  position: relative; overflow: hidden;
}
.shop-reveal-summary { min-height: 0; cursor: default; max-height: 92vh; overflow-y: auto; justify-content: flex-start; }
.stage-special { animation: stageFlash 0.9s ease both; }
@keyframes stageFlash {
  0% { background: #fff; transform: scale(1.03); }
  35% { background: radial-gradient(circle at 50% 40%, #fde68a 0%, #b45309 70%); }
  100% { transform: scale(1); }
}

.pack-shake { animation: packShake 0.7s ease-in-out infinite; }
@keyframes packShake {
  0%, 100% { rotate: 0deg; }
  20% { rotate: -4deg; }
  40% { rotate: 4deg; }
  60% { rotate: -3deg; }
  80% { rotate: 3deg; }
}

.reveal-hint { font-size: 12px; font-weight: 900; color: #fde68a; animation: hintPulse 1.4s ease-in-out infinite; }
@keyframes hintPulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
.reveal-skip {
  font-size: 11px; font-weight: 800; color: rgba(255, 255, 255, 0.7);
  padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.25);
}

.card-back-ipfl {
  width: 144px; height: 194px; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.07) 0 8px, transparent 8px 16px),
    linear-gradient(145deg, #14532d 0%, #166534 50%, #052e16 100%);
  border: 3px solid #e6c875;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.4);
  color: #e6c875; font-weight: 900; letter-spacing: 3px;
  animation: backFloat 2s ease-in-out infinite;
}
.card-back-ipfl span { font-size: 26px; }
.card-back-ipfl small { font-size: 16px; opacity: 0.85; }
@keyframes backFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.reveal-flip { animation: revealFlip 0.55s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes revealFlip {
  0% { transform: rotateY(90deg) scale(0.75); opacity: 0; }
  100% { transform: rotateY(0) scale(1); opacity: 1; }
}

.reveal-glow-bronze { filter: drop-shadow(0 0 10px rgba(217, 119, 6, 0.8)); }
.reveal-glow-silver { filter: drop-shadow(0 0 12px rgba(226, 232, 240, 0.85)); }
.reveal-glow-gold   { filter: drop-shadow(0 0 16px rgba(250, 204, 21, 0.9)); }
.reveal-glow-inform { filter: drop-shadow(0 0 20px rgba(250, 204, 21, 1)); }
.reveal-glow-hero   { filter: drop-shadow(0 0 14px rgb(163 69 255 / .75)); }
.reveal-glow-icon   { filter: drop-shadow(0 0 14px rgb(255 255 255 / .72)); }

.walkout-banner {
  padding: 3px 14px; border-radius: 999px; font-weight: 900; font-size: 13px;
  color: #111827; background: linear-gradient(135deg, #fde68a 0%, #f59e0b 100%);
  animation: bannerPop 0.6s ease both, hintPulse 1.2s ease-in-out 0.6s infinite;
}
@keyframes bannerPop { 0% { transform: scale(0.4); opacity: 0; } 70% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }

/* ---- ווקאאוט: מדינה -> עמדה -> קבוצה -> שחקן ---- */
.reveal-skip { position: relative; z-index: 30; }
.walk-item { display: flex; flex-direction: column; align-items: center; gap: 14px; animation: walkPop 0.6s cubic-bezier(.2,.9,.3,1.3) both; }
.walk-flag { font-size: 110px; line-height: 1; filter: drop-shadow(0 6px 18px rgba(0,0,0,0.5)); }
.walk-pos { font-size: 84px; font-weight: 900; line-height: 1; color: #fde68a; letter-spacing: 4px; text-shadow: 0 0 24px rgba(250, 204, 21, 0.7); }
.walk-label { font-size: 20px; font-weight: 900; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
@keyframes walkPop { 0% { transform: scale(0.3) translateY(30px); opacity: 0; } 100% { transform: scale(1) translateY(0); opacity: 1; } }
.stage-walk { background: radial-gradient(circle at 50% 40%, #1e3a8a 0%, #0b1226 70%, #020617 100%); }
.walk-dots { display: flex; gap: 8px; }
.walk-dots span { width: 9px; height: 9px; border-radius: 999px; background: rgba(255,255,255,0.25); transition: all 0.2s; }
.walk-dots span.on { background: #fde68a; box-shadow: 0 0 8px rgba(253, 230, 138, 0.9); }

.card-nation-flag { transform: scale(.85); }

.walk-flag-img {
  width: 210px; max-width: 80%; height: auto; max-height: 150px; object-fit: cover;
  border-radius: 8px; border: 3px solid rgba(255,255,255,0.9);
  box-shadow: 0 10px 30px rgba(0,0,0,0.55);
}


/* תיקון: הכותרת בתחתית תיבות הדף הראשי לא נדחפת החוצה ע"י הקלפים */
.ipfl-white-card > .ipfl-white-footer { flex-shrink: 0; }
.ipfl-white-card > .flex-1 { min-height: 0; }


/* ===== אנימציית כניסה/יציאה לקלף מוגדל ===== */
@keyframes ipflCardIn {
  0%   { opacity: 0; transform: perspective(900px) translateY(46px) scale(.55) rotateX(14deg); }
  60%  { opacity: 1; transform: perspective(900px) translateY(-6px) scale(1.04) rotateX(0deg); }
  100% { opacity: 1; transform: perspective(900px) translateY(0) scale(1) rotateX(0deg); }
}
@keyframes ipflCardOut {
  0%   { opacity: 1; transform: perspective(900px) translateY(0) scale(1); }
  100% { opacity: 0; transform: perspective(900px) translateY(40px) scale(.6) rotateX(10deg); }
}
@keyframes ipflOverlayIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes ipflOverlayOut { from { opacity: 1; } to { opacity: 0; } }
.ipfl-card-zoom { animation: ipflCardIn .38s cubic-bezier(.2,.85,.3,1) backwards; transform-origin: center; }
.ipfl-card-zoom.is-closing { animation: ipflCardOut .2s ease-in forwards; pointer-events: none; }
#modalOverlay.ipfl-ov-in  { animation: ipflOverlayIn .22s ease-out backwards; }
#modalOverlay.ipfl-ov-out { animation: ipflOverlayOut .2s ease-in forwards; }
@media (prefers-reduced-motion: reduce) {
  .ipfl-card-zoom, .ipfl-card-zoom.is-closing, #modalOverlay.ipfl-ov-in, #modalOverlay.ipfl-ov-out { animation-duration: .01s; }
}

/* ===== כפתור חזרה צף (קלפים חדשים / מועדון) ===== */
.ipfl-float-back {
  position: fixed; bottom: 18px; z-index: 35;
  left: max(14px, calc(50% - 220px + 14px));
  width: 48px; height: 48px; border-radius: 9999px;
  background: #0f172a; color: #fde047; border: 2px solid rgba(250,204,21,.85);
  box-shadow: 0 8px 20px rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(14px) scale(.8); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.ipfl-float-back.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.ipfl-float-back.is-visible:active { transform: scale(.9); }


/* לחיצה ארוכה על קלף בדראפט: בלי בחירת טקסט / תפריט שמירת תמונה */
[data-lp-pid] {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
[data-lp-pid] img {
  -webkit-user-drag: none;
  pointer-events: none;
}


/* ===== קלפים חדשים: תפריטי סידור / סינון ===== */
.latest-filter-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 4px;
  padding: 7px 8px; border-radius: 12px; font-size: 11px; font-weight: 800; color: #0f172a;
  background: #f8fafc; border: 1.5px solid #cbd5e1; min-width: 0;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.latest-filter-btn:active { transform: scale(.96); }
.latest-filter-btn.is-open { background: #ecfdf5; border-color: #059669; color: #064e3b; }
.latest-filter-chevron { font-size: 10px; opacity: .6; transition: transform .18s ease; }
.latest-filter-btn.is-open .latest-filter-chevron { transform: rotate(180deg); }
.latest-menu-panel {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 9px; border-radius: 14px;
  background: #ffffff; border: 1.5px solid #d4af37; box-shadow: 0 10px 24px rgba(15, 23, 42, .16);
  max-height: 230px; overflow-y: auto;
  animation: latestMenuIn .18s ease-out;
}
.latest-opt {
  padding: 6px 11px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #0f172a;
  background: #f1f5f9; border: 1.5px solid #e2e8f0;
  transition: background .12s ease, transform .1s ease;
}
.latest-opt:active { transform: scale(.94); }
.latest-opt.is-active { background: #065f46; color: #fff; border-color: #065f46; }
@keyframes latestMenuIn {
  from { opacity: 0; transform: translateY(-6px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}


/* Pack walkout — the tunnel opens onto the pitch. */
#modalBox:has(> .wo-stage) { max-width: 510px; }
.wo-stage {
  --light: 255 219 145;
  --accent: 229 159 55;
  --ink: #1b1008;
  --gate-art: url('assets/pack-art/engraved-foil.webp');
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: 100%;
  height: min(650px, 92vh); height: min(650px, calc(100dvh - 24px));
  color: #fff; background: var(--ink); border: 1px solid rgb(var(--light) / .48);
  border-radius: 22px; box-shadow: 0 24px 90px #000b, 0 0 36px rgb(var(--accent) / .15);
  user-select: none;
}
.wo-stage[data-theme="icon"] {
  --light: 255 255 255; --accent: 211 216 225; --ink: #101115;
  --gate-art: url('assets/pack-art/icon-laurel.webp');
}
.wo-stage[data-theme="hero"] {
  --light: 228 197 255; --accent: 163 69 255; --ink: #17092a;
  --gate-art: url('assets/pack-art/prism-cards.webp');
}
.wo-stage [hidden] { display: none !important; }
.wo-set, .wo-stadium, .wo-haze, .wo-beams, .wo-foil { position: absolute; inset: 0; pointer-events: none; }
.wo-set { z-index: -1; overflow: hidden; }
.wo-stadium {
  background: linear-gradient(to top, #000b, transparent 35%, transparent 75%, #0009),
              rgb(var(--accent)) url('assets/pack-art/floodlights.webp') center 54% / cover;
  background-blend-mode: normal, multiply;
  transform: scale(1.17); opacity: .55;
  transition: transform 1.5s cubic-bezier(.16, 1, .3, 1), opacity .8s;
}
.wo-haze {
  background: radial-gradient(ellipse at 50% 59%, rgb(var(--light) / .32), transparent 48%),
              linear-gradient(0deg, var(--ink) 2%, transparent 33%, transparent 80%, var(--ink));
}
.wo-beams::before, .wo-beams::after {
  content: ''; position: absolute; top: -6%; left: 8%; width: 29%; height: 96%;
  transform-origin: 50% 0; transform: rotate(-14deg);
  background: conic-gradient(from 170deg at 50% 0, transparent 0deg, rgb(var(--light) / .16) 4deg,
              rgb(var(--accent) / .31) 9deg, rgb(var(--light) / .14) 15deg, transparent 20deg);
  mask-image: linear-gradient(#000, #0009 58%, transparent);
}
.wo-beams::after { left: auto; right: 8%; transform: rotate(14deg); }
.wo-gate {
  position: absolute; top: 0; bottom: 0; width: 50%; background-color: var(--ink);
  overflow: hidden; transition: transform .84s cubic-bezier(.65, 0, .18, 1);
}
.wo-gate-left { left: 0; border-right: 1px solid rgb(var(--light) / .8); }
.wo-gate-right { right: 0; border-left: 1px solid rgb(var(--light) / .8); }
.wo-gate::before, .wo-gate::after { content: ''; position: absolute; inset: 0; }
.wo-gate::before {
  background: var(--gate-art) left center / 200% 100% no-repeat;
  filter: grayscale(1); mix-blend-mode: luminosity; opacity: .43;
}
.wo-gate-right::before { background-position: right center; }
.wo-gate::after {
  background: linear-gradient(0deg, var(--ink), transparent 27%, transparent 75%, var(--ink)),
              linear-gradient(90deg, transparent 50%, rgb(var(--accent) / .14) 97%, rgb(var(--light) / .68));
}
.wo-gate-right::after { transform: scaleX(-1); }
.wo-stage[data-phase="player"] .wo-gate-left { transform: translateX(-104%); }
.wo-stage[data-phase="player"] .wo-gate-right { transform: translateX(104%); }
.wo-stage[data-phase="player"] .wo-stadium { transform: scale(1); opacity: 1; }
.wo-stage[data-phase="player"] .wo-beams::before { animation: woBeamLeft 1.45s ease-out both; }
.wo-stage[data-phase="player"] .wo-beams::after { animation: woBeamRight 1.45s ease-out both; }
@keyframes woBeamLeft { from { transform: rotate(-42deg); opacity: .2; } to { transform: rotate(-14deg); opacity: .8; } }
@keyframes woBeamRight { from { transform: rotate(42deg); opacity: .2; } to { transform: rotate(14deg); opacity: .8; } }

.wo-header, .wo-footer { position: relative; display: flex; align-items: center; padding: 12px 20px; }
.wo-header {
  justify-content: space-between; gap: 12px; min-height: 60px; align-self: start;
  color: rgb(var(--light)); font-size: 14px; font-weight: 700;
  background: linear-gradient(#08080bd9, transparent);
}
.wo-header > span { display: flex; align-items: center; gap: 9px; }
.wo-header > span::before { content: ''; width: 3px; height: 15px; background: rgb(var(--light)); }
.wo-skip, .wo-continue {
  cursor: pointer; min-height: 38px; border-radius: 999px; font: inherit; font-weight: 750;
}
.wo-skip { padding: 0 14px; border: 1px solid #ffffff45; background: #08080c99; color: #fff; }
.wo-skip span { display: inline-block; transform: rotate(180deg); margin-inline-start: 3px; color: rgb(var(--light)); }
.wo-skip:focus-visible, .wo-continue:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.wo-main { position: relative; display: grid; place-items: center; min-height: 0; }
.wo-clue { display: grid; justify-items: center; gap: 22px; animation: woClue .93s both; }
@keyframes woClue {
  0% { opacity: 0; transform: translateY(16px) scale(.9); }
  23%, 80% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-9px) scale(1.035); }
}
.wo-token {
  position: relative; display: grid; place-items: center;
  width: clamp(100px, 28vh, 142px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgb(var(--light) / .7);
  background: radial-gradient(circle at 35% 16%, rgb(var(--accent) / .42), transparent 68%), var(--ink);
  box-shadow: inset 0 0 0 5px #0002, 0 0 46px rgb(var(--accent) / .25);
}
.wo-token::before, .wo-token::after {
  content: ''; position: absolute; inset: -7px; border-radius: inherit;
  border: 2px solid transparent; border-top-color: rgb(var(--light)); border-bottom-color: rgb(var(--light));
  animation: woOrbit .93s ease-out both;
}
.wo-token::after { inset: -13px; border: 1px dashed rgb(var(--light) / .45); }
@keyframes woOrbit { from { transform: rotate(-38deg) scale(1.08); } to { transform: rotate(26deg) scale(1); } }
.wo-token .walk-flag-img { width: 65%; height: auto; max-height: 55%; border: 1px solid #fff8; border-radius: 3px; object-fit: contain; }
.wo-token .walk-flag { font-size: 44px; }
.wo-position { font-size: clamp(36px, 8vh, 62px); font-weight: 900; line-height: 1; color: rgb(var(--light)); }
.wo-crest { width: 60%; height: 60%; }
.wo-label { color: #fff; font-size: 21px; font-weight: 800; text-shadow: 0 2px 9px #000; }

.wo-result { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(3px, 1vh, 10px); }
.wo-title {
  display: flex; gap: 12px; align-items: center; padding-left: .12em; color: rgb(var(--light));
  font: italic 900 clamp(32px, 6.5vh, 50px)/1 Arial, sans-serif; letter-spacing: .12em;
  text-shadow: 0 2px 18px var(--ink); animation: woTitleIn .55s .18s both;
}
.wo-title::before, .wo-title::after {
  content: ''; width: 28px; height: 2px; background: linear-gradient(90deg, transparent, rgb(var(--light)));
}
.wo-title::after { transform: scaleX(-1); }
@keyframes woTitleIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.wo-arrival { position: relative; animation: woArrival .95s cubic-bezier(.16, .85, .22, 1) both; }
.wo-arrival::before {
  content: ''; position: absolute; left: -15%; right: -15%; bottom: 0; height: 9%; border-radius: 50%;
  border: 1px solid rgb(var(--light) / .5);
  background: radial-gradient(ellipse, rgb(var(--accent) / .36), transparent 66%, rgb(var(--light) / .22));
  box-shadow: 0 2px 4px rgb(var(--light) / .25), 0 4px 22px rgb(var(--accent) / .35);
}
@keyframes woArrival {
  0% { opacity: 0; transform: perspective(800px) translateY(17%) rotateY(-56deg) scale(.56); }
  18% { opacity: 0; }
  62% { opacity: 1; transform: perspective(800px) translateY(-2%) rotateY(4deg) scale(1.035); }
  100% { opacity: 1; transform: perspective(800px) translateY(0) rotateY(0) scale(1); }
}
.wo-card {
  transform: perspective(760px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .16s ease-out; filter: drop-shadow(0 12px 12px #0009) drop-shadow(0 0 9px rgb(var(--light) / .4));
}
.wo-stage .wo-player-card { width: clamp(110px, min(56vw, 33vh), 225px); height: auto; aspect-ratio: 146 / 202; }
.wo-caption { display: grid; justify-items: center; gap: 3px; animation: woCaptionIn .48s .55s both; }
.wo-caption h2 {
  margin: 0; font-size: clamp(20px, 4vh, 30px); line-height: 1.15; font-weight: 900;
  text-shadow: 0 2px 14px #000, 0 1px 3px #000;
}
.wo-caption > span { background: var(--ink); color: rgb(var(--light)); font-size: 12px; border: 1px solid rgb(var(--light) / .38); }
@keyframes woCaptionIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wo-footer { justify-content: center; min-height: 70px; background: linear-gradient(transparent, #08080bd9); }
.wo-track { display: flex; align-items: center; gap: 5px; }
.wo-track i { width: 27px; height: 3px; border-radius: 4px; background: rgb(var(--light) / .26); }
.wo-track i.lit { background: rgb(var(--light)); box-shadow: 0 0 7px rgb(var(--accent)); }
.wo-continue {
  min-height: 42px; padding: 0 26px; color: var(--ink); background: rgb(var(--light));
  border: 1px solid rgb(var(--light)); font-size: 14px; animation: woCaptionIn .28s ease-out both;
}
.wo-stage:has(.wo-continue:not([hidden])) { cursor: pointer; }

.wo-foil i {
  position: absolute; left: var(--side); top: 76%; width: 4px; height: 10px; opacity: 0;
  background: linear-gradient(135deg, #fff, rgb(var(--accent))); border-radius: 1px;
}
.wo-stage[data-theme="icon"] .wo-foil i { width: 10px; height: 11px; clip-path: polygon(50% 0, 60% 39%, 100% 50%, 60% 61%, 50% 100%, 40% 61%, 0 50%, 40% 39%); }
.wo-stage[data-theme="hero"] .wo-foil i { clip-path: polygon(44% 0, 100% 0, 52% 100%, 0 100%); }
.wo-stage[data-phase="player"] .wo-foil i { animation: woJet 1.4s ease-out calc(.28s + var(--lag)) both; }
@keyframes woJet {
  0% { opacity: 0; transform: scale(.25); }
  15% { opacity: 1; }
  62% { opacity: .95; transform: translate(var(--dx), calc(-1 * var(--rise))) rotate(var(--spin)); }
  100% { opacity: 0; transform: translate(calc(var(--dx) * 1.35), calc(68px - var(--rise))) rotate(calc(var(--spin) * 1.7)) scale(.65); }
}
@media (max-height: 500px) {
  .wo-header, .wo-footer { min-height: 44px; padding-block: 4px; }
  .wo-result { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; gap: 6px 14px; padding: 0 10px; }
  .wo-arrival { grid-row: 1 / 3; grid-column: 2; }
  .wo-title { align-self: end; justify-content: center; font-size: clamp(18px, 5vw, 28px); }
  .wo-title::before, .wo-title::after { display: none; }
  .wo-caption { align-self: start; text-align: center; }
  .wo-caption h2 { font-size: 18px; }
  .wo-stage .wo-player-card { width: min(35vw, 40vh); }
  .wo-token { width: min(100px, 26vh); }
}
@media (prefers-reduced-motion: reduce) {
  .wo-stage *, .wo-stage *::before, .wo-stage *::after { animation: none !important; transition: none !important; }
  .wo-gate, .wo-foil { display: none; }
}

/* שדה חיפוש במועדון: בלי כפתור הניקוי המובנה של הדפדפן (יש לנו ✕ משלנו) */
#collSearchInput::-webkit-search-cancel-button, #collSearchInput::-webkit-search-decoration { -webkit-appearance: none; display: none; }

/* המועדון: כותרת/מסננים קומפקטיים */
.coll-compact .latest-filter-btn { padding: 4px 7px; font-size: 10px; border-radius: 10px; gap: 3px; border-width: 1px; }
.coll-compact .latest-filter-btn > span:first-child { font-size: 11px; }
.coll-compact .latest-filter-chevron { font-size: 8px; }
.coll-compact .latest-menu-panel { padding: 6px; gap: 4px; }
.coll-compact .latest-opt { padding: 4px 9px; font-size: 10px; }
.coll-compact .grid.grid-cols-3, .coll-compact .grid.grid-cols-2 { gap: 6px; }

/* =====================================================================
   דו-קרב: זירה (אצטדיון בלילה) – לוח תוצאות, בחירת מהלך, פנים מול פנים
   ===================================================================== */
.duel-arena {
  position: relative; overflow: hidden; overflow: clip; border-radius: 22px; padding: 10px 10px 16px; min-height: 620px; color: #fff; /* clip: כדי שה-sticky של הגיליון יעבוד מול המסך */
  background:
    radial-gradient(ellipse 90% 45% at 50% -8%, rgba(130, 190, 255, .38), transparent 62%),
    radial-gradient(ellipse 120% 60% at 50% 120%, rgba(0, 0, 0, .55), transparent 60%),
    repeating-linear-gradient(180deg, #0a3b27 0 46px, #0d4630 46px 92px);
  border: 2px solid rgba(250, 204, 21, .55); box-shadow: 0 14px 40px rgba(0, 0, 0, .45), inset 0 0 70px rgba(0, 0, 0, .5);
}
.duel-arena::before { /* קווי מגרש */
  content: ''; position: absolute; left: 50%; top: 52%; width: 320px; height: 320px; margin: -160px 0 0 -160px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .13); pointer-events: none; }
.duel-arena::after { content: ''; position: absolute; left: 0; right: 0; top: 52%; height: 2px; background: rgba(255, 255, 255, .12); pointer-events: none; }
.duel-lights { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(112deg, rgba(255, 255, 255, .17), transparent 42%) left top / 62% 100% no-repeat,
              linear-gradient(-112deg, rgba(255, 255, 255, .17), transparent 42%) right top / 62% 100% no-repeat; }
.duel-board, .duel-body { position: relative; z-index: 2; }
.duel-body { margin-top: 10px; animation: duelFade .3s ease-out both; }
.duel-body.has-sheet { padding-bottom: 156px; }
@keyframes duelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* לוח תוצאות */
.duel-board { padding: 8px 10px 10px; border-radius: 16px; background: linear-gradient(180deg, rgba(8, 16, 38, .92), rgba(5, 10, 26, .88));
  border: 1px solid rgba(250, 204, 21, .55); box-shadow: 0 8px 22px rgba(0, 0, 0, .5); }
.duel-board-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.duel-exit { font-size: 10px; font-weight: 900; color: #cbd5e1; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .09); }
.duel-first-to { font-size: 9.5px; font-weight: 800; color: #fde68a; letter-spacing: .3px; }
.duel-board-main { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.duel-side { flex: 1; text-align: center; min-width: 0; }
.duel-side-name { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 11px; font-weight: 900; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.duel-score { font-size: 44px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.duel-side.me .duel-score { color: #4ade80; text-shadow: 0 0 18px rgba(74, 222, 128, .65); }
.duel-side.opp .duel-score { color: #fb7185; text-shadow: 0 0 18px rgba(251, 113, 133, .65); }
.duel-score.bump { animation: duelBump .5s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes duelBump { 0% { transform: scale(.6); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }
.duel-round { text-align: center; padding: 4px 12px; border-radius: 12px; background: rgba(250, 204, 21, .12); border: 1px solid rgba(250, 204, 21, .4); }
.duel-round-label { font-size: 9px; font-weight: 800; color: #fde68a; }
.duel-round-num { font-size: 22px; font-weight: 900; color: #fff; line-height: 1.05; }
.duel-round-num span { font-size: 11px; color: #94a3b8; font-weight: 800; }
.duel-pips { display: flex; justify-content: center; gap: 5px; margin-top: 8px; }
.duel-pip { width: 18px; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .16); }
.duel-pip.win { background: #4ade80; box-shadow: 0 0 8px rgba(74, 222, 128, .8); }
.duel-pip.lose { background: #fb7185; box-shadow: 0 0 8px rgba(251, 113, 133, .8); }
.duel-pip.draw { background: #fbbf24; }
.duel-pip.now { background: #fde68a; animation: duelPulse 1s ease-in-out infinite; }
@keyframes duelPulse { 50% { opacity: .35; } }

/* באנר תור */
.duel-turn-banner { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 10px; border-radius: 999px; font-size: 13px; font-weight: 900;
  color: #fff; border: 1.5px solid rgba(255, 255, 255, .35); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.duel-turn-banner.mine { background: linear-gradient(90deg, #f59e0b, #fde047, #f59e0b); color: #1c1917; border-color: #fef08a; }
.duel-turn-banner.opp { background: linear-gradient(90deg, #9f1239, #e11d48, #9f1239); border-color: #fda4af; }
.duel-turn-banner.win { background: linear-gradient(90deg, #047857, #10b981, #047857); border-color: #6ee7b7; }
.duel-turn-banner.lose { background: linear-gradient(90deg, #9f1239, #e11d48, #9f1239); border-color: #fda4af; }
.duel-turn-banner.draw { background: linear-gradient(90deg, #475569, #64748b, #475569); }
.duel-turn-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; animation: duelPulse 1s ease-in-out infinite; }

/* בחירת מהלך */
.duel-choices { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.duel-choice { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 18px; color: #fff; text-align: right;
  border: 2px solid rgba(255, 255, 255, .35); box-shadow: 0 10px 24px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .12s ease, filter .12s ease; position: relative; overflow: hidden; }
.duel-choice:active { transform: scale(.97); filter: brightness(1.15); }
.duel-choice::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .22) 50%, transparent 60%); transform: translateX(-120%); animation: duelSheen 3.2s ease-in-out infinite; pointer-events: none; }
@keyframes duelSheen { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.duel-choice.is-att { background: linear-gradient(135deg, #b91c1c, #f97316); }
.duel-choice.is-def { background: linear-gradient(135deg, #1d4ed8, #38bdf8); }
.duel-choice.is-mid { background: linear-gradient(135deg, #047857, #4ade80); }
.duel-choice-icon { flex: none; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px;
  background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45); }
.duel-choice-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.duel-choice-title { font-size: 20px; font-weight: 900; line-height: 1.1; text-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.duel-choice-sub { font-size: 10.5px; font-weight: 700; opacity: .92; margin-top: 2px; }
.duel-choice-best { flex: none; text-align: center; padding: 4px 8px; border-radius: 12px; background: rgba(0, 0, 0, .3); min-width: 62px; }
.duel-choice-best b { display: block; font-size: 22px; font-weight: 900; line-height: 1; }
.duel-choice-best small { display: block; font-size: 8.5px; font-weight: 800; opacity: .9; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.duel-hint { margin-top: 10px; text-align: center; font-size: 10px; font-weight: 700; color: rgba(255, 255, 255, .6); }
.duel-hint.strong { color: #fde68a; font-size: 11.5px; font-weight: 900; margin: 8px 0 2px; }

/* היריב בוחר */
.duel-thinking { margin-top: 36px; text-align: center; }
.duel-thinking-crest { display: inline-flex; padding: 16px; border-radius: 50%; background: rgba(255, 255, 255, .08); border: 2px solid rgba(251, 113, 133, .7); box-shadow: 0 0 36px rgba(251, 113, 133, .45); animation: duelPulse 1.1s ease-in-out infinite; }
.duel-thinking-text { margin-top: 14px; font-size: 15px; font-weight: 900; color: #fecdd3; }
.dots i { display: inline-block; width: 5px; height: 5px; margin: 0 2px; border-radius: 50%; background: #fecdd3; animation: duelDot 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes duelDot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }

/* פנים מול פנים */
.duel-stage { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; margin-bottom: 30px; }
.duel-slot { position: relative; width: 112px; height: 156px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.duel-slot-label { position: absolute; bottom: -18px; left: 0; right: 0; text-align: center; font-size: 10px; font-weight: 900; color: #fde68a; white-space: nowrap; }
.duel-slot.opp .duel-slot-back { width: 100%; height: 100%; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 44px; font-weight: 900; color: #fde68a;
  background: repeating-linear-gradient(45deg, #1e3a8a 0 9px, #172554 9px 18px); border: 2px solid #facc15; box-shadow: 0 8px 22px rgba(0, 0, 0, .5), 0 0 22px rgba(250, 204, 21, .3); }
.duel-slot.me.is-empty { border: 2px dashed rgba(253, 230, 138, .85); background: rgba(253, 230, 138, .08); animation: duelPulse 1.6s ease-in-out infinite; }
.duel-slot-plus { font-size: 40px; font-weight: 900; color: #fde68a; }
.duel-vs { flex: none; width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 900; color: #fff;
  border: 2px solid #fff; box-shadow: 0 0 22px rgba(255, 255, 255, .45), 0 6px 16px rgba(0, 0, 0, .5); }
.duel-vs.is-att { background: linear-gradient(135deg, #b91c1c, #f97316); }
.duel-vs.is-def { background: linear-gradient(135deg, #1d4ed8, #38bdf8); }
.duel-vs.is-mid { background: linear-gradient(135deg, #047857, #4ade80); }
.duel-stage.result { margin-top: 16px; margin-bottom: 0; }
.duel-stage.result .duel-vs { font-size: 26px; }
.duel-fighter { display: flex; flex-direction: column; align-items: center; gap: 6px; animation: duelFromSide .5s cubic-bezier(.2, 1.2, .3, 1) both; }
.duel-fighter.opp { animation-name: duelFromSideR; }
@keyframes duelFromSide { from { transform: translateX(90px) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes duelFromSideR { from { transform: translateX(-90px) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
.duel-fighter.winner > div:first-child { filter: drop-shadow(0 0 14px #4ade80) drop-shadow(0 0 4px #fff); }
.duel-fighter.loser { opacity: .7; filter: saturate(.6); }
.duel-stat-pill { padding: 3px 12px; border-radius: 999px; background: rgba(0, 0, 0, .7); border: 1px solid rgba(255, 255, 255, .4); font-size: 11px; font-weight: 800; }
.duel-stat-pill b { font-size: 17px; color: #fde68a; margin-inline-start: 4px; }
.duel-next { width: 100%; margin-top: 18px; padding: 12px; border-radius: 16px; font-size: 14px; font-weight: 900; color: #052e16;
  background: linear-gradient(180deg, #fde68a, #f59e0b); border: 2px solid #fff3b0; box-shadow: 0 8px 20px rgba(0, 0, 0, .45); }
.duel-next:active { transform: scale(.97); }

/* היד שלי */
.duel-hand { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding: 10px 4px 12px; margin: 6px -4px 0; -webkit-overflow-scrolling: touch; }
.duel-hand::-webkit-scrollbar { height: 4px; } .duel-hand::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .3); border-radius: 4px; }
.duel-hand-item { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px; scroll-snap-align: center; }
.duel-hand-item.used { opacity: .28; filter: grayscale(1); pointer-events: none; }
.duel-chips { display: flex; gap: 3px; }
.duel-chip { padding: 1px 5px; border-radius: 8px; font-size: 9.5px; font-weight: 800; background: rgba(0, 0, 0, .55); color: #cbd5e1; }
.duel-chip.active { font-size: 12px; padding: 1px 7px; color: #fff; box-shadow: 0 0 10px currentColor; }
.duel-chip.att.active { background: #dc2626; } .duel-chip.mid.active { background: #16a34a; } .duel-chip.def.active { background: #2563eb; }
@media (prefers-reduced-motion: reduce) { .duel-choice::after, .duel-turn-dot, .duel-pip.now { animation: none; } }

/* דו-קרב: לוחצים על שחקן ← בוחרים במה להשתמש בו */
.duel-pickpanel { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px; border-radius: 18px;
  background: rgba(4, 10, 28, .72); border: 1.5px solid rgba(250, 204, 21, .6); box-shadow: 0 10px 24px rgba(0, 0, 0, .45); animation: duelIn .25s ease-out both; }
.duel-pickpanel-card { flex: none; }
.duel-pickpanel-actions { flex: 1; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.duel-choice.sm { padding: 7px 10px; gap: 8px; border-radius: 14px; border-width: 1.5px; }
.duel-choice.sm .duel-choice-icon { width: 34px; height: 34px; font-size: 18px; }
.duel-choice.sm .duel-choice-title { font-size: 15px; }
.duel-choice.sm .duel-choice-sub { font-size: 8.5px; line-height: 1.15; }
.duel-choice.sm .duel-choice-best { min-width: 40px; padding: 3px 6px; }
.duel-choice.sm .duel-choice-best b { font-size: 20px; }
.duel-hand-item.selected > div:first-child { filter: drop-shadow(0 0 12px #fde047) drop-shadow(0 0 3px #fff); transform: translateY(-6px); transition: transform .15s ease; }

/* דו-קרב: ההרכב שלי כמגרש + גיליון בחירת מהלך */
.duel-pitch { position: relative; width: 100%; height: 690px; margin-top: 6px; }
.duel-pitch-slot { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; z-index: 2; }
.duel-pitch-slot.used { opacity: .28; filter: grayscale(1); pointer-events: none; z-index: 1; }
.duel-pitch-slot.selected { z-index: 5; }
.duel-pitch-slot > div:first-child { transition: filter .2s ease; }
.duel-pitch-slot.selected > div:first-child { filter: drop-shadow(0 0 10px #fde047) drop-shadow(0 0 2px #fff); }
.duel-chips.mini { gap: 2px; flex-wrap: nowrap; white-space: nowrap; }
.duel-chips.mini .duel-chip { font-size: 8px; padding: 0 3px; border-radius: 6px; }
.duel-chips.mini .duel-chip.active { font-size: 8.5px; padding: 0 4px; font-weight: 900; }
.duel-sheet-host { position: fixed; left: 50%; bottom: 10px; transform: translateX(-50%); width: min(calc(100vw - 28px), 372px); z-index: 60; }
.duel-sheet { margin-top: 8px; padding: 10px; border-radius: 18px; height: 142px; box-sizing: border-box; animation: duelFade .2s ease-out both;
  background: linear-gradient(180deg, rgba(8, 16, 38, .97), rgba(4, 9, 24, .97)); border: 1.5px solid rgba(250, 204, 21, .75); box-shadow: 0 -6px 30px rgba(0, 0, 0, .6); }
.duel-sheet-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 13px; }
.duel-sheet-title b { font-weight: 900; color: #fff; }
.duel-sheet-title span { font-size: 10.5px; font-weight: 800; color: #fde68a; }
.duel-sheet-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.duel-act { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 4px; border-radius: 14px; color: #fff; border: 1.5px solid rgba(255, 255, 255, .4);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .3); transition: transform .1s ease, filter .1s ease; }
.duel-act:active { transform: scale(.95); filter: brightness(1.15); }
.duel-act.is-att { background: linear-gradient(135deg, #b91c1c, #f97316); }
.duel-act.is-def { background: linear-gradient(135deg, #1d4ed8, #38bdf8); }
.duel-act.is-mid { background: linear-gradient(135deg, #047857, #4ade80); }
.duel-act-icon { font-size: 20px; line-height: 1; }
.duel-act-title { font-size: 12px; font-weight: 900; }
.duel-act-val { font-size: 26px; font-weight: 900; line-height: 1.05; text-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.duel-act-sub { font-size: 8.5px; font-weight: 700; opacity: .9; }

@keyframes duelFade { from { opacity: 0; } to { opacity: 1; } }

.duel-sheet.is-idle { display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; font-weight: 800; color: #cbd5e1; border-color: rgba(250, 204, 21, .35); }
.duel-sheet.is-idle span { max-width: 260px; line-height: 1.4; }

/* דו-קרב: אישור הצבה כשמגיבים להיריב */
.duel-confirm { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 0; padding: 7px 8px; border-radius: 14px; color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .45); box-shadow: 0 6px 16px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .3); }
.duel-confirm:active { transform: scale(.98); filter: brightness(1.12); }
.duel-confirm.is-att { background: linear-gradient(135deg, #b91c1c, #f97316); }
.duel-confirm.is-def { background: linear-gradient(135deg, #1d4ed8, #38bdf8); }
.duel-confirm.is-mid { background: linear-gradient(135deg, #047857, #4ade80); }
.duel-confirm-main { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 900; }
.duel-confirm-val { font-size: 34px; font-weight: 900; line-height: 1.05; text-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.duel-confirm-sub { font-size: 9px; font-weight: 700; opacity: .92; }

.duel-tip { position: relative; z-index: 2; margin: 0 2px 7px; text-align: center; font-size: 10.5px; font-weight: 800; color: #fde68a; line-height: 1.35; }


/* =====================================================================
   קלפים חדשים — במה תלת-ממדית (קרוסלה מסתובבת, קרני אור, ניצוצות)
   כל האנימציות על transform / opacity בלבד כדי לרוץ חלק גם בטלפון
   ===================================================================== */
.ipfl-new-tile {
  border-color: rgba(230, 200, 117, 0.95) !important;
}
.ipfl-new-tile::before { display: none; }
/* טבעת זהב פועמת סביב התיבה (אנימציית opacity בלבד) */
.ipfl-new-tile.ipfl-white-card::after {
  content: '';
  position: absolute;
  inset: 0;
  top: 0; left: 0;
  width: auto; height: auto;
  border: 1.5px solid rgba(255, 214, 102, 0.95);
  border-radius: 22px;
  box-shadow: inset 0 0 16px rgba(255, 200, 80, 0.5);
  transform: none;
  opacity: 0;
  pointer-events: none;
  z-index: 25;
  animation: ipflNewRing 2.6s ease-in-out infinite;
}

.ipfl-new-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  z-index: 10;
  --acc: 255, 204, 84;
  --bg1: #166a42; --bg2: #0b2f1e; --bg3: #04100a;
  background: radial-gradient(120% 95% at 50% 62%, var(--bg1) 0%, var(--bg2) 50%, var(--bg3) 100%);
}

.ipfl-new-rays {
  position: absolute;
  left: 50%; top: 58%;
  width: 330%;
  aspect-ratio: 1 / 1;
  background: repeating-conic-gradient(
    rgba(var(--acc), 0) 0deg,
    rgba(var(--acc), 0.34) 7deg,
    rgba(var(--acc), 0) 14deg,
    rgba(var(--acc), 0) 30deg
  );
  -webkit-mask-image: radial-gradient(closest-side, #000 6%, transparent 62%);
  mask-image: radial-gradient(closest-side, #000 6%, transparent 62%);
  transform: translate(-50%, -50%) rotate(0deg);
  will-change: transform;
  animation: ipflNewRays 16s linear infinite;
  pointer-events: none;
}
.ipfl-new-glow {
  position: absolute;
  left: 50%; top: 52%;
  width: 150px; height: 150px;
  margin: -75px 0 0 -75px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--acc), 0.55) 0%, rgba(var(--acc), 0.18) 45%, transparent 70%);
  animation: ipflNewGlow 2.4s ease-in-out infinite;
  pointer-events: none;
}
.ipfl-new-floor {
  position: absolute;
  left: 50%; bottom: 14px;
  width: 130px; height: 16px;
  margin-left: -65px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(var(--acc), 0.55), transparent 70%);
  pointer-events: none;
}
.ipfl-new-spark {
  position: absolute;
  left: var(--x);
  bottom: -6px;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: #fff6cf;
  box-shadow: 0 0 6px 1px rgba(255, 214, 102, 0.9);
  opacity: 0;
  z-index: 6;
  pointer-events: none;
  animation: ipflNewSpark var(--d) linear infinite;
  animation-delay: var(--dl);
}

.ipfl-new-deck {
  position: absolute;
  inset: 0;
  perspective: 520px;
  perspective-origin: 50% 40%;
}
.ipfl-new-card {
  position: absolute;
  left: 50%; top: 43%;
  width: 78px; height: 105px;
  margin: -53px 0 0 -39px;
  transform-style: preserve-3d;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  transition: transform 0.8s cubic-bezier(0.2, 0.9, 0.25, 1.12), opacity 0.5s ease;
  transform: translate3d(84px, 0, -120px) rotateY(-50deg) scale(0.6);
}
.ipfl-new-card[data-o="0"] {
  transform: translate3d(0, -2px, 24px) rotateY(0deg) scale(0.86);
  opacity: 1;
  z-index: 5;
}
.ipfl-new-card[data-o="-1"] {
  transform: translate3d(-58px, 4px, -40px) rotateY(40deg) scale(0.74);
  opacity: 0.92;
  z-index: 3;
}
.ipfl-new-card[data-o="1"] {
  transform: translate3d(58px, 4px, -40px) rotateY(-40deg) scale(0.74);
  opacity: 0.92;
  z-index: 3;
}
.ipfl-new-card[data-o="-2"] {
  transform: translate3d(-84px, 6px, -120px) rotateY(50deg) scale(0.6);
  opacity: 0;
}
.ipfl-new-card-in {
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.45));
}
.ipfl-new-card[data-o="0"] .ipfl-new-card-in {
  animation: ipflNewFloat 3.2s ease-in-out infinite;
}
.ipfl-new-card[data-o="-1"] .ipfl-new-card-in,
.ipfl-new-card[data-o="1"] .ipfl-new-card-in { filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5)) brightness(0.82); }

.ipfl-new-sheen {
  position: absolute;
  top: -20%; bottom: -20%;
  left: -45%;
  width: 34%;
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.30) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(0) skewX(-18deg);
  z-index: 8;
  pointer-events: none;
  animation: ipflNewSheen 4.4s ease-in-out infinite;
}

.ipfl-new-cap {
  position: absolute;
  left: 50%; bottom: 3px;
  transform: translateX(-50%);
  z-index: 9;
  display: flex; align-items: center; gap: 5px;
  max-width: 92%;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(var(--acc), 0.55);
  color: #fff;
  font-size: 9.5px;
  font-weight: 900;
  line-height: 14px;
  white-space: nowrap;
}
.ipfl-new-cap b { overflow: hidden; text-overflow: ellipsis; font-weight: 900; }
.ipfl-new-cap i { font-style: normal; color: rgb(var(--acc)); }
.ipfl-new-cap.pop { animation: ipflNewCap 0.45s ease; }

.ipfl-new-badge {
  position: absolute;
  top: 7px; right: 7px;
  z-index: 30;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #111827;
  background: linear-gradient(135deg, #fff3c4 0%, #e6c875 40%, #b88b32 100%);
  border: 1px solid #fff3c4;
  box-shadow: 0 0 10px rgba(255, 214, 102, 0.75), 0 2px 6px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: ipflNewBadge 1.8s ease-in-out infinite;
}
.ipfl-new-badge::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  transform: skewX(-20deg);
  animation: ipflNewBadgeShine 2.2s ease-in-out infinite;
}

:is(.ipfl-new-tile, .ipfl-albums-tile) .ipfl-title-emerald {
  background: linear-gradient(100deg, #14532d 35%, #d9b457 50%, #14532d 65%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: ipflNewTitle 3.4s linear infinite;
}

@keyframes ipflNewRays  { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes ipflNewGlow  { 0%, 100% { transform: scale(0.9); opacity: 0.7; } 50% { transform: scale(1.15); opacity: 1; } }
@keyframes ipflNewSpark { 0% { transform: translateY(0) scale(0.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-135px) scale(1); opacity: 0; } }
@keyframes ipflNewFloat { 0%, 100% { transform: translateY(0) rotateY(-5deg); } 50% { transform: translateY(-4px) rotateY(5deg); } }
@keyframes ipflNewSheen { 0% { transform: translateX(0) skewX(-18deg); } 55%, 100% { transform: translateX(560%) skewX(-18deg); } }
@keyframes ipflNewRing  { 0%, 100% { opacity: 0; } 50% { opacity: 0.9; } }
@keyframes ipflNewCap   { 0% { transform: translateX(-50%) scale(0.85); opacity: 0.3; } 100% { transform: translateX(-50%) scale(1); opacity: 1; } }
@keyframes ipflNewBadge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes ipflNewBadgeShine { 0% { left: -60%; } 60%, 100% { left: 130%; } }
@keyframes ipflNewTitle { from { background-position: 150% 0; } to { background-position: -50% 0; } }

@media (prefers-reduced-motion: reduce) {
  .ipfl-new-tile *, .ipfl-new-tile.ipfl-white-card::after { animation: none !important; }
  .ipfl-new-card { transition: none; }
  :is(.ipfl-new-tile, .ipfl-albums-tile) .ipfl-title-emerald { animation: none; background: none; -webkit-text-fill-color: currentColor; color: var(--ipfl-emerald); }
}


/* ---------- ערכות נושא לבמות: הקבוצה שלי / SBC (מועדון נצבע לפי הקבוצה האהודה) ---------- */
.ipfl-theme-squad { --bg1: #8a1a3a; --bg2: #35101f; --bg3: #0d0409; --acc: 255, 196, 90; }
.ipfl-theme-sbc   { --bg1: #0f6a73; --bg2: #06262e; --bg3: #020b0e; --acc: 255, 214, 102; }

/* תגים: וריאנטים (ירוק / בצד שמאל) */
.ipfl-new-badge.is-left { right: auto; left: 7px; }
.ipfl-new-badge.is-green {
  color: #fff;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #22a45d 0%, #0f3d23 100%);
  border: 1px solid rgba(230, 200, 117, 0.85);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.55), 0 2px 6px rgba(0, 0, 0, 0.35);
}
.ipfl-new-badge:not(.is-green):not(:first-child) { letter-spacing: 0.04em; }

/* ---------- במת SBC: מגן מסתובב + צ'יפים צפים ---------- */
.ipfl-sbc-deck {
  position: absolute;
  inset: 0;
  perspective: 520px;
  perspective-origin: 50% 40%;
  z-index: 4;
}
.ipfl-sbc-shield {
  position: absolute;
  left: 50%; top: 47%;
  width: 66px; height: 84px;
  margin: -42px 0 0 -33px;
  transform-style: preserve-3d;
  transform: translateZ(26px);
}
.ipfl-sbc-shield-in {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 14px 14px 28px 28px;
  background: linear-gradient(180deg, #11935c 0%, #0b4a30 52%, #04140d 100%);
  border: 2.5px solid #f2c94c;
  box-shadow: 0 0 16px rgba(255, 200, 80, 0.55), 0 8px 14px rgba(0, 0, 0, 0.5);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
  animation: ipflSbcSpin 5.2s ease-in-out infinite;
}
.ipfl-sbc-shield-in em { font-style: normal; display: flex; gap: 1px; margin-bottom: 1px; }
.ipfl-sbc-shield-in s { text-decoration: none; font-size: 9px; color: #fcd34d; animation: ipflSbcStar 1.6s ease-in-out infinite; }
.ipfl-sbc-shield-in s:nth-child(2) { animation-delay: 0.25s; }
.ipfl-sbc-shield-in s:nth-child(3) { animation-delay: 0.5s; }
.ipfl-sbc-shield-in strong { font-size: 24px; line-height: 1; font-weight: 900; color: #fff; letter-spacing: -0.5px; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); }
.ipfl-sbc-shield-in small { font-size: 7px; font-weight: 900; color: #fde68a; letter-spacing: 0.08em; margin-top: 3px; }
.ipfl-sbc-gloss {
  position: absolute;
  top: -10%; bottom: -10%;
  left: -70%;
  width: 55%;
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-18deg);
  animation: ipflSbcGloss 3.2s ease-in-out infinite;
  pointer-events: none;
}
.ipfl-sbc-chip {
  position: absolute;
  top: 47%;
  width: 40px; height: 50px;
  margin-top: -25px;
  transform-style: preserve-3d;
}
.ipfl-sbc-chip.is-left  { left: 50%; margin-left: -80px; transform: translateZ(-30px) rotateY(34deg) rotateZ(-10deg); }
.ipfl-sbc-chip.is-right { left: 50%; margin-left: 40px;  transform: translateZ(-30px) rotateY(-34deg) rotateZ(10deg); }
.ipfl-sbc-chip-in {
  width: 100%; height: 100%;
  border-radius: 10px 10px 18px 18px;
  background: linear-gradient(180deg, #fde68a 0%, #f59e0b 60%, #b45309 100%);
  border: 2px solid #fff7d6;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.45), 0 0 10px rgba(255, 200, 80, 0.45);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #111827;
  animation: ipflSbcBob 2.6s ease-in-out infinite;
}
.ipfl-sbc-chip.is-right .ipfl-sbc-chip-in { animation-delay: 1.3s; }
.ipfl-sbc-chip-in b { font-size: 8.5px; font-weight: 900; letter-spacing: 0.02em; }
.ipfl-sbc-chip-in span { font-size: 12px; font-weight: 900; line-height: 1; }

@keyframes ipflSbcSpin  { 0%, 100% { transform: rotateY(-18deg) translateY(0); } 50% { transform: rotateY(18deg) translateY(-3px); } }
@keyframes ipflSbcStar  { 0%, 100% { opacity: 0.45; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.25); } }
@keyframes ipflSbcGloss { 0% { left: -70%; } 55%, 100% { left: 140%; } }
@keyframes ipflSbcBob   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }


/* =====================================================================
   תיבות התפריט (קלפים חדשים / הקבוצה שלי / SBC / מועדון) — עיצוב בהיר
   משתלב עם שאר המשחק הלבן. רקע בהיר עם גוון עדין לפי הנושא,
   והקלפים הצדדיים בלי סיבוב תלת-ממדי (לא נמתחים) – רק הקטנה והזזה.
   (בלוק זה גובר על ההגדרות הכהות שלמעלה)
   ===================================================================== */
.ipfl-theme-new   { --bg1: #c8a253; }
.ipfl-theme-squad { --bg1: #b4466a; }
.ipfl-theme-sbc   { --bg1: #1f9aa6; }

.ipfl-new-stage {
  --tint: var(--bg1);
  background:
    radial-gradient(110% 90% at 50% 58%,
      #ffffff 0%,
      color-mix(in srgb, var(--tint) 10%, #ffffff) 55%,
      color-mix(in srgb, var(--tint) 22%, #ffffff) 100%);
  border-bottom: 0;
}

.ipfl-new-rays {
  background: repeating-conic-gradient(
    color-mix(in srgb, var(--tint) 0%, transparent) 0deg,
    color-mix(in srgb, var(--tint) 22%, transparent) 7deg,
    color-mix(in srgb, var(--tint) 0%, transparent) 14deg,
    color-mix(in srgb, var(--tint) 0%, transparent) 30deg
  );
}
.ipfl-new-glow {
  background: radial-gradient(circle,
    color-mix(in srgb, var(--tint) 32%, transparent) 0%,
    color-mix(in srgb, var(--tint) 10%, transparent) 48%,
    transparent 72%);
}
.ipfl-new-floor {
  background: radial-gradient(ellipse, rgba(15, 23, 42, 0.20), transparent 70%);
}
.ipfl-new-spark {
  background: #f2c94c;
  box-shadow: 0 0 5px 1px rgba(214, 160, 40, 0.6);
}
.ipfl-new-sheen {
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255, 224, 130, 0.35) 50%, rgba(255,255,255,0) 100%);
}

/* קרוסלת הקלפים: בלי פרספקטיבה ובלי rotateY – הקלפים נשארים ביחס המקורי */
.ipfl-new-deck { perspective: none; }
.ipfl-new-card {
  top: 46%;
  width: 88px; height: 122px;           /* גודל הקלף האמיתי (xs) – בלי מתיחה */
  margin: -61px 0 0 -44px;
  transform: translate3d(86px, 0, 0) scale(0.5);
}
.ipfl-new-card[data-o="0"]  { transform: translate3d(0, 0, 0) scale(0.78); opacity: 1;    z-index: 5; }
.ipfl-new-card[data-o="-1"] { transform: translate3d(-52px, 6px, 0) scale(0.6); opacity: 0.95; z-index: 3; }
.ipfl-new-card[data-o="1"]  { transform: translate3d(52px, 6px, 0) scale(0.6);  opacity: 0.95; z-index: 3; }
.ipfl-new-card[data-o="-2"] { transform: translate3d(-86px, 8px, 0) scale(0.5); opacity: 0; }

.ipfl-new-card-in { filter: drop-shadow(0 4px 6px rgba(15, 23, 42, 0.28)); }
.ipfl-new-card[data-o="-1"] .ipfl-new-card-in,
.ipfl-new-card[data-o="1"] .ipfl-new-card-in {
  filter: drop-shadow(0 3px 5px rgba(15, 23, 42, 0.25)) brightness(0.94);
}
@keyframes ipflNewFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* שם השחקן – כמו שאר הצ'יפים הבהירים במשחק */
.ipfl-new-cap {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(200, 162, 83, 0.7);
  color: #14532d;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}
.ipfl-new-cap i { color: #9a7428; }

/* SBC: בלי סיבוב תלת-ממדי חזק – המגן והצ'יפים נשארים ישרים */
.ipfl-sbc-deck { perspective: none; }
.ipfl-sbc-shield { transform: none; }
.ipfl-sbc-shield-in { box-shadow: 0 0 12px rgba(214, 160, 40, 0.45), 0 6px 10px rgba(15, 23, 42, 0.30); animation: ipflSbcSpin 5.2s ease-in-out infinite; }
.ipfl-sbc-chip.is-left  { transform: rotateZ(-9deg); }
.ipfl-sbc-chip.is-right { transform: rotateZ(9deg); }
.ipfl-sbc-chip-in { box-shadow: 0 4px 8px rgba(15, 23, 42, 0.28), 0 0 8px rgba(214, 160, 40, 0.35); }
@keyframes ipflSbcSpin { 0%, 100% { transform: rotateY(-8deg) translateY(0); } 50% { transform: rotateY(8deg) translateY(-3px); } }

/* ---- רקע לבן אמיתי לתיבות (כמו חנות חבילות / אוספים): בלי צבע ובלי קרניים ---- */
.ipfl-new-tile::before { display: block; }   /* החזרת הדוגמה העדינה של הכרטיס הלבן */
.ipfl-new-stage { background: transparent; }
.ipfl-new-rays, .ipfl-new-sheen, .ipfl-new-spark { display: none; }
.ipfl-new-glow {
  background: radial-gradient(circle, rgba(200, 162, 83, 0.16) 0%, rgba(200, 162, 83, 0.05) 50%, transparent 72%);
}

/* ---- קלפים חדשים + הקבוצה שלי + מועדון: קלפים גדולים יותר, עד הפס שמעל הכותרת ---- */
.ipfl-theme-new .ipfl-new-card,
.ipfl-theme-squad .ipfl-new-card,
.ipfl-theme-club .ipfl-new-card { top: 54%; }
.ipfl-theme-new .ipfl-new-card[data-o="0"],
.ipfl-theme-squad .ipfl-new-card[data-o="0"],
.ipfl-theme-club .ipfl-new-card[data-o="0"]  { transform: translate3d(0, 0, 0) scale(0.9); }
.ipfl-theme-new .ipfl-new-card[data-o="-1"],
.ipfl-theme-squad .ipfl-new-card[data-o="-1"],
.ipfl-theme-club .ipfl-new-card[data-o="-1"] { transform: translate3d(-54px, 8px, 0) scale(0.7); }
.ipfl-theme-new .ipfl-new-card[data-o="1"],
.ipfl-theme-squad .ipfl-new-card[data-o="1"],
.ipfl-theme-club .ipfl-new-card[data-o="1"]  { transform: translate3d(54px, 8px, 0) scale(0.7); }

/* ---- במת SBC חדשה: דרישות ← חץ ← פרס (בהיר, תואם לשאר התיבות) ---- */
.ipfl-sbc2 {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 0 6px 6px;
  z-index: 4;
}
.ipfl-sbc2-slots { display: flex; align-items: center; }
.ipfl-sbc2-slot {
  width: 46px; height: 64px;
  border-radius: 10px 10px 20px 20px;
  border: 2px dashed rgba(184, 139, 50, 0.85);
  background: linear-gradient(180deg, #ffffff 0%, #fbf3dc 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #b88b32;
  box-shadow: 0 4px 8px rgba(154, 116, 40, 0.18);
  animation: ipflSbc2Slot 3.2s ease-in-out infinite;
}
.ipfl-sbc2-slot b { font-size: 22px; line-height: 1; font-weight: 900; }
.ipfl-sbc2-slot small { font-size: 7.5px; font-weight: 900; letter-spacing: 0.08em; margin-top: 3px; color: #9a7428; }
.ipfl-sbc2-slot.s1 { transform: rotate(-8deg); }
.ipfl-sbc2-slot.s2 { transform: rotate(8deg); margin-left: -8px; animation-delay: 0.8s; }

.ipfl-sbc2-arrow { display: flex; align-items: center; width: 24px; justify-content: center; }
.ipfl-sbc2-arrow i {
  width: 8px; height: 8px; margin-left: -3px;
  border-top: 3px solid #14532d; border-right: 3px solid #14532d;
  transform: rotate(45deg);
  opacity: 0.2;
  animation: ipflSbc2Arrow 1.6s ease-in-out infinite;
}
.ipfl-sbc2-arrow i:nth-child(2) { animation-delay: 0.25s; }
.ipfl-sbc2-arrow i:nth-child(3) { animation-delay: 0.5s; }

.ipfl-sbc2-reward { animation: ipflSbc2Reward 2.6s ease-in-out infinite; }
.ipfl-sbc2-reward .foil-pack-3d { transform: scale(0.92); transform-origin: center; }

@keyframes ipflSbc2Slot {
  0%, 100% { border-color: rgba(184, 139, 50, 0.85); box-shadow: 0 4px 8px rgba(154, 116, 40, 0.18); }
  50% { border-color: #22a45d; box-shadow: 0 0 0 3px rgba(34, 164, 93, 0.16), 0 4px 10px rgba(34, 164, 93, 0.28); }
}
@keyframes ipflSbc2Arrow { 0%, 100% { opacity: 0.2; } 40% { opacity: 1; } }
@keyframes ipflSbc2Reward { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* תיקון מידות במת SBC: הכל נכנס ברוחב התיבה ולא מתנגש בתג */
.ipfl-sbc2 { gap: 8px; padding: 18px 6px 4px; }
.ipfl-sbc2-slot { width: 40px; height: 56px; }
.ipfl-sbc2-slot b { font-size: 19px; }
.ipfl-sbc2-slot small { font-size: 6.5px; }
.ipfl-sbc2-slot.s2 { margin-left: -8px; }
.ipfl-sbc2-arrow { width: 20px; }
.ipfl-sbc2-reward { width: 52px; height: 72px; flex: none; }
.ipfl-sbc2-reward .foil-pack-3d { transform: scale(0.8); transform-origin: top left; }
.ipfl-sbc2 { padding-top: 24px; }
.ipfl-sbc2-slot.s2 { margin-left: -2px; }
