/* המשחק הזוגי של זוג וקש"ר · כיוון: חם וחווייתי, בצבעי הלוגו */
:root {
  /* ארבעת צבעי הבסיס (אפשר לשנות באזור הניהול) */
  --ink: #2F4B51;     /* דיו */
  --blue: #FCEBF1;    /* משטחים */
  --yellow: #FFD811;  /* הדגשה ראשית */
  --teal: #F49CC3;    /* הדגשה משנית (ורוד) */

  --bg: color-mix(in srgb, var(--blue) 55%, #fff);
  --paper: #fff;
  --text: var(--ink);
  --muted: color-mix(in srgb, var(--ink) 72%, #fff);
  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  --shadow: 0 18px 45px -22px color-mix(in srgb, var(--ink) 55%, transparent);
  --shadow-y: 0 14px 0 -4px color-mix(in srgb, var(--yellow) 70%, transparent);
  --font-head: 'Rubik', 'Heebo', system-ui, sans-serif;
  --font-body: 'Heebo', system-ui, sans-serif;
  --r: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
main { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
img { max-width: 100%; display: block; }
a { color: inherit; }
mark {
  background: linear-gradient(transparent 55%, var(--yellow) 55%, var(--yellow) 92%, transparent 92%);
  color: inherit;
  padding: 0 .1em;
}
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* כפתורים */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; padding: 0 26px;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 17px;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { min-height: 58px; padding: 0 34px; font-size: 19px; }
.btn--yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 8px 0 -2px color-mix(in srgb, var(--ink) 85%, transparent); }
.btn--pink { background: var(--teal); color: var(--ink); box-shadow: 0 8px 0 -2px color-mix(in srgb, var(--ink) 85%, transparent); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ghost { background: transparent; border-color: currentColor; }
.btn--wa { background: #25D366; color: #0b3b22; }
.btn--mail { background: var(--teal); color: var(--ink); }

.eyebrow {
  display: inline-block;
  padding: 6px 16px; border-radius: 999px;
  background: color-mix(in srgb, #fff 14%, transparent);
  border: 1px solid color-mix(in srgb, #fff 30%, transparent);
  font-weight: 700; font-size: 15px; letter-spacing: .3px;
}
.eyebrow--ink { background: var(--ink); color: var(--blue); border: 0; }
.note { font-size: 15px; color: var(--muted); max-width: 34em; margin-inline: auto; }

/* ראש הדף */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 16px;
  background: var(--ink); color: var(--blue);
}
.top__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.top__logo img { width: 40px; height: 40px; }
.progress { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; max-width: 300px; }
.top__logo { flex: none; }
@media (max-width: 480px) {
  body[data-screen="quiz"] .top__logo span { display: none; }
}
.progress__bar { flex: 1; height: 10px; border-radius: 99px; background: color-mix(in srgb, #fff 18%, transparent); overflow: hidden; }
.progress__bar i { display: block; height: 100%; width: 0; background: var(--yellow); border-radius: 99px; transition: width .4s ease; }
.sound {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%; border: 0; cursor: pointer;
  background: color-mix(in srgb, #fff 12%, transparent); color: var(--yellow);
}
.sound .sound__off { display: none; }
.sound.is-muted { color: color-mix(in srgb, var(--blue) 70%, transparent); }
.sound.is-muted .sound__on { display: none; }
.sound.is-muted .sound__off { display: inline; }
.progress__num { font-family: var(--font-head); font-weight: 700; font-size: 16px; white-space: nowrap; direction: ltr; }

/* הבמה */
main { position: relative; }
body[data-screen="intro"] main { background: var(--ink); color: var(--blue); }
body[data-screen="intro"] .note { color: color-mix(in srgb, var(--blue) 75%, transparent); }

.screen { display: none; padding: 0 16px 48px; text-align: center; }
.screen.is-on { display: block; animation: rise .45s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* הדמויות */
.duo { position: relative; width: 210px; margin: 0 auto; padding-top: 70px; }
.duo__svg { width: 100%; height: auto; overflow: visible; }
.duo__y, .duo__p { transform-box: fill-box; transform-origin: 50% 100%; }
.duo__y { animation: bob 3.2s ease-in-out infinite; }
.duo__p { animation: bob 3.2s ease-in-out -1.6s infinite; }
.duo__pupil { transition: transform .2s ease-out; transform-box: fill-box; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-2deg); } }
.duo--b .duo__y { animation: hop .7s ease both, bob 3.2s ease-in-out .7s infinite; }
.duo--b .duo__p { animation: spin .8s ease both, bob 3.2s ease-in-out .8s infinite; }
.duo--a .duo__y, .duo--a .duo__p { animation: nod .6s ease both, bob 3.2s ease-in-out .6s infinite; }
@keyframes hop { 30% { transform: translateY(-34px) rotate(-12deg); } 60% { transform: translateY(0) rotate(6deg); } }
@keyframes spin { 40% { transform: translateY(-24px) rotate(200deg); } 100% { transform: rotate(360deg); } }
@keyframes nod { 40% { transform: rotate(8deg); } 70% { transform: rotate(-4deg); } }

.bubble {
  position: absolute; top: 4px; inset-inline-start: 50%;
  transform: translateX(50%);
  min-width: 150px; max-width: 230px;
  padding: 8px 16px;
  background: #fff; color: var(--ink);
  border-radius: 20px;
  font-family: var(--font-head); font-weight: 700; font-size: 16px; line-height: 1.3;
  box-shadow: var(--shadow);
  white-space: nowrap;
}
.bubble::after {
  content: ''; position: absolute; bottom: -9px; inset-inline-start: 50%;
  width: 18px; height: 18px; background: #fff;
  transform: translateX(50%) rotate(45deg); border-radius: 3px;
}
.bubble__text { display: block; animation: pop .35s ease both; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }

/* פתיחה */
body[data-screen="intro"] .duo { width: 230px; }
.screen--intro { padding-bottom: 64px; position: relative; }
.free {
  display: none;
  position: absolute; top: 58px; left: -78px; z-index: 2;
  place-items: center;
  width: 84px; height: 84px; border-radius: 50%;
  background: #fff; color: var(--ink); border: 3px solid var(--yellow);
  font-family: var(--font-head); font-weight: 800; font-size: 22px;
  transform: rotate(12deg);
  box-shadow: 0 10px 0 -3px color-mix(in srgb, #000 35%, transparent);
  animation: wiggle 2.6s ease-in-out infinite;
}
body[data-screen="intro"] .free { display: grid; }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(12deg); } 86% { transform: rotate(4deg) scale(1.08); } 93% { transform: rotate(18deg) scale(1.08); } }

/* מייל לפני המשחק */
.gate { max-width: 420px; margin: 0 auto 18px; display: grid; gap: 12px; text-align: right; }
.gate__field { display: grid; gap: 8px; font-weight: 700; font-size: 17px; color: #fff; }
.gate__field input {
  min-height: 54px; padding: 0 16px; border-radius: 16px; border: 2px solid transparent;
  background: #fff; color: var(--ink); font: inherit; font-weight: 500; font-size: 17px; text-align: left; width: 100%;
}
.gate__field input:focus { outline: none; border-color: var(--yellow); }
.gate__ok { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; cursor: pointer; }
.gate__ok input { width: 22px; height: 22px; margin-top: 1px; flex: none; accent-color: var(--yellow); }
.gate__btn { width: 100%; margin-top: 4px; }
.gate__msg { min-height: 1.4em; color: var(--yellow); font-weight: 700; text-align: center; }
.screen--intro .eyebrow { margin-top: 18px; }
.intro__title { font-size: clamp(40px, 11vw, 72px); font-weight: 800; letter-spacing: -.7px; margin: 14px 0 14px; color: #fff; }
.intro__title mark { color: var(--ink); background: var(--yellow); border-radius: 12px; padding: 0 .18em; display: inline-block; transform: rotate(-3deg); }
.intro__lead { font-size: 19px; max-width: 30em; margin: 0 auto 28px; }
.screen--intro > .btn { margin-bottom: 22px; }

/* שאלות */
.q, .labels { display: none; }
body[data-screen="quiz"] .duo { width: 150px; padding-top: 62px; }
.card {
  max-width: 640px; margin: 8px auto 0;
  background: var(--paper);
  border-radius: var(--r);
  padding: 26px 18px 20px;
  box-shadow: var(--shadow), var(--shadow-y);
  text-align: right;
}
.card--in { animation: deal .45s cubic-bezier(.2,.8,.3,1.2) both; }
@keyframes deal { from { opacity: 0; transform: translateX(-40px) rotate(-4deg); } }
.card__tag {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--teal) 35%, #fff);
  font-weight: 700; font-size: 15px;
}
.card__title { font-size: clamp(22px, 5.6vw, 30px); font-weight: 700; margin: 12px 0 20px; outline: none; }
.choices { display: grid; gap: 14px; }
.choice {
  display: flex; flex-direction: column; align-items: stretch; gap: 6px;
  width: 100%; text-align: right;
  padding: 18px 18px 18px; border-radius: 20px;
  border: 2px solid var(--line);
  background: color-mix(in srgb, var(--blue) 45%, #fff);
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.choice:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--ink); box-shadow: var(--shadow); }
.choice:disabled { cursor: default; }
.choice__label { font-family: var(--font-head); font-size: 19px; font-weight: 800; }
.choice__note { font-size: 15px; color: var(--muted); font-weight: 500; }
.choice__text { font-size: 16.5px; line-height: 1.55; }
.choice__or {
  align-self: center; font-family: var(--font-head); font-weight: 700; font-size: 14px;
  padding: 0 12px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 10%, transparent);
}
.choice--b { background: color-mix(in srgb, var(--yellow) 22%, #fff); border-color: color-mix(in srgb, var(--yellow) 80%, var(--ink) 10%); }
.choice--a .choice__label::before, .choice--b .choice__label::before {
  content: ''; display: inline-block; width: 14px; height: 14px; margin-inline-end: 8px;
  border-radius: 50%; border: 2px solid var(--ink); vertical-align: 1px;
}
.choice.is-picked { border-color: var(--ink); box-shadow: 0 0 0 3px var(--ink); }
.choice.is-picked .choice__label::before { background: var(--ink); box-shadow: inset 0 0 0 2px #fff; }
.choice:disabled:not(.is-picked) { opacity: .45; }
.back {
  margin-top: 18px; min-height: 44px; padding: 0 16px;
  background: none; border: 0; text-decoration: underline; text-underline-offset: 4px;
  color: var(--muted); cursor: pointer; font-weight: 500;
}

/* תוצאה */
body[data-screen="result"] .duo { width: 170px; }
.score { position: relative; width: 170px; height: 170px; margin: 10px auto 6px; }
.score__ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.score__track { fill: none; stroke: color-mix(in srgb, var(--ink) 10%, transparent); stroke-width: 12; }
.score__fill { fill: none; stroke: var(--teal); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.3,.8,.3,1); }
.score__num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 4px; direction: ltr; font-family: var(--font-head); }
.score__num b { font-size: 62px; font-weight: 800; }
.score__num span { font-size: 22px; font-weight: 700; color: var(--muted); }
.score__label { font-weight: 700; margin-bottom: 22px; }
.res { max-width: 640px; margin: 0 auto 18px; text-align: right; display: grid; gap: 14px; }
.res__title { font-size: clamp(28px, 7vw, 42px); font-weight: 800; text-align: center; margin-bottom: 6px; }
.res p { font-size: 18px; }
.news { display: grid; gap: 12px; }
.news__box { padding: 18px; border-radius: 20px; background: var(--paper); border: 2px solid var(--line); }
.news__box--good { background: color-mix(in srgb, var(--yellow) 25%, #fff); border-color: transparent; }
.news__box b { font-family: var(--font-head); font-size: 19px; display: block; margin-bottom: 4px; }
.screen--result .note { margin-bottom: 22px; }
.share { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* איך ממשיכים */
.next {
  background: var(--paper);
  border-radius: 40px 40px 0 0;
  padding: 48px 16px 56px;
  text-align: center;
}
.next__title { font-size: clamp(30px, 7.5vw, 46px); font-weight: 800; margin: 14px 0 12px; }
.next__lead { font-size: 18px; color: var(--muted); max-width: 32em; margin: 0 auto 30px; }
.paths { display: grid; gap: 20px; max-width: 1100px; margin: 0 auto; }
.path {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  text-align: right; padding: 26px 20px 22px; border-radius: var(--r);
  background: var(--bg); box-shadow: var(--shadow);
}
.path h3 { font-size: 26px; font-weight: 800; }
.path__num {
  position: absolute; top: -14px; inset-inline-start: 18px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 19px;
  background: var(--ink); color: var(--yellow);
}
.path__badge { align-self: flex-start; padding: 3px 12px; border-radius: 99px; background: var(--ink); color: var(--yellow); font-weight: 700; font-size: 14px; }
.path--course { background: color-mix(in srgb, var(--yellow) 30%, #fff); }
.path--game { background: color-mix(in srgb, var(--teal) 25%, #fff); }
.path__hint { font-weight: 700; padding: 10px 14px; border-radius: 14px; background: color-mix(in srgb, #fff 70%, transparent); }
.path__img { width: 100%; max-width: 260px; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 18px; border: 4px solid #fff; transform: rotate(-3deg); box-shadow: var(--shadow); align-self: center; }
.path__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
.path__btns .btn { flex: 1 1 auto; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ticks li { position: relative; padding-inline-start: 28px; }
.ticks li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: .35em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F4B51' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.price { display: flex; align-items: baseline; gap: 12px; font-family: var(--font-head); }
.price b { font-size: 34px; font-weight: 800; }
.price s { color: var(--muted); font-size: 19px; }

/* טופס */
.lead {
  position: relative;
  max-width: 560px; margin: 44px auto 0;
  padding: 30px 20px 26px; border-radius: var(--r);
  background: var(--ink); color: var(--blue);
  text-align: right; display: grid; gap: 14px;
}
#lead { position: absolute; top: -90px; }
.lead__title { font-size: 28px; font-weight: 800; color: #fff; }
.lead__field { display: grid; gap: 6px; font-weight: 500; }
.lead__field input, .lead__field select {
  min-height: 52px; padding: 0 16px; border-radius: 14px;
  border: 2px solid transparent; background: #fff; color: var(--ink);
  font: inherit; font-size: 17px; width: 100%;
}
.lead__field input:focus, .lead__field select:focus { outline: none; border-color: var(--yellow); }
.lead__field input[dir="ltr"] { text-align: right; }
.lead__trap { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lead__submit { width: 100%; margin-top: 4px; box-shadow: none; }
.lead__msg { min-height: 1.4em; font-weight: 500; }
.lead__msg--bad { color: var(--yellow); }
.lead__done { font-size: 20px; font-weight: 700; color: var(--yellow); }

/* תחתית */
.foot { background: var(--ink); color: var(--blue); text-align: center; padding: 36px 16px 40px; display: grid; gap: 8px; justify-items: center; }
.foot__logo { width: 160px; height: auto; }
.foot__links a, .foot__small a { color: var(--blue); }
.foot__small { font-size: 15px; opacity: .8; }
body[data-screen="intro"] .foot { border-top: 1px solid color-mix(in srgb, #fff 12%, transparent); }

/* מחשב */
@media (min-width: 760px) {
  .top { padding: 12px 32px; }
  .card { padding: 36px 34px 28px; }
  .choices { grid-template-columns: 1fr 1fr; }
  .news { grid-template-columns: 1fr 1fr; }
  .paths { grid-template-columns: repeat(3, 1fr); }
  .next { padding: 70px 32px 80px; border-radius: 60px 60px 0 0; }
  .lead { padding: 38px 36px 32px; }
  body[data-screen="intro"] .duo { width: 280px; }
}

/* אזור הניהול פתוח במחשב */
@media (min-width: 1100px) {
  .adm-open .top { margin-left: 0; }
}

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