/* ===== רכיבים אינטראקטיביים במאמרים ===== */
.lesson { margin: 8px 0 4px; }
.bg-step { text-align: center; font-weight: 600; color: #0B4F57; margin: 0 0 8px; font-size: 1.05rem; }
.bg-wrap { background: #fff; border-radius: 20px; padding: 10px; box-shadow: 0 14px 34px -24px rgba(7, 58, 64, .6); direction: ltr; }
.bg-svg { display: block; width: 100%; height: auto; }
.bg-num { font: 600 11px Arial, sans-serif; fill: #7A4B2A; opacity: .8; }
.bg-ck { transition: transform .75s cubic-bezier(.22, 1, .36, 1); will-change: transform; }
.bg-ck circle:first-child { stroke: #3a2a1a; stroke-width: 1.5; }
.bg-ck.w circle:first-child { fill: #FBF6EA; } .bg-ck.w .in { fill: #E9DFC8; }
.bg-ck.b circle:first-child { fill: #0B4F57; } .bg-ck.b .in { fill: #0F7C7C; }
.bg-ring { fill: none; stroke: #F5B335; stroke-width: 4; stroke-dasharray: 8 6; animation: bgDash 1.2s linear infinite; }
@keyframes bgDash { to { stroke-dashoffset: -28; } }
.bg-arrow { stroke-dasharray: 14 12; animation: bgDash 1s linear infinite; }
.bg-lbl { font: 600 15px Arial, sans-serif; fill: #7A4B2A; }
.bg-mark circle { fill: #F5B335; } .bg-mark text { font: 700 18px Arial, sans-serif; fill: #3a2a1a; }
.bg-mark.good circle { fill: #5C6B2F; } .bg-mark.good text { fill: #fff; }
.bg-mark.bad circle { fill: #D9684F; } .bg-mark.bad text { fill: #fff; }
.bg-dice { display: flex; justify-content: center; gap: 14px; margin: 10px 0 0; }
.die { font-size: 64px; line-height: 1; color: #0B4F57; display: inline-block; }
.die.roll { animation: dieRoll .14s linear infinite; }
@keyframes dieRoll { 0% { transform: rotate(-12deg) translateY(-3px); } 100% { transform: rotate(14deg) translateY(3px); } }
.bg-caption { margin: 12px auto 0; max-width: 62ch; min-height: 3.4em; text-align: center; font-size: 1.08rem; line-height: 1.65; color: #24484D; }
.bg-ctrl { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.lesson-btn { font: inherit; font-size: 1rem; font-weight: 600; padding: 11px 24px; border: 2px solid #0F7C7C; border-radius: 999px; background: #0F7C7C; color: #fff; cursor: pointer; transition: transform .15s, background .15s; }
.lesson-btn:hover:not(:disabled) { background: #0B6666; border-color: #0B6666; transform: translateY(-1px); }
.lesson-btn:disabled { opacity: .4; cursor: default; }
.lesson-btn.ghost { background: #fff; color: #0F7C7C; }
.lesson-btn.lesson-act { background: #5C6B2F; border-color: #5C6B2F; }
.bg-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.bg-dots button { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%; background: #C9D8D4; cursor: pointer; transition: transform .2s, background .2s; }
.bg-dots button.on { background: #0F7C7C; transform: scale(1.35); }
.quiz { background: #fff; border-radius: 20px; padding: 18px 20px; box-shadow: 0 14px 34px -24px rgba(7, 58, 64, .6); }
.quiz-q { margin: 0 0 12px; font-weight: 600; font-size: 1.15rem; color: #0B4F57; }
.quiz-opts { display: grid; gap: 8px; }
.quiz-opt { font: inherit; text-align: start; padding: 12px 16px; border: 2px solid #CFE3E3; border-radius: 14px; background: #F5FBFA; cursor: pointer; transition: border-color .15s, background .15s; }
.quiz-opt:hover:not(:disabled) { border-color: #0F7C7C; }
.quiz-opt.good { background: #DDF1E3; border-color: #2E9E5B; } .quiz-opt.bad { background: #FBE4DF; border-color: #D9684F; }
.quiz-fb { min-height: 1.6em; margin: 10px 0; color: #4A5630; font-weight: 500; }
.quiz-end { font-size: 1.2rem; font-weight: 600; color: #0B4F57; }
.pack { background: #fff; border-radius: 20px; padding: 18px 20px; box-shadow: 0 14px 34px -24px rgba(7, 58, 64, .6); }
.pack-lab { margin: 0 0 8px; font-weight: 600; color: #0B4F57; }
.pack-bar { height: 10px; border-radius: 10px; background: #E1EEEA; overflow: hidden; margin-bottom: 12px; }
.pack-bar i { display: block; height: 100%; width: 0; background: #5C6B2F; border-radius: 10px; transition: width .35s; }
.pack-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; }
.pack-list li { display: flex; align-items: center; gap: 10px; padding: 8px 4px; }
.pack-list input { width: 22px; height: 22px; accent-color: #0F7C7C; }
.pack-list input:checked + label { text-decoration: line-through; opacity: .6; }
.pack-list label { cursor: pointer; font-size: 1.05rem; }
.pause { background: linear-gradient(160deg, #E9F5F8, #F5FBFA); border-radius: 24px; padding: 22px 18px; text-align: center; box-shadow: 0 14px 34px -24px rgba(7, 58, 64, .6); }
.pause-ring { position: relative; width: min(260px, 70vw); margin: 0 auto; }
.pause-ring svg { display: block; width: 100%; transform: rotate(-90deg); }
.pause-ring .bgc { fill: none; stroke: #D3E8EC; stroke-width: 7; }
.pause-ring .fg { fill: none; stroke: #0F7C7C; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1s linear; }
.pause-core { position: absolute; inset: 0; display: grid; place-content: center; gap: 4px; }
.pause-time { font-size: 2.6rem; color: #0B4F57; font-variant-numeric: tabular-nums; }
.pause-msg { color: #4A5630; font-weight: 600; }
.pause-core.breathe .pause-time { animation: breathe 8s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.94); } 50% { transform: scale(1.08); } }
.pause-opts { display: flex; justify-content: center; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.pause-opts button { font: inherit; padding: 8px 18px; border: 2px solid #CFE3E3; border-radius: 999px; background: #fff; cursor: pointer; }
.pause-opts button.on { background: #0F7C7C; border-color: #0F7C7C; color: #fff; }
.pause-act { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.pause-tip { margin: 14px auto 0; max-width: 46ch; color: #4A5A5C; font-size: .98rem; }
.pause.done .fg { stroke: #5C6B2F; }
@media (prefers-reduced-motion: reduce) { .bg-ck, .pack-bar i, .pause-ring .fg { transition: none; } .bg-ring, .bg-arrow, .die.roll, .pause-core.breathe .pause-time { animation: none; } }
/* ===== מאמרים צבעוניים וקצרים ===== */
.art-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; border-radius: 28px; overflow: hidden; margin: 6px 0 22px; background: linear-gradient(135deg, #D9F0F3, #EAF7F2); box-shadow: 0 18px 40px -28px rgba(7, 58, 64, .6); }
.art-hero.c1 { background: linear-gradient(135deg, #E2E8C4, #F0F3DC); } .art-hero.c2 { background: linear-gradient(135deg, #FBF1D8, #FFF9EA); }
.art-hero.c3 { background: linear-gradient(135deg, #EAD7C0, #F6EBDC); } .art-hero.c4 { background: linear-gradient(135deg, #D6E8F8, #EAF4FF); } .art-hero.c5 { background: linear-gradient(135deg, #C9EEEA, #E3F8F5); }
.art-hero-txt { padding: 30px 28px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.art-hero img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; display: block; }
.art-emoji { font-size: 2.6rem; line-height: 1; }
.art-hero h1 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.2; color: #0B4F57; }
.art-sub { margin: 0; font-size: 1.15rem; color: #2B5A60; }
.art-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; }
.art-meta span { background: rgba(255, 255, 255, .75); border-radius: 999px; padding: 4px 12px; font-size: .9rem; color: #24484D; }
.art-tldr { background: #fff; border: 2px dashed #F5B335; border-radius: 22px; padding: 16px 22px; margin: 0 0 26px; }
.art-tldr strong { display: inline-block; background: #F5B335; color: #3a2a1a; padding: 2px 14px; border-radius: 999px; margin-bottom: 8px; }
.art-tldr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.art-tldr li { position: relative; padding-inline-start: 26px; font-size: 1.08rem; }
.art-tldr li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: #2E9E5B; font-weight: 700; }
.art-sec { margin: 0 0 34px; }
.art-sec > h2 { margin: 0 0 14px; }
.art-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.art-card { border-radius: 22px; padding: 18px 18px 20px; box-shadow: 0 12px 28px -22px rgba(7, 58, 64, .55); }
.art-card h3 { margin: 6px 0 6px; font-size: 1.15rem; color: #0B4F57; } .art-card.t3 h3 { color: #4A5630; } .art-card.t4 h3 { color: #6B4326; }
.art-card p { margin: 0; line-height: 1.6; color: #2c3f42; }
.art-ico { font-size: 2rem; display: inline-block; line-height: 1; }
.art-card.t1 { background: #DDF1F3; } .art-card.t2 { background: #FBF3DF; } .art-card.t3 { background: #E4EACB; }
.art-card.t4 { background: #E9D8C3; } .art-card.t5 { background: #D3EFEA; } .art-card.t6 { background: #DCEBFA; }
.art-tip { background: #F4EBD2; border-radius: 18px; padding: 14px 18px; margin: 0 0 30px; font-weight: 500; color: #4a3a12; }
.art-play { text-align: center; background: linear-gradient(135deg, #0F7C7C, #1FA3A3); color: #fff; border-radius: 26px; padding: 26px 18px; margin: 0 0 34px; }
.art-play h2, .art-play p { color: #fff; margin: 0 0 8px; }
.art-works { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.art-works figure { margin: 0; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 12px 28px -22px rgba(7, 58, 64, .55); }
.art-works img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.art-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.art-tile { display: grid; gap: 6px; padding: 20px; border-radius: 24px; text-decoration: none; color: #0B4F57; box-shadow: 0 12px 28px -22px rgba(7, 58, 64, .55); transition: transform .2s; }
.art-tile:hover { transform: translateY(-3px); }
.art-tile-ico { font-size: 2.2rem; line-height: 1; }
.art-tile strong { font-size: 1.15rem; line-height: 1.3; }
.art-tile span:not(.art-tile-ico) { color: #2c3f42; }
.art-tile em { font-style: normal; font-size: .85rem; opacity: .7; }
@media (max-width: 760px) { .art-hero { grid-template-columns: 1fr; } .art-hero img { order: -1; min-height: 0; aspect-ratio: 4/3; } .art-hero-txt { padding: 20px 18px 24px; } }

/* ===== משחק נגד המחשב ===== */
.g-status { text-align: center; font-weight: 600; font-size: 1.1rem; color: #0B4F57; margin: 0 0 8px; min-height: 1.6em; }
.g-hit { fill: transparent; cursor: pointer; }
.g-tray { fill: #EFE3CC; stroke: #C9B48A; stroke-width: 1.5; }
.g-bar { fill: rgba(122, 75, 42, .12); }
.bg-ck.src circle:first-child { stroke: #F5B335; stroke-width: 4; }
.bg-ck.ghost { opacity: .5; }
.g-dice .die.used { opacity: .25; }
.g-score { display: flex; justify-content: center; gap: 18px; margin: 10px 0 0; font-weight: 600; color: #24484D; }
.g-you, .g-cpu { padding: 4px 14px; border-radius: 999px; background: #fff; }
.g-you { border: 2px solid #FBF6EA; background: #F6EBCB; } .g-cpu { background: #0F7C7C; color: #fff; }
@media (prefers-reduced-motion: reduce) { .g-dot { animation: none; } }

/* ===== משחק: קוביות אמיתיות, הדגשות ותנועה ===== */
.bg-wrap .bg-ck { pointer-events: none; }
.g-wrap { position: relative; overflow: hidden; }
.g-status { min-height: 2.6em; margin: 12px 0 4px; }
.g-stage { display: flex; flex-direction: column; align-items: center; gap: 12px; min-height: 76px; }
.g-dice-row { display: flex; justify-content: center; gap: 14px; min-height: 60px; }
.gdie { width: 58px; height: 58px; padding: 8px; border-radius: 14px; background: #FBF6EA; border: 2px solid #CDB88E; box-shadow: 0 6px 14px -6px rgba(58, 42, 26, .5); display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); transition: opacity .25s, transform .25s; }
.gdie i { display: block; }
.gdie i.p { width: 78%; height: 78%; margin: auto; border-radius: 50%; background: #0B4F57; }
.gdie.used { opacity: .28; transform: scale(.88); }
.gdie.roll { animation: gRoll .16s linear infinite; }
@keyframes gRoll { 0% { transform: rotate(-14deg) translateY(-4px); } 100% { transform: rotate(14deg) translateY(4px); } }
.g-roll { font: inherit; font-size: 1.25rem; font-weight: 700; padding: 14px 34px; border: 0; border-radius: 999px; background: #5C6B2F; color: #fff; cursor: pointer; box-shadow: 0 10px 22px -10px rgba(60, 70, 20, .7); animation: gPulseBtn 1.6s ease-in-out infinite; }
.g-roll:disabled { opacity: .5; animation: none; }
.g-roll[hidden] { display: none; }
@keyframes gPulseBtn { 50% { transform: scale(1.06); } }
.g-ring { fill: none; stroke: #F5B335; stroke-width: 4; animation: gRing 1s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes gRing { 50% { opacity: .35; transform: scale(1.12); } }
.g-dot circle { fill: #2E9E5B; stroke: #fff; stroke-width: 3; cursor: pointer; }
.g-dot text { fill: #fff; font: 700 17px Arial, sans-serif; pointer-events: none; }
.g-dot.hit circle { fill: #D9684F; }
.g-dot.best circle { fill: #F5B335; animation: gRing .8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.g-dot.best text { fill: #3a2a1a; }
.g-hit.on { fill: rgba(245, 179, 53, .22); }
.g-hit.src { fill: rgba(46, 158, 91, .25); }
.g-rec { font-size: .9rem; opacity: .75; align-self: center; }
.g-score { flex-wrap: wrap; align-items: stretch; }
.g-conf { position: absolute; top: -30px; animation: gFall 2.6s ease-in forwards; pointer-events: none; }
@keyframes gFall { to { transform: translateY(520px) rotate(360deg); opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .g-roll, .g-ring, .g-dot.best circle, .gdie.roll { animation: none; } }
/* קוביות: זריקה, סיבוב ונחיתה */
.gdie.roll { animation: none; }
.gdie.toss { animation: gToss .78s cubic-bezier(.3, .6, .4, 1) both; }
@keyframes gToss {
  0% { transform: translate(var(--dx), -90px) rotate(0) scale(.7); opacity: .2; box-shadow: 0 40px 24px -16px rgba(58, 42, 26, .15); }
  45% { transform: translate(calc(var(--dx) * .25), 6px) rotate(calc(var(--rot) * .6)) scale(1.12); opacity: 1; }
  68% { transform: translate(0, -22px) rotate(calc(var(--rot) * .85)) scale(1); }
  86% { transform: translate(0, 3px) rotate(var(--rot)) scale(1.03); }
  100% { transform: translate(0, 0) rotate(var(--rot)) scale(1); }
}
.gdie.land { animation: gLand .38s ease-out; }
@keyframes gLand { 0% { transform: scale(1.18); box-shadow: 0 0 0 0 rgba(245, 179, 53, .8); } 60% { transform: scale(.96); } 100% { transform: scale(1); box-shadow: 0 6px 14px -6px rgba(58, 42, 26, .5), 0 0 0 14px rgba(245, 179, 53, 0); } }
.gdie.used.land { animation: none; }
.gdie { background: linear-gradient(145deg, #FFFDF6, #F1E6CB); }
@media (prefers-reduced-motion: reduce) { .gdie.toss, .gdie.land { animation: none; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.art-sec-first { margin-top: 18px; }

/* אריחי המאמרים: רקע אחד אחיד בצבעי המותג, ופס צבע שונה לכל אריח */
.art-tile { background: #fff; border-top: 6px solid var(--tc, #0F7C7C); box-shadow: 0 14px 30px -22px rgba(7, 58, 64, .6); }
.art-tile-ico { width: 54px; height: 54px; border-radius: 50%; display: grid; place-content: center; font-size: 1.7rem; background: color-mix(in srgb, var(--tc, #0F7C7C) 16%, #fff); }
.art-tile.t1 { --tc: #0F7C7C; } .art-tile.t2 { --tc: #5C6B2F; } .art-tile.t3 { --tc: #8A5A35; }
.art-tile.t4 { --tc: #1FA3A3; } .art-tile.t5 { --tc: #4F8FB8; } .art-tile.t6 { --tc: #B88A3A; }
.art-tile strong { color: #0B4F57; }
