/* 9 Nov 2026 — ״תקנו אותי. נראה אתכם״ (fix.js): a twilight-blue sky full of slowly rising balloons;
   the sentence on a cream banner pinned up by two balloons; the right value is a balloon to pop. */
.fix-game {
  position: fixed; inset: 0; z-index: 75; overflow: hidden; color: #fff8ec; font-family: Arial, "Arial Hebrew", sans-serif;
  background: radial-gradient(120% 70% at 50% 110%, #f6c77a 0%, #c7708a 30%, #4b3a7a 62%, #1d1f4a 100%);
  display: flex; justify-content: center; animation: fix-in .35s ease both;
}
@keyframes fix-in { from { opacity: 0; } }
body.fix-open { overflow: hidden; }
.fix-sky { position: absolute; inset: 0; pointer-events: none; }
.fix-sky img { position: absolute; left: var(--x); bottom: -35vh; width: var(--w); height: auto; opacity: .5; filter: blur(1.5px) drop-shadow(0 8px 12px rgba(0,0,0,.3));
  animation: fix-float var(--d) linear calc(var(--i) * -1.7s) infinite; }
@keyframes fix-float { from { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-75vh) rotate(5deg); } to { transform: translateY(-150vh) rotate(-3deg); } }
.fix-body { position: relative; z-index: 1; width: min(100%, 900px); height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: max(14px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); }
/* the cream banner, held by two balloons at its corners */
.fix-card { position: relative; width: min(100%, 760px); background: linear-gradient(#fffdf7, #f7ead0); color: #3a1d24; border-radius: 26px;
  border: 4px solid #e2b04a; box-shadow: 0 0 0 3px rgba(255, 236, 180, .6), 0 18px 40px rgba(20, 10, 40, .45); padding: 34px 26px 22px; text-align: center; }
.fix-pins::before, .fix-pins::after { content: ''; position: absolute; top: -78px; width: 64px; height: 96px; border-radius: 50% 50% 46% 46% / 55% 55% 45% 45%;
  background: radial-gradient(circle at 35% 30%, #fff 0 6%, #ffd0de 15%, #ff7aa2 55%, #c43d6a 100%); box-shadow: inset -6px -8px 14px rgba(120, 0, 40, .3); animation: fix-bob 3s ease-in-out infinite alternate; }
.fix-pins::before { right: 18px; }
.fix-pins::after { left: 18px; background: radial-gradient(circle at 35% 30%, #fff 0 6%, #fff1b8 15%, #f6c24a 55%, #b27a12 100%); animation-delay: -1.5s; }
.fix-card > .fix-pins { position: absolute; inset: 0; pointer-events: none; }
@keyframes fix-bob { to { transform: translateY(-6px) rotate(3deg); } }
.fix-eyebrow { font-weight: 800; color: #9b5a1a; letter-spacing: 1px; font-size: clamp(14px, 2.6vw, 19px); }
.fix-title { margin: 6px 0 8px; font-size: clamp(36px, 7.4vw, 64px); line-height: 1.02; font-weight: 900; color: #4b2a6a; }
.fix-title span { color: #c43d6a; }
.fix-sub { margin: 0 0 18px; font-size: clamp(17px, 3vw, 22px); font-weight: 700; }
.fix-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fix-go, .fix-how { width: min(100%, 420px); min-height: 60px; border-radius: 999px; font-family: inherit; font-weight: 900; font-size: clamp(20px, 4vw, 28px); line-height: 1; cursor: pointer; }
.fix-go { background: linear-gradient(#ff9ab8, #e2557f); color: #fff; border: 3px solid #fff; box-shadow: 0 8px 20px rgba(120, 20, 60, .35); }
.fix-how { min-height: 50px; background: #fff; color: #4b2a6a; border: 3px solid #e2b04a; font-size: clamp(17px, 3vw, 21px); }
.fix-rules-box, .fix-end-wrap { position: fixed; inset: 0; z-index: 5; background: rgba(20, 10, 40, .55); display: flex; align-items: center; justify-content: center; padding: 18px; animation: fix-in .25s ease both; }
.fix-rules { text-align: right; margin: 8px 0 16px; padding-right: 22px; font-size: 18px; line-height: 1.5; font-weight: 600; }
.fix-card h2 { margin: 0 0 6px; font-size: 30px; color: #4b2a6a; }
/* playing */
.fix-hud { width: min(100%, 760px); display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 800; }
.fix-hud-title { font-size: clamp(22px, 4vw, 30px); text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.fix-left { background: rgba(0,0,0,.25); border-radius: 999px; padding: 6px 14px; font-size: 18px; }
.fix-lives { font-size: 26px; letter-spacing: 3px; }
.fix-lives i { font-style: normal; } .fix-lives .off { opacity: .6; }
.fix-lives.hit { animation: fix-hit .5s ease; }
@keyframes fix-hit { 30% { transform: scale(1.3) rotate(-6deg); } 60% { transform: scale(.92); } }
.fix-time { position: relative; width: min(100%, 760px); height: 24px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.7); }
.fix-time i { position: absolute; inset: 0 auto 0 0; width: 100%; background: linear-gradient(90deg, #ff9ab8, #ffe08a); transition: width .1s linear; }
.fix-time span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; color: #3a1d24; font-size: 15px; }
.fix-game.hurry .fix-time i { background: linear-gradient(90deg, #e2333a, #ff9a5a); }
.fix-banner { margin-top: 60px; padding-top: 22px; }
.fix-hint { margin: 0 0 10px; font-weight: 800; color: #9b5a1a; font-size: 17px; }
.fix-sentence { margin: 0; font-size: clamp(22px, 3.6vw, 36px); line-height: 1.65; font-weight: 800; text-align: right; max-height: 40dvh; overflow-y: auto; }
.fix-word { cursor: pointer; border-radius: 8px; padding: 0 2px; transition: background .2s; -webkit-tap-highlight-color: transparent; }
.fix-word:active { background: rgba(75, 42, 106, .1); }
.fix-word.nope { animation: fix-nope .45s ease; background: rgba(226, 51, 58, .15); }
@keyframes fix-nope { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.fix-swap.found { background: #ffe0e8; color: #c43d6a; text-decoration: line-through; text-decoration-thickness: 3px; animation: fix-nope .45s ease; }
.fix-swap.fixed { background: #dff3d8; color: #2e6b3e; text-decoration: none; }
.fix-swap.just { animation: fix-pop .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes fix-pop { from { transform: scale(.6); } }
.fix-options { width: min(100%, 760px); min-height: 200px; text-align: center; }
.fix-ask { margin: 0 0 6px; font-size: 20px; font-weight: 800; text-shadow: 0 2px 6px rgba(0,0,0,.35); }
.fix-balloons { display: flex; justify-content: center; gap: clamp(10px, 3vw, 30px); }
.fix-balloon { position: relative; display: flex; flex-direction: column; align-items: center; width: clamp(100px, 24vw, 170px); background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit;
  animation: fix-rise .8s cubic-bezier(.2, .8, .3, 1.1) calc(var(--k) * .12s) both, fix-bob 2.6s ease-in-out calc(var(--k) * -.8s) infinite alternate; }
@keyframes fix-rise { from { transform: translateY(60vh); opacity: 0; } }
.fix-balloon img { height: clamp(90px, 18vh, 150px); width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0,0,0,.35)); }
.fix-plain { width: clamp(80px, 16vw, 120px); aspect-ratio: .82; border-radius: 50% 50% 46% 46% / 55% 55% 45% 45%;
  background: radial-gradient(circle at 34% 28%, #fffef6 0 6%, #ffeeb8 14%, #f6cc6a 48%, #d9a033 78%, #b97d1e 100%); box-shadow: inset -10px -12px 20px rgba(140, 80, 10, .35), 0 10px 18px rgba(0,0,0,.3); }
.fix-balloon b { margin-top: 6px; background: #fffdf7; color: #3a1d24; border: 2px solid #e2b04a; border-radius: 14px; padding: 5px 10px; font-size: clamp(15px, 2.4vw, 20px); line-height: 1.2; }
.fix-balloon.popped { animation: fix-popped .4s ease-out forwards; }
@keyframes fix-popped { to { transform: scale(1.5); opacity: 0; filter: blur(3px); } }
.fix-balloon.wrong { animation: fix-nope .4s ease, fix-fade .6s ease .3s forwards; }
@keyframes fix-fade { to { opacity: .3; filter: grayscale(1); } }
.fix-burst { position: fixed; z-index: 6; width: 0; height: 0; pointer-events: none; }
.fix-burst i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle, #fff, #ff9ab8); animation: fix-spark .8s ease-out forwards; }
.fix-burst i:nth-child(2n) { background: radial-gradient(circle, #fff, #ffe08a); }
@keyframes fix-spark { to { transform: rotate(var(--a)) translateY(calc(-1 * var(--d))) scale(.2); opacity: 0; } }
/* the end */
.fix-end h2 { font-size: clamp(26px, 5vw, 36px); }
.fix-end.lose h2 { color: #b23a33; }
.fix-full { font-size: 18px; line-height: 1.5; margin: 8px 0; text-align: right; background: #fff; border-radius: 14px; padding: 10px 14px; max-height: 30dvh; overflow-y: auto; }
.fix-out { font-size: 20px; font-weight: 800; margin: 6px 0 14px; }
.fix-candle { position: relative; height: 140px; aspect-ratio: 260 / 1089; margin: 0 auto 6px; }
.fix-candle img { position: absolute; inset: 0; width: 100%; height: 100%; }
.fix-candle .w { animation: wick-burn 1s ease .6s both; }
.fix-candle .f { transform-origin: 50% 33%; filter: drop-shadow(0 0 12px rgba(255, 180, 60, .8)); animation: flame-ignite 1.1s cubic-bezier(.2, 1.5, .4, 1) .55s both, flame-flicker 2.4s ease-in-out 1.7s infinite; }
@media (orientation: landscape) and (max-height: 700px) { .fix-banner { margin-top: 40px; } .fix-sentence { max-height: 28dvh; } }
@media (prefers-reduced-motion: reduce) { .fix-sky img, .fix-balloon, .fix-pins::before, .fix-pins::after { animation: none; } }

body.cake-layout .round-panel .round-controls > .fix-next-btn { background: linear-gradient(#ff9ab8, #e2557f) !important; color: #fff !important; border: 4px solid #fff !important; border-radius: 999px; box-shadow: 0 8px 18px rgba(120, 20, 60, .35) !important; }

/* ===== 9 Nov 2026 (2): the rose world — the pink background with its light, the pink cake carries the
   sentence, and every button, bar and card in rose, cream and a thin gold line ===== */
.fix-game { background: #c7607a url(assets/fix/bg-pink.jpg) center / cover no-repeat; color: #5a1a2c; }
.fix-sky img { opacity: .35; }
.fix-card { background: linear-gradient(#fff6f7, #ffe3e8); color: #5a1a2c; border: 3px solid #fff; box-shadow: 0 0 0 2px #d9a35c, 0 16px 34px rgba(120, 30, 60, .3); }
.fix-title { color: #8e2443; } .fix-title span { color: #d9567a; }
.fix-eyebrow { color: #b3664a; }
.fix-card h2 { color: #8e2443; }
.fix-go { background: linear-gradient(#f59ab0, #d25677); color: #fff; border: 3px solid #fff; box-shadow: 0 0 0 2px #d9a35c, 0 8px 18px rgba(140, 30, 70, .35); text-shadow: 0 1px 0 rgba(120, 20, 50, .4); }
.fix-how { background: #fff; color: #8e2443; border: 3px solid #f2b6c4; box-shadow: 0 0 0 2px #d9a35c; }
.fix-intro-cake { display: block; height: clamp(120px, 22vh, 220px); width: auto; margin: -10px auto 6px; filter: drop-shadow(0 10px 14px rgba(120, 30, 60, .3)); animation: fix-bob 3s ease-in-out infinite alternate; }
/* HUD, time bar and hearts */
.fix-hud-title { color: #fff; text-shadow: 0 2px 6px rgba(120, 20, 50, .45); }
.fix-left { background: rgba(255, 255, 255, .75); color: #8e2443; border: 2px solid #fff; box-shadow: 0 0 0 1.5px #d9a35c; }
.fix-time { background: rgba(255, 255, 255, .45); border: 2px solid #fff; box-shadow: 0 0 0 1.5px #d9a35c; }
.fix-time i { background: linear-gradient(90deg, #f59ab0, #ffd6de); }
.fix-time span { color: #8e2443; }
.fix-game.hurry .fix-time i { background: linear-gradient(90deg, #c2304f, #f07a8f); }
/* the cake with the sentence */
.fix-cake { position: relative; height: min(50dvh, 92vw * 1.325); aspect-ratio: 846 / 1121; flex: none; }
.fix-cake-img { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 14px 22px rgba(110, 20, 50, .35)); }
.fix-cake-text { position: absolute; left: 12%; width: 76%; top: 24%; height: 40%; display: flex; flex-direction: column; justify-content: center; overflow-y: auto; }
.fix-cake .fix-hint { color: #b3664a; font-size: clamp(13px, 1.9dvh, 17px); margin: 0 0 4px; text-align: center; }
.fix-cake .fix-sentence { font-size: clamp(16px, 2.6dvh, 28px); line-height: 1.5; color: #5a1a2c; text-align: center; max-height: none; }
.fix-swap.found { background: #fff; color: #c2304f; }
.fix-swap.fixed { background: #fff; color: #2e7d4f; }
.fix-word:active { background: rgba(255, 255, 255, .6); }
/* the answer balloons */
.fix-ask { color: #fff; text-shadow: 0 2px 6px rgba(120, 20, 50, .45); }
.fix-balloon b { background: #fff; color: #8e2443; border: 2px solid #f2b6c4; box-shadow: 0 0 0 1.5px #d9a35c; }
.fix-plain { background: radial-gradient(circle at 34% 28%, #fff 0 6%, #ffd6de 16%, #f59ab0 50%, #d25677 80%, #a83a5a 100%); box-shadow: inset -10px -12px 20px rgba(120, 20, 50, .3), 0 10px 18px rgba(120, 20, 50, .3); }
.fix-options { min-height: 0; }
.fix-full { background: #fff; border: 2px solid #f2b6c4; }
.fix-end.lose h2 { color: #c2304f; }
.fix-rules-box, .fix-end-wrap { background: rgba(120, 30, 60, .35); }
@media (orientation: landscape) {
  .fix-body { flex-direction: row; flex-wrap: wrap; align-content: center; }
  .fix-hud, .fix-time { flex: 0 0 100%; }
  .fix-cake { height: min(66dvh, 46vw * 1.325); }
  .fix-options { flex: 1 1 300px; width: auto; }
  .fix-balloons { flex-wrap: wrap; }
  .fix-intro-cake { height: 18vh; }
}
body.cake-layout .round-panel .round-controls > .fix-next-btn { background: linear-gradient(#f59ab0, #d25677) !important; box-shadow: 0 0 0 2px #d9a35c, 0 8px 18px rgba(140, 30, 70, .35) !important; }

/* 9 Nov 2026 (3): the same type as the rest of the game (system font, the same sizes as the sentence and
   the buttons on the cake screens), and a bigger cake sitting lower, where there is room */
.fix-game { --fu: calc(min(100vw, 100dvh * 0.5628) / 100); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
.fix-game button, .fix-go, .fix-how { font-family: inherit; }
.fix-cake .fix-sentence { font-size: calc(4.6 * var(--fu)); line-height: 1.3; font-weight: 800; color: #321b24; }
.fix-cake .fix-hint { font-size: calc(2.6 * var(--fu)); font-weight: 800; }
.fix-go { font-size: calc(5 * var(--fu)); font-weight: 800; min-height: calc(11.5 * var(--fu)); }
.fix-how { font-size: calc(3.8 * var(--fu)); font-weight: 800; }
.fix-hud-title { font-size: calc(5 * var(--fu)); }
.fix-left { font-size: calc(3.2 * var(--fu)); }
.fix-time span { font-size: calc(2.6 * var(--fu)); }
.fix-ask { font-size: calc(3.8 * var(--fu)); }
.fix-balloon b { font-size: calc(3.6 * var(--fu)); font-weight: 800; }
.fix-title { font-size: calc(9 * var(--fu)); }
.fix-sub, .fix-out { font-size: calc(3.8 * var(--fu)); }
.fix-rules, .fix-full { font-size: calc(3.4 * var(--fu)); }
.fix-card h2 { font-size: calc(6 * var(--fu)); }
@media (orientation: portrait) {
  .fix-body { justify-content: flex-start; gap: 10px; }
  .fix-cake { height: min(64dvh, 94vw * 1.325); margin-top: auto; }
  .fix-options { min-height: 22dvh; margin-bottom: 1dvh; }
  .fix-cake-text { left: 11%; width: 78%; top: 23%; height: 42%; }
}
@media (orientation: landscape) {
  .fix-game { --fu: calc(min(100vw, 177.7dvh) / 100 * .52); }
  .fix-cake { height: min(80dvh, 48vw * 1.325); }
}
/* 15 Nov 2026 (user): ״הבנו״ under the rules sits in the middle, like the title ״איך משחקים?״ */
.fix-rules-box .fix-card { text-align: center; }
.fix-rules-box .fix-card .fix-rules { text-align: start; }
.fix-rules-box .fix-card > .fix-go { display: block; margin-inline: auto; align-self: center; }
