/* ---------- ארנה + מסך "משחקים" + תוספות הארנה במשחק ---------- */
/* הפריסה של מסך הארנה בהשראת Division Rivals ב-FC (משמאל לימין, כמו בתמונה): כותרת למעלה משמאל, המסלול באמצע,
   STREAK וכפתור משחק משמאל למטה, לוח פרסים במרכז. --ar = צבע הארנה, --ar-rgb = אותו צבע כמספרים (לזוהר) */

:root {
  --ar-font: "Heebo", "Assistant", "Segoe UI", "Arial", system-ui, sans-serif;
  --ar-wide: "Bahnschrift", "Arial Narrow", "Segoe UI", sans-serif;
}

/* ================= משחקים: בחירת מוד ================= */
#games { justify-content: flex-start; align-items: stretch; gap: 3vh; padding: 3vh 2.5vw 2.5vh; }
#games.entering { animation: home-in .8s var(--ease-out) both; }
.gm-modes { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2.4vw; padding: 1vh 4vw 4vh; direction: ltr; }
.gm-mode {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 4vh 2.6vw;
  border: 0;
  border-radius: 1.6vh;
  cursor: pointer;
  color: #fff;
  text-align: left;
  font-family: var(--ar-font);
  background: #0c1426;
  box-shadow: 0 2vh 5vh rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: transform .3s var(--ease-out), box-shadow .3s;
  animation: gal-drop .6s var(--ease-out) backwards;
}
.gm-mode + .gm-mode { animation-delay: .12s; }
.gm-bg { position: absolute; inset: 0; z-index: 0; }
.gm-draft .gm-bg { background: radial-gradient(ellipse at 70% 30%, rgba(60, 120, 255, .45), transparent 60%), linear-gradient(160deg, #13306e, #070d1c 70%); }
.gm-arena .gm-bg { background: radial-gradient(ellipse at 70% 30%, rgba(var(--ar-rgb), .45), transparent 60%), linear-gradient(160deg, #0f3a2e, #050d0c 70%); }
.gm-bg::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 22px); }
.gm-art { position: absolute; z-index: 1; top: 6%; right: 6%; width: 46%; aspect-ratio: 1; display: grid; place-items: center; pointer-events: none; }
.gm-ball { width: 66%; image-rendering: pixelated; animation: ball-bob 2.6s ease-in-out infinite; }
@keyframes ball-bob { 50% { translate: 0 -6%; rotate: 8deg; } }
.gm-emb { position: relative; width: 74%; image-rendering: pixelated; filter: drop-shadow(0 2vh 2vh rgba(0, 0, 0, .5)); animation: emb-float 3.2s ease-in-out infinite; }
.gm-glow { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(var(--ar-rgb), .55), transparent 65%); animation: glow-pulse 3.2s ease-in-out infinite; }
@keyframes emb-float { 50% { translate: 0 -4%; } }
@keyframes glow-pulse { 50% { opacity: .55; scale: .92; } }
.gm-tx { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 1vh; max-width: 88%; }
.gm-k { font: 700 clamp(12px, 2.2vh, 24px) var(--ar-font); color: rgba(255, 255, 255, .7); direction: rtl; }
.gm-title { margin: 0; font: 900 clamp(34px, 9vh, 110px)/0.95 var(--ar-wide); letter-spacing: .02em; }
.gm-arena .gm-title { color: var(--ar); text-shadow: 0 0 3vh rgba(var(--ar-rgb), .45); }
.gm-line { margin: 0; font: 500 clamp(12px, 2.1vh, 22px)/1.45 var(--ar-font); color: rgba(255, 255, 255, .82); direction: rtl; text-align: left; }
.gm-status { align-self: flex-start; margin-top: .6vh; padding: .6vh 1vw; border-radius: 99px; font: 700 clamp(11px, 1.8vh, 19px) var(--ar-font); background: rgba(255, 255, 255, .1); direction: rtl; }
.gm-arena .gm-status { background: rgba(var(--ar-rgb), .22); color: #fff; }
.gm-go { position: absolute; z-index: 2; top: 3.4vh; left: 2.4vw; display: flex; align-items: center; gap: .6vw; padding: .8vh 1.3vw; border-radius: .7vh; font: 800 clamp(12px, 2vh, 22px) var(--ar-font); color: #0d0f14; background: #fff; opacity: 0; translate: 0 -1vh; transition: opacity .25s, translate .25s var(--ease-out); direction: rtl; }
.gm-go b { font-size: 1.3em; line-height: 1; }
.gm-mode.nav-focus, body.input-mouse .gm-mode:hover { transform: translateY(-1vh) scale(1.015); box-shadow: 0 3vh 6vh rgba(0, 0, 0, .55), inset 0 0 0 .4vh #fff; outline: none; animation: none; }
.gm-mode.nav-focus .gm-go, body.input-mouse .gm-mode:hover .gm-go { opacity: 1; translate: 0 0; }

/* ================= מסך הארנה ================= */
#arena { justify-content: flex-start; align-items: stretch; gap: 1vh; padding: 3vh 2.5vw 2vh; overflow: hidden; }
#arena.entering { animation: home-in .8s var(--ease-out) both; }
#arena::before {   /* רקע: כהה עם קרני צבע הארנה באלכסון (כמו הקווים הירוקים ב-FC) */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 52%, rgba(var(--ar-rgb), .14) 52.2%, transparent 60%),
    linear-gradient(115deg, transparent 63%, rgba(var(--ar-rgb), .1) 63.2%, transparent 72%),
    radial-gradient(ellipse at 85% 20%, rgba(var(--ar-rgb), .22), transparent 55%),
    linear-gradient(180deg, #08110f, #050807);
}
.ar-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 2.2vh; direction: ltr; font-family: var(--ar-font); color: #fff; }
.ar-bg { position: absolute; z-index: 0; right: -4vw; top: -10vh; width: 62vh; opacity: .07; pointer-events: none; }
.ar-bg-emb { width: 100%; image-rendering: pixelated; rotate: -8deg; }

.ar-head { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; animation: gal-drop .6s var(--ease-out) backwards; }
.ar-titles { display: flex; flex-direction: column; gap: 1vh; }
.ar-title { margin: 0; font: 900 clamp(26px, 7vh, 86px)/1 var(--ar-wide); letter-spacing: .02em; color: #fff; }
.ar-title::first-line { color: #fff; }
.ar-sub { display: flex; align-items: center; gap: .8vw; flex-wrap: wrap; direction: rtl; justify-content: flex-end; flex-direction: row-reverse; }
.ar-sub-he { font: 800 clamp(13px, 2.4vh, 26px) var(--ar-font); color: var(--ar); text-shadow: 0 0 2vh rgba(var(--ar-rgb), .5); }
.ar-chip { padding: .45vh .8vw; border-radius: 99px; font: 700 clamp(10px, 1.7vh, 18px) var(--ar-font); background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .85); }
.ar-desc { margin: 0; max-width: min(46vw, 90vh); font: 500 clamp(11px, 1.95vh, 21px)/1.5 var(--ar-font); color: rgba(255, 255, 255, .78); direction: rtl; text-align: left; }

/* תוצאת המשחק האחרון */
.ar-result {
  position: absolute; z-index: 2; top: 0; right: 0;
  display: flex; flex-direction: column; align-items: flex-end; gap: .4vh;
  padding: 1.4vh 1.6vw; border-radius: 1.2vh; direction: rtl;
  background: rgba(10, 14, 20, .85); box-shadow: inset 0 0 0 .3vh currentColor, 0 1.5vh 4vh rgba(0, 0, 0, .5);
  animation: ar-pop .7s cubic-bezier(.34, 1.56, .64, 1) .2s backwards;
}
.ar-result.win { color: #8be04e; }
.ar-result.draw { color: #ffd54a; }
.ar-result.loss { color: #ff6a55; }
.ar-result-t { font: 900 clamp(16px, 3.4vh, 38px) var(--ar-font); }
.ar-result-s { font: 700 clamp(11px, 1.9vh, 20px) var(--ar-font); color: #fff; }
@keyframes ar-pop { from { opacity: 0; transform: scale(.6) translateY(-2vh); } }

/* ---------- המסלול ---------- */
.ar-track-wrap { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 1vh; animation: gal-drop .7s var(--ease-out) .08s backwards; }
.ar-track { display: flex; align-items: center; gap: 1vw; height: 19vh; padding-top: 3vh; }
.ar-emb { position: relative; flex: none; width: 13vh; display: flex; flex-direction: column; align-items: center; gap: .5vh; }
.ar-emb img { width: 100%; image-rendering: pixelated; filter: drop-shadow(0 1vh 1.4vh rgba(0, 0, 0, .55)); }
.ar-emb.cur img { animation: emb-float 3.2s ease-in-out infinite; }
.ar-emb.next img { width: 82%; filter: drop-shadow(0 1vh 1.4vh rgba(0, 0, 0, .55)) grayscale(.15); }
.ar-emb-name { font: 800 clamp(10px, 1.7vh, 18px) var(--ar-wide); letter-spacing: .06em; color: var(--ar); }
.ar-line { position: relative; flex: 1; display: flex; align-items: center; justify-content: space-around; height: 100%; }
.ar-line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: .6vh; translate: 0 -50%; background: rgba(60, 110, 200, .35); border-radius: 99px; }
.ar-line-fill { position: absolute; left: 0; top: 50%; height: .6vh; translate: 0 -50%; width: calc(var(--p) * 100%); border-radius: 99px; background: var(--ar); box-shadow: 0 0 1.4vh rgba(var(--ar-rgb), .8); transition: width .8s var(--ease-out); }
.ar-node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.ar-node-sh {
  display: grid; place-items: center;
  width: 6.4vh; height: 7.4vh;
  background: #0e1a17;
  clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%);
  box-shadow: inset 0 0 0 .4vh rgba(var(--ar-rgb), .45);
  transition: background .3s;
}
.ar-node-sh::before { content: ""; position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%); box-shadow: inset 0 0 0 .4vh rgba(var(--ar-rgb), .55); pointer-events: none; }
.ar-node-sh b { font: 800 clamp(11px, 2.3vh, 24px) "Times New Roman", serif; color: rgba(255, 255, 255, .78); translate: 0 -12%; }
.ar-node.done .ar-node-sh { background: linear-gradient(180deg, var(--ar), rgba(var(--ar-rgb), .55)); }
.ar-node.done .ar-node-sh b { color: #0b0f14; }
.ar-node.here { transform: scale(1.18); }
.ar-node.here .ar-node-sh { box-shadow: none; filter: drop-shadow(0 0 1.4vh rgba(var(--ar-rgb), .9)); }
.ar-node.fresh .ar-node-sh { animation: node-fill .7s cubic-bezier(.34, 1.56, .64, 1) var(--d) backwards; }
@keyframes node-fill { from { background: #0e1a17; transform: scale(.6); } }
/* הסמן מעל השלב הנוכחי (משולש), כמו ב-FC */
.ar-node.here::before, .ar-emb.here::before {
  content: ""; position: absolute; left: 50%; top: -3.2vh; translate: -50% 0;
  border-left: 1.2vh solid transparent; border-right: 1.2vh solid transparent; border-top: 1.8vh solid #3dffb0;
  filter: drop-shadow(0 0 .8vh rgba(61, 255, 176, .8));
  animation: marker-bob 1.1s ease-in-out infinite;
}
.ar-emb.here::before { top: -2.2vh; }
@keyframes marker-bob { 50% { translate: -50% -.7vh; } }
/* פרס בשלב: חבילה קטנה מעל המגן */
.ar-node-rw {
  position: absolute; top: -2.2vh; right: -1.4vh;
  width: 2.6vh; height: 3.6vh;
  background: center / cover no-repeat;
  border-radius: .3vh;
  box-shadow: 0 0 0 .25vh #0b0f14, 0 .5vh 1vh rgba(0, 0, 0, .5);
}
.ar-node-rw.got { filter: grayscale(1) brightness(.6); }
.ar-node-rw.got::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font: 900 clamp(10px, 2.2vh, 22px) var(--ar-font); color: #3dffb0; text-shadow: 0 0 .4vh #000; filter: none; }
.ar-steps { align-self: center; font: 700 clamp(11px, 1.8vh, 19px) var(--ar-font); color: rgba(255, 255, 255, .7); direction: rtl; }

/* ---------- שורה תחתונה ---------- */
.ar-bottom { position: relative; z-index: 1; flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 30vw) minmax(0, 36vw) minmax(0, 1fr); gap: 2.4vw; align-items: end; animation: gal-drop .7s var(--ease-out) .16s backwards; }
.ar-left { display: flex; flex-direction: column; gap: 3vh; }
.ar-streak { display: flex; align-items: center; gap: 1.2vw; direction: rtl; flex-direction: row-reverse; justify-content: flex-end; }
.ar-fire { flex: none; position: relative; width: 9vh; height: 9vh; border-radius: 50%; display: grid; place-items: center; background: #26303b; box-shadow: 0 0 0 .3vh rgba(255, 255, 255, .1); }
.ar-fire i { width: 46%; height: 58%; background: #6b7787; clip-path: polygon(50% 0, 62% 26%, 80% 18%, 86% 50%, 100% 70%, 90% 100%, 10% 100%, 0 70%, 18% 42%, 30% 52%, 32% 22%); }
.ar-streak.on .ar-fire { background: radial-gradient(circle at 50% 60%, #39a7ff, #0b5fd6); box-shadow: 0 0 3vh rgba(57, 167, 255, .65); animation: fire-pulse 1.4s ease-in-out infinite; }
.ar-streak.on .ar-fire i { background: #fff; }
@keyframes fire-pulse { 50% { box-shadow: 0 0 5vh rgba(57, 167, 255, .9); } }
.ar-streak-tx { display: flex; flex-direction: column; gap: .5vh; text-align: left; }
.ar-streak-tx b { font: 900 clamp(15px, 3vh, 32px) var(--ar-wide); color: rgba(255, 255, 255, .55); direction: ltr; text-align: left; }
.ar-streak.on .ar-streak-tx b { color: #39a7ff; }
.ar-streak-tx span { font: 500 clamp(11px, 1.8vh, 19px)/1.45 var(--ar-font); color: rgba(255, 255, 255, .8); }
.ar-btns { display: flex; align-items: center; gap: 1vw; }

/* כפתור לבן בסגנון FC עם סמל X */
.ar-play {
  display: flex; align-items: center; gap: 1vw;
  height: 6.6vh; padding: 0 2vw 0 1.2vw;
  border: 0; border-radius: .7vh; cursor: pointer;
  font: 800 clamp(14px, 2.6vh, 30px) var(--ar-font);
  color: #0d0f14; background: #fff; direction: ltr;
  box-shadow: 0 1vh 2.4vh rgba(0, 0, 0, .45);
  transition: transform .25s var(--ease-out), box-shadow .25s, opacity .25s;
}
.ar-play span { direction: rtl; }
.ar-play:disabled { opacity: .5; cursor: default; }
.ar-play-x { position: relative; flex: none; width: 3.6vh; height: 3.6vh; border-radius: 50%; background: #0d0f14; }
.ar-play-x::before, .ar-play-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 52%; height: .4vh; background: #fff; border-radius: 1px; }
.ar-play-x::before { transform: translate(-50%, -50%) rotate(45deg); }
.ar-play-x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.ar-play.nav-focus, body.input-mouse .ar-play:not(:disabled):hover { transform: translateY(-.4vh); box-shadow: 0 1.4vh 3vh rgba(0, 0, 0, .5); outline: .35vh solid var(--ar, #8be04e); outline-offset: .5vh; animation: none; }
.ar-ghost { height: 6.6vh; padding: 0 1.6vw; border: 0; border-radius: .7vh; cursor: pointer; font: 700 clamp(12px, 2.1vh, 22px) var(--ar-font); color: #fff; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.ar-ghost.nav-focus, body.input-mouse .ar-ghost:hover { background: rgba(255, 255, 255, .2); outline: .3vh solid #fff; outline-offset: .4vh; animation: none; }

/* לוח הפרסים */
.ar-rewards { display: flex; flex-direction: column; gap: 1.6vh; padding: 2.2vh 1.8vw; border-radius: 1.4vh; background: rgba(36, 48, 70, .82); box-shadow: 0 2vh 5vh rgba(0, 0, 0, .45); direction: rtl; }
.ar-rw-head { margin: 0; font: 800 clamp(13px, 2.4vh, 26px) var(--ar-font); text-align: left; direction: ltr; }
.ar-rw-row { display: flex; align-items: center; gap: 1.6vw; flex-direction: row-reverse; justify-content: flex-end; }
.ar-rw-arts { display: flex; gap: .6vw; direction: ltr; }
.ar-rw-info { display: flex; flex-direction: column; gap: .7vh; text-align: left; }
.ar-rw-title { font: 700 clamp(12px, 2.2vh, 23px) var(--ar-font); }
.ar-rw-need b { font: 900 clamp(15px, 3.1vh, 34px) var(--ar-font); color: #39a7ff; }
.ar-rw-need span { font: 600 clamp(11px, 1.8vh, 19px) var(--ar-font); color: rgba(255, 255, 255, .7); }
.ar-rw-line { font: 500 clamp(11px, 1.85vh, 19px) var(--ar-font); color: rgba(255, 255, 255, .88); }
.ar-rw-nav { display: flex; align-items: center; justify-content: flex-end; gap: .8vw; }
.ar-rw-arrow { width: 3.6vh; height: 3.6vh; border: 0; border-radius: 50%; cursor: pointer; font: 900 clamp(12px, 2.4vh, 26px)/1 var(--ar-font); color: #fff; background: rgba(255, 255, 255, .14); }
.ar-rw-arrow.nav-focus, body.input-mouse .ar-rw-arrow:hover { background: #fff; color: #0d0f14; outline: none; animation: none; }
.ar-rw-dots { display: flex; gap: .5vw; }
.ar-rw-dots i { width: 1vh; height: 1vh; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.ar-rw-dots i.on { background: #fff; }

/* תמונת פרס: חבילה / מטבע / יהלום / בחירת שחקן */
.ar-rw-art { position: relative; width: 8vh; flex: none; display: grid; place-items: center; }
.ar-rw-pack img { display: block; width: 100%; aspect-ratio: 640 / 930; object-fit: cover; image-rendering: pixelated; clip-path: var(--pack-clip, none); box-shadow: 0 .8vh 1.6vh rgba(0, 0, 0, .5); }
.ar-rw-pack { width: 100%; filter: drop-shadow(0 0 .8vh rgba(var(--pk-rgb, 255, 200, 60), .45)); }
.ar-rw-art.cur img { width: 70%; image-rendering: pixelated; filter: drop-shadow(0 .6vh .8vh rgba(0, 0, 0, .5)); }
.ar-rw-n { position: absolute; right: -.6vh; bottom: -.6vh; padding: .2vh .6vh; border-radius: .5vh; font: 900 clamp(10px, 1.8vh, 19px) var(--ar-font); color: #0d0f14; background: #fff; }
.ar-pick-face {
  width: 100%; aspect-ratio: .72;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4vh;
  border-radius: .8vh;
  background: linear-gradient(160deg, #fff8e0, #f0d27a);
  box-shadow: inset 0 0 0 .35vh #d8b04a, 0 .8vh 1.6vh rgba(0, 0, 0, .5);
  color: #3b2a06;
}
.ar-pick-k { font: 900 clamp(6px, 1.05vh, 12px) var(--ar-wide); letter-spacing: .04em; }
.ar-pick-face b { font: 900 clamp(12px, 2.8vh, 30px) var(--ar-wide); }
.ar-pick-min { font: 800 clamp(8px, 1.4vh, 15px) var(--ar-font); }
.ar-rw-art.big { width: 18vh; }

/* באנר: בחירת שחקן מחכה */
.ar-pickbar { justify-self: end; display: flex; flex-direction: column; align-items: flex-start; gap: .5vh; padding: 1.8vh 1.6vw; border: 0; border-radius: 1.2vh; cursor: pointer; direction: rtl; text-align: right; color: #3b2a06; background: linear-gradient(160deg, #fff6d6, #f2cf63); box-shadow: 0 1.6vh 4vh rgba(0, 0, 0, .45); animation: pick-pulse 1.6s ease-in-out infinite; }
.ar-pickbar b { font: 900 clamp(13px, 2.4vh, 26px) var(--ar-font); }
.ar-pickbar span { font: 600 clamp(11px, 1.8vh, 19px) var(--ar-font); }
@keyframes pick-pulse { 50% { box-shadow: 0 1.6vh 4vh rgba(0, 0, 0, .45), 0 0 3vh rgba(255, 214, 90, .65); } }
.ar-pickbar.nav-focus, body.input-mouse .ar-pickbar:hover { outline: .35vh solid #fff; outline-offset: .5vh; animation: none; transform: translateY(-.4vh); }

/* ---------- פרסי עלייה (מסך מלא) ---------- */
.ar-up { position: absolute; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4vh; padding: 4vh 4vw; font-family: var(--ar-font); color: #fff; direction: ltr; background: radial-gradient(ellipse at 22% 18%, rgba(var(--ar-rgb), .55), transparent 58%), linear-gradient(135deg, #07090c 0%, rgba(var(--ar-rgb), .42) 55%, #07090c 100%), #07090c; animation: up-in .6s var(--ease-out) both; overflow: hidden; }
.ar-up[hidden] { display: none; }
@keyframes up-in { from { opacity: 0; } }
.ar-up-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse at 30% 10%, rgba(var(--ar-rgb), .35), transparent 55%), linear-gradient(115deg, transparent 60%, rgba(255, 255, 255, .07) 60.3%, transparent 75%); }
.ar-up-rays { position: absolute; left: 12vw; top: 8vh; width: 70vh; height: 70vh; translate: -50% -50%; background: repeating-conic-gradient(rgba(var(--ar-rgb), .14) 0 8deg, transparent 8deg 22deg); border-radius: 50%; mask: radial-gradient(circle, #000 30%, transparent 70%); animation: spin 26s linear infinite; }
.ar-up-head { position: relative; z-index: 1; align-self: flex-start; display: flex; align-items: center; gap: 2.4vw; }
.ar-up-emb { width: 17vh; image-rendering: pixelated; filter: drop-shadow(0 1.6vh 2vh rgba(0, 0, 0, .5)); animation: up-emb 1s cubic-bezier(.34, 1.56, .64, 1) .1s backwards; }
@keyframes up-emb { from { opacity: 0; transform: scale(.3) rotate(-25deg); } }
.ar-up-tx { display: flex; flex-direction: column; gap: .6vh; padding-left: 2.4vw; border-left: .3vh solid rgba(255, 255, 255, .3); }
.ar-up-k { font: 700 clamp(12px, 2.4vh, 26px) var(--ar-wide); letter-spacing: .08em; color: var(--ar); }
.ar-up-title { margin: 0; font: 900 clamp(22px, 6vh, 70px)/1.05 var(--ar-font); direction: rtl; text-align: left; }
.ar-up-sub { font: 700 clamp(13px, 2.4vh, 26px) var(--ar-font); color: rgba(255, 255, 255, .8); direction: rtl; text-align: left; }
.ar-up-row { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: center; gap: 4vw; }
.ar-up-item { display: flex; flex-direction: column; align-items: center; gap: 1.4vh; animation: up-item .7s cubic-bezier(.34, 1.56, .64, 1) backwards; animation-delay: calc(.35s + var(--i) * .15s); }
@keyframes up-item { from { opacity: 0; transform: translateY(6vh) scale(.8); } }
.ar-up-n { font: 900 clamp(14px, 3vh, 34px) var(--ar-font); }
.ar-up-name { max-width: 22vh; font: 600 clamp(12px, 2.1vh, 22px)/1.3 var(--ar-font); text-align: center; direction: rtl; color: rgba(255, 255, 255, .9); }
.ar-up-note { position: relative; z-index: 1; margin: 0; font: 500 clamp(11px, 1.9vh, 20px) var(--ar-font); color: rgba(255, 255, 255, .72); direction: rtl; }
.ar-up-go { position: relative; z-index: 1; }

/* ---------- עונות (24.11.2026) ---------- */
/* מסך סוף העונה: אותו עיצוב כמו פרסי העלייה, אבל מעל כל המשחק (גם מעל הסרגל העליון), כי הוא יכול להופיע בפתיחת המשחק */
.ar-up.ar-season { position: fixed; z-index: 400; gap: 3vh; }
.ar-se-next { position: relative; z-index: 1; display: flex; align-items: center; gap: 1.4vw; padding: 1.4vh 1.6vw; border-radius: 1.4vh; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 2px rgba(var(--ar-rgb), .6); direction: rtl; }
.ar-se-emb { width: 7vh; height: 7vh; object-fit: contain; image-rendering: pixelated; flex: none; }
.ar-se-tx { display: flex; flex-direction: column; gap: .5vh; text-align: right; }
.ar-se-tx b { font: 800 clamp(13px, 2.3vh, 25px) var(--ar-font); color: var(--ar); }
.ar-se-tx span { font: 500 clamp(11px, 1.8vh, 19px) var(--ar-font); color: rgba(255, 255, 255, .78); }
.ar-season-chip { background: rgba(var(--ar-rgb), .22); box-shadow: inset 0 0 0 1px rgba(var(--ar-rgb), .55); color: #fff; }

/* ---------- בחירת שחקן ---------- */
.ar-modal .modal-backdrop { background: rgba(2, 6, 12, .86); }
.ar-pick-body { flex-direction: column; gap: 3vh; font-family: var(--ar-font); color: #fff; }
.ar-pk-head { display: flex; flex-direction: column; align-items: center; gap: .8vh; text-align: center; }
.ar-pk-k { font: 800 clamp(11px, 2vh, 22px) var(--ar-wide); letter-spacing: .1em; color: #f2cf63; }
.ar-pk-title { margin: 0; font: 900 clamp(18px, 4.6vh, 50px) var(--ar-font); }
.ar-pk-sub { margin: 0; font: 500 clamp(11px, 1.9vh, 20px) var(--ar-font); color: rgba(255, 255, 255, .75); }
.ar-pk-row { display: flex; gap: 2.2vw; direction: ltr; }
.ar-pk-card { width: min(15vw, 30vh); padding: 0; border: 0; background: none; cursor: pointer; perspective: 120vh; }
.ar-pk-inner { position: relative; width: 100%; aspect-ratio: .729; transform-style: preserve-3d; transition: transform .7s var(--ease-out); transform: rotateY(180deg); }
.ar-pk-row.flip .ar-pk-inner { transform: rotateY(0); transition-delay: calc(var(--i) * .26s); }
.ar-pk-back, .ar-pk-face { position: absolute; inset: 0; backface-visibility: hidden; }
.ar-pk-back { transform: rotateY(180deg); display: grid; place-items: center; }
.ar-pk-back img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; filter: brightness(.55); }
.ar-pk-back b { position: relative; font: 900 clamp(24px, 8vh, 90px) var(--ar-wide); color: #f2cf63; text-shadow: 0 .6vh 0 rgba(0, 0, 0, .5); }
.ar-pk-card.nav-focus, body.input-mouse .ar-pk-card:hover { outline: none; animation: none; transform: translateY(-1.2vh); filter: drop-shadow(0 0 2vh rgba(255, 214, 90, .6)); }
.ar-pk-card { transition: transform .25s var(--ease-out), filter .25s; }
.ar-pk-card.sel { transform: translateY(-2vh) scale(1.04); filter: drop-shadow(0 0 3vh rgba(61, 255, 176, .8)); }
.ar-pk-ok:disabled { opacity: .45; }

/* ---------- כל הארנות ---------- */
.ar-ladder-body { flex-direction: column; align-items: stretch; gap: 2vh; width: min(70vw, 120vh); max-height: 88vh; font-family: var(--ar-font); color: #fff; }
.ar-ld-title { margin: 0; font: 900 clamp(18px, 4vh, 44px) var(--ar-font); text-align: center; }
.ar-ld-list { display: flex; flex-direction: column; gap: 1vh; overflow-y: auto; padding: .6vh 1vw; direction: ltr; }
.ar-ld-row { display: flex; align-items: center; gap: 1.6vw; padding: 1.2vh 1.4vw; border: 0; border-radius: 1.2vh; cursor: pointer; text-align: left; color: #fff; background: rgba(30, 40, 58, .9); box-shadow: inset .5vh 0 0 var(--ar); }
.ar-ld-row.cur { background: linear-gradient(90deg, rgba(var(--ar-rgb), .35), rgba(30, 40, 58, .95) 60%); }
.ar-ld-row.locked { opacity: .55; }
.ar-ld-row.nav-focus, body.input-mouse .ar-ld-row:hover { outline: .3vh solid #fff; outline-offset: .2vh; animation: none; }
.ar-ld-emb { width: 8vh; flex: none; image-rendering: pixelated; }
.ar-ld-tx { display: flex; flex-direction: column; gap: .4vh; min-width: 0; }
.ar-ld-name { display: flex; align-items: baseline; gap: .8vw; }
.ar-ld-name b { font: 900 clamp(14px, 2.8vh, 30px) var(--ar-wide); color: var(--ar); }
.ar-ld-name span { font: 700 clamp(11px, 2vh, 21px) var(--ar-font); }
.ar-ld-name em { font: 800 normal clamp(10px, 1.6vh, 17px) var(--ar-font); padding: .2vh .7vw; border-radius: 99px; background: #3dffb0; color: #0b1410; }
.ar-ld-meta, .ar-ld-rw { font: 500 clamp(10px, 1.75vh, 18px)/1.4 var(--ar-font); color: rgba(255, 255, 255, .8); direction: rtl; text-align: left; }
.ar-ld-rw.small { color: rgba(255, 255, 255, .6); }
.ar-ld-rw.small.season { color: #ffd54a; }
.ar-ld-name em.season { background: #ffd54a; color: #1a1406; }

/* ---------- "הקבוצה" במצב ארנה: לוח בדיקה ו-ADVANCE ---------- */
.ar-pre { display: none; }
/* המגרש מצטמצם ומשאיר עמודה משמאל ללוח, כדי שהלוח לא יכסה משבצות או את לשונית הספסל */
#myteam.arena-pre .sq-field { width: auto; margin-left: calc(min(22vw, 40vh) + 1.6vw); }
#myteam.arena-pre .ar-pre {
  position: absolute; z-index: 15; left: 2.5vw; bottom: 2.2vh;
  display: flex; flex-direction: column; gap: 1vh;
  width: min(22vw, 40vh); padding: 1.8vh 1.2vw;
  border-radius: 1.2vh; font-family: var(--ar-font); color: #fff;
  background: rgba(10, 16, 24, .92);
  box-shadow: inset 0 0 0 .25vh rgba(var(--ar-rgb), .7), 0 2vh 5vh rgba(0, 0, 0, .55);
  animation: gal-drop .6s var(--ease-out) .2s backwards;
}
#myteam.arena-pre .ar-pre.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { translate: -1vh 0; } 40%, 80% { translate: 1vh 0; } }
.ar-pre-head { display: flex; align-items: center; gap: .8vw; direction: ltr; }
.ar-pre-emb { width: 6vh; image-rendering: pixelated; }
.ar-pre-tx { display: flex; flex-direction: column; }
.ar-pre-tx b { font: 900 clamp(12px, 2.3vh, 24px) var(--ar-wide); color: var(--ar); }
.ar-pre-tx span { font: 600 clamp(10px, 1.6vh, 17px) var(--ar-font); color: rgba(255, 255, 255, .75); direction: rtl; text-align: left; }
.ar-pre-row { display: flex; align-items: center; gap: .6vw; font: 600 clamp(11px, 1.85vh, 19px) var(--ar-font); color: rgba(255, 255, 255, .85); }
.ar-pre-row b { margin-inline-start: auto; font-weight: 900; color: #ff8a75; direction: ltr; }
.ar-pre-row.ok b { color: #3dffb0; }
.ar-pre-chk { width: 2vh; height: 2vh; border-radius: 50%; flex: none; background: #ff6a55; position: relative; }
.ar-pre-row.ok .ar-pre-chk { background: #3dffb0; }
.ar-pre-row .ar-pre-chk::after { content: "✕"; position: absolute; inset: 0; display: grid; place-items: center; font: 900 1.3vh var(--ar-font); color: #1a0703; }
.ar-pre-row.ok .ar-pre-chk::after { content: "✓"; color: #052116; }
.ar-pre-go { margin-top: .6vh; justify-content: center; height: 5.8vh; font-size: clamp(12px, 2.2vh, 24px); }
.ar-adv-key { display: flex; }
.ar-adv-key .pad, .ar-adv-key .key { font-size: clamp(8px, 1.3vh, 13px); }

/* ================= המשחק במצב ארנה (js/match.js) ================= */
#match.arena .mt-top { background: linear-gradient(100deg, rgba(20, 90, 70, .45), rgba(6, 14, 14, .9) 70%); box-shadow: inset 0 0 0 4px #1d7a5c, inset 0 0 0 7px rgba(120, 255, 200, .12); }
.mt-team { position: relative; }
/* מד מומנטום */
.mt-mom { position: relative; width: min(22vw, 40vh); height: 1.4vh; margin-top: .4vh; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18); }
.mt-mom-mid { position: absolute; left: 50%; top: -.4vh; bottom: -.4vh; width: 2px; translate: -50% 0; background: #fff; }
.mt-mom-fill { position: absolute; top: 0; bottom: 0; width: var(--w, 0); transition: width .6s var(--ease-out), background .3s; }
.mt-mom.me .mt-mom-fill { right: 50%; background: linear-gradient(270deg, #3dffb0, #1aa874); }   /* הקבוצה שלך מימין */
.mt-mom.them .mt-mom-fill { left: 50%; background: linear-gradient(90deg, #ff6a55, #b8321c); }
/* דו-קרב */
.mt-duel { display: flex; align-items: center; justify-content: center; gap: 1.4vw; width: 100%; }
.mt-duel-row { display: flex; align-items: center; gap: .8vw; min-width: 16vw; padding: .8vh 1vw; border-radius: .8vh; font-family: var(--ar-font); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .15); transition: background .3s, box-shadow .3s; }
.mt-duel-row.me { flex-direction: row-reverse; }
.mt-duel-name { font: 800 clamp(11px, 2vh, 21px) var(--ar-wide); color: #fff; max-width: 12vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-duel-row.me .mt-duel-name { color: #3dffb0; }
.mt-duel-row.bot .mt-duel-name { color: #ff9a85; }
.mt-duel-st { margin-inline-start: auto; font: 700 clamp(10px, 1.8vh, 19px) var(--ar-font); color: rgba(255, 255, 255, .7); white-space: nowrap; }
.mt-duel-row.me .mt-duel-st { margin-inline-start: 0; margin-inline-end: auto; }
.mt-duel-row.answered { box-shadow: inset 0 0 0 2px #ffd54a; }
.mt-duel-row.answered .mt-duel-st { color: #ffd54a; }
.mt-duel-row.ok { background: rgba(30, 130, 70, .45); box-shadow: inset 0 0 0 2px #3ddc84; }
.mt-duel-row.ok .mt-duel-st { color: #b6ffd4; }
.mt-duel-row.bad { background: rgba(140, 40, 25, .45); box-shadow: inset 0 0 0 2px #c0584c; }
.mt-duel-row.bad .mt-duel-st { color: #ffc2b6; }
.mt-duel-vs { font: 900 clamp(12px, 2.4vh, 26px) var(--ar-wide); color: #ffd54a; }
.mt-ch.duel .mt-verdict { white-space: nowrap; }
/* חיפוש יריב */
.mt-search { --ar: #8be04e; min-width: min(46vw, 80vh); }
.mt-radar { position: relative; width: 24vh; height: 24vh; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(61, 255, 176, .12), rgba(5, 20, 16, .6) 70%); box-shadow: inset 0 0 0 .3vh rgba(61, 255, 176, .5); overflow: hidden; }
.mt-radar-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 72%, rgba(61, 255, 176, .6) 100%); animation: mt-radar-spin 2s linear infinite; }
@keyframes mt-radar-spin { to { transform: rotate(360deg); } }   /* סיבוב מלא. השובל נמצא מאחורי הקו */
.mt-radar-ring { position: absolute; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(61, 255, 176, .35); }
.mt-radar-ring.r1 { inset: 25%; }
.mt-radar-ring.r2 { inset: 45%; }
.mt-radar-emb { position: relative; width: 44%; image-rendering: pixelated; filter: drop-shadow(0 .6vh .8vh rgba(0, 0, 0, .5)); }
.mt-search.found .mt-radar-sweep { animation: none; opacity: 0; }
.mt-search.found .mt-radar { box-shadow: inset 0 0 0 .4vh #3dffb0, 0 0 4vh rgba(61, 255, 176, .6); animation: ar-pop .5s cubic-bezier(.34, 1.56, .64, 1); }
.mt-search-sub { display: flex; align-items: center; gap: 1.4vw; --u: max(1.4px, .28vh); }
.mt-search-clock { font-size: clamp(10px, 2vh, 20px); color: #3dffb0; }
.mt-search-names { min-height: 3.4vh; font: 700 clamp(12px, 2.4vh, 26px) var(--ar-wide); color: rgba(255, 255, 255, .5); direction: ltr; }
.mt-search-found { color: #fff; font-size: 1.3em; text-shadow: 0 0 2vh rgba(61, 255, 176, .7); }
/* מסך VS */
.mt-versus .mt-pre { gap: 4vw; }
.mt-prof { padding: 2vh 1.4vw; border-radius: 1.2vh; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 2px rgba(var(--ar-rgb, 255, 255, 255), .2); }
.mt-prof.me { animation: vs-l .6s var(--ease-out) backwards; }
.mt-prof.opp { animation: vs-r .6s var(--ease-out) backwards; }
@keyframes vs-l { from { opacity: 0; transform: translateX(8vw); } }
@keyframes vs-r { from { opacity: 0; transform: translateX(-8vw); } }
.mt-prof-name { font: 900 clamp(14px, 3vh, 32px) var(--ar-wide); direction: ltr; unicode-bidi: plaintext; max-width: 20vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-prof.me .mt-prof-name { color: #3dffb0; }
.mt-prof.opp .mt-prof-name { color: #ff9a85; }
.mt-prof-arena { display: flex; align-items: center; gap: .6vw; font: 800 clamp(10px, 1.8vh, 19px) var(--ar-wide); color: var(--ar); letter-spacing: .06em; }
.mt-prof-emb { width: 4.4vh; image-rendering: pixelated; }
.mt-versus .mt-pre-vs { animation: ar-pop .6s cubic-bezier(.34, 1.56, .64, 1) .3s backwards; }
/* קרב טקטיקות */
.mt-tac { gap: 2vh; min-width: min(70vw, 130vh); }
.mt-tac-rule { --u: max(1.3px, .26vh); display: flex; }
.mt-tac-opts { display: flex; gap: 1.6vw; }
.mt-tac-opt { display: flex; flex-direction: column; align-items: center; gap: 1vh; width: 18vw; padding: 2vh 1vw; border: 0; cursor: pointer; color: #fff; background: rgba(8, 18, 38, .88); box-shadow: inset 0 0 0 3px #1c4fa8; transition: transform .2s var(--ease-out), box-shadow .2s, opacity .3s; --u: max(1.6px, .32vh); }
.mt-tac-opt .px { display: flex; }
.mt-tac-desc { --u: max(1.2px, .24vh); text-align: center; }
.mt-tac-ico { width: 6vh; height: 6vh; background: #ffd54a; }
.t-att .mt-tac-ico { clip-path: polygon(0 35%, 55% 35%, 55% 10%, 100% 50%, 55% 90%, 55% 65%, 0 65%); background: #ff7a55; }
.t-bal .mt-tac-ico { clip-path: polygon(0 40%, 100% 40%, 100% 60%, 0 60%); background: #ffd54a; }
.t-def .mt-tac-ico { clip-path: polygon(50% 0, 100% 15%, 100% 55%, 50% 100%, 0 55%, 0 15%); background: #39a7ff; }
.mt-tac-opt.nav-focus, body.input-mouse .mt-tac-opt:hover { outline: none; animation: none; transform: translateY(-.6vh); box-shadow: inset 0 0 0 3px #ffd54a; }
.mt-tac.done .mt-tac-opt { pointer-events: none; opacity: .4; }
.mt-tac.done .mt-tac-opt.picked { opacity: 1; box-shadow: inset 0 0 0 3px #3dffb0; }
.mt-tac.done .mt-tac-opt.bot-pick { opacity: 1; box-shadow: inset 0 0 0 3px #ff6a55; }
.mt-tac.done .mt-tac-opt.picked.bot-pick { box-shadow: inset 0 0 0 3px #3dffb0, inset 0 0 0 6px #ff6a55; }
.mt-tac.done .mt-timer i { transition: none; }
.mt-tac-reveal { min-height: 7vh; display: flex; flex-direction: column; align-items: center; gap: 1vh; }
.mt-tac-line { display: flex; align-items: center; gap: 1vw; --u: max(1.5px, .3vh); animation: ar-pop .45s cubic-bezier(.34, 1.56, .64, 1); }
.mt-tac-bot { display: flex; align-items: center; gap: .3vw; }
.mt-tac-bot .mt-nm { font: 800 clamp(11px, 2vh, 21px) var(--ar-wide); color: #ff9a85; }
.mt-tac-verdict { --u: max(1.9px, .38vh); display: flex; animation: ar-pop .5s cubic-bezier(.34, 1.56, .64, 1) .25s backwards; }
/* תיקו */
.mt-result.draw { box-shadow: inset 0 0 0 4px #ffd54a, inset 0 0 0 7px rgba(255, 213, 74, .16), 0 2vh 6vh rgba(0, 0, 0, .55); }
.mt-res-note { --u: max(1.4px, .28vh); display: flex; }

/* ================= טלפון ================= */
html.mobile .gm-modes { grid-template-columns: 1fr; padding: 0 3vw 12vh; gap: 2vh; }
html.mobile .gm-mode { padding: 3vh 5vw; min-height: 30vh; }
html.mobile .gm-art { width: 38%; top: 4%; }
html.mobile .gm-title { font-size: clamp(30px, 6vh, 60px); }
html.mobile .gm-go { opacity: 1; translate: 0 0; }
html.mobile #arena { overflow-y: auto; padding-bottom: 12vh; }
html.mobile .ar-body { gap: 2.4vh; }
html.mobile .ar-title { font-size: clamp(24px, 4.6vh, 44px); }
html.mobile .ar-desc { max-width: none; }
html.mobile .ar-result { position: relative; align-self: stretch; }
html.mobile .ar-track { height: auto; gap: 1.5vw; padding: 3.4vh 2vw 0; }
html.mobile .ar-emb { width: 9vw; }
html.mobile .ar-node-sh { width: 6vw; height: 7vw; }
html.mobile .ar-node-sh b { font-size: 2.6vw; }
html.mobile .ar-node-rw { width: 3vw; height: 4.2vw; top: -2.6vw; right: -1.4vw; }
html.mobile .ar-bottom { grid-template-columns: 1fr; gap: 2.4vh; }
html.mobile .ar-pickbar { justify-self: stretch; }
html.mobile .ar-up-row { flex-wrap: wrap; gap: 4vw; }
html.mobile .ar-up-head { flex-direction: column; align-items: flex-start; }
html.mobile .ar-pk-row { flex-wrap: wrap; justify-content: center; }
html.mobile .ar-pk-card { width: 40vw; }
html.mobile .ar-ladder-body { width: 94vw; }
html.mobile #myteam.arena-pre .ar-pre { left: 3vw; right: 3vw; width: auto; bottom: calc(var(--safe-b, 0px) + 10vh); }
html.mobile .mt-duel { flex-direction: column; gap: .6vh; }
html.mobile .mt-duel-row { min-width: 70vw; }
html.mobile .mt-tac-opts { flex-direction: column; }
html.mobile .mt-tac-opt { width: 76vw; }
html.mobile .mt-tac { min-width: 0; }

/* ================= ארנה: רקע, הרכב היריב ודו-קרבות מיומנות (סבב 2) ================= */
/* במשחק ארנה הרקע הוא רקע הארנה (כהה עם קרני הצבע שלה), לא המגרש */
#match.arena::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 52%, rgba(var(--ar-rgb), .14) 52.2%, transparent 60%),
    linear-gradient(115deg, transparent 63%, rgba(var(--ar-rgb), .1) 63.2%, transparent 72%),
    radial-gradient(ellipse at 85% 20%, rgba(var(--ar-rgb), .22), transparent 55%),
    linear-gradient(180deg, #08110f, #050807);
}
#match.arena .mt-overlay { background: rgba(3, 6, 8, .72); }
#match.arena .mt-stage { background: rgba(3, 6, 8, .6); }
/* לפני שריקת הפתיחה (חיפוש והרכב היריב): בלי לוח תוצאה ובלי פיד, ישר על רקע הארנה */
#match.arena.pre .mt-top, #match.arena.pre .mt-body, #match.arena.pre .mt-tools { visibility: hidden; }
#match.arena.pre .mt-overlay { background: none; }
#match.arena .mt-search { background: none; box-shadow: none; clip-path: none; }
#match.arena .mt-search .mt-radar { box-shadow: inset 0 0 0 .3vh rgba(var(--ar-rgb), .6), 0 0 6vh rgba(var(--ar-rgb), .25); background: radial-gradient(circle, rgba(var(--ar-rgb), .14), rgba(5, 10, 10, .6) 70%); }
#match.arena .mt-radar-sweep { background: conic-gradient(from 0deg, transparent 72%, rgba(var(--ar-rgb), .65) 100%); }

/* מונה 1 על 1 בלוח התוצאה */
.mt-tally { display: flex; align-items: center; gap: .8vw; font: 700 clamp(10px, 1.6vh, 17px) var(--ar-font); color: rgba(255, 255, 255, .7); }
.mt-tally b { min-width: 2.4vh; padding: .1vh .5vh; border-radius: .5vh; text-align: center; font-weight: 900; color: #0b0f14; }
.mt-tally b.me { background: #3dffb0; }
.mt-tally b.them { background: #ff8a75; }

/* ---------- הרכב היריב ---------- */
.mt-lineup { display: flex; flex-direction: column; align-items: center; gap: 1.6vh; width: min(94vw, 150vh); font-family: var(--ar-font); color: #fff; animation: gal-drop .6s var(--ease-out) backwards; }
.mt-lu-head { display: flex; align-items: center; gap: 1.6vw; align-self: stretch; padding: 1.4vh 1.6vw; border-radius: 1.2vh; background: rgba(12, 18, 26, .82); box-shadow: inset 0 0 0 .25vh rgba(var(--ar-rgb), .55); }
.mt-lu-crest { width: 8vh; height: 8vh; object-fit: contain; image-rendering: auto; }
.mt-lu-who { display: flex; flex-direction: column; gap: .3vh; }
.mt-lu-k { font: 600 clamp(10px, 1.7vh, 18px) var(--ar-font); color: rgba(255, 255, 255, .65); }
.mt-lu-name { font: 900 clamp(16px, 3.6vh, 40px) var(--ar-wide); color: #ff9a85; direction: ltr; unicode-bidi: isolate; }
.mt-lu-arena { display: flex; align-items: center; gap: .5vw; font: 800 clamp(10px, 1.7vh, 18px) var(--ar-wide); color: var(--ar); letter-spacing: .05em; }
.mt-lu-emb { width: 3.6vh; image-rendering: pixelated; }
.mt-lu-stats { margin-inline-start: auto; display: flex; gap: 1vw; }
.mt-lu-stat { display: flex; flex-direction: column; align-items: center; gap: .3vh; min-width: 8vh; padding: .8vh 1vw; border-radius: .8vh; background: rgba(255, 255, 255, .06); }
.mt-lu-stat span { font: 600 clamp(9px, 1.5vh, 16px) var(--ar-font); color: rgba(255, 255, 255, .65); }
.mt-lu-stat b { font: 900 clamp(13px, 2.6vh, 28px) var(--ar-font); }
.mt-lu-field { position: relative; width: min(66vw, 98vh); height: 56vh; }
.mt-lu-pitch { position: absolute; inset: 0; width: 100%; height: 100%; }
.mt-lu-slot { position: absolute; left: var(--l); top: var(--t); width: 7.6vh; transform: translate(-50%, -54%) scale(var(--s, 1)); display: flex; flex-direction: column; align-items: center; gap: .3vh; animation: lu-pop .55s cubic-bezier(.34, 1.56, .64, 1) calc(.2s + var(--i) * 70ms) backwards; }
.mt-lu-slot > .card { width: 100%; }
@keyframes lu-pop { from { opacity: 0; transform: translate(-50%, -54%) scale(.3); } }
.mt-lu-pos { padding: .1vh .6vh; border-radius: .4vh; font: 800 clamp(8px, 1.3vh, 13px) var(--ar-font); color: #0b0f14; background: #ff8a75; }
.mt-lu-foot { display: flex; align-items: center; gap: 1.6vw; }
.mt-lu-note { --u: max(1.4px, .28vh); display: flex; }
.mt-lu-bar { width: 22vw; height: 1vh; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, .12); }
.mt-lu-bar i { display: block; height: 100%; background: var(--ar); transform-origin: right; transition: transform linear; }
.mt-lu-bar i.run { transform: scaleX(0); }

/* ---------- דו-קרבות מיומנות ---------- */
.mt-ch.sk { box-shadow: inset 0 0 0 4px var(--ar, #ffd54a), inset 0 0 0 7px rgba(255, 255, 255, .08), 0 2vh 6vh rgba(0, 0, 0, .6); }
.sk-vs { display: flex; align-items: center; justify-content: center; gap: 3vw; }
.sk-card { display: flex; flex-direction: column; align-items: center; gap: .6vh; width: min(9vw, 15vh); }
.sk-card > .card { width: 100%; }
.sk-who { font: 800 clamp(11px, 2vh, 21px) var(--ar-wide); max-width: 14vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-card.me .sk-who { color: #3dffb0; }
.sk-card.them .sk-who { color: #ff9a85; }
.sk-body { display: flex; flex-direction: column; align-items: center; gap: 1.8vh; }
.sk-sink { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
/* תגובה */
.sk-light { width: 16vh; height: 16vh; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 40% 35%, #ff8a75, #a8321c); box-shadow: 0 0 4vh rgba(255, 90, 60, .5); --u: max(1.8px, .36vh); }
.sk-light .px { display: flex; }
.sk-light.go { background: radial-gradient(circle at 40% 35%, #9dffcf, #1aa874); box-shadow: 0 0 6vh rgba(61, 255, 176, .8); animation: ar-pop .3s cubic-bezier(.34, 1.56, .64, 1); }
/* קרב לחיצות */
.sk-tug { position: relative; width: min(56vw, 100vh); height: 3vh; border-radius: 99px; background: linear-gradient(90deg, #b8321c 0 50%, #1aa874 50% 100%); box-shadow: inset 0 0 0 .3vh rgba(255, 255, 255, .25); }
.sk-knot { position: absolute; top: 50%; left: 50%; width: 5vh; height: 5vh; translate: -50% -50%; border-radius: 50%; background: #fff; box-shadow: 0 0 2vh rgba(255, 255, 255, .7), inset 0 0 0 .5vh #0b0f14; transition: left .12s; }
.sk-counts { display: flex; align-items: center; justify-content: center; gap: 4vw; width: 100%; }
.sk-counts b { min-width: 9vh; text-align: center; font: 900 clamp(18px, 5vh, 54px) var(--ar-font); }
.sk-counts b.me { color: #3dffb0; }
.sk-counts b.them { color: #ff8a75; }
.sk-count { --u: max(2.4px, .5vh); display: flex; }
.sk-count.go { animation: ar-pop .35s cubic-bezier(.34, 1.56, .64, 1); }
/* מד מול מד */
.sk-gauge { width: min(56vw, 100vh); }
.sk-line { position: absolute; left: 50%; top: -.6vh; bottom: -.6vh; width: .5vh; translate: -50% 0; background: #ffd54a; box-shadow: 0 0 1.4vh #ffd54a; }
.sk-botmark { background: #c08cff; box-shadow: 0 0 1.6vh #c08cff; opacity: 0; transition: left .5s var(--ease-out), opacity .3s; left: 50%; }
.sk-botmark.show { opacity: 1; }
/* 1 על 1 */
.sk-goal { position: relative; width: min(46vw, 80vh); height: 13vh; border: .7vh solid #fff; border-bottom: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 2.4vh), repeating-linear-gradient(0deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 2.4vh); }
.sk-keeper { position: absolute; bottom: 0; left: 50%; width: 5vh; height: 10vh; translate: -50% 0; border-radius: 1.4vh 1.4vh .4vh .4vh; background: #ff6a55; box-shadow: 0 0 2vh rgba(255, 106, 85, .6); transition: left .45s var(--ease-out), rotate .45s var(--ease-out), translate .45s var(--ease-out); }
.sk-keeper.mine { background: #3dffb0; box-shadow: 0 0 2vh rgba(61, 255, 176, .6); }
.sk-keeper.dive-L { left: 17%; rotate: -70deg; }
.sk-keeper.dive-R { left: 83%; rotate: 70deg; }
.sk-keeper.dive-C { translate: -50% -1.5vh; }
.sk-dirs { width: min(46vw, 80vh); direction: ltr; }
.sk-dirs .mt-opt { direction: rtl; min-height: 8vh; }
.sk-dirs .mt-opt .px { --u: max(1.8px, .36vh); display: flex; }
.sk-dirs .mt-opt.picked { box-shadow: inset 0 0 0 3px #3dffb0; background: rgba(30, 130, 70, .5); }
.mt-ch.sk.answered .sk-dirs .mt-opt { pointer-events: none; }

html.mobile .mt-lu-head { flex-wrap: wrap; }
html.mobile .mt-lu-field { width: 92vw; height: 46vh; }
html.mobile .mt-lu-slot { width: 9vw; }
html.mobile .sk-card { width: 20vw; }
html.mobile .sk-tug, html.mobile .sk-gauge, html.mobile .sk-goal, html.mobile .sk-dirs { width: 80vw; }

/* ================= סבב 3 ================= */
/* "הקבוצה" לפני משחק ארנה: רקע הארנה הכהה, כמו בחיפוש ובמשחק */
#myteam.arena-pre::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 52%, rgba(var(--ar-rgb), .14) 52.2%, transparent 60%),
    linear-gradient(115deg, transparent 63%, rgba(var(--ar-rgb), .1) 63.2%, transparent 72%),
    radial-gradient(ellipse at 85% 20%, rgba(var(--ar-rgb), .22), transparent 55%),
    linear-gradient(180deg, #08110f, #050807);
}
.ar-pre-power { display: flex; flex-direction: column; gap: .3vh; padding: .8vh .6vw; border-radius: .8vh; background: rgba(255, 255, 255, .06); }
.ar-pre-power span { font: 800 clamp(11px, 1.85vh, 19px) var(--ar-font); color: #fff; }
.ar-pre-power small { font: 500 clamp(9px, 1.45vh, 15px)/1.35 var(--ar-font); color: rgba(255, 255, 255, .65); }

/* חילופים במחצית */
.mt-subs { gap: 1.4vh; width: min(92vw, 160vh); }
.mt-subs-info { display: flex; gap: 1.2vw; font-family: var(--ar-font); color: #fff; }
.mt-subs-stat { display: flex; flex-direction: column; align-items: center; gap: .2vh; min-width: 10vh; padding: .6vh 1vw; border-radius: .8vh; background: rgba(255, 255, 255, .07); }
.mt-subs-stat span { font: 600 clamp(9px, 1.5vh, 16px) var(--ar-font); color: rgba(255, 255, 255, .65); }
.mt-subs-stat b { font: 900 clamp(13px, 2.5vh, 27px) var(--ar-font); }
.mt-subs-label { --u: max(1.4px, .28vh); display: flex; align-self: flex-start; }
.mt-subs-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .8vh .7vw; width: 100%; }
.mt-sub { position: relative; display: flex; flex-direction: column; align-items: center; gap: .3vh; width: min(6.6vw, 10.5vh); padding: .4vh; border: 0; border-radius: .8vh; cursor: pointer; background: none; transition: transform .2s var(--ease-out), box-shadow .2s; }
.mt-sub > .card { width: 100%; }
.mt-sub:disabled { opacity: .3; cursor: default; }
.mt-sub-pos { padding: .1vh .6vh; border-radius: .4vh; font: 800 clamp(8px, 1.3vh, 13px) var(--ar-font); color: #0b0f14; background: #3dffb0; }
.mt-subs-row.bench .mt-sub-pos { background: #9fb3c8; }
.mt-sub.off .mt-sub-pos { background: #ff8a75; }   /* מחוץ לעמדה */
.mt-sub.sel { transform: translateY(-1vh); box-shadow: 0 0 0 .4vh #ffd54a, 0 0 2.4vh rgba(255, 213, 74, .6); }
.mt-sub.nav-focus, body.input-mouse .mt-sub:not(:disabled):hover { outline: none; animation: none; transform: translateY(-.6vh); box-shadow: 0 0 0 .3vh #fff; }
.mt-sub.sel.nav-focus { box-shadow: 0 0 0 .4vh #ffd54a, 0 0 0 .7vh #fff; }
html.mobile .mt-sub { width: 17vw; }
