/* css/intro.css — ההדרכה אחרי בחירת הסטארטר (js/intro.js): הפרופסור, קרב הניסיון, שיעור הטיפוסים והסיכום.
   מסך מלא בצבעים קבועים (גם במצב יום) — מרגיש כמו משחק. קו מתאר כהה עבה כמו הציורים ב-assets/art. */

body.tut-open { overflow: hidden; }

.tut {
  --ink: #0b1122;
  --paper: #fdfcf7;
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 56px 16px 16px;
  background:
    radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--rt) 45%, transparent), transparent 60%),
    #0d1428;
  color: #f4f6fb;
  overflow-y: auto;
  animation: tutFade .5s ease;
}
@keyframes tutFade { from { opacity: 0; } }

.tut-top { position: fixed; top: 14px; left: 16px; z-index: 4; display: flex; gap: 8px; }
.sound-ctl {
  display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 4px; direction: ltr;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
}
.sound-ctl button { width: 28px; height: 28px; border: 0; background: none; font-size: 1rem; cursor: pointer; line-height: 1; }
.sound-ctl input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 84px; height: 5px; border-radius: 4px; cursor: pointer;
  background: linear-gradient(90deg, #ffd84d var(--v, 15%), rgba(255,255,255,.25) var(--v, 15%));
}
.sound-ctl input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid #0b1122;
}
.sound-ctl input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #0b1122; }
.tut-skip {
  background: rgba(255,255,255,.08); color: #cdd5e6; border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .85rem; cursor: pointer;
}
.tut-skip:hover { background: rgba(255,255,255,.16); color: #fff; }

.tut-stage { width: min(900px, 100%); display: flex; flex-direction: column; gap: 14px; margin: auto 0; }

/* ── הפרופסור ── */
.tut-prof { position: relative; display: inline-grid; place-items: center; flex-shrink: 0; }
.tut-prof img { image-rendering: pixelated; width: 100%; height: 100%; object-fit: contain; }
.tut-prof b { display: none; }
.tut-prof.noimg { background: var(--rt); border: 4px solid var(--ink); border-radius: 50%; }
.tut-prof.noimg b { display: block; font-size: 2.4em; color: #fff; }
.tut-prof.big { width: clamp(150px, 26vw, 220px); aspect-ratio: 1; font-size: 1.6rem; }
.tut-prof.big.enter { animation: profIn .7s cubic-bezier(.34,1.56,.64,1); }
@keyframes profIn { from { transform: translateX(-60px); opacity: 0; } }
.tut-prof.mini { width: 56px; height: 56px; font-size: .7rem; background: rgba(255,255,255,.9); border-radius: 14px; border: 3px solid var(--ink); overflow: hidden; }
.tut-prof.mini img { scale: 1.3; translate: 0 8%; }
.tut-prof.mini.noimg { background: var(--rt); }
.tut-prof.side { position: absolute; left: 4%; bottom: 8%; width: clamp(110px, 18vw, 160px); aspect-ratio: 1; font-size: 1.2rem; }

/* ── המעבדה ── */
.tut-lab {
  position: relative; height: clamp(300px, 50vh, 440px); border-radius: 22px; overflow: hidden;
  border: 4px solid var(--ink);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 2px, transparent 2px 70px),
    linear-gradient(#24325a, #1a2546 62%);
}
.tut-lab-floor {
  position: absolute; inset: 62% 0 0 0;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.12) 0 3px, transparent 3px 60px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.12) 0 3px, transparent 3px 40px),
    #c9b98f;
  border-top: 4px solid var(--ink);
}
.tut-lab-region {
  position: absolute; top: 14px; right: 16px; padding: 4px 12px; border-radius: 8px;
  background: var(--rt); color: #fff; font-weight: 700; border: 3px solid var(--ink); font-size: .9rem;
}
.tut-lab-cast {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; gap: clamp(20px, 8vw, 90px);
  padding-bottom: 6%;
}
.tut-lab-cast { transition: transform .5s cubic-bezier(.34,1.56,.64,1); transform-origin: 50% 100%; }
.tut-lab.world .tut-lab-cast { transform: translateY(4%) scale(.72); }
.tut-partner { width: clamp(120px, 22vw, 190px); aspect-ratio: 1; }
.tut-partner img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 0 rgba(0,0,0,.25)); }
.tut-partner.pop { animation: partnerPop .6s cubic-bezier(.34,1.56,.64,1); }
@keyframes partnerPop { from { transform: scale(0); filter: brightness(4); } 60% { filter: brightness(2); } }
.tut-ball-pop { position: absolute; bottom: 14%; left: 58%; width: 34px; height: 34px; }
.tut-ball-pop::before, .fx-pokeball::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--ink);
  background: linear-gradient(#ff4d3d 0 44%, var(--ink) 44% 56%, #fff 56%);
}
.tut-ball-pop::after, .fx-pokeball::after {
  content: ''; position: absolute; inset: 36%; border-radius: 50%; background: #fff; border: 3px solid var(--ink);
}
.tut-ball-pop.go { animation: ballDrop .65s ease-in forwards; }
@keyframes ballDrop { from { transform: translateY(-260px) rotate(0); } 70% { transform: translateY(0) rotate(540deg); } to { transform: scale(1.4); opacity: 0; } }

.tut-world {
  position: absolute; inset: 14px 14px auto 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.tw {
  background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; padding: 10px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px;
  box-shadow: 0 4px 0 var(--ink); animation: twIn .45s cubic-bezier(.34,1.56,.64,1) var(--d) both;
}
.tw svg { color: var(--rt); }
.tw b { font-size: .95rem; }
.tw span { font-size: .75rem; color: #4a5470; line-height: 1.3; }
@keyframes twIn { from { transform: translateY(-16px) scale(.85); opacity: 0; } }

/* ── תיבת הדיאלוג (כמו במשחקים) ── */
.tut-dialog {
  position: relative; background: var(--paper); color: var(--ink); cursor: pointer; user-select: none;
  border: 4px solid var(--ink); border-radius: 16px; box-shadow: 0 6px 0 var(--ink), inset 0 0 0 3px #e3dcc6;
  padding: 22px 20px 18px; min-height: 110px; outline: none;
}
.tut-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tut-dialog:focus-visible { box-shadow: 0 6px 0 var(--ink), 0 0 0 4px var(--rt); }
.tut-speaker {
  position: absolute; top: -16px; right: 18px; background: var(--rt); color: #fff; font-weight: 700; font-size: .85rem;
  padding: 3px 12px; border-radius: 8px; border: 3px solid var(--ink);
}
.tut-text { font-size: 1.12rem; line-height: 1.7; margin: 0; min-height: 3.4em; }
.tut-text b { color: var(--rt); filter: brightness(.8); }
.tut-next { position: absolute; left: 18px; bottom: 10px; color: var(--rt); opacity: 0; font-size: .9rem; }
.tut-dialog.ready .tut-next { opacity: 1; animation: nextBob .8s ease-in-out infinite; }
@keyframes nextBob { 50% { transform: translateY(4px); } }

/* ── מעבר לקרב ── */
.tut-wipe { position: fixed; inset: 0; z-index: 3; display: flex; flex-direction: column; pointer-events: none; }
.tut-wipe i { flex: 1; background: var(--ink); transform: scaleX(0); animation: wipeIn .5s ease-in forwards; }
.tut-wipe i:nth-child(odd) { transform-origin: right; } .tut-wipe i:nth-child(even) { transform-origin: left; }
.tut-wipe i:nth-child(2) { animation-delay: .05s; } .tut-wipe i:nth-child(3) { animation-delay: .1s; }
.tut-wipe i:nth-child(4) { animation-delay: .15s; } .tut-wipe i:nth-child(5) { animation-delay: .2s; }
.tut-wipe i:nth-child(6) { animation-delay: .25s; }
.tut-wipe::before { content: ''; position: absolute; inset: 0; background: #fff; opacity: 0; animation: wipeFlash .5s steps(2) 1; }
.tut-wipe.out { animation: tutFade .6s ease reverse forwards; }
@keyframes wipeIn { to { transform: scaleX(1); } }
@keyframes wipeFlash { 0%, 100% { opacity: 0; } 25%, 75% { opacity: .9; } }

/* ── זירת הקרב ── */
.tut-battle { display: flex; flex-direction: column; gap: 10px; }
.tut-scene {
  position: relative; aspect-ratio: 16 / 9.5; max-height: 60vh; width: 100%; border-radius: 18px; overflow: hidden;
  border: 4px solid var(--ink); background-size: cover; background-position: center 70%;
}
.tut-scene.shake { animation: sceneShake .38s ease; }
@keyframes sceneShake { 20% { translate: -6px 3px; } 40% { translate: 6px -3px; } 60% { translate: -4px 2px; } 80% { translate: 3px -1px; } }
.tut-pad { position: absolute; border-radius: 50%; background: radial-gradient(rgba(0,0,0,.35), rgba(0,0,0,.08) 60%, transparent 70%); }
.tut-pad.foe { right: 12%; top: 48%; width: 30%; height: 11%; }
.tut-pad.me { left: 4%; bottom: -2%; width: 38%; height: 13%; }
.tut-mon { position: absolute; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 4px 0 rgba(0,0,0,.2)); }
.tut-mon.gif { image-rendering: auto; }
.tut-mon.foe { right: 15%; top: 12%; width: 25%; aspect-ratio: 1; }
.tut-mon.me { left: 8%; bottom: 0; width: 30%; aspect-ratio: 1; }
.tut-mon.slide-in { animation: foeIn .8s cubic-bezier(.2,.8,.3,1); }
@keyframes foeIn { from { transform: translateX(120%); filter: brightness(0); } 70% { filter: brightness(0); } }
.tut-mon.pop { animation: partnerPop .55s cubic-bezier(.34,1.56,.64,1); }
.tut-mon.hit { animation: monHit .45s steps(1) 1; }
@keyframes monHit { 0%, 40%, 80% { opacity: .15; } 20%, 60%, 100% { opacity: 1; } }
.tut-mon.faint { animation: monFaint .7s ease-in forwards; }
@keyframes monFaint { to { transform: translateY(60%); opacity: 0; clip-path: inset(0 0 100% 0); } }
.tut-mon.sucked { animation: sucked .45s ease-in forwards; }
@keyframes sucked { to { transform: scale(0); filter: brightness(5) sepia(1) hue-rotate(-30deg); opacity: 0; } }
.tut-mon.break-out { animation: partnerPop .5s cubic-bezier(.34,1.56,.64,1); }

.tut-box {
  position: absolute; width: min(44%, 280px); background: var(--paper); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 12px; padding: 7px 10px 6px; box-shadow: 0 4px 0 var(--ink);
  opacity: 0; transition: opacity .35s, transform .45s cubic-bezier(.34,1.56,.64,1); font-size: .85rem;
}
.tut-box.foe { top: 4%; left: 3%; transform: translateX(-30px); }
.tut-box.me { bottom: 6%; right: 3%; transform: translateX(30px); }
.tut-box.show { opacity: 1; transform: none; }
.tb-top { display: flex; align-items: baseline; gap: 6px; }
.tb-name { font-size: 1rem; }
.tb-tag { font-size: .7rem; background: #e9e3cf; padding: 0 6px; border-radius: 6px; }
.tb-lv { margin-inline-start: auto; font-family: var(--font-num); direction: ltr; }
.tb-types { margin: 2px 0 4px; } .tb-types .type-badge { font-size: .65rem; padding: 1px 7px; }
.tb-hp { display: flex; align-items: center; gap: 6px; direction: ltr; }
.tb-hp span { font-weight: 800; font-size: .7rem; color: #e0a400; background: var(--ink); padding: 0 4px; border-radius: 4px; }
.tb-bar { flex: 1; height: 9px; background: #3a4258; border-radius: 6px; overflow: hidden; border: 2px solid var(--ink); }
.tb-bar i { display: block; height: 100%; background: #22c55e; transition: width .9s ease, background-color .3s; }
.tb-bar[data-lvl="yellow"] i { background: #f5b301; }
.tb-bar[data-lvl="red"] i { background: #ef4444; }
.tb-num { text-align: left; direction: ltr; font-family: var(--font-num); font-size: .8rem; }
.tb-stats { display: flex; gap: 4px; flex-wrap: wrap; }
.tb-stats span { font-size: .68rem; padding: 0 6px; border-radius: 6px; color: #fff; }
.tb-stats .down { background: #3b8cff; } .tb-stats .up { background: #ff4d3d; }
.tb-exp { display: flex; align-items: center; gap: 6px; direction: ltr; margin-top: 3px; }
.tb-exp span { font-size: .62rem; font-weight: 800; color: #3b8cff; }
.tb-exp div { flex: 1; height: 5px; background: #d7dbe6; border-radius: 4px; overflow: hidden; }
.tb-exp i { display: block; height: 100%; width: 0; background: #3b8cff; transition: width 1.4s ease; }

.tut-log {
  background: var(--ink); border: 4px solid #2c3a63; border-radius: 14px; padding: 12px 16px; min-height: 56px;
  font-size: 1.05rem;
}
.tut-log p { margin: 0; } .tut-log b { color: #ffd84d; }

/* בועת הפרופסור בזמן הקרב — במקום שורת הקרב והכפתורים, מתחת לזירה */
.tut-coach {
  display: flex; gap: 12px; align-items: flex-start;
  min-height: 0; padding: 14px 16px 22px; opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s;
}
.tut-coach.show { opacity: 1; transform: none; }
.tut-coach .tc-body { flex: 1; }
.tut-coach .tut-speaker { position: static; display: inline-block; margin-bottom: 4px; font-size: .75rem; padding: 1px 9px; border-width: 2px; }
.tut-coach .tut-text { font-size: 1rem; min-height: 0; }

/* כפתורי הפעולה */
.tut-actions { display: flex; gap: 10px; animation: twIn .35s ease both; }
.ta-moves { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ta-move, .ta-ball {
  font: inherit; cursor: pointer; border: 3px solid var(--ink); border-radius: 12px; color: #fff; text-align: start;
  box-shadow: 0 4px 0 var(--ink); transition: transform .1s, box-shadow .1s, filter .15s;
}
.ta-move { background: var(--tc); padding: 9px 12px; display: flex; flex-direction: column; gap: 2px; text-shadow: 0 1px 2px rgba(0,0,0,.45); }
.ta-move b { font-size: 1.02rem; }
.ta-meta { display: flex; justify-content: space-between; font-size: .76rem; }
.ta-type { background: rgba(0,0,0,.25); padding: 0 7px; border-radius: 6px; }
.ta-move:hover:not(:disabled), .ta-ball:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.ta-move:active:not(:disabled), .ta-ball:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.ta-ball { background: #ff4d3d; width: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-weight: 700; }
.ta-ball.glow { animation: ballGlow 1.1s ease-in-out infinite; }
@keyframes ballGlow { 50% { box-shadow: 0 4px 0 var(--ink), 0 0 0 5px #ffd84d; } }
.tut-actions button:disabled { filter: grayscale(.6) brightness(.7); cursor: default; }

/* ── האפקטים ── */
.tut-fx { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.fx { position: absolute; left: 0; top: 0; pointer-events: none; }
.fx-pokeball { position: absolute; left: 0; top: 0; width: 28px; height: 28px; z-index: 2; }
.fx-fire { width: 20px; height: 20px; margin: -10px; border-radius: 50% 50% 50% 0;
  background: radial-gradient(circle at 60% 40%, #fff6b0, #ffb020 40%, #f0441a 75%); filter: drop-shadow(0 0 6px #ff7a18); }
.fx-bubble { width: 16px; height: 16px; margin: -8px; border-radius: 50%; border: 2px solid #d4ecff;
  background: radial-gradient(circle at 35% 30%, #fff 0 15%, rgba(104,144,240,.55) 40%); }
.fx-leaf { width: 20px; height: 11px; margin: -6px -10px; border-radius: 0 100% 0 100%; background: linear-gradient(135deg, #a6e36b, #3f9a2c);
  border: 1.5px solid #1f5a14; }
.fx-orb { width: 18px; height: 18px; margin: -9px; border-radius: 50%; background: radial-gradient(#fff, #c6c6ff 50%, transparent 72%); }
.fx-spark { width: 8px; height: 8px; margin: -4px; background: #fff3a6; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.fx-star { width: 90px; height: 90px; margin: -45px; background: var(--c);
  clip-path: polygon(50% 0, 60% 35%, 98% 22%, 68% 52%, 92% 88%, 52% 68%, 18% 96%, 32% 58%, 0 38%, 38% 36%);
  animation: starPop .45s ease-out forwards; }
@keyframes starPop { from { transform: scale(.2) rotate(0); opacity: 1; } to { transform: scale(1.3) rotate(25deg); opacity: 0; } }
.fx-slash { width: 8px; height: 90px; margin: -45px -4px; border-radius: 6px; background: linear-gradient(transparent, #fff 30%, #fff 70%, transparent);
  transform: rotate(35deg) scaleY(0); animation: slash .35s ease-out forwards; box-shadow: 0 0 10px #fff; }
@keyframes slash { 50% { transform: rotate(35deg) scaleY(1); opacity: 1; } to { transform: rotate(35deg) scaleY(1); opacity: 0; } }
.fx-vine { height: 7px; border-radius: 6px; transform-origin: 0 50%; background: repeating-linear-gradient(90deg, #4c9a2a 0 14px, #7ccc4b 14px 20px);
  border: 1.5px solid #1f5a14; animation: vine .6s ease-out forwards; }
@keyframes vine { from { clip-path: inset(0 100% 0 0); } 50% { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 0 0); opacity: 0; } }
.fx-flash { width: 160px; height: 160px; margin: -80px; border-radius: 50%; background: radial-gradient(var(--c), transparent 65%);
  animation: fxFlash .45s ease-out forwards; mix-blend-mode: screen; }
@keyframes fxFlash { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.fx-ring { width: 70px; height: 70px; border-radius: 50%; border: 4px solid rgba(255,255,255,.85); }
.fx-glint { width: 46px; height: 46px; margin: -23px; background: #ff3b3b;
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); animation: starPop .6s ease-out forwards; }
.fx-shield { width: 150px; height: 150px; margin: -75px; border-radius: 50%; border: 4px solid #9fd0ff;
  background: radial-gradient(transparent 55%, rgba(120,190,255,.45)); animation: shield .9s ease forwards; }
@keyframes shield { from { transform: scale(.3); opacity: 0; } 30% { transform: scale(1); opacity: 1; } to { opacity: 0; } }
.fx-arrow { font-size: 18px; margin: -10px; font-weight: 900; text-shadow: 0 0 2px var(--ink); animation: arrowDown .8s ease-in both; }
.fx-arrow.down { color: #5aa0ff; } .fx-arrow.up { color: #ff6a4d; animation-name: arrowUp; }
@keyframes arrowDown { from { transform: translateY(-40px); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(30px); opacity: 0; } }
@keyframes arrowUp { from { transform: translateY(30px); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(-40px); opacity: 0; } }
.fx-num { font-family: var(--font-num); font-weight: 900; font-size: 1.7rem; color: #fff; direction: ltr; margin-left: -20px;
  -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke; animation: numUp 1.2s ease-out forwards; }
@keyframes numUp { from { transform: translateY(10px) scale(.6); opacity: 0; } 20% { transform: scale(1.15); opacity: 1; }
  70% { opacity: 1; } to { transform: translateY(-36px); opacity: 0; } }

.tut-victory { position: absolute; inset: 0; display: grid; place-items: center; z-index: 5; pointer-events: none; }
.tut-victory span {
  font-size: clamp(2.2rem, 7vw, 4rem); font-weight: 900; color: #ffd84d; -webkit-text-stroke: 3px var(--ink); paint-order: stroke;
  animation: victory .7s cubic-bezier(.34,1.56,.64,1); letter-spacing: 1px;
}
@keyframes victory { from { transform: scale(.2) rotate(-8deg); opacity: 0; } }
.tut-confetti { position: absolute; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
.tut-confetti i { position: absolute; top: -12px; left: var(--x); width: 8px; height: 13px; background: var(--c); rotate: var(--r);
  animation: tutConf 2.2s cubic-bezier(.2,.6,.4,1) var(--d) forwards; }
@keyframes tutConf { to { transform: translateY(70vh) rotate(540deg); opacity: 0; } }

/* ── שיעור הטיפוסים ── */
.tut-types { position: absolute; top: 4%; right: 50%; translate: 50% 0; width: min(320px, 70%); aspect-ratio: 300 / 280; }
.tt-arrows { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 5;
  color: #ffd84d; stroke-linecap: round; opacity: 0; transition: opacity .5s; }
.tut-types[data-step]:not([data-step="0"]) .tt-arrows { opacity: 1; }
.tt-node {
  position: absolute; width: 30%; aspect-ratio: 1; border-radius: 50%; background: var(--tc); border: 4px solid var(--ink);
  display: grid; place-items: center; color: #fff; font-weight: 800; text-shadow: 0 1px 2px rgba(0,0,0,.5); box-shadow: 0 5px 0 var(--ink);
  animation: twIn .45s cubic-bezier(.34,1.56,.64,1) both;
}
.tt-node { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0; }
.tt-node span { font-size: clamp(.8rem, 2.4vw, 1rem); }
.tt-node img { width: 58%; margin: -14% 0 -6%; image-rendering: pixelated; }
.tt-node.mine { outline: 4px solid #ffd84d; outline-offset: 3px; }
.tt-node[data-pos="top"] { top: 0; left: 35%; }
.tt-node[data-pos="right"] { top: 62%; right: 0; animation-delay: .12s; }
.tt-node[data-pos="left"] { top: 62%; left: 0; animation-delay: .24s; }
.tt-cap { position: absolute; bottom: -9%; left: 50%; translate: -50% 0; white-space: nowrap; font-size: .8rem; margin: 0;
  color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 8px; padding: 1px 10px; font-weight: 600; }

/* ── הסיכום ── */
.tut-sum {
  background: #131c33; border: 4px solid var(--ink); border-radius: 22px; overflow: hidden;
  box-shadow: 0 10px 0 var(--ink); animation: twIn .5s cubic-bezier(.34,1.56,.64,1);
}
.ts-hero {
  position: relative; display: flex; align-items: center; gap: 18px; padding: 22px 24px; overflow: hidden;
  background: linear-gradient(120deg, color-mix(in srgb, var(--tc) 85%, #000), color-mix(in srgb, var(--tc) 45%, #0d1428));
  border-bottom: 4px solid var(--ink);
}
.ts-rays { position: absolute; left: 4%; top: 50%; width: 360px; height: 360px; margin-top: -180px; opacity: .22;
  background: repeating-conic-gradient(#fff 0 8deg, transparent 8deg 24deg); border-radius: 50%; animation: rays 30s linear infinite; }
@keyframes rays { to { rotate: 360deg; } }
.ts-art { position: relative; width: clamp(130px, 24vw, 190px); aspect-ratio: 1; object-fit: contain; order: 2; margin-inline-start: auto;
  filter: drop-shadow(0 8px 0 rgba(0,0,0,.3)); animation: partnerPop .7s cubic-bezier(.34,1.56,.64,1); }
.ts-hero-txt { position: relative; display: flex; flex-direction: column; gap: 6px; }
.ts-kicker { font-size: .85rem; opacity: .85; }
.ts-hero h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0; line-height: 1.1; text-shadow: 0 3px 0 rgba(0,0,0,.3); }
.ts-lv { font-family: var(--font-num); font-weight: 700; margin-inline-start: 6px; }
.ts-region { display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,.28); padding: 4px 10px; border-radius: 8px;
  font-size: .85rem; width: fit-content; }
.ts-sec { padding: 16px 22px 4px; }
.ts-sec h3 { font-size: .9rem; color: #98a4c0; margin: 0 0 10px; font-weight: 600; }
.ts-items { display: flex; gap: 10px; flex-wrap: wrap; }
.ts-item { flex: 1; min-width: 110px; display: flex; align-items: center; gap: 8px; background: #1a2542; border: 2px solid #243154;
  border-radius: 14px; padding: 8px 12px; }
.ts-item b { font-family: var(--font-num); font-size: 1.3rem; }
.ts-item span:last-of-type { color: #98a4c0; font-size: .85rem; }
.ts-item.gift { position: relative; border-color: #ffd84d; background: #2a2a1a; animation: giftIn .7s cubic-bezier(.34,1.56,.64,1); }
.ts-item.gift em { position: absolute; top: -11px; right: 10px; font-style: normal; font-size: .7rem; font-weight: 700;
  background: #ffd84d; color: var(--ink); padding: 1px 8px; border-radius: 6px; border: 2px solid var(--ink); }
@keyframes giftIn { from { transform: scale(.4) rotate(-6deg); opacity: 0; } }
.ts-coin { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #cfd6e3; color: #4b5568;
  font-weight: 900; border: 3px solid #8f9ab0; font-family: var(--font-num); }
.ts-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ts-step { display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: 14px; text-decoration: none; color: #f4f6fb;
  background: #1a2542; border: 2px solid #243154; transition: transform .15s, border-color .15s; animation: twIn .4s ease var(--d) both; }
.ts-step svg { color: var(--rt); margin-bottom: 4px; }
.ts-step span { font-size: .78rem; color: #98a4c0; }
.ts-step:hover { transform: translateY(-3px); border-color: var(--rt); }
.ts-foot { display: flex; align-items: center; gap: 12px; padding: 16px 22px 0; }
.ts-foot p { margin: 0; color: #cdd5e6; font-size: .92rem; line-height: 1.6; }
.ts-foot a { color: #ffd84d; }
.ts-go { display: flex; justify-content: center; gap: 12px; padding: 18px 22px 22px; }
.ts-go .btn { min-width: 150px; font-size: 1.05rem; }

@media (max-width: 640px) {
  .tut { padding: 52px 10px 10px; align-items: flex-start; }
  .tut-world { grid-template-columns: 1fr 1fr; }
  .tw span { display: none; }
  .tut-text { font-size: 1rem; }
  .tut-scene { aspect-ratio: 4 / 3.4; }
  .tut-box { width: 52%; font-size: .78rem; }
  .tut-mon.foe { width: 30%; } .tut-mon.me { width: 40%; }
    .ta-ball { width: 74px; }
  .ta-move { padding: 8px; } .ta-move b { font-size: .92rem; }
  .ts-hero { padding: 16px; } .ts-art { width: 110px; }
  .ts-steps { grid-template-columns: 1fr 1fr; }
  .ts-sec, .ts-foot { padding-inline: 14px; }
  .tut-prof.side { width: 80px; }
}

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

/* ── הסיכום: מתנת הפרמיום ו"מה עושים עכשיו" (13.11.2026) ── */
.ts-sec[hidden] { display: none; }
.ts-perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.ts-perk { display: grid; grid-template-columns: 2em 1fr; gap: 2px 8px; padding: 10px 12px; border-radius: 14px; background: #2a2a1a; border: 2px solid #5c4f1c; }
.ts-perk span { grid-row: span 2; font-size: 1.4rem; align-self: center; }
.ts-perk small { color: #c3cbe0; font-size: .82rem; line-height: 1.5; }
.ts-next { margin: 0; padding-inline-start: 1.4em; display: grid; gap: 8px; line-height: 1.6; }
.ts-next span { color: #c3cbe0; }
.ts-note { margin: 10px 0 0; color: #98a4c0; font-size: .88rem; }
