/* ===== קוראים בכיף — עיצוב מחדש: "ספר סיפורים מדבקות" ===== */

@font-face {
  font-family: 'Varela Round';
  src: url('fonts/varela-he.woff2') format('woff2');
  font-weight: 400; font-display: swap;
  unicode-range: U+0590-05FF, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Varela Round';
  src: url('fonts/varela-latin.woff2') format('woff2');
  font-weight: 400; font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: 'Rubik';
  src: url('fonts/rubik700-he.woff2') format('woff2');
  font-weight: 700 900; font-display: swap;
  unicode-range: U+0590-05FF, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Rubik';
  src: url('fonts/rubik700-latin.woff2') format('woff2');
  font-weight: 700; font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: 'Secular One';
  src: url('fonts/secular-he.woff2') format('woff2');
  font-weight: 400; font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Secular One';
  src: url('fonts/secular-latin.woff2') format('woff2');
  font-weight: 400; font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F;
}

:root {
  /* פלטה שטוחה — בלי גרדיאנטים */
  --bg: #FFF6E8;
  --ink: #17352B;
  --ink-soft: #5C6F66;
  --card: #FFFFFF;
  --coral: #FF5A4E;
  --sun: #FFC42E;
  --leaf: #2FBF71;
  --sky: #38A6F3;
  --pink: #FF7BAC;
  --cream-dark: #F3E7CE;
  /* שמות הצבעים שה-JS משתמש בהם */
  --peach: var(--coral);
  --sunny: var(--sun);
  --mint:  var(--leaf);
  --lav:   var(--pink);
  --r-lg: 26px;
  --r-md: 18px;
  --st: 3px solid var(--ink); /* מסגרת מדבקה */
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { direction: rtl; }
body {
  font-family: 'Varela Round', 'Rubik', system-ui, sans-serif;
  background: var(--bg);
  background-image: radial-gradient(rgba(23,53,43,.055) 2.2px, transparent 2.2px);
  background-size: 34px 34px;
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
::selection { background: var(--sun); }

/* צורות רקע שטוחות */
.bg-deco { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-deco .shape { position: absolute; }
.bg-deco .c1 { width: 340px; height: 340px; border-radius: 50%; background: rgba(255,196,46,.28); top: -120px; right: -110px; }
.bg-deco .c2 { width: 260px; height: 260px; border-radius: 50%; background: rgba(56,166,243,.16); bottom: -90px; left: -80px; }
.bg-deco .c3 { width: 150px; height: 150px; border-radius: 40% 60% 55% 45%; background: rgba(255,123,172,.18); top: 46%; left: -50px; }
.bg-deco .c4 { width: 110px; height: 110px; border-radius: 42% 58% 60% 40%; background: rgba(47,191,113,.16); top: 18%; left: 12%; }

.pointed { font-family: 'Rubik', 'Varela Round', sans-serif; font-weight: 700; }
.display { font-family: 'Secular One', 'Rubik', sans-serif; font-weight: 400; }

#app { max-width: 880px; margin: 0 auto; padding: 18px 18px 60px; }
.screen { display: none; }
.screen.on { display: block; animation: screenIn .45s cubic-bezier(.2,1.2,.3,1); }
@keyframes screenIn { from { opacity: 0; transform: translateY(18px) scale(.99); } to { opacity: 1; transform: none; } }

/* ===== כותרת עליונה ===== */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stars-pill {
  background: var(--card); border: var(--st); border-radius: 999px; padding: 7px 18px;
  font-size: 20px; font-weight: 700; box-shadow: 0 4px 0 var(--ink);
  display: flex; align-items: center; gap: 6px;
}
.icon-btn {
  border: var(--st); background: var(--card); width: 52px; height: 52px; border-radius: 16px;
  font-size: 24px; cursor: pointer; box-shadow: 0 4px 0 var(--ink);
  transition: transform .12s, box-shadow .12s;
  font-family: inherit; color: var(--ink);
}
.icon-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }

/* ===== גיבור ===== */
.hero { text-align: center; margin: 34px 0 6px; position: relative; }
.hero h1 {
  font-family: 'Secular One', 'Rubik', sans-serif; font-weight: 400;
  font-size: clamp(46px, 12vw, 96px); margin: 0; line-height: 1.06;
  color: var(--ink);
  text-shadow: 0 4px 0 rgba(23,53,43,.12);
}
/* הדגשת מרקר — המילה "בכיף" על פס צהוב */
.hero h1 .hl {
  position: relative; display: inline-block; padding: 0 .18em; white-space: nowrap;
}
.hero h1 .hl::before {
  content: ''; position: absolute; inset: 12% -2% 4% -2%; z-index: -1;
  background: var(--sun); border-radius: .35em; transform: rotate(-1.5deg);
  box-shadow: 0 3px 0 var(--ink);
}
.hero .underline { display: block; margin: 10px auto 0; width: min(320px, 70vw); }
.hero p { color: var(--ink-soft); font-size: clamp(17px, 3.4vw, 22px); margin: 14px 0 0; font-weight: 700; }

/* אותיות מרחפות סביב הכותרת */
.fchip {
  position: absolute; z-index: -1;
  font-family: 'Rubik', sans-serif; font-weight: 700; color: var(--ink);
  background: var(--card); border: 2.5px solid var(--ink); border-radius: 14px;
  width: 52px; height: 52px; display: grid; place-items: center; font-size: 28px;
  box-shadow: 0 4px 0 var(--ink);
  animation: floaty 5s ease-in-out infinite;
}
.fchip.f1 { top: -14px; right: 4%;  transform: rotate(-8deg); background: #FFE9E6; }
.fchip.f2 { top: 38%;  right: -2%; transform: rotate(6deg);  background: #FFF3D0; animation-delay: -1.4s; }
.fchip.f3 { top: 6%;   left: 3%;   transform: rotate(7deg);  background: #DFF5E9; animation-delay: -2.6s; }
.fchip.f4 { top: 55%;  left: -1%;  transform: rotate(-6deg); background: #E1F0FE; animation-delay: -3.8s; }
@keyframes floaty { 0%,100% { margin-top: 0; } 50% { margin-top: -12px; } }
@media (max-width: 620px) {
  .hero { margin-top: 48px; }
  .fchip { width: 42px; height: 42px; font-size: 23px; border-radius: 12px; }
  .fchip.f1 { top: -26px; right: 3%; }
  .fchip.f3 { top: -26px; left: 3%; }
  .fchip.f2, .fchip.f4 { display: none; }
}

/* ===== מסלול המסע — זיגזג מתפתל ===== */
.path {
  display: flex; flex-direction: column; gap: 26px; margin-top: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='480' viewBox='0 0 240 480'%3E%3Cpath d='M120,0 C200,80 200,160 120,240 C40,320 40,400 120,480' fill='none' stroke='%2317352B' stroke-opacity='.13' stroke-width='7' stroke-linecap='round' stroke-dasharray='1 20'/%3E%3C/svg%3E");
  background-repeat: repeat-y; background-position: center top; background-size: 240px 480px;
}
.world {
  position: relative; border: var(--st); cursor: pointer; text-align: start;
  background: var(--card); border-radius: var(--r-lg); padding: 18px 20px;
  display: flex; align-items: center; gap: 18px;
  box-shadow: 0 6px 0 var(--ink);
  transition: transform .15s, box-shadow .15s;
  font-family: inherit; color: var(--ink);
  width: min(88%, 620px);
  animation: stageIn .5s cubic-bezier(.2,1.2,.3,1) backwards;
}
/* זיגזג: שלבים אי-זוגיים ימינה, זוגיים שמאלה, עם סיבוב קל */
button.world:nth-of-type(odd)  { align-self: flex-start; transform: rotate(-.7deg); }
button.world:nth-of-type(even) { align-self: flex-end;   transform: rotate(.7deg); }
button.world:nth-of-type(1) { animation-delay: .03s; } button.world:nth-of-type(2) { animation-delay: .09s; }
button.world:nth-of-type(3) { animation-delay: .15s; } button.world:nth-of-type(4) { animation-delay: .21s; }
button.world:nth-of-type(5) { animation-delay: .27s; } button.world:nth-of-type(6) { animation-delay: .33s; }
button.world:nth-of-type(7) { animation-delay: .39s; } button.world:nth-of-type(8) { animation-delay: .45s; }
button.world:nth-of-type(n+9) { animation-delay: .5s; }
@keyframes stageIn { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
@media (hover: hover) {
  .world:not(.locked):hover { transform: translateY(-4px) rotate(0deg); box-shadow: 0 10px 0 var(--ink); }
}
.world:active { transform: translateY(3px) scale(.985); box-shadow: 0 2px 0 var(--ink); }
.world .num {
  flex: 0 0 auto; width: 76px; height: 76px; border-radius: 22px;
  display: grid; place-items: center; font-size: 40px;
  border: var(--st); color: #fff;
  transform: rotate(-4deg);
}
.world .num.stage-num { font-family: 'Secular One', 'Rubik', sans-serif; font-size: 36px; }
.world.l1 .num, .world .num.peach { background: var(--coral); }
.world.l2 .num, .world .num.sunny { background: var(--sun); }
.world.l3 .num, .world .num.mint  { background: var(--leaf); }
.world.l4 .num, .world .num.sky   { background: var(--sky); }
.world.l5 .num, .world .num.lav   { background: var(--pink); }
.world .w-title { font-family: 'Secular One', 'Rubik', sans-serif; font-size: clamp(23px, 4.8vw, 30px); }
.world .w-sub { color: var(--ink-soft); font-size: 15px; margin-top: 4px; font-weight: 700; }
.world .w-stars { margin-inline-start: auto; font-size: 20px; letter-spacing: 2px; white-space: nowrap; }
.world.locked { opacity: .55; filter: grayscale(.55); cursor: not-allowed; border-style: dashed; box-shadow: 0 6px 0 rgba(23,53,43,.35); }
.world.locked .num { background: #CFC6B4; }
.world.done { border-color: var(--leaf); box-shadow: 0 6px 0 var(--leaf); }
.world.done .w-stars { display: none; }
.world.done::after {
  content: '✓'; position: absolute; top: -12px; inset-inline-end: -10px;
  width: 34px; height: 34px; border-radius: 50%; background: var(--leaf); color: #fff;
  border: var(--st); display: grid; place-items: center; font-size: 18px; font-weight: 900;
  transform: rotate(8deg);
}

/* כותרות יחידות כבאנרים */
.sec-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 22px 0 -10px; align-self: stretch;
}
.sec-head .sec-ico {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  font-size: 27px; background: var(--card); border: var(--st); box-shadow: 0 4px 0 var(--ink);
  transform: rotate(-4deg); flex: 0 0 auto;
}
.sec-head .sec-title { font-family: 'Secular One', 'Rubik', sans-serif; font-size: clamp(28px, 6vw, 38px); line-height: 1; }
.sec-head .sec-title::after { content: ''; display: block; height: 7px; border-radius: 99px; background: var(--sun); margin-top: 6px; width: 72%; }
.sec-head .sec-sub { color: var(--ink-soft); font-size: 15px; font-weight: 700; flex-basis: 100%; }

.parents-note {
  margin-top: 44px; background: var(--card); border: var(--st); border-radius: var(--r-md);
  padding: 18px 22px; box-shadow: 0 5px 0 var(--ink);
  color: var(--ink-soft); font-size: 14.5px; line-height: 1.75;
}
.parents-note b { color: var(--ink); }

/* ===== מסך שלב ===== */
.level-head { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.level-head h2 { font-family: 'Secular One', 'Rubik', sans-serif; font-size: clamp(34px, 7vw, 48px); margin: 0; }
.games-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 26px; }
@media (min-width: 620px) { .games-grid { grid-template-columns: 1fr 1fr; } }
.game-card {
  border: var(--st); cursor: pointer; text-align: start; font-family: inherit; color: var(--ink);
  background: var(--card); border-radius: var(--r-lg); padding: 18px 20px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: 0 6px 0 var(--ink);
  transition: transform .15s, box-shadow .15s;
  animation: stageIn .45s cubic-bezier(.2,1.2,.3,1) backwards;
}
.game-card:nth-child(2) { animation-delay: .07s; } .game-card:nth-child(3) { animation-delay: .14s; }
.game-card:nth-child(4) { animation-delay: .21s; }
@media (hover: hover) { .game-card:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--ink); } }
.game-card:active { transform: translateY(3px) scale(.98); box-shadow: 0 2px 0 var(--ink); }
.game-card .g-ico {
  flex: 0 0 auto; width: 66px; height: 66px; border-radius: 19px; font-size: 32px;
  display: grid; place-items: center; border: var(--st); transform: rotate(-3deg);
}
.game-card .g-name { font-family: 'Secular One', 'Rubik', sans-serif; font-size: 23px; }
.game-card .g-desc { color: var(--ink-soft); font-size: 14px; margin-top: 3px; font-weight: 700; }
.game-card .g-stars { margin-inline-start: auto; font-size: 18px; white-space: nowrap; }

/* ===== אזור משחק ===== */
.game-wrap { margin-top: 10px; }
.game-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.progress-dots { display: flex; gap: 8px; justify-content: center; margin: 14px 0 20px; }
.progress-dots .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--cream-dark); border: 2.5px solid var(--ink); transition: all .25s; }
.progress-dots .dot.done { background: var(--leaf); transform: scale(1.1); }
.progress-dots .dot.now { background: var(--sun); transform: scale(1.3); animation: dotPulse 1s ease-in-out infinite; }
@keyframes dotPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,196,46,.6); } 50% { box-shadow: 0 0 0 7px rgba(255,196,46,0); } }

.prompt-card {
  background: var(--card); border: var(--st); border-radius: var(--r-lg);
  padding: 28px 20px; text-align: center;
  box-shadow: 0 7px 0 var(--ink);
  margin-bottom: 24px; position: relative;
}
.prompt-label { color: var(--ink-soft); font-size: 17px; font-weight: 700; }
.prompt-big { font-size: clamp(64px, 17vw, 110px); line-height: 1.25; font-weight: 900; }
.prompt-word { font-size: clamp(44px, 11vw, 76px); line-height: 1.4; font-weight: 700; }
.replay-btn {
  border: var(--st); cursor: pointer; font-family: inherit;
  background: var(--sky); color: #fff; font-size: 19px; font-weight: 700;
  border-radius: 999px; padding: 13px 28px; box-shadow: 0 5px 0 var(--ink);
  transition: transform .12s, box-shadow .12s; display: inline-flex; align-items: center; gap: 8px;
}
.replay-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }

.options-grid { display: grid; gap: 15px; grid-template-columns: repeat(2, 1fr); }
.options-grid.cols3 { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 620px) {
  .options-grid { grid-template-columns: repeat(3, 1fr); }
  .options-grid.cols3 { grid-template-columns: repeat(3, 1fr); }
}
.opt {
  border: var(--st); cursor: pointer; font-family: inherit; color: var(--ink);
  background: var(--card); border-radius: var(--r-lg); padding: 18px 8px;
  font-size: clamp(46px, 11vw, 72px); font-weight: 700; line-height: 1.3;
  box-shadow: 0 6px 0 var(--ink);
  transition: transform .12s, box-shadow .12s, opacity .2s, background .15s;
}
@media (hover: hover) { .opt:not(.wrong):not(.correct):hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--ink); } }
.opt:active { transform: translateY(3px) scale(.97); box-shadow: 0 2px 0 var(--ink); }
.opt .opt-sub { display: block; font-size: 15px; font-weight: 400; color: var(--ink-soft); margin-top: 2px; }
.opt.correct { background: #DDF6E8; border-color: var(--leaf); box-shadow: 0 6px 0 var(--leaf); animation: popCorrect .5s cubic-bezier(.2,1.6,.4,1); }
.opt.wrong { background: #FFE7E3; opacity: .55; animation: shake .4s; pointer-events: none; }
@keyframes popCorrect { 0% { transform: scale(1); } 40% { transform: scale(1.1) rotate(-2deg); } 70% { transform: scale(.97) rotate(1deg); } 100% { transform: scale(1); } }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }

/* זיכרון */
.mem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
@media (min-width: 620px) { .mem-grid { grid-template-columns: repeat(4, 1fr); } }
.mem-card {
  aspect-ratio: 1; border: var(--st); cursor: pointer; border-radius: var(--r-md);
  background: var(--sky); font-size: clamp(34px, 9vw, 52px); font-weight: 700;
  color: transparent; font-family: 'Rubik', sans-serif;
  box-shadow: 0 5px 0 var(--ink); transition: all .22s; position: relative;
}
.mem-card::after { content: '❔'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: .6em; }
.mem-card.up { background: var(--card); color: var(--ink); }
.mem-card.up::after { display: none; }
.mem-card.matched { background: #DDF6E8; border-color: var(--leaf); color: var(--ink); pointer-events: none; animation: popCorrect .5s; }
.mem-card.matched::after { display: none; }

/* טבלת ניקוד */
.nikud-tabs { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-bottom: 20px; }
.nikud-tab {
  border: var(--st); cursor: pointer; font-family: 'Rubik', sans-serif; font-weight: 700;
  background: var(--card); border-radius: 15px; padding: 7px 16px; font-size: 30px;
  box-shadow: 0 4px 0 var(--ink); color: var(--ink); transition: all .15s;
}
.nikud-tab.sel { background: var(--leaf); color: #fff; transform: scale(1.08) rotate(-2deg); }
.combo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
@media (min-width: 620px) { .combo-grid { grid-template-columns: repeat(6, 1fr); } }
.combo-cell {
  border: var(--st); cursor: pointer; background: var(--card); border-radius: 17px;
  font-family: 'Rubik', sans-serif; font-weight: 700; font-size: clamp(30px, 8vw, 44px);
  padding: 10px 0; color: var(--ink); box-shadow: 0 4px 0 var(--ink);
  transition: transform .1s, box-shadow .1s;
}
.combo-cell:active { transform: translateY(3px) scale(.95); box-shadow: 0 1px 0 var(--ink); background: #F0FBF5; }
.combo-cell.pulse { animation: popCorrect .45s; background: #DDF6E8; border-color: var(--leaf); }

/* בניית הברה */
.build-area { display: flex; gap: 12px; justify-content: center; margin: 18px 0; min-height: 96px; }
.build-slot {
  min-width: 100px; border: 3px dashed rgba(23,53,43,.4); border-radius: var(--r-md);
  display: grid; place-items: center; font-size: 46px; font-weight: 700;
  font-family: 'Rubik', sans-serif; background: var(--card); padding: 6px 16px;
}
.build-slot.filled { border-style: solid; border-color: var(--leaf); background: #F0FBF5; }
.parts-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.part-btn {
  border: var(--st); cursor: pointer; font-family: 'Rubik', sans-serif; font-weight: 700;
  background: var(--card); border-radius: var(--r-md); padding: 14px 26px; font-size: 44px;
  color: var(--ink); box-shadow: 0 5px 0 var(--ink); transition: transform .12s, box-shadow .12s;
}
.part-btn:active { transform: translateY(3px) scale(.95); box-shadow: 0 2px 0 var(--ink); }
.part-btn.used { opacity: .25; pointer-events: none; }
.part-btn.wrong { background: #FFE7E3; animation: shake .4s; }

/* הברות במילה */
.syl-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 20px 0; }
.syl-chip {
  border: var(--st); cursor: pointer; font-family: 'Rubik', sans-serif; font-weight: 700;
  background: var(--card); border-radius: 17px; padding: 12px 22px; font-size: 40px;
  color: var(--ink); box-shadow: 0 5px 0 var(--ink); transition: all .15s;
}
.syl-chip.read { background: var(--sun); animation: popCorrect .4s; }

/* מירוץ — פס זמן בסטריפס ממתק */
.timer-bar { height: 18px; background: var(--cream-dark); border: var(--st); border-radius: 999px; overflow: hidden; margin: 12px 0 20px; }
.timer-fill {
  height: 100%; border-radius: 999px;
  background: repeating-linear-gradient(45deg, var(--coral) 0 14px, #FF8A7E 14px 28px);
  animation: stripes .8s linear infinite;
  transition: width 1s linear;
}
@keyframes stripes { to { background-position: -40px 0; } }
.score-pill { background: var(--card); border: var(--st); border-radius: 999px; padding: 7px 18px; font-size: 19px; font-weight: 700; box-shadow: 0 4px 0 var(--ink); }
.streak { color: var(--coral); font-weight: 700; font-size: 18px; min-height: 24px; text-align: center; }

/* ===== מסך ניצחון ===== */
.win-overlay {
  position: fixed; inset: 0; background: rgba(23,53,43,.5); z-index: 50;
  display: none; place-items: center; backdrop-filter: blur(4px);
}
.win-overlay.on { display: grid; }
.win-card {
  background: var(--bg); border: 4px solid var(--ink); border-radius: 32px;
  padding: 38px 30px; text-align: center;
  max-width: 350px; width: calc(100% - 48px);
  animation: winIn .55s cubic-bezier(.2,1.5,.35,1);
  box-shadow: 0 10px 0 var(--ink), 0 24px 60px rgba(0,0,0,.25);
}
@keyframes winIn { from { transform: scale(.5) translateY(60px) rotate(-4deg); opacity: 0; } to { transform: none; opacity: 1; } }
.win-card .win-stars { font-size: 54px; letter-spacing: 6px; }
.win-card .win-stars .dim { filter: grayscale(1); opacity: .3; }
.win-card h3 { font-family: 'Secular One', 'Rubik', sans-serif; font-size: 34px; margin: 12px 0 4px; }
.win-card p { color: var(--ink-soft); margin: 0 0 20px; font-size: 17px; font-weight: 700; }
.win-btns { display: flex; gap: 10px; justify-content: center; }
.big-btn {
  border: var(--st); cursor: pointer; font-family: inherit; font-weight: 700; font-size: 19px;
  border-radius: 999px; padding: 14px 26px; color: #fff; transition: transform .12s, box-shadow .12s;
}
.big-btn.again { background: var(--sun); color: var(--ink); box-shadow: 0 5px 0 var(--ink); }
.big-btn.homeb { background: var(--pink); box-shadow: 0 5px 0 var(--ink); }
.big-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }

#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; }

/* ===== תוספות למסלול המלא ===== */
.word-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 20px 0; }
.word-chip {
  border: var(--st); cursor: pointer; font-family: 'Rubik', sans-serif; font-weight: 700;
  background: var(--card); border-radius: 17px; padding: 12px 20px; font-size: clamp(28px, 6.5vw, 38px);
  color: var(--ink); box-shadow: 0 5px 0 var(--ink); transition: all .15s;
}
.word-chip.read { background: var(--sun); animation: popCorrect .4s; }
.opt.sent-opt { font-size: clamp(19px, 4.4vw, 26px); line-height: 1.7; padding: 16px 14px; }
.opt.word-opt { font-size: clamp(30px, 7vw, 44px); }
.opt.race-opt { font-size: clamp(24px, 6vw, 36px); }

/* הפחתת תנועה */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
