:root {
  --bg: #0b1030; --bg2: #1a1450; --card: rgba(255, 255, 255, .08); --line: rgba(255, 255, 255, .18);
  --txt: #f4f6ff; --dim: #b9c0ea; --gold: #ffd34d; --ok: #3ddc97; --bad: #ff6b81; --pri: #6c8cff; --pri2: #a66cff;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Noto Sans Hebrew', 'Arial Hebrew', Arial, sans-serif; color: var(--txt);
  background: radial-gradient(ellipse at 20% 0%, #2a1c6e 0%, transparent 55%), radial-gradient(ellipse at 90% 100%, #0e3a6b 0%, transparent 50%), var(--bg);
  background-attachment: fixed; overflow-x: hidden; user-select: none; -webkit-user-select: none;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; touch-action: manipulation; }
input { font: inherit; }

/* רקע כוכבים */
.sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.sky i { position: absolute; inset: 0; background-repeat: repeat; animation: tw 4s ease-in-out infinite alternate; }
.sky i:nth-child(1) { background-image: radial-gradient(1.5px 1.5px at 20px 30px, #fff, transparent), radial-gradient(1px 1px at 120px 90px, #fff, transparent), radial-gradient(1.5px 1.5px at 200px 160px, #cfe0ff, transparent); background-size: 240px 220px; }
.sky i:nth-child(2) { background-image: radial-gradient(2px 2px at 70px 140px, #ffe9a8, transparent), radial-gradient(1px 1px at 260px 40px, #fff, transparent); background-size: 330px 290px; animation-delay: 1.3s; }
.sky i:nth-child(3) { background-image: radial-gradient(1px 1px at 40px 200px, #fff, transparent), radial-gradient(2px 2px at 300px 260px, #d8c8ff, transparent); background-size: 410px 370px; animation-delay: 2.4s; }
@keyframes tw { from { opacity: .35; } to { opacity: 1; } }

#app { position: relative; z-index: 1; min-height: 100%; max-width: 1100px; margin: 0 auto; padding: 14px 16px 40px; }
h1, h2, h3 { margin: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px; backdrop-filter: blur(6px); }
.btn { background: linear-gradient(135deg, var(--pri), var(--pri2)); border-radius: 18px; padding: 14px 26px; font-weight: 800; font-size: 20px; min-height: 56px; box-shadow: 0 5px 0 rgba(0, 0, 0, .3); transition: transform .08s; }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.btn.gold { background: linear-gradient(135deg, #ffb02e, #ff7a59); }
.btn.ghost { background: var(--card); border: 1px solid var(--line); box-shadow: none; font-weight: 600; font-size: 17px; padding: 10px 16px; min-height: 48px; }
.btn:disabled { opacity: .45; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sp { flex: 1; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.rk { width: 1em; height: 1em; display: inline-block; vertical-align: middle; }

/* פרופילים */
.hero { text-align: center; padding: 26px 0 10px; }
.hero .big { font-size: 84px; animation: float 3s ease-in-out infinite; display: inline-block; }
.hero h1 { font-size: 44px; font-weight: 800; background: linear-gradient(90deg, #ffd34d, #ff8ad4, #8ab4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--dim); font-size: 19px; margin: 6px 0 0; }
@keyframes float { 50% { transform: translateY(-12px) rotate(4deg); } }
.profiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 22px 0; }
.pf { background: var(--card); border: 2px solid var(--line); border-radius: 22px; padding: 16px 10px; text-align: center; font-size: 20px; font-weight: 800; }
.pf .av { font-size: 54px; display: block; }
.pf small { display: block; color: var(--gold); font-weight: 600; font-size: 15px; }
.pf.new { border-style: dashed; color: var(--dim); }
.avs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 14px 0; }
.avs button { font-size: 38px; width: 66px; height: 66px; border-radius: 18px; background: var(--card); border: 2px solid transparent; }
.avs button.on { border-color: var(--gold); background: rgba(255, 211, 77, .18); }
.name-in { width: 100%; max-width: 340px; font-size: 26px; text-align: center; padding: 12px; border-radius: 16px; border: 2px solid var(--line); background: rgba(0, 0, 0, .3); color: var(--txt); font-weight: 800; }
.center { text-align: center; }

/* מפה */
.top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; position: sticky; top: 0; z-index: 5; padding: 10px 14px; margin: -4px -4px 14px; border-radius: 20px; background: rgba(11, 16, 48, .85); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.top .who { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.top .who .rk { font-size: 34px; }
.chip { background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 18px; white-space: nowrap; }
.sector { margin: 6px 0 30px; }
.sector h2 { font-size: 24px; margin: 0 6px 4px; }
.sector .sub { color: var(--dim); margin: 0 6px 14px; font-size: 16px; }
.path { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-items: start; }
.node { background: none; padding: 0; text-align: center; position: relative; }
.node:nth-child(even) { margin-top: 34px; }
.node .pl { width: clamp(64px, 13vw, 104px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: clamp(28px, 6vw, 46px); margin: 0 auto 6px; box-shadow: inset -10px -10px 22px rgba(0, 0, 0, .45), 0 0 24px var(--glow, transparent); background: var(--pc, #6c8cff); transition: transform .15s; }
.node:not(.locked):active .pl { transform: scale(.93); }
.node.next .pl { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.09); box-shadow: inset -10px -10px 22px rgba(0, 0, 0, .45), 0 0 34px #fff; } }
.node.locked .pl { filter: grayscale(1) brightness(.5); }
.node .nm { font-weight: 800; font-size: clamp(12px, 2.3vw, 16px); line-height: 1.25; }
.node .st { font-size: clamp(13px, 2.6vw, 18px); letter-spacing: 1px; height: 22px; }
.node .st .off { opacity: .22; }
.node.boss .pl { border: 3px solid var(--gold); }

/* משחק */
.hud { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.x { width: 48px; height: 48px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 22px; flex: none; }
.track { flex: 1; height: 18px; background: rgba(0, 0, 0, .4); border-radius: 99px; position: relative; border: 1px solid var(--line); }
.track .fill { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 99px; background: linear-gradient(270deg, #ffd34d, #ff8ad4); transition: width .5s; }
.track .ship { position: absolute; top: 50%; font-size: 40px; transform: translate(50%, -50%) rotate(-90deg); transition: inset-inline-start .5s; line-height: 0; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .6)); }
.track .goal { position: absolute; inset-inline-end: -6px; top: 50%; transform: translateY(-50%); font-size: 30px; }
.timer.low { color: var(--bad); animation: pulse2 1s infinite; }
@keyframes pulse2 { 50% { opacity: .5; } }
.buddy { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; min-height: 58px; }
.buddy .b { font-size: 46px; animation: float 3s ease-in-out infinite; flex: none; }
.buddy .say { background: #fff; color: #1b1f4a; border-radius: 18px; padding: 9px 16px; font-weight: 600; font-size: 19px; position: relative; line-height: 1.55; }
.buddy .say::before { content: ''; position: absolute; inset-inline-start: -8px; top: 50%; margin-top: -8px; border: 8px solid transparent; border-inline-start: 0; border-inline-end-color: #fff; }
.buddy.ok .say { background: #d9ffec; } .buddy.bad .say { background: #ffe3e8; }
.buddy.ok .b { animation: hop .5s; }
@keyframes hop { 40% { transform: translateY(-18px) scale(1.15); } }

.read-grid { display: grid; gap: 14px; }
@media (min-width: 860px) { .read-grid { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.passage { background: #fdf9ec; color: #23264d; border-radius: 22px; padding: 16px 18px; max-height: 46vh; overflow: auto; -webkit-overflow-scrolling: touch; }
@media (min-width: 860px) { .passage { max-height: 72vh; } }
.passage h3 { text-align: center; font-size: 25px; margin-bottom: 8px; }
.passage ol { list-style: none; margin: 0; padding: 0; counter-reset: ln; }
.passage li { counter-increment: ln; display: flex; gap: 10px; font-size: 23px; line-height: 2.05; padding: 0 8px; border-radius: 10px; transition: background .3s; }
.passage li::before { content: counter(ln); color: #9a94b8; font-size: 15px; min-width: 16px; padding-top: 8px; font-weight: 600; }
.passage li.hint { background: #fff1b8; } .passage li.ev { background: #b9f5d5; }

.q { font-size: 25px; line-height: 1.9; font-weight: 600; margin-bottom: 14px; }
.q .series { display: block; font-size: 32px; font-weight: 800; margin-top: 6px; text-align: center; }
.eq { direction: ltr; unicode-bidi: isolate; display: flex; justify-content: center; align-items: center; gap: 14px; font-size: clamp(34px, 7vw, 54px); font-weight: 800; margin: 10px 0 20px; flex-wrap: wrap; }
.eq .blank { min-width: 1.9em; height: 1.45em; border-radius: 16px; border: 3px dashed var(--gold); display: inline-grid; place-items: center; color: var(--gold); padding: 0 8px; background: rgba(255, 211, 77, .08); }
.eq .blank.okk { border-style: solid; border-color: var(--ok); color: var(--ok); } .eq .blank.badd { border-color: var(--bad); color: var(--bad); }
.tri { color: #ff8ad4; font-size: .82em; }
.opts { display: grid; gap: 12px; }
.opts.two { grid-template-columns: 1fr 1fr; }
.opt { background: rgba(255, 255, 255, .1); border: 2px solid var(--line); border-radius: 18px; padding: 12px 16px; font-size: 22px; line-height: 1.7; font-weight: 600; text-align: start; display: flex; gap: 12px; align-items: center; min-height: 62px; transition: transform .08s, background .2s; }
.opt:active { transform: scale(.98); }
.opt .l { flex: none; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; font-weight: 800; font-size: 19px; }
.opt.num { font-size: 28px; font-weight: 800; }
.opt.right { background: rgba(61, 220, 151, .28); border-color: var(--ok); }
.opt.wrong { background: rgba(255, 107, 129, .2); border-color: var(--bad); opacity: .6; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 360px; margin: 0 auto; direction: ltr; }
.pad button { background: rgba(255, 255, 255, .12); border: 2px solid var(--line); border-radius: 18px; font-size: 30px; font-weight: 800; height: 64px; }
.pad button:active { background: rgba(255, 255, 255, .3); }
.pad .go { background: linear-gradient(135deg, #3ddc97, #1fa87a); border: 0; }
.why { margin-top: 14px; background: rgba(255, 211, 77, .14); border: 1px solid rgba(255, 211, 77, .5); border-radius: 16px; padding: 12px 16px; font-size: 21px; line-height: 1.8; }
.next { margin-top: 16px; width: 100%; }

/* מודאל ותוצאה */
.modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(5, 8, 30, .78); padding: 18px; }
.modal .card { max-width: 560px; width: 100%; background: #1c2260; text-align: center; max-height: 92vh; overflow: auto; }
.modal .ic { font-size: 70px; }
.modal h2 { font-size: 30px; margin: 4px 0 10px; }
.modal p { font-size: 22px; line-height: 1.85; margin: 0 0 18px; }
.stars { font-size: 64px; margin: 10px 0; }
.stars span { display: inline-block; opacity: .2; transform: scale(.6); }
.stars span.on { animation: pop .5s forwards; }
.stars span.on:nth-child(2) { animation-delay: .35s; } .stars span.on:nth-child(3) { animation-delay: .7s; }
@keyframes pop { 60% { transform: scale(1.35) rotate(15deg); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.sum { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 10px 0 20px; }

/* חנות והורים */
.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 12px 0 26px; }
.item { background: var(--card); border: 2px solid var(--line); border-radius: 20px; padding: 14px 8px; text-align: center; font-weight: 800; font-size: 17px; }
.item .pic { font-size: 56px; display: block; line-height: 1.2; }
.item.on { border-color: var(--gold); background: rgba(255, 211, 77, .14); }
.item small { display: block; color: var(--gold); font-size: 16px; }
.info { font-size: 18px; line-height: 1.8; user-select: text; -webkit-user-select: text; }
.info h3 { font-size: 21px; margin: 18px 0 4px; color: var(--gold); }
.info ul { margin: 4px 0; padding-inline-start: 22px; }
.bar { height: 14px; background: rgba(0, 0, 0, .4); border-radius: 99px; overflow: hidden; margin: 4px 0 12px; }
.bar b { display: block; height: 100%; background: linear-gradient(270deg, #3ddc97, #6c8cff); }

/* אפקטים */
.hud .track { margin-inline: 24px 10px; }
#fx { direction: ltr; position: fixed; inset: 0; pointer-events: none; z-index: 30; overflow: hidden; }
#fx span { position: absolute; font-size: 30px; animation: burst .9s ease-out forwards; }
@keyframes burst { to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(.4); opacity: 0; } }
#fx .gain { font-size: 30px; font-weight: 800; color: var(--gold); animation: rise 1s ease-out forwards; text-shadow: 0 2px 6px #000; }
@keyframes rise { to { transform: translateY(-90px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01s !important; } }

/* ===== גרסה 2: גיוון, חגיגות, דו־קרב ===== */
input { user-select: text; -webkit-user-select: text; }
.tiny { font-size: 16px !important; color: var(--dim); margin: 4px 0 14px !important; }
.sub2 { color: var(--dim); margin: 2px 0 0; font-size: 16px; }
.top .who { background: none; padding: 4px 8px; border-radius: 14px; }
.top .who:active { background: var(--card); }
.top .who .wav { font-size: 32px; } .top .who .pen { font-size: 15px; opacity: .7; }
.chip.hot { background: rgba(255, 211, 77, .2); border-color: var(--gold); color: var(--gold); }
.wob { display: inline-block; animation: wob .8s ease-in-out infinite; }
@keyframes wob { 25% { transform: rotate(-10deg) scale(1.08); } 75% { transform: rotate(10deg) scale(1.08); } }

/* אריחי מודים במפה */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.mode { border-radius: 22px; padding: 12px 8px; text-align: center; border: 2px solid var(--line); background: var(--card); display: grid; gap: 2px; justify-items: center; box-shadow: 0 5px 0 rgba(0, 0, 0, .3); }
.mode:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.mode .mi { font-size: 40px; line-height: 1.1; } .mode b { font-size: clamp(16px, 3vw, 21px); } .mode small { color: var(--dim); font-size: clamp(12px, 2.2vw, 15px); }
.mode.duel { background: linear-gradient(135deg, rgba(255, 90, 95, .45), rgba(166, 108, 255, .45)); }
.mode.shopm { background: linear-gradient(135deg, rgba(61, 220, 151, .35), rgba(108, 140, 255, .35)); }
.mode.giftm.ready { background: linear-gradient(135deg, rgba(255, 176, 46, .5), rgba(255, 122, 200, .45)); border-color: var(--gold); }
.mode.giftm.ready .mi { animation: wob .8s ease-in-out infinite; display: inline-block; }
.mode.off { opacity: .5; box-shadow: none; }

/* הסבר לפני משימה */
.how { list-style: none; margin: 0 0 18px; padding: 0; text-align: start; display: grid; gap: 10px; }
.how li { display: flex; gap: 12px; align-items: flex-start; font-size: 20px; line-height: 1.7; font-weight: 600; }
.how li span:first-child { font-size: 28px; flex: none; line-height: 1.2; }
.card > .how { margin-bottom: 0; }

/* סוגי תשובות */
.eq.sub { font-size: clamp(28px, 6vw, 44px); margin-top: -8px; }
.eq.claim { color: var(--gold); }
.opts.tf { grid-template-columns: 1fr 1fr; }
.opts.tf .opt { justify-content: center; font-size: 26px; font-weight: 800; min-height: 84px; }
.opt.yes { background: rgba(61, 220, 151, .16); border-color: rgba(61, 220, 151, .6); } .opt.yes .l { background: var(--ok); color: #06301f; }
.opt.no { background: rgba(255, 107, 129, .14); border-color: rgba(255, 107, 129, .6); } .opt.no .l { background: var(--bad); color: #3b0711; }
.opts.three { grid-template-columns: repeat(3, 1fr); direction: ltr; }
.opts.three small { direction: rtl; }
.opt.sym { flex-direction: column; gap: 0; justify-content: center; text-align: center; min-height: 96px; }
.opt.sym b { font-size: 44px; line-height: 1.1; } .opt.sym small { font-size: 16px; color: var(--dim); }
.opt.gone { opacity: .15; transform: scale(.9); }
.opts.rocks { grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 10px 0 6px; }
@media (max-width: 560px) { .opts.rocks { grid-template-columns: 1fr 1fr; } }
.opt.rock { aspect-ratio: 1; max-width: 150px; width: 100%; margin: 0 auto; justify-content: center; font-size: clamp(26px, 5vw, 38px); font-weight: 800; border: 0; min-height: 0; padding: 0;
  border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%; background: radial-gradient(circle at 32% 28%, #b9a48c, #6d5a48 60%, #3f3329); box-shadow: inset -8px -10px 18px rgba(0, 0, 0, .5), 0 0 0 3px rgba(255, 255, 255, .12);
  animation: bob 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * -0.8s); text-shadow: 0 2px 4px #000; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(5deg); } }
.opt.rock.right { background: radial-gradient(circle, #fff7c2, #ffb02e 55%, #ff5a5f); animation: boom .5s forwards; }
@keyframes boom { 50% { transform: scale(1.3); } 100% { transform: scale(1.05); } }
.opt.rock.wrong { filter: grayscale(1); opacity: .35; animation: none; }
.opt .tag { margin-inline-start: auto; font-size: 30px; }

.match { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.match .col { display: grid; gap: 12px; }
.match button { background: rgba(255, 255, 255, .1); border: 2px solid var(--line); border-radius: 18px; font-size: clamp(24px, 5vw, 32px); font-weight: 800; min-height: 68px; transition: transform .1s; }
.match button[data-side="v"] { background: rgba(108, 140, 255, .22); }
.match button.sel { border-color: var(--gold); background: rgba(255, 211, 77, .25); transform: scale(1.05); }
.match button.done { background: rgba(61, 220, 151, .25); border-color: var(--ok); opacity: .55; }

.pw { flex: none; width: 58px; height: 58px; border-radius: 18px; font-size: 30px; background: linear-gradient(135deg, #ffb02e, #ff7ac8); position: relative; box-shadow: 0 4px 0 rgba(0, 0, 0, .3); }
.pw small { position: absolute; top: -6px; inset-inline-end: -6px; background: #fff; color: #1b1f4a; border-radius: 99px; min-width: 22px; height: 22px; font-size: 14px; font-weight: 800; display: grid; place-items: center; }
.passage.pick { box-shadow: 0 0 0 4px var(--gold); }
.passage.pick li { cursor: pointer; background: rgba(255, 211, 77, .16); margin-bottom: 4px; }
.passage li.miss { background: #ffd0d8; }
.track .goal.run { animation: float 1.2s ease-in-out infinite; }

/* מסך ניצחון */
.modal.win { background: radial-gradient(circle at 50% 30%, rgba(108, 140, 255, .5), rgba(5, 8, 30, .9) 60%); }
.modal.win .card { border: 2px solid var(--gold); box-shadow: 0 0 40px rgba(255, 211, 77, .35); animation: cardIn .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes cardIn { from { transform: scale(.6); opacity: 0; } }
.scene { position: relative; height: 120px; direction: ltr; overflow: hidden; }
.scene .dest { position: absolute; left: 50%; top: 50%; font-size: 76px; line-height: 1; transform: translate(-50%, -50%) scale(0); animation: destIn .5s .85s cubic-bezier(.2, 1.6, .4, 1) forwards; }
@keyframes destIn { to { transform: translate(-50%, -50%) scale(1); } }
.scene .fly { position: absolute; left: 50%; top: 50%; font-size: 62px; line-height: 0; animation: flyIn 1.1s cubic-bezier(.3, .7, .3, 1) forwards; filter: drop-shadow(0 0 10px #ffb02e); }
@keyframes flyIn { from { transform: translate(-380px, 80px) rotate(65deg) scale(.5); } 75% { transform: translate(-120px, -34px) rotate(65deg); } to { transform: translate(-135px, -26px) rotate(25deg); } }
.scene .crew { position: absolute; left: 50%; top: 50%; font-size: 44px; white-space: nowrap; opacity: 0; transform: translate(50px, -40%); animation: crewIn .4s 1.2s forwards, crewHop .5s 1.6s ease-in-out infinite alternate; }
@keyframes crewIn { to { opacity: 1; } }
@keyframes crewHop { to { transform: translate(50px, -75%); } }
.win .stars span.on { animation-delay: 0s !important; }
.count { font-size: 44px; font-weight: 800; color: var(--gold); text-shadow: 0 0 18px rgba(255, 211, 77, .6); }
#caps h3 { font-size: 22px; margin: 6px 0 10px; }
.caps { display: flex; justify-content: center; gap: 14px; margin-bottom: 18px; }
.cap { width: 92px; height: 92px; border-radius: 24px; font-size: 48px; background: linear-gradient(135deg, #6c8cff, #a66cff); box-shadow: 0 6px 0 rgba(0, 0, 0, .35); animation: wob 1s ease-in-out infinite; font-weight: 800; }
.cap:nth-child(2) { animation-delay: -.3s; } .cap:nth-child(3) { animation-delay: -.6s; }
.cap.got { animation: pop .5s forwards; background: linear-gradient(135deg, #ffb02e, #ff7a59); font-size: 30px; }
.cap.miss { animation: none; opacity: .4; font-size: 22px; box-shadow: none; }
.cap small { font-size: .7em; margin-inline-start: 2px; }
.vs { direction: ltr; display: flex; justify-content: center; align-items: center; gap: 18px; font-size: 54px; margin: 6px 0 12px; } .vs b { font-size: 46px; }

/* דו־קרב */
.hero.small { padding: 4px 0 10px; } .hero.small .big { font-size: 56px; } .hero.small h1 { font-size: 34px; }
.bots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px; }
.bot { background: var(--card); border: 2px solid var(--line); border-radius: 22px; padding: 16px 8px; display: grid; gap: 4px; justify-items: center; font-size: 22px; box-shadow: 0 5px 0 rgba(0, 0, 0, .3); }
.bot:active { transform: translateY(3px); } .bot .be { font-size: 64px; line-height: 1.1; } .bot small { color: var(--dim); font-size: 16px; } .bot .chip { font-size: 14px; margin-top: 4px; white-space: normal; }
.race { display: grid; gap: 14px; margin: 8px 0 6px; }
.lane { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 18px; border: 2px solid transparent; }
.lane.act { border-color: var(--gold); background: rgba(255, 211, 77, .1); }
.lane .rn { font-size: 36px; flex: none; width: 46px; text-align: center; }
.lane .track { margin-inline: 22px 14px; }
.lane.pc .fill { background: linear-gradient(270deg, #8ff0c0, #6c8cff); }
.track .ship.ufo { transform: translate(50%, -50%); font-size: 34px; line-height: 1; }
.track .goal { z-index: 0; } .track .ship { z-index: 1; }
.score { font-size: 22px; }
.qcard.wait { pointer-events: none; opacity: .85; }
.dots i { font-style: normal; animation: pulse2 1s infinite; } .dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }

/* חנות */
.item { display: grid; gap: 2px; justify-items: center; align-content: start; }
.item em { font-style: normal; font-weight: 600; font-size: 14px; color: var(--dim); line-height: 1.35; }
.item:not(.own):not(.on) .pic { filter: drop-shadow(0 0 0 transparent); }
.shop { margin-top: 10px; }

/* אפקטים נוספים */
#fx .fall { top: -50px; animation: fall var(--t) linear forwards; }
@keyframes fall { to { transform: translateY(115vh) rotate(var(--r)); } }
.bigfx { position: absolute; left: 0; right: 0; top: 32%; text-align: center; font-size: clamp(40px, 9vw, 72px); font-weight: 800; color: var(--gold); text-shadow: 0 4px 0 #b3541e, 0 0 30px rgba(255, 211, 77, .8); animation: bigfx 1.25s ease-out forwards; direction: rtl; }
@keyframes bigfx { 0% { transform: scale(.3); opacity: 0; } 25% { transform: scale(1.15); opacity: 1; } 70% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.1) translateY(-40px); opacity: 0; } }

/* ===== גרסה 3: טבלת ניקוד משותפת ===== */
.modes { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; }
@media (max-width: 640px) { .modes { grid-template-columns: repeat(2, 1fr); grid-auto-flow: row; } }
.mode.boardm { background: linear-gradient(135deg, rgba(255, 211, 77, .4), rgba(255, 122, 95, .4)); }
.live { display: flex; gap: 10px 22px; justify-content: center; flex-wrap: wrap; color: var(--dim); font-weight: 800; font-size: 17px; margin: -8px 0 18px; }
.hero + .live { margin: 0 0 18px; }
.live .dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 0 rgba(61, 220, 151, .7); animation: pulse 1.6s infinite; margin-inline-end: 4px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }
.lbf { margin: 14px auto 6px; max-width: 520px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 18px; text-align: start; }
.lbf .tiny { margin: 8px 0 10px !important; }
.chk { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; cursor: pointer; }
.chk input { width: 26px; height: 26px; accent-color: var(--gold); flex: none; }
.frow { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.frow input, .frow select { flex: 1 1 140px; min-width: 0; font: inherit; font-size: 17px; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line); background: rgba(0, 0, 0, .3); color: var(--txt); }
.frow select option { color: #111; }
.board .live { margin: 10px 0 14px; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.chipb { border-radius: 999px; padding: 8px 16px; font-weight: 800; font-size: 17px; border: 2px solid var(--line); background: rgba(0, 0, 0, .3); color: var(--txt); }
.chipb.on { background: var(--gold); border-color: var(--gold); color: #2a1d00; }
.brows { display: grid; gap: 8px; margin-top: 12px; }
.brow { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 16px; background: rgba(0, 0, 0, .28); border: 2px solid transparent; }
.brow.top { background: rgba(255, 211, 77, .12); }
.brow.me { border-color: var(--gold); background: rgba(255, 211, 77, .22); }
.brow .rk2 { width: 40px; text-align: center; font-weight: 800; font-size: 22px; flex: none; }
.brow .bav { font-size: 34px; line-height: 1; flex: none; }
.brow .bnm { flex: 1; min-width: 0; display: grid; }
.brow .bnm b { font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow .bnm small { color: var(--dim); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow .bsc { font-weight: 800; font-size: 20px; white-space: nowrap; color: var(--gold); }
.gap { text-align: center; color: var(--dim); line-height: 1; }
.join { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 12px; border-radius: 16px; background: rgba(255, 211, 77, .12); margin-top: 12px; font-weight: 800; }
.mine { font-size: 20px; margin: 12px 0 0; } .mine b { color: var(--gold); font-size: 26px; }
.wait { color: var(--dim); padding: 22px 0; }
.modal .card { max-height: 92vh; overflow-y: auto; }

/* ===== סולם הדרגות ===== */
.chip.rankc { color: var(--txt); font-family: inherit; cursor: pointer; border-color: var(--gold); }
.chip.rankc:active { transform: translateY(2px); }
.rhead { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 20px; background: linear-gradient(135deg, rgba(255, 211, 77, .22), rgba(166, 108, 255, .22)); border: 2px solid var(--gold); margin: 10px 0 12px; }
.rhead > div { flex: 1; min-width: 0; }
.rbig { font-size: 72px; line-height: 1; animation: wob 1.6s ease-in-out infinite; display: inline-block; }
.rname { font-size: 30px; font-weight: 800; color: var(--gold); }
.rsub { color: var(--dim); font-size: 16px; margin-top: 4px; } .rsub b { color: var(--txt); }
.bar.big { height: 16px; margin: 8px 0 2px; }
.rlist { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 0; }
.rstep { display: flex; align-items: center; gap: 14px; padding: 10px 12px; position: relative; border-radius: 16px; }
.rstep::before { content: ''; position: absolute; inset-inline-start: 39px; top: -50%; height: 100%; width: 4px; background: var(--line); z-index: 0; }
.rstep:first-child::before { display: none; }
.rstep.done::before, .rstep.cur::before { background: var(--gold); }
.rdot { position: relative; z-index: 1; width: 58px; height: 58px; flex: none; display: grid; place-items: center; font-size: 32px; border-radius: 50%; background: #1c2260; border: 3px solid var(--line); }
.rstep.done .rdot { border-color: var(--gold); }
.rstep.cur { background: rgba(255, 211, 77, .16); }
.rstep.cur .rdot { border-color: var(--gold); box-shadow: 0 0 0 6px rgba(255, 211, 77, .25); width: 66px; height: 66px; font-size: 38px; margin-inline: -4px; }
.rstep.lock .rdot { font-size: 24px; }
.rstep.lock .rbody b { color: var(--dim); }
.rbody { flex: 1; min-width: 0; display: grid; } .rbody b { font-size: 21px; } .rbody small { color: var(--dim); font-size: 15px; }
.rstep.cur .rbody small { color: var(--gold); font-weight: 800; } .rstep.done .rbody small { color: #3ddc97; }
.rbody .bar { margin-top: 6px; }
.rreq { text-align: end; font-weight: 800; font-size: 16px; white-space: nowrap; display: grid; } .rreq em { font-style: normal; color: var(--dim); font-size: 13px; }
.bigfx small { font-size: .55em; }
.contact { font-size: 18px; } .contact a { color: var(--gold); font-weight: 800; user-select: text; -webkit-user-select: text; }

/* ---------- מחנה האימונים ---------- */
.mode.trainm { background: linear-gradient(135deg, rgba(77, 163, 255, .45), rgba(61, 220, 151, .4)); }
.beltc { display: flex; align-items: center; gap: 14px; background: var(--card); border: 2px solid var(--line); border-radius: 20px; padding: 12px 16px; margin: 0 0 16px; text-align: start; }
.beltc .beltb { flex: 1; min-width: 0; display: grid; gap: 2px; } .beltc .beltb > b { font-size: 20px; } .beltc small { color: var(--dim); font-size: 15px; }
.beltc .bar { margin: 4px 0; } .beltc .beltp { font-size: 22px; font-weight: 800; color: var(--gold); white-space: nowrap; }
.beltv { flex: none; width: 64px; height: 18px; border-radius: 5px; background: var(--bc); border: 2px solid rgba(255, 255, 255, .55); position: relative; box-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.beltv::after { content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 26px; transform: translate(-50%, -50%) rotate(8deg); border-radius: 5px; background: var(--bc); border: 2px solid rgba(255, 255, 255, .55); }
.modal .beltc { margin: 0 0 16px; }
.train h3 { margin: 18px 0 8px; font-size: 20px; } .train h3:first-child { margin-top: 0; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.tgrid.lv { grid-template-columns: repeat(4, 1fr); }
.tbtn { font: inherit; color: var(--txt); background: rgba(0, 0, 0, .25); border: 2px solid var(--line); border-radius: 18px; padding: 10px 6px; display: grid; gap: 2px; justify-items: center; box-shadow: 0 4px 0 rgba(0, 0, 0, .3); cursor: pointer; }
.tbtn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.tbtn .te { font-size: 36px; line-height: 1.15; } .tbtn b { font-size: 17px; } .tbtn small { color: var(--dim); font-size: 14px; min-height: 20px; letter-spacing: 2px; }
.tbtn small i { font-style: normal; opacity: .3; font-size: 11px; }
.tbtn.on { border-color: var(--gold); background: rgba(255, 211, 77, .18); box-shadow: 0 4px 0 rgba(0, 0, 0, .3), 0 0 16px rgba(255, 211, 77, .3); }
.train .quick { margin-bottom: 0; } .train .chipb { cursor: pointer; font-family: inherit; }
.thow { margin: 18px 0 14px; padding: 12px 14px; border-radius: 16px; background: rgba(0, 0, 0, .22); } .thow p { margin: 0 0 10px; line-height: 1.8; } .thow .how { margin: 0; } .thow .how li { font-size: 17px; }
.tgo { font-size: 24px; padding: 14px 30px; }
@media (max-width: 640px) { .tgrid.lv { grid-template-columns: repeat(2, 1fr); } .beltc .beltp { font-size: 18px; } .beltv { width: 46px; } }
@media (max-width: 640px) { .modes > :last-child:nth-child(odd) { grid-column: span 2; } }
