/* ============================================================
   arena.css · זירת הגיבורים (משחק מאת הראל שקד)
   על הטוקנים של dy.css: לילה כחול-סגול, נייר שמנת, קו דיו, צל קשיח, Daniel Letters לכותרות.
   תנועה קפיצית (--spring), הכל נעצר בלי js-motion. בלי גלילה הצידה בשום רוחב.
   ============================================================ */
.arena {
  --bg-a: #2a1f5c; --bg-b: #17123a; --red: #ff4a5c; --green: #5fd38d; --ice: #9fe6ff; --tox: #8be06b;
  --t1: #c9d3ff; --t2: #f5c842;
  min-height: 100vh; min-height: 100dvh; background: var(--bg-b); color: var(--text); overflow-x: clip;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
.arena[data-screen="battle"], .arena[data-screen="onboard"] { padding-bottom: 0; }
.arena .dic { display: inline-block; flex: none; vertical-align: -.2em; overflow: visible; }
.arena h1, .arena h2, .arena h3 { font-family: var(--f-brand); font-weight: 900; margin: 0; }
.arena p { margin: 0; }

/* רקע */
.abg { position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg-a), var(--bg-b) 70%); }
.abg__glow { position: absolute; inset: 0; background: radial-gradient(110% 60% at 50% 0%, rgba(245, 200, 66, .16), transparent 70%); transition: background .8s var(--ease); }
.arena.is-enemy .abg__glow { background: radial-gradient(110% 60% at 50% 0%, rgba(255, 74, 92, .22), transparent 70%); }
.abg__dots { position: absolute; inset: 0; background: radial-gradient(rgba(10, 11, 34, .4) 1.3px, transparent 1.8px) 0 0 / 9px 9px; }

/* רקע לכל זירה בזמן קרב (התמונות מ-Flow): לאורך בטלפון, לרוחב במחשב, עם הכהיה כדי שהקלפים יישארו קריאים */
.abg__art { position: absolute; inset: 0; opacity: 0; background: center / cover no-repeat; transition: opacity .8s var(--ease); }
.abg__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 10, 38, .45), rgba(14, 10, 38, .64) 45%, rgba(14, 10, 38, .86)); }
.arena[data-screen="battle"][data-zone] .abg__art { opacity: 1; }
.arena[data-zone="hood"] .abg__art { background-image: url(../assets/arena/bg/hood-wide.webp?v=1); }
.arena[data-zone="city"] .abg__art { background-image: url(../assets/arena/bg/city-wide.webp?v=1); }
.arena[data-zone="storm"] .abg__art { background-image: url(../assets/arena/bg/storm-wide.webp?v=1); }
.arena[data-zone="mirror"] .abg__art { background-image: url(../assets/arena/bg/mirror-wide.webp?v=1); }
@media (orientation: portrait) {
  .arena[data-zone="hood"] .abg__art { background-image: url(../assets/arena/bg/hood-tall.webp?v=1); }
  .arena[data-zone="city"] .abg__art { background-image: url(../assets/arena/bg/city-tall.webp?v=1); }
  .arena[data-zone="storm"] .abg__art { background-image: url(../assets/arena/bg/storm-tall.webp?v=1); }
  .arena[data-zone="mirror"] .abg__art { background-image: url(../assets/arena/bg/mirror-tall.webp?v=1); }
}
.arena[data-screen="battle"][data-zone] .abg__dots { opacity: .35; }

/* ---------- סרגל עליון ---------- */
.atop { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 8px; padding: max(8px, env(safe-area-inset-top)) 12px 8px; background: linear-gradient(180deg, rgba(23, 18, 58, .96), rgba(23, 18, 58, .7) 80%, transparent); }
.atop__back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font: 700 .9rem var(--f-brand); min-height: 40px; padding-inline: 4px; }
.atop__back:hover { color: var(--text); }
.atop__backt, .atop__howt { display: none; }
.atop__brand { all: unset; cursor: pointer; font: 900 1.12rem/1 var(--f-brand); color: var(--gold); text-shadow: 2px 2px 0 var(--ink); white-space: nowrap; transition: transform .4s var(--spring); }
.atop__brand:hover { transform: rotate(-3deg) scale(1.05); }
.atop__hud { flex: 1; display: flex; justify-content: center; gap: 6px; min-width: 0; }
.atop .pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: var(--r-pill); background: rgba(10, 11, 34, .55); border: 2px solid rgba(255, 224, 138, .45); font: 900 .9rem/1 var(--f-brand); color: var(--gold-hi); white-space: nowrap; }
.atop .pill--cards { display: none; }
.atop__how { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: var(--r-pill); background: #fff; color: var(--ink); border: 2px solid var(--ink); box-shadow: 2px 3px 0 var(--ink); font: 900 .88rem/1 var(--f-brand); }
.atop__q { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); border: 2px solid var(--ink); font-size: .85rem; }
.atop .gsfx { flex: none; }
.atop a:focus-visible, .atop button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
@media (min-width: 640px) {
  .atop { padding-inline: 20px; gap: 12px; }
  .atop__backt, .atop__howt { display: inline; }
  .atop__how { padding-inline: 8px 12px; }
  .atop__brand { font-size: 1.35rem; }
  .atop .pill--cards { display: inline-flex; }
}
.arena[data-screen="battle"] .atop__hud, .arena[data-screen="battle"] .atop__back { visibility: hidden; }

/* ---------- לשוניות: למטה בטלפון, למעלה במחשב ---------- */
.atabs { position: fixed; z-index: 45; inset: auto 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(16, 12, 42, .96); border-top: 2.5px solid var(--ink); box-shadow: 0 -6px 20px rgba(3, 4, 20, .5); }
.arena[data-screen="battle"] .atabs, .arena[data-screen="onboard"] .atabs { display: none; }
.atab { all: unset; cursor: pointer; display: grid; justify-items: center; gap: 2px; padding: 6px 0 4px; border-radius: 12px; font: 800 .78rem/1 var(--f-brand); color: var(--muted); transition: background .2s, color .2s; }
.atab .dic { width: 26px; height: 26px; transition: transform .35s var(--spring); }
.atab.is-on { color: var(--gold); background: rgba(245, 200, 66, .12); }
.atab.is-on .dic { transform: translateY(-2px) rotate(-6deg) scale(1.08); }
.atab:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
@media (min-width: 900px) {
  .arena { padding-bottom: 40px; }
  .atabs { position: sticky; inset: auto; top: 62px; width: min(620px, 100% - 40px); margin: 4px auto 0; border: 2.5px solid var(--ink); border-radius: var(--r-pill); padding: 5px; box-shadow: 4px 5px 0 var(--ink); background: rgba(23, 18, 58, .94); }
  .atab { grid-auto-flow: column; align-items: center; gap: 6px; padding: 8px 4px; border-radius: var(--r-pill); font-size: .95rem; }
  .atab .dic { width: 22px; height: 22px; }
}

.amain { width: min(1120px, 100% - 32px); margin: 0 auto; padding: 14px 0 32px; min-width: 0; }
.arena[data-screen="battle"] .amain { width: min(980px, 100% - 16px); padding: 0; }

/* ---------- טיפוגרפיה משותפת ---------- */
.arena .kick { display: inline-block; background: var(--ink); color: var(--gold); font: 900 .88rem var(--f-brand); padding: 4px 12px; transform: rotate(1deg); }
.arena .lead { color: var(--muted); font-size: var(--fs-lead); line-height: 1.55; max-width: 38ch; text-wrap: balance; }
.arena .logo { display: grid; justify-items: center; width: fit-content; padding: 12px 26px 16px; background: var(--gold); color: var(--ink); border: 4px solid var(--ink); box-shadow: 7px 7px 0 var(--ink); transform: rotate(-2deg); font: 900 clamp(2.6rem, 1.8rem + 5vw, 4.8rem)/.92 var(--f-brand); }
.arena .logo span:last-child { color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--red); }
.arena .logo--sm { font-size: clamp(2.1rem, 1.6rem + 2.6vw, 3.4rem); padding: 10px 20px 12px; }
.js-motion .arena .logo { animation: apop .8s var(--spring) both; }
@keyframes apop { from { transform: rotate(-8deg) scale(.6); opacity: 0; } }
.phead { display: grid; gap: 8px; justify-items: start; margin: 6px 0 18px; }
.phead h1 { font-size: clamp(2rem, 1.5rem + 2.6vw, 3.2rem); color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--ink); line-height: 1.05; }
.phead p:not(.kick) { color: var(--muted); max-width: 60ch; line-height: 1.55; text-wrap: pretty; }
.arena .sub { font-size: 1.4rem; color: var(--gold); text-shadow: 2px 2px 0 var(--ink); margin: 26px 0 12px; }
.empty { color: var(--muted); padding: 18px; text-align: center; border: 2px dashed var(--line); border-radius: var(--r); }
.note { color: var(--muted); font-size: .95rem; line-height: 1.55; margin: 14px 0 !important; max-width: 70ch; }
.home__credit { color: var(--faint); font-size: .88rem; text-align: center; margin-top: 26px !important; }

/* ---------- קלף חבר ---------- */
.fc { all: unset; box-sizing: border-box; position: relative; display: grid; grid-template-rows: auto 1fr; min-width: 0; background: var(--paper); color: var(--paper-ink); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 4px 5px 0 var(--ink); overflow: hidden; transition: transform .35s var(--spring), box-shadow .25s var(--ease); }
button.fc { cursor: pointer; }
button.fc:hover { transform: translate(-2px, -3px) rotate(-.6deg); box-shadow: 6px 8px 0 var(--ink); }
button.fc:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.fc__art { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; background: var(--acc); border-bottom: 3px solid var(--ink); }
.fc__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fc__fam { position: absolute; top: 6px; inset-inline-start: 6px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.fc__fam .dic { width: 18px; height: 18px; }
.tier { position: absolute; top: 8px; inset-inline-end: 6px; padding: 3px 10px 3px 8px; font: 900 .78rem/1 var(--f-brand); font-style: normal; color: var(--ink); border: 2.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); transform: rotate(3deg); }
.tier--0 { background: #e7e9f6; } .tier--1 { background: var(--t1); background: linear-gradient(135deg, #f2f5ff, #a9b7f0); } .tier--2 { background: linear-gradient(135deg, #ffe08a, #f5c842 50%, #ff9f6b); }
.odds .tier, .sell .tier, .pull .tier { position: static; display: inline-block; transform: none; box-shadow: none; padding: 2px 8px; font-size: .74rem; }
.fc--t1 { border-color: #3b4a9a; box-shadow: 4px 5px 0 #3b4a9a; }
.fc--t1 .fc__art { border-bottom-color: #3b4a9a; }
.fc--t2 { border-color: #a5700f; box-shadow: 4px 5px 0 var(--ink), 0 0 0 3px #f5c842; }
.fc__foil { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: .55;
  background: repeating-linear-gradient(110deg, var(--s1, #f5c842) 0%, var(--s2, #ff6fa8) 7%, var(--s3, #86dbe6) 14%, var(--s4, #9ee6c9) 21%, var(--s5, #c9a0ff) 28%, var(--s1, #f5c842) 35%) 0 0 / 300% 300%;
  -webkit-mask: var(--fm) 33.333% 0 / 400% 100% no-repeat; mask: var(--fm) 33.333% 0 / 400% 100% no-repeat; }
.js-motion .fc__foil { animation: foil 6s linear infinite; }
@keyframes foil { to { background-position: 300% 0; } }
.fc__body { display: grid; align-content: start; gap: 5px; padding: 7px 8px 9px; min-width: 0; }
.fc__name { font: 900 .86rem/1.1 var(--f-brand); letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: start; }
.acts { display: flex; flex-wrap: wrap; gap: 4px; }
.act { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px 2px 5px; border-radius: 8px; font: 700 .76rem/1.25 var(--f-text); background: #fff; border: 1.5px solid rgba(10, 11, 34, .35); }
.act .dic { width: 15px; height: 15px; }
.act b { font: 900 .9rem/1 var(--f-brand); }
.act--dmg { background: #ffe0e4; } .act--freeze { background: #dff6ff; } .act--poison { background: #e4f8d8; } .act--heal { background: #ffe4ec; }
.act--armor { background: #e0f4f7; } .act--boost { background: #fff3c4; } .act--cleanse { background: #e8fff8; }
.fc__ex { color: #6b5f9a; font-size: .74rem; }

/* ---------- פתיחה ---------- */
.onb { display: grid; gap: 16px; justify-items: center; text-align: center; max-width: 860px; margin: 0 auto; padding-top: 8px; }
.onb__name { display: grid; gap: 6px; justify-items: start; width: min(420px, 100%); font: 800 1rem var(--f-brand); text-align: start; }
.onb__name input { width: 100%; box-sizing: border-box; font: 700 1.05rem var(--f-text); padding: 12px 14px; border-radius: 12px; border: 3px solid var(--ink); background: var(--paper); color: var(--paper-ink); box-shadow: 3px 4px 0 var(--ink); }
.onb__name input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.onb__cap { display: grid; gap: 8px; width: 100%; padding: 16px; background: rgba(10, 11, 34, .35); border: 2.5px solid var(--ink); border-radius: var(--r-lg); }
.onb__cap h2 { font-size: 1.6rem; color: var(--gold); text-shadow: 2px 2px 0 var(--ink); }
.onb__cap > p { color: var(--muted); }
.onb__go { position: sticky; bottom: 0; width: 100%; padding: 12px 0 calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg-b) 40%); }
.btn.go { --b-bg: var(--gold); min-height: 54px; font-size: 1.15rem; padding-inline: 28px; }
.arena .btn .dic { width: 20px; height: 20px; }
.arena .btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.pick { display: grid; gap: 10px; text-align: start; }
.pick__q { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 12px; border: 2.5px solid var(--ink); background: var(--paper); color: var(--paper-ink); }
.pick__q input { flex: 1; min-width: 0; border: 0; background: none; font: 600 1rem var(--f-text); padding: 11px 0; color: inherit; outline: 0; }
.pick__q:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.pick__fam { font: 700 1rem var(--f-text); padding: 11px 12px; border-radius: 12px; border: 2.5px solid var(--ink); background: var(--paper); color: var(--paper-ink); min-width: 0; max-width: 100%; }
.pick__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; max-height: min(52vh, 560px); overflow-y: auto; padding: 4px 4px 8px; overscroll-behavior: contain; }
.pk { all: unset; cursor: pointer; display: grid; gap: 4px; justify-items: center; text-align: center; padding: 5px 5px 7px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 2.5px solid transparent; transition: transform .3s var(--spring), border-color .2s, background .2s; }
.pk img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; border: 2.5px solid var(--ink); }
.pk b { font: 900 .74rem/1.1 var(--f-brand); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk small { display: inline-flex; align-items: center; gap: 3px; font-size: .7rem; color: var(--muted); }
.pk small .dic { width: 13px; height: 13px; }
.pk:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .1); }
.pk.is-on { border-color: var(--gold); background: rgba(245, 200, 66, .18); transform: translateY(-3px) rotate(-1.5deg); }
.pk:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- בית ---------- */
.home__hero { display: grid; gap: 22px; align-items: center; }
.home__copy { display: grid; gap: 14px; justify-items: start; }
.home__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.home__cap { margin: 0; display: grid; gap: 10px; justify-items: center; }
.home__cap figcaption { font: 800 .95rem var(--f-brand); color: var(--gold-hi); }
.fc--cap { width: min(250px, 66vw); transform: rotate(2.5deg); }
.fc--cap .fc__name { font-size: 1.05rem; }
.js-motion .fc--cap { animation: abob 6s ease-in-out infinite; }
@keyframes abob { 50% { translate: 0 -8px; } }
.home__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.hst { display: grid; gap: 4px; align-content: start; padding: 12px 14px; border-radius: var(--r); background: rgba(10, 11, 34, .4); border: 2px solid var(--line); }
.hst > .dic { width: 24px; height: 24px; }
.hst b { font: 900 1.35rem/1 var(--f-brand); }
.hst small { color: var(--muted); font-size: .86rem; }
.xpbar { display: block; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .12); border: 2px solid var(--ink); overflow: hidden; }
.xpbar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #ffb36b); }
.home__modes { display: grid; gap: 12px; margin-top: 22px; }
.hmode { all: unset; cursor: pointer; display: grid; grid-template-columns: 56px 1fr; grid-template-areas: "ic t" "ic s"; gap: 2px 14px; align-items: center; padding: 14px 16px; background: var(--paper); color: var(--paper-ink); border: 3px solid var(--ink); border-radius: var(--r); box-shadow: 4px 5px 0 var(--ink); transition: transform .35s var(--spring), box-shadow .25s; }
.hmode:hover { transform: translate(-2px, -3px); box-shadow: 6px 8px 0 var(--ink); }
.hmode:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.hmode__ic { grid-area: ic; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--gold); border: 2.5px solid var(--ink); }
.hmode__ic .dic { width: 30px; height: 30px; }
.hmode b { grid-area: t; font: 900 1.2rem var(--f-brand); }
.hmode > span:last-child { grid-area: s; color: #4a4470; font-size: .92rem; line-height: 1.4; }
@media (min-width: 760px) {
  .home__hero { grid-template-columns: 1fr auto; padding: 10px 0; }
  .home__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home__modes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hmode { grid-template-columns: 1fr; grid-template-areas: "ic" "t" "s"; justify-items: start; gap: 8px; }
}

/* ---------- מפה ---------- */
.rivalbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; margin-bottom: 18px; border-radius: var(--r); background: rgba(10, 11, 34, .45); border: 2px solid var(--line); }
.rivalbar > span { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rivalbar > span > span { display: grid; gap: 2px; }
.rivalbar small { color: var(--muted); }
.trail { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 18px; max-width: 760px; position: relative; }
.trail::before { content: ""; position: absolute; top: 10px; bottom: 10px; inset-inline-start: 25px; width: 6px; border-radius: 6px; background: repeating-linear-gradient(180deg, var(--gold) 0 14px, transparent 14px 24px); opacity: .55; }
.zone { display: grid; gap: 2px; padding: 12px 18px 12px 14px; margin-top: 10px; margin-inline-start: 50px; background: var(--ink); color: var(--gold); transform: rotate(-1deg); width: fit-content; box-shadow: 4px 4px 0 rgba(0, 0, 0, .35); }
.zone span { font: 800 .8rem var(--f-brand); color: var(--muted); }
.zone b { font: 900 1.5rem/1 var(--f-brand); }
.zone small { color: var(--faint); font-size: .85rem; }
.node { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: start; }
.node__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); font: 900 1.3rem var(--f-brand); }
.node__dot .dic { width: 28px; height: 28px; }
.node.is-cur .node__dot { background: var(--gold); }
.js-motion .node.is-cur .node__dot { animation: apulse 1.8s ease-in-out infinite; }
@keyframes apulse { 50% { box-shadow: 3px 3px 0 var(--ink), 0 0 0 9px rgba(245, 200, 66, .25); } }
.node__card { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 12px; background: var(--paper); color: var(--paper-ink); border: 3px solid var(--ink); border-radius: var(--r); box-shadow: 4px 5px 0 var(--ink); min-width: 0; }
.node:nth-of-type(even) .node__card { rotate: .4deg; } .node:nth-of-type(odd) .node__card { rotate: -.4deg; }
.node.is-locked .node__card { opacity: .62; filter: saturate(.4); }
.node.is-done .node__card { background: #eef7ea; }
.node.is-boss .node__card { background: linear-gradient(135deg, #fff2c4, var(--paper) 60%); border-width: 3.5px; }
.node__vils { display: flex; }
.node__vils .vil { width: 50px; margin-inline-start: -14px; }
.node__vils .vil:first-child { margin-inline-start: 0; }
.node.is-boss .node__vils .vil { width: 70px; }
.node__txt { display: grid; gap: 4px; min-width: 0; }
.node__txt small { font: 800 .8rem var(--f-brand); color: #6b5f9a; }
.node__txt h3 { font-size: 1.2rem; line-height: 1.1; }
.node__txt p { font-size: .9rem; color: #4a4470; line-height: 1.4; }
.node__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.node__meta > span { display: inline-flex; align-items: center; gap: 4px; font: 800 .9rem var(--f-brand); }
.node__tip { grid-column: 1 / -1; display: flex; gap: 6px; align-items: center; font-size: .85rem; background: #fff3c4; border: 2px solid var(--ink); border-radius: 10px; padding: 6px 10px; }
.fogwall { position: relative; display: grid; justify-items: center; gap: 4px; padding: 30px 16px; margin-inline-start: 50px; text-align: center; border-radius: var(--r-lg); background: radial-gradient(70% 90% at 50% 50%, rgba(184, 182, 226, .25), transparent 75%); }
.fogwall .dic { width: 54px; height: 54px; }
.fogwall b { font: 900 1.2rem var(--f-brand); }
.fogwall small { color: var(--muted); }
.js-motion .fogwall .dic { animation: afog 4s ease-in-out infinite; }
@keyframes afog { 50% { transform: translateX(-10px); opacity: .6; } }

/* ---------- נבל (ציור זמני עד התמונות מ-Flow) ---------- */
.vil { display: inline-block; flex: none; width: 64px; aspect-ratio: 5 / 6; border: 2.5px solid var(--ink); border-radius: 10px; overflow: hidden; background: var(--vc, #3a2c6e); box-shadow: 2px 2px 0 var(--ink); }
.vil svg, .vil img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vil img { object-position: 50% 22%; }
.vil--sm { width: 44px; } .vil--lg { width: min(150px, 30vw); border-width: 3.5px; border-radius: 14px; box-shadow: 4px 5px 0 var(--ink); }
.vil--q { display: grid; place-items: center; font: 900 1.6rem var(--f-brand); color: var(--muted); background: #2a2350; }

/* ---------- חפיסה ---------- */
.deck__bar { position: sticky; top: 58px; z-index: 20; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 12px; border-radius: var(--r); background: rgba(23, 18, 58, .95); border: 2.5px solid var(--ink); box-shadow: 3px 4px 0 var(--ink); }
@media (min-width: 900px) { .deck__bar { top: 122px; } }
.deck__count { font: 900 1.5rem/1 var(--f-brand); color: var(--gold); }
.deck__count.is-full { color: var(--green); }
.mix { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: .9rem; }
.mix span { display: inline-flex; align-items: center; gap: 4px; }
.deck__btns { margin-inline-start: auto; }
.slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.slots .fc__body { padding: 5px; } .slots .fc__name { font-size: .66rem; } .slots .act { padding: 1px 4px; } .slots .act .dic { width: 12px; height: 12px; } .slots .act b { font-size: .74rem; }
.slots .fc__fam { width: 22px; height: 22px; top: 4px; inset-inline-start: 4px; } .slots .fc__fam .dic { width: 13px; height: 13px; }
.slots .tier { font-size: .6rem; padding: 2px 5px; top: 5px; }
.fc__x { position: absolute; bottom: 5px; inset-inline-end: 5px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); opacity: 0; transition: opacity .2s; }
.fc__x .dic { width: 13px; height: 13px; }
.fc--slot:hover .fc__x, .fc--slot:focus-visible .fc__x { opacity: 1; }
@media (hover: none) { .fc__x { opacity: .9; } }
.slot-empty { display: grid; place-items: center; align-content: center; gap: 4px; min-height: 120px; border: 2.5px dashed rgba(206, 214, 255, .35); border-radius: 14px; color: var(--muted); text-align: center; }
.slot-empty b { font: 900 1.2rem var(--f-brand); }
.slot-empty small { font-size: .72rem; }
@media (min-width: 760px) { .slots { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; } .slots .fc__name { font-size: .8rem; } }
.coll__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 26px 0 12px; }
.coll__head h2 { font-size: 1.4rem; color: var(--gold); text-shadow: 2px 2px 0 var(--ink); margin-inline-end: auto; }
.coll__head .pick__q { flex: 1 1 180px; } .coll__head .pick__fam { flex: 1 1 180px; }
.coll { display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 14px; }
@media (max-width: 520px) {
  .coll { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .coll .fc__body { padding: 5px; gap: 4px; } .coll .fc__name { font-size: .7rem; }
  .coll .act { font-size: .66rem; padding: 1px 4px; } .coll .act .dic { width: 12px; height: 12px; }
  .coll .fc__fam { width: 24px; height: 24px; } .coll .fc__fam .dic { width: 14px; height: 14px; }
  .coll .tier { font-size: .62rem; padding: 2px 5px; }
  .coll .fc__in .dic { width: 34px; height: 34px; }
  .coll--shop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.coll .fc.is-in { box-shadow: 4px 5px 0 var(--ink), 0 0 0 3px var(--green); }
.coll .fc.is-in .fc__art img { filter: saturate(.7) brightness(.85); }
.fc__in { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(95, 211, 141, .2); }
.fc__in .dic { width: 46px; height: 46px; filter: drop-shadow(2px 2px 0 var(--ink)); }
.fc.is-sold { opacity: .55; }
.buy { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.buy small { font-size: .74rem; color: #6b5f9a; }
.buy .btn { min-height: 36px; padding: 6px 12px; font-size: .9rem; }

/* ---------- חנות ---------- */
.seg { position: sticky; top: 58px; z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 5px; margin-bottom: 16px; border-radius: var(--r-pill); background: rgba(23, 18, 58, .95); border: 2.5px solid var(--ink); box-shadow: 3px 4px 0 var(--ink); }
@media (min-width: 900px) { .seg { top: 122px; } }
.seg__b { all: unset; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 4px; border-radius: var(--r-pill); font: 800 .88rem/1 var(--f-brand); color: var(--muted); text-align: center; }
.seg__b .dic { width: 18px; height: 18px; }
.seg__b.is-on { background: var(--gold); color: var(--ink); }
.seg__b:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (max-width: 420px) { .seg__b .dic { display: none; } .seg__b { font-size: .82rem; } }
.packs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pack { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 16px; background: var(--paper); color: var(--paper-ink); border: 3px solid var(--ink); border-radius: var(--r-lg); box-shadow: 5px 6px 0 var(--ink); }
.pack:nth-child(2) { rotate: .6deg; } .pack:nth-child(3) { rotate: -.6deg; }
.pack__art { position: relative; width: 110px; }
.pack__art svg { display: block; width: 100%; }
.pack__art b { position: absolute; bottom: 12px; left: 50%; translate: -50% 0; font: 900 1.4rem var(--f-brand); color: var(--ink); }
.js-motion .pack:hover .pack__art { animation: ashake .5s var(--spring); }
@keyframes ashake { 25% { rotate: -6deg; } 60% { rotate: 5deg; } }
.pack h3 { font-size: 1.35rem; }
.pack__n { color: #4a4470; font-size: .92rem; }
.odds { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; font: 800 .9rem var(--f-brand); }
.odds li { display: inline-flex; align-items: center; gap: 5px; }
.ups { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.up { display: grid; gap: 8px; justify-items: start; padding: 18px; background: var(--paper); color: var(--paper-ink); border: 3px solid var(--ink); border-radius: var(--r-lg); box-shadow: 5px 6px 0 var(--ink); }
.up__ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--gold); border: 2.5px solid var(--ink); }
.up__ic .dic { width: 32px; height: 32px; }
.up h3 { font-size: 1.3rem; } .up p { color: #4a4470; line-height: 1.45; }
.up__meta { font: 800 .9rem var(--f-brand); }
.up__lock { display: inline-flex; align-items: center; gap: 5px; color: #6b5f9a; font-size: .85rem; }
.sells { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.sell { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; background: var(--paper); color: var(--paper-ink); border: 2.5px solid var(--ink); border-radius: var(--r); box-shadow: 3px 4px 0 var(--ink); }
.sell img { width: 54px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; border: 2px solid var(--ink); }
.sell > span { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.sell b { font: 900 .9rem var(--f-brand); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* ---------- פרופיל ---------- */
.prof__top { display: grid; gap: 22px; align-items: start; }
.prof__cap { margin: 0; display: grid; gap: 12px; justify-items: center; }
.prof__info { display: grid; gap: 18px; }
.lvl { display: grid; gap: 6px; } .lvl b { display: inline-flex; align-items: center; gap: 6px; font: 900 1.3rem var(--f-brand); } .lvl small { color: var(--muted); }
.pstats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pstats span { display: grid; gap: 2px; padding: 12px; border-radius: var(--r); background: rgba(10, 11, 34, .4); border: 2px solid var(--line); color: var(--muted); font-size: .88rem; }
.pstats b { font: 900 1.4rem/1 var(--f-brand); color: var(--text); }
@media (min-width: 760px) { .prof__top { grid-template-columns: auto 1fr; } .pstats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hist li { display: grid; grid-template-columns: 70px 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 14px; border-radius: 12px; background: rgba(10, 11, 34, .4); border: 2px solid var(--line); }
.hist li b { font: 900 1rem var(--f-brand); } .hist .is-win b { color: var(--green); } .hist .is-loss b { color: #ff8a96; }
.hist small { grid-column: 2 / -1; color: var(--faint); font-size: .8rem; }
.hist__c { display: inline-flex; align-items: center; gap: 3px; font: 800 .95rem var(--f-brand); }
.prof__end { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ---------- דיאלוגים ---------- */
.adlg { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(8, 6, 26, .72); backdrop-filter: blur(4px); }
.adlg[hidden] { display: none; }
.adlg__box { position: relative; width: min(460px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 22px 20px; background: var(--paper); color: var(--paper-ink); border: 4px solid var(--ink); border-radius: var(--r-lg); box-shadow: 8px 9px 0 var(--ink); }
.js-motion .adlg__box { animation: adlg .45s var(--spring) both; }
@keyframes adlg { from { transform: translateY(20px) scale(.92) rotate(-2deg); opacity: 0; } }
.adlg--wide .adlg__box { width: min(860px, 100%); }
.adlg--pull .adlg__box { width: min(900px, 100%); background: #1d1645; color: var(--text); border-color: var(--ink); }
.adlg__box .btn--ghost { --b-fg: var(--ink); border-color: var(--ink); }
.adlg--pull .adlg__box .btn--ghost { --b-fg: var(--text); border-color: rgba(255,255,255,.5); }
.adlg__x { all: unset; cursor: pointer; position: absolute; top: 10px; inset-inline-end: 10px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 2.5px solid var(--ink); z-index: 2; }
.adlg__x:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.dlg__t { font-size: 1.6rem; margin-bottom: 6px !important; } .dlg__p { color: #4a4470; margin-bottom: 12px !important; }
.adlg--wide .pick__grid { max-height: 50vh; }
.adlg--wide .pk { background: rgba(10, 11, 34, .06); } .adlg--wide .pk small { color: #6b5f9a; }
.cfm { display: grid; gap: 10px; justify-items: center; text-align: center; }
.cfm__ic { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--gold); border: 3px solid var(--ink); }
.cfm__ic .dic { width: 34px; height: 34px; }
.cfm h2 { font-size: 1.6rem; } .cfm p { color: #4a4470; line-height: 1.5; }
.cfm__row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }
.how { display: grid; gap: 10px; justify-items: center; text-align: center; }
.how__ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--gold); border: 3px solid var(--ink); transform: rotate(-4deg); }
.how__ic .dic { width: 38px; height: 38px; }
.how__step { font: 800 .85rem var(--f-brand); color: #6b5f9a; }
.how h2 { font-size: 1.7rem; }
.how__body { text-align: start; display: grid; gap: 8px; line-height: 1.55; }
.how__body ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 5px; }
.how__body .tip { background: #fff3c4; border: 2px solid var(--ink); border-radius: 10px; padding: 8px 12px; font-weight: 700; }
.how__bar { display: block; width: 100%; height: 8px; border-radius: 5px; background: rgba(10, 11, 34, .12); overflow: hidden; }
.how__bar i { display: block; height: 100%; background: var(--gold); border-radius: inherit; transition: width .4s var(--ease); }
.how__credit { font-size: .82rem; color: #6b5f9a; }

/* חשיפת קלפים */
.pull { display: grid; gap: 10px; justify-items: center; text-align: center; }
.pull h2 { font-size: 1.7rem; color: var(--gold); text-shadow: 2px 2px 0 var(--ink); }
.pull__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 150px)); justify-content: center; gap: 14px; width: 100%; margin-top: 6px; }
@media (max-width: 420px) { .pull__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pull__c { position: relative; perspective: 900px; cursor: pointer; }
.pull__c > .fc { transform: rotateY(180deg); backface-visibility: hidden; transition: transform .6s var(--spring); }
.pull__back { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; border-radius: 14px; border: 3px solid var(--ink); box-shadow: 4px 5px 0 var(--ink); backface-visibility: hidden; transition: transform .6s var(--spring);
  background: radial-gradient(rgba(10, 11, 34, .35) 1.5px, transparent 2px) 0 0 / 10px 10px, linear-gradient(145deg, var(--purple-hi), var(--blue)); }
.pull__back .dic { width: 46px; height: 46px; }
.pull__c.is-open > .fc { transform: none; }
.pull__c.is-open .pull__back { transform: rotateY(-180deg); }
.pull__res { position: absolute; z-index: 3; top: -10px; left: 50%; translate: -50% 0; padding: 3px 10px; font: 900 .82rem/1 var(--f-brand); font-style: normal; white-space: nowrap; border: 2.5px solid var(--ink); background: #fff; color: var(--ink); box-shadow: 2px 2px 0 var(--ink); opacity: 0; transition: opacity .3s .35s; }
.pull__c.is-open .pull__res { opacity: 1; }
.pull__res--new { background: var(--green); } .pull__res--up { background: var(--gold); }
.js-motion .pull__c.is-open:has(.fc--t2) { animation: alegend .9s var(--spring); }
@keyframes alegend { 30% { transform: scale(1.12) rotate(-3deg); } }

/* ---------- הודעה קופצת ---------- */
.atoast { position: fixed; z-index: 90; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); translate: -50% 20px; width: max-content; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 14px; background: var(--paper); color: var(--paper-ink); border: 3px solid var(--ink); box-shadow: 4px 5px 0 var(--ink); font-weight: 700; text-align: center; opacity: 0; pointer-events: none; transition: opacity .25s, translate .4s var(--spring); }
.atoast.is-on { opacity: 1; translate: -50% 0; }
@media (min-width: 900px) { .atoast { bottom: 28px; } }

/* ============================================================ קרב */
.bt { display: grid; grid-template-rows: auto auto auto auto auto 1fr auto; gap: 8px; min-height: calc(100dvh - 60px); padding: 4px 0 calc(8px + env(safe-area-inset-bottom)); position: relative; }
.bt__top { display: flex; align-items: center; gap: 10px; }
.bt__leave, .bt__log { all: unset; cursor: pointer; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); border: 2px solid rgba(255, 255, 255, .35); flex: none; }
.bt__leave .dic, .bt__log .dic { width: 20px; height: 20px; }
.bt__leave .dic path { stroke: #fff; }
.bt__leave:focus-visible, .bt__log:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.bt__title { flex: 1; display: grid; gap: 2px; text-align: center; min-width: 0; }
.bt__title b { font: 900 1rem/1.15 var(--f-brand); color: var(--gold-hi); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt__title small { font: 800 .9rem var(--f-brand); color: var(--green); }
.arena.is-enemy .bt__title small { color: #ff8a96; }
.bt__enemies { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.en { all: unset; box-sizing: border-box; position: relative; display: grid; justify-items: center; gap: 4px; width: min(30%, 150px); padding: 8px 6px 7px; border-radius: 16px; background: rgba(10, 11, 34, .45); border: 2.5px solid rgba(255, 255, 255, .15); cursor: pointer; transition: transform .3s var(--spring), border-color .2s, background .2s; }
.en .vil { width: 100%; max-width: 104px; }
.en.is-boss .vil { max-width: 132px; }
.en__crown { position: absolute; top: -12px; left: 50%; translate: -50% 0; } .en__crown .dic { width: 30px; height: 30px; }
.en__n { font: 900 .86rem/1.1 var(--f-brand); text-align: center; }
.en small { display: inline-flex; align-items: center; gap: 3px; font: 700 .76rem var(--f-text); color: var(--muted); }
.en small .dic { width: 13px; height: 13px; }
.en.is-target { border-color: var(--red); background: rgba(255, 74, 92, .14); }
.js-motion .en.is-target { animation: atarget 1.1s ease-in-out infinite; }
@keyframes atarget { 50% { transform: translateY(-4px); } }
.en.is-hover { transform: scale(1.06); border-color: var(--gold); }
.en.is-ko { opacity: .45; filter: grayscale(1); cursor: default; }
.en__ko { position: absolute; top: 34%; left: 50%; translate: -50% -50%; rotate: -12deg; font: 900 1.6rem/1 var(--f-brand); font-style: normal; color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; background: var(--red); padding: 2px 10px; border: 3px solid var(--ink); }
.hp { display: block; width: 100%; height: 9px; border-radius: 6px; background: rgba(255, 255, 255, .14); border: 2px solid var(--ink); overflow: hidden; }
.hp > i { display: block; height: 100%; background: linear-gradient(90deg, #ff6f6f, var(--red)); transition: width .5s var(--ease); }
.hp--me > i { background: linear-gradient(90deg, #7ff0ae, var(--green)); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; min-height: 0; }
.chip { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 8px; background: #fff; color: var(--ink); border: 2px solid var(--ink); font: 800 .74rem/1.2 var(--f-text); }
.chip .dic { width: 14px; height: 14px; } .chip b { font: 900 .85rem/1 var(--f-brand); }
.chip--poison { background: #e4f8d8; } .chip--snow { background: #dff6ff; } .chip--shield { background: #e0f4f7; } .chip--bolt { background: #fff3c4; }
.bt__msg { min-height: 2.9em; padding: 8px 12px; border-radius: 12px; background: var(--paper); color: var(--paper-ink); border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); font-size: .92rem; line-height: 1.4; text-align: center; text-wrap: balance; }
.bt__me { display: flex; justify-content: center; }
.me { position: relative; display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; width: min(520px, 100%); padding: 8px 10px; border-radius: 16px; background: rgba(10, 11, 34, .5); border: 2.5px solid rgba(95, 211, 141, .5); cursor: pointer; transition: transform .3s var(--spring), border-color .2s; }
.me__art img { display: block; width: 74px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; border: 2.5px solid var(--ink); }
.me__info { display: grid; gap: 4px; min-width: 0; }
.me__info > b { font: 900 1rem var(--f-brand); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: start; }
.me__info > small { font: 700 .82rem var(--f-text); color: var(--muted); }
.me__info .chips { justify-content: flex-start; }
.me.is-target { border-color: var(--gold); background: rgba(245, 200, 66, .14); }
.js-motion .me.is-target { animation: atarget 1.1s ease-in-out infinite; }
.me.is-hover { transform: scale(1.03); }
.js-motion .me.is-low { animation: alow 1.2s ease-in-out infinite; }
@keyframes alow { 50% { border-color: var(--red); } }
.bt__hand { --g: 6px; display: flex; justify-content: center; gap: var(--g); align-items: flex-end; padding-top: 6px; }
.bt__hand > .fc { flex: 0 1 calc((100% - (var(--n, 5) - 1) * var(--g)) / var(--n, 5)); min-width: 0; }
.fc--hand { touch-action: none; user-select: none; -webkit-user-select: none; }
.fc--hand img { -webkit-user-drag: none; pointer-events: none; }
.fc--hand .fc__art { aspect-ratio: 4 / 5; }
.fc--hand .fc__art img { object-position: 50% 18%; }
.fc--hand .fc__body { padding: 5px 6px 7px; gap: 4px; }
.fc--hand .fc__name { font-size: .72rem; }
.fc--hand .acts { gap: 3px; } .fc--hand .act { font-size: .68rem; padding: 1px 4px; } .fc--hand .act .dic { width: 13px; height: 13px; }
.fc--hand .fc__fam { width: 24px; height: 24px; } .fc--hand .fc__fam .dic { width: 14px; height: 14px; }
.fc--hand .tier { font-size: .62rem; padding: 2px 6px; }
.js-motion .bt__hand.is-deal .fc--hand { animation: adeal .45s var(--spring) backwards; animation-delay: calc(var(--i) * 60ms); }
@keyframes adeal { from { transform: translateY(50px) rotate(6deg); opacity: 0; } }
.fc--hand.is-sel { transform: translateY(-14px) rotate(-1.5deg); box-shadow: 5px 9px 0 var(--ink), 0 0 0 3px var(--gold); }
.fc--hand.is-drag { z-index: 20; transition: none; box-shadow: 8px 14px 0 rgba(10, 11, 34, .6), 0 0 0 3px var(--gold); }
.arena.is-enemy .bt__hand { opacity: .55; pointer-events: none; }
.bt__deck { display: flex; justify-content: center; align-items: center; gap: 6px; color: var(--muted); font-size: .85rem; }
@media (min-width: 700px) {
  .bt { gap: 12px; }
  .en { width: 160px; padding: 10px 8px; }
  .en .vil { max-width: 120px; } .en.is-boss .vil { max-width: 150px; }
  .bt__hand { --g: 10px; width: min(760px, 100%); margin: 0 auto; }
  .fc--hand .fc__name { font-size: .84rem; } .fc--hand .act { font-size: .76rem; }
  .bt__msg { font-size: 1rem; width: min(640px, 100%); margin: 0 auto; }
}
@media (max-height: 700px) and (max-width: 699px) { .en .vil { max-width: 70px; } .fc--hand .fc__art { aspect-ratio: 1; } .bt__msg { min-height: 0; } }

/* פתיחת קרב: VS */
.vs { position: fixed; inset: 0; z-index: 70; display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: 1fr auto; align-items: center; gap: 12px; padding: 20px; background: radial-gradient(circle at 50% 45%, rgba(255, 74, 92, .4), rgba(14, 10, 38, .94) 70%); }
.vs__side { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.vs__side--me .fc { width: min(170px, 34vw); }
.vs__b { font: 900 clamp(3rem, 10vw, 6rem)/1 var(--f-brand); color: var(--gold); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--red); }
.vs__t { grid-column: 1 / -1; text-align: center; font: 900 1.5rem var(--f-brand); }
.js-motion .vs__side--me { animation: avsR .6s var(--spring) both; } .js-motion .vs__side--them { animation: avsL .6s var(--spring) both; } .js-motion .vs__b { animation: apop .6s .25s var(--spring) both; }
@keyframes avsR { from { transform: translateX(60vw); } } @keyframes avsL { from { transform: translateX(-60vw); } }
.vs.is-out { opacity: 0; transition: opacity .35s; }
@media (max-width: 560px) { .vs { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; align-content: center; } .vs__t { grid-column: 1; } .vil--lg { width: min(110px, 28vw); } }

/* החבר נכנס לזירה */
.cast { position: absolute; z-index: 30; left: 50%; top: 40%; translate: -50% -50%; display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; width: min(440px, 92%); padding: 10px; background: var(--paper); color: var(--paper-ink); border: 3.5px solid var(--ink); border-radius: 16px; box-shadow: 6px 7px 0 var(--ink); pointer-events: none; }
.cast img { width: 96px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; border: 2.5px solid var(--ink); }
.cast__txt { display: grid; gap: 6px; }
.cast__txt b { font: 900 1.35rem/1.1 var(--f-brand); color: var(--ink); }
.cast__txt q { font-size: .95rem; line-height: 1.4; quotes: '"' '"'; }
.cast.fc--t2 { background: linear-gradient(135deg, #fff6d1, var(--paper)); }
.js-motion .cast { animation: acast .45s var(--spring) both; }
@keyframes acast { from { transform: scale(.5) rotate(-6deg); opacity: 0; } }
.cast.is-out { opacity: 0; transform: scale(.85); transition: opacity .3s, transform .3s; }
.pop { position: absolute; z-index: 25; top: 22%; left: 50%; translate: -50% 0; display: inline-flex; align-items: center; gap: 3px; padding: 3px 10px; border-radius: 12px; border: 2.5px solid var(--ink); background: #fff; color: var(--ink); font-style: normal; pointer-events: none; box-shadow: 2px 3px 0 var(--ink); white-space: nowrap; }
.pop b { font: 900 1.4rem/1 var(--f-brand); } .pop .dic { width: 20px; height: 20px; }
.pop--dmg { background: var(--red); color: #fff; } .pop--dmg b { -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
.pop--heal { background: #c9ffdc; } .pop--poison { background: #e4f8d8; } .pop--snow { background: #dff6ff; } .pop--armor { background: #e0f4f7; } .pop--boost { background: #fff3c4; }
.js-motion .pop { animation: apopup 1.05s var(--ease) forwards; }
@keyframes apopup { 0% { transform: translateY(10px) scale(.4); opacity: 0; } 18% { transform: translateY(-6px) scale(1.15); opacity: 1; } 70% { opacity: 1; } 100% { transform: translateY(-40px) scale(1); opacity: 0; } }
.is-hit { animation: ahit .45s ease-out; }
@keyframes ahit { 20% { transform: translateX(-9px) rotate(-4deg); } 45% { transform: translateX(8px) rotate(3deg); } 70% { transform: translateX(-4px); } }
.is-lunge { animation: alunge .5s var(--spring); }
@keyframes alunge { 40% { transform: translateY(26px) scale(1.08); } }

/* תוצאה */
.res { display: grid; gap: 12px; justify-items: center; text-align: center; }
.res__stamp { font: 900 clamp(2.6rem, 9vw, 3.6rem)/1 var(--f-brand); color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; padding: 6px 22px 10px; border: 4px solid var(--ink); transform: rotate(-4deg); box-shadow: 5px 5px 0 var(--ink); }
.res--win .res__stamp { background: var(--green); } .res--loss .res__stamp { background: var(--red); }
.js-motion .res__stamp { animation: astamp .6s var(--spring) both; }
@keyframes astamp { from { transform: scale(2.4) rotate(-14deg); opacity: 0; } }
.res p { color: #4a4470; line-height: 1.5; }
.res__row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.res__row span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--r-pill); background: #fff; border: 2.5px solid var(--ink); box-shadow: 2px 3px 0 var(--ink); }
.res__row b { font: 900 1.25rem var(--f-brand); }
.res__up, .res__tip { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; background: #fff3c4; border: 2px solid var(--ink); border-radius: 10px; padding: 6px 12px; color: var(--ink) !important; }
.blog { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 60vh; overflow-y: auto; }
.blog li { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: rgba(10, 11, 34, .06); font-size: .92rem; }
.blog b { font: 800 .78rem var(--f-brand); color: #6b5f9a; }

@media (prefers-reduced-motion: reduce) { .arena *, .arena *::before, .arena *::after { animation: none !important; transition-duration: .01ms !important; } }


/* ============================================================ v2: הרפתקה, זמן, כוונות (22.10.2026) */
.art { display: inline-block; width: 1.6em; height: 1.6em; object-fit: contain; vertical-align: -.45em; flex: none; filter: drop-shadow(1px 2px 0 rgba(10, 11, 34, .5)); }
.art.inl { width: 1.25em; height: 1.25em; vertical-align: -.3em; }
.btn .btn__art { width: 28px; height: 28px; margin-inline-end: -2px; }
.fc { overflow: visible; }
.fc .fc__art { border-radius: 11px 11px 0 0; }
.fc__cost { position: absolute; z-index: 3; top: -7px; inset-inline-end: -7px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6b0, #f5c842 55%, #c4921b); border: 2.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); font: 900 1.05rem/1 var(--f-brand); color: var(--ink); }
.fc__new { position: absolute; bottom: 6px; inset-inline-start: 6px; padding: 2px 8px; font: 900 .72rem/1.2 var(--f-brand); font-style: normal; background: var(--green); border: 2px solid var(--ink); color: var(--ink); }
.fc__new--up { background: var(--gold); }
.rules { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 8px; text-align: start; }
.rules li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; font-size: .95rem; line-height: 1.4; }
.rules .art { width: 40px; height: 40px; }
.cfm__art .art { width: 72px; height: 72px; }
.adlg--wide2 .adlg__box { width: min(560px, 100%); }
.home__cta--c { justify-content: center; margin-top: 18px; }
.home__cap figcaption { display: grid; gap: 2px; text-align: center; max-width: 260px; font: 700 .9rem/1.35 var(--f-text); color: var(--muted); }
.home__cap figcaption b { font: 900 1rem var(--f-brand); color: var(--gold-hi); }

/* פס ההרפתקה */
.rbar { position: sticky; top: 58px; z-index: 20; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; margin-bottom: 14px; border-radius: var(--r); background: rgba(23, 18, 58, .95); border: 2.5px solid var(--ink); box-shadow: 3px 4px 0 var(--ink); }
@media (min-width: 900px) { .rbar { top: 122px; } }
.rbar > span { display: inline-flex; align-items: center; gap: 6px; font: 900 1rem var(--f-brand); }
.rbar__hp { min-width: 130px; }
.rbar__hp .hp { width: 70px; }
.rbar__deck { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .08); border: 2px solid rgba(255, 255, 255, .25); font: 900 1rem var(--f-brand); }
.rbar__deck small { font: 700 .78rem var(--f-text); color: var(--muted); }
.rbar__relics { margin-inline-start: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.rbar__relics small { color: var(--faint); font: 600 .8rem var(--f-text); }
.relic { all: unset; cursor: pointer; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .08); transition: transform .3s var(--spring); }
.relic img { width: 30px; height: 30px; object-fit: contain; }
.relic:hover, .relic:focus-visible { transform: scale(1.15) rotate(-6deg); outline: 0; }
.relic__big { width: 120px; height: 120px; object-fit: contain; }

/* מפת ההרפתקה */
.run__head { display: grid; gap: 6px; justify-items: start; margin-bottom: 4px; }
.run__head h1 { font-size: clamp(2rem, 1.5rem + 2.6vw, 3rem); color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--ink); }
.run__head p:not(.kick) { color: var(--muted); }
.rmap { position: relative; width: min(560px, 100%); margin: 6px auto 0; }
.rmap__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: scaleX(-1); }
.rmap__lines line { stroke: rgba(206, 214, 255, .25); stroke-width: 3; stroke-dasharray: 2 7; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.rmap__lines line.is-open { stroke: var(--gold); stroke-dasharray: 6 6; }
.rmap__lines line.is-walked { stroke: var(--gold-hi); stroke-dasharray: none; stroke-width: 4; }
.mn { all: unset; box-sizing: border-box; position: absolute; translate: 50% -50%; display: grid; justify-items: center; gap: 0; width: 76px; cursor: pointer; transition: transform .3s var(--spring); }
.mn .art { width: 54px; height: 54px; filter: drop-shadow(2px 3px 0 rgba(10, 11, 34, .7)) grayscale(.75) brightness(.7); transition: filter .3s, transform .3s var(--spring); }
.mn small { font: 800 .74rem/1.1 var(--f-brand); color: var(--faint); text-align: center; text-shadow: 1px 1px 0 var(--ink); }
.mn.is-open .art { filter: drop-shadow(2px 3px 0 rgba(10, 11, 34, .7)); }
.mn.is-open small { color: var(--gold-hi); }
.js-motion .mn.is-open .art { animation: anode 1.6s ease-in-out infinite; }
@keyframes anode { 50% { transform: translateY(-5px) scale(1.08); } }
.mn.is-open::before { content: ""; position: absolute; top: 2px; width: 60px; height: 60px; border-radius: 50%; background: radial-gradient(rgba(245, 200, 66, .45), transparent 70%); z-index: -1; }
.mn.is-done .art { filter: drop-shadow(2px 3px 0 rgba(10, 11, 34, .7)) grayscale(1) brightness(.5); }
.mn.is-here .art { filter: drop-shadow(2px 3px 0 rgba(10, 11, 34, .7)); }
.mn.is-here::after { content: ""; position: absolute; top: -6px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 2.5px solid var(--ink); }
.mn--boss { width: 110px; } .mn--boss .art { width: 84px; height: 84px; } .mn--boss small { font-size: .9rem; color: #ff8a96; }
.mn:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 12px; }
.run__end { display: flex; justify-content: center; margin-top: 18px; }
.chapters { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.chap { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 16px; background: var(--paper); color: var(--paper-ink); border: 3px solid var(--ink); border-radius: var(--r-lg); box-shadow: 5px 6px 0 var(--ink); }
.chap__n { font: 800 .85rem var(--f-brand); color: #6b5f9a; } .chap h3 { font-size: 1.5rem; }
.vil--md { width: 96px; border-width: 3px; }
.bossprev { display: flex; gap: 14px; align-items: center; text-align: start; padding: 10px; border-radius: var(--r); background: rgba(10, 11, 34, .08); }
.stage .bossprev { background: rgba(10, 11, 34, .4); margin: 10px 0; }

/* מסכי צמתים */
.stage { display: grid; gap: 12px; max-width: 900px; margin: 0 auto; }
.stage__img { margin: 0; border: 3px solid var(--ink); border-radius: var(--r-lg); overflow: hidden; box-shadow: 5px 6px 0 var(--ink); aspect-ratio: 16 / 9; max-height: 42vh; }
.stage__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stage__head h1 { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 2.8rem); color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--ink); line-height: 1.1; }
.stage__lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text); text-wrap: pretty; }
.stage__go { display: flex; justify-content: center; margin-top: 8px; }
.stage--end { padding-top: 20px; }
.stage--end .res { background: var(--paper); color: var(--paper-ink); border: 4px solid var(--ink); border-radius: var(--r-lg); box-shadow: 8px 9px 0 var(--ink); padding: 24px 18px; }
.opts { display: grid; gap: 10px; }
.opt { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 4px; padding: 14px 16px; background: var(--paper); color: var(--paper-ink); border: 3px solid var(--ink); border-radius: var(--r); box-shadow: 4px 5px 0 var(--ink); transition: transform .3s var(--spring), box-shadow .2s; }
.opt b { font: 900 1.2rem var(--f-brand); }
.opt__cost { color: #b3263a; font-weight: 800; } .opt__cost::before { content: "מחיר: "; font-weight: 600; color: #6b5f9a; }
.opt__gain { color: #1e6b45; font-weight: 800; } .opt__gain::before { content: "מקבלים: "; font-weight: 600; color: #6b5f9a; }
.opt small { color: #6b5f9a; }
.opt:hover:not([disabled]) { transform: translate(-2px, -3px); box-shadow: 6px 8px 0 var(--ink); }
.opt:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.opt[disabled] { opacity: .5; cursor: not-allowed; }
.opt--relic { grid-template-columns: 52px 1fr; column-gap: 12px; } .opt--relic img { grid-row: span 3; width: 52px; height: 52px; object-fit: contain; }
@media (min-width: 700px) { .opts { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.relics { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.relicc { all: unset; box-sizing: border-box; cursor: pointer; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 14px; background: var(--paper); color: var(--paper-ink); border: 3px solid var(--ink); border-radius: var(--r-lg); box-shadow: 5px 6px 0 var(--ink); transition: transform .3s var(--spring); }
.relicc img { width: 96px; height: 96px; object-fit: contain; }
.relicc b { font: 900 1.15rem var(--f-brand); } .relicc span { color: #4a4470; line-height: 1.4; }
.relicc:hover { transform: translateY(-4px) rotate(-1deg); }
.relicc--one { cursor: default; max-width: 320px; margin: 0 auto; }
.coll--reward { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; max-width: 720px; margin: 0 auto; width: 100%; gap: 14px; }
.coll--dlg { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; max-height: 60vh; overflow-y: auto; padding: 12px 8px 6px; }
.coll--dlg .fc__body { padding: 5px; } .coll--dlg .fc__name { font-size: .7rem; } .coll--dlg .act { font-size: .66rem; }
.disc { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.disc img { width: 64px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; border: 2.5px solid var(--ink); }

/* קרב v2: כוונות, אנרגיה, ציר זמן */
.en { padding-top: 26px; overflow: visible; }
.en__int { position: absolute; top: -14px; left: 50%; translate: -50% 0; display: flex; gap: 3px; z-index: 4; white-space: nowrap; }
.int { display: inline-flex; align-items: center; gap: 2px; padding: 3px 7px; border-radius: 10px; background: #fff; color: var(--ink); border: 2.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); font: 900 .95rem/1 var(--f-brand); }
.int .dic { width: 17px; height: 17px; }
.int--atk, .int--patk { background: #ffe0e4; } .int--block, .int--shield { background: #e0f4f7; } .int--poison { background: #e4f8d8; }
.int--buff, .int--grow { background: #fff3c4; } .int--drain { background: #ffe9c7; } .int--windup { background: #ffd0d6; } .int--junk { background: #ece6ff; } .int--frozen { background: #dff6ff; }
.js-motion .int--windup { animation: apulse 1s ease-in-out infinite; }
.int.is-delayed { background: #2a2350; color: #fff; }
.int__d { width: 18px; height: 18px; }
.en__hp { display: flex; align-items: center; gap: 4px; width: 100%; }
.hp { position: relative; }
.hp__pv { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(45deg, #fff 0 4px, #ffd0d6 4px 8px) !important; opacity: .9; }
.blk { display: inline-flex; align-items: center; gap: 1px; font: 900 .8rem var(--f-brand); color: var(--teal-hi); } .blk .dic { width: 14px; height: 14px; }
.en small em { font-style: normal; color: #ff8a96; font-weight: 900; }
.en__info { position: absolute; top: 18px; inset-inline-start: 4px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ink); border: 2px solid var(--ink); font: 900 .8rem var(--f-brand); font-style: normal; cursor: help; z-index: 3; }
.en.will-die { border-color: var(--red); background: rgba(255, 74, 92, .22); }
.en__die { position: absolute; bottom: 30%; left: 50%; translate: -50% 0; rotate: -8deg; padding: 2px 8px; font: 900 .95rem var(--f-brand); font-style: normal; background: var(--red); color: #fff; border: 2.5px solid var(--ink); z-index: 4; }
.me__hp { display: flex; align-items: center; gap: 6px; }
.me__blk { display: inline-flex; align-items: center; gap: 2px; font: 900 1rem var(--f-brand); color: var(--teal-hi); } .me__blk .dic { width: 18px; height: 18px; }
.inc { display: grid; justify-items: center; gap: 0; padding: 6px 8px; border-radius: 12px; background: rgba(255, 74, 92, .16); border: 2px solid rgba(255, 74, 92, .55); text-align: center; }
.inc b { font: 900 1.25rem/1 var(--f-brand); color: #ff8a96; } .inc small { font-size: .66rem; color: var(--muted); max-width: 76px; line-height: 1.2; } .inc .dic { width: 16px; height: 16px; }
.inc.is-deadly { background: var(--red); border-color: var(--ink); } .inc.is-deadly b, .inc.is-deadly small { color: #fff; }
.res-row { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; }
.nrg { all: unset; cursor: pointer; position: relative; display: grid; place-items: center; width: 62px; height: 62px; }
.nrg .art { width: 62px; height: 62px; }
.nrg b { position: absolute; bottom: -4px; padding: 1px 7px; border-radius: 10px; background: var(--ink); color: var(--gold-hi); font: 900 .95rem/1.2 var(--f-brand); }
.nrg.is-empty .art { filter: grayscale(1) brightness(.6); }
.tl { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 4px 6px; border-radius: 16px; background: rgba(10, 11, 34, .5); border: 2px solid rgba(134, 219, 230, .35); min-width: 0; position: relative; }
.tl__secs { all: unset; cursor: pointer; display: flex; align-items: center; gap: 3px; }
.tl__secs .art { width: 30px; height: 30px; }
.tl__pips { display: grid; grid-template-columns: repeat(5, 8px); gap: 2px; }
.tl__pips i { width: 8px; height: 14px; border-radius: 3px; background: rgba(255, 255, 255, .15); border: 1.5px solid rgba(10, 11, 34, .8); }
.tl__pips i.on { background: linear-gradient(180deg, #fff2a8, #f5c842); }
.tla { all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: grid; justify-items: center; gap: 0; width: 52px; padding: 2px 0; border-radius: 12px; opacity: .45; transition: opacity .2s, transform .3s var(--spring), background .2s; }
.tla .art { width: 32px; height: 32px; } .tla span { font: 800 .68rem/1.1 var(--f-brand); color: var(--muted); }
.tla i { position: absolute; top: -2px; inset-inline-end: 2px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--teal-hi); color: var(--ink); font: 900 .7rem/1 var(--f-brand); font-style: normal; border: 1.5px solid var(--ink); }
.tla.is-ready { opacity: 1; background: rgba(134, 219, 230, .14); } .tla.is-ready span { color: var(--teal-hi); }
.tla.is-ready:hover { transform: translateY(-3px); }
.tla:focus-visible, .nrg:focus-visible, .endt:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.endt { all: unset; box-sizing: border-box; cursor: pointer; display: grid; justify-items: center; gap: 0; min-width: 96px; padding: 8px 12px; border-radius: 14px; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); box-shadow: 3px 4px 0 var(--ink); transition: transform .3s var(--spring), background .2s; }
.endt b { font: 900 1.05rem/1.1 var(--f-brand); } .endt small { font: 800 .72rem var(--f-text); color: #1d5f6b; min-height: 1em; }
.endt.is-hot { background: var(--gold); }
.js-motion .endt.is-hot { animation: atarget 1.2s ease-in-out infinite; }
.arena.is-enemy .endt, .arena.is-enemy .tla { pointer-events: none; opacity: .4; }
.bt__piles { display: flex; justify-content: space-between; }
.bt__piles button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--r-pill); color: var(--muted); font: 800 .85rem var(--f-brand); background: rgba(255, 255, 255, .06); }
.bt__piles .dic { width: 18px; height: 18px; }
.fc--hand .fc__cost { width: 26px; height: 26px; font-size: .95rem; top: -9px; inset-inline-end: -6px; }
.fc--hand.is-off { filter: grayscale(.85) brightness(.75); }
.fc--hand.is-off .fc__cost { background: #8f89ad; }
.fc--junk .fc__art--junk { display: grid; place-items: center; aspect-ratio: 4 / 5; background: repeating-linear-gradient(0deg, #ece6ff 0 10px, #d9d0f5 10px 11px); }
.fc--junk .fc__art--junk .dic { width: 46%; height: auto; }
.coll--dlg .fc--junk .fc__art--junk { aspect-ratio: 2 / 3; }
.is-shake { animation: ashake .4s; }
.cast { width: min(380px, 88%); grid-template-columns: 72px 1fr; padding: 8px; top: 34%; }
.cast img { width: 72px; } .cast__txt b { font-size: 1.15rem; } .cast__txt q { font-size: .85rem; }
.cast--echo { background: linear-gradient(135deg, #d8f6ff, var(--paper)); border-style: dashed; }
.bt.t-echo::after, .bt.t-rewind::after, .bt.t-delay::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60; animation: atime .6s ease-out forwards; }
.bt.t-echo::after { background: radial-gradient(circle at 50% 60%, rgba(134, 219, 230, .45), transparent 60%); }
.bt.t-rewind::after { background: conic-gradient(from 0deg, rgba(134, 219, 230, .35), transparent 40%, rgba(134, 219, 230, .35)); }
.bt.t-delay::after { background: radial-gradient(circle at 50% 25%, rgba(255, 74, 92, .3), transparent 60%); }
@keyframes atime { from { opacity: 1; transform: scale(.9); } to { opacity: 0; transform: scale(1.2); } }
.vinfo { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.vinfo h2 { font-size: 1.5rem; } .vinfo p { margin: 6px 0 0; line-height: 1.5; color: #3b3560; }
.vinfo__line { font-style: italic; } .vinfo .tip { background: #fff3c4; border: 2px solid var(--ink); border-radius: 10px; padding: 8px 10px; font-weight: 700; color: var(--ink); }
.how__more { text-align: start; line-height: 1.6; }

/* הדרכה בקרב הראשון */
.coach { position: absolute; z-index: 50; left: 50%; translate: -50% 0; width: min(340px, 92%); padding: 12px 14px; display: grid; gap: 8px; justify-items: start; background: var(--gold); color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 5px 6px 0 var(--ink); font-weight: 700; line-height: 1.45; }
.coach::before { content: ""; position: absolute; top: -10px; left: var(--ax, 50%); width: 16px; height: 16px; background: var(--gold); border-top: 3px solid var(--ink); border-left: 3px solid var(--ink); transform: translateX(-50%) rotate(45deg); }
.coach.is-up::before { top: auto; bottom: -10px; transform: translateX(-50%) rotate(225deg); }
.coach .btn { min-height: 36px; padding: 6px 14px; font-size: .95rem; --b-bg: #fff; }
.js-motion .coach { animation: adlg .4s var(--spring) both; }
.is-coached { outline: 3px dashed var(--gold); outline-offset: 4px; border-radius: 12px; }

@media (max-width: 699px) {
  .bt { gap: 6px; }
  .en { width: min(31%, 140px); padding: 22px 4px 6px; }
  .en .vil { max-width: 74px; }
  .en__n { font-size: .74rem; }
  .int { font-size: .82rem; padding: 2px 5px; } .int .dic { width: 14px; height: 14px; }
  .me { grid-template-columns: 52px 1fr auto; padding: 6px 8px; gap: 8px; }
  .me__art img { width: 52px; }
  .nrg, .nrg .art { width: 50px; height: 50px; }
  .tla { width: 44px; } .tla .art { width: 26px; height: 26px; } .tl__secs .art { width: 24px; height: 24px; }
  .tl__pips { grid-template-columns: repeat(5, 6px); } .tl__pips i { width: 6px; height: 12px; }
  .endt { min-width: 74px; padding: 6px 8px; } .endt b { font-size: .92rem; }
  .bt__hand { --g: 4px; }
  .fc--hand .fc__body { padding: 4px 3px 5px; } .fc--hand .fc__name { font-size: .6rem; } .fc--hand .act { font-size: .58rem; padding: 1px 3px; } .fc--hand .act .dic { width: 11px; height: 11px; }
  .fc--hand .fc__fam { width: 20px; height: 20px; top: 4px; inset-inline-start: 4px; } .fc--hand .fc__fam .dic { width: 12px; height: 12px; }
  .fc--hand .tier { font-size: .55rem; padding: 1px 4px; top: 22px; }
  .vinfo { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .coll--reward { gap: 8px; }
}

@media (min-width: 700px) and (max-height: 960px) {
  .bt__hand { width: min(600px, 100%); }
  .en .vil { max-width: 96px; } .en.is-boss .vil { max-width: 120px; }
  .bt { gap: 8px; }
}

/* ============================================================
   v3 · מערכת העיצוב (research/v50/game-design/arena/ARENA_DESIGN_SYSTEM.md)
   שלוש שכבות: עולם (רקע) · שחקנים (נייר, דיו, צל קשיח) · מערכת (לילה שקוף, קו דק). הזמן = טורקיז מקווקו.
   ============================================================ */
.arena {
  --chrono: #7fe8f2; --chrono-lo: rgba(127, 232, 242, .16); --dmg: #ff4a5c; --heal: #5fd38d; --blockc: #86dbe6; --tox: #8be06b; --ice: #bfefff; --boostc: #ffe08a;
  --sys: rgba(16, 12, 42, .78); --sys-line: rgba(206, 214, 255, .18);
  --t-tap: 120ms; --t-state: 220ms; --t-enter: 380ms;
}
/* סרגל עליון בטלפון: בלי התנגשות בין השם למטבעות */
@media (max-width: 520px) { .atop__brand { display: none; } .atop__hud { justify-content: flex-start; } }
.js-motion .fc--cap { animation: none; }

/* ---------- קלף: פס משפחה, מספר גדול ---------- */
.fc__band { display: flex; align-items: center; gap: 4px; padding: 2px 7px; min-height: 20px; background: var(--fam, #f5c842); color: var(--ink); border-bottom: 2.5px solid var(--ink); font: 900 .72rem/1 var(--f-brand); white-space: nowrap; overflow: hidden; }
.fc__band .dic { width: 14px; height: 14px; }
.fc__band span { overflow: hidden; text-overflow: ellipsis; }
.fc__band em { margin-inline-start: auto; display: inline-grid; font-style: normal; }
.fc__band em .dic { width: 14px; height: 14px; }
.fc .fc__art { border-bottom: 0; }
.fc__fam { display: none; }
.fc__info { position: absolute; z-index: 3; top: 6px; inset-inline-start: 6px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); border: 2px solid var(--ink); font: 900 .85rem/1 var(--f-brand); font-style: normal; cursor: help; opacity: .85; transition: transform var(--t-tap) var(--ease), opacity var(--t-tap); }
.fc__info:hover { transform: scale(1.12); opacity: 1; }
.act b { font: 900 1.02rem/1 var(--f-brand); }
.act span { font-weight: 700; }
.act--more { background: transparent; border-style: dashed; color: #6b5f9a; font-weight: 800; }
.act--wave { background: #f0e4ff; } .act--chain { background: #e6f9f1; } .act--energy { background: #fff3c4; } .act--secs, .act--draw { background: #e2fbfd; }
.fc--slot .fc__band span, .coll--dlg .fc__band span { display: none; }
.fc--big { width: 100%; }
.fc--big .fc__name { font-size: 1.05rem; }
.fc--big .act { font-size: .9rem; } .fc--big .act b { font-size: 1.15rem; }
.fc--big .fc__cost { width: 40px; height: 40px; font-size: 1.35rem; }
.fc.is-indeck { box-shadow: 4px 5px 0 var(--ink), 0 0 0 3px var(--green); }
.fc.is-indeck .fc__art img { filter: saturate(.7) brightness(.82); }

/* ---------- תצוגת פרטי קלף ---------- */
.adlg--card .adlg__box { width: min(720px, 100%); }
.cdet { display: grid; gap: 18px; grid-template-columns: minmax(0, 240px) 1fr; align-items: start; }
.cdet__card .fc { transform: rotate(-1.5deg); }
.cdet__txt { display: grid; gap: 10px; }
.cdet__fam { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 4px 10px; border-radius: var(--r-pill); background: var(--fam); border: 2px solid var(--ink); font: 900 .9rem var(--f-brand); }
.cdet__fam .dic { width: 18px; height: 18px; }
.cdet h2 { font-size: 1.7rem; line-height: 1.05; letter-spacing: .02em; }
.cdet__pw { color: #4a4470; font-weight: 600; }
.cdet__cost { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.cgem { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6b0, #f5c842 55%, #c4921b); border: 2.5px solid var(--ink); font: 900 1rem var(--f-brand); }
.cdet__kw { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cdet__kw li { display: grid; gap: 1px; padding: 8px 10px; border-radius: 10px; background: rgba(10, 11, 34, .06); border-inline-start: 4px solid var(--fam); }
.cdet__kw b { font: 900 .95rem var(--f-brand); } .cdet__kw span { font-size: .92rem; line-height: 1.4; color: #3b3560; }
.cdet__cap { display: flex; gap: 6px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: #fff3c4; border: 2px solid var(--ink); font-weight: 700; }
.cdet__next { font-size: .9rem; color: #6b5f9a; }
.cdet__q { font-style: italic; color: #3b3560; quotes: '"' '"'; }
@media (max-width: 600px) { .cdet { grid-template-columns: 1fr; justify-items: center; text-align: start; } .cdet__card { width: min(170px, 46vw); } .cdet__txt { width: 100%; } }

/* ---------- חלונות: גיליון תחתון בטלפון ---------- */
.adlg { backdrop-filter: none; background: rgba(8, 6, 26, .78); }
.adlg__grip { display: none; }
@media (max-width: 699px) {
  .adlg { place-items: end stretch; padding: 0; }
  .adlg__box { width: 100% !important; max-height: 88dvh; border-radius: 22px 22px 0 0; border-bottom: 0; padding: 16px 16px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 0 var(--ink); }
  .adlg__grip { display: block; width: 44px; height: 5px; border-radius: 3px; background: rgba(10, 11, 34, .25); margin: -6px auto 10px; }
  .adlg--pull .adlg__grip { background: rgba(255, 255, 255, .3); }
  .js-motion .adlg__box { animation: asheet var(--t-enter) var(--ease) both; }
  .adlg__x { top: 12px; }
}
@keyframes asheet { from { transform: translateY(100%); } }

/* ---------- בית ---------- */
.home__hero { gap: 18px; }
.home__copy { gap: 12px; }
.runcard { display: grid; gap: 10px; width: min(460px, 100%); padding: 14px 16px; border-radius: var(--r); background: var(--sys); border: 1.5px solid var(--sys-line); }
.runcard__top { display: grid; gap: 2px; } .runcard__top small { font: 800 .8rem var(--f-brand); color: var(--chrono); } .runcard__top b { font: 900 1.3rem var(--f-brand); }
.runcard__stats { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font: 900 1rem var(--f-brand); }
.runcard__stats > span { display: inline-flex; align-items: center; gap: 5px; }
.runcard__rel { gap: 2px !important; } .runcard__rel img { width: 26px; height: 26px; object-fit: contain; }
.runcard__note { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--gold-hi); font-size: .92rem; }
.chsteps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.chsteps li { display: flex; align-items: center; gap: 5px; font: 800 .82rem var(--f-brand); color: var(--faint); }
.chsteps li + li::before { content: ""; width: 18px; height: 2px; background: var(--sys-line); margin-inline-end: 1px; }
.chsteps i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font: 900 .8rem var(--f-brand); font-style: normal; border: 2px solid var(--sys-line); color: var(--muted); }
.chsteps i .dic { width: 14px; height: 14px; }
.chsteps .is-done i { background: var(--heal); border-color: var(--ink); color: var(--ink); }
.chsteps .is-now { color: var(--text); } .chsteps .is-now i { background: var(--gold); border-color: var(--ink); color: var(--ink); }
.chsteps--sm span { display: none; } .chsteps--sm .is-now span { display: inline; }
.home__sub { display: flex; flex-wrap: wrap; gap: 8px; }
.chipbtn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 12px 4px 8px; border-radius: var(--r-pill); border: 1.5px solid var(--sys-line); background: var(--sys); font: 800 .92rem var(--f-brand); color: var(--text); transition: background var(--t-state), transform var(--t-tap) var(--spring), border-color var(--t-state); }
.chipbtn .art { width: 26px; height: 26px; } .chipbtn .dic { width: 20px; height: 20px; }
.chipbtn:hover { border-color: var(--gold); transform: translateY(-1px); }
.chipbtn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.chipbtn[disabled] { opacity: .5; cursor: default; transform: none; }
.home__capbtn { all: unset; cursor: pointer; display: block; border-radius: 16px; }
.home__capbtn:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; }
.fc--cap { width: min(230px, 52vw); }
.home__cap figcaption b { display: inline-flex; align-items: center; gap: 5px; }
.hstrip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 24px; border-radius: var(--r); overflow: hidden; background: var(--sys-line); border: 1.5px solid var(--sys-line); }
.hstrip > div { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "i b" "i s"; column-gap: 8px; align-items: center; padding: 10px 12px; background: var(--sys); }
.hstrip .dic { grid-area: i; width: 22px; height: 22px; }
.hstrip b { grid-area: b; font: 900 1.1rem/1.1 var(--f-brand); } .hstrip b em { font-style: normal; font-size: .8rem; color: var(--muted); }
.hstrip small { grid-area: s; color: var(--muted); font-size: .8rem; }
.hstrip__lvl { grid-template-areas: "i b" "i x" "i s" !important; } .hstrip__lvl .xpbar { grid-area: x; height: 7px; margin: 3px 0; }
@media (min-width: 760px) { .hstrip { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .fc--cap { width: 250px; } }
.home__modes { grid-template-columns: 1fr; }
@media (min-width: 760px) { .home__modes { grid-template-columns: 1fr 1fr; } .hmode { grid-template-columns: 56px 1fr; grid-template-areas: "ic t" "ic s"; } }
@media (max-width: 759px) { .home__copy { justify-items: stretch; } .home__copy .logo { justify-self: start; } .home__cta .btn { width: 100%; } }

/* ---------- מפה ---------- */
.run__grid { display: grid; gap: 18px; }
.run__head { margin-bottom: 8px; }
.run__head h1 small { font: 800 .9rem var(--f-brand); color: var(--chrono); -webkit-text-stroke: 0; text-shadow: none; vertical-align: middle; }
.run__aside { display: grid; gap: 14px; align-content: start; }
.bosscard { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r); background: linear-gradient(135deg, color-mix(in oklab, var(--vc) 30%, #120c2a), #120c2a); border: 1.5px solid var(--sys-line); }
.bosscard small { font: 800 .78rem var(--f-brand); color: #ff8a96; } .bosscard b { display: block; font: 900 1.25rem var(--f-brand); } .bosscard p { font-size: .88rem; line-height: 1.45; color: var(--muted); margin-top: 4px !important; }
.legend { padding: 12px 14px; border-radius: var(--r); background: var(--sys); border: 1.5px solid var(--sys-line); }
.legend h3 { font-size: 1rem; color: var(--gold-hi); margin-bottom: 8px; }
.legend ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.legend li { display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: center; font-size: .84rem; line-height: 1.35; color: var(--muted); }
.legend li .art { width: 34px; height: 34px; } .legend li b { display: block; font: 900 .92rem var(--f-brand); color: var(--text); }
@media (min-width: 1100px) { .run__grid { grid-template-columns: 1fr 300px; align-items: start; } .run__aside { position: sticky; top: 190px; } }
@media (max-width: 1099px) { .legend ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- חפיסה ---------- */
.deck__grid { display: grid; gap: 18px; }
.deck__hint { color: var(--faint); font-size: .84rem; margin-top: 8px !important; }
@media (min-width: 1100px) {
  .deck__grid { grid-template-columns: 380px 1fr; align-items: start; }
  .deck__side { position: sticky; top: 130px; padding: 12px; border-radius: var(--r); background: var(--sys); border: 1.5px solid var(--sys-line); }
  .deck__side .deck__bar { position: static; box-shadow: none; border: 0; background: none; padding: 0 0 10px; }
  .deck__side .slots { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .deck__main .coll__head { margin-top: 0; }
  .deck__main .coll { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ============================================================ קרב v3: לגובה המסך */
.arena[data-screen="battle"] .atop { display: none; }
.arena[data-screen="battle"] .amain { width: min(1500px, 100% - 16px); }
.bt { display: flex; flex-direction: column; height: 100dvh; min-height: 0; gap: 6px; padding: max(6px, env(safe-area-inset-top)) 0 calc(4px + env(safe-area-inset-bottom)); }
.bt__top { flex: none; }
.bt__tools { display: flex; gap: 6px; align-items: center; }
.bt__tools .gsfx { width: 40px; height: 40px; }
.bt__stage { flex: 1; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 6px; }
.bt__foes { min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.bt__logp { display: none; }
.bt__side { display: grid; gap: 6px; }
.bt__enemies { align-items: flex-end; }
.en .vil { width: clamp(58px, 13dvh, 150px); max-width: none; }
.en.is-boss .vil { width: clamp(76px, 18dvh, 190px); max-width: none; }
.en { width: auto; min-width: 0; flex: 0 1 auto; }
.bt__hand { flex: none; }
.bt__hand > .fc { max-width: clamp(64px, calc((30dvh - 64px) / 1.25), 168px); }
.bt__piles { flex: none; }
/* כוונות: עתיד / מעוכב / מבוטל */
.int.is-delayed { background: #0f2a33; color: var(--chrono); border: 2px dashed var(--chrono); box-shadow: none; }
.int.is-delayed .dic path, .int.is-delayed .dic circle { stroke: var(--chrono); }
.int.is-cancel { position: relative; opacity: .55; }
.int.is-cancel::after { content: ""; position: absolute; inset: 50% 4px auto; height: 3px; background: var(--ink); transform: rotate(-12deg); border-radius: 2px; }
.int--frozen { background: var(--ice); }
.en.is-target::before, .en.is-delaypick::before { content: ""; position: absolute; inset: -5px; border-radius: 20px; border: 2.5px dashed var(--dmg); pointer-events: none; }
/* ציר הזמן */
.tl { background: linear-gradient(90deg, rgba(15, 42, 51, .85), rgba(16, 12, 42, .85)); border: 1.5px solid rgba(127, 232, 242, .45); }
.tla.is-ready { background: var(--chrono-lo); box-shadow: inset 0 0 0 1.5px rgba(127, 232, 242, .6); }
.tla.is-ready span { color: var(--chrono); }
.tla:not(.is-ready) .art { filter: grayscale(1) brightness(.7); }
.tla i { background: var(--chrono); }
.tl__pips i.on { background: linear-gradient(180deg, #e9fdff, var(--chrono)); box-shadow: 0 0 6px rgba(127, 232, 242, .6); }
.fc--hand.is-rewound { animation: arewind .55s var(--ease) both; }
@keyframes arewind { from { transform: translateY(-120px) rotate(-200deg) scale(.6); opacity: 0; } }
.cast--echo { border: 3px dashed var(--chrono); background: linear-gradient(135deg, #e2fbfd, var(--paper)); }
/* יד: ריחוף במחשב מגדיל, לא מזיז שכנים */
@media (hover: hover) and (pointer: fine) {
  .fc--hand { transform-origin: 50% 100%; }
  .fc--hand:not(.is-off):hover { transform: translateY(-18px) scale(1.14); z-index: 5; box-shadow: 6px 12px 0 var(--ink); }
  .fc--hand.is-sel:hover { transform: translateY(-20px) scale(1.14); }
}
.fc--hand .fc__info { width: 22px; height: 22px; font-size: .75rem; }
.fc--hand.is-off .fc__cost { text-decoration: line-through; }
.fc--hand .fc__band { min-height: 18px; font-size: .64rem; padding: 1px 5px; }
.fc--hand .fc__band span { overflow: hidden; }
/* טלפון: הכול נכנס לגובה */
@media (max-width: 699px) {
  .bt { gap: 4px; }
  .bt__top { gap: 6px; }
  .bt__title b { font-size: .9rem; }
  .bt__msg { font-size: .86rem; padding: 6px 10px; min-height: 0; }
  .me { padding: 5px 8px; } .me__art img { width: 44px; } .me__info > small { font-size: .78rem; }
  .bt__hand > .fc { max-width: none; }
  .fc--hand .fc__info { display: none; }
  .fc--hand .fc__band span { display: none; }
  .fc--hand .act { font-size: .66rem; } .fc--hand .act b { font-size: .86rem; }
  .fc--hand .fc__name { font-size: .64rem; }
}
@media (max-height: 700px) and (max-width: 699px) {
  .fc--hand .fc__art { aspect-ratio: 1 / 1; }
  .en__n { display: none; }
  .bt__piles button { padding: 1px 8px; font-size: .75rem; }
}
/* מחשב: שלוש עמודות. ימין: הקפטן והמשאבים. מרכז: הנבלים. שמאל: מה קרה */
@media (min-width: 1100px) and (min-height: 620px) {
  .bt__stage { grid-template-columns: 320px minmax(0, 1fr) 260px; grid-template-rows: minmax(0, 1fr); gap: 16px; align-items: stretch; }
  .bt__side { grid-column: 1; grid-row: 1; align-content: end; }
  .bt__foes { grid-column: 2; grid-row: 1; }
  .bt__logp { grid-column: 3; grid-row: 1; display: flex; flex-direction: column; min-height: 0; padding: 12px; border-radius: var(--r); background: var(--sys); border: 1.5px solid var(--sys-line); }
  .bt__logp h3 { display: flex; align-items: center; gap: 6px; font-size: 1rem; color: var(--gold-hi); margin-bottom: 8px; }
  .bt__logp ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; overflow-y: auto; align-content: start; }
  .bt__logp li { display: grid; grid-template-columns: 22px 1fr; gap: 6px; font-size: .84rem; line-height: 1.35; color: var(--muted); }
  .bt__logp li b { display: grid; place-items: center; height: 20px; border-radius: 6px; background: rgba(255, 255, 255, .08); font: 800 .72rem var(--f-brand); }
  .bt__logp li.is-new { color: var(--text); }
  .js-motion .bt__logp li.is-new { animation: alog var(--t-state) var(--ease); }
  .bt__logp .is-empty { display: block; color: var(--faint); }
  .bt__side .me { grid-template-columns: 72px 1fr; width: 100%; }
  .bt__side .me__inc { grid-column: 1 / -1; justify-self: stretch; }
  .bt__side .me__inc .inc { grid-auto-flow: column; justify-content: center; gap: 8px; }
  .bt__side .res-row { grid-template-columns: auto 1fr; grid-template-areas: "n t" "e e"; }
  .bt__side .nrg { grid-area: n; } .bt__side .tl { grid-area: t; } .bt__side .endt { grid-area: e; min-height: 52px; }
  .bt__side .endt { grid-auto-flow: column; justify-content: center; gap: 8px; align-items: center; }
  .bt__log { display: none; }
  .bt__msg { width: min(640px, 100%); }
  .bt__hand { --g: 12px; width: min(980px, 100%); }
  .bt__hand > .fc { max-width: clamp(110px, calc((34dvh - 70px) / 1.25), 176px); }
}
@keyframes alog { from { opacity: 0; transform: translateY(-6px); } }
/* טאבלט לאורך: היד מתחת, בלי חור באמצע */
@media (min-width: 700px) and (max-width: 1099px) { .bt__side { width: min(680px, 100%); margin: 0 auto; } }

/* ---------- מעברי מסך ---------- */
.js-motion .amain > section { animation: aenter var(--t-enter) var(--ease) both; }
@keyframes aenter { from { opacity: 0; transform: translateY(10px); } }
.js-motion .arena[data-screen="battle"] .amain > section { animation: none; }
.hist li b { display: inline-flex; align-items: center; gap: 4px; } .hist li b .dic { width: 16px; height: 16px; }

.bt__foes > * { flex: none; }
.bt__foes .bt__enemies { flex: 0 1 auto; }
@media (max-width: 699px) {
  .me { grid-template-columns: 44px 1fr auto; gap: 8px; }
  .me__info .chips .chip small { display: none; }
  .inc { padding: 4px 6px; } .inc b { font-size: 1.1rem; } .inc small { font-size: .62rem; max-width: 64px; }
  .en .vil { width: clamp(52px, 11dvh, 120px); } .en.is-boss .vil { width: clamp(70px, 16dvh, 160px); }
  .en { padding: 20px 4px 4px; gap: 2px; }
  .bt__foes { gap: 4px; }
}

.stage--end { grid-template-columns: 1fr; justify-items: center; }
.end__cap { margin: 0; } .end__cap .fc--cap { width: min(190px, 44vw); transform: rotate(-3deg); }
.res--loss ~ * , .stage--end .res { width: min(560px, 100%); }
@media (min-width: 900px) { .stage--end { grid-template-columns: auto 1fr; align-items: center; gap: 28px; max-width: 860px; } }

.fc img { -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; }
.fc { -webkit-touch-callout: none; }

/* ============================================================ v4 · תיקונים מהראל + חנות ופרופיל (22.10.2026) */
/* סרגל עליון קומפקטי בטלפון */
@media (max-width: 640px) {
  .atop { gap: 6px; padding-inline: 8px; }
  .atop .pill { padding: 3px 7px; font-size: .82rem; gap: 3px; border-width: 1.5px; }
  .atop .pill .dic { width: 15px; height: 15px; }
  .atop__how { padding: 4px; box-shadow: 1px 2px 0 var(--ink); }
  .atop__q { width: 20px; height: 20px; font-size: .78rem; }
  .atop .gsfx { transform: scale(.82); }
  .atop__back { min-height: 34px; }
}
/* כוונות במילים */
.int { gap: 4px; font: 800 .82rem/1.1 var(--f-text); }
.int b { font: 900 .98rem/1 var(--f-brand); }
.int--immune { background: #2a2350; color: var(--ice); border-style: dashed; font-size: .74rem; }
.en__int { flex-wrap: wrap; justify-content: center; max-width: 170px; white-space: normal; }
@media (max-width: 699px) { .int { font-size: .7rem; padding: 2px 5px; } .int b { font-size: .84rem; } .en__int { max-width: 120px; top: -18px; } }
/* תוויות למשאבים */
.nrg small { position: absolute; top: -12px; font: 800 .66rem var(--f-brand); color: var(--gold-hi); white-space: nowrap; }
.tl__lab { display: grid; gap: 1px; justify-items: center; }
.tl__lab small { font: 800 .62rem/1 var(--f-brand); color: var(--chrono); }
/* שלושה בשורה: חשיפת חפיסה, קלפי היום, בחירת קלף לשדרוג */
.pull__grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
@media (max-width: 520px) { .pull__grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px; } .coll--shop { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } .coll--dlg { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }
@media (min-width: 700px) { .pull__grid { grid-template-columns: repeat(auto-fill, minmax(130px, 150px)); justify-content: center; } }
.pull .fc__body { padding: 4px 5px 6px; } .pull .fc__name { font-size: .66rem; } .pull .fc__band span { display: none; }
.coll--shop .fc__body, .coll--dlg .fc__body { padding: 4px 5px 6px; }
.coll--shop .buy { display: grid; gap: 3px; } .coll--shop .buy .btn { width: 100%; padding: 4px 6px; }
@media (max-width: 520px) { .coll--shop .fc__name, .coll--dlg .fc__name { font-size: .62rem; } .coll--shop .act, .coll--dlg .act { font-size: .6rem; } .coll--shop .fc__band span, .coll--dlg .fc__band span { display: none; } .coll--shop .buy small { font-size: .62rem; } }
/* חבילה נקרעת */
.tear { all: unset; cursor: pointer; position: relative; display: block; width: 150px; aspect-ratio: 120 / 150; margin: 6px auto 10px; }
.tear > span { position: absolute; inset: 0; transition: transform .5s var(--ease), opacity .5s; }
.tear svg { width: 100%; height: 100%; display: block; }
.tear__a { clip-path: polygon(0 0, 100% 0, 100% 30%, 85% 34%, 70% 29%, 55% 35%, 40% 30%, 25% 35%, 10% 29%, 0 33%); }
.tear__b { clip-path: polygon(0 33%, 10% 29%, 25% 35%, 40% 30%, 55% 35%, 70% 29%, 85% 34%, 100% 30%, 100% 100%, 0 100%); }
.js-motion .pull.is-sealed .tear { animation: ashake 1.4s ease-in-out infinite; }
.tear.is-torn .tear__a { transform: translate(-30px, -90px) rotate(-28deg); opacity: 0; }
.tear.is-torn .tear__b { transform: translateY(40px) scale(.9); opacity: 0; }
.tear:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 12px; }
.pull.is-sealed .pull__grid { display: none; }
.js-motion .pull.is-out .pull__c { animation: afly .55s var(--spring) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes afly { from { transform: translateY(120px) scale(.4) rotate(calc((var(--i) - 3) * 8deg)); opacity: 0; } }
/* חנות */
.phead--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.phead--row > div { display: grid; gap: 8px; justify-items: start; }
.wallet { display: inline-grid; grid-template-columns: auto auto; grid-template-areas: "i b" "i s"; column-gap: 8px; align-items: center; padding: 8px 14px; border-radius: var(--r); background: var(--sys); border: 1.5px solid rgba(245, 200, 66, .5); }
.wallet .dic { grid-area: i; width: 30px; height: 30px; } .wallet b { grid-area: b; font: 900 1.5rem/1 var(--f-brand); color: var(--gold-hi); } .wallet small { grid-area: s; color: var(--muted); font-size: .78rem; }
.packs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pack { padding: 14px 10px; gap: 6px; }
.pack__art { width: min(110px, 100%); }
.odds { flex-direction: column; gap: 3px; align-items: center; font-size: .82rem; }
.pack .btn { width: 100%; padding-inline: 8px; }
@media (max-width: 560px) {
  .packs { gap: 8px; } .pack { padding: 10px 6px; border-width: 2.5px; box-shadow: 3px 4px 0 var(--ink); }
  .pack h3 { font-size: 1rem; } .pack__n { font-size: .74rem; } .odds { font-size: .7rem; } .odds .tier { font-size: .62rem; padding: 1px 5px; }
  .pack .btn { font-size: .86rem; min-height: 38px; padding: 4px 6px; } .pack .btn .dic { width: 16px; height: 16px; }
  .pack:nth-child(n) { rotate: 0deg; }
}
.ups { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.sells { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
/* פרופיל */
.prof__hero { display: grid; gap: 18px; align-items: center; }
.prof__cap { margin: 0; display: grid; gap: 10px; justify-items: center; text-align: center; }
.prof__cap figcaption { display: grid; gap: 6px; justify-items: center; max-width: 260px; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.prof__cap figcaption b { display: inline-flex; gap: 5px; align-items: center; font: 900 1rem var(--f-brand); color: var(--gold-hi); }
.prof__me { display: grid; gap: 12px; justify-items: center; }
.lvlring { width: 132px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(255, 255, 255, .1) 0); border: 3px solid var(--ink); box-shadow: 4px 5px 0 var(--ink); }
.lvlring > span { display: grid; place-items: center; width: 104px; aspect-ratio: 1; border-radius: 50%; background: var(--night-2); border: 2.5px solid var(--ink); }
.lvlring b { font: 900 2.6rem/1 var(--f-brand); color: var(--gold-hi); } .lvlring small { font: 800 .8rem var(--f-brand); color: var(--muted); }
.lvlnote { color: var(--muted); font-size: .9rem; text-align: center; max-width: 34ch; }
@media (min-width: 760px) { .prof__hero { grid-template-columns: auto 1fr; } .prof__me { justify-items: start; } .lvlnote { text-align: start; } }
.ptiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 22px; border-radius: var(--r); overflow: hidden; background: var(--sys-line); border: 1.5px solid var(--sys-line); }
.ptile { display: grid; justify-items: center; gap: 2px; padding: 12px 6px; background: var(--sys); text-align: center; }
.ptile .dic { width: 22px; height: 22px; } .ptile b { font: 900 1.35rem/1.1 var(--f-brand); } .ptile b em { font-style: normal; font-size: .8rem; color: var(--muted); } .ptile small { color: var(--muted); font-size: .76rem; line-height: 1.25; }
@media (min-width: 900px) { .ptiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.prof__cols { display: grid; gap: 4px 28px; }
@media (min-width: 900px) { .prof__cols { grid-template-columns: 1fr 1fr; align-items: start; } }
.famrows { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.famrows li { display: grid; grid-template-columns: 128px 1fr 54px; gap: 10px; align-items: center; }
.fr__n { display: inline-flex; align-items: center; gap: 5px; font: 800 .88rem var(--f-brand); white-space: nowrap; }
.fr__n .dic { width: 18px; height: 18px; }
.fr__bar { display: block; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; border: 1.5px solid rgba(10, 11, 34, .8); }
.fr__bar > i { display: block; height: 100%; background: var(--fam); }
.famrows b { font: 900 .95rem var(--f-brand); text-align: end; } .famrows b em { font-style: normal; font-size: .75rem; color: var(--muted); }
.chipbtn--danger:hover { border-color: var(--dmg); }
.prof__end { gap: 8px; }
.pack { min-width: 0; overflow: hidden; }
.pack h3, .pack__n { max-width: 100%; text-wrap: balance; overflow-wrap: anywhere; }
.packs > * { min-width: 0; }
@media (max-width: 560px) { .pack h3 { font-size: .92rem; line-height: 1.1; } .pack__n { line-height: 1.25; } .odds li { gap: 3px; } .wallet { padding: 6px 10px; } .wallet b { font-size: 1.2rem; } .wallet .dic { width: 24px; height: 24px; } }
/* כוונות בתוך הזרימה, מעל התמונה - לא מכסות אותה */
.en { padding-top: 6px !important; }
.en__int { position: static !important; translate: none !important; display: flex; gap: 3px; min-height: 24px; margin-bottom: 2px; order: -1; }
.en__info { top: 34px; }
.en__crown { top: 22px; }
@media (max-width: 699px) { .en__int { min-height: 20px; max-width: 118px; } .en__info { top: 28px; width: 20px; height: 20px; } }
.prof__cap .fc--cap { width: min(180px, 46vw); }
@media (max-width: 699px) {
  .bt__enemies { flex-wrap: nowrap; gap: 6px; }
  .bt__enemies .en { flex: 1 1 0; min-width: 0; max-width: 140px; }
  .bt__enemies .en__int { max-width: 100%; }
  .bt__enemies .en .vil { width: 100%; max-width: clamp(52px, 11dvh, 110px); }
}
.prof__me { width: min(440px, 100%); }

/* ============================================================ v5 · סבב שני של הראל */
/* קלף: הפס לא נמתח - שורות: איור, פס, גוף */
.fc { grid-template-rows: auto auto 1fr; }
/* תיאור קצר: מקסימום 2 שורות קטנות בכל קלף ברשת */
.coll .acts, .coll--shop .acts, .pull .acts, .slots .acts, .fc--hand .acts, .coll--dlg .acts { display: grid; gap: 3px; }
.coll .act, .pull .act, .slots .act, .fc--hand .act, .coll--dlg .act { display: flex; min-width: 0; max-width: 100%; overflow: hidden; white-space: nowrap; line-height: 1.2; }
.coll .act span, .pull .act span, .slots .act span, .fc--hand .act span, .coll--dlg .act span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.coll .acts > .act:nth-child(n+3), .pull .acts > .act:nth-child(n+3), .slots .acts > .act:nth-child(n+3), .fc--hand .acts > .act:nth-child(n+3), .coll--dlg .acts > .act:nth-child(n+3) { display: none; }
/* יד: כל הקלפים באותו גובה, טקסט לא יוצא */
.bt__hand { align-items: stretch; }
.bt__hand > .fc { display: grid; grid-template-rows: auto auto 1fr; }
.fc--hand .fc__body { align-content: start; overflow: hidden; }
.fc--hand .fc__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* חנות: החבילות בטלפון לא נחתכות */
@media (max-width: 560px) {
  .pack { padding: 8px 5px 10px; gap: 4px; overflow: visible; }
  .pack__art { width: 72px; } .pack__art b { bottom: 6px; font-size: 1rem; }
  .pack h3 { font-size: .86rem; } .pack__n { font-size: .68rem; }
  .odds { font-size: .66rem; gap: 2px; } .odds li { gap: 2px; white-space: nowrap; }
  .pack .btn { font-size: .78rem; min-height: 34px; gap: 4px; white-space: normal; line-height: 1.1; }
}
/* בחירת מצב בהרפתקה */
.modes3 { display: grid; gap: 12px; }
@media (min-width: 760px) { .modes3 { grid-template-columns: 1.3fr 1fr 1fr; } }
.mode3 { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 64px 1fr; grid-template-areas: "a b" "a s"; column-gap: 14px; row-gap: 2px; align-items: center; padding: 16px; border-radius: var(--r-lg); background: var(--sys); border: 1.5px solid var(--sys-line); transition: transform var(--t-tap) var(--spring), border-color var(--t-state); }
.mode3 .art { grid-area: a; width: 64px; height: 64px; } .mode3 b { grid-area: b; font: 900 1.3rem var(--f-brand); } .mode3 span { grid-area: s; color: var(--muted); line-height: 1.45; font-size: .92rem; }
.mode3:hover { transform: translateY(-2px); border-color: var(--gold); }
.mode3:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.mode3--main { background: var(--gold); color: var(--ink); border: 3px solid var(--ink); box-shadow: 5px 6px 0 var(--ink); }
.mode3--main span { color: #4a3a10; }
.mode3[disabled] { opacity: .5; cursor: default; transform: none; }
@media (min-width: 760px) { .mode3 { grid-template-columns: 1fr; grid-template-areas: "a" "b" "s"; justify-items: start; row-gap: 8px; } }

.act .as { display: none; }
@media (max-width: 699px) {
  .fc--hand .act .al, .slots .act .al, .pull .act .al, .coll--dlg .act .al, .coll--shop .act .al { display: none; }
  .fc--hand .act .as, .slots .act .as, .pull .act .as, .coll--dlg .act .as, .coll--shop .act .as { display: inline; }
  .fc--hand .act, .slots .act { gap: 2px; padding: 1px 3px; }
}
.slots .act .al { display: none; } .slots .act .as { display: inline; }
@media (max-width: 699px) {
  .fc--hand .act .dic, .slots .act .dic, .coll--dlg .act .dic { display: none; }
  .fc--hand .act, .slots .act, .coll--dlg .act { justify-content: center; font-size: .6rem; padding: 1px 2px; }
  .fc--hand .act b, .slots .act b { font-size: .8rem; }
  .deck__bar { position: static; }
}
@media (min-width: 700px) {
  .fc--hand .act { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-align: start; }
  .fc--hand .act span { overflow: visible; }
  .fc--hand .act .dic { float: inline-start; margin-inline-end: 3px; }
}

@media (max-width: 699px) { .slots .act { font-size: .52rem; } .slots .act b { font-size: .7rem; } }

/* ============================================================
   v6 · מובייל קודם: כל מסך נכנס בגובה אחד, בלי גלילה (23.10.2026)
   עיקרון: מעטפת = סרגל עליון + אזור תוכן (flex) + לשוניות. כל מסך ממלא את אזור התוכן.
   רשימות ארוכות = עמודים (pager), לא גלילה. גלילה פנימית רק בבורר הקפטן ובחלונות.
   ============================================================ */
.rmap { height: var(--h, 600px); }
.seg--deck, .seg--prof, .run__info { display: none; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 4px 0 0; font: 900 .95rem var(--f-brand); color: var(--muted); }
.pager__b { all: unset; cursor: pointer; display: grid; place-items: center; width: 44px; height: 40px; border-radius: 12px; background: var(--sys); border: 1.5px solid var(--sys-line); }
.pager__b[disabled] { opacity: .35; cursor: default; }
.pager__b:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.pager .dic { width: 22px; height: 22px; } .pager__r { rotate: 90deg; } .pager__l { rotate: -90deg; }
/* סמן הקפטן על המפה */
.mtok { position: absolute; z-index: 3; translate: 50% -100%; width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--gold); box-shadow: 0 0 0 2.5px var(--ink), 0 6px 14px rgba(0, 0, 0, .5); overflow: hidden; pointer-events: none; transition: right .6s var(--ease), top .6s var(--ease); }
.mtok img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.js-motion .mtok:not(.is-walk) { animation: atok 1.6s ease-in-out infinite; }
@keyframes atok { 50% { translate: 50% -112%; } }
.mtok.is-walk { animation: none; }
.mn[data-fog] { opacity: .35; filter: blur(1.5px); }
.mn[data-fog] small { visibility: hidden; }

@media (max-width: 699px), (max-height: 500px) {
  html { overflow: hidden; }
  .arena { height: 100dvh; overflow: hidden; padding: 0 !important; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
  .atop { grid-row: 1; position: relative; padding-block: max(6px, env(safe-area-inset-top)) 4px; }
  .atabs { grid-row: 3; position: relative; inset: auto; }
  .amain { grid-row: 2; width: 100%; min-height: 0; padding: 6px 12px 8px; overflow: hidden; display: flex; flex-direction: column; }
  .amain > section { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
  .arena[data-screen="battle"] .amain { padding: 0 6px; }
  .bt { height: 100%; }
  .atoast { bottom: calc(76px + env(safe-area-inset-bottom)); }
  /* כותרות מסך: קצרות, בלי פסקת הסבר (ההסבר נמצא ב"איך משחקים" ובחלונות) */
  .phead { margin: 0; gap: 2px; flex: none; }
  .phead p:not(.kick) { display: none; }
  .phead h1 { font-size: 1.55rem; -webkit-text-stroke-width: 1.5px; text-shadow: 2px 2px 0 var(--ink); }
  .arena .kick { font-size: .72rem; padding: 2px 8px; }
  .note, .home__credit, .deck__hint { display: none; }
  .sub { margin: 4px 0 4px !important; font-size: 1.05rem !important; }

  /* רשת שנכנסת: הקלפים מתכווצים לגובה התא */
  .fitg { flex: 1 1 auto; min-height: 0; display: grid !important; grid-template-columns: repeat(var(--c), minmax(0, 1fr)) !important; grid-template-rows: repeat(var(--r), minmax(0, 1fr)); gap: 6px !important; align-content: stretch; }
  .fitg > .fc, .fitg > .slot-empty { height: 100%; min-height: 0; max-height: none; }
  .fitg > .fc { grid-template-rows: minmax(0, 1fr) auto auto; box-shadow: 2px 3px 0 var(--ink); border-width: 2px; border-radius: 10px; }
  .fitg > .fc .fc__art { aspect-ratio: auto; min-height: 0; border-radius: 8px 8px 0 0; }
  .fitg > .fc .fc__art img { object-position: 50% 18%; }
  .fitg > .fc .fc__body { padding: 3px 4px 4px; gap: 2px; }
  .fitg > .fc .fc__name { font-size: .62rem; }
  .fitg > .fc .fc__band { min-height: 15px; padding: 1px 4px; font-size: .58rem; border-bottom-width: 2px; }
  .fitg > .fc .fc__band span { display: none; }
  .fitg > .fc .fc__cost { width: 22px; height: 22px; font-size: .8rem; top: -5px; inset-inline-end: -5px; border-width: 2px; }
  .fitg > .fc .fc__info { width: 20px; height: 20px; font-size: .7rem; top: 3px; inset-inline-start: 3px; }
  .fitg > .fc .tier { font-size: .54rem; padding: 1px 4px; top: 4px; }
  .fitg > .fc .act { font-size: .58rem; padding: 0 3px; } .fitg > .fc .act b { font-size: .74rem; } .fitg > .fc .act .dic { display: none; }
  .fitg > .fc .act .al { display: none; } .fitg > .fc .act .as { display: inline; }
  .fitg > .fc .acts > .act:nth-child(n+2) { display: none; }
  .fitg > .fc .fc__x { width: 20px; height: 20px; opacity: .9; }
  .fitg .slot-empty { min-height: 0; border-radius: 10px; } .fitg .slot-empty small { display: none; }

  /* ---------- פתיחה: בורר הקפטן גולל בתוך עצמו ---------- */
  .onb { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 0; justify-items: stretch; text-align: start; }
  .onb .logo { font-size: 1.9rem; padding: 6px 14px 8px; box-shadow: 4px 4px 0 var(--ink); align-self: center; }
  .onb .lead, .onb > .kick, .onb__cap > p { display: none; }
  .onb__name { width: 100%; gap: 3px; font-size: .88rem; } .onb__name input { padding: 9px 12px; }
  .onb__cap { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 8px; gap: 6px; }
  .onb__cap h2 { font-size: 1.1rem; }
  .onb__cap .pick { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
  .pick__q input { padding: 8px 0; } .pick__fam { padding: 8px 10px; font-size: .92rem; }
  .onb__cap .pick__grid { flex: 1; min-height: 0; max-height: none; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .pk { padding: 3px 3px 5px; } .pk b { font-size: .62rem; } .pk small { font-size: .6rem; }
  .onb__go { position: static; padding: 0; background: none; } .onb__go .btn { width: 100%; }

  /* ---------- בית ---------- */
  .home { display: grid !important; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto auto; grid-template-areas: "logo logo" "cap run" "cta cta" "sub sub" "modes modes"; gap: 8px 12px !important; }
  .home__hero, .home__copy { display: contents; }
  .home__copy > .kick, .hstrip { display: none; }
  .home .logo { grid-area: logo; justify-self: center; font-size: 1.75rem; padding: 6px 16px 8px; box-shadow: 4px 4px 0 var(--ink); }
  .home .runcard, .home .lead { grid-area: run; align-self: center; width: 100%; }
  .home .runcard { padding: 10px; gap: 7px; } .runcard__top b { font-size: 1.05rem; } .runcard__stats { gap: 9px; font-size: .9rem; } .runcard__note { font-size: .8rem; }
  .home .lead { font-size: .98rem; }
  .home__cap { grid-area: cap; min-height: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
  .home__capbtn { min-height: 0; display: flex; justify-content: center; max-height: 100%; }
  .home__cap .fc--cap { width: auto; height: 100%; max-height: 260px; aspect-ratio: auto; max-width: 100%; transform: rotate(-2deg); }
  .home__cap .fc--cap { grid-template-rows: minmax(0, 1fr) auto auto; }
  .home__cap .fc--cap .fc__art { aspect-ratio: 2 / 3; min-height: 0; height: 100%; }
  .home__cap .fc--cap .fc__body { display: none; }
  .home__cap figcaption { font-size: .72rem; line-height: 1.25; } .home__cap figcaption b { font-size: .8rem; }
  .home__cta { grid-area: cta; } .home__cta .btn { width: 100%; min-height: 54px; }
  .home__sub { grid-area: sub; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .home__sub .chipbtn { justify-content: center; padding: 4px 6px; min-height: 44px; font-size: .78rem; gap: 4px; }
  .home__sub .chipbtn .art { width: 22px; height: 22px; } .home__sub .chipbtn .dic { width: 17px; height: 17px; }
  .home__modes { grid-area: modes; grid-template-columns: 1fr 1fr !important; gap: 8px; margin: 0; }
  .hmode { grid-template-columns: 38px 1fr !important; grid-template-areas: "ic t" !important; padding: 8px 10px; box-shadow: 3px 3px 0 var(--ink); border-width: 2.5px; }
  .hmode__ic { width: 38px; height: 38px; border-radius: 10px; } .hmode__ic .dic { width: 22px; height: 22px; }
  .hmode b { font-size: 1rem; } .hmode > span:last-child { display: none; }

  /* ---------- מפה ---------- */
  .rbar { position: relative; top: auto; flex: none; margin: 0; padding: 5px 8px; gap: 8px; box-shadow: 2px 3px 0 var(--ink); }
  .rbar__hp { min-width: 0; } .rbar__hp .hp { width: 46px; } .rbar > span, .rbar__deck { font-size: .86rem; } .rbar__deck small { display: none; }
  .relic { width: 28px; height: 28px; } .relic img { width: 24px; height: 24px; }
  .run__grid { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 0; }
  .run__main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .run__aside { display: none; }
  .run__head { margin: 4px 0 0; gap: 3px; flex: none; }
  .run__head h1 { display: flex; align-items: center; gap: 8px; font-size: 1.45rem; -webkit-text-stroke-width: 1.5px; }
  .run__head p { display: none; }
  .run__info { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sys); border: 1.5px solid var(--sys-line); -webkit-text-stroke: 0; text-shadow: none; cursor: pointer; }
  .run__info .dic { width: 18px; height: 18px; }
  .chsteps li { font-size: .72rem; } .chsteps i { width: 20px; height: 20px; font-size: .7rem; } .chsteps li + li::before { width: 10px; }
  .rmap { flex: 1; min-height: 0; height: auto; width: 100%; margin: 4px 0 0; }
  .mn { width: 64px; } .mn .art { width: clamp(34px, 6.4dvh, 52px); height: clamp(34px, 6.4dvh, 52px); } .mn small { font-size: .64rem; }
  .mn--boss { width: 92px; } .mn--boss .art { width: clamp(52px, 10dvh, 80px); height: clamp(52px, 10dvh, 80px); }
  .mtok { width: 30px; height: 30px; border-width: 2.5px; }
  .adlg--legend .legend ul { grid-template-columns: 1fr; }
  .adlg--legend .bosscard { margin-bottom: 10px; }

  /* ---------- מסכי צמתים ---------- */
  .stage { max-width: none; gap: 6px; }
  .stage__img { flex: none; max-height: 24dvh; aspect-ratio: auto; height: 24dvh; border-width: 2.5px; box-shadow: 3px 4px 0 var(--ink); border-radius: var(--r); }
  .stage__head h1 { font-size: 1.4rem; -webkit-text-stroke-width: 1.5px; }
  .stage__lead { font-size: .92rem; line-height: 1.4; }
  .stage__go { flex: none; margin: 0; } .stage__go .btn { width: 100%; min-height: 50px; }
  .stage .sub { flex: none; }
  .opts { gap: 6px; flex: none; }
  .opt { padding: 8px 12px; gap: 1px; box-shadow: 3px 3px 0 var(--ink); border-width: 2.5px; }
  .opt b { font-size: 1.02rem; } .opt__cost, .opt__gain, .opt small { font-size: .82rem; }
  .relics { flex: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .relics:has(> :only-child) { grid-template-columns: 1fr; }
  .relicc { padding: 6px; gap: 2px; border-width: 2.5px; box-shadow: 3px 3px 0 var(--ink); }
  .relicc img { width: 40px; height: 40px; } .relicc b { font-size: .78rem; } .relicc span { font-size: .66rem; line-height: 1.25; }
  .relics:has(> :only-child) .relicc { grid-template-columns: 52px 1fr; justify-items: start; text-align: start; column-gap: 10px; } .relics:has(> :only-child) .relicc img { grid-row: span 2; width: 52px; height: 52px; }
  .relicc--one { max-width: none; }
  .stage .coll--reward { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; grid-template-rows: minmax(0, 1fr); max-width: none; gap: 8px; }
  .stage .coll--reward > .fc { height: 100%; min-height: 0; grid-template-rows: minmax(0, 1fr) auto auto; }
  .stage .coll--reward > .fc .fc__art { aspect-ratio: auto; min-height: 0; } .stage .coll--reward > .fc .fc__art img { object-position: 50% 18%; }
  .stage .coll--reward .act { font-size: .62rem; } .stage .coll--reward .fc__name { font-size: .66rem; }
  .stage .coll--reward .fc__band span { display: none; }
  .opts--shop { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .opts--shop .opt { padding: 6px; text-align: center; justify-items: center; }
  .opts--shop .opt b { font-size: .82rem; } .opts--shop .opt__gain { display: none; } .opts--shop .opt__cost::before { content: ""; }
  .opt--relic { grid-template-columns: 1fr; } .opt--relic img { grid-row: auto; width: 34px; height: 34px; }
  .stage--end { justify-content: center; } .end__cap .fc--cap { width: min(120px, 32vw); }
  .bossprev { padding: 6px; gap: 10px; } .bossprev .vil--md { width: 70px; } .bossprev p { font-size: .86rem; }
  .modes3 { flex: 1; min-height: 0; align-content: center; }

  /* ---------- חפיסה: שתי לשוניות ---------- */
  .seg { position: relative; top: auto; margin: 0; flex: none; box-shadow: 2px 3px 0 var(--ink); }
  .seg--deck, .seg--prof { display: grid; grid-template-columns: 1fr 1fr; }
  .seg__b { padding: 8px 4px; font-size: .86rem; }
  .deck__grid { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .deck.is-deck .deck__main, .deck.is-coll .deck__side { display: none; }
  .deck__side, .deck__main { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
  .deck__bar { position: relative; top: auto; flex: none; margin: 0; padding: 6px 8px; gap: 8px; box-shadow: none; border-width: 1.5px; }
  .deck__count { font-size: 1.15rem; } .mix { gap: 6px; font-size: .72rem; } .mix span:last-child { display: none; }
  .deck__btns .btn { min-height: 36px; padding: 4px 10px; font-size: .86rem; }
  .coll__head { margin: 0; gap: 6px; flex-wrap: nowrap; flex: none; }
  .coll__head h2 { display: none; }
  .coll__head .pick__q { flex: 1 1 50%; min-width: 0; } .coll__head .pick__fam { flex: 1 1 50%; min-width: 0; }
  .coll .fc.is-indeck { box-shadow: 2px 3px 0 var(--ink), 0 0 0 2.5px var(--green); }
  .fc__in .dic { width: 28px !important; height: 28px !important; }

  /* ---------- חנות ---------- */
  .phead--row { flex-wrap: nowrap; align-items: center; }
  .phead--row > div { gap: 2px; }
  .wallet { padding: 4px 10px; flex: none; } .wallet small { display: none; } .wallet b { font-size: 1.15rem; } .wallet .dic { width: 22px; height: 22px; }
  .shop__body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
  .packs { flex: 1; min-height: 0; align-items: stretch; }
  .pack { justify-content: center; }
  .shop__body .coll--shop { flex: 1; }
  .coll--shop .fc .fc__body { padding: 3px; } .coll--shop .buy small { display: none; } .coll--shop .buy .btn { min-height: 30px; font-size: .76rem; }
  .coll--shop.fitg > .fc .acts > .act:nth-child(n+2) { display: none; }
  .ups { flex: 1; min-height: 0; grid-template-columns: 1fr 1fr !important; gap: 8px; align-content: center; }
  .up { padding: 10px; gap: 5px; box-shadow: 3px 4px 0 var(--ink); }
  .up__ic { width: 40px; height: 40px; } .up__ic .dic { width: 24px; height: 24px; } .up h3 { font-size: 1rem; } .up p { font-size: .78rem; line-height: 1.3; } .up__meta { font-size: .76rem; } .up .btn { width: 100%; }
  .sells { grid-template-columns: 1fr !important; gap: 6px; flex: none; }
  .sell { padding: 5px 8px; grid-template-columns: 38px 1fr auto; gap: 8px; box-shadow: 2px 3px 0 var(--ink); }
  .sell img { width: 38px; }

  /* ---------- פרופיל: לשוניות ---------- */
  .prof .phead { display: none; }
  .prof__hero { flex: none; grid-template-columns: 100px 1fr; gap: 12px; align-items: center; }
  .prof__cap { gap: 4px; } .prof__cap .fc--cap { width: 100px; transform: rotate(-2deg); } .prof__cap .fc--cap .fc__body { display: none; }
  .prof__cap figcaption { display: none; }
  .prof__me { grid-template-columns: 1fr auto; grid-template-areas: "n r" "l r"; justify-items: stretch; align-items: center; gap: 4px 10px; width: 100%; }
  .prof__me .onb__name { grid-area: n; } .lvlring { grid-area: r; width: 74px; box-shadow: 2px 3px 0 var(--ink); border-width: 2.5px; } .lvlring > span { width: 58px; border-width: 2px; } .lvlring b { font-size: 1.5rem; } .lvlring small { font-size: .6rem; }
  .lvlnote { grid-area: l; font-size: .74rem; text-align: start; }
  .ptiles { flex: none; margin: 0; } .ptile { padding: 6px 4px; gap: 0; } .ptile .dic { width: 16px; height: 16px; } .ptile b { font-size: 1.05rem; } .ptile small { font-size: .64rem; }
  .prof__cols { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
  .prof__cols.is-fam .pcol--hist, .prof__cols.is-hist .pcol--fam { display: none; }
  .prof__cols .sub { display: none; }
  .famrows { gap: 3px; grid-template-columns: 1fr 1fr; column-gap: 10px; }
  .famrows li { grid-template-columns: minmax(0, 1fr) 40px; gap: 4px; grid-template-areas: "n b" "bar bar"; }
  .fr__n { grid-area: n; font-size: .74rem; min-width: 0; overflow: hidden; } .fr__n .dic { width: 14px; height: 14px; }
  .fr__bar { grid-area: bar; height: 6px; } .famrows b { grid-area: b; font-size: .78rem; }
  .hist { gap: 4px; } .hist li { padding: 6px 10px; grid-template-columns: 74px 1fr auto; } .hist li small { display: none; } .hist li span { font-size: .82rem; }
  .prof__end { flex: none; margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
  .prof__end .chipbtn { justify-content: center; }
  .prof .home__credit { display: block; flex: none; margin: 0 !important; font-size: .72rem; }
}
/* טלפון לרוחב: הלשוניות עוברות לצד, כדי לא לאכול גובה */
@media (max-height: 500px) and (orientation: landscape) {
  .arena { grid-template-columns: minmax(0, 1fr) 76px; grid-template-rows: auto minmax(0, 1fr); }
  .atop { grid-column: 1; }
  .amain { grid-column: 1; grid-row: 2; }
  .atabs { grid-column: 2; grid-row: 1 / 3; grid-template-columns: 1fr; grid-auto-rows: 1fr; padding: max(6px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-right)) 6px 6px; border-top: 0; border-inline-start: 2.5px solid var(--ink); }
  .arena[data-screen="battle"] .amain, .arena[data-screen="onboard"] .amain { grid-column: 1 / -1; grid-row: 1 / -1; }
  .home { grid-template-columns: minmax(0, 22%) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "logo logo logo" "cap run cta" "cap sub modes"; }
  .home__cta { align-self: center; } .home__modes { grid-template-columns: 1fr !important; }
  .stage__img { display: none; }
  .coll--shop.fitg { --c: 6 !important; --r: 1 !important; }
  .famrows { grid-template-columns: 1fr 1fr 1fr; }
}

/* v6b: תיקונים אחרי מדידה */
.atop .pill--cards b small { font-size: .7em; color: var(--muted); }
@media (max-width: 640px) { .atop .pill--cards { display: inline-flex; } }
.fc--slot { cursor: pointer; }
button.fc__x { all: unset; box-sizing: border-box; cursor: pointer; position: absolute; z-index: 4; bottom: 5px; inset-inline-end: 5px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); box-shadow: 1px 2px 0 var(--ink); opacity: 1; }
button.fc__x:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.cast { top: 56%; }
@media (max-width: 699px), (max-height: 500px) {
  .fitg > .fc button.fc__x { width: 24px; height: 24px; bottom: 3px; inset-inline-end: 3px; }
  .rbar { flex-wrap: nowrap; } .rbar__relics { flex-wrap: nowrap; overflow: hidden; margin-inline-start: auto; min-width: 0; } .rbar__relics small { display: none; }
  .home .chsteps span { display: none !important; }
  .prof__hero { grid-template-columns: 76px 1fr; } .prof__cap .fc--cap { width: 76px; } .lvlnote { display: none; }
  .famrows { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 8px; }
  .fr__n { font-size: .68rem; } .famrows b { font-size: .7rem; } .famrows b em { font-size: .62rem; }
  .famrows li { grid-template-columns: minmax(0, 1fr) auto; }
  .cast { top: 50%; width: min(340px, 94%); grid-template-columns: 60px 1fr; }
  .cast img { width: 60px; } .cast__txt b { font-size: 1rem; } .cast__txt q { font-size: .8rem; }
}
@media (max-width: 699px) and (max-height: 700px) {
  .stage__img { height: 15dvh; max-height: 15dvh; }
  .stage__lead { font-size: .84rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .opt { padding: 6px 10px; } .opt b { font-size: .95rem; } .opt__cost, .opt__gain { font-size: .76rem; }
}
@media (max-width: 699px), (max-height: 500px) {
  .amain > section { width: 100%; min-width: 0; }
  .amain > section > * { min-width: 0; max-width: 100%; }
  .rbar { overflow: hidden; }
  .rbar > span, .rbar__deck { flex: none; }
}
/* קרב בטלפון לרוחב: נבלים בצד אחד, הקפטן והמשאבים בצד השני, היד למטה */
@media (max-height: 500px) and (orientation: landscape) {
  .bt { gap: 4px; padding-top: 4px; }
  .bt__top { position: absolute; inset: 4px 4px auto; z-index: 6; pointer-events: none; }
  .bt__top > * { pointer-events: auto; }
  .bt__title { visibility: hidden; }
  .bt__stage { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 8px; padding-inline: 44px; }
  .bt__foes { grid-column: 1; grid-row: 1; gap: 4px; justify-content: flex-end; }
  .bt__side { grid-column: 2; grid-row: 1; align-content: end; gap: 4px; }
  .bt__enemies { gap: 4px; }
  .en { padding: 2px 2px 2px !important; }
  .en .vil, .bt__enemies .en .vil { width: clamp(40px, 15dvh, 70px) !important; max-width: none; }
  .en__n, .en small { display: none; }
  .bt__msg { font-size: .74rem; padding: 4px 8px; min-height: 0; }
  .me { grid-template-columns: 36px 1fr auto; padding: 3px 6px; gap: 6px; } .me__art img { width: 36px; } .me__info > b { font-size: .8rem; } .me__info > small { display: none; }
  .inc { padding: 2px 5px; } .inc b { font-size: .95rem; } .inc small { display: none; }
  .res-row { gap: 4px; } .nrg, .nrg .art { width: 40px; height: 40px; } .nrg small { display: none; }
  .tla { width: 38px; } .tla .art { width: 22px; height: 22px; } .tla span { font-size: .58rem; } .tl__lab small { display: none; }
  .endt { min-width: 64px; padding: 4px 6px; } .endt b { font-size: .82rem; } .endt small { display: none; }
  .bt__hand { padding-top: 2px; }
  .bt__hand > .fc { max-width: 120px; }
  .fc--hand .fc__art { aspect-ratio: 16 / 10 !important; }
  .fc--hand .fc__band { display: none; }
  .bt__piles { display: none; }
}

.relic--more { font: 900 .82rem var(--f-brand); color: var(--gold-hi); }
.relics--all { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (max-height: 500px) and (orientation: landscape) {
  .bt__enemies { flex-wrap: nowrap !important; }
  .bt__enemies .en { flex: 1 1 0; min-width: 0; max-width: 130px; }
  .bt__hand { height: 40dvh; flex: none; }
  .bt__hand > .fc { height: 100%; grid-template-rows: minmax(0, 1fr) auto; }
  .fc--hand .fc__art { aspect-ratio: auto !important; min-height: 0; }
  .fc--hand .acts > .act:nth-child(n+2) { display: none; }
  .pack__art { width: 46px; } .pack h3 { font-size: .9rem; } .pack { padding: 6px; gap: 2px; } .odds { flex-direction: row; gap: 6px; } .pack .btn { min-height: 34px; }
  .phead--row .phead, .shop .phead--row > div > h1 { font-size: 1.2rem; }
  .stage__go .btn { min-height: 40px; }
  .prof { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); grid-template-areas: "hero seg" "tiles cols" "end cols"; gap: 6px 14px !important; }
  .prof__hero { grid-area: hero; } .ptiles { grid-area: tiles; } .seg--prof { grid-area: seg; } .prof__cols { grid-area: cols; } .prof__end { grid-area: end; align-self: end; } .prof .home__credit { display: none; }
  .prof__hero { grid-template-columns: 52px 1fr; } .prof__cap .fc--cap { width: 52px; } .lvlring { width: 56px; } .lvlring > span { width: 44px; } .lvlring b { font-size: 1.1rem; } .lvlring small { display: none; }
}

@media (max-width: 380px) { .rbar { gap: 5px; padding: 5px 6px; } .rbar__hp .hp { width: 34px; } .relic { width: 26px; height: 26px; } .relic img { width: 22px; height: 22px; } .rbar__deck { padding: 3px 7px; } }

/* מדליית הגיבור (במקום קלף) */
.medal { position: relative; display: inline-block; aspect-ratio: 1; border-radius: 50%; border: 4px solid var(--fam, var(--gold)); box-shadow: 0 0 0 3px var(--ink), 5px 6px 0 3px var(--ink); background: var(--night-2); }
.medal img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; border-radius: 50%; display: block; }
.medal__fam { position: absolute; bottom: 2%; inset-inline-end: 2%; display: grid; place-items: center; width: 30%; aspect-ratio: 1; border-radius: 50%; background: var(--fam); border: 3px solid var(--ink); }
.medal__fam .dic { width: 60%; height: 60%; }
.medal--home { width: min(210px, 50vw); } .medal--prof { width: 150px; } .medal--vs { width: min(150px, 34vw); }
.home__cap .medal { transform: rotate(-3deg); }
@media (max-width: 699px), (max-height: 500px) {
  .medal--home { width: min(100%, 22dvh); }
  .medal--prof { width: 76px; border-width: 3px; box-shadow: 0 0 0 2px var(--ink), 3px 4px 0 2px var(--ink); }
  .home__cap figcaption { display: grid; text-align: center; }
}
@media (max-height: 500px) and (orientation: landscape) { .medal--prof { width: 52px; } }
/* עיגול העלות בחפיסה: קטן יותר (פידבק הראל) */
.slots .fc__cost, .coll .fc__cost, .fitg > .fc .fc__cost { width: 20px !important; height: 20px !important; font-size: .74rem !important; top: -4px !important; inset-inline-end: -4px !important; border-width: 1.5px !important; box-shadow: 1px 1px 0 var(--ink); }

/* ============================================================ v7 · מפה מאוירת (Flow) */
.rmap { border-radius: 22px; overflow: hidden; border: 3px solid var(--ink); box-shadow: 5px 6px 0 var(--ink); background: #120c2a center / cover no-repeat; isolation: isolate; }
.rmap--hood { background-image: url(../assets/arena/map/hood.webp?v=1); }
.rmap--city { background-image: url(../assets/arena/map/city.webp?v=1); }
.rmap--storm { background-image: url(../assets/arena/map/storm.webp?v=1); }
.rmap::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(120% 80% at 50% 50%, rgba(12, 8, 34, .2), rgba(12, 8, 34, .55)), linear-gradient(180deg, rgba(12, 8, 34, .1), rgba(12, 8, 34, .35)); }
.rmap__lines { z-index: 1; }
.rmap__lines line { stroke: rgba(255, 255, 255, .55); stroke-width: 3.5; stroke-dasharray: 1 9; filter: drop-shadow(0 0 2px #000); }
.rmap__lines line.is-open { stroke: var(--gold-hi); stroke-width: 4; stroke-dasharray: 8 7; }
.js-motion .rmap__lines line.is-open { animation: adash 1s linear infinite; }
@keyframes adash { to { stroke-dashoffset: -15; } }
.rmap__lines line.is-walked { stroke: var(--gold); stroke-width: 6; stroke-dasharray: none; filter: drop-shadow(0 0 4px rgba(245, 200, 66, .9)); }
.mn { z-index: 2; }
.mn::after { content: ""; position: absolute; top: 4%; left: 50%; translate: -50% 0; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(rgba(12, 8, 34, .75), rgba(12, 8, 34, 0) 70%); z-index: -1; }
.mn small { color: #fff; text-shadow: 0 0 3px #000, 1px 1px 0 #000, -1px -1px 0 #000; }
.mn.is-open small { color: var(--gold-hi); }
.mn:not(.is-open):not(.is-done):not(.is-here) .art { filter: drop-shadow(2px 3px 0 rgba(10, 11, 34, .7)) saturate(.55) brightness(.85); }
.mn.is-open::before { background: radial-gradient(rgba(245, 200, 66, .65), transparent 70%); width: 72px; height: 72px; top: -4px; }
.mn--boss .art { filter: drop-shadow(0 0 10px rgba(255, 74, 92, .8)) !important; }
.mn--boss small { background: var(--red); color: #fff !important; padding: 1px 8px; border-radius: 8px; border: 2px solid var(--ink); text-shadow: none !important; }
.mtok { z-index: 4; }
.rfog { position: absolute; z-index: 3; inset: 0 0 auto; pointer-events: none; transition: height 1.4s var(--ease); background: linear-gradient(180deg, rgba(58, 50, 104, .55), rgba(150, 144, 196, .8) 18%, rgba(196, 190, 226, .9) 60%, rgba(196, 190, 226, .55) 88%, rgba(196, 190, 226, 0)); backdrop-filter: none; }
.rfog::after { content: 'עוד לא גילית'; position: absolute; top: 38%; left: 50%; translate: -50% -50%; font: 900 .95rem var(--f-brand); color: #3a2f74; letter-spacing: .02em; opacity: .7; }
.rfog__c { position: absolute; bottom: calc(-6% - var(--b) * 12%); max-height: 34%; object-fit: contain; right: var(--x); width: var(--w); max-width: 60%; opacity: .95; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .25)); }
.js-motion .rfog__c { animation: adrift calc(9s + var(--d) * 3s) ease-in-out infinite alternate; }
@keyframes adrift { to { translate: calc(8% - var(--d) * 6%) -4%; } }
.mn[data-fog] { opacity: 0; }

/* ============================================================ v8 · בלי שניות, מדליה בקרב, תיאורים מלאים */
.res-row { grid-template-columns: auto 1fr !important; grid-template-areas: none !important; }
.bt__side .res-row { grid-template-columns: auto 1fr !important; }
.bt__side .res-row .endt { grid-area: auto !important; }
.medal--me { width: 64px; border-width: 3px; box-shadow: 0 0 0 2px var(--ink), 3px 4px 0 2px var(--ink); }
.medal--me .medal__fam { border-width: 2px; }
.me__art { display: grid; place-items: center; }
@media (max-width: 699px), (max-height: 500px) { .medal--me { width: 46px; } .me { grid-template-columns: 50px 1fr auto !important; } }
@media (max-height: 500px) and (orientation: landscape) { .medal--me { width: 34px; } }
/* בחפיסה ובקלפים צרים: עד 2 כוחות, כל אחד במספר ושתי מילים */
@media (max-width: 699px), (max-height: 500px) {
  .fitg > .fc .acts > .act:nth-child(2) { display: flex !important; }
  .fitg > .fc .acts > .act:nth-child(n+3) { display: none !important; }
  .fitg > .fc .act { font-size: .56rem; padding: 0 2px; justify-content: center; }
  .fitg > .fc .act b { font-size: .7rem; }
  .fc--hand .acts > .act:nth-child(2) { display: flex; }
}
/* חנות: החבילות לא נמתחות על כל הדף */
@media (max-width: 699px), (max-height: 500px) {
  .packs { flex: none !important; align-items: start !important; }
  .pack { height: auto !important; }
}

/* ============================================================ v9 · אמנות ממשק מ-Flow (רקע, נייר, כפתור זהב, טבעת גיבור, לשוניות) */
.abg { background: #0d0a26 url(../assets/arena/ui/bg-wide.webp?v=1) center bottom / cover no-repeat; }
@media (max-width: 899px), (orientation: portrait) { .abg { background-image: url(../assets/arena/ui/bg-tall.webp?v=1); } }
.abg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 10, 38, .55), rgba(13, 10, 38, .35) 45%, rgba(13, 10, 38, .7)); pointer-events: none; }
.abg__dots { opacity: .35; }
/* נייר אמיתי במקום שמנת שטוח */
.fc, .opt, .hmode, .pack, .up, .relicc, .chap, .sell, .adlg__box, .node__card, .runcard__x, .bt__msg, .cast, .pk, .mode3:not(.mode3--main), .chipbtn--paper, .btn--paper, .slot-empty {
  background-image: url(../assets/arena/ui/paper.webp?v=1); background-size: 256px 256px; background-repeat: repeat;
}
.mode3:not(.mode3--main), .pk, .slot-empty { background-image: none; }
.adlg--pull .adlg__box { background-image: none; }
/* כפתור הזהב: לוחית מתכת עם ניטים (border-image שומר על הפינות בכל רוחב) */
.btn.go, .endt.is-hot, .mode3--main {
  border-style: solid; border-color: transparent; border-width: 14px 22px; padding: 6px 14px;
  border-image: url(../assets/arena/ui/btn-gold.webp?v=1) 34% 12% fill / 14px 22px stretch;
  background: transparent; box-shadow: none; filter: drop-shadow(3px 4px 0 var(--ink));
}
.btn.go:hover { filter: drop-shadow(5px 6px 0 var(--ink)); }
.btn.go:active { filter: drop-shadow(1px 2px 0 var(--ink)); }
.mode3--main { border-width: 18px 26px; border-image-width: 18px 26px; padding: 8px 10px; }
.endt.is-hot { border-width: 10px 16px; border-image-width: 10px 16px; padding: 2px 6px; }
/* טבעת הגיבור */
.medal { border: 0 !important; box-shadow: none !important; overflow: visible; }
.medal img { border-radius: 50%; }
.medal::after { content: ""; position: absolute; inset: -17%; background: url(../assets/arena/ui/hero-ring.webp?v=1) center / contain no-repeat; pointer-events: none; filter: drop-shadow(3px 4px 0 rgba(10, 11, 34, .85)); }
.medal__fam { z-index: 1; bottom: -6%; inset-inline-end: -6%; }
.medal--home, .medal--prof, .medal--vs { margin: 14%; }
.medal--home { margin: 10% 12%; }
/* לשוניות מאוירות */
.atab__art { width: 30px; height: 30px; object-fit: contain; filter: grayscale(.55) brightness(.85); transition: filter var(--t-state), transform .35s var(--spring); }
.atab.is-on .atab__art { filter: drop-shadow(0 0 6px rgba(245, 200, 66, .6)); transform: translateY(-2px) scale(1.12); }
@media (min-width: 900px) { .atab__art { width: 26px; height: 26px; } }
@media (max-height: 500px) and (orientation: landscape) { .atab__art { width: 26px; height: 26px; } }

/* ============================================================ v10 · זירה חיה במקום קופסאות (פידבק דניאל, 23.10.2026)
   נבלים צפים בלי קופסה, יד במניפה עם חפיפה, גיבור בלי מסגרת, סיום תור קטן ליד האגודל, UI כהה */
.bt__top .gsfx { position: relative; }
.bt__tools { gap: 10px; }
.bt__tools .gsfx [data-sfx-set], .bt__tools .gsfx .gsfx__set { display: none !important; }
/* נבלים: בלי קופסה, גדולים יותר, צל ונשימה */
.en { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; gap: 3px; }
.en .vil { border-width: 3px; border-radius: 14px; box-shadow: 0 10px 22px rgba(0, 0, 0, .65), 4px 5px 0 var(--ink); }
.js-motion .en:not(.is-ko) .vil { animation: abreath 3.2s ease-in-out infinite; animation-delay: calc(var(--k, 0) * -.9s); }
.en:nth-child(2) { --k: 1; } .en:nth-child(3) { --k: 2; }
@keyframes abreath { 50% { transform: translateY(-4px) scale(1.015); } }
.en__n { color: #fff; text-shadow: 0 0 3px #000, 1px 1px 0 #000; }
.en small { color: #e6e2ff; text-shadow: 0 0 3px #000; }
.en .hp { box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.en.is-target::before, .en.is-delaypick::before { inset: -6px; border-radius: 18px; }
.en.is-target .vil { box-shadow: 0 0 0 3px var(--dmg), 0 10px 22px rgba(0, 0, 0, .65); }
/* הודעה: צפה, כהה, נעלמת כשריקה */
.bt__msg { background: rgba(14, 10, 38, .82) !important; color: #f3f1ff !important; border: 1.5px solid rgba(255, 255, 255, .18) !important; box-shadow: 0 6px 16px rgba(0, 0, 0, .45) !important; backdrop-filter: none; }
.bt__msg:empty { visibility: hidden; }
.bt__msg b { color: var(--gold-hi); }
/* הגיבור: בלי קופסה */
.me { background: none !important; border: 0 !important; padding: 0 !important; box-shadow: none; }
.me.is-target .medal::before { content: ""; position: absolute; inset: -22%; border-radius: 50%; box-shadow: 0 0 0 3px var(--gold), 0 0 18px rgba(245, 200, 66, .7); }
.me__info > b { color: #fff; text-shadow: 0 0 3px #000, 1px 1px 0 #000; letter-spacing: .03em; }
.me__info > small { color: #e6e2ff; text-shadow: 0 0 3px #000; }
.hp--me { height: 11px; border-radius: 7px; }
.inc { background: rgba(14, 10, 38, .82); border: 1.5px solid rgba(255, 74, 92, .7); }
/* אנרגיה: המספר בתוך הכדור */
.nrg { width: 66px !important; height: 66px !important; }
.nrg .art { width: 100% !important; height: 100% !important; }
.nrg b { position: absolute; inset: auto 0 2px; margin: 0 auto; width: fit-content; padding: 0 7px; border-radius: 9px; background: rgba(10, 11, 34, .88); border: 1.5px solid var(--gold); font: 900 1.05rem/1.25 var(--f-brand); color: var(--gold-hi); }
.nrg b small { font-size: .7em; color: var(--muted); }
.nrg small:not(b small) { display: none !important; }
/* סיום תור: קפסולה כהה וקטנה. זוהר רק כשאין מה לשחק */
.endt { border-radius: 999px !important; background: rgba(14, 10, 38, .9) !important; color: var(--text) !important; border: 2px solid rgba(255, 255, 255, .3) !important; box-shadow: 0 4px 12px rgba(0, 0, 0, .45) !important; padding: 8px 16px !important; min-width: 0 !important; min-height: 44px; border-image: none !important; filter: none !important; }
.endt b { font-size: .98rem; }
.endt small:empty { display: none; }
.endt.is-hot { background: linear-gradient(180deg, #ffe08a, #f5c842) !important; color: var(--ink) !important; border-color: var(--ink) !important; box-shadow: 0 0 0 3px rgba(245, 200, 66, .35), 0 0 22px rgba(245, 200, 66, .65) !important; }
.js-motion .endt.is-hot { animation: aglow 1.4s ease-in-out infinite; }
@keyframes aglow { 50% { box-shadow: 0 0 0 6px rgba(245, 200, 66, .25), 0 0 30px rgba(245, 200, 66, .9); } }
/* ערימות: נראות כמו ערימת קלפים */
.bt__piles { pointer-events: none; }
.pile { all: unset; pointer-events: auto; cursor: pointer; position: relative; display: grid; place-items: center; width: 42px; height: 56px; }
.pile i { position: absolute; inset: 0; border-radius: 7px; border: 2px solid var(--ink); background: linear-gradient(145deg, var(--purple-hi), var(--blue)); }
.pile i:first-child { transform: rotate(-8deg) translate(-3px, 2px); opacity: .7; }
.pile i:nth-child(2) { transform: rotate(4deg); }
.pile--disc i { background: linear-gradient(145deg, #5a5478, #2a2350); }
.pile b { position: relative; font: 900 1.2rem var(--f-brand); color: #fff; text-shadow: 1px 1px 0 var(--ink); }
.pile small { position: absolute; bottom: -15px; font: 800 .62rem var(--f-brand); color: var(--muted); white-space: nowrap; }
.pile:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
/* היד: מניפה עם חפיפה. השם מתוך האיור, בלי שם כפול */
.fc--hand .fc__name { display: none !important; }
.fc--hand .fc__band { position: relative; justify-content: flex-start; padding-inline-start: 30px !important; min-height: 20px; }
.fc__cost--band { position: absolute !important; top: 50% !important; inset-inline-start: 2px !important; inset-inline-end: auto !important; translate: 0 -50%; width: 26px !important; height: 26px !important; font-size: .95rem !important; z-index: 2; }
.fc--hand.is-off .fc__cost--band { background: #8f89ad; text-decoration: line-through; }
.fc--hand .acts { gap: 3px; }
.fc--hand .act { font-size: .74rem; padding: 2px 5px; justify-content: center; }
.fc--hand .act b { font-size: 1rem; }
.bt__hand { display: flex !important; justify-content: center; align-items: flex-end; gap: 0 !important; padding: 18px 0 4px; }
.bt__hand > .fc { --o: calc(var(--i) - (var(--hn) - 1) / 2); flex: 0 0 auto !important; width: min(28vw, 132px); max-width: none !important; margin-inline: -3.2%; transform-origin: 50% 140%; transform: rotate(calc(var(--o) * 4.5deg)) translateY(calc(var(--o) * var(--o) * 3px)); transition: transform .28s var(--spring), box-shadow .2s; z-index: 1; }
.bt__hand > .fc:nth-child(1) { z-index: 1; } .bt__hand > .fc:nth-child(2) { z-index: 2; } .bt__hand > .fc:nth-child(3) { z-index: 3; } .bt__hand > .fc:nth-child(4) { z-index: 4; } .bt__hand > .fc:nth-child(5) { z-index: 5; } .bt__hand > .fc:nth-child(6) { z-index: 6; } .bt__hand > .fc:nth-child(7) { z-index: 7; }
.bt__hand > .fc.is-sel { transform: translateY(-34px) scale(1.18) !important; z-index: 20 !important; box-shadow: 0 0 0 3px var(--gold), 0 14px 28px rgba(0, 0, 0, .6) !important; }
.bt__hand > .fc.is-drag { z-index: 30 !important; }
@media (hover: hover) and (pointer: fine) { .bt__hand > .fc:not(.is-off):not(.is-sel):hover { transform: translateY(-24px) scale(1.12); z-index: 15; } }
.fc--hand .fc__art { aspect-ratio: 3 / 4 !important; }
.fc--hand .fc__art img { object-position: 50% 8% !important; }
/* טלפון: פריסה של זירה */
@media (max-width: 699px) {
  .bt { gap: 2px; }
  .bt__stage { grid-template-rows: minmax(0, 1fr) auto; gap: 0; }
  .bt__foes { position: relative; justify-content: center; padding-top: 10px; }
  .bt__enemies { gap: 10px; align-items: flex-end; }
  .bt__enemies .en { max-width: 150px; }
  .bt__enemies .en .vil { width: 100% !important; max-width: clamp(70px, 17dvh, 150px) !important; }
  .bt__enemies .en:only-child .vil { max-width: clamp(110px, 24dvh, 190px) !important; }
  .bt__msg { position: absolute; inset: auto 8px 4px; z-index: 5; font-size: .82rem !important; padding: 6px 10px !important; }
  .bt__side { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "me res"; align-items: end; gap: 8px; padding: 4px 4px 0; }
  .bt__me { grid-area: me; justify-content: flex-start; }
  .me { width: 100% !important; grid-template-columns: 54px minmax(0, 1fr) auto !important; gap: 8px !important; align-items: center; }
  .medal--me { width: 50px !important; }
  .me__info { gap: 2px; } .me__info > b { font-size: .86rem; } .me__info > small { display: none; }
  .me__inc .inc { padding: 3px 6px; } .me__inc .inc small { display: none; } .me__inc .inc b { font-size: 1.05rem; }
  .res-row { grid-area: res; display: flex !important; flex-direction: column; align-items: center; gap: 6px; }
  .nrg { order: -1; width: 58px !important; height: 58px !important; }
  .endt { padding: 6px 14px !important; min-height: 40px; }
  .bt__hand { padding-top: 22px; }
  .bt__hand > .fc { width: 27vw; margin-inline: -3.5vw; }
  .fc--hand .act { font-size: .64rem; } .fc--hand .act b { font-size: .88rem; }
  .fc--hand .act .al { display: inline !important; } .fc--hand .act .as { display: none !important; }
  .fc--hand .fc__band span:not(.fc__cost) { display: none; }
  .bt__piles { position: absolute; inset: auto 6px calc(8px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; z-index: 0; }
  .pile { width: 32px; height: 44px; } .pile b { font-size: 1rem; } .pile small { display: none; }
  .bt__hand { margin-inline: 30px; }
}
@media (max-width: 699px) and (max-height: 700px) {
  .bt__hand > .fc { width: 25vw; }
  .fc--hand .fc__art { aspect-ratio: 4 / 4 !important; }
  .bt__enemies .en .vil { max-width: clamp(60px, 14dvh, 120px) !important; }
}
.bt__piles .pile { all: unset; pointer-events: auto; cursor: pointer; position: relative; display: grid; place-items: center; width: 42px; height: 56px; }
.bt__hand > .fc { width: min(132px, calc((100vw - 80px) / (var(--hn) * .8 + .2))); }
@media (max-width: 699px) {
  .bt__hand > .fc { width: min(34vw, calc((100vw - 70px) / (var(--hn) * .8 + .2))); margin-inline: calc(min(34vw, calc((100vw - 70px) / (var(--hn) * .8 + .2))) * -.1); }
  .bt__piles .pile { width: 32px; height: 44px; }
}
@media (min-width: 1100px) and (min-height: 620px) {
  .bt__piles { position: absolute; inset: auto 12px 12px; display: flex; justify-content: space-between; }
  .bt__hand > .fc { width: min(150px, calc((100vw - 760px) / (var(--hn) * .8 + .2))); margin-inline: -12px; }
}
@media (max-width: 699px) {
  .bt__hand > .fc { --w: min(33vw, calc((100vw - 64px) / (var(--hn) * .64 + .36))); width: var(--w); margin-inline: calc(var(--w) * -.18); }
  .bt__hand > .fc.is-sel { transform: translateY(-38px) scale(1.25) !important; }
}
@media (min-width: 1100px) and (min-height: 620px) {
  .bt__hand > .fc { --w: min(160px, calc((100vw - 420px) / (var(--hn) * .72 + .28))); width: var(--w); margin-inline: calc(var(--w) * -.14); }
}

/* ============================================================ v11 · קלף עף, בועה, הודעה צפה, נזק צפוי על הפס */
.bt__msg { opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s var(--ease); pointer-events: none; }
.bt__msg.is-on { opacity: 1; transform: none; }
.bt__msg:empty { visibility: visible; }
.me__inc { display: none !important; }
.hp--me { position: relative; overflow: hidden; }
.hp__lose { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(45deg, #ff4a5c 0 5px, #ff8a96 5px 10px); }
.js-motion .hp__lose { animation: alose 1s ease-in-out infinite; }
@keyframes alose { 50% { opacity: .45; } }
.me__lose { font-style: normal; color: #ff8a96; font-weight: 800; }
.me__info > small { display: block !important; font-size: .78rem; }
/* הבזק בפגיעה */
.flash { position: absolute; inset: -20%; z-index: 9; pointer-events: none; border-radius: 50%; background: radial-gradient(circle, rgba(255, 245, 200, .95), rgba(245, 200, 66, .55) 35%, rgba(181, 132, 255, .25) 60%, transparent 72%); animation: aflash .5s ease-out forwards; }
@keyframes aflash { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.en, .me { position: relative; }
/* בועת קומיקס: כהה, ליד הזירה, לא חוסמת */
.cast { position: absolute !important; top: auto !important; bottom: 8px !important; left: 50% !important; translate: -50% 0 !important; width: min(340px, 92%) !important; display: grid; grid-template-columns: 44px 1fr !important; gap: 10px; padding: 8px 12px !important; border-radius: 18px !important;
  background: rgba(14, 10, 38, .88) !important; background-image: none !important; color: #fff !important; border: 2px solid var(--acc, var(--gold)) !important; box-shadow: 0 10px 24px rgba(0, 0, 0, .55) !important; z-index: 12 !important; }
.cast::after { content: ""; position: absolute; bottom: -9px; inset-inline-end: 34px; width: 16px; height: 16px; background: rgba(14, 10, 38, .88); border-right: 2px solid var(--acc, var(--gold)); border-bottom: 2px solid var(--acc, var(--gold)); transform: rotate(45deg); }
.cast img { width: 44px !important; height: 44px; object-fit: cover; object-position: 50% 15%; border-radius: 50%; border: 2px solid var(--acc, var(--gold)); aspect-ratio: auto; }
.cast__txt b { color: var(--gold-hi) !important; font-size: 1rem !important; }
.cast__txt q { color: #f3f1ff !important; font-size: .84rem !important; line-height: 1.35; }
.bt__foes { position: relative; }
/* קלף נבחר: גדול, וכל הטקסט מלא */
.bt__hand > .fc.is-sel .act { white-space: normal !important; overflow: visible !important; display: flex !important; }
.bt__hand > .fc.is-sel .act span { overflow: visible !important; text-overflow: clip !important; }
.bt__hand > .fc.is-sel .act .al { display: inline !important; } .bt__hand > .fc.is-sel .act .as { display: none !important; }
.bt__hand > .fc.is-sel .acts > .act { display: flex !important; }
.bt__hand > .fc.is-sel .fc__band span:not(.fc__cost) { display: inline !important; }
.fc--fly { box-shadow: 0 0 0 3px var(--gold), 0 0 30px rgba(245, 200, 66, .8) !important; }

.bt__foes:has(.cast) .bt__msg { opacity: 0 !important; }

/* ============================================================ v12 · HUD, מעבר תור, רצף ניצחון (23.10.2026) */
/* אבן עלות: יהלום קטן באמצע למעלה */
.fc__cost--top { top: -11px !important; left: 50% !important; right: auto !important; inset-inline-end: auto !important; translate: -50% 0; width: 26px !important; height: 26px !important; font-size: .92rem !important; border-radius: 50% !important; z-index: 4; box-shadow: 0 0 0 2px rgba(10,11,34,.35), 2px 2px 0 var(--ink); }
.fc__cost--top { display: grid; place-items: center; }
.fc--hand .fc__band { padding-inline-start: 6px !important; }
.bt__hand { padding-top: 26px !important; }
/* קלף נבחר: עולה פחות, לא דורס את הגיבור */
.bt__hand > .fc.is-sel { transform-origin: 50% 100% !important; transform: translateY(-14px) scale(1.2) !important; }
@media (max-width: 699px) { .bt__hand > .fc.is-sel { transform: translateY(-10px) scale(1.22) !important; } }
/* HUD עליון: באנר מיקום + שבב תור, כפתורים אחידים */
.bt__title { display: grid; justify-items: center; gap: 4px; }
.bt__title b { display: inline-block; padding: 4px 14px; border-radius: 0 0 14px 14px; background: rgba(14, 10, 38, .9); border: 1.5px solid rgba(245, 200, 66, .45); border-top: 0; font-size: .9rem !important; color: var(--gold-hi); max-width: 100%; }
.bt__title small { padding: 1px 10px; border-radius: 999px; background: rgba(14, 10, 38, .7); font-size: .72rem !important; }
.bt__leave, .bt__log, .bt__tools .gsfx { width: 40px !important; height: 40px !important; border-radius: 50% !important; background: rgba(14, 10, 38, .78) !important; border: 1.5px solid rgba(255, 255, 255, .3) !important; box-shadow: none !important; display: grid; place-items: center; transform: none !important; }
.bt__tools .gsfx svg path, .bt__tools .gsfx svg polygon { stroke: #f3f1ff; }
.bt__leave .dic path, .bt__log .dic path { stroke: #f3f1ff; }
.bt__log .dic path { fill: rgba(255, 255, 255, .15); }
.bt__tools { gap: 8px !important; }
.bt__tools .gsfx__set { display: none !important; }
.atop .gsfx { position: relative; }
.atop .gsfx .gsfx__set { position: absolute; bottom: -6px; inset-inline-start: -6px; transform: scale(.8); }
.atop { gap: 10px !important; }
/* מעבר תור: באנר שמחליק לרוחב */
.sweep { position: absolute; z-index: 40; left: 0; right: 0; top: 34%; display: grid; place-items: center; padding: 12px 0; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(14, 10, 38, .88) 20%, rgba(14, 10, 38, .88) 80%, transparent); }
.sweep b { font: 900 1.9rem var(--f-brand); color: var(--gold-hi); text-shadow: 2px 2px 0 var(--ink); }
.sweep--foe b { color: #ff8a96; }
.js-motion .sweep { animation: asweep 1.1s var(--ease) forwards; }
@keyframes asweep { 0% { transform: translateX(60%); opacity: 0; } 22% { transform: none; opacity: 1; } 75% { transform: none; opacity: 1; } 100% { transform: translateX(-60%); opacity: 0; } }
/* רצף ניצחון */
.bt--won .bt__hand > .fc { transition: transform .5s var(--ease), opacity .5s; transform: translateY(140%) !important; opacity: 0; }
.bt--won .en.is-ko .vil, .bt--won .en .vil { animation: afall .9s var(--ease) forwards !important; }
@keyframes afall { 0% { transform: none; filter: none; } 15% { transform: translateX(-8px) rotate(-4deg); filter: brightness(2); } 30% { transform: translateX(8px) rotate(4deg); } 100% { transform: translateY(70%) rotate(14deg); opacity: 0; } }
.bt--won .bt__msg, .bt--won .res-row { opacity: 0; transition: opacity .3s; }
.winstamp { position: absolute; inset: 0; z-index: 50; display: grid; place-items: center; pointer-events: none; background: rgba(8, 6, 26, .55); }
.winstamp b { font: 900 clamp(3rem, 14vw, 5rem)/1 var(--f-brand); background: linear-gradient(180deg, #fff6c2, #f5c842 55%, #e8743b); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 2px var(--ink); filter: drop-shadow(0 0 22px rgba(245, 200, 66, .7)) drop-shadow(4px 5px 0 var(--ink)); }
.js-motion .winstamp { animation: aveil .5s .35s both; } .js-motion .winstamp b { animation: astamp2 .7s .5s var(--spring) both; }
@keyframes aveil { from { opacity: 0; } } @keyframes astamp2 { from { transform: scale(2.2) rotate(-8deg); opacity: 0; } }
/* מסך השלל: אותו רקע של הקרב, בלי ניווט ובלי סרגל מטבעות כפול */
.arena.is-victory .abg__art { opacity: 1 !important; }
.arena.is-victory .abg__art::after { background: rgba(8, 6, 26, .8) !important; }
.arena.is-victory .atabs { display: none !important; }
.arena[data-screen="run"] .atop__hud { visibility: hidden; }
.stage--victory .stage__head { justify-items: center; text-align: center; }
.stage--victory .stage__head .kick { transform: none; }
.stage--victory .stage__head h1 { font-size: clamp(2.6rem, 10vw, 3.6rem) !important; background: linear-gradient(180deg, #fff6c2, #f5c842 55%, #e8743b); -webkit-background-clip: text; background-clip: text; color: transparent !important; -webkit-text-stroke: 2px var(--ink) !important; filter: drop-shadow(0 0 16px rgba(245, 200, 66, .55)) drop-shadow(3px 4px 0 var(--ink)); text-shadow: none !important; }
.stage--victory .stage__lead { text-align: center; font: 900 1.25rem var(--f-brand); color: var(--gold-hi); }
.stage--victory .sub { text-align: center; }
.relics--loot { display: grid; grid-template-columns: 1fr !important; gap: 6px; padding: 10px; border-radius: 18px; background: rgba(14, 10, 38, .85); border: 2px solid var(--gold); box-shadow: 0 0 22px rgba(245, 200, 66, .35); }
.loot__t { font: 900 .95rem var(--f-brand); color: var(--gold-hi); text-align: center; margin: 0; }
.relics--loot .relicc { background: rgba(255, 255, 255, .06) !important; background-image: none !important; color: #fff !important; border: 1.5px solid rgba(245, 200, 66, .4) !important; box-shadow: none !important; grid-template-columns: 64px 1fr !important; justify-items: start; text-align: start; column-gap: 12px; }
.relics--loot .relicc img { grid-row: span 2; width: 64px !important; height: 64px !important; filter: drop-shadow(0 0 10px rgba(139, 224, 107, .6)); }
.relics--loot .relicc b { color: var(--gold-hi); font-size: 1.05rem !important; } .relics--loot .relicc span { color: #e6e2ff !important; font-size: .85rem !important; }
.rcard { position: relative; display: flex; flex-direction: column; min-height: 0; padding-top: 14px; }
.rcard > .fc { flex: 1; min-height: 0; }
.rbadge { position: absolute; top: 0; left: 50%; translate: -50% 0; z-index: 5; padding: 2px 9px; white-space: nowrap; font: 900 .72rem/1.3 var(--f-brand); font-style: normal; color: var(--ink); background: var(--green); border: 2px solid var(--ink); border-radius: 999px; box-shadow: 2px 2px 0 var(--ink); }
.rbadge--up { background: var(--gold); }
.stage--victory .tier, .fc--hand .tier { display: none !important; }
.fc--t1 { box-shadow: 0 0 0 2px #7d8cff, 0 0 14px rgba(125, 140, 255, .55), 3px 4px 0 var(--ink) !important; }
.fc--t2 { box-shadow: 0 0 0 2.5px #f5c842, 0 0 18px rgba(245, 200, 66, .6), 3px 4px 0 var(--ink) !important; }
.stage--victory .fc__info, .fc--hand .fc__info { width: 20px !important; height: 20px !important; font-size: .68rem !important; opacity: .7; top: 4px !important; inset-inline-start: 4px !important; }
.stage--victory .coll--reward .act { white-space: normal !important; overflow: visible !important; font-size: .64rem; line-height: 1.2; }
.stage--victory .coll--reward .act span { overflow: visible !important; text-overflow: clip !important; }
.stage--victory .coll--reward .act .al { display: inline !important; } .stage--victory .coll--reward .act .as { display: none !important; }
.stage--victory .coll--reward .acts > .act { display: flex !important; }
.stage--victory .coll--reward .fc__name { display: none; }
@media (max-width: 699px), (max-height: 500px) { .stage .coll--reward > .rcard { height: 100%; min-height: 0; } .stage .coll--reward > .rcard > .fc { height: 100%; grid-template-rows: minmax(0, 1fr) auto auto; } .stage .coll--reward > .rcard .fc__art { aspect-ratio: auto; min-height: 0; } }
/* כניסה מדורגת */
.js-motion .stage--victory:not(.is-seen) .stage__head { animation: aland .6s var(--spring) both; }
.js-motion .stage--victory:not(.is-seen) .stage__lead { animation: aenter .4s .35s var(--ease) both; }
.js-motion .stage--victory:not(.is-seen) .relics--loot { animation: aenter .45s .6s var(--ease) both; }
.js-motion .stage--victory:not(.is-seen) .rcard { animation: aflip .55s calc(.85s + var(--i) * .15s) var(--spring) both; }
@keyframes aland { from { transform: scale(2) translateY(-30px); opacity: 0; } }
@keyframes aflip { from { transform: perspective(600px) rotateY(90deg); opacity: 0; } }

.bt--won .cast { display: none !important; }

/* ============================================================ v13 · פתיח VS קולנועי + קלפי שלל ביחס הנכון */
.vs2 { position: absolute; inset: 0; z-index: 60; overflow: hidden; cursor: pointer; }
.vs2__bg { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(80, 20, 60, .55), rgba(8, 6, 26, .92) 70%); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.vs2__slash { position: absolute; left: -20%; right: -20%; top: 50%; height: 9px; background: linear-gradient(90deg, transparent, #ffe08a, #fff, #ffe08a, transparent); transform: rotate(-24deg); box-shadow: 0 0 22px rgba(245, 200, 66, .9); }
.vs2__foe { position: absolute; top: 9%; left: 6%; display: grid; justify-items: start; gap: 6px; width: min(60%, 300px); }
.vil--xl { width: min(100%, 26dvh, 240px); border-width: 4px; border-radius: 18px; box-shadow: 0 16px 32px rgba(0, 0, 0, .7), 6px 7px 0 var(--ink); }
.vs2__rest { display: flex; gap: 6px; } .vs2__rest .vil { width: 46px; }
.vs2__fn { font: 900 clamp(1.6rem, 7vw, 2.4rem)/1.05 var(--f-brand); color: #fff; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--ink); }
.vs2__fn small { font-size: .5em; color: var(--muted); -webkit-text-stroke: 0; }
.vs2__tag { padding: 2px 10px; border-radius: 999px; background: rgba(255, 74, 92, .9); border: 2px solid var(--ink); font: 900 .8rem var(--f-brand); color: #fff; }
.vs2__me { position: absolute; bottom: 9%; right: 6%; display: grid; justify-items: center; gap: 14px; }
.medal--vs2 { width: min(40vw, 22dvh, 190px); margin: 16%; }
.vs2__mn { margin-top: -18%; position: relative; z-index: 2; padding: 2px 12px; background: linear-gradient(180deg, #ffe08a, #e2a92a); border: 2px solid var(--ink); border-radius: 8px; font: 900 .95rem var(--f-brand); color: var(--ink); white-space: nowrap; box-shadow: 2px 3px 0 var(--ink); }
.vs2__vs { position: absolute; top: 50%; left: 50%; translate: -50% -50%; z-index: 3; font: 900 clamp(4rem, 22vw, 7rem)/1 var(--f-brand); color: var(--gold); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 6px 6px 0 var(--red); }
.vs2__skip { position: absolute; bottom: calc(10px + env(safe-area-inset-bottom)); left: 50%; translate: -50% 0; font: 700 .72rem var(--f-text); color: rgba(255, 255, 255, .45); }
/* כוריאוגרפיה: כניסה 0-0.4, אימפקט 0.4-0.7, ציפה 0.7-2.2, התפזרות 2.2+ */
.js-motion .vs2__bg { animation: afade .35s both; }
.js-motion .vs2__foe { animation: avsfoe .4s cubic-bezier(.2, .9, .3, 1) both, adrift1 2.2s .4s ease-out both; }
.js-motion .vs2__me { animation: avsme .4s cubic-bezier(.2, .9, .3, 1) both, adrift2 2.2s .4s ease-out both; }
.js-motion .vs2__slash { animation: aslash .3s .3s ease-out both; }
.js-motion .vs2__vs { animation: avsin .32s .4s cubic-bezier(.3, 1.6, .5, 1) both; }
.js-motion .vs2 { animation: ashake2 .16s .62s 2 linear; }
.js-motion .vs2__fn, .js-motion .vs2__tag, .js-motion .vs2__mn { animation: afade .25s .6s both; }
@keyframes afade { from { opacity: 0; } }
@keyframes avsfoe { from { transform: translate(-70vw, -10vh); } }
@keyframes avsme { from { transform: translate(70vw, 10vh); } }
@keyframes adrift1 { to { transform: translate(10px, 6px) scale(1.05); } }
@keyframes adrift2 { to { transform: translate(-10px, -6px) scale(1.05); } }
@keyframes aslash { from { transform: rotate(-24deg) scaleX(0); } }
@keyframes avsin { from { transform: scale(3); opacity: 0; } }
@keyframes ashake2 { 25% { translate: 4px -2px; } 75% { translate: -4px 2px; } }
.vs2.is-out { pointer-events: none; }
.js-motion .vs2.is-out { animation: none; }
.js-motion .vs2.is-out .vs2__bg, .js-motion .vs2.is-out .vs2__vs, .js-motion .vs2.is-out .vs2__slash, .js-motion .vs2.is-out .vs2__fn, .js-motion .vs2.is-out .vs2__tag, .js-motion .vs2.is-out .vs2__mn, .js-motion .vs2.is-out .vs2__skip, .js-motion .vs2.is-out .vs2__rest { animation: none; opacity: 0; transition: opacity .4s; }
.js-motion .vs2.is-out .vs2__foe { animation: none; transform: translate(26vw, 4vh) scale(.6); opacity: 0; transition: transform .55s var(--ease), opacity .55s; }
.js-motion .vs2.is-out .vs2__me { animation: none; transform: translate(2vw, 4vh) scale(.3); opacity: 0; transition: transform .55s var(--ease), opacity .55s; }
/* בזמן הפתיח הזירה מוסתרת, ואחריו נכנסת */
.bt--intro .bt__enemies, .bt--intro .bt__side, .bt--intro .bt__hand, .bt--intro .bt__piles, .bt--intro .bt__msg, .bt--intro .bt__top { opacity: 0; }
.js-motion .bt--enter .bt__enemies { animation: aenter .45s .1s var(--ease) both; }
.js-motion .bt--enter .bt__side { animation: aslr .45s .15s var(--ease) both; }
.js-motion .bt--enter .bt__hand { animation: aslu .5s .2s var(--ease) both; }
.js-motion .bt--enter .bt__top, .js-motion .bt--enter .bt__piles { animation: afade .4s .2s both; }
@keyframes aslr { from { transform: translateX(40px); opacity: 0; } }
@keyframes aslu { from { transform: translateY(80px); opacity: 0; } }
/* קלפי שלל: יחס 2:3 קבוע, הקלפים מתכווצים כולם יחד כדי שהכול ייראה */
.stage .coll--reward { align-items: center !important; justify-content: center; }
.stage .coll--reward > .rcard { height: auto !important; max-height: 100%; display: flex; justify-content: center; }
.stage .coll--reward > .rcard > .fc { height: auto !important; flex: none; width: 100%; max-width: calc((100dvh - 470px) * .5); grid-template-rows: auto auto auto !important; }
.stage .coll--reward > .rcard .fc__art { aspect-ratio: 2 / 3 !important; height: auto !important; }
.stage .coll--reward > .rcard .fc__art img { object-position: 50% 0 !important; }
@media (min-height: 860px) { .stage .coll--reward > .rcard > .fc { max-width: calc((100dvh - 430px) * .55); } }

/* ============================================================ v14 · בית, פרופיל, חפיסה, מדריך, בחירת גיבור, סרגל עליון */
.arena [hidden] { display: none !important; }
.vs2__tag { order: -1; }

/* ---------- סרגל עליון: כפתור צליל אחד בלי תג שדורס, "?" באותה שפה, חזרה לבית ---------- */
.atop__set { all: unset; box-sizing: border-box; cursor: pointer; flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(14, 10, 38, .6); border: 1.5px solid rgba(255, 224, 138, .45); color: var(--gold-hi); transition: transform .3s var(--spring); }
.atop__set:hover { transform: rotate(-8deg) scale(1.06); }
.atop__set:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.atop__how { background: rgba(14, 10, 38, .6) !important; border: 1.5px solid rgba(255, 224, 138, .45) !important; box-shadow: none !important; color: var(--gold-hi) !important; min-height: 38px; box-sizing: border-box; }
.atop__q { background: none !important; border: 0 !important; color: var(--gold-hi); font: 900 1.15rem/1 var(--f-brand) !important; }
.atop__back .atop__backt { display: inline !important; font-size: .82rem; }
.atop__back { color: var(--gold-hi); }
.arena[data-screen="onboard"] .atop__hud, .arena[data-screen="onboard"] .atop__how { visibility: hidden; }
@media (max-width: 699px), (max-height: 500px) {
  .atop__how { width: 38px; height: 38px; padding: 0 !important; justify-content: center; border-radius: 50% !important; }
}
/* נקודת התראה על הלשוניות */
.atab { position: relative; }
.atab__dot { position: absolute; top: 3px; left: calc(50% - 25px); min-width: 17px; height: 17px; padding: 0 4px; box-sizing: border-box; border-radius: 999px; background: #ff4a5c; border: 2px solid var(--ink); color: #fff; font: 900 .62rem/13px var(--f-brand); text-align: center; font-style: normal; }
.atab__dot:empty { min-width: 13px; width: 13px; height: 13px; padding: 0; }
.js-motion .atab__dot { animation: adot 2s ease-in-out infinite; }
@keyframes adot { 50% { transform: scale(1.18); } }
@media (min-width: 700px) and (min-height: 501px) { .atab__dot { top: 0; left: 6px; } }

/* ---------- לוגו בלי קופסה: טקסט קומיקסי עם גרדיאנט וצל ---------- */
.hlogo { margin: 0; display: grid; justify-items: center; font: 900 clamp(2.3rem, 10.5vw, 3.6rem)/.9 var(--f-brand); transform: rotate(-3deg); filter: drop-shadow(0 3px 0 var(--ink)) drop-shadow(3px 3px 0 #e2364a) drop-shadow(0 0 20px rgba(245, 200, 66, .3)); }
.hlogo span { background: linear-gradient(180deg, #fff8d6 0%, #ffd84a 50%, #ff9a1f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 2px var(--ink); padding: 0 .1em; }
.hlogo span:first-child { font-size: .78em; }
.hlogo span:last-child { background-image: linear-gradient(180deg, #ffffff 0%, #fff0b8 45%, #ffb43a 100%); }
.js-motion .hlogo { animation: apop .8s var(--spring) both; }

/* ---------- מדליה: סרט עם טקסט, סימן החלפה ---------- */
.medal--home, .medal--prof { container-type: inline-size; }
.medal__rib { position: absolute; z-index: 2; left: 50%; top: 102%; translate: -50% -50%; width: 50%; text-align: center; font: 900 10cqw/1 var(--f-brand); color: var(--ink); white-space: nowrap; overflow: hidden; pointer-events: none; }
.medal__swap { position: absolute; z-index: 2; top: -6%; right: -6%; display: grid; place-items: center; width: 24%; aspect-ratio: 1; border-radius: 50%; background: var(--gold); border: 2px solid var(--ink); box-shadow: 1px 2px 0 var(--ink); }
.medal__swap .dic { width: 62%; height: 62%; }
.js-motion .home__capbtn .medal { animation: abreath 3.4s ease-in-out infinite; }
@keyframes abreath { 50% { transform: scale(1.035); } }
.home__capbtn:hover .medal__swap { transform: rotate(180deg); transition: transform .5s var(--spring); }

/* ---------- בית ---------- */
.home.home--v2 { display: flex !important; flex-direction: column; align-items: center; gap: 10px !important; width: 100%; max-width: 560px; margin: 0 auto; text-align: center; }
.home__story { width: 100%; display: flex; justify-content: center; }
.hcap { margin: 0; max-width: 30ch; padding: 7px 14px; background: linear-gradient(180deg, #fff3bd, #ffd95a); color: var(--ink); border: 2.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font: 800 1rem/1.35 var(--f-brand); transform: rotate(-1.5deg); }
.hcap b { color: #c2283a; }
.home--v2 .runcard--home { width: 100%; max-width: 420px; padding: 8px 12px; gap: 6px; background: rgba(14, 10, 38, .66) !important; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1.5px solid rgba(255, 224, 138, .4) !important; box-shadow: none !important; color: var(--text) !important; }
.runcard--home .runcard__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.runcard--home .runcard__stats { justify-content: center; }
.home--v2 .home__cap { position: relative; flex: 1 1 auto; min-height: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; margin: 0; }
.home__spot { position: absolute; inset: -14% 0 0; pointer-events: none; background: radial-gradient(ellipse 46% 42% at 50% 50%, rgba(255, 236, 170, .3), rgba(255, 236, 170, .08) 60%, transparent 75%); }
.home__spot::before { content: ""; position: absolute; left: 50%; top: -30%; width: 80%; height: 90%; translate: -50% 0; background: linear-gradient(180deg, rgba(255, 240, 190, 0), rgba(255, 240, 190, .13)); clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); }
.home__capbtn { position: relative; z-index: 1; }
.home--v2 .medal--home { width: min(46vw, 25dvh, 220px); margin: 14% 14% 18%; transform: none; }
.home__tag { position: relative; z-index: 1; display: grid; gap: 1px; padding: 5px 14px; margin-top: -2px; border-radius: 12px; background: rgba(14, 10, 38, .74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1.5px solid rgba(245, 200, 66, .55); }
.home__tag b { font: 900 .95rem var(--f-brand); color: var(--gold-hi); }
.home__tag span { font: 700 .78rem var(--f-text); color: #ece8ff; }
.home--v2 .home__cta { width: 100%; }
.go--2 { width: 100%; min-height: 62px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.go--2 .btn__art { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(1px 2px 0 rgba(10, 11, 34, .5)); }
.go__t { display: grid; justify-items: center; line-height: 1.05; }
.go__t small { font: 800 .76rem var(--f-text); opacity: .8; }
.home--v2 .home__sub { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 8px; width: 100%; }
.home--v2 .home__sub.is-one { grid-template-columns: 1fr !important; }
.hmode2 { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 62px; padding: 8px 12px; border-radius: 16px; background: rgba(14, 10, 38, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1.5px solid rgba(255, 224, 138, .35); color: var(--text); text-align: start; transition: transform .3s var(--spring), border-color .2s; }
.hmode2:hover { transform: translateY(-2px); border-color: var(--gold); }
.hmode2:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.hmode2[disabled] { opacity: .55; cursor: default; transform: none; }
.hmode2 .art { width: 38px; height: 38px; flex: none; object-fit: contain; }
.hmode2 > span { display: grid; gap: 1px; min-width: 0; }
.hmode2 b { font: 900 .98rem var(--f-brand); color: #fff; }
.hmode2 small { font-size: .72rem; color: var(--muted); line-height: 1.25; }
@media (max-height: 700px) { .hlogo { font-size: clamp(2rem, 9vw, 2.6rem); } .hcap { font-size: .9rem; padding: 5px 12px; } .hmode2 { min-height: 54px; } .go--2 { min-height: 56px; } }
@media (max-height: 500px) and (orientation: landscape) {
  .home.home--v2 { display: grid !important; max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-rows: auto auto minmax(0, 1fr) auto auto; grid-template-areas: "cap logo" "cap story" "cap ." "cap cta" "cap sub" !important; align-items: center; gap: 6px 16px !important; }
  .home--v2 .hlogo { grid-area: logo; font-size: 1.9rem; } .home--v2 .home__story { grid-area: story; } .home--v2 .home__cap { grid-area: cap; height: 100%; }
  .home--v2 .home__cta { grid-area: cta; } .home--v2 .home__sub { grid-area: sub; }
  .home--v2 .medal--home { width: min(30dvh, 140px); }
  .go--2 { min-height: 50px; } .hmode2 { min-height: 48px; padding: 6px 10px; } .hmode2 small { display: none; } .hcap { font-size: .85rem; }
}

/* ---------- מדריך: שורות ויזואליות, גובה קבוע, ניווט ברוחב ---------- */
.adlg--how .adlg__box { display: flex; flex-direction: column; height: min(640px, 86dvh); overflow: hidden; }
.adlg--how .how { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; justify-items: stretch; }
.how__slide { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 2px; }
.js-motion .how__slide--l { animation: ahowl .32s var(--ease) both; }
.js-motion .how__slide--r { animation: ahowr .32s var(--ease) both; }
@keyframes ahowl { from { transform: translateX(-48px); opacity: 0; } }
@keyframes ahowr { from { transform: translateX(48px); opacity: 0; } }
.how h2 { margin: 0; }
.how__body { width: 100%; display: grid; gap: 10px; justify-items: center; text-align: center; }
.how__nav { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; flex: none; }
.how__nav .btn { width: 100%; justify-content: center; }
.hlead { margin: 0; font-weight: 700; font-size: .95rem; line-height: 1.4; }
.hrows { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; width: 100%; text-align: start; }
.hrow { display: grid; grid-template-columns: 46px 1fr; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 12px; background: rgba(10, 11, 34, .05); border: 1.5px solid rgba(10, 11, 34, .14); }
.hrow__v { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.hrow__v .dic { width: 26px; height: 26px; }
.hrow b { display: block; font: 800 .96rem/1.25 var(--f-brand); }
.hrow small { display: block; font-size: .8rem; color: #5d5480; line-height: 1.3; }
.hgem { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 900 1rem/1 var(--f-brand); font-style: normal; color: var(--ink); background: radial-gradient(circle at 35% 30%, #fff3b0, #f5c842 60%, #d99a12); border: 2.5px solid var(--ink); }
.hgem--e { background: radial-gradient(circle at 35% 30%, #e1f8ff, #5ec8ff 60%, #2a7fd0); }
.hgem--n { border-radius: 7px; background: #fff; }
.hint3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.hint3 li { display: grid; justify-items: center; gap: 5px; padding: 8px 4px; border-radius: 12px; background: #fff; border: 2px solid var(--ink); box-shadow: 2px 3px 0 var(--ink); }
.hint3 i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #2a1f5c; border: 2px solid var(--ink); }
.hint3 .dic { width: 24px; height: 24px; }
.hint3 b { font: 800 .9rem var(--f-brand); }
.hfams { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 5px 8px; width: 100%; text-align: start; }
.hfams li { display: grid; grid-template-columns: 28px 1fr; grid-template-areas: "i b" "i s"; column-gap: 7px; align-items: center; padding: 4px 6px; border-radius: 10px; background: rgba(10, 11, 34, .05); }
.hfams i { grid-area: i; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--fam); border: 2px solid var(--ink); }
.hfams .dic { width: 16px; height: 16px; }
.hfams b { grid-area: b; font: 800 .82rem/1.1 var(--f-brand); }
.hfams small { grid-area: s; font-size: .7rem; color: #5d5480; line-height: 1.15; }
.hnodes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; width: 100%; }
.hnodes li { display: grid; justify-items: center; gap: 2px; }
.hnodes .art { width: 100%; max-width: 40px; aspect-ratio: 1; object-fit: contain; }
.hnodes small { font: 800 .66rem var(--f-brand); }
.hkeep { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.hkeep > div { display: grid; gap: 5px; align-content: start; padding: 8px 10px; border-radius: 12px; border: 2px dashed rgba(10, 11, 34, .35); text-align: start; }
.hkeep > div.is-keep { border-style: solid; border-color: var(--ink); background: #fff3c4; }
.hkeep b { font: 900 .86rem var(--f-brand); }
.hkeep span { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .86rem; }
.hkeep .dic, .hkeep .art { width: 20px; height: 20px; object-fit: contain; }
@media (max-height: 720px) { .how__ic { width: 46px !important; height: 46px !important; } .how__ic .dic { width: 28px !important; height: 28px !important; } .how h2 { font-size: 1.35rem !important; } .hrow { padding: 4px 8px; } .hrow__v { width: 38px; height: 38px; } }

/* ---------- בחירת גיבור ---------- */
.onb--v2 .hlogo--onb { align-self: center; margin: 2px 0 2px; font-size: clamp(2rem, 9vw, 3.2rem); }
.onb__name2 { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 44px; box-sizing: border-box; width: min(420px, 100%); align-self: center; border-radius: 12px; background: rgba(14, 10, 38, .6); border: 1.5px solid rgba(255, 224, 138, .35); }
.onb__name2:focus-within { border-color: var(--gold); }
.onb__name2 .dic { width: 18px; height: 18px; flex: none; }
.onb__name2 input { all: unset; flex: 1; min-width: 0; color: #fff; font: 700 1rem var(--f-text); }
.onb__name2 input::placeholder { color: rgba(232, 228, 255, .55); }
.onb--v2 .onb__cap { background: none; border: 0; padding: 0; width: 100%; }
.pick__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pick__t { margin: 0; font: 900 1.2rem var(--f-brand); color: var(--gold-hi); }
.pick__sbtn { all: unset; box-sizing: border-box; cursor: pointer; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(14, 10, 38, .6); border: 1.5px solid rgba(255, 224, 138, .45); }
.pick__sbtn[aria-expanded="true"] { background: var(--gold); }
.pick__sbtn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.pick__tools { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pick__tools .pick__q, .pick__tools .pick__fam { background: rgba(14, 10, 38, .75); color: #fff; border: 1.5px solid rgba(255, 224, 138, .4); font-size: .92rem; }
.pick__tools .pick__q input { padding: 8px 0; color: #fff; } .pick__tools .pick__fam { padding: 8px 10px; }
.adlg .pick__tools .pick__q, .adlg .pick__tools .pick__fam { background: #fff; color: var(--paper-ink); border-color: var(--ink); }
.adlg .pick__tools .pick__q input { color: var(--paper-ink); }
.adlg .pick__sbtn { background: #fff; border: 2px solid var(--ink); }
.pick__grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 10px !important; }
@media (min-width: 700px) { .onb--v2 .pick__grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important; } .adlg--pick .pick__grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important; } }
.pk { position: relative; padding: 0 !important; background: none !important; border: 0 !important; border-radius: 10px; }
.pk img { display: block; border-radius: 10px; }
.pk b, .pk small { display: none !important; }
.pk.is-on img { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold), 0 0 22px rgba(245, 200, 66, .65); }
.pk__fam { position: absolute; bottom: 6px; left: 6px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--fam); border: 2px solid var(--ink); }
.pk__fam .dic { width: 14px; height: 14px; }
.onb__sel { flex: none; width: 100%; }
.capd { display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 14px; background: rgba(14, 10, 38, .8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 2px solid var(--fam); text-align: start; }
.js-motion .capd { animation: aslu .3s var(--ease) both; }
.capd img { width: 54px; aspect-ratio: 1; object-fit: cover; object-position: 50% 12%; border-radius: 50%; border: 2px solid var(--fam); }
.capd__t { display: grid; gap: 2px; min-width: 0; }
.capd b { font: 900 1.02rem var(--f-brand); color: var(--gold-hi); }
.capd q { font-size: .8rem; color: #ece8ff; line-height: 1.3; }
.capd__f { display: flex; align-items: center; gap: 6px; font: 800 .8rem/1.25 var(--f-brand); color: #fff; }
.capd__f i { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--fam); border: 1.5px solid var(--ink); }
.capd__f .dic { width: 12px; height: 12px; }
.adlg--pick .capd { background: #fff7dd; border-color: var(--ink); backdrop-filter: none; }
.adlg--pick .capd b, .adlg--pick .capd q, .adlg--pick .capd__f { color: var(--paper-ink); }
.adlg--pick .onb__sel { margin-top: 8px; }
.adlg--pick .pick__grid { max-height: 42dvh; }
.onb__go .btn.is-bump { animation: abump .5s var(--spring); }
@keyframes abump { 0% { transform: scale(.85); } 60% { transform: scale(1.05); } }
@media (max-width: 699px), (max-height: 500px) {
  .onb--v2 { gap: 8px; }
  .onb--v2 .onb__cap { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .onb--v2 .onb__cap .pick { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
  .onb--v2 .onb__cap .pick__grid { flex: 1; min-height: 0; max-height: none; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; padding: 6px 6px 10px; }
  .onb--v2 .onb__go .btn { min-height: 54px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .onb--v2 .hlogo--onb, .onb__name2 { display: none; }
  .onb--v2 .onb__cap .pick__grid { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
  .capd q { display: none; }
}

/* ---------- פרופיל ---------- */
.prof.prof--v2 { display: flex; flex-direction: column; gap: 10px; max-width: 680px; margin-inline: auto; width: 100%; }
.pid { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; padding: 6px 12px; border-radius: 18px; background: rgba(14, 10, 38, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1.5px solid rgba(255, 224, 138, .32); }
.prof--v2 .medal--prof { width: 84px; margin: 16px 16px 18px; }
.pid__me { display: grid; gap: 4px; min-width: 0; }
.pid__name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pid__name b { font: 900 1.55rem/1.1 var(--f-brand); color: #fff; text-shadow: 2px 2px 0 var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pid__name input { width: 100%; box-sizing: border-box; font: 800 1.15rem var(--f-brand); padding: 5px 10px; border-radius: 10px; border: 2px solid var(--gold); background: rgba(10, 11, 34, .85); color: #fff; outline: 0; }
.pid__edit { all: unset; box-sizing: border-box; cursor: pointer; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .08); border: 1.5px solid rgba(255, 224, 138, .5); }
.pid__edit .dic { width: 17px; height: 17px; }
.pid__edit:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.pid__rank { font: 800 .9rem var(--f-brand); color: var(--gold-hi); }
.pid__xp { display: flex; align-items: center; gap: 8px; }
.pid__xp .xpbar { flex: 1; height: 9px; border-width: 1.5px; }
.pid__xp span { font: 800 .74rem var(--f-brand); color: var(--muted); white-space: nowrap; }
.pid__stats { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .74rem; color: #d9d4f5; }
.pid__stats span { display: inline-flex; align-items: center; gap: 4px; }
.pid__stats b { font: 900 .86rem var(--f-brand); color: #fff; }
.pid__stats .dic { width: 15px; height: 15px; }
.pach h3, .pfam h3 { margin: 0 0 5px; font: 900 .8rem var(--f-brand); color: var(--muted); }
.pach__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pt { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "i b" "s s"; align-items: center; column-gap: 6px; row-gap: 2px; padding: 7px 8px; border-radius: 12px; background: rgba(14, 10, 38, .6); border: 1.5px solid rgba(255, 224, 138, .22); min-width: 0; }
.pt .dic { grid-area: i; width: 26px; height: 26px; }
.pt b { grid-area: b; font: 900 1.2rem/1 var(--f-brand); color: #fff; white-space: nowrap; }
.pt b em { font-style: normal; font-size: .7rem; color: var(--muted); }
.pt small { grid-area: s; font-size: .68rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfam { display: flex; flex-direction: column; min-height: 0; padding: 10px; border-radius: 16px; background: rgba(14, 10, 38, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1.5px solid rgba(255, 255, 255, .12); }
.pfam__h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pfam__h small { font-size: .72rem; color: var(--muted); }
.pfam__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
@media (min-width: 700px) { .pfam__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fmc { all: unset; box-sizing: border-box; cursor: pointer; position: relative; overflow: hidden; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; column-gap: 7px; min-height: 38px; padding: 5px 8px 7px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1.5px solid var(--fam); transition: background .2s, transform .3s var(--spring); }
.fmc:hover { background: rgba(255, 255, 255, .1); transform: translateY(-1px); }
.fmc:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.fmc__ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--fam); border: 1.5px solid var(--ink); }
.fmc__ic .dic { width: 15px; height: 15px; }
.fmc b { display: flex; align-items: center; gap: 3px; font: 800 .84rem var(--f-brand); color: #fff; white-space: nowrap; overflow: hidden; }
.fmc b .dic { width: 13px; height: 13px; flex: none; }
.fmc__n { font: 900 .84rem var(--f-brand); color: #fff; }
.fmc__n em { font-style: normal; color: var(--muted); font-size: .72rem; }
.fmc__bar { position: absolute; inset: auto 0 0; height: 4px; background: rgba(255, 255, 255, .1); }
.fmc__bar > i { display: block; height: 100%; background: var(--fam); }
.fmc.is-zero { opacity: .55; }
.prof--v2 .prof__end { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin: 0; }
.prof--v2 .prof__end .chipbtn { justify-content: center; font-size: .8rem; padding: 4px 6px; gap: 4px; }
.pdanger { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 4px 8px; border-radius: 999px; border: 1.5px solid #ff6b7a; color: #ff8a96; font: 800 .8rem var(--f-brand); text-align: center; }
.pdanger:hover { background: rgba(255, 74, 92, .14); }
.pdanger:focus-visible { outline: 3px solid #ff6b7a; outline-offset: 2px; }
.prof--v2 .home__credit { display: block !important; margin: 0 !important; font-size: .72rem; text-align: center; flex: none; }
.home__credit a { color: var(--gold-hi); }
@media (max-width: 699px), (max-height: 500px) {
  .prof--v2 .pfam { flex: 1 1 auto; }
  .prof--v2 .pfam__grid { flex: 1; min-height: 0; overflow-y: auto; grid-auto-rows: minmax(38px, 1fr); align-content: stretch; padding: 2px; }
  .pid, .pach, .prof--v2 .prof__end { flex: none; }
}
@media (max-height: 700px) and (max-width: 699px) { .prof--v2 .medal--prof { width: 70px; margin: 13px 13px 15px; } .pid__name b { font-size: 1.3rem; } .pt { padding: 5px 7px; } .pt .dic { width: 22px; height: 22px; } .pt b { font-size: 1.05rem; } .pach h3 { display: none; } }
@media (max-height: 500px) and (orientation: landscape) {
  .prof.prof--v2 { display: grid !important; max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-rows: auto auto minmax(0, 1fr) auto; grid-template-areas: "pid fam" "pach fam" ". fam" "end fam" !important; gap: 6px 14px !important; }
  .pid { grid-area: pid; } .pach { grid-area: pach; } .pfam { grid-area: fam; min-height: 0; } .prof--v2 .prof__end { grid-area: end; } .prof--v2 .home__credit { display: none !important; }
  .prof--v2 .medal--prof { width: 52px; margin: 10px 10px 12px; } .pid__name b { font-size: 1.15rem; } .pach h3 { display: none; } .pid__stats { display: none; }
  .prof--v2 .pfam__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- חפיסה: 3 עמודות, בלי כפתורים על הקלפים, שורת סיכום אחת ---------- */
.deck--v2 .phead .kick { display: none; }
.deck__bar { display: flex !important; align-items: center; justify-content: space-between; flex-wrap: nowrap !important; gap: 8px; }
.deck__bar .mix { flex: 1; min-width: 0; display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 2px; }
.mix > .mix__c { display: grid !important; justify-items: center; gap: 0; min-width: 0; flex: 1; }
.mix__c b { display: flex; align-items: center; gap: 3px; font: 900 1rem/1.1 var(--f-brand); color: #fff; }
.mix__c .dic { width: 15px; height: 15px; }
.mix__c small { font-size: .6rem; color: var(--muted); white-space: nowrap; }
.mix__c.is-full b { color: var(--green); } .mix__c.is-low b { color: var(--gold); }
.mix__cost b { color: #8fd8ff; }
.deck__auto { all: unset; box-sizing: border-box; cursor: pointer; flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 5px 10px; border-radius: 999px; background: rgba(245, 200, 66, .14); border: 1.5px solid var(--gold); color: var(--gold-hi); font: 800 .8rem var(--f-brand); white-space: nowrap; }
.deck__auto:hover { background: rgba(245, 200, 66, .26); }
.deck__auto:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.deck__auto .dic { width: 15px; height: 15px; }
.deck--v2 .fc .fc__name { display: none !important; }
.deck--v2 .slots--v2 > .fc, .deck--v2 .coll--v2 > .fc { height: auto !important; grid-template-rows: auto auto auto !important; }
.deck--v2 .slots--v2 > .fc .fc__art, .deck--v2 .coll--v2 > .fc .fc__art { aspect-ratio: 2 / 3 !important; height: auto !important; min-height: 0; }
.deck--v2 .slots--v2 > .fc .fc__art img, .deck--v2 .coll--v2 > .fc .fc__art img { object-position: 50% 0 !important; }
.slot-add { all: unset; box-sizing: border-box; cursor: pointer; display: grid !important; place-items: center; align-content: center; gap: 6px; min-height: 120px; border: 2.5px dashed rgba(255, 224, 138, .55) !important; border-radius: 12px; background: rgba(255, 255, 255, .04) !important; color: var(--gold-hi); }
.slot-add:hover { background: rgba(245, 200, 66, .1) !important; }
.slot-add:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.slot-add b { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(245, 200, 66, .18); border: 1.5px solid var(--gold); }
.slot-add .dic { width: 24px; height: 24px; stroke: var(--gold-hi); }
.slot-add small { display: block !important; font: 800 .8rem var(--f-brand); }
.coll__hint { margin: 0; font-size: .74rem; color: var(--muted); text-align: center; }
@media (min-width: 700px) and (min-height: 501px) { .coll__hint { display: none; } .deck--v2 .slots--v2 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 699px), (max-height: 500px) {
  .deck--v2 .phead h1 { font-size: 1.3rem; }
  .deck--v2 .slots--v2, .deck--v2 .coll--v2 { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 10px !important; align-content: start; padding: 6px 4px 12px; }
  .deck--v2 .fc { box-shadow: 2px 3px 0 var(--ink); border-width: 2px; border-radius: 10px; }
  .deck--v2 .fc .fc__band span { display: none; }
  .deck--v2 .fc .fc__body { padding: 4px 5px 5px; gap: 3px; }
  .deck--v2 .fc .acts > .act:nth-child(2) { display: flex !important; }
  .deck--v2 .fc .act { font-size: .62rem; justify-content: center; } .deck--v2 .fc .act b { font-size: .78rem; }
  .deck--v2 .fc .act .al { display: none; } .deck--v2 .fc .act .as { display: inline; }
  .deck--v2 .fc .fc__cost { width: 24px !important; height: 24px !important; font-size: .82rem !important; }
  .deck--v2 .slot-add { min-height: 0; aspect-ratio: 2 / 3.4; }
  .deck--v2 .coll__head h2 { display: none; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .deck--v2 .phead { display: none; }
  .deck--v2 .slots--v2, .deck--v2 .coll--v2 { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
}
.adlg--smenu .adlg__box { width: min(380px, 100%); }
.smenu { display: grid; gap: 12px; justify-items: center; }
.smenu .fc--big { width: min(220px, 56vw, 32dvh); }
.smenu .fc--big .fc__art { aspect-ratio: 2 / 3; }
.smenu__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.smenu__row .btn { justify-content: center; gap: 6px; font-size: .92rem; }
.smenu__out { --b-bg: #ffb3ba; }
/* ---------- פתיחת חבילה / חפיסת פתיחה: כפתור קבוע למטה, קלפים באותו גובה, דהייה בגלילה ---------- */
.adlg--pull .adlg__box { display: flex; flex-direction: column; overflow: hidden; }
.adlg--pull .pull { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.adlg--pull .pull__grid { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex !important; flex-wrap: wrap; justify-content: center; align-items: stretch; align-content: flex-start; gap: 12px 10px !important; padding: 14px 4px 22px; margin: 0;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14px, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(180deg, transparent, #000 14px, #000 calc(100% - 26px), transparent); }
.adlg--pull .pull__c { flex: 0 0 calc((100% - 20px) / 3); max-width: 150px; display: flex; }
@media (min-width: 700px) { .adlg--pull .pull__c { flex-basis: 140px; } }
.adlg--pull .pull__c > .fc { width: 100%; height: auto; grid-template-rows: auto auto 1fr !important; }
.adlg--pull .pull__c .fc__art { aspect-ratio: 2 / 3; } .adlg--pull .pull__c .fc__art img { object-position: 50% 0; }
.pull .fc__name { display: none !important; }
.pull .fc__body { display: grid; align-content: center; }
.pull .acts { min-height: calc(2 * 1.45em + 3px); align-content: center; }
.pull .acts > .act:nth-child(2) { display: flex !important; }
.pull__foot { flex: none; position: relative; padding-top: 6px; }
.pull__foot::before { content: ""; position: absolute; inset: -22px 0 100%; background: linear-gradient(180deg, transparent, rgba(29, 22, 69, .9)); pointer-events: none; }
.pull__foot .btn { width: 100%; justify-content: center; }
.adlg--pull .pull h2 { font-size: clamp(1.25rem, 5.5vw, 1.7rem); margin: 0; }
/* v14b · תיקונים אחרי צילומים */
.pick__sbtn { background: var(--gold) !important; border: 2px solid var(--ink) !important; }
.pick__sbtn[aria-expanded="true"] { background: #fff !important; }
.pick__tools .pick__q .dic { stroke: #fff; } .adlg .pick__tools .pick__q .dic { stroke: var(--ink); }
.fc__band .dic *, .medal__fam .dic *, .pk__fam .dic *, .fmc__ic .dic *, .hfams i .dic *, .capd__f i .dic *, .pid__cap i .dic *, .hrow__v .dic * { stroke: var(--ink); }
.hmode2 { gap: 8px; padding: 8px 10px; }
.hmode2 .art { width: 32px; height: 32px; }
.hmode2 b { font-size: .92rem; white-space: nowrap; }
.hmode2 small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 699px), (max-height: 500px) {
  .adlg--pick .adlg__box { display: flex; flex-direction: column; overflow: hidden; }
  .adlg--pick .dlg__p { display: none; }
  .adlg--pick .pick { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
  .adlg--pick .pick__grid { flex: 1 1 auto; min-height: 0; max-height: none; }
  .adlg--pick .cfm__row { flex: none; margin-top: 8px; } .adlg--pick .cfm__row .btn { width: 100%; justify-content: center; }
  .adlg--pick .capd q { display: none; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .home--v2 .hlogo { font-size: 1.6rem; }
  .stage .coll--reward > .rcard > .fc { max-width: calc((100dvh - 150px) * .42) !important; }
}

/* ============================================================ v15 · קרב: הדרכה עם זרקור, באנר קלף, יד כבויה בתור הנבל */
.coach-hole { position: absolute; z-index: 48; border-radius: 14px; pointer-events: none; box-shadow: 0 0 0 3px var(--gold), 0 0 20px 4px rgba(245, 200, 66, .55), 0 0 0 200vmax rgba(4, 3, 18, .66); }
.js-motion .coach-hole { animation: afade .3s both; }
.coach-catch { all: unset; position: absolute; inset: 0; z-index: 49; cursor: pointer; }
.coach { left: auto; translate: none !important; width: max-content !important; max-width: min(300px, calc(100% - 12px)) !important; padding: 8px 12px !important; gap: 0 !important; z-index: 50 !important; }
.coach p { margin: 0; font: 700 .86rem/1.4 var(--f-text); }
.coach p b { font-family: var(--f-brand); font-weight: 900; }
.coach__go { font: 800 .72rem var(--f-brand); opacity: .7; white-space: nowrap; }
.coach::before { left: var(--ax, 50%) !important; }
.coach.is-act { box-shadow: 0 0 0 3px rgba(245, 200, 66, .35), 4px 5px 0 var(--ink); }
.js-motion .coach.is-act { animation: adlg .4s var(--spring) both, acoachp 1.6s 0.5s ease-in-out infinite; }
@keyframes acoachp { 50% { transform: translateY(-3px); } }
.is-coached { outline: none !important; }
/* באנר הקלף ששוחק: דק, מתחת לכותרת, הנבל נשאר גלוי */
.cast { top: var(--ct, 60px) !important; bottom: auto !important; left: 8px !important; right: 8px !important; translate: none !important; width: auto !important; max-width: 520px; margin-inline: auto; grid-template-columns: 30px minmax(0, 1fr) !important; gap: 8px !important; padding: 5px 12px !important; border-radius: 999px !important; align-items: center; }
.cast::after { display: none !important; }
.cast img { width: 30px !important; height: 30px !important; }
.cast__txt { display: flex !important; flex-wrap: wrap; align-items: baseline; gap: 2px 8px !important; min-width: 0; }
.cast__txt b { font-size: .86rem !important; white-space: nowrap; }
.cast__txt q { font-size: .76rem !important; line-height: 1.25 !important; }
.js-motion .cast { animation: acastin .3s var(--ease) both; }
@keyframes acastin { from { transform: translateY(-10px); opacity: 0; } }
/* תור הנבל: היד שוקעת ונכבית; בתור שלך חוזרת עם פעימה */
.bt__hand { transition: filter .35s, transform .45s var(--spring); }
.arena.is-enemy .bt__hand { opacity: 1 !important; filter: grayscale(.75) brightness(.5); transform: translateY(28px); }
/* קלפים ביד: מחיר קטן בפינה הימנית בחוץ, לא על השם; הכוחות מיושרים לצד הגלוי */
.fc--hand .fc__cost--top { left: auto !important; right: -7px !important; top: -9px !important; translate: none !important; width: 23px !important; height: 23px !important; font-size: .8rem !important; }
.fc--hand .act { justify-content: flex-start !important; }
/* הנזק הבא על פס החיים: אדום חזק */
.hp__lose { background: #ff3b4f !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.me__lose { white-space: nowrap; }
/* באנר הקלף יושב על הכותרת (2 שניות), לא על הנבל ולא על הכוונה שלו */
.cast { left: 50% !important; right: auto !important; translate: -50% 0 !important; width: min(64%, 320px) !important; border-radius: 16px !important; z-index: 14 !important; }
.cast__txt q { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cast { width: min(calc(100% - 180px), 340px) !important; }
@media (max-height: 500px) and (orientation: landscape) {
  .stage .coll--reward > .rcard { height: 100% !important; min-height: 0; }
  .stage .coll--reward > .rcard > .fc { height: 100% !important; max-width: none !important; grid-template-rows: minmax(0, 1fr) auto auto !important; }
  .stage .coll--reward > .rcard .fc__art { aspect-ratio: auto !important; height: auto !important; min-height: 0; }
  .home--v2 .hlogo { margin-top: 6px; }
}
/* מסך ניצחון לרוחב: עמודה של תוצאה ואוצר, ועמודה של קלפים */
@media (max-height: 500px) and (orientation: landscape) {
  .stage.stage--victory { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); grid-auto-rows: auto; align-content: start; gap: 4px 14px !important; }
  .stage--victory > * { grid-column: 1; }
  .stage--victory > :first-child { grid-column: 1 / -1; }
  .stage--victory > .coll--reward { grid-column: 2; grid-row: 2 / span 6; height: calc(100dvh - 120px); align-self: start; }
  .stage--victory .stage__head h1 { font-size: 1.7rem !important; }
  .stage--victory .stage__head .kick, .stage--victory .note { display: none; }
  .stage--victory .relics--loot { padding: 6px !important; } .stage--victory .relics--loot .loot__t { display: none; }
  .stage--victory .sub { font-size: .9rem !important; margin: 0 !important; }
}
/* v16 · פתיח VS בשלוש קומות: נבל, VS, גיבור - ה-VS לא מכסה שם */
.vs2 { display: flex; flex-direction: column; justify-content: space-evenly; padding: max(4%, env(safe-area-inset-top)) 6% 9%; box-sizing: border-box; }
.vs2__bg, .vs2__slash, .vs2__skip { position: absolute; }
.vs2__foe { position: relative; top: auto; left: auto; z-index: 2; align-self: flex-start; width: auto; max-width: 70%; }
.vs2__foe .vil--xl { width: min(46vw, 22dvh, 230px); }
.vs2__vs { position: relative; top: auto; left: auto; translate: none; align-self: center; font-size: clamp(3.4rem, 17vw, 6rem); line-height: .9; }
.vs2__me { position: relative; bottom: auto; right: auto; z-index: 2; align-self: flex-end; gap: 10px; }
.medal--vs2 { width: min(34vw, 17dvh, 170px); margin: 15% 15% 12%; }
@media (orientation: landscape) and (max-height: 600px) {
  .vs2 { flex-direction: row; align-items: center; justify-content: space-around; padding: 4% 6%; }
  .vs2__foe { align-self: center; } .vs2__me { align-self: center; }
  .vs2__foe .vil--xl { width: min(22vw, 34dvh, 200px); }
  .medal--vs2 { width: min(18vw, 30dvh, 160px); }
}
/* בעברית flex-start = ימין: הנבל משמאל למעלה, הגיבור מימין למטה */
.vs2__foe { align-self: flex-end; } .vs2__me { align-self: flex-start; }
@media (orientation: landscape) and (max-height: 600px) { .vs2 { flex-direction: row-reverse; } .vs2__foe, .vs2__me { align-self: center; } }

/* ============================================================ v16 · התקפת נבל דרמטית */
.bt--foeturn::after { content: ""; position: absolute; inset: 0; z-index: 29; pointer-events: none; background: radial-gradient(ellipse at 50% 30%, transparent 30%, rgba(160, 10, 30, .55) 100%); animation: afoeturn 1.3s ease-out forwards; }
@keyframes afoeturn { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: .35; } }
.arena.is-enemy .bt { box-shadow: inset 0 0 80px rgba(160, 10, 30, .35); }
.sweep--foe { background: linear-gradient(90deg, transparent, rgba(120, 6, 22, .92) 20%, rgba(120, 6, 22, .92) 80%, transparent) !important; }
.sweep--foe b { font-size: clamp(2rem, 9vw, 3rem) !important; color: #fff !important; -webkit-text-stroke: 2px #2a0008; paint-order: stroke fill; text-shadow: 4px 4px 0 #2a0008, 0 0 24px rgba(255, 60, 80, .8) !important; letter-spacing: .02em; }
.strike-dim { position: absolute; inset: 0; z-index: 30; pointer-events: none; background: radial-gradient(ellipse at 50% 35%, rgba(60, 0, 14, .35), rgba(8, 0, 6, .8)); animation: afade .22s both; transition: opacity .3s; }
.strike-dim.is-out { opacity: 0; }
.en.is-striker { position: relative; z-index: 31; }
.js-motion .en.is-windup { animation: awindup .6s ease-in both; }
@keyframes awindup {
  0% { transform: none; filter: none; }
  30% { transform: translateY(-6px) scale(1.08); filter: drop-shadow(0 0 10px rgba(255, 40, 60, .9)); }
  55% { transform: translateY(-10px) scale(1.12) rotate(-2.5deg); }
  65% { transform: translateY(-10px) scale(1.12) rotate(2.5deg); }
  75% { transform: translateY(-11px) scale(1.13) rotate(-2deg); }
  85% { transform: translateY(-11px) scale(1.13) rotate(1.5deg); }
  100% { transform: translateY(-12px) scale(1.14); filter: drop-shadow(0 0 22px rgba(255, 40, 60, 1)); }
}
.strike-cap { position: absolute; z-index: 33; top: var(--ct, 4px); left: 50%; translate: -50% 0; width: min(calc(100% - 120px), 360px); padding: 6px 14px; border-radius: 14px; text-align: center; background: linear-gradient(180deg, #4a0814, #1c0207); border: 2px solid #ff4a5c; box-shadow: 0 0 24px rgba(255, 40, 60, .55), 3px 4px 0 #000; pointer-events: none; }
.strike-cap b { display: block; font: 900 1rem/1.15 var(--f-brand); color: #ff9aa5; }
.strike-cap q { display: block; margin-top: 2px; font: 700 .8rem/1.3 var(--f-text); color: #fff3f4; }
.js-motion .strike-cap { animation: acapin .28s var(--spring) both; }
@keyframes acapin { from { transform: translateY(-14px) scale(.9); opacity: 0; } }
.strike-cap.is-out { opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s; }
.strike-flash { position: absolute; inset: 0; z-index: 34; pointer-events: none; background: radial-gradient(ellipse at 50% 70%, rgba(255, 70, 80, .65), rgba(255, 0, 30, .3)); animation: aflashr .42s ease-out forwards; }
.strike-flash.is-blocked { background: radial-gradient(ellipse at 50% 70%, rgba(130, 210, 255, .6), rgba(60, 140, 255, .2)); }
@keyframes aflashr { from { opacity: 1; } to { opacity: 0; } }
.js-motion .bt--quake { animation: aquake .38s linear; }
.js-motion .bt--quake2 { animation: aquake2 .55s linear; }
@keyframes aquake { 15% { translate: -6px 3px; } 30% { translate: 6px -3px; } 45% { translate: -4px 2px; } 60% { translate: 4px -1px; } 80% { translate: -2px 1px; } }
@keyframes aquake2 { 10% { translate: -11px 5px; } 20% { translate: 10px -6px; } 30% { translate: -9px 4px; } 40% { translate: 8px -3px; } 55% { translate: -5px 2px; } 70% { translate: 4px -2px; } 85% { translate: -2px 1px; } }
.strike-pow { position: absolute; z-index: 35; width: 118px; aspect-ratio: 1; translate: -50% -50%; display: grid; place-items: center; align-content: center; pointer-events: none; }
.strike-pow::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, #fff6b0 0%, #ffcf3a 35%, #ff4a2a 75%); clip-path: polygon(50% 0%, 61% 24%, 87% 10%, 77% 38%, 100% 50%, 77% 62%, 87% 90%, 61% 76%, 50% 100%, 39% 76%, 13% 90%, 23% 62%, 0% 50%, 23% 38%, 13% 10%, 39% 24%); filter: drop-shadow(3px 4px 0 #1a0208); }
.strike-pow.is-big { width: 150px; }
.strike-pow.is-blocked::before { background: radial-gradient(circle, #ffffff 0%, #bfe9ff 40%, #3d8bff 80%); }
.strike-pow b { position: relative; font: 900 2.1rem/1 var(--f-brand); color: #fff; -webkit-text-stroke: 2.5px #1a0208; paint-order: stroke fill; text-shadow: 3px 3px 0 #1a0208; }
.strike-pow.is-big b { font-size: 2.7rem; }
.strike-pow.is-blocked b { font-size: 1.5rem; }
.strike-pow small { position: relative; display: inline-flex; align-items: center; gap: 3px; margin-top: 2px; padding: 1px 6px; border-radius: 8px; background: #1a0208; color: #bfe9ff; font: 800 .7rem var(--f-brand); }
.strike-pow small .dic { width: 12px; height: 12px; }
.js-motion .strike-pow { animation: apow 1.1s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes apow { 0% { transform: scale(0) rotate(-25deg); opacity: 1; } 22% { transform: scale(1.25) rotate(6deg); } 36% { transform: scale(1) rotate(0); } 78% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.1) translateY(-18px); opacity: 0; } }
.js-motion .is-knock { animation: aknock .5s cubic-bezier(.2, .9, .3, 1); }
@keyframes aknock { 0% { transform: none; } 18% { transform: translate(14px, 10px) rotate(4deg); filter: brightness(1.8) saturate(.4); } 45% { transform: translate(-4px, -2px) rotate(-1deg); filter: none; } 100% { transform: none; } }
.hp--me { isolation: isolate; }
.hp--me [data-mehp] { position: relative; z-index: 1; }
.hp__lose { z-index: 2; }
/* הקלף שנבחר בשלל: במרכז, עם קרני אור */
.taken { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 8px 0; }
.taken__rays { position: absolute; left: 50%; top: 45%; width: min(130vw, 720px); aspect-ratio: 1; translate: -50% -50%; pointer-events: none; z-index: 0; background: repeating-conic-gradient(from 0deg, rgba(255, 220, 120, .16) 0 10deg, transparent 10deg 22deg); -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 62%); mask-image: radial-gradient(circle, #000 18%, transparent 62%); }
.js-motion .taken__rays { animation: arays 18s linear infinite; }
@keyframes arays { to { rotate: 360deg; } }
.taken .fc--taken { position: relative; z-index: 1; width: min(62vw, calc((100dvh - 420px) * .62), 260px); height: auto; grid-template-rows: auto auto auto !important; box-shadow: 0 0 0 3px var(--gold), 0 0 40px rgba(245, 200, 66, .55), 6px 8px 0 var(--ink); }
.taken .fc--taken .fc__art { aspect-ratio: 2 / 3; } .taken .fc--taken .fc__art img { object-position: 50% 0; }
.taken .fc--taken .fc__name { display: none; }
.js-motion .taken .fc--taken { animation: ataken .7s cubic-bezier(.2, 1.4, .4, 1) both, afloat 3.2s .7s ease-in-out infinite; }
@keyframes ataken { from { transform: scale(.5) rotate(-8deg); opacity: 0; } }
@keyframes afloat { 50% { transform: translateY(-6px) rotate(.6deg); } }
.taken__t { position: relative; z-index: 1; margin: 0; font: 900 1.15rem var(--f-brand); color: var(--gold-hi); text-shadow: 2px 2px 0 var(--ink); text-align: center; }
@media (max-height: 500px) and (orientation: landscape) { .stage--victory > .taken { grid-column: 2; grid-row: 2 / span 6; } .taken .fc--taken { width: min(26vw, calc((100dvh - 150px) * .5)); } }
.hp__ghost { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; z-index: 0; background: #fff; opacity: .9; transition: width .55s ease-in; }

/* ============================================================ v17 · שדרוג / החלפת קלף מוצגים על המסך */
.cfx { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.cfx .kick { margin: 0; }
.cfx__stage { position: relative; display: grid; place-items: center; width: 100%; padding: 14px 0; }
.cfx__a, .cfx__b { grid-area: 1 / 1; width: min(56vw, calc((100dvh - 300px) * .6), 230px); }
.cfx__a > .fc, .cfx__b > .fc { width: 100%; height: auto; grid-template-rows: auto auto auto !important; }
.cfx .fc__art { aspect-ratio: 2 / 3; } .cfx .fc__art img { object-position: 50% 0; } .cfx .fc__name { display: none; }
.cfx__b { opacity: 0; transform: scale(.6) rotateY(90deg); }
.cfx__rays { position: absolute; left: 50%; top: 50%; width: 560px; aspect-ratio: 1; translate: -50% -50%; opacity: 0; pointer-events: none; background: repeating-conic-gradient(rgba(255, 220, 120, .2) 0 10deg, transparent 10deg 22deg); -webkit-mask-image: radial-gradient(circle, #000 15%, transparent 60%); mask-image: radial-gradient(circle, #000 15%, transparent 60%); }
.cfx__t { margin: 0; font: 900 1.1rem/1.3 var(--f-brand); color: var(--gold-hi); text-shadow: 2px 2px 0 var(--ink); opacity: 0; }
.js-motion .cfx:not(.is-go) .cfx__a { animation: acharge 1s ease-in both; }
@keyframes acharge { 0% { transform: none; filter: none; } 60% { transform: scale(1.04) rotate(-1.5deg); filter: brightness(1.3); } 75% { transform: scale(1.05) rotate(1.5deg); } 90% { transform: scale(1.06) rotate(-1deg); } 100% { transform: scale(1.07); filter: brightness(2.2) saturate(.3); } }
.cfx.is-go .cfx__a { opacity: 0; transform: scale(.4) rotate(-14deg); filter: brightness(3); transition: opacity .35s, transform .35s ease-in, filter .2s; }
.cfx--up.is-go .cfx__a { transform: scale(1.15); }
.cfx.is-go .cfx__b { opacity: 1; transform: none; transition: opacity .3s .2s, transform .6s .2s cubic-bezier(.2, 1.4, .4, 1); }
.cfx.is-go .cfx__b > .fc { box-shadow: 0 0 0 3px var(--gold), 0 0 44px rgba(245, 200, 66, .6), 6px 8px 0 var(--ink); }
.cfx.is-go .cfx__rays { opacity: 1; transition: opacity .4s .25s; }
.js-motion .cfx.is-go .cfx__rays { animation: arays 16s linear infinite; }
.cfx.is-go .cfx__t { opacity: 1; transition: opacity .3s .5s; }
.adlg--fx .adlg__box { overflow: hidden; }
/* חגיגת שדרוג: ברקים בטעינה, קונפטי בפריצה */
.cfx__bolts { position: absolute; z-index: 3; left: 50%; top: 50%; width: min(70vw, calc((100dvh - 300px) * .75), 290px); translate: -50% -50%; overflow: visible; pointer-events: none; opacity: 0; }
.cfx__bolts path { fill: none; stroke: #e6f8ff; stroke-width: 4; stroke-linejoin: round; filter: drop-shadow(0 0 4px #5ec8ff) drop-shadow(0 0 10px #3d8bff); }
.js-motion .cfx:not(.is-go) .cfx__bolts { animation: abolts 1.1s steps(1) both; }
@keyframes abolts { 0% { opacity: 0; } 25% { opacity: 1; } 32% { opacity: 0; } 40% { opacity: 1; transform: scaleX(-1); } 52% { opacity: .2; } 60% { opacity: 1; transform: none; } 70% { opacity: 0; } 76% { opacity: 1; transform: scaleY(-1); } 88% { opacity: .4; } 94% { opacity: 1; transform: none; } }
.cfx.is-go .cfx__bolts { opacity: 0; transition: opacity .2s; }
.confetti { position: absolute; z-index: 6; top: 42%; width: 8px; height: 13px; border-radius: 2px; pointer-events: none; animation: aconf 1.6s cubic-bezier(.15, .7, .4, 1) both; }
.confetti.is-round { width: 9px; height: 9px; border-radius: 50%; }
@keyframes aconf { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 25% { transform: translate(calc(var(--dx) * .45), calc(var(--up) * -1)) rotate(calc(var(--r) * .3)); opacity: 1; } 100% { transform: translate(var(--dx), 300px) rotate(var(--r)); opacity: 0; } }
.cfx--up.is-go .cfx__b { animation: aupbounce .9s .2s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes aupbounce { 0% { transform: scale(.6) translateY(30px); opacity: 0; } 40% { transform: scale(1.12) translateY(-14px); opacity: 1; } 70% { transform: scale(.97) translateY(2px); } 100% { transform: none; opacity: 1; } }
.taken .fc--taken { width: min(56vw, calc((100dvh - 380px) * .5), 240px) !important; }
@media (min-height: 760px) { .taken .fc--taken { width: min(60vw, calc((100dvh - 360px) * .55), 260px) !important; } }
.cfx__a, .cfx__b { width: min(56vw, calc((100dvh - 360px) * .55), 230px); } .cfx__stage { padding: 8px 0; }

/* ============================================================ v18 · ביקורת הסרטון */
/* תגית משפחה: טקסט כהה תמיד, גם על משפחות בהירות */
.fc__band, .fc__band span { color: var(--ink) !important; text-shadow: none !important; }
.fc__band .dic * { stroke: var(--ink); }
/* פופים של הגיבור יושבים על המדליה */
.me__art { position: relative; }
.me__info > b { text-overflow: clip !important; }
/* פתיח VS: נכנסים ממקומם, בלי לחתוך בקצה */
@keyframes avsfoe { from { transform: translate(-24px, -18px) scale(.7); opacity: 0; } }
@keyframes avsme { from { transform: translate(24px, 18px) scale(.7); opacity: 0; } }
/* פתיח בוס */
.vs2--boss .vs2__bg { background: radial-gradient(circle at 50% 50%, rgba(150, 10, 30, .65), rgba(10, 2, 8, .94) 70%); }
.vs2--boss .vs2__slash { background: linear-gradient(90deg, transparent, #ff4a5c, #ffe08a, #ff4a5c, transparent); box-shadow: 0 0 30px rgba(255, 60, 70, 1); height: 12px; }
.vs2--boss .vs2__vs { color: #ffd84a; text-shadow: 6px 6px 0 #b0102a, 0 0 30px rgba(255, 80, 60, .9); }
.vs2--boss .vs2__tag { background: #b0102a; }
.vs2__q { display: block; max-width: 240px; font: 700 .86rem/1.35 var(--f-text); color: #ffd6da; text-shadow: 1px 1px 0 #000; }
.js-motion .vs2--boss .vs2__foe .vil { animation: abossin .6s .1s ease-out both; }
@keyframes abossin { 0% { filter: brightness(0); } 60% { filter: brightness(2) drop-shadow(0 0 20px #ff3040); } 100% { filter: none; } }
/* חבילה: הילה מאחורי הגב של קלף נדיר/אגדי */
.pull__c--t1:not(.is-open) .pull__back { box-shadow: 0 0 0 3px #5ec8ff, 0 0 26px 6px rgba(94, 200, 255, .75), 4px 5px 0 var(--ink); }
.pull__c--t2:not(.is-open) .pull__back { box-shadow: 0 0 0 3px #ffd84a, 0 0 34px 10px rgba(255, 200, 60, .85), 4px 5px 0 var(--ink); }
.js-motion .pull__c--t2:not(.is-open) .pull__back { animation: alegglow 1.2s ease-in-out infinite; }
@keyframes alegglow { 50% { transform: scale(1.04) rotate(-1deg); } }
/* יד: אייקון + מספר; המילים רק בקלף שנבחר */
.fc--hand:not(.is-sel) .act .al, .fc--hand:not(.is-sel) .act .as { display: none !important; }
.fc--hand:not(.is-sel) .act--wave .as { display: inline !important; }
.fc--hand .act .dic { display: inline-block !important; width: 13px !important; height: 13px !important; flex: none; }
.fc--hand:not(.is-sel) .act { justify-content: flex-start !important; gap: 3px !important; }
.fc--hand:not(.is-sel) .act b { font-size: .92rem !important; }
.act--up { background: #d9ffe6 !important; border-color: #1f9d55 !important; }
.act--up b { color: #127a3e !important; }
.fc--hand.is-ok .fc__cost--top { box-shadow: 0 0 0 2px #fff, 0 0 10px 3px rgba(110, 255, 160, .85) !important; }
.fc--hand.is-combo { box-shadow: 0 0 0 3px #ffb43a, 0 0 18px rgba(255, 170, 40, .9), 3px 4px 0 var(--ink) !important; }
.js-motion .fc--hand.is-combo { animation: acombo 1s ease-in-out infinite; }
@keyframes acombo { 50% { box-shadow: 0 0 0 3px #ffd84a, 0 0 26px rgba(255, 200, 60, 1), 3px 4px 0 var(--ink); } }
.fc--hand.is-team:not(.is-combo) { box-shadow: 0 0 0 3px var(--fam), 0 0 16px var(--fam), 3px 4px 0 var(--ink) !important; }
/* שותפות */
.teamfx { position: absolute; z-index: 36; left: 50%; top: 46%; translate: -50% -50%; display: grid; justify-items: center; gap: 2px; padding: 10px 18px; border-radius: 16px; background: rgba(14, 10, 38, .9); border: 2.5px solid var(--fam); box-shadow: 0 0 30px var(--fam); pointer-events: none; }
.teamfx i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--fam); border: 2px solid var(--ink); }
.teamfx .dic { width: 20px; height: 20px; } .teamfx .dic * { stroke: var(--ink); }
.teamfx b { font: 900 1.4rem var(--f-brand); color: #fff; text-shadow: 2px 2px 0 var(--ink); }
.teamfx span { font: 800 .9rem var(--f-brand); color: var(--gold-hi); }
.js-motion .teamfx { animation: ateam 1.5s var(--spring) both; }
@keyframes ateam { 0% { transform: scale(.4); opacity: 0; } 20% { transform: scale(1.1); opacity: 1; } 35% { transform: scale(1); } 80% { opacity: 1; } 100% { transform: translateY(-20px); opacity: 0; } }
/* נבלים חיים */
.js-motion .en:not(.is-ko):not(.is-frozen):not(.is-striker) .vil { animation: abreathe 3.6s ease-in-out infinite; animation-delay: var(--bd, 0s); }
@keyframes abreathe { 50% { transform: translateY(-4px) scale(1.012); } }
.js-motion .en.is-menace:not(.is-frozen):not(.is-striker) .vil { animation: amenace .9s ease-in-out infinite; }
@keyframes amenace { 0%, 100% { transform: none; filter: drop-shadow(0 0 6px rgba(255, 40, 60, .6)); } 25% { transform: translate(-1.5px, -2px) rotate(-.6deg); } 50% { filter: drop-shadow(0 0 16px rgba(255, 40, 60, 1)); } 75% { transform: translate(1.5px, -1px) rotate(.6deg); } }
.en.is-frozen .vil { position: relative; filter: saturate(.4) brightness(1.15); }
.en.is-frozen .vil::after { content: ""; position: absolute; inset: -4px; border-radius: 14px; pointer-events: none; border: 3px solid rgba(200, 240, 255, .95); box-shadow: inset 0 0 18px rgba(160, 220, 255, .9), 0 0 14px rgba(120, 200, 255, .8); background: linear-gradient(135deg, rgba(255, 255, 255, .35), transparent 30%, transparent 70%, rgba(200, 240, 255, .4)); }
.en.is-poisoned .vil { position: relative; }
.en.is-poisoned .vil::before { content: ""; position: absolute; z-index: 2; left: 10%; right: 10%; bottom: 0; height: 60%; pointer-events: none; background: radial-gradient(circle at 20% 80%, rgba(120, 230, 90, .9) 0 4px, transparent 5px), radial-gradient(circle at 55% 90%, rgba(120, 230, 90, .8) 0 3px, transparent 4px), radial-gradient(circle at 80% 70%, rgba(120, 230, 90, .85) 0 5px, transparent 6px); }
.js-motion .en.is-poisoned .vil::before { animation: abubbles 1.8s linear infinite; }
@keyframes abubbles { from { transform: translateY(10px); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(-40px); opacity: 0; } }
.js-motion .en.is-ko-new .vil { animation: ako 1s ease-out both; }
@keyframes ako { 0% { transform: none; filter: brightness(3); } 15% { transform: translate(-6px, 2px) rotate(-3deg); } 30% { transform: translate(6px, -2px) rotate(3deg); filter: brightness(1.5); } 60% { transform: translateY(14px) rotate(9deg) scale(.94); filter: grayscale(1) brightness(.7); } 100% { transform: translateY(10px) rotate(7deg) scale(.95); filter: grayscale(1) brightness(.6); } }
.en.is-ko .vil { transform: translateY(10px) rotate(7deg) scale(.95); filter: grayscale(1) brightness(.6); }
.js-motion .en.is-ko-new .en__ko { animation: akostamp .5s .45s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes akostamp { from { transform: scale(3) rotate(-20deg); opacity: 0; } }
/* חלקיקים ברקע לפי פרק */
.bt__fx { position: absolute !important; inset: 0; z-index: -1 !important; overflow: hidden; pointer-events: none; }
.bt__fx i { position: absolute; top: -10%; left: calc(var(--k) * 10% + 3%); width: 7px; height: 5px; border-radius: 50% 0; background: #d98b3a; opacity: .55; animation: afall calc(7s + var(--k) * .6s) linear infinite; animation-delay: calc(var(--k) * -1.3s); }
.bt__fx--ch1 i { width: 8px; height: 10px; border-radius: 1px; background: #f2efe2; opacity: .4; }
.bt__fx--ch2 i { width: 2px; height: 16px; border-radius: 1px; background: #9fd8ff; opacity: .45; animation-duration: calc(1.4s + var(--k) * .12s); }
.bt__fx--ch2 i:nth-child(3n) { width: 4px; height: 4px; border-radius: 50%; background: #ffe08a; box-shadow: 0 0 8px #ffe08a; animation-duration: calc(4s + var(--k) * .3s); }
@keyframes afall { from { transform: translate(0, 0) rotate(0); } to { transform: translate(40px, 120vh) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) { .bt__fx { display: none; } }
/* ערימות: משיכה סגורה, זריקה אפורה */
.pile--disc { filter: grayscale(.8) brightness(.8); }
.pile--disc i { transform: rotate(-12deg); }
/* שדרוג: לפני ← אחרי */
.upv { display: block; margin-top: 3px; padding: 3px 5px; border-radius: 6px; background: #e9ffe9; border: 1.5px solid #1f9d55; color: #0d5a2e; font: 700 .62rem/1.3 var(--f-text); text-align: start; }
.upv b { font-family: var(--f-brand); }
/* שלל: רק לאוסף */
.rcard { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.rcol { all: unset; box-sizing: border-box; cursor: pointer; order: 3; width: 100%; padding: 4px 6px; border-radius: 999px; border: 1.5px solid rgba(255, 224, 138, .5); background: rgba(14, 10, 38, .7); color: var(--gold-hi); font: 800 .66rem var(--f-brand); text-align: center; }
.rcol:hover { background: rgba(245, 200, 66, .15); }
.rcol:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
/* סוף הרפתקה */
.killer { display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: center; margin: 8px 0; padding: 8px 12px; border-radius: 14px; background: rgba(60, 4, 14, .7); border: 1.5px solid #ff4a5c; text-align: start; }
.killer .vil { width: 56px; } .killer p { margin: 0; display: grid; gap: 1px; }
.killer small { color: #ff9aa5; font-size: .72rem; } .killer b { font: 900 1rem var(--f-brand); color: #fff; } .killer q { font-size: .78rem; color: #ffd6da; }
.end__go { display: grid; gap: 8px; width: 100%; margin-top: 10px; } .end__go .btn { width: 100%; justify-content: center; } .end__go .chipbtn { justify-self: center; }
/* בית: מצבים נעולים */
.home__sub.is-locked { display: none !important; }
.home__lock { margin: 0; display: inline-flex; align-items: center; gap: 6px; font: 700 .76rem var(--f-text); color: var(--muted); }
.home__lock .dic { width: 14px; height: 14px; }
/* הגדרות */
.setl { display: grid; gap: 8px; margin: 10px 0; } .setl .btn { justify-content: center; }
.setl__danger { margin-top: 14px; padding: 10px 12px; border-radius: 12px; border: 1.5px dashed #ff6b7a; display: grid; gap: 6px; }
.setl__danger b { color: #c2283a; } .setl__danger p { margin: 0; font-size: .82rem; }
/* בתוך הרפתקה: בלי הסרגל התחתון (יש "לבית" למעלה) */
.arena[data-screen="run"] .atabs { display: none !important; }
.bt { isolation: isolate; }
.coach.is-act { pointer-events: none; }
/* אחרי בוס: 3 אוצרות בשורה אחת קומפקטית */
.relics--loot.is-multi { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 8px !important; }
.relics--loot.is-multi .loot__t { grid-column: 1 / -1; margin: 0; }
.relics--loot.is-multi > button { display: grid !important; grid-template-columns: 1fr !important; justify-items: center; gap: 2px; padding: 6px 4px !important; text-align: center; min-width: 0; }
.relics--loot.is-multi > button img { width: 40px !important; height: 40px !important; }
.relics--loot.is-multi > button b { font-size: .74rem !important; line-height: 1.15; }
.relics--loot.is-multi > button span { font-size: .62rem !important; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.relics--loot.is-multi { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } .relics--loot.is-multi .relicc img { grid-row: auto !important; } .relics--loot.is-multi .relicc { min-height: 0 !important; }
/* סוף הרפתקה בטלפון: קומפקטי, תמיד נגלל אם צריך */
@media (max-width: 699px), (max-height: 500px) {
  .stage--end { overflow-y: auto; }
  .stage--end .end__cap { display: none; }
  .stage--end .res__stamp { font-size: 1.7rem !important; padding: 6px 14px !important; }
  .stage--end .res p { margin: 4px 0; font-size: .86rem; }
  .end__go { gap: 6px; } .end__go .btn { min-height: 46px; }
}
.end__go .btn--ghost { color: var(--ink) !important; border-color: var(--ink) !important; background: rgba(10, 11, 34, .06) !important; }
/* יד בקרב: פחות חפיפה בין הקלפים (פידבק הראל) */
@media (max-width: 699px) {
  .bt__hand > .fc { --w: min(31vw, calc((100vw - 36px) / (var(--hn) * .82 + .18))); width: var(--w); margin-inline: calc(var(--w) * -.09); }
}
@media (min-width: 700px) { .bt__hand > .fc { margin-inline: calc(var(--w, 130px) * -.06) !important; } }
.run__quit { margin-inline-start: 6px; }
.run__quit .dic { width: 18px; height: 18px; }
.rcol small { display: block; font: 700 .58rem var(--f-text); color: var(--muted); }
.endt.is-auto { box-shadow: 0 0 0 3px var(--gold), 0 0 16px rgba(245, 200, 66, .8) !important; }
/* ============================================================ v20 · טבלאות ואתגר חבר */
.lbw { width: 100%; margin: 8px 0; }
.lbw h3 { margin: 0 0 6px; font: 900 .95rem var(--f-brand); color: var(--gold-hi); text-align: center; }
.lbd { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 42dvh; overflow-y: auto; }
.lbd li { display: grid; grid-template-columns: 26px 34px 1fr auto; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 12px; background: rgba(10, 11, 34, .06); border: 1.5px solid rgba(10, 11, 34, .12); text-align: start; }
.lbd li.is-top .lb__n { background: var(--gold); }
.lbd li.is-me { background: #fff3c4; border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.lb__n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(10, 11, 34, .1); font: 900 .8rem var(--f-brand); }
.lbd img, .lbd li > i { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; border: 2px solid var(--ink); }
.lb__name { display: grid; min-width: 0; } .lb__name bdi { font: 800 .9rem var(--f-brand); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb__name small { font-size: .7rem; color: #5d5480; }
.lb__s { font: 900 1rem var(--f-brand); }
.lb__me { margin: 6px 0 0; text-align: center; font-weight: 700; font-size: .82rem; }
.stage--end .lbd li { background: rgba(10, 11, 34, .05); }
.chs { display: grid; justify-items: center; margin: 4px 0; } .chs small { font-size: .78rem; } .chs b { font: 900 2.2rem/1 var(--f-brand); }
.home--v2 .hmode2--wide { grid-column: 1 / -1; min-height: 52px; }
.adlg--lb .adlg__box { max-height: 90dvh; }
.lbw, .lbw *, .lbd li { visibility: visible !important; } .res .lbw { width: min(420px, 100%); }
/* ============================================================ v22 · מקרא בקרב */
.bt__legend { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px 0 8px; border-radius: 999px; background: rgba(14, 10, 38, .78); border: 1.5px solid var(--gold); color: var(--gold-hi); font: 800 .82rem var(--f-brand); }
.bt__legend b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: var(--ink); font: 900 .9rem/1 var(--f-brand); }
.bt__legend:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (max-width: 380px) { .bt__legend span { display: none; } .bt__legend { padding: 0 9px; } }
.adlg--legend2 .adlg__box { width: min(560px, 100%); }
.lg { display: grid; gap: 6px; text-align: start; }
.lg h3 { margin: 8px 0 2px; font: 900 .95rem var(--f-brand); color: #6b3fd1; }
.lg ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.lg__acts { grid-template-columns: 1fr 1fr; }
.lg__acts li, .lg__card li { display: grid; grid-template-columns: 40px 1fr; gap: 8px; align-items: center; padding: 5px 8px; border-radius: 10px; background: rgba(10, 11, 34, .05); }
.lg__acts li b, .lg__card li b { display: block; font: 800 .88rem var(--f-brand); }
.lg__acts li small, .lg__card li small { display: block; font-size: .74rem; color: #5d5480; line-height: 1.3; }
.lg__ic { display: grid !important; place-items: center; width: 38px; height: 30px; border-radius: 8px; padding: 0 !important; border: 1.5px solid var(--ink); background: #fff; }
.lg__ic .dic { width: 22px !important; height: 22px !important; display: block !important; }
.lg__band { display: grid; place-items: center; width: 38px; height: 22px; border-radius: 4px; background: #ff6b3d; border: 1.5px solid var(--ink); } .lg__band .dic { width: 15px; height: 15px; }
.lg__card .hgem { width: 30px; height: 30px; justify-self: center; }
.lg__hp { display: block; width: 38px; height: 10px; border-radius: 5px; background: #5fd38d; border: 1.5px solid var(--ink); position: relative; overflow: hidden; } .lg__hp i { position: absolute; inset: 0 0 0 auto; width: 40%; background: #ff3b4f; }
.lg__ints li { display: grid; grid-template-columns: 112px 1fr; gap: 8px; align-items: center; }
.lg__int { justify-self: start; padding: 2px 9px; border-radius: 999px; background: #fff; border: 1.5px solid var(--ink); font: 800 .76rem var(--f-brand); white-space: nowrap; }
.lg__ints small { font-size: .76rem; color: #5d5480; line-height: 1.3; }
@media (max-width: 420px) { .lg__acts { grid-template-columns: 1fr; } .lg__ints li { grid-template-columns: 96px 1fr; } }
/* נבל שעושה פעולה (לא תקיפה): הבהוב קצר כדי שיהיה ברור מי פעל */
.js-motion .en.is-acting .vil { animation: aacting .9s ease-out; }
@keyframes aacting { 0% { transform: none; filter: none; } 30% { transform: translateY(-8px) scale(1.08); filter: drop-shadow(0 0 14px rgba(255, 220, 120, .95)); } 100% { transform: none; filter: none; } }
@media (max-width: 520px) { .bt__log { display: none !important; } }
.lg__log { justify-self: center; margin-top: 8px; gap: 6px; }
.bt__legend b { font-family: system-ui, Arial, sans-serif !important; }
/* ============================================================ v23 · הראל סבב 4 */
/* יד: מספר + מילה קצרה (בלי שלוש נקודות) */
.fc--hand:not(.is-sel) .act .as { display: inline !important; font-size: .56rem; font-weight: 800; white-space: nowrap; }
.fc--hand:not(.is-sel) .act { gap: 2px !important; padding-inline: 3px !important; }
.fc--hand:not(.is-sel) .act b { font-size: .84rem !important; }
/* חפיסה בטלפון: 4 בשורה, אותו גובה, שם המשפחה בפס */
@media (max-width: 699px) {
  .deck--v2 .slots--v2, .deck--v2 .coll--v2 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 7px !important; grid-auto-rows: 1fr; }
  .deck--v2 .slots--v2 > .fc, .deck--v2 .coll--v2 > .fc { height: 100% !important; grid-template-rows: auto auto 1fr !important; }
  .deck--v2 .fc .fc__band span { display: inline !important; font: 800 .5rem var(--f-brand); white-space: nowrap; overflow: hidden; text-overflow: clip; }
  .deck--v2 .fc .fc__band { justify-content: center; gap: 2px; }
  .deck--v2 .fc .fc__body { display: grid; align-content: center; }
  .deck--v2 .fc .acts > .act:nth-child(2) { display: flex !important; }
  .deck--v2 .fc .act { font-size: .54rem !important; } .deck--v2 .fc .act b { font-size: .7rem !important; }
  .deck--v2 .fc .fc__cost { width: 20px !important; height: 20px !important; font-size: .72rem !important; }
  .deck--v2 .slot-add { aspect-ratio: auto; height: 100%; min-height: 120px; }
  .deck--v2 .slot-add small { font-size: .66rem; }
}
/* 6 לשוניות */
.atabs { grid-template-columns: repeat(6, 1fr) !important; }
@media (max-width: 400px) { .atab span { font-size: .66rem; } .atab__art { width: 26px; height: 26px; } }
/* טבלת הגיבורים */
.board { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 560px; margin-inline: auto; }
.board__me { display: grid; grid-template-columns: 56px 1fr; grid-template-areas: "m n" "m s"; align-items: center; column-gap: 10px; padding: 8px 12px; border-radius: 16px; background: rgba(14, 10, 38, .62); border: 1.5px solid rgba(255, 224, 138, .4); }
.board__me > span { grid-area: m; } .board__me .medal--me { width: 46px !important; }
.board__me b { grid-area: n; font: 900 1.1rem var(--f-brand); color: #fff; } .board__me small { grid-area: s; color: var(--gold-hi); font-weight: 700; }
.lbw--page { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 10px; border-radius: 16px; background: var(--paper); border: 2.5px solid var(--ink); color: var(--paper-ink); }
.lbw--page .lbd { max-height: none; }
.lbd .lb__s small { display: block; font: 700 .66rem var(--f-text); color: #5d5480; text-align: end; }
.board__more .hmode2 { width: 100%; }
@media (max-width: 699px), (max-height: 500px) { .board .phead p { display: none; } }
/* סרט במדליה: שם הגיבור */
.medal__rib { font-family: var(--f-brand); letter-spacing: -.01em; }
.home__tag b { display: inline-flex; align-items: center; justify-content: center; gap: 5px; } .home__tag b .dic { width: 16px; height: 16px; }
.heat { padding: 1px 8px; border-radius: 999px; background: #b0102a; color: #fff; font: 800 .7rem var(--f-brand); vertical-align: middle; }
.fc--hand:not(.is-sel) .act { flex-wrap: wrap !important; justify-content: flex-start !important; align-content: center; row-gap: 0 !important; height: auto !important; min-height: 0; padding-block: 2px !important; line-height: 1.05 !important; }
.fc--hand:not(.is-sel) .act .as { flex-basis: 100%; font-size: .52rem !important; line-height: 1 !important; text-align: start; }

/* ============================================================ v24 · סבב 5 של הראל (25.10.2026) */
/* שם המשפחה על הפס: בקלפים רגילים השם המלא, ביד הקצר */
.fc__fs { display: none; }
.fc--hand .fc__fs { display: inline; font: 900 .6rem/1 var(--f-brand); white-space: nowrap; overflow: hidden; color: var(--ink); }
.bt__hand > .fc.is-sel .fc__fs { display: none; }
@media (min-width: 700px) and (min-height: 501px) { .fc--hand .fc__fs { font-size: .66rem; } }
/* מסך הקרבות בלי הרפתקה: הבר התחתון וה-HUD חוזרים */
.arena[data-screen="run"].is-runintro .atabs { display: grid !important; }
.arena[data-screen="run"].is-runintro .atop__hud { visibility: visible; }
.arena[data-screen="run"].is-runintro .amain { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
/* טיימר ההרפתקה היומית */
.dtime { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: rgba(127, 232, 242, .14); border: 2px solid #7fe8f2; color: #dffbff; font: 800 .78rem/1 var(--f-brand); white-space: nowrap; }
.dtime .dic { width: 14px; height: 14px; } .dtime .dic * { stroke: #7fe8f2; }
.dtime b { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.dtime small { font: 700 .66rem/1 var(--f-ui, inherit); opacity: .85; }
.dtime.is-low { background: rgba(226, 54, 74, .18); border-color: #ff5b6e; color: #ffe1e5; } .dtime.is-low .dic * { stroke: #ff5b6e; }
.dtime--home { margin-inline-start: 8px; vertical-align: middle; }
.res__exp { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 6px auto; padding: 6px 12px; border-radius: 12px; background: rgba(226, 54, 74, .16); color: #ffe1e5; font-weight: 700; }
.res__exp .dic { width: 16px; height: 16px; } .res__exp .dic * { stroke: #ff5b6e; }
/* הודעת התור נשארת, מתעמעמת קצת */
.bt__msg.is-on.is-old { opacity: .78; }

/* ============================================================ v25 · המסע הארוך (25.10.2026) */
@media (min-width: 760px) { .modes3 { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.journey { display: flex; flex-direction: column; gap: 8px; width: min(600px, 100%); margin: 0 auto; }
.jhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.jhead h1 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 2px 0 4px; font: 900 1.55rem/1.05 var(--f-brand); }
.jhead h1 small { font: 800 .8rem/1 var(--f-brand); color: #cfc9ff; }
.jsub { display: flex; align-items: center; gap: 5px; margin: 0; color: #d9d4ff; font-size: .82rem; }
.jsub .dic { width: 15px; height: 15px; flex: none; }
.jstats { display: flex; align-items: center; gap: 6px; flex: none; }
.jstats span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; background: rgba(16, 12, 42, .85); border: 2px solid var(--ink); font: 800 .9rem/1 var(--f-brand); color: #fff; }
.jstats .dic { width: 15px; height: 15px; }
.jscroll { position: relative; height: min(68vh, 760px); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; border-radius: 22px; border: 3px solid var(--ink); box-shadow: 5px 6px 0 var(--ink); background: #120c2a; scrollbar-width: thin; }
.jmap { position: relative; width: 100%; }
.jband { position: absolute; left: 0; right: 0; background: #120c2a center / cover no-repeat; }
.jband--hood { background-image: url(../assets/arena/map/hood.webp?v=1); }
.jband--city { background-image: url(../assets/arena/map/city.webp?v=1); }
.jband--storm { background-image: url(../assets/arena/map/storm.webp?v=1); }
.jband::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 6, 26, .75) 0, rgba(8, 6, 26, .15) 70px, rgba(8, 6, 26, .15) calc(100% - 70px), rgba(8, 6, 26, .75) 100%); }
.jband__lab { position: absolute; z-index: 1; bottom: 8px; inset-inline-start: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(10, 11, 34, .82); border: 2px solid var(--gold); color: var(--gold-hi, #ffe08a); font: 800 .74rem/1 var(--f-brand); }
.jmap .rmap__lines { z-index: 1; }
.jmap .mn { z-index: 2; }
.jfog { position: absolute; left: 0; right: 0; top: 0; z-index: 3; pointer-events: none; background: linear-gradient(180deg, rgba(22, 18, 48, .98) 0%, rgba(22, 18, 48, .95) calc(100% - 20px), rgba(22, 18, 48, 0) 100%); }
.jfog img { position: absolute; bottom: -14px; opacity: .95; }
.jfog__t { position: absolute; bottom: 118px; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 5px; color: #bfb8f0; font: 800 .8rem/1 var(--f-brand); }
.jfog__t .dic { width: 14px; height: 14px; }
.jmap .mtok { z-index: 4; }
.jres__h { margin: 10px 0 6px; font: 900 1rem var(--f-brand); color: var(--gold); text-align: center; }
.jres__card { width: min(170px, 46vw); margin: 0 auto 8px; }
.jres__card .fc { width: 100%; }
/* בטלפון: הכותרת והמפה בגובה המסך, המפה נגללת בפנים */
@media (max-width: 699px), (max-height: 500px) {
  .arena[data-screen="journey"] .amain { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .jhead h1 { font-size: 1.3rem; } .jsub { font-size: .74rem; }
  .jscroll { height: calc(100dvh - 252px - env(safe-area-inset-bottom)); min-height: 300px; }
}
/* חלון פרס במסע: קומפקטי, הקלף החדש נראה בלי לגלול */
.jres .res__stamp { font-size: clamp(1.7rem, 7vw, 2.4rem) !important; padding: 4px 18px !important; margin-bottom: 4px; }
.jres p { margin: 4px 0; }
.jres .res__row { margin: 6px 0; }
.jres__h { margin: 6px 0 4px; }
.jres__card { width: min(132px, 36vw); }
.jres__new { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 6px 0 10px; text-align: start; }
.jres__new .jres__card { width: 92px; margin: 0; flex: none; }
.jres__new .jres__h { margin: 0 0 4px; text-align: start; }
.jres__name { display: block; font: 900 1.1rem/1.1 var(--f-brand); }
.jres__new small { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: var(--gold); color: var(--ink); font: 800 .72rem/1.2 var(--f-brand); }

/* ============================================================ v26 · דרגת הקלף ברורה (הערה של אורי, 25.10.2026) */
.adlg--pull .pull__c { flex-direction: column; align-items: stretch; padding-bottom: 26px; }
.pull__tier { position: absolute; z-index: 3; bottom: 0; left: 50%; translate: -50% 0; padding: 3px 12px; border-radius: 999px; border: 2.5px solid var(--ink); box-shadow: 2px 3px 0 var(--ink); font: 900 .8rem/1 var(--f-brand); font-style: normal; color: var(--ink); white-space: nowrap; opacity: 0; transition: opacity .25s .35s; }
.pull__c.is-open .pull__tier { opacity: 1; }
.pull__tier--0 { background: #e7e9f6; }
.pull__tier--1 { background: linear-gradient(135deg, #e6f6ff, #5ec8ff); }
.pull__tier--2 { background: linear-gradient(135deg, #fff3b0, #ffd84a 50%, #ff9a1f); }
.pull__c--t1.is-open > .fc { box-shadow: 0 0 0 3px #5ec8ff, 0 0 22px 4px rgba(94, 200, 255, .65), 4px 5px 0 var(--ink); }
.pull__c--t2.is-open > .fc { box-shadow: 0 0 0 3px #ffd84a, 0 0 30px 8px rgba(255, 200, 60, .8), 4px 5px 0 var(--ink); }
.sell .tier--0 { background: #e7e9f6; }

/* ============================================================ v27 · מהלך אגדי (25.10.2026) */
.fc__sig { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 2px 6px; background: linear-gradient(90deg, #ffe08a, #f5c842 50%, #ffb43a); border-bottom: 2.5px solid var(--ink); color: var(--ink); font: 900 .66rem/1.15 var(--f-brand); white-space: nowrap; overflow: hidden; }
.fc__sig .dic { width: 12px; height: 12px; flex: none; } .fc__sig .dic * { stroke: var(--ink); }
.fc__sig > span { overflow: hidden; text-overflow: ellipsis; }
.fc--hand .fc__sig { display: none; }
.bt__hand > .fc.is-sel .fc__sig { display: flex; }
.cdet__sig { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 4px; padding: 8px 12px; border-radius: 12px; background: linear-gradient(90deg, rgba(255, 224, 138, .9), rgba(245, 200, 66, .75)); border: 2.5px solid var(--ink); color: var(--ink); font-size: .9rem; }
.cdet__sig b { display: block; font: 900 1rem/1.2 var(--f-brand); }
.cdet__sig .dic { width: 18px; height: 18px; flex: none; margin-top: 2px; } .cdet__sig .dic * { stroke: var(--ink); }
.cdet__sig.is-locked { background: rgba(10, 11, 34, .06); border-style: dashed; color: inherit; }
.cast__sig { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: linear-gradient(90deg, #ffe08a, #f5c842); border: 2px solid var(--ink); color: var(--ink); font: 900 .8rem/1.2 var(--f-brand); font-style: normal; }
.cast__sig .dic { width: 14px; height: 14px; } .cast__sig .dic * { stroke: var(--ink); }
/* שם המהלך לא נחתך: עד 2 שורות קצרות */
.fc__sig { white-space: normal; }
.fc__sig > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: clip; text-align: center; line-height: 1.05; text-wrap: balance; }
.fitg > .fc .fc__sig, .deck--v2 .fc .fc__sig, .coll .fc__sig { font-size: .56rem; padding: 2px 4px; gap: 2px; }
.fitg > .fc .fc__sig .dic, .deck--v2 .fc .fc__sig .dic { width: 9px; height: 9px; }
/* תג הדרגה בקלפים קטנים: בפינה השנייה, לא מתחת לעיגול העלות */
.fitg > .fc .tier, .deck--v2 .fc .tier, .coll .fc .tier { left: 4px !important; right: auto !important; inset-inline-start: auto !important; inset-inline-end: auto !important; }

/* ============================================================ v28 · קלפים חדשים בתחילת תור + נבל מסתורי (25.10.2026) */
.dealtag { position: fixed; z-index: 85; padding: 4px 12px; border-radius: 999px; background: var(--gold); border: 3px solid var(--ink); box-shadow: 3px 4px 0 var(--ink); color: var(--ink); font: 900 1rem/1 var(--f-brand); font-style: normal; pointer-events: none; animation: dealtag 1.6s ease-out forwards; }
@keyframes dealtag { 0% { opacity: 0; transform: translateY(16px) scale(.6); } 15% { opacity: 1; transform: translateY(0) scale(1.08); } 25% { transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-26px); } }
.int--hidden { display: inline-flex; align-items: center; gap: 4px; background: #2a1d55 !important; color: #fff !important; border-color: #b69cff !important; box-shadow: 0 0 12px rgba(182, 156, 255, .6); }
.int--hidden b { font: 900 1.1rem/1 var(--f-brand); color: #e7dcff; }
.int--hidden small { font: 800 .72rem/1 var(--f-brand); }
.js-motion .int--hidden b { animation: hidq 1.6s ease-in-out infinite; }
@keyframes hidq { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg) scale(1.15); } }
.me__lose--q { color: #cdb8ff !important; }

/* ============================================================ v29 · סבב 6 של הראל (25.10.2026) */
/* שם המשפחה בכל מקום: שם קצר על כל קלף, השם המלא רק בתצוגה הגדולה */
.fc:not(.fc--big) .fc__band > span:not(.fc__fs) { display: none !important; }
.fc:not(.fc--big) .fc__band .fc__fs { display: inline !important; font: 900 .62rem/1 var(--f-brand); white-space: nowrap; overflow: hidden; color: var(--ink); }
.fc--big .fc__fs { display: none !important; }
.fitg > .fc .fc__band .fc__fs, .deck--v2 .fc .fc__band .fc__fs, .coll .fc__band .fc__fs, .pull .fc__band .fc__fs { font-size: .56rem; }
.pull.is-back .pull__c { animation: none !important; }
.js-motion .en.is-pick { animation: pickfoe .5s ease-in-out 2; }
@keyframes pickfoe { 0%, 100% { transform: none; } 50% { transform: translateY(-8px) scale(1.04); filter: drop-shadow(0 0 14px rgba(255, 216, 74, .9)); } }

/* סבב 6: ממשק */
.deck--v2 .slots--v2.is-wide { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 5px !important; }
.deck--v2 .slots--v2.is-wide .fc__sig, .deck--v2 .slots--v2.is-wide .fc__band .fc__fs { font-size: .5rem !important; }
.fc__x { position: absolute; z-index: 3; bottom: 6px; inset-inline-start: 6px; padding: 1px 7px; border-radius: 999px; background: var(--ink); color: var(--gold); border: 2px solid var(--gold); font: 900 .78rem/1.2 var(--f-brand); font-style: normal; }
.coll__head h2 small { font: 700 .74rem var(--f-brand); opacity: .8; }
/* טיימר היומית בפס ההרפתקה: קטן, לא דוחף את הזהב */
.rbar__time { padding: 2px 6px; font-size: .7rem; gap: 3px; } .rbar__time small { display: none; } .rbar__time .dic { width: 12px; height: 12px; }
@media (max-width: 420px) { .rbar { gap: 4px !important; } .rbar__time b { font-size: .7rem; } }
.dtime--mode { margin-top: 6px; font-size: .72rem; padding: 2px 8px; } .dtime--mode small { display: inline; }
/* מסך הקרבות: כפתורים קומפקטיים, הכותרת לא מוסתרת */
@media (max-width: 699px), (max-height: 500px) {
  .runintro .modes3 { gap: 8px !important; align-content: start !important; }
  .runintro .mode3 { padding: 8px 12px !important; min-height: 0 !important; }
  .runintro .mode3 .art { width: 42px !important; height: 42px !important; }
  .runintro .mode3 b { font-size: 1.05rem !important; } .runintro .mode3 span { font-size: .78rem !important; }
  .runintro .mode3--main { padding: 12px 14px !important; }
}
.home__sub:empty { display: none !important; }
/* חנויות: "מה הוא עושה?" */
.what { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 4px; margin: 2px 0 4px; padding: 3px 8px; border-radius: 999px; background: rgba(10, 11, 34, .08); border: 2px solid var(--ink); font: 800 .7rem/1.1 var(--f-brand); color: var(--ink); cursor: pointer; }
.what .dic { width: 12px; height: 12px; }
.buy { display: flex; flex-direction: column; align-items: center; }
/* הלוג בקרב לא מסתיר את החיים של הנבל */
@media (max-width: 699px) { .bt__msg { margin-top: 10px !important; } .en .vil { max-height: 26vh; } }

/* פרופיל שחקן מהטבלה */
.lbd li[data-pi] { cursor: pointer; } .lbd li[data-pi]:hover { filter: brightness(1.08); }
.pprof { text-align: center; }
.pprof__img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; border: 4px solid var(--gold); box-shadow: 0 0 0 3px var(--ink), 0 0 30px rgba(255, 216, 74, .4); }
.pprof h2 { margin: 8px 0 2px; font: 900 1.5rem/1.1 var(--f-brand); } .pprof h2 small { font-size: .8rem; opacity: .7; }
.pprof__hero { margin: 0 0 10px; opacity: .8; font-size: .9rem; }
.pprof__st { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
.pprof__st li { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; background: rgba(10, 11, 34, .06); border: 2px solid var(--ink); }
.pprof__st li .dic { width: 18px; height: 18px; } .pprof__st li b { font: 900 1.05rem/1.1 var(--f-brand); } .pprof__st li b small { font-size: .7rem; opacity: .7; } .pprof__st li > small { font-size: .72rem; opacity: .8; }
.pprof__j { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 0; font-size: .85rem; opacity: .85; } .pprof__j .dic { width: 15px; height: 15px; }

/* להתקין כאפליקציה */
.inst__ic { display: block; width: 84px; height: 84px; margin: 4px auto 10px; border-radius: 20px; border: 3px solid var(--ink); box-shadow: 3px 4px 0 var(--ink); }
.inst { margin: 0 auto; padding-inline-start: 22px; max-width: 320px; display: grid; gap: 6px; font-weight: 700; }

.fc .fc__x { position: absolute !important; inset: auto auto 6px 6px !important; width: auto !important; height: auto !important; min-width: 0 !important; display: inline-block !important; padding: 2px 8px !important; border-radius: 999px !important; background: var(--gold) !important; color: var(--ink) !important; border: 2.5px solid var(--ink) !important; box-shadow: 2px 2px 0 var(--ink) !important; font: 900 .82rem/1.1 var(--f-brand) !important; direction: ltr; unicode-bidi: isolate; transform: none !important; }
.mode3 .dtime--mode { display: flex; width: max-content; margin-top: 6px; }

/* שם חובה */
.askn__in { display: block; width: min(280px, 100%); margin: 6px auto 4px; padding: 10px 14px; border-radius: 12px; border: 3px solid var(--ink); font: 800 1.15rem var(--f-brand); text-align: center; background: #fff; color: var(--ink); }
.js-motion .is-bad { animation: badshake .35s ease-in-out; border-color: #e2364a !important; }
@keyframes badshake { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.adlg--must .adlg__grip { display: none; }
/* דניאל: בטבלה רואים בבירור מי הגיבור של כל אחד */
.lbd li { grid-template-columns: 26px 60px 1fr auto !important; padding: 6px 10px !important; }
.lbd img, .lbd li > i { width: 60px !important; height: 60px !important; border-radius: 14px !important; object-position: 50% 14% !important; border: 2.5px solid var(--ink) !important; box-shadow: 2px 3px 0 var(--ink); }
.lbd li.is-top img { border-color: var(--gold) !important; box-shadow: 0 0 0 2px var(--ink), 0 0 14px rgba(255, 216, 74, .5); }
/* בית אחרי הוצאת הכפתורים (הראל): כפתור משני אחד ברוחב מלא, והגיבור גדול יותר */
.home--v2 .home__sub { grid-template-columns: 1fr !important; }
.home--v2 .home__sub .hmode2 { width: 100%; justify-content: center; }
.home--v2 .medal--home { width: min(58vw, 30dvh, 280px) !important; }
@media (max-height: 700px) { .home--v2 .medal--home { width: min(46vw, 24dvh, 200px) !important; } }
/* דניאל 25.10: מסגרת דקה במקום הטבעת העבה (אפשרות ב), והשם על סרט זהב שרואים */
.medal::after { inset: -11% !important; background: none !important; border-radius: 50%; border: 4px solid var(--ink); box-shadow: inset 0 0 0 7px #f5c842, inset 0 0 0 10px var(--ink), 0 0 30px rgba(255, 216, 74, .4) !important; filter: none !important; }
.medal--me::after { inset: -9% !important; border-width: 2px; box-shadow: inset 0 0 0 4px #f5c842, inset 0 0 0 6px var(--ink) !important; }
.medal { box-shadow: none !important; }
.medal__rib { top: 100% !important; width: auto !important; min-width: 46%; max-width: 96%; padding: .32em .9em; background: linear-gradient(180deg, #fff3b0, #f5c842 55%, #e0a82a); border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: 2px 3px 0 var(--ink); font-size: 8.5cqw !important; overflow: visible !important; }

/* ============================================================ v30 · מיזוג כפולים + גלריית נבלים (25.10.2026) */
.merge { display: grid; justify-items: center; gap: 6px; margin: 10px 0 2px; padding: 10px 12px; border-radius: 14px; background: linear-gradient(135deg, rgba(255, 224, 138, .5), rgba(94, 200, 255, .25)); border: 2.5px solid var(--ink); text-align: center; }
.merge p { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 800; } .merge .dic { width: 16px; height: 16px; }
.merge small { opacity: .75; font-weight: 700; }
.fc .fc__x.is-merge { background: linear-gradient(135deg, #7ff0c0, #2fbf8a) !important; }
.js-motion .fc .fc__x.is-merge { animation: mergepulse 1.6s ease-in-out infinite; }
@keyframes mergepulse { 0%, 100% { transform: none; } 50% { transform: scale(1.12); } }
.note--merge { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; background: rgba(127, 240, 192, .14); border-radius: 10px; padding: 6px 10px; }
.vgal { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 62vh; overflow-y: auto; padding: 4px 2px 8px; }
.vg { all: unset; box-sizing: border-box; position: relative; display: grid; justify-items: center; gap: 3px; padding: 8px 4px; border-radius: 14px; background: rgba(10, 11, 34, .06); border: 2.5px solid var(--vc, var(--ink)); cursor: pointer; text-align: center; }
.vg .vil { width: 70px; height: 70px; }
.vg b { font: 900 .82rem/1.1 var(--f-brand); } .vg small { font-size: .68rem; opacity: .8; }
.vg.is-locked { border-color: rgba(10, 11, 34, .25); border-style: dashed; }
.vg.is-locked .vil { filter: brightness(0) opacity(.55); }
.vg.is-boss { background: linear-gradient(180deg, rgba(255, 216, 74, .25), rgba(10, 11, 34, .04)); }
.vg__crown { position: absolute; top: 4px; inset-inline-end: 6px; } .vg__crown .dic { width: 16px; height: 16px; }
/* הראל: הלוג לא מסתיר את החיים של הנבל גם בטלפון קטן */
@media (max-width: 699px) and (max-height: 800px) {
  .bt .en .vil { max-height: 17.5dvh !important; }
  .bt__msg { margin-top: 16px !important; font-size: .8rem !important; line-height: 1.3 !important; }
}
@media (max-width: 699px) and (max-height: 680px) { .bt .en .vil { max-height: 15dvh !important; } }
@media (max-width: 699px) {
  .bt__foes { padding-bottom: 60px !important; }
  .bt__msg { max-height: 54px; overflow: hidden; }
}
@media (max-width: 699px) and (max-height: 700px) {
  .bt__enemies .en .vil { max-width: clamp(60px, 13dvh, 120px) !important; }
  .bt__enemies .en:only-child .vil { max-width: clamp(90px, 19dvh, 150px) !important; }
}

/* ============================================================ v31 · סבב 7 של הראל (25.10.2026) */
/* טבלה: 10 הראשונים במבט אחד, שם באנגלית מיושר לימין */
.lb__name bdi { text-align: right; }
@media (max-width: 699px) {
  .board .phead p { display: none; }
  .board__me { padding: 6px 10px !important; min-height: 0 !important; }
  .board__me .medal { width: 44px !important; }
  .lbw--page { padding: 6px !important; }
  .lbd { gap: 3px !important; }
  .lbd li { grid-template-columns: 22px 46px 1fr auto !important; padding: 3px 8px !important; gap: 6px !important; }
  .lbd img, .lbd li > i { width: 46px !important; height: 46px !important; border-radius: 11px !important; }
  .lb__name bdi { font-size: .84rem; } .lb__name small { font-size: .64rem; }
  .lb__s { font-size: .82rem; }
  .board__more .hmode2 { padding: 6px 10px !important; min-height: 0 !important; }
}
/* טיימר היומית במסך הקרבות: לא יוצא מהמסגרת */
.mode3 .dtime--mode { font-size: .64rem !important; padding: 2px 6px !important; gap: 3px !important; max-width: 100%; flex-wrap: wrap; }
.mode3 .dtime--mode .dic { width: 11px; height: 11px; }
/* גלריית גיבורים */
.hgal__f { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 8px; }
.hgal__f .chipbtn { padding: 3px 8px; min-height: 0; font-size: .74rem; gap: 3px; } .hgal__f .chipbtn .dic { width: 13px; height: 13px; }
.hgal__f .chipbtn.is-on { background: var(--gold); color: var(--ink); }
.hgal { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; max-height: 58vh; overflow-y: auto; padding: 2px; }
.hg { all: unset; box-sizing: border-box; position: relative; display: grid; gap: 2px; justify-items: center; padding: 3px; border-radius: 10px; border: 2.5px solid var(--fam, var(--ink)); background: rgba(10, 11, 34, .05); cursor: pointer; }
.hg img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: 50% 10%; border-radius: 7px; display: block; }
.hg b { font: 800 .6rem/1.1 var(--f-brand); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hg .tier { position: absolute; top: 5px; left: 5px; font-size: .52rem; padding: 1px 4px; }
.hg.is-locked { cursor: default; border-style: dashed; border-color: rgba(10, 11, 34, .25); }
.hg.is-locked i { display: grid; place-items: center; width: 100%; aspect-ratio: 2 / 3; border-radius: 7px; background: rgba(10, 11, 34, .12); font: 900 1.6rem var(--f-brand); font-style: normal; color: rgba(10, 11, 34, .35); }
.hg.is-locked b { opacity: .5; }

.board__day { display: none; }
@media (max-width: 699px) {
  .board .phead h1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .board__day { display: inline-flex; padding: 3px 10px !important; min-height: 0 !important; font: 800 .72rem var(--f-brand) !important; gap: 4px; }
  .board__day .art { width: 20px; height: 20px; }
  .board__me, .board__more { display: none !important; }
  .lbd li { padding: 2px 8px !important; }
  .lbd img, .lbd li > i { width: 42px !important; height: 42px !important; border-radius: 10px !important; }
}

/* הראל: כל הכוחות של הקלף מופיעים (עד 3 שורות), גם ביד וגם בגלריות */
.fc .acts > .act:nth-child(2), .fc .acts > .act:nth-child(3) { display: flex !important; }
.fc .acts:has(> .act:nth-child(3)) > .act { font-size: .56rem !important; padding-block: 0 !important; min-height: 0 !important; line-height: 1.05 !important; }
.fc .acts:has(> .act:nth-child(3)) > .act b { font-size: .74rem !important; }
.fc .acts > .act--more { display: flex !important; font-size: .52rem !important; padding: 0 4px !important; min-height: 0 !important; }
.fc .acts:has(> .act:nth-child(3)) { gap: 1px !important; }
.endt small { white-space: nowrap; }

/* ============================================================ v32 · הבוס הקהילתי (25.10.2026) */
.raid { display: grid; gap: 10px; width: min(560px, 100%); margin: 0 auto; text-align: center; }
.raid .phead { text-align: center; } .raid .phead h1 { color: var(--vc, var(--gold)); }
.raid__boss { display: grid; justify-items: center; gap: 6px; }
.raid__boss .vil { width: min(46vw, 210px); height: auto; aspect-ratio: 480 / 643; filter: drop-shadow(0 0 30px var(--vc)); }
.raid__boss q { font-style: italic; opacity: .85; font-size: .9rem; }
.raid__bar { position: relative; height: 30px; border-radius: 999px; border: 3px solid var(--ink); background: #2a1430; overflow: hidden; box-shadow: 3px 4px 0 var(--ink); }
.raid__bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #ff4a5c, #ff9a3c); transition: width 1s; }
.raid__bar b { position: relative; z-index: 1; display: grid; place-items: center; height: 100%; font: 900 .95rem var(--f-brand); color: #fff; text-shadow: 1px 1px 0 var(--ink); }
.raid__bar.is-dead { background: #1f5a33; }
.raid__left, .raid__me { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; font-weight: 700; }
.raid__left .dic, .raid__me .dic { width: 16px; height: 16px; } .raid__me b { color: var(--gold); font-size: 1.1rem; }
.raid__go { justify-self: center; }
.raid__how { margin: 0; font-size: .82rem; opacity: .8; }
.raid .lbw { background: var(--paper); color: var(--paper-ink); border: 2.5px solid var(--ink); border-radius: 16px; padding: 8px; text-align: start; }
.raid__lbh { margin: 0 0 6px; font: 900 1rem var(--f-brand); text-align: center; }
.mode3--raid { border-color: #ff4a5c !important; }

/* הראל: טיימר היומית בכרטיס - תג קטן ליד הכותרת, לא יוצא מהכרטיס */
.mode3 b .dtime--mode { display: inline-flex !important; width: auto !important; margin: 0 6px 0 0 !important; vertical-align: middle; font-size: .62rem !important; padding: 1px 6px !important; }
.mode3 b .dtime--mode small { display: none !important; }

/* קרב רפאים */
.pprof__g { margin: 4px 0 0; font-size: .78rem; opacity: .75; text-align: center; }

/* ============================================================ משחק עם חבר (25.10.2026) */
.lmodes { display: grid; gap: 8px; margin: 6px 0 12px; }
.lmodes .mode3 { min-height: 0; }
.ljoin { display: flex; gap: 8px; align-items: center; border-top: 2px dashed rgba(10, 11, 34, .15); padding-top: 12px; }
.ljoin label { flex: 1; display: flex; align-items: center; gap: 6px; border: 2.5px solid var(--ink); border-radius: 12px; padding: 4px 10px; background: #fff; }
.ljoin input { all: unset; flex: 1; min-width: 0; font: 800 1.1rem/1.4 var(--f-brand); letter-spacing: .2em; direction: ltr; text-transform: uppercase; }
.lcode { font: 900 2.2rem/1 var(--f-brand); letter-spacing: .25em; text-align: center; margin: 6px 0 10px; padding: 10px; border: 3px dashed var(--ink); border-radius: 14px; background: rgba(245, 200, 66, .18); }
.lwho { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-top: 12px; text-align: center; }
.lwho__p { display: grid; justify-items: center; gap: 3px; }
.lwho__p img, .lwho__p .medal, .lwho__q { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; border: 3px solid var(--ink); }
.lwho__q { display: grid; place-items: center; font: 900 1.6rem var(--f-brand); font-style: normal; background: rgba(10, 11, 34, .08); }
.lwho__p.is-wait .lwho__q { animation: lwait 1.4s ease-in-out infinite; }
@keyframes lwait { 50% { transform: scale(1.08); opacity: .6; } }
.lwho__p b { font-size: .9rem; } .lwho__p small { font-size: .72rem; opacity: .7; }
.lwho__vs { font: 900 1.4rem var(--f-brand); }
.lscore { text-align: center; margin: 4px 0; font-size: .9rem; } .lscore b { font-size: 1.2rem; margin: 0 6px; }

/* הבוס הקהילתי: גלילה בטלפון + טיימר חי (25.10.2026) */
.raid__left { display: grid !important; justify-items: center; gap: 4px; }
.raid__left small { display: flex; align-items: center; gap: 5px; font-size: .78rem; opacity: .85; }
.rcd { display: flex; gap: 6px; direction: rtl; }
.rcd__u { display: grid; justify-items: center; min-width: 52px; padding: 5px 4px 3px; border-radius: 12px; background: rgba(10, 11, 34, .55); border: 2.5px solid var(--ink); box-shadow: 2px 3px 0 var(--ink); }
.rcd__u b { font: 900 1.35rem/1 var(--f-brand); color: var(--gold-hi, #ffd75a); font-variant-numeric: tabular-nums; }
.rcd__u small { font-size: .62rem; opacity: .8; }
.raid__share { justify-self: center; }
@media (max-width: 699px), (max-height: 500px) {
  .amain > section.raid { display: grid; overflow-y: auto; overscroll-behavior: contain; align-content: start; padding-bottom: 18px; -webkit-overflow-scrolling: touch; }
  .raid .lbd { max-height: none; }
  .raid__boss .vil { width: min(40vw, 170px); }
}
.raid__lbh { color: var(--paper-ink, #1a1442) !important; }

/* XP בכותרת: פס התקדמות לדרגה הבאה + "+XP" שעולה (דניאל 25.10) */
.pill--xp { position: relative; padding-bottom: 7px !important; }
.pill__xp { position: absolute; inset: auto 8px 3px 8px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.pill__xp i { display: block; height: 100%; background: var(--gold, #f5c842); transition: width .8s ease; }
.pill--xp.is-up { animation: pillUp .7s ease; }
@keyframes pillUp { 40% { transform: scale(1.18); box-shadow: 0 0 0 3px var(--gold, #f5c842); } }
.pill__gain { position: absolute; top: 100%; inset-inline-start: 50%; translate: 50% 0; white-space: nowrap; font: 900 .78rem var(--f-brand); font-style: normal; color: var(--gold, #f5c842); text-shadow: 1px 1px 0 #000; animation: pillGain 1.8s ease forwards; pointer-events: none; z-index: 5; }
@keyframes pillGain { 0% { opacity: 0; transform: translateY(4px); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(26px); } }

/* ============================================================ ניהול החפיסה v3 (25.10.2026) */
.fc__in { opacity: 0; transition: opacity .2s; pointer-events: none; align-content: center; gap: 2px; }
.fc__in b { font: 900 .7rem var(--f-brand); color: #fff; background: var(--green, #2fbf71); border: 2px solid var(--ink); border-radius: 999px; padding: 1px 8px; }
.fc.is-indeck .fc__in { opacity: 1; }
.fc__rm { position: absolute; top: 4px; inset-inline-start: 4px; z-index: 4; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #ff4a5c; color: #fff; border: 2.5px solid var(--ink); box-shadow: 1px 2px 0 var(--ink); cursor: pointer; }
.fc__rm .dic { width: 14px; height: 14px; }
.fc__rm:hover { transform: scale(1.12); }
.fc--slot .tier { display: none; }
.dtray { display: none; }
.dfly { position: fixed; z-index: 9999; object-fit: cover; object-position: 50% 12%; border: 2.5px solid var(--ink); box-shadow: 0 10px 24px rgba(0, 0, 0, .45); pointer-events: none; will-change: transform; }
.is-land { opacity: 0; }
.is-pop { animation: dpop .42s cubic-bezier(.3,1.6,.5,1); }
@keyframes dpop { 0% { transform: scale(.7); } 60% { transform: scale(1.1); } 100% { transform: scale(1); } }
.is-no { animation: dno .4s ease; }
@keyframes dno { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (max-width: 699px), (max-height: 500px) {
  .deck.is-coll .dtray { display: flex; align-items: center; gap: 8px; flex: none; padding: 6px 8px; margin-bottom: 6px; border-radius: 14px; background: rgba(10, 11, 34, .6); border: 2.5px solid var(--ink); box-shadow: 2px 3px 0 var(--ink); }
  .dtray__t { display: grid; justify-items: center; flex: none; min-width: 52px; }
  .dtray__t b { font: 900 1.05rem var(--f-brand); color: var(--gold, #f5c842); }
  .dtray__t small { font-size: .56rem; opacity: .8; white-space: nowrap; }
  .dtray__s { flex: 1; display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-start; }
  .dtray__c { all: unset; box-sizing: border-box; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--fam, var(--ink)); background: rgba(255, 255, 255, .08); overflow: hidden; cursor: pointer; }
  .dtray__c img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; }
  .dtray__c.is-empty { border: 2px dashed rgba(206, 214, 255, .4); }
  .dtray__s.is-full .dtray__c { box-shadow: 0 0 0 1.5px var(--green, #2fbf71); }
  .fc__rm { width: 24px; height: 24px; top: 3px; } .fc__rm .dic { width: 12px; height: 12px; }
  .seg--deck [data-dcount] { font-size: .8em; opacity: .85; }
}

/* ============================================================ שיתוף v2 (25.10.2026 ערב) */
.bt__me { position: relative; }
.mate { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 8px; align-items: center; margin-top: 6px; padding: 5px 8px; border-radius: 14px; background: rgba(10, 11, 34, .55); border: 2.5px solid var(--ink); box-shadow: 2px 3px 0 var(--ink); width: 100%; }
.mate__art { flex: none; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; border: 3px solid var(--fam, var(--gold)); }
.mate__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; display: block; }
.mate__info { display: grid; gap: 1px; min-width: 0; flex: 1; text-align: start; }
.mate__info > b { font: 900 .86rem var(--f-brand); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mate__info small { font-size: .66rem; opacity: .8; }
.mate__hp { display: flex; align-items: center; gap: 4px; } .mate__hp .hp { flex: 1; height: 7px; }
.mate__hp .blk { font-size: .7rem; display: inline-flex; align-items: center; gap: 2px; } .mate__hp .blk .dic { width: 12px; height: 12px; }
.mate__st { display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 800; color: var(--muted); }
.mate__st .dic { width: 13px; height: 13px; }
.mate.is-ready .mate__st { color: #5fd38d; }
.mate.is-down { opacity: .5; filter: grayscale(1); }
.mate.is-target { box-shadow: 0 0 0 3px #5fd38d, 2px 3px 0 var(--ink); animation: mateGlow 1s ease-in-out infinite; }
@keyframes mateGlow { 50% { box-shadow: 0 0 0 5px rgba(95, 211, 141, .6), 2px 3px 0 var(--ink); } }
.mate.is-hit { animation: dno .45s ease; }
.mate__dots { display: inline-flex; gap: 2px; } .mate__dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: mdot 1s infinite; }
.mate__dots i:nth-child(2) { animation-delay: .15s; } .mate__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes mdot { 50% { opacity: .2; } }
.int--tgt { display: inline-flex !important; align-items: center; gap: 3px; background: #2a1430 !important; color: #fff !important; }
.int--tgt img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; border: 1.5px solid #fff; }
.int--tgt b { font-size: .62rem; }
.int--tgt.is-me { background: #c0392b !important; }
.ltimer { position: absolute; top: 0; inset-inline: 0; z-index: 30; height: 18px; background: rgba(10, 11, 34, .75); border-bottom: 2px solid var(--ink); overflow: hidden; }
.ltimer i { position: absolute; inset-block: 0; inset-inline-start: 0; background: linear-gradient(90deg, #5fd38d, #f5c842); transition: width .5s linear; }
.ltimer b { position: relative; display: grid; place-items: center; height: 100%; font: 900 .7rem var(--f-brand); color: #fff; text-shadow: 1px 1px 0 #000; }
.ltimer.is-low i { background: linear-gradient(90deg, #ff4a5c, #ff9a3c); }
.lcon { margin: 8px 0; } .lcon h3 { margin: 0 0 6px; font: 900 1rem var(--f-brand); text-align: center; }
.lcon__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lcon__p { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; border: 2.5px solid var(--ink); background: rgba(10, 11, 34, .06); }
.lcon__p img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; border: 2.5px solid var(--ink); }
.lcon__p.is-top { background: rgba(245, 200, 66, .35); }
.lcon__crown { position: absolute; top: -12px; } .lcon__crown .dic { width: 26px; height: 26px; color: var(--gold); filter: drop-shadow(1px 1px 0 var(--ink)); }
.lcon__p b { font: 900 .9rem var(--f-brand); } .lcon__p small { font-size: .72rem; }
.vzoom { all: unset; cursor: zoom-in; display: block; }
.vbig { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; background: rgba(5, 4, 20, .92); cursor: zoom-out; animation: vbigIn .2s ease; padding: 14px; }
.vbig img { max-width: 100%; max-height: 100%; border-radius: 18px; border: 4px solid var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.vbig__x { position: absolute; top: max(12px, env(safe-area-inset-top)); inset-inline-start: 12px; all: unset; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); border: 3px solid var(--ink); }
.vbig.is-out { opacity: 0; transition: opacity .2s; }
@keyframes vbigIn { from { opacity: 0; transform: scale(.96); } }
.ltimer { height: 7px !important; border-bottom-width: 1.5px !important; }
.ltimer b { display: none !important; }

/* ============================================================ הערות הראל, סבב 8 (25.10.2026 ערב) */
/* עמוד קרבות: הכפתורים בגובה הטקסט, והעמוד נגלל אם צריך */
@media (max-width: 699px), (max-height: 500px) {
  .runintro { overflow-y: auto; overscroll-behavior: contain; }
  .runintro .modes3 { flex: none !important; grid-auto-rows: max-content; }
  .runintro .mode3 { height: auto !important; grid-template-rows: auto auto; padding: 9px 12px !important; }
  .runintro .mode3 span { display: block; overflow: visible; white-space: normal; }
}
/* בוס קהילתי בקרב */
.en__raid { font-size: .62rem; opacity: .85; display: block; }
/* טבלת הגיבורים: 10 שורות נכנסות במסך בלי גלילה */
@media (max-width: 699px) {
  .board .lbd li { padding: 2px 8px !important; min-height: 0 !important; grid-template-columns: 22px 40px 1fr auto !important; }
  .board .lbd img, .board .lbd li > i { width: 40px !important; height: 40px !important; }
  .board .lbd { gap: 3px !important; max-height: none !important; }
  .board .lb__name bdi { font-size: .8rem; } .board .lb__s { font-size: .76rem; }
}
@media (max-width: 699px) and (max-height: 700px) {
  .board .lbd img, .board .lbd li > i { width: 34px !important; height: 34px !important; }
  .board .lb__name small { display: none; }
}
/* פרופיל: האוסף לפי משפחות בלי גלילה */
@media (max-width: 699px), (max-height: 500px) {
  .prof--v2 .pfam { padding: 6px 8px !important; }
  .prof--v2 .pfam__grid { overflow: visible !important; grid-auto-rows: minmax(0, 1fr) !important; gap: 4px !important; }
  .prof--v2 .pfam__grid > * { min-height: 0 !important; padding-block: 2px !important; font-size: .74rem; }
  .prof--v2 .pfam__grid .dic { width: 14px; height: 14px; }
}
/* כפתור התקנה בפס העליון (רק בבית, רק כשאפשר) */
.atop__inst { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: var(--gold); color: var(--ink); border: 2px solid var(--ink); font: 900 .78rem var(--f-brand); box-shadow: 2px 2px 0 var(--ink); animation: instPulse 2.4s ease-in-out infinite; }
.atop__inst .dic { width: 15px; height: 15px; }
@keyframes instPulse { 50% { transform: scale(1.06); } }

/* הקלפים של השחקן השני עפים על המסך (25.10.2026) */
.foefly { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.fc--foefly { box-shadow: 0 0 0 4px var(--fam), 0 0 40px 10px color-mix(in oklab, var(--fam) 60%, transparent), 8px 10px 0 #0a0b22 !important; }
.foehit { position: fixed; z-index: 81; width: 30px; height: 30px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, #fff 0%, var(--fam) 45%, transparent 70%); pointer-events: none; animation: foehit .55s ease-out forwards; }
.foehit.is-buff { background: radial-gradient(circle, #fff 0%, #5fd38d 45%, transparent 70%); }
@keyframes foehit { from { transform: scale(.4); opacity: 1; } to { transform: scale(7); opacity: 0; } }

/* ============================================================ מד כוח-על (25.10.2026) */
.me__art { position: relative; }
.me__sup { position: absolute; inset: -9px; pointer-events: none; z-index: 2; }
.me__sup svg { display: block; width: 100%; height: 100%; overflow: visible; }
.me__sup circle { fill: none; stroke: rgba(255, 255, 255, .2); stroke-width: 6; stroke-linecap: round; transition: stroke .3s; }
.me__sup circle.on { stroke: var(--gold, #f5c842); animation: supSeg .7s ease-out; }
@keyframes supSeg { 40% { stroke-width: 11; stroke: #fff2a8; } }
.me__sup[hidden] { display: none; }
.me.is-super { cursor: pointer; }
.me.is-super .me__sup svg { animation: supSpin 3.2s linear infinite; }
.me.is-super .me__sup circle.on { stroke: #fff2a8; }
.me.is-super .medal { box-shadow: 0 0 0 3px #f5c842, 0 0 26px 8px rgba(245, 200, 66, .75); animation: supPulse 1.6s ease-in-out infinite; }
@keyframes supSpin { to { transform: rotate(360deg); } }
@keyframes supPulse { 50% { transform: scale(1.07); } }
.me__suplab { display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; font-weight: 800; color: var(--muted); }
.me__suplab .dic { width: 12px; height: 12px; color: var(--gold, #f5c842); }
.me__suplab b { color: var(--gold, #f5c842); }
.me__suplab.is-ready { color: #fff; animation: supPulse 1.6s ease-in-out infinite; } .me__suplab[hidden] { display: none; } .me__suplab.is-ready small { opacity: .8; }

/* ============================================================ חלון קלף בלי גלילה (25.10.2026) */
/* הקלף בצד, ליד השם והעלות; כל השאר מתחת. בטלפון הכל צפוף יותר כדי שייכנס במסך אחד */
.cdet { grid-template-columns: minmax(0, 240px) 1fr; grid-template-areas: "card head" "card txt"; column-gap: 18px; row-gap: 10px; }
.cdet__card { grid-area: card; } .cdet__head { grid-area: head; display: grid; gap: 8px; align-content: start; } .cdet__txt { grid-area: txt; }
@media (max-width: 600px) {
  .cdet { grid-template-columns: min(34vw, 145px, 21.5dvh) minmax(0, 1fr) !important; grid-template-areas: "card head" "txt txt"; justify-items: stretch !important; column-gap: 12px; row-gap: 10px; align-items: center; }
  .cdet__card { width: 100% !important; }
  .cdet__card .fc { transform: rotate(-1.5deg) scale(.98); }
  .cdet__head { gap: 6px; }
  .cdet h2 { font-size: 1.25rem; overflow-wrap: anywhere; }
  .cdet__fam { font-size: .74rem; padding: 3px 8px; } .cdet__fam .dic { width: 14px; height: 14px; }
  .cdet__pw { font-size: .86rem; line-height: 1.3; }
  .cdet__cost { font-size: .86rem; gap: 6px; } .cdet__cost .cgem { transform: scale(.85); }
  .cdet__txt { gap: 7px; }
  .cdet__kw { gap: 5px; } .cdet__kw li { padding: 6px 9px; } .cdet__kw b { font-size: .86rem; } .cdet__kw span { font-size: .82rem; line-height: 1.3; }
  .cdet__cap, .cdet__sig { padding: 6px 10px; font-size: .84rem; margin: 0; } .cdet__sig b { font-size: .9rem; }
  .cdet__next { font-size: .8rem; line-height: 1.35; }
  .cdet__q { font-size: .84rem; line-height: 1.35; }
  .adlg--card .adlg__box { padding-top: 12px; }
  .adlg--card .merge { margin: 0; } .adlg--card .cfm__row { margin-top: 8px; }
}
@media (max-width: 600px) and (max-height: 700px) { .cdet__next { display: none; } .cdet__pw { display: none; } }

/* ============================================================ בועת הדמות למעלה בקרב (25.10.2026) */
/* מתחת לכפתורים העליונים, בכל הרוחב, בלי לחתוך: הציטוט מתאזן בין השורות ולא נשארת מילה לבד */
.cast { top: var(--ct, 56px) !important; bottom: auto !important; left: 10px !important; right: 10px !important; translate: none !important; width: auto !important; max-width: 560px !important; margin-inline: auto !important;
  grid-template-columns: 36px minmax(0, 1fr) !important; align-items: center !important; gap: 10px !important; padding: 7px 14px 8px !important; border-radius: 16px !important; }
.cast img { width: 36px !important; height: 36px !important; }
.cast__txt { display: grid !important; gap: 1px !important; justify-items: start; }
.cast__txt b { font-size: .9rem !important; line-height: 1.15 !important; white-space: nowrap; }
.cast__txt q { display: block !important; -webkit-line-clamp: unset !important; overflow: visible !important; font-size: var(--qfs, 13.5px) !important; line-height: 1.3 !important; text-wrap: balance; }
.cast__sig { font-size: .72rem !important; }
.cdet__q { text-wrap: balance; }

/* ============================================================ כפתור הבית: תמיד ברור (25.10.2026) */
/* למעלה: כפתור אמיתי עם בית ומילה, לא קישור טקסט. בקרב: בית + "יציאה" במקום X */
.atop__back { gap: 6px; min-height: 40px; padding: 0 14px 0 12px; border-radius: var(--r-pill, 999px); border: 2.5px solid var(--gold, #f5c842); background: rgba(245, 200, 66, .14); color: var(--gold-hi, #ffe08a) !important; font: 900 1rem var(--f-brand); box-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.atop__back:hover, .atop__back:focus-visible { background: rgba(245, 200, 66, .28); }
.atop__back:active { transform: translateY(2px); box-shadow: none; }
.atop__home { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.atop__homet { display: inline !important; }
.bt__leave { width: 48px !important; height: 50px !important; border-radius: 14px !important; display: grid !important; place-items: center; align-content: center; gap: 1px; background: rgba(245, 200, 66, .16) !important; border: 2.5px solid var(--gold, #f5c842) !important; color: var(--gold-hi, #ffe08a); }
.bt__leave .dic { width: 20px !important; height: 20px !important; } .bt__leave .dic path, .bt__leave .dic * { stroke: var(--gold-hi, #ffe08a) !important; }
.bt__leave small { font: 900 .64rem/1 var(--f-brand); letter-spacing: .02em; }
@media (max-width: 400px) {
  .atop__back { flex-direction: column; justify-content: center; gap: 0; min-height: 44px; width: 48px; padding: 3px 0; border-radius: 14px; font-size: .64rem; line-height: 1; }
  .atop__home { width: 19px; height: 19px; }
}

/* ============================================================ פס החיים (25.10.2026): עכשיו + מה יקרה, מערכת אחת */
.hpb { position: relative; display: block; width: 100%; height: 14px; border-radius: 8px; background: #0d0b24; border: 2px solid var(--ink); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .6); overflow: hidden; isolation: isolate; }
.hpb--me { height: 18px; border-radius: 10px; }
.hpb__fill { position: absolute; inset-block: 0; inset-inline-start: 0; z-index: 1; background: linear-gradient(180deg, #ff8a8a, #e2364a 60%, #b3203a); transition: width .45s var(--ease); }
.hpb--me .hpb__fill { background: linear-gradient(180deg, #9bf5c0, #3ccf7c 60%, #22a35c); }
.hpb__seg { position: absolute; inset-block: 0; z-index: 2; }
/* אדום מפוספס: מה שהנבלים יורידו לך. הפסים זזים לאט - "עוד לא קרה" */
.hpb__seg--atk { background: repeating-linear-gradient(-45deg, #ff3b4f 0 5px, #6b0f1c 5px 10px); background-size: 14px 14px; box-shadow: inset 0 0 0 1.5px #ffd0d6; }
.hpb__seg--psn { background: repeating-linear-gradient(-45deg, #b46cff 0 5px, #3d1670 5px 10px); background-size: 14px 14px; box-shadow: inset 0 0 0 1.5px #e2c7ff; }
.hpb__seg--dmg { background: repeating-linear-gradient(-45deg, #ffffff 0 5px, #ffb3bd 5px 10px); background-size: 14px 14px; box-shadow: inset 0 0 0 1.5px #fff; }
.hpb__seg--heal { background: repeating-linear-gradient(-45deg, #d6ffe6 0 5px, #3ccf7c 5px 10px); background-size: 14px 14px; opacity: .9; }
.js-motion .hpb__seg { animation: hpb-march 1.1s linear infinite; }
@keyframes hpb-march { to { background-position: 14px 0; } }
.hpb__val { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; font: 900 .7rem/1 var(--f-brand); color: #fff; letter-spacing: .02em; text-shadow: 0 0 2px #000, 0 1px 0 #000, 1px 0 0 #000, -1px 0 0 #000, 0 -1px 0 #000; pointer-events: none; }
.hpb--me .hpb__val { font-size: .8rem; }
.hpb__ghost { position: absolute; inset-block: 0; z-index: 3; background: #fff; transition: width .6s cubic-bezier(.5, 0, .7, .4) .35s; }
.hpb.is-healed .hpb__fill { animation: hpb-heal .8s ease-out; }
@keyframes hpb-heal { 30% { filter: brightness(1.8) saturate(1.4); box-shadow: 0 0 12px 4px rgba(120, 255, 170, .8); } }
.hpb.is-lethal { border-color: #ff3b4f; box-shadow: 0 0 0 2px rgba(255, 59, 79, .45), 0 0 14px rgba(255, 59, 79, .6); }
.js-motion .hpb.is-lethal { animation: hpb-danger 1s ease-in-out infinite; }
@keyframes hpb-danger { 50% { box-shadow: 0 0 0 3px rgba(255, 59, 79, .7), 0 0 22px rgba(255, 59, 79, .9); } }
/* תגיות מתחת לפס - אותם צבעים ופסים כמו בפס */
.me__hpt, .en__hpt { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; font-size: .68rem; line-height: 1.2; color: var(--muted); min-height: 1.2em; }
.en__hpt { justify-content: center; min-height: 0; }
.en__hpt:empty { display: none; }
.hpt__lbl { font-weight: 800; color: var(--muted); }
.hpt { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px 1px 5px; border-radius: 99px; background: rgba(10, 11, 34, .7); border: 1px solid rgba(255, 255, 255, .14); color: #fff; font-weight: 800; white-space: nowrap; }
.hpt > i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.hpt b { font: 900 .78rem/1 var(--f-brand); }
.hpt s { opacity: .6; font-size: .9em; }
.hpt--atk > i { background: repeating-linear-gradient(-45deg, #ff3b4f 0 2px, #6b0f1c 2px 4px); } .hpt--atk b { color: #ff8a96; }
.hpt--psn > i { background: repeating-linear-gradient(-45deg, #b46cff 0 2px, #3d1670 2px 4px); } .hpt--psn b { color: #d2a8ff; }
.hpt--dmg > i { background: repeating-linear-gradient(-45deg, #fff 0 2px, #ffb3bd 2px 4px); } .hpt--dmg b { color: #fff; }
.hpt--heal > i { background: repeating-linear-gradient(-45deg, #d6ffe6 0 2px, #3ccf7c 2px 4px); } .hpt--heal b { color: #9bf5c0; }
.hpt--blk > i { background: #3d9bff; border-radius: 50% 50% 45% 45%; } .hpt--blk b { color: #9ccbff; }
.hpt--q > i { background: #9a93c9; }
.hpt--lethal { background: #e2364a; border-color: #fff; } .hpt--lethal > i { display: none; }
.js-motion .hpt--lethal { animation: hpb-danger 1s ease-in-out infinite; }
.en__hp { gap: 3px; }
.en__hp .hpb { flex: 1 1 auto; min-width: 0; }
/* כפתור ה-? ליד הפס שלך */
.me { position: relative; }
.me__hpq { all: unset; position: relative; z-index: 3; width: 18px; height: 18px; font-size: .72rem !important; flex: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer; font: 900 .8rem/1 var(--f-brand); color: var(--ink); background: var(--gold, #f5c842); border: 2px solid var(--ink); }
.me__hpq:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.me__hp { display: block; width: 100%; }
/* הסבר ומקרא */
.hph { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 9px; }
.hph li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; }
.hph b { display: block; font: 900 .95rem/1.2 var(--f-brand); } .hph small { display: block; font-size: .84rem; line-height: 1.35; color: #4a4470; }
.hph__sw { display: block; width: 34px; height: 14px; margin-top: 3px; border-radius: 6px; border: 2px solid var(--ink); }
.hph__sw--me { background: linear-gradient(180deg, #9bf5c0, #3ccf7c 60%, #22a35c); }
.hph__sw--atk { background: repeating-linear-gradient(-45deg, #ff3b4f 0 5px, #6b0f1c 5px 10px); }
.hph__sw--psn { background: repeating-linear-gradient(-45deg, #b46cff 0 5px, #3d1670 5px 10px); }
.hph__sw--blk { background: #3d9bff; }
.hph__sw--dmg { background: repeating-linear-gradient(-45deg, #ffffff 0 5px, #ffb3bd 5px 10px); }
.hph__sw--heal { background: repeating-linear-gradient(-45deg, #d6ffe6 0 5px, #3ccf7c 5px 10px); }
.hint-hp { display: block; opacity: .85; }
@media (prefers-reduced-motion: reduce) { .hpb__seg, .hpb.is-lethal, .hpt--lethal { animation: none !important; } }

@media (max-width: 699px) { .me__hpt { gap: 2px 4px; font-size: .62rem; } .hpt { padding: 1px 5px 1px 4px; } .hpt b { font-size: .72rem; } .hpt > i { width: 8px; height: 8px; } }
.me__nm { display: inline-flex; align-items: center; gap: 6px; min-width: 0; } .me__nm b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me__hpq { font-family: var(--f-text, system-ui, sans-serif) !important; }

/* בלי אדום בפס שלך: התגיות מתחת עם סמלים (25.10.2026) */
.hpt .dic { width: 11px; height: 11px; flex: none; }
.hpt--atk .dic * { stroke: #ff8a96; } .hpt--psn .dic * { stroke: #d2a8ff; } .hpt--blk .dic * { stroke: #9ccbff; } .hpt--heal .dic * { stroke: #9bf5c0; }
.me__hpt .hpt--atk { border-color: rgba(255, 74, 92, .55); }
.hph__ic { display: grid; place-items: center; width: 34px; height: 22px; border-radius: 6px; border: 2px solid var(--ink); background: #1b1740; }
.hph__ic .dic { width: 16px; height: 16px; } .hph__ic--atk .dic * { stroke: #ff8a96; } .hph__ic--psn .dic * { stroke: #d2a8ff; } .hph__ic--blk .dic * { stroke: #9ccbff; }
/* מכה בגיבור: החלק שירד נצבע אדום ומתכווץ מהפס הקודם לחדש (25.10.2026, דניאל) */
.hpb--me .hpb__ghost { background: linear-gradient(180deg, #ff6b7a, #e2283e); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); transition: width .75s cubic-bezier(.5, 0, .7, .4) .45s; }
.hpb__ghost { transition: width .7s cubic-bezier(.5, 0, .7, .4) .4s; }

/* ============================================================ סיבוב "שחקן חדש" (25.10.2026) */
.onb__why { display: flex; align-items: flex-start; gap: 8px; max-width: 520px; margin: 0 auto 6px; padding: 8px 12px; border-radius: 12px; background: rgba(245, 200, 66, .12); border: 1.5px solid rgba(245, 200, 66, .45); font-size: .84rem; line-height: 1.35; color: var(--text); text-align: start; }
.onb__why .dic { width: 18px; height: 18px; flex: none; margin-top: 1px; } .onb__why .dic * { stroke: var(--gold, #f5c842); }
.onb__why b { color: var(--gold-hi, #ffe08a); }
button.pill { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button.pill:focus-visible { outline: 3px solid var(--gold, #f5c842); outline-offset: 2px; }
.maphint { position: absolute; left: 50%; translate: -50% 0; z-index: 6; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; background: var(--gold, #f5c842); color: #3b2a00; font: 900 .9rem var(--f-brand); border: 2.5px solid var(--ink); box-shadow: 0 4px 0 var(--ink); white-space: nowrap; pointer-events: none; }
.maphint .dic { width: 16px; height: 16px; } .maphint .dic * { stroke: #3b2a00; }
.js-motion .maphint { animation: maphint 1.4s ease-in-out infinite; }
@keyframes maphint { 50% { transform: translateY(-6px); } }

/* שמירה בענן והעברה מדפדפן של אפליקציה (arena-cloud.js) */
.cloud__dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--dmg); box-shadow: 0 0 0 2px var(--ink); }
.cloud__g { display: grid; gap: 8px; justify-items: center; min-height: 44px; margin: 10px 0; }
.cloud__fine { margin: 6px 0 0 !important; font-size: .84rem; line-height: 1.45; color: #4a4470; text-align: center; }
.cloud__fine a { color: var(--ink); font-weight: 800; text-decoration: underline; }
.cloud__hint { margin: 8px 0 !important; padding: 8px 12px; border: 2px solid var(--ink); border-radius: 10px; background: #fff3c4; color: var(--ink); font-weight: 700; line-height: 1.45; }
.cloud__link { width: 100%; box-sizing: border-box; padding: 9px 10px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink); font: 700 .8rem/1.3 ui-monospace, Consolas, monospace; }
.cloud__link:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.cloud__bak { display: grid; gap: 6px; margin-top: 12px; }
.cloud__bak > b { font-size: .9rem; }
.cloud__bak ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cloud__bak li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; }
.cloud__bak li span { display: grid; min-width: 0; } .cloud__bak small { color: #4a4470; }
.ccho { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 4px; }
.ccho__o { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 10px; border: 3px solid var(--ink); border-radius: 14px; background: #fff; color: var(--ink); text-align: start; }
.ccho__o:hover { background: #fff3c4; } .ccho__o:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.ccho__t { font: 900 1rem var(--f-brand); }
.ccho__o ul { display: grid; gap: 2px; flex: 1; margin: 0; padding: 0; list-style: none; font-size: .86rem; line-height: 1.35; }
.ccho__go { display: block; padding: 6px 4px; border-radius: 999px; background: var(--gold); border: 2px solid var(--ink); font-weight: 900; font-size: .84rem; text-align: center; }
@media (max-width: 359px) { .ccho { grid-template-columns: 1fr; } }
.onb__cloud { align-self: center; flex: none; }
.adlg--cloud .pdanger { color: #a3122a; border-color: #a3122a; } .adlg--cloud .pdanger:hover { background: rgba(163, 18, 42, .1); }
.adlg--cloud .setl__danger b { color: #a3122a; }

/* ============================================================
   UX audit 7.11.2026 (research/v50/ux-audit-2026-11-07/REPORT.md)
   תיקונים רוחביים: יעדי מגע, קריאוּת בטלפון, בית במחשב נמוך, גרפיקה מ-Flow, עקביות
   ============================================================ */

/* 1. יעדי מגע של 44px בסרגל העליון בלי להגדיל את הציור (הסרגל בטלפון צפוף): שטח לחיצה שקוף מסביב */
.atop__set, .atop__how, .atop .pill, .atop__menu { position: relative; }
.atop__set::after, .atop__how::after, .atop__menu::after { content: ""; position: absolute; inset: -4px -3px; }
.atop .pill::after { content: ""; position: absolute; inset: -9px -3px; }

/* 2. קריאוּת בטלפון: מינימום 12px לתוויות שחוזרות בכל מסך (כלל מערכת העיצוב) */
.atab span { font-size: max(12px, .78rem); }
.atop .pill--cards b small { font-size: 12px; }
@media (max-width: 699px) { .atop__back .atop__backt { font-size: 12px !important; } }

/* 3. שדה השם בפתיחה: פוקוס שרואים (היה רק שינוי צבע של קו דק) ושדה שממלא את כל הגובה */
.onb__name2 { height: 48px; }
.onb__name2 input { align-self: stretch; height: 100%; }
.onb__name2:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }

/* 4. הבית במחשב: שתי עמודות. במסך מחשב נמוך (1280x720) הכפתור הראשי נחתך בתחתית */
@media (min-width: 1000px) {
  .home.home--v2 { display: grid !important; max-width: 1080px; min-height: calc(100dvh - 210px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto auto auto auto auto minmax(0, 1fr); grid-template-areas: "cap ." "cap logo" "cap story" "cap cta" "cap lock" "cap sub" "cap ." !important; column-gap: 56px !important; row-gap: 14px !important; align-items: center; }
  .home--v2 .home__cta { margin-top: 10px; }
  .home--v2 .hlogo { grid-area: logo; } .home--v2 .home__story { grid-area: story; } .home--v2 .home__cap { grid-area: cap; align-self: center; }
  .home--v2 .home__cta { grid-area: cta; } .home--v2 .home__lock { grid-area: lock; } .home--v2 .home__sub { grid-area: sub; }
  .home--v2 .medal--home { width: min(30vw, 50dvh, 400px); margin: 6% 6% 10%; }
}

/* 5. חנות: שקיות מ-Flow, מספר הקלפים במטבע זהב, מחיר בשורה אחת, סיכויים קריאים */
.pack__img { display: block; width: 100%; height: auto; filter: drop-shadow(3px 4px 0 var(--ink)); }
.pack__art b { bottom: -6px !important; display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 4px; box-sizing: border-box; border-radius: 99px; background: var(--gold); border: 2.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); font-size: 1rem !important; }
.pack .btn { white-space: nowrap; }
.odds { font-size: max(12px, .75rem); }
.tear { aspect-ratio: 369 / 520 !important; }
.tear img { width: 100%; height: 100%; display: block; object-fit: contain; filter: drop-shadow(4px 5px 0 var(--ink)); }

/* 6. גב קלף אחד לכל האפליקציה (Flow): חבילת פתיחה, חבילות, החלפה. הזוהר של נדיר/אגדי נשמר */
.pull__back { background: #2a1a66 url(../assets/arena/hub/card-back.webp) center / cover no-repeat !important; }
.pull__back .dic { display: none; }

/* 7. חפיסה: "בחפיסה" כתג קטן למעלה, לא כיסוי ירוק על הפנים של החבר */
.fc__in { inset: 6px auto auto 50% !important; translate: -50% 0; display: inline-flex !important; align-items: center; gap: 3px; padding: 2px 8px 2px 6px; border-radius: 99px; background: var(--heal, #5fd38d) !important; color: var(--ink); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); font: 900 .78rem/1.3 var(--f-brand); white-space: nowrap; }
.fc__in .dic, .coll .fc__in .dic { width: 15px !important; height: 15px !important; filter: none; }
.fc.is-indeck .fc__art img { filter: saturate(.92); }

/* 8. מסך הקרבות במחשב: 3 עמודות מאוזנות (היה 4 ואז 2, עם חור) */
@media (min-width: 760px) { .modes3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }

/* 9. קרב במחשב: הנבל הוא מרכז המסך (היה קטן מאוד במסך רחב), והיומן בגובה התוכן שלו */
@media (min-width: 1100px) {
  .en .vil { width: clamp(96px, 17dvh, 210px); }
  .en.is-boss .vil { width: clamp(120px, 22dvh, 260px); }
  .bt__logp { align-self: start; max-height: 100%; }
}

/* 10. חלון הצלילים: הגופן והפקדים של המשחק במקום ברירת המחדל של הדפדפן */
.gsfx-pop { font-family: var(--f-text) !important; }
.gsfx-pop input[type="range"] { accent-color: var(--gold-lo, #c4921b); }
.gsfx-pop select { font: 700 .9rem var(--f-text); padding: 4px 8px; border: 2px solid var(--ink); border-radius: 10px; background: #fffaf0; color: var(--ink); }

/* ===================================================================== סבב 8 (7.11.2026): הביקורת של דניאל על ששת מסכי הזירה */
/* 0. "בית" למעלה = הקובייה של כל המשחקים (לא עוד בית, ככה הוא לא מתחרה בלשונית "זירה" למטה) */
.atop__portal { width: 26px !important; height: 26px !important; object-fit: contain; filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, .5)); }
@media (max-width: 400px) { .atop__portal { width: 24px !important; height: 24px !important; } }

/* 1. בית הזירה: החלפת גיבור במילים, שורה משנית של יומית + המשך המסע */
.hswap { all: unset; box-sizing: border-box; cursor: pointer; position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 0 14px; margin-top: 6px; border-radius: 999px; background: rgba(14, 10, 38, .72); border: 1.5px solid rgba(255, 224, 138, .5); color: var(--gold-hi); font: 800 .84rem/1 var(--f-brand); transition: transform var(--t-tap, 120ms) var(--ease, ease), border-color var(--t-state, 220ms); }
.hswap::after { content: ""; position: absolute; inset: -5px -2px; }
.hswap .dic { width: 17px; height: 17px; stroke: currentColor; }
.hswap:hover { border-color: var(--gold); } .hswap:active { transform: scale(.96); }
.hswap:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.hswap--sm { min-height: 30px; padding: 0 10px; margin-top: 2px; font-size: 12px; gap: 4px; }
.hswap--sm .dic { width: 14px; height: 14px; }
.home__sub.is-empty { display: none !important; }
.home--v2 .home__sub .hmode2 { padding-inline: 8px; gap: 8px; }
.home--v2 .home__sub .hmode2 small { display: block !important; font-size: 12px; }

/* 2. קרבות: שלוש קבוצות עם כותרת, זוגות בשתי עמודות, מד חיים לבוס הקהילתי */
.runintro--v3 .mgrp { display: flex; align-items: center; gap: 8px; margin: 10px 2px 6px; font: 900 .82rem var(--f-brand); color: var(--gold-hi); letter-spacing: .02em; }
.runintro--v3 .mgrp::after { content: ""; flex: 1; height: 1.5px; background: linear-gradient(90deg, rgba(255, 224, 138, .35), transparent); }
.runintro--v3 .modes3 { gap: 8px !important; }
.runintro--v3 .modes3--pair { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.runintro--v3 .modes3--one { grid-template-columns: 1fr !important; }
.runintro--v3 .modes3--pair .mode3 { grid-template-columns: 1fr !important; grid-template-areas: "a" "b" "s" !important; justify-items: start; align-content: start; row-gap: 4px !important; }
.runintro--v3 .mode3--cont { border-color: rgba(158, 230, 201, .7); }
.runintro--v3 .mode3--cont span { color: #c6f3df !important; }
.mraid { grid-area: r; position: relative; display: block; width: 100%; height: 20px; margin-top: 6px; border-radius: 999px; background: rgba(10, 11, 34, .75); border: 1.5px solid rgba(255, 90, 110, .65); overflow: hidden; }
.mraid > i { position: absolute; inset-block: 0; inset-inline-start: 0; display: block; background: linear-gradient(90deg, #ff9a3d, #ff4a5c); transition: width .9s var(--ease, ease); }
.mraid small { position: relative; z-index: 1; display: block; text-align: center; font: 800 12px/17px var(--f-brand); color: #fff; text-shadow: 0 1px 2px #000, 0 0 4px #000; white-space: nowrap; }
.mraid.is-dead { border-color: #3ddc84; } .mraid.is-dead > i { background: #3ddc84; width: 100% !important; }
.runintro--v3 .mode3--raid { grid-template-areas: "a b" "a s" "a r" !important; }
@media (min-width: 760px) {
  .runintro--v3 .modes3--one { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .runintro--v3 .mode3--raid { grid-template-areas: "a" "b" "s" "r" !important; }
}

/* 3. החפיסה: 3 בשורה, בלי X קבוע (הקשה = תפריט), בלי כפילות של 10/10 בטלפון */
@media (max-width: 699px) {
  .deck--v2 .slots--v2:not(.is-wide), .deck--v2 .coll--v2 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 9px !important; }
  .mix__n { display: none !important; }
  .deck--v2 .fc__cost { width: 24px; height: 24px; font-size: .85rem; top: -5px; inset-inline-end: -5px; border-width: 2px; }
}
.smenu__row--3 { grid-template-columns: 1fr 1fr; }
.smenu__row--3 .btn:first-child { grid-column: 1 / -1; }

/* 4. חנות: חבילת האוצר רחבה ומודגשת למעלה, הבינונית והקטנה מתחתיה */
.packs--v2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; margin-top: 14px; align-items: stretch !important; }
.packs--v2 .pack { position: relative; align-content: start; }
.pack__info { display: grid; gap: 6px; justify-items: center; width: 100%; min-width: 0; }
.packs--v2 .pack--best { grid-column: 1 / -1; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); align-items: center; column-gap: 12px; overflow: visible; border-color: #c4921b; background: linear-gradient(160deg, #fff6d2, var(--paper) 60%); box-shadow: 0 0 0 3px var(--gold), 5px 6px 0 var(--ink), 0 0 28px rgba(245, 200, 66, .5); }
.pack--best .pack__info { justify-items: start; text-align: start; }
.pack--best .pack__art { width: 100% !important; max-width: 150px; justify-self: center; }
.pack--best h3 { font-size: 1.3rem !important; }
.pack--best .btn { width: 100%; }
.pack__tag { position: absolute; z-index: 3; top: -13px; inset-inline-end: 14px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 11px; border-radius: 999px; background: #ff5a3c; color: #fff; border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); font: 900 12.5px/1.3 var(--f-brand); white-space: nowrap; }
.pack__tag .dic { width: 14px; height: 14px; }
.pack__why { margin: 0; display: inline-flex; align-items: center; gap: 4px; font: 800 12.5px var(--f-brand); color: #8a5a00; }
.pack__why .dic { width: 15px; height: 15px; }
@media (max-width: 699px) {
  .packs--v2 .pack:not(.pack--best) .pack__art { width: 86px !important; }
  .packs--v2 .pack { padding: 12px 10px !important; }
}

/* 5. טבלה: מתג של שני מצבים, פודיום, והשורה שלך בתחתית */
.seg--board { position: relative !important; top: auto !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; margin: 0 !important; flex: none; }
.board--v3 .lbd li.is-top:nth-child(1) { background: linear-gradient(90deg, rgba(245, 200, 66, .38), rgba(245, 200, 66, .1)); border-color: rgba(196, 146, 27, .75); }
.board--v3 .lbd li.is-top:nth-child(2) { background: linear-gradient(90deg, rgba(170, 182, 204, .42), rgba(170, 182, 204, .1)); border-color: rgba(120, 132, 156, .7); }
.board--v3 .lbd li.is-top:nth-child(3) { background: linear-gradient(90deg, rgba(214, 140, 70, .36), rgba(214, 140, 70, .08)); border-color: rgba(168, 100, 40, .7); }
.board--v3 .lbd li.is-top:nth-child(2) .lb__n { background: #d6dbe6; } .board--v3 .lbd li.is-top:nth-child(3) .lb__n { background: #e8a26a; }
.lbw--page:has(.bme) { display: flex; flex-direction: column; }
.lbw--page:has(.bme) .lbd { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.bme { position: sticky; bottom: 0; z-index: 2; flex: none; display: grid; grid-template-columns: 30px 40px minmax(0, 1fr) auto; grid-template-areas: "n m t s" "c c c c"; align-items: center; gap: 2px 8px; margin-top: 8px; padding: 7px 10px; border-radius: 14px; background: #1b3f8b; border: 2px solid var(--gold); color: #fff; box-shadow: 0 3px 0 var(--ink); }
.bme__n { grid-area: n; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--ink); border: 2px solid var(--ink); font: 900 .9rem/1 var(--f-brand); }
.bme__m { grid-area: m; display: grid; place-items: center; } .bme .medal { width: 38px !important; margin: 0 !important; }
.bme .medal__fam, .bme .medal__rib { display: none; }
.bme__t { grid-area: t; display: grid; min-width: 0; } .bme__t b { font: 900 1rem var(--f-brand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .bme__t small { font-size: 12px; color: #c9d6ff; }
.bme__s { grid-area: s; display: grid; justify-items: end; font: 900 .95rem/1.15 var(--f-brand); color: var(--gold-hi); } .bme__s small { font: 700 12px var(--f-text); color: #c9d6ff; }
.bme__c { grid-area: c; margin: 3px 0 0; padding-top: 4px; border-top: 1px solid rgba(255, 224, 138, .25); font: 800 12.5px/1.3 var(--f-brand); color: var(--gold-hi); text-align: center; }

/* 6. פרופיל: הגדרות בפינה, החלפת גיבור במילים, XP בתוך הפס, הישגים ממורכזים, משפחה ראשית רחבה, ענן כחיווי */
.pid { position: relative; }
.pid__gear { all: unset; box-sizing: border-box; cursor: pointer; position: absolute; z-index: 2; top: 8px; inset-inline-end: 8px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .08); border: 1.5px solid rgba(255, 224, 138, .45); transition: transform var(--t-tap, 120ms); }
.pid__gear::after { content: ""; position: absolute; inset: -4px; }
.pid__gear .dic { width: 20px; height: 20px; } .pid__gear:active { transform: rotate(30deg) scale(.95); }
.pid__gear:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.pid__side { display: grid; justify-items: center; gap: 2px; }
.pid__me { padding-inline-end: 36px; }
.pid__xp { display: block !important; }
.pid__xp .xpbar { position: relative; height: 18px !important; border-width: 2px !important; border-radius: 999px; }
.pid__xp .xpbar > span { position: absolute; inset: 0; display: grid; place-items: center; font: 900 12px/1 var(--f-brand) !important; color: #fff !important; text-shadow: 0 1px 2px #000, 0 0 3px #000; }
.prof--v2 .pt { display: flex !important; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 6px; row-gap: 2px; text-align: center; }
.prof--v2 .pt small { flex-basis: 100%; text-align: center; }
.fmc--main { grid-column: 1 / -1; }
.fmc--main b { font-size: .9rem; }
.prof--v2 .prof__end--v3 { grid-template-columns: repeat(3, minmax(0, 1fr)) auto !important; }
.prof--v2 .prof__end--v3 .chipbtn { min-width: 0; padding-inline: 4px; }
.pcloud { margin: 0; display: flex; align-items: center; justify-content: center; min-width: 0; }
.pcloud__b { all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border-radius: 999px; border: 1.5px solid rgba(255, 224, 138, .45); color: var(--gold-hi); font: 800 12.5px var(--f-brand); }
.pcloud__b::after { content: ""; position: absolute; inset: -6px -2px; }
.pcloud__b .dic { width: 16px; height: 16px; }
.pcloud__b { white-space: nowrap; }
@media (max-width: 400px) { .pcloud__b { padding: 0 8px; gap: 4px; } }
.pcloud__b.is-on { border-color: transparent; color: #9ff0c4; }
.pcloud__b.is-on::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 6px #3ddc84; }
.pcloud__b:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.home--v2 .home__sub:not(.is-one) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.pid__gear .dic, .pid__gear .dic * { stroke: var(--gold-hi); }
.mix > .mix__c.mix__n { display: none !important; }
@media (min-width: 700px) { .mix > .mix__c.mix__n { display: grid !important; } }
@media (max-width: 759px) {
  .runintro--v3 .modes3--pair .mode3 { grid-template-columns: 40px minmax(0, 1fr) !important; grid-template-areas: "a b" "s s" !important; column-gap: 8px !important; align-items: center; padding: 10px !important; }
  .runintro--v3 .modes3--pair .mode3 .art { width: 40px !important; height: 40px !important; }
  .runintro--v3 .modes3--pair .mode3 b { font-size: 1rem !important; line-height: 1.15; }
  .runintro--v3 .modes3--pair .mode3 span { font-size: 12px !important; line-height: 1.35; }
  .runintro--v3 .mgrp { margin: 6px 2px 4px; }
}

/* סבב 8, מחשב: שלוש הקבוצות של הקרבות זו לצד זו, החנות בשלוש עמודות (האוצר ראשון ומודגש), והשורה שלך בטבלה תמיד בתמונה */
@media (min-width: 1000px) and (min-height: 501px) {
  .runintro--v3 { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 18px; align-content: start; }
  .runintro--v3 > .phead { grid-column: 1 / -1; }
  .runintro--v3 > .mgrp { grid-row: 2; }
  .runintro--v3 > .modes3 { grid-row: 3; grid-template-columns: 1fr !important; grid-auto-rows: 1fr; }
  .runintro--v3 .mode3--raid { grid-template-areas: "a" "b" "s" "r" !important; }
}
@media (min-width: 900px) {
  .packs--v2 { grid-template-columns: 1.25fr 1fr 1fr !important; }
  .packs--v2 .pack--best { grid-column: auto; grid-template-columns: 1fr; text-align: center; }
  .pack--best .pack__info { justify-items: center; text-align: center; }
}
@media (min-width: 700px) and (min-height: 501px) {
  .board--v3 .lbw--page:has(.bme) { max-height: max(300px, calc(100dvh - 350px)); }
}
/* טלפון נמוך (360x740): הקרבות והפרופיל נכנסים בגובה בלי לדחוס */
@media (max-width: 699px) and (max-height: 780px) {
  .runintro--v3 .phead .kick { display: none; }
  .runintro--v3 .mgrp { margin: 2px 2px 3px; }
  .runintro--v3 .mode3 { padding: 8px 10px !important; }
  .runintro--v3 .mode3 > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .runintro--v3 .modes3--one .mode3 > span { -webkit-line-clamp: 1; }
  .runintro--v3 .mode3--main > span { -webkit-line-clamp: 3; }
  .prof--v2 .medal--prof { width: 74px !important; margin: 10px 10px 12px !important; }
  .hswap--sm { min-height: 26px; }
  .prof--v2 .pach h3 { display: none; }
  .prof--v2 .pt { padding-block: 5px !important; }
}


/* ===================================================================== סבב 9 (7.11.2026): תפריטים חיים ונושמים
   כל תנועה עם תפקיד: אווירה (אבק זהב, רקע שנושם, זרקור), היררכיה (הגיבור והכפתור הראשי), המשכיות (כניסה מדורגת), משוב (מטבעות).
   רק transform/opacity, רק תחת .js-motion. נכסים: hub/rays.webp, hub/glint.webp, hub/dust.webp (מ-Flow, עובדו לשקיפות) */
@keyframes a9rise { from { opacity: 0; translate: 0 12px; } }
@keyframes a9spin { to { rotate: 360deg; } }
@keyframes a9twinkle { 0%, 100% { opacity: 0; scale: .2; rotate: 0deg; } 16% { opacity: 1; scale: 1; } 34% { opacity: 0; scale: .35; rotate: 70deg; } }
@keyframes a9mfloat { 50% { translate: 0 -6px; } }
@keyframes a9sway { from { rotate: -5deg; } to { rotate: 5deg; } }
@keyframes a9breathe { 50% { opacity: .72; } }
@keyframes a9kb { from { transform: scale(1.02); } to { transform: scale(1.08) translate3d(-1%, -1.2%, 0); } }
@keyframes a9dustdrift { from { transform: translate3d(0, 2%, 0) scale(1.04); opacity: .2; } to { transform: translate3d(-2%, -3%, 0) scale(1.1); opacity: .36; } }
@keyframes a9ctaglow { 50% { opacity: .95; scale: 1.03 1.12; } }
@keyframes a9pfloat { 50% { translate: 0 -6px; } }
@keyframes a9fillx { from { transform: scaleX(0); } }
@keyframes a9livedot { 50% { opacity: .25; } }

/* כניסה מדורגת: 380ms, 30ms בין פריט לפריט */
.js-motion .rise { animation: a9rise var(--t-enter, 380ms) cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i, 0) * 30ms + 30ms); }

/* רקע שנושם + אבק זהב שמרחף בשמיים, בכל התפריטים (לא בקרב ולא במפה) */
.js-motion .abg__art { animation: a9kb 50s ease-in-out infinite alternate; }
.arena[data-screen="battle"] .abg__art, .arena[data-screen="journey"] .abg__art { animation: none; }
.abg__dust { position: absolute; inset: -6% -4%; background: url(../assets/arena/hub/dust.webp?v=1) center top / cover no-repeat; opacity: .28; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 38%, transparent 78%); mask-image: linear-gradient(180deg, #000 0%, #000 38%, transparent 78%); }
.js-motion .abg__dust { animation: a9dustdrift 40s ease-in-out infinite alternate; }
.arena:is([data-screen="battle"], [data-screen="journey"], [data-screen="raid"], [data-screen="onboard"]) .abg__dust,
.arena[data-screen="run"]:not(:has(.runintro)) .abg__dust { display: none; }

/* בית: קרני אור מאחורי הגיבור, נצנוצים, ריחוף, זרקור שזז, ובכפתור הראשי זוהר שנושם */
.home__capbtn { position: relative; isolation: isolate; }
.home__rays { position: absolute; z-index: -1; left: 50%; top: 50%; width: 170%; aspect-ratio: 1; translate: -50% -50%; background: url(../assets/arena/hub/rays.webp?v=1) center / contain no-repeat; opacity: .4; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 100%); mask-image: radial-gradient(closest-side, #000 30%, transparent 100%); }
.js-motion .home__rays { animation: a9spin 80s linear infinite; }
.home__glints { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.home__glints i { position: absolute; width: 22px; aspect-ratio: 1; translate: -50% -50%; background: url(../assets/arena/hub/glint.webp?v=1) center / contain no-repeat; opacity: 0; }
.home__glints i:nth-child(1) { left: 4%; top: 24%; width: 18px; }
.home__glints i:nth-child(2) { left: 94%; top: 12%; width: 28px; animation-delay: 1.1s !important; }
.home__glints i:nth-child(3) { left: 102%; top: 58%; width: 16px; animation-delay: 2.3s !important; }
.home__glints i:nth-child(4) { left: -2%; top: 74%; width: 22px; animation-delay: .6s !important; }
.home__glints i:nth-child(5) { left: 28%; top: -4%; width: 14px; animation-delay: 1.7s !important; }
.home__glints i:nth-child(6) { left: 78%; top: 94%; width: 20px; animation-delay: 2.9s !important; }
.js-motion .home__glints i { animation: a9twinkle 3.6s ease-in-out infinite; }
.js-motion .home--v2 .home__capbtn > .medal { animation: a9mfloat 5.5s ease-in-out infinite; }
.js-motion .home__spot { animation: a9breathe 5.5s ease-in-out infinite; }
.js-motion .home__spot::before { transform-origin: 50% 0; animation: a9sway 11s ease-in-out infinite alternate; }
.home--v2 .home__cta { position: relative; isolation: isolate; }
.home--v2 .home__cta::before { content: ""; position: absolute; z-index: -1; inset: 6% 3%; border-radius: 24px; background: radial-gradient(closest-side, rgba(255, 214, 90, .6), rgba(255, 214, 90, 0)); opacity: .35; pointer-events: none; }
.js-motion .home--v2 .home__cta::before { animation: a9ctaglow 2.8s ease-in-out infinite; }
/* פחות "קוד": הברכה על נייר, והיומית/המסע על הלוחית הכהה עם מסגרת הזהב (אותה לוחית של התפריט הראשי) */
.hcap { background: #fff4d4 url(../assets/arena/ui/paper.webp?v=1) center / 240px; }
.home--v2 .home__sub .hmode2 { border-style: solid; border-color: transparent; border-width: 11px 14px; border-image: url(../assets/arena/hub/btn-dark.webp?v=1) 30% 13% fill / 14px 26px stretch;
  background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; padding: 2px 4px; min-height: 64px; filter: drop-shadow(2px 3px 0 rgba(10, 11, 34, .7)); }
.home--v2 .home__sub .hmode2:hover { border-color: transparent; }
.home--v2 .home__sub .hmode2 b { text-shadow: 1px 1px 0 var(--ink); }
.home--v2 .home__sub .hmode2 small { color: #cfd8ff; }

/* קרבות: נקודה חיה, ומד החיים של הבוס יורד בכניסה */
.mgrp__live { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #ff4a5c; box-shadow: 0 0 8px #ff4a5c; order: -1; }
.js-motion .mgrp__live { animation: a9livedot 1.6s ease-in-out infinite; }

/* חנות: החבילות מרחפות, ומאחורי חבילת האוצר קרני אור */
.js-motion .packs--v2 .pack__art { animation: a9pfloat 4.6s ease-in-out infinite; }
.js-motion .packs--v2 .pack:nth-child(2) .pack__art { animation-delay: -1.5s; }
.js-motion .packs--v2 .pack:nth-child(3) .pack__art { animation-delay: -3s; }
.pack--best .pack__art { isolation: isolate; }
.pack--best .pack__art::before { content: ""; position: absolute; z-index: -1; inset: -32%; background: url(../assets/arena/hub/rays.webp?v=1) center / contain no-repeat; opacity: .55; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 100%); mask-image: radial-gradient(closest-side, #000 35%, transparent 100%); }
.js-motion .pack--best .pack__art::before { animation: a9spin 50s linear infinite; }

/* פרופיל: הפסים מתמלאים בכניסה (מימין, כמו הקריאה) */
.js-motion .pfam__grid .fmc__bar > i, .js-motion .pid__xp .xpbar > i { transform-origin: 100% 50%; animation: a9fillx .8s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i, 0) * 35ms + 220ms); }

/* מטבעות: קפיצה קטנה כשהמספר משתנה */
.atop .pill.is-coin { animation: pillUp .7s ease; }


/* ===================================================================== סבב 10 (7.11.2026): ערכת הממשק מ-Flow
   דניאל יצר בפלואו, נוקה מהירוק ל-site/assets/arena/ui2. כל מה שנמתח ב-9-slice (border-image), כך שהפינות לא נמתחות.
   כפתור זהב = הפעולה הראשית, לוחית כהה = משנית, קפסולה = סרגל עליון, נייר = תוכן, לוחית כהה גדולה = כרטיס. */
/* הכותרת "זירת הגיבורים" */
.hlogo--img { transform: none !important; filter: drop-shadow(0 5px 8px rgba(5, 4, 20, .55)) !important; line-height: 0; }
.hlogo--img img { display: block; width: auto; height: auto; max-width: min(80vw, 340px); max-height: 18dvh; margin-inline: auto; }
@media (min-width: 900px) { .hlogo--img img { max-width: 380px; max-height: 24dvh; } }

/* כפתור הזהב (מעוגל, מבריק, עם שפה תחתונה שאפשר ללחוץ עליה) */
.btn.go, .endt.is-hot, .mode3--main, .arena .hbtn--gold {
  border-style: solid; border-color: transparent; border-width: 6px 16px 16px;
  border-image: url(../assets/arena/ui2/btn-gold.webp?v=2) 46% 11% fill / 30px 22px stretch;
  background: transparent; box-shadow: none; filter: drop-shadow(2px 4px 0 rgba(10, 11, 34, .55));
}
.btn.go:hover, .arena .hbtn--gold:hover { filter: drop-shadow(2px 5px 0 rgba(10, 11, 34, .55)) brightness(1.05); }
.btn.go:active, .arena .hbtn--gold:active, .mode3--main:active { transform: translateY(2px); filter: drop-shadow(1px 2px 0 rgba(10, 11, 34, .55)); }
.mode3--main { border-width: 8px 12px 14px; border-image-width: 34px 24px; }
.endt.is-hot { border-width: 4px 10px 9px; border-image-width: 22px 16px; }

/* לוחית כהה עם מסגרת זהב: משניים, כרטיסי הקרבות, תג המשפחה, החלפת גיבור */
.home--v2 .home__sub .hmode2, .runintro--v3 .mode3:not(.mode3--main), .arena .hbtn--dark, .home__tag, .hswap {
  border-style: solid; border-color: transparent; border-width: 6px 10px 8px;
  border-image: url(../assets/arena/ui2/btn-navy.webp?v=1) 42% 11% fill / 26px 16px stretch;
  background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; filter: drop-shadow(2px 3px 0 rgba(10, 11, 34, .6));
}
.home__tag, .hswap { border-width: 4px 10px 6px; border-image-width: 16px 12px; }
.runintro--v3 .mode3--raid { filter: drop-shadow(0 0 6px rgba(255, 74, 92, .7)) drop-shadow(2px 3px 0 rgba(10, 11, 34, .6)); }
.runintro--v3 .mode3--cont { filter: drop-shadow(0 0 5px rgba(158, 230, 201, .55)) drop-shadow(2px 3px 0 rgba(10, 11, 34, .6)); }

/* הסרגל העליון: קפסולות, כוכב וקלפים מ-Flow, כפתורים עגולים */
.atop .pill { border-style: solid; border-color: transparent; border-width: 3px 7px; padding: 3px 4px !important; gap: 3px !important; border-image: url(../assets/arena/ui2/pill-hud.webp?v=2) 49% 17% fill / 15px 16px stretch; background: transparent; }
.atop { gap: 6px !important; }
.pill__ic { width: 17px; height: 17px; object-fit: contain; flex: none; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .5)); }
.atop__set, .pid__gear { background: url(../assets/arena/ui2/btn-round.webp?v=1) center / contain no-repeat !important; border: 0 !important; box-shadow: none !important; }
@media (max-width: 899px) { .atop__how { background: url(../assets/arena/ui2/btn-round.webp?v=1) center / contain no-repeat !important; border: 0 !important; box-shadow: none !important; } }

/* פס הניווט התחתון (טלפון) והלשונית הפעילה */
@media (max-width: 899px) and (min-height: 501px) {
  .atabs { background: transparent; border-style: solid; border-color: transparent; border-width: 10px 8px 0; border-image: url(../assets/arena/ui2/navbar.webp?v=2) 54% 9% 12% fill / 30px 30px 7px stretch; box-shadow: 0 -8px 22px rgba(3, 4, 20, .55); }
  .atab.is-on { background: url(../assets/arena/ui2/tab-glow.webp?v=1) center / contain no-repeat; }
}

/* לשוניות (חבילות/קלפי היום, החפיסה/האוסף, כל הזמנים/היום): מסילה + לשונית זהב */
.seg { border-style: solid; border-color: transparent; border-width: 4px 6px; border-image: url(../assets/arena/ui2/track.webp?v=2) 49% 8% fill / 24px 27px stretch; background: transparent; box-shadow: none; border-radius: 0; }
.seg__b { border: solid transparent; border-width: 3px 8px 5px; }
.seg__b.is-on { border-image: url(../assets/arena/ui2/btn-gold.webp?v=2) 46% 11% fill / 18px 14px stretch; background: transparent; color: var(--ink); }

/* נייר: החבילות בחנות וטבלת הגיבורים */
.packs--v2 .pack, .board--v3 .lbw--page { border-style: solid; border-color: transparent; border-width: 10px; border-image: url(../assets/arena/ui2/panel-paper.webp?v=1) 7% 7% fill / 24px 17px stretch; background: transparent; box-shadow: none; border-radius: 0; }
.packs--v2 .pack--best { filter: drop-shadow(0 0 3px #f5c842) drop-shadow(0 0 14px rgba(245, 200, 66, .6)); }

/* כרטיס הגיבור בפרופיל: הלוחית הכהה הגדולה */
.pid { border-style: solid; border-color: transparent; border-width: 10px; border-image: url(../assets/arena/ui2/panel-navy.webp?v=1) 9% 7% fill / 26px 22px stretch; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }

/* הברכה על באנר נייר, שם הגיבור על סרט זהב */
.hcap { background: transparent !important; border-style: solid; border-color: transparent; border-width: 6px 46px 15px; border-image: url(../assets/arena/ui2/banner-paper.webp?v=1) 28% 19% fill / 16px 48px stretch; box-shadow: none !important; max-width: none; width: min(100%, 430px); box-sizing: border-box; padding: 2px 0 0; text-align: center; }
.medal__rib { background: transparent !important; border-radius: 0 !important; border-style: solid !important; border-color: transparent !important; border-width: .28em 1.6em .48em !important; border-image: url(../assets/arena/ui2/ribbon-gold.webp?v=2) 30% 17% 40% fill / .62em 1.75em .82em stretch !important; box-shadow: none !important; padding: 0 .2em !important; line-height: 1.15 !important; text-shadow: 0 1px 0 rgba(255, 245, 200, .7); }

/* ניצוצות אמיתיים ושמיים עם כוכבים שמנצנצים */
.home__glints i { background-image: url(../assets/arena/ui2/sparkle.webp?v=1); }
.abg__stars { position: absolute; inset: 0; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 42%, transparent 74%); mask-image: linear-gradient(180deg, #000 0%, #000 42%, transparent 74%); }
.abg__stars::before, .abg__stars::after { content: ""; position: absolute; inset: 0; background: url(../assets/arena/ui2/stars.webp?v=1) center top / cover no-repeat; opacity: .5; }
.abg__stars::after { transform: scaleX(-1) translateY(-4%); opacity: .25; }
@keyframes a10tw { from { opacity: .75; } to { opacity: .22; } }
@keyframes a10tw2 { from { opacity: .12; } to { opacity: .7; } }
.js-motion .abg__stars::before { animation: a10tw 4.6s ease-in-out infinite alternate; }
.js-motion .abg__stars::after { animation: a10tw2 4.6s ease-in-out infinite alternate; }
.arena:is([data-screen="battle"], [data-screen="journey"], [data-screen="raid"], [data-screen="onboard"]) .abg__stars,
.arena[data-screen="run"]:not(:has(.runintro)) .abg__stars { display: none; }

/* כפתורי "לפתוח" בחנות: אותו כפתור זהב */
.packs--v2 .pack .btn { border-style: solid; border-color: transparent; border-width: 4px 12px 10px; border-image: url(../assets/arena/ui2/btn-gold.webp?v=2) 46% 11% fill / 22px 18px stretch; background: transparent; box-shadow: none; filter: drop-shadow(1px 3px 0 rgba(10, 11, 34, .45)); }
.packs--v2 .pack .btn[disabled] { filter: grayscale(.7) brightness(.85); opacity: .75; }


/* ===================================================================== סבב 11 (7.11.2026): ארט דקו נואר בהיר + שכבות חיות
   רקעים, עננים, זרקור, מדליות, סגירה, מנעול ואייקונים, כולם מ-Flow (ui2). */
/* רקע הזירה: העיר מהגג עם הירח והזרקורים (טלפון), קו הרקיע הרחב (מחשב). בהיר יותר, וכהה רק בתחתית בשביל הכפתורים */
.abg { background-image: url(../assets/arena/ui2/bg-arena-wide.webp?v=1); background-position: center bottom; }
@media (max-width: 899px), (orientation: portrait) { .abg { background-image: url(../assets/arena/ui2/bg-arena-tall.webp?v=1); background-position: center top; } }
.abg::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(14, 10, 38, 0) 50%, rgba(14, 10, 38, .5) 100%); }
.abg__dots { opacity: .12; }
.arena[data-screen="battle"] .abg::after { display: none; }

/* עננים שעוברים לאט בשמיים (כל התפריטים) */
.abg__clouds { --ch: 20vh; position: absolute; top: 9%; left: 0; height: var(--ch); width: calc(var(--ch) * 3.6446 * 5); pointer-events: none; background: url(../assets/arena/ui2/clouds.webp?v=1) 0 0 / auto 100% repeat-x; opacity: .5; }
@keyframes a11drift { to { transform: translate3d(calc(var(--ch) * -3.6446), 0, 0); } }
.js-motion .abg__clouds { animation: a11drift 140s linear infinite; }
.arena:is([data-screen="battle"], [data-screen="journey"], [data-screen="raid"], [data-screen="onboard"]) .abg__clouds,
.arena[data-screen="run"]:not(:has(.runintro)) .abg__clouds { display: none; }
.abg__beam, .abg__beacon { display: none; position: absolute; pointer-events: none; }

/* הזרקור מעל הגיבור: אלומה אמיתית במקום הקונוס שצויר בקוד */
.home__spot::before { background: url(../assets/arena/ui2/spot.webp?v=1) center top / 100% 100% no-repeat !important; clip-path: none !important; opacity: .7; }

/* פרופיל: אייקוני ההישגים, מנעול */
.pt__img { width: 26px; height: 26px; object-fit: contain; flex: none; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .5)); }
.home__lockic { width: 18px; height: 23px; object-fit: contain; vertical-align: middle; margin-inline-end: 4px; }

/* טבלה: מדליות זהב/כסף/ארד לשלושת הראשונים */
.board--v3 .lbd li.is-top .lb__n { width: 26px; height: 37px; border-radius: 0; place-items: end center; padding-bottom: 6px; box-sizing: border-box; color: #3a2400; font-size: .78rem; background: url(../assets/arena/ui2/medal-gold.webp?v=1) center bottom / contain no-repeat !important; }
.board--v3 .lbd li.is-top:nth-child(2) .lb__n { background-image: url(../assets/arena/ui2/medal-silver.webp?v=1) !important; color: #23262e; }
.board--v3 .lbd li.is-top:nth-child(3) .lb__n { background-image: url(../assets/arena/ui2/medal-bronze.webp?v=1) !important; color: #2d1606; }

/* כפתור סגירה בחלונות, בועת התראה בלשוניות */
.adlg__x { background: url(../assets/arena/ui2/btn-close.webp?v=1) center / contain no-repeat !important; border: 0 !important; box-shadow: none !important; width: 40px; height: 40px; }
.adlg__x .dic { opacity: 0; }
.atab__dot { background: url(../assets/arena/ui2/badge-red.webp?v=1) center / 100% 100% no-repeat !important; border: 0 !important; box-shadow: none !important; }

/* על הרקעים הבהירים: כותרות קטנות עם קו דיו, כדי שיישארו קריאות */
.runintro--v3 .mgrp, .prof--v2 .pach h3, .prof--v2 .pfam h3, .phead .kick { text-shadow: 0 0 5px rgba(5, 4, 20, .95), 1px 1px 0 var(--ink), -1px -1px 0 var(--ink); }
.phead h1 { text-shadow: 0 0 10px rgba(5, 4, 20, .7), 2px 2px 0 var(--ink); }


/* ===================================================================== סבב 12 (7.11.2026): מסגרת, משפחות, אייקונים מ-Flow */
.dic--img { display: inline-block; width: 1.15em; height: 1.15em; object-fit: contain; vertical-align: -.22em; flex: none; stroke: none; }
/* מסגרת הזהב בארט דקו סביב הגיבור (החור הפנימי = 82.2% מהקוטר, לכן 11% מסביב) */
.medal::after { inset: -11.5% !important; background: url(../assets/arena/ui2/frame-ring.webp?v=1) center / contain no-repeat !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; filter: drop-shadow(0 0 10px rgba(255, 216, 74, .4)) drop-shadow(2px 3px 0 rgba(10, 11, 34, .75)); }
/* סימני המשפחות הם כבר עיגול עם מסגרת: המעטפת שמסביב שקופה */
.medal__fam, i:has(> .fam-ic) { background: none !important; border-color: transparent !important; box-shadow: none !important; }
.medal__fam { border: 0 !important; }
.medal__fam > .fam-ic, i > .fam-ic { width: 100% !important; height: 100% !important; vertical-align: top; }
/* כפתורים עגולים: רמקול וסימן שאלה */
.atop__ic { width: 24px; height: 24px; object-fit: contain; }
.atop__qimg { width: 16px !important; height: 22px !important; object-fit: contain; background: none !important; border: 0 !important; }
/* הלוגו גם בתפריט הראשי */
.hub__t.hlogo--img img { max-height: 15dvh; }


/* ===================================================================== סבב 13 (7.11.2026): מסך הקרב, קרוב לדוגמה של דניאל
   לוחית מתכת לכותרת, יציאה מתומנת, נבל במסגרת נייר עם תג מתכת, מסגרות פלדה לפסי החיים, שם גיבור גדול ונטוי,
   אנרגיה על פיצוץ קומיקס, כפתורים מ-Flow, ועיר כחולה יותר. רק גרפיקה מ-Flow (ui2, hub/burst). */
/* הכותרת על לוחית המתכת, שורת התור בתווית כהה מתחתיה */
.bt .bt__title b { border-style: solid !important; border-color: transparent !important; border-width: 6px 16px !important; border-radius: 0 !important; border-image: url(../assets/arena/ui2/plaque-steel.webp?v=1) 30% 9% fill / 14px 22px stretch !important; background: transparent !important; color: #fff !important; padding: 2px 6px !important; font-size: 1rem !important; text-shadow: 0 1px 0 #000, 0 0 4px rgba(0, 0, 0, .8); filter: drop-shadow(2px 3px 0 rgba(10, 11, 34, .7)); }
.bt .bt__title small { background: rgba(8, 7, 22, .9) !important; color: #e8ecff; border: 1px solid rgba(255, 224, 138, .35); }
/* יציאה: התג המתומן הצהוב */
.bt .bt__leave { background: url(../assets/arena/ui2/badge-oct.webp?v=1) center / contain no-repeat !important; border: 0 !important; box-shadow: none !important; width: 54px !important; height: 54px !important; color: var(--ink) !important; filter: drop-shadow(2px 3px 0 rgba(10, 11, 34, .6)); }
.bt .bt__leave .dic, .bt .bt__leave .dic * { stroke: var(--ink) !important; }
.bt .bt__leave small { color: var(--ink); font-size: .62rem; margin-top: -1px; }
/* מקרא וצליל: קפסולה וכפתור עגול מ-Flow */
.bt .bt__legend { border-style: solid !important; border-color: transparent !important; border-width: 3px 8px !important; border-image: url(../assets/arena/ui2/pill-hud.webp?v=2) 49% 17% fill / 20px 18px stretch !important; background: transparent !important; box-shadow: none !important; }
.bt .gsfx--bt .gsfx__main { background: url(../assets/arena/ui2/btn-round.webp?v=1) center / contain no-repeat !important; border: 0 !important; box-shadow: none !important; }
.bt .gsfx--bt .gsfx__main svg { filter: invert(1) sepia(1) saturate(4) hue-rotate(5deg) brightness(1.1); }

/* הנבל: מסגרת נייר קרם, ותג הכוונה על לוחית מתכת מעליו */
.bt .en .vil { border: 7px solid transparent !important; border-image: url(../assets/arena/ui2/panel-paper.webp?v=1) 7% 7% fill / 11px 9px stretch !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; overflow: visible !important; filter: drop-shadow(3px 5px 0 rgba(10, 11, 34, .7)); }
.bt .en .vil img { border-radius: 2px; box-shadow: inset 0 0 0 2px var(--ink); outline: 2px solid var(--ink); }
.bt .en__int .int { border-style: solid !important; border-color: transparent !important; border-width: 4px 12px !important; border-radius: 0 !important; border-image: url(../assets/arena/ui2/plaque-steel.webp?v=1) 30% 9% fill / 10px 15px stretch !important; background: transparent !important; box-shadow: none !important; color: #fff !important; text-shadow: 0 1px 0 #000; padding: 1px 3px !important; }
.bt .en__int .int b { color: #fff !important; }
.bt .en__n { font: 800 .82rem var(--f-brand) !important; margin-top: 2px; }

/* פסי חיים במסגרת פלדה */
.bt .hpb { height: 18px !important; border-style: solid !important; border-color: transparent !important; border-width: 3px 6px !important; border-image: url(../assets/arena/ui2/hp-frame.webp?v=1) 30% 9% fill / 5px 8px stretch !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; overflow: visible !important; }
.bt .hpb > .hpb__fill, .bt .hpb > .hpb__ghost { border-radius: 6px; }
.bt .hpb__val { font-size: .74rem !important; text-shadow: 0 1px 0 #000, 0 0 3px #000 !important; }

/* הגיבור: שם גדול ונטוי בסגנון קומיקס */
.bt .me__nm b { display: inline-block; font: 900 clamp(14px, calc((100cqw - 36px) / (var(--nl, 10) * .69)), 31px)/1 var(--f-brand) !important; color: #fff1c2 !important;   /* הגודל לפי רוחב המקום ואורך השם (0.67em לאות): גדול ככל האפשר, אף פעם לא נחתך */ -webkit-text-stroke: 1.2px var(--ink); text-shadow: 2px 3px 0 var(--ink), 0 0 10px rgba(255, 210, 90, .35); transform: skewX(-8deg); letter-spacing: .01em; padding-inline-end: 3px; }

/* אנרגיה על פיצוץ קומיקס, וסיום תור על הלוחית הכהה */
.bt .nrg { isolation: isolate; }
.bt .nrg::before { content: ""; position: absolute; z-index: -1; inset: -30%; background: url(../assets/arena/hub/burst.webp?v=1) center / contain no-repeat; pointer-events: none; }
.js-motion .bt .nrg::before { animation: a13burst 6s ease-in-out infinite; }
@keyframes a13burst { 50% { rotate: 8deg; scale: 1.05; } }
.bt .endt:not(.is-hot) { border-style: solid !important; border-color: transparent !important; border-width: 4px 10px 7px !important; border-radius: 0 !important; border-image: url(../assets/arena/ui2/btn-navy.webp?v=1) 42% 11% fill / 22px 14px stretch !important; background: transparent !important; box-shadow: none !important; filter: drop-shadow(2px 3px 0 rgba(10, 11, 34, .6)); }

/* היד: קשת קצת יותר עמוקה, כמו מניפה */
.bt .bt__hand > .fc:not(.is-sel):not(.is-drag) { transform: rotate(calc(var(--o) * 5.5deg)) translateY(calc(var(--o) * var(--o) * 4.5px)); }

/* העיר בקרב: כחולה ולילית יותר (שכבת גוון, בלי להחשיך) */
.arena[data-screen="battle"][data-zone] .abg__art::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(46, 70, 190, .5); mix-blend-mode: color; pointer-events: none; }
.arena[data-screen="battle"][data-zone] .abg__art::after { z-index: 2; }
.bt .me__nm { display: flex !important; width: 100%; container-type: inline-size; }

/* מכה על קלף של נבל: סיבוב תלת ממדי מהמכה, הבזק לבן, וחזרה עם קפיץ קצר (--hd = כיוון, --hs = עוצמה לפי הנזק) */
.bt .en { perspective: 650px; }
@keyframes a13punch {
  0% { transform: none; }
  13% { transform: rotateY(calc(var(--hd, 1) * 40deg * var(--hs, 1))) rotateX(calc(9deg * var(--hs, 1))) rotateZ(calc(var(--hd, 1) * -5deg)) scale(.93); filter: drop-shadow(3px 5px 0 rgba(10, 11, 34, .7)) brightness(1.9) saturate(.5); }
  36% { transform: rotateY(calc(var(--hd, 1) * -15deg * var(--hs, 1))) rotateX(-4deg) scale(1.03); filter: drop-shadow(3px 5px 0 rgba(10, 11, 34, .7)); }
  60% { transform: rotateY(calc(var(--hd, 1) * 6deg)); }
  82% { transform: rotateY(calc(var(--hd, 1) * -2deg)); }
  100% { transform: none; }
}
.js-motion .bt:not(.bt--won) .en:not(.is-ko):not(.is-ko-new) .vil.is-punch { transform-origin: 50% 62%; animation: a13punch .64s cubic-bezier(.2, .8, .3, 1) !important; }   /* גובר על הנשימה, לא על הנפילה */


/* ===================================================================== סבב 14 (8.11.2026): פסי חיים ותיבות הודעה מ-Flow (סבב 4 של דניאל)
   פס: מסגרת שחורה עם פנים כהה (hp-bar), מילוי מבריק עם נקודות הדפס שנשאר מעוגל בכל רוחב (9-slice רק לצדדים).
   הודעות: תיבת כיתוב של קומיקס (כהה בתור של הנבלים), טוסט בבועה, וכוונת צהובה כשבוחרים נבל. */
/* מסגרת הפס: 18px גובה, הקצוות העגולים לא נמתחים */
.hpb, .bt .hpb { height: 18px !important; border-style: solid !important; border-color: transparent !important; border-width: 3px 6px !important; border-image: url(../assets/arena/ui2/hp-bar.webp?v=1) 49% 6% fill / 9px 9px stretch !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; overflow: visible !important; }
/* המילוי: אדום לנבלים, ירוק לך. הצדדים בלבד ב-9-slice, כך שהקצה מעוגל גם כשנשארו מעט חיים */
.hpb__fill, .bt .hpb > .hpb__fill { box-sizing: border-box; border-radius: 0 !important; background: transparent !important; border-style: solid; border-color: transparent; border-width: 0 6px; border-image: url(../assets/arena/ui2/fill-red.webp?v=1) 0 6% fill / 0 6px stretch; }
.hpb--me .hpb__fill, .bt .hpb--me > .hpb__fill { border-image-source: url(../assets/arena/ui2/fill-green.webp?v=1); border-image-slice: 0 8% fill; }
/* הנזק של הקלף שבחרת: הפסים הלבנים של Flow, זזים לאט (לולאה של אריח שלם, בלי קפיצה) */
.hpb__seg--dmg { background: url(../assets/arena/ui2/hp-stripes.webp?v=1) 0 0 / 108px 100% repeat-x !important; box-shadow: none !important; border-radius: 4px; }
@keyframes a14march { to { background-position: 108px 0; } }
.js-motion .hpb__seg--dmg { animation: a14march 8.5s linear infinite !important; }

/* פסי XP והבוס הקהילתי: מילוי זהב / אדום */
.xpbar > i { background: url(../assets/arena/ui2/fill-gold.webp?v=1) center / 100% 100% no-repeat !important; }
.pid__xp .xpbar { border-style: solid !important; border-color: transparent !important; border-width: 3px 6px !important; border-image: url(../assets/arena/ui2/hp-bar.webp?v=1) 49% 6% fill / 9px 9px stretch !important; background: transparent !important; overflow: visible !important; }
.pid__xp .xpbar > i { box-sizing: border-box; background: transparent !important; border-style: solid; border-color: transparent; border-width: 0 6px; border-image: url(../assets/arena/ui2/fill-gold.webp?v=1) 0 12% fill / 0 6px stretch; }
.mraid > i, .raid__bar > i { background: url(../assets/arena/ui2/fill-red.webp?v=1) center / 100% 100% no-repeat !important; }

/* תיבת ההודעה בקרב: כיתוב של קומיקס. בתור של הנבלים: הגרסה הכהה */
.bt__msg { max-height: 70px !important; border-style: solid !important; border-color: transparent !important; border-width: 4px 11px 7px !important; border-radius: 0 !important; border-image: url(../assets/arena/ui2/caption.webp?v=1) 10% 5% 12% 5% fill / 10px 14px 14px stretch !important; background: transparent !important; box-shadow: none !important; color: var(--ink) !important; }
.bt__msg b { color: #b3203a !important; }
.bt__msg small, .bt__msg span:not(.dic) { color: #3b3550 !important; }
.arena.is-enemy .bt__msg { border-image-source: url(../assets/arena/ui2/caption-dark.webp?v=1) !important; color: #ffe9ec !important; }
.arena.is-enemy .bt__msg b { color: #ffd84a !important; }
.arena.is-enemy .bt__msg small, .arena.is-enemy .bt__msg span:not(.dic) { color: #ffcfd6 !important; }

/* טוסט: הבועה הלבנה עם הזוהר הצהוב */
.atoast { border-style: solid !important; border-color: transparent !important; border-width: 8px 16px 12px !important; border-radius: 0 !important; border-image: url(../assets/arena/ui2/toast.webp?v=1) 30% 8% fill / 16px 18px stretch !important; background: transparent !important; box-shadow: none !important; color: var(--ink) !important; }

/* בחירת נבל: כוונת צהובה במקום המסגרת המקווקוות */
.en.is-target, .en.is-delaypick { background: transparent !important; }
.en.is-target::before, .en.is-delaypick::before { inset: -10px -8px !important; border-style: solid !important; border-color: transparent !important; border-width: 22px !important; border-radius: 0 !important; border-image: url(../assets/arena/ui2/target.webp?v=1) 34% / 22px stretch !important; background: none !important; }   /* 9-slice: הפינות בגודל קבוע בכל גובה */

/* ---------- החנות נכנסת למסך בכל טלפון (13.11.2026). arena.js fitPacks() מוסיף את המחלקות לפי מדידה:
   tight = שלוש בשורה עם הסיכויים, lean = בלי הסיכויים, tiny = תמונות קטנות ---------- */
.pack__img { aspect-ratio: 369 / 520; }
.packs--v2.packs--tight { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; margin-top: 18px; }
.packs--v2.packs--tight .pack, .packs--v2.packs--tight .pack.pack--best { grid-column: auto !important; grid-template-columns: minmax(0, 1fr) !important; padding: 8px 5px !important; gap: 4px !important; align-content: start; min-width: 0; overflow: visible; }
.packs--tight .pack__info, .packs--tight .pack--best .pack__info { justify-items: center; text-align: center; gap: 3px; }
.packs--v2.packs--tight .pack .pack__art, .packs--v2.packs--tight .pack.pack--best .pack__art { width: 100% !important; max-width: 96px !important; justify-self: center; }
.packs--tight .pack h3, .packs--tight .pack--best h3 { font-size: .9rem !important; line-height: 1.1; white-space: normal; overflow-wrap: normal; word-break: keep-all; }
.packs--tight .pack__n { font-size: .7rem; overflow-wrap: normal; }
.packs--tight .odds { flex-direction: column; gap: 1px; font-size: .68rem !important; }
.packs--tight .odds .tier { font-size: .58rem; padding: 0 4px; }
.packs--tight .pack__why { display: none; }
.packs--tight .pack .btn { width: 100%; min-height: 40px; white-space: nowrap; justify-content: center; padding-inline: 2px; gap: 3px; font-size: .9rem; }
.packs--tight .pack__go { display: none; }
.packs--tight .pack__tag { top: -12px; inset-inline-start: auto; inset-inline-end: auto; left: 50%; right: auto; translate: -50% 0; font-size: 10.5px; padding: 2px 7px; }
.packs--tight .pack__tag .dic { width: 11px; height: 11px; }
.packs--tight ~ .note { display: none; }
.packs--lean .odds { display: none; }
.packs--v2.packs--tiny .pack .pack__art, .packs--v2.packs--tiny .pack.pack--best .pack__art { max-width: 60px !important; }
.packs--tiny .pack__n { display: none; }

/* ---------- מיזוגים בלשונית השדרוגים (17.11.2026) ---------- */
.mstrip { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 8px; padding: 8px 12px; border-radius: 14px; background: rgba(127, 240, 192, .16); border: 2px solid rgba(127, 240, 192, .55); color: #fff; font-family: var(--f-brand); }
.mstrip > .dic { flex: none; width: 22px; height: 22px; }
.mstrip span { display: grid; gap: 1px; min-width: 0; flex: 1; text-align: start; }
.mstrip b { font-size: .95rem; line-height: 1.2; } .mstrip small { font-size: .74rem; line-height: 1.25; opacity: .85; }
button.mstrip { cursor: pointer; min-height: 48px; background: linear-gradient(160deg, #2fd08a, #17a56a); border-color: var(--ink); color: #06210f; box-shadow: 3px 4px 0 var(--ink); transition: transform var(--dur-1, 90ms) ease-out; }
button.mstrip:active { transform: translateY(2px); box-shadow: 1px 2px 0 var(--ink); }
button.mstrip:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.mstrip__go { flex: none; font-style: normal; font-weight: 900; font-size: .82rem; padding: 4px 10px; border-radius: 99px; background: #fff; border: 2px solid var(--ink); }
.seg__b { position: relative; }
.seg__n { position: absolute; top: 2px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box; display: grid; place-items: center; border-radius: 99px; background: #2fd08a; color: #06210f; border: 2px solid var(--ink); font: 900 11px/1 var(--f-brand); font-style: normal; }
.mlist { display: grid; gap: 10px; } .mlist h2 { display: flex; align-items: center; gap: 8px; margin: 0; } .mlist h2 .dic { width: 24px; height: 24px; } .mlist > p { margin: 0; font-size: .9rem; }
.mlist__rows { display: grid; gap: 8px; max-height: 52vh; max-height: 52dvh; overflow-y: auto; overscroll-behavior: contain; padding: 2px; }
.mrow { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.mrow img { flex: none; width: 44px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; border: 2px solid var(--ink); }
.mrow__t { flex: 1; min-width: 0; display: grid; gap: 1px; } .mrow__t b { font: 900 .95rem var(--f-brand); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mrow__t small { font-size: .78rem; opacity: .85; }
.mrow .btn { flex: none; min-height: 40px; }
.shop__body p.mstrip { border-image: none; background-image: none; text-shadow: none; flex: none; }
.shop__body p.mstrip b, .shop__body p.mstrip small { white-space: normal; text-wrap: balance; }
.seg__n { top: -7px; inset-inline-end: -3px; z-index: 2; }
