/* Pisaczek Rozrywka — Konfitury (R26). Marker: PNP_PISACZEK_GAMES_JAM_CSS_V1. KF1 (21.11.2026). Układ strony jak w Piłkarzykach (soccer-v1.css), plansza na drewnianej tacy. */
.gm-jm .gm-ghost { background: rgba(255,255,255,.04); color: var(--gm-ink); border: 1px solid rgba(227,196,106,.45); }
.gm-jm .gm-btn, .gm-jm .gm-btn:hover { transform: none; } .gm-jm .gm-btn { min-height: 54px; font-size: 18px; gap: 8px; }
.gm-jm .gm-btn svg { width: 22px; height: 22px; } .gm-jm .gm-btn:disabled { opacity: .5; cursor: default; }
.jm-tabs { align-self: flex-start; display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 20px; background: rgba(6,12,36,.55); border: 1px solid rgba(227,196,106,.35); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 30px rgba(0,0,0,.4); }
.jm-tabs button { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 22px; border-radius: 15px; border: 1px solid transparent; background: transparent; color: var(--gm-ink); font: inherit; font-size: 19px; font-weight: 700; cursor: pointer; }
.jm-tabs button svg { width: 22px; height: 22px; } .jm-tabs button:hover { background: rgba(227,196,106,.12); color: var(--gm-gold3); }
.jm-tabs button[aria-pressed="true"] { color: #15120A; background: linear-gradient(180deg, var(--gm-gold3), var(--gm-gold) 55%, var(--gm-gold2)); }
.jm-pane[hidden], .jm-pane [hidden], .gm-jm [hidden] { display: none !important; }
.jm-muted { color: var(--gm-mute); font-size: 17px; } .jm-lead { color: var(--gm-mute); font-size: 19px; line-height: 1.5; margin: 0 0 14px; }
.jm-h2 { font-size: 26px; margin: 0 0 12px; color: var(--gm-gold3); }
.jm-row2 { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.jm-now { padding: 16px 18px; border-radius: 16px; border: 2px solid var(--gm-gold); background: rgba(6,12,36,.7); }
.jm-now b { display: block; font-size: 18px; color: var(--gm-gold3); margin-bottom: 4px; } .jm-now p { margin: 0; font-size: 20px; line-height: 1.45; min-height: 1.45em; }
.jm-nowM { display: none; margin: 0; padding: 10px 14px; border-radius: 14px; border: 2px solid var(--gm-gold); background: rgba(6,12,36,.75); font-size: 18px; line-height: 1.4; }
.jm-nowM:empty { display: none !important; }
.jm-finM { display: none !important; }

.jm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.jm-work { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.jm-side { display: flex; flex-direction: column; gap: 14px; }
.jm-topbar { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 19px; }
.jm-topbar b { font-size: 21px; color: var(--gm-gold3); } .jm-metaSeg { white-space: nowrap; }


/* Graj — poziomy */
.jm-levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.jm-lvl { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px; min-height: 200px; border-radius: 18px; border: 1.5px solid rgba(227,196,106,.4); background: rgba(6,12,36,.62); color: var(--gm-ink); font: inherit; text-align: start; cursor: pointer; }
.jm-lvl:hover { border-color: var(--gm-gold); background: rgba(227,196,106,.1); } .jm-lvl[aria-pressed="true"] { border: 2px solid var(--gm-gold); }
.jm-lvlName { font-size: 21px; color: var(--gm-gold3); } .jm-lvlD { font-size: 17px; color: var(--gm-mute); line-height: 1.35; }
.jm-lvlDone { font-size: 17px; font-weight: 700; color: #8FE3D8; margin-top: auto; } .jm-lvlPts { font-size: 15px; color: var(--gm-gold3); }
.jm-lvlArt { display: block; height: 64px; } .jm-mini { width: 64px; height: 64px; display: block; border-radius: 14px; box-shadow: 0 6px 16px rgba(0,0,0,.4); }
.jm-note { margin-top: 14px; }
.jm-cont { display: flex; align-items: center; gap: 18px; padding: 18px 20px; margin-bottom: 22px; border-radius: 18px; border: 2px solid var(--gm-gold); background: rgba(6,12,36,.7); }
.jm-cont b { font-size: 21px; color: var(--gm-gold3); } .jm-cont p { margin: 4px 0 0; font-size: 18px; } .jm-cont > div { flex: 1; }
.jm-contArt { width: 50px; height: 50px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(227,196,106,.16); color: var(--gm-gold3); } .jm-contArt svg { width: 34px; height: 34px; }
.jm-lvBar { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin-bottom: 12px; } .jm-lvBar::-webkit-scrollbar { display: none; }
.jm-lvBar button { flex: 0 0 auto; min-height: 48px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid rgba(227,196,106,.45); background: rgba(6,12,36,.6); color: var(--gm-ink); font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.jm-lvBar button small { color: var(--gm-mute); font-weight: 600; } .jm-lvBar button[aria-pressed="true"] { color: #15120A; background: linear-gradient(180deg, var(--gm-gold3), var(--gm-gold) 55%, var(--gm-gold2)); border-color: transparent; } .jm-lvBar button[aria-pressed="true"] small { color: #3A2E0A; }

/* narzędzia */
.jm-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.jm-tool { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 10px 18px; border-radius: 14px; border: 1.5px solid rgba(227,196,106,.5); background: rgba(6,12,36,.65); color: var(--gm-ink); font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; flex: 1 1 auto; }
.jm-tool svg { width: 24px; height: 24px; } .jm-tool:hover { background: rgba(227,196,106,.14); } .jm-tool:disabled { opacity: .45; cursor: default; }
.jm-dock { display: none; gap: 10px; }
.jm-hintBtn { width: 100%; min-height: 60px; font-size: 20px; border-radius: 16px; gap: 10px; margin-top: -4px; box-shadow: 0 10px 26px rgba(227,196,106,.35), inset 0 1px 0 rgba(255,255,255,.6); }
.jm-hintBtn svg { width: 28px; height: 28px; } .jm-hintM { display: none !important; }
.jm-stats { padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(227,196,106,.3); background: rgba(6,12,36,.55); font-size: 17px; }
.jm-stats > b { color: var(--gm-gold3); font-size: 18px; } .jm-stats dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; margin: 10px 0 0; } .jm-stats dt { color: var(--gm-mute); } .jm-stats dd { margin: 0; font-weight: 800; color: var(--gm-gold3); text-align: end; }
.jm-how { border-radius: 14px; border: 1px solid rgba(227,196,106,.3); background: rgba(6,12,36,.55); padding: 12px 16px; font-size: 18px; line-height: 1.5; }
.jm-how summary { cursor: pointer; font-weight: 700; color: var(--gm-gold3); min-height: 32px; } .jm-how p { margin: 10px 0 0; }
.jm-opt { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 18px; cursor: pointer; } .jm-opt input { width: 24px; height: 24px; accent-color: var(--gm-gold); flex: none; }

/* okno końca meczu */
.jm-dlg { position: absolute; left: 50%; top: 110px; transform: translateX(-50%); z-index: 4000; width: min(520px, calc(100% - 24px)); box-sizing: border-box; padding: 22px 20px; border-radius: 22px; text-align: center;
  background: linear-gradient(180deg, rgba(14,24,64,.97), rgba(6,12,36,.97)); border: 2px solid var(--gm-gold); box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.jm-dlg h2 { margin: 0 0 8px; font-size: 28px; color: var(--gm-gold3); } .jm-dlg p { font-size: 19px; margin: 0 0 12px; } .jm-dlg .gm-autoNote { margin-top: 12px; }
.jm-rec { color: #8FE3D8; font-weight: 800; }
.jm-bigPts { display: flex; justify-content: center; gap: 10px; margin-bottom: 6px; font-size: 34px; line-height: 1; } .jm-bigPts i { font-style: normal; color: rgba(255,255,255,.18); transition: color .2s, transform .2s; } .jm-bigPts i.on { color: #F2C14E; } .jm-bigPts i.pop { animation: jmPop .35s ease-out; } @keyframes jmPop { 50% { transform: scale(1.5); } }
.jm-also { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px; border-radius: 14px; background: rgba(227,196,106,.08); text-align: start; flex-wrap: wrap; } .jm-also > div { flex: 1; min-width: 140px; } .jm-also b { display: block; }
.jm-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 30; } .jm-confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: jmFall 2.2s ease-in forwards; } @keyframes jmFall { to { transform: translateY(110vh) rotate(var(--r)); opacity: .6; } }

/* Naucz się */
.jm-lesson { display: flex; flex-direction: column; gap: 14px; } .jm-lesson > * { margin-top: 0; margin-bottom: 0; } .jm-lesson h2 { margin: 6px 0 4px; font-size: 26px; color: var(--gm-gold3); }
.jm-desc { border-radius: 14px; border: 1px solid rgba(227,196,106,.3); background: rgba(6,12,36,.55); padding: 12px 16px; font-size: 18px; line-height: 1.5; } .jm-desc summary { cursor: pointer; font-weight: 700; color: var(--gm-gold3); }
.jm-lessons { display: flex; flex-direction: column; gap: 10px; }
.jm-lItem { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px; border-radius: 14px; border: 1.5px solid rgba(227,196,106,.35); background: rgba(6,12,36,.6); color: var(--gm-ink); font: inherit; font-size: 18px; text-align: start; cursor: pointer; }
.jm-lItem span:nth-child(2) { flex: 1; display: flex; flex-direction: column; } .jm-lItem b { font-size: 15px; color: var(--gm-mute); font-weight: 600; } .jm-lItem i { font-style: normal; color: #8FE3D8; font-size: 22px; }
.jm-lNo { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: rgba(227,196,106,.18); color: var(--gm-gold3); flex: none; } .jm-lItem.done .jm-lNo { background: #2BA05A; color: #fff; }
.jm-zd { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(227,196,106,.25); } .jm-zd .jm-row2 { justify-content: flex-start; margin: 8px 0 12px; }
.jm-zdGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; margin-top: 10px; max-height: 260px; overflow-y: auto; }
.jm-zdGrid button { min-height: 44px; border-radius: 10px; border: 1px solid rgba(227,196,106,.35); background: rgba(6,12,36,.6); color: var(--gm-ink); font: inherit; font-size: 15px; cursor: pointer; } .jm-zdGrid button.done { background: #1E7F4A; border-color: #2BA05A; color: #fff; }

/* Dwóch graczy */
.jm-sizes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 18px; } .jm-sizes b { width: 100%; color: var(--gm-gold3); }
.jm-sizes button { min-height: 48px; padding: 8px 14px; border-radius: 12px; border: 1.5px solid rgba(227,196,106,.45); background: rgba(6,12,36,.6); color: var(--gm-ink); font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; } .jm-sizes button[aria-pressed="true"] { color: #15120A; background: linear-gradient(180deg, var(--gm-gold3), var(--gm-gold) 55%, var(--gm-gold2)); }

.jm-big { position: fixed; inset: 0; z-index: 2147483200; display: grid; place-items: center; padding: 16px; background: rgba(2,4,14,.72); }
.jm-box { width: min(560px, 100%); box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 22px; background: linear-gradient(180deg, #0E1840, #060C24); border: 2px solid var(--gm-gold); font-size: 19px; } .jm-box p { margin: 0; line-height: 1.5; }

@media (max-width: 1100px) { .jm-layout { grid-template-columns: minmax(0, 1fr) 300px; } .jm-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 999px) {
  .jm-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .jm-nowM { display: block; } .jm-now { display: none; } .jm-finM:not([hidden]) { display: flex !important; }
  .jm-hintBtn:not(.jm-hintM) { display: none; } .jm-dock { display: flex; } .jm-dock .jm-tool { flex: 0 0 auto; min-height: 56px; } .jm-hintM { display: inline-flex !important; flex: 1; min-height: 56px; margin-top: 0; }
  .jm-dlg { position: fixed; top: 70px; max-height: calc(100vh - 170px); overflow-y: auto; }
  .jm-tools .jm-tool { min-height: 52px; font-size: 16px; padding: 8px 12px; }
}
@media (max-width: 560px) {
  .jm-tabs { display: flex; width: 100%; box-sizing: border-box; } .jm-tabs button { flex: 1 1 0; justify-content: center; padding: 8px 6px; gap: 6px; font-size: 16px; min-height: 52px; } .jm-tabs button svg { width: 20px; height: 20px; }
  .jm-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .jm-lvl { min-height: 0; padding: 12px; } .jm-lvlD { display: none; } .jm-lvlName { font-size: 18px; } .jm-mini { width: 48px; height: 48px; } .jm-lvlArt { height: 48px; }
  .jm-h2 { font-size: 22px; } .jm-lead { font-size: 17px; }
  .jm-lvBar button { min-height: 44px; padding: 6px 12px; font-size: 15px; }
  .jm-cont { flex-wrap: wrap; padding: 14px; } .jm-cont .gm-btn { width: 100%; }
}
/* okno końca planszy na telefonie — mieści się na jednym ekranie (bez przewijania) */
@media (max-width: 560px) {
  .jm-dlg { top: 64px; width: calc(100% - 20px); max-height: calc(100dvh - 150px); padding: 14px 14px 12px; border-radius: 18px; }
  .jm-dlg .jm-bigPts { font-size: 24px; gap: 8px; margin-bottom: 2px; }
  .jm-dlg h2 { font-size: 23px; margin: 0 0 4px; } .jm-dlg p { font-size: 15px; line-height: 1.35; margin: 0 0 8px; }
  .jm-dlg .jm-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .jm-dlg .jm-row2 > :first-child { grid-column: 1 / -1; }
  .jm-dlg .gm-btn { min-height: 44px; padding: 6px 10px; font-size: 15px; justify-content: center; width: 100%; box-sizing: border-box; margin: 0; }
  .jm-dlg .gm-autoNote { margin-top: 8px; font-size: 13px; line-height: 1.3; }
  .jm-dlg .jm-also { margin-top: 8px; padding: 8px 10px; gap: 8px; flex-wrap: nowrap; }
  .jm-dlg .jm-also .gm-kicker, .jm-dlg #jmAlsoS { display: none; } .jm-dlg .jm-also > div { min-width: 0; } .jm-dlg .jm-also b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .jm-dlg #jmAlsoBtn { width: auto; flex: 0 0 auto; }
  .jm-dlg .jm-also ~ * { margin-top: 8px; }
}

/* ---------------------------------------------------------------- plansza na tacy */
.jm-stage { direction: ltr; position: relative; display: flex; justify-content: center; user-select: none; -webkit-user-select: none; }
.jm-wood { position: relative; max-width: 100%; padding: 10px; border-radius: 22px; background: linear-gradient(180deg, #F6EAD2, #EAD6B2); box-shadow: 0 18px 50px rgba(0,0,0,.55), inset 0 0 0 3px #C9A46A; }
.jm-board { --cs: 56px; position: relative; display: grid; grid-template-columns: repeat(var(--w), var(--cs)); grid-auto-rows: var(--cs); gap: 3px; touch-action: none; outline: none; -webkit-tap-highlight-color: transparent; }
.jm-board:focus-visible { outline: 3px solid var(--gm-teal); outline-offset: 6px; border-radius: 12px; }
.jm-c { position: relative; border-radius: 22%; background: #FFF8EA; box-shadow: inset 0 -2px 0 rgba(0,0,0,.06); }
.jm-c.jm-hole { background: transparent; box-shadow: none; }
.jm-c.jm-st { background: radial-gradient(circle at 40% 38%, #F6B3C3, #E2738F); box-shadow: inset 0 0 0 2px rgba(190,60,95,.35); }
.jm-c.jm-sel { box-shadow: 0 0 0 3px #E0A30E, 0 0 16px rgba(224,163,14,.8); z-index: 3; }
.jm-c.jm-sel .jm-t { animation: jmBob .8s ease-in-out infinite; } @keyframes jmBob { 50% { transform: scale(1.1); } }
.jm-c.jm-cur { outline: 3px dashed var(--gm-teal); outline-offset: -3px; }
.jm-t { position: absolute; inset: 6%; display: grid; place-items: center; transition: transform .14s ease-out; will-change: transform; z-index: 2; }
.jm-t svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 1px rgba(0,0,0,.22)); }
.jm-t.pop { animation: jmPopF .23s ease-in forwards; } @keyframes jmPopF { 0% { transform: scale(1); } 35% { transform: scale(1.28); filter: brightness(1.7) saturate(1.3); } to { transform: scale(.15); opacity: 0; filter: brightness(2); } }
.jm-t.made { animation: jmMade .42s cubic-bezier(.2,1.6,.4,1); } @keyframes jmMade { from { transform: scale(.2) rotate(-25deg); filter: brightness(2.2); } 60% { filter: brightness(1.4); } }
.jm-t.jm-sp svg { filter: drop-shadow(0 0 5px rgba(255,236,170,.95)) drop-shadow(0 2px 1px rgba(0,0,0,.25)); }
.jm-honey { animation: jmGlow 1.6s ease-in-out infinite; } @keyframes jmGlow { 50% { filter: drop-shadow(0 0 9px #FFD75E); } }
.jm-c.jm-lf { background: #CFE6C1; } .jm-leaf { inset: 0; } .jm-leaf b { position: absolute; right: 6%; bottom: 4%; font: 900 13px/1 system-ui; color: #fff; background: #3D7A2A; border-radius: 999px; padding: 2px 5px; }
.jm-leaf.hit { animation: jmShake .25s; } @keyframes jmShake { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
.jm-shuffle .jm-t { animation: jmSpin .45s ease-in-out; } @keyframes jmSpin { 50% { transform: scale(.5) rotate(180deg); } }
.jm-ov { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; overflow: visible; }
.jm-arrRing { fill: rgba(224,163,14,.18); stroke: #E0A30E; stroke-width: .07; animation: jmPulse 1.2s ease-in-out infinite; } .jm-arrRing2 { fill: none; stroke-dasharray: .12 .1; animation: none; }
@keyframes jmPulse { 50% { stroke-width: .13; fill: rgba(224,163,14,.32); } }
.jm-arrL { stroke: #E0A30E; stroke-width: .17; stroke-linecap: round; fill: none; } .jm-arrH { fill: #E0A30E; stroke: #fff; stroke-width: .03; }
.jm-fx { fill: rgba(255,244,190,.85); animation: jmFx .42s ease-out forwards; } .jm-fxJ { fill: rgba(255,214,110,.7); } .jm-fxH { fill: rgba(249,199,79,.35); }
@keyframes jmFx { from { opacity: 1; } to { opacity: 0; } }
.jm-combo { position: absolute; left: 50%; top: 40%; z-index: 20; transform: translate(-50%, -50%) rotate(-6deg); font: 900 clamp(28px, 6vw, 46px)/1 system-ui, sans-serif; color: #FFF3C4; text-shadow: 0 3px 0 #B5651D, 0 0 24px #FFB84A; pointer-events: none; white-space: nowrap; animation: jmCombo 1.1s ease-out forwards; }
@keyframes jmCombo { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6) rotate(-6deg); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1.1) rotate(-6deg); } 80% { opacity: 1; } to { opacity: 0; transform: translate(-50%, -80%) scale(1) rotate(-6deg); } }

/* ---------------------------------------------------------------- przepis (cele i ruchy) */
.jm-recipe { padding: 14px 16px; border-radius: 16px; border: 1.5px solid rgba(227,196,106,.45); background: rgba(6,12,36,.7); }
.jm-recipe .gm-kicker { display: block; margin-bottom: 8px; }
.jm-recRow { display: flex; align-items: center; gap: 12px; }
.jm-moves { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 84px; padding: 6px 10px; border-radius: 14px; color: #1A1405; background: linear-gradient(180deg, var(--gm-gold3), var(--gm-gold) 55%, var(--gm-gold2)); }
.jm-moves b { font: 900 34px/1 system-ui, sans-serif; } .jm-moves small { font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.jm-moves.low { background: linear-gradient(180deg, #FFB3A7, #E5483D); color: #fff; animation: jmLow 1s ease-in-out infinite; } @keyframes jmLow { 50% { transform: scale(1.05); } }
.jm-moves.jm-calm { background: linear-gradient(180deg, #BFE8D9, #6CC3A6); }
.jm-goals { display: flex; flex-wrap: wrap; gap: 8px; }
.jm-goal { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(20,29,69,.8); font-weight: 800; font-size: 19px; }
.jm-goal svg { width: 34px; height: 34px; } .jm-goal.done { border-color: #4FBF7A; color: #8FF0B0; }
.jm-recM { display: none; }

/* ---------------------------------------------------------------- spiżarnia */
.jm-pantry { margin-top: 22px; padding: 16px 18px; border-radius: 18px; border: 1px solid rgba(227,196,106,.35); background: rgba(6,12,36,.55); }
.jm-pantry > b { color: var(--gm-gold3); font-size: 19px; }
.jm-shelf { display: flex; gap: 6px; justify-content: center; align-items: flex-end; flex-wrap: wrap; min-height: 54px; margin: 10px 0 6px; padding: 8px 10px 0; border-radius: 12px; background: linear-gradient(#2A1A10, #1A1008); border-bottom: 8px solid #A86A3A; }
.jm-shelf.empty::after { content: ""; display: block; height: 40px; }
.jm-jar svg { width: 32px; height: 43px; display: block; } .jm-jar.new svg { filter: drop-shadow(0 0 8px #FFD75E); transform: translateY(-3px); animation: jmMade .5s cubic-bezier(.2,1.6,.4,1); }
.jm-shelfDlg { margin: 6px 0 4px; } .jm-panTxt { margin: 0 0 10px; }

@media (max-width: 999px) {
  .jm-recP { display: none; } .jm-recM { display: block; padding: 10px 12px; } .jm-recM .jm-moves { min-width: 70px; } .jm-recM .jm-moves b { font-size: 28px; }
  .jm-recM .jm-goal { font-size: 17px; padding: 2px 10px 2px 3px; } .jm-recM .jm-goal svg { width: 28px; height: 28px; }
  .jm-wood { padding: 6px; border-radius: 16px; } .jm-board { gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .jm-t { transition: none !important; } .jm-pfx, .jm-fly { display: none !important; } .jm-t.pop, .jm-t.made, .jm-honey, .jm-arrRing, .jm-moves.low, .jm-c.jm-sel .jm-t, .jm-combo, .jm-jar.new svg { animation: none !important; } }

/* KF1b (21.11): okno końca planszy zwarte także na komputerze (mieści się na ekranie 900 px) */
@media (min-width: 1000px) {
  .jm-dlg { top: 40px; padding: 18px 20px 16px; max-height: calc(100vh - 120px); overflow-y: auto; }
  .jm-dlg .jm-bigPts { font-size: 28px; margin-bottom: 2px; } .jm-dlg h2 { font-size: 26px; margin: 0 0 4px; } .jm-dlg p { font-size: 17px; margin: 0 0 8px; }
  .jm-dlg .jm-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .jm-dlg .jm-row2 > :first-child { grid-column: 1 / -1; }
  .jm-dlg .gm-btn { min-height: 46px; font-size: 16px; padding: 6px 12px; width: 100%; box-sizing: border-box; margin: 0; justify-content: center; }
  .jm-dlg .gm-autoNote { margin-top: 8px; font-size: 14px; }
  .jm-dlg .jm-also { margin-top: 8px; padding: 8px 12px; flex-wrap: nowrap; } .jm-dlg .jm-also .gm-kicker, .jm-dlg #jmAlsoS { display: none; } .jm-dlg .jm-also > div { min-width: 0; } .jm-dlg #jmAlsoBtn { width: auto; flex: 0 0 auto; }
  .jm-dlg .jm-also ~ * { margin-top: 8px; }
}
/* KF1b: telefon — plansza i „Podpowiedź” na jednym ekranie: zwarte okienka nad planszą (stała wysokość, plansza nie skacze) */
@media (max-width: 999px) {
  .jm-work { gap: 8px; }
  .jm-topbar { font-size: 16px; } .jm-topbar b { font-size: 18px; }
  .jm-recM { padding: 6px 10px; } .jm-recM .jm-moves { min-width: 62px; padding: 4px 8px; } .jm-recM .jm-moves b { font-size: 24px; } .jm-recM .jm-moves small { font-size: 10px; }
  .jm-recM .jm-goal svg { width: 24px; height: 24px; } .jm-recM .jm-goal { font-size: 16px; }
  .jm-nowM { padding: 6px 12px; font-size: 15px; line-height: 1.3; height: calc(2.6em + 12px); box-sizing: border-box; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .jm-dock .jm-hintM { min-height: 50px; }
}

/* KF2a (24.11.2026): soczyste animacje — plansza przycięta u góry (nowe owoce wpadają zza krawędzi), sok, promienie, lot do przepisu */
.jm-wood { overflow: hidden; isolation: isolate; }
.jm-board { clip-path: inset(0 -14px -14px -14px); }
.jm-pfx { position: absolute; inset: 0; pointer-events: none; z-index: 6; overflow: hidden; border-radius: inherit; }
.jm-pfx i { position: absolute; display: block; pointer-events: none; will-change: transform, opacity; }
.jm-drop { border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; box-shadow: inset -1px -2px 0 rgba(0,0,0,.18), inset 1px 1px 0 rgba(255,255,255,.45); }
.jm-ring { border: 3px solid #fff; border-radius: 50%; box-sizing: border-box; }
.jm-beam { border-radius: 999px; background: linear-gradient(180deg, rgba(255,244,200,0), #FFF6D2 30%, #FFFFFF 50%, #FFF6D2 70%, rgba(255,244,200,0)); box-shadow: 0 0 18px 6px rgba(255,214,110,.75); }
.jm-beamV { background: linear-gradient(90deg, rgba(255,244,200,0), #FFF6D2 30%, #FFFFFF 50%, #FFF6D2 70%, rgba(255,244,200,0)); }
.jm-hstr { stroke: #F9C74F; stroke-width: .12; stroke-linecap: round; stroke-dasharray: 1 0; filter: drop-shadow(0 0 .15px #FFE08A); animation: jmHstr .5s ease-out forwards; }
@keyframes jmHstr { from { opacity: 0; stroke-width: .02; } 30% { opacity: 1; stroke-width: .16; } to { opacity: 0; stroke-width: .04; } }
.jm-fly { position: fixed; z-index: 60; pointer-events: none; will-change: transform, opacity; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); }
.jm-fly svg { width: 100%; height: 100%; display: block; }
.jm-goal { transform-origin: 50% 50%; }

/* KF2b (24.11.2026): wygląd i okrzyki — pola jak wieczka (miękki gradient), owoce z cieniem, specjalne świecą i „oddychają”, okrzyk kaskady rośnie */
.jm-c { background: radial-gradient(120% 90% at 50% 20%, #FFFDF6, #F8EBD2); box-shadow: inset 0 -3px 0 rgba(150,100,40,.10), inset 0 1px 0 #fff; }
.jm-c.jm-hole { background: transparent; box-shadow: none; }
.jm-c.jm-st { background: radial-gradient(circle at 40% 34%, #FAC3CF, #E2738F 70%, #C9587A); box-shadow: inset 0 0 0 2px rgba(190,60,95,.35), inset 0 -3px 0 rgba(120,20,50,.18); }
.jm-c.jm-lf { background: radial-gradient(circle at 45% 35%, #DDF0D0, #B8D9A6); }
.jm-t svg { filter: drop-shadow(0 3px 2px rgba(70,40,10,.28)); }
.jm-t.jm-sp { animation: jmBreath 1.6s ease-in-out infinite; }
.jm-t.jm-sp svg { animation: jmSpGlow 1.6s ease-in-out infinite; }
@keyframes jmBreath { 50% { transform: scale(1.06); } }
@keyframes jmSpGlow { 0%, 100% { filter: drop-shadow(0 0 4px rgba(255,226,140,.9)) drop-shadow(0 2px 1px rgba(0,0,0,.25)); } 50% { filter: drop-shadow(0 0 11px rgba(255,214,90,1)) drop-shadow(0 2px 1px rgba(0,0,0,.25)); } }
.jm-t.jm-sp.pop, .jm-t.jm-sp.made { animation-iteration-count: 1; }
.jm-t.jm-sp.pop { animation: jmPopF .23s ease-in forwards; } .jm-t.jm-sp.made { animation: jmMade .42s cubic-bezier(.2,1.6,.4,1); }
.jm-combo small { display: block; margin-top: 4px; font-size: .45em; letter-spacing: .04em; color: #FFE6A8; text-align: center; }
.jm-cb2 { font-size: clamp(24px, 5vw, 36px); }
.jm-cb3 { font-size: clamp(28px, 6vw, 44px); }
.jm-cb4 { font-size: clamp(32px, 7vw, 50px); text-shadow: 0 3px 0 #A8471D, 0 0 26px #FF9A3A; }
.jm-cb5 { font-size: clamp(34px, 7.6vw, 54px); text-shadow: 0 3px 0 #A8471D, 0 0 30px #FF8A3A; }
.jm-cb6 { font-size: clamp(36px, 8.4vw, 60px); color: #FFF; text-shadow: 0 3px 0 #9A2A3A, 0 0 34px #FF5A6A, 0 0 60px #FFB84A; }
@media (prefers-reduced-motion: reduce) { .jm-t.jm-sp, .jm-t.jm-sp svg { animation: none !important; } }
/* KF2c (25.11.2026): karta przepisu, ostatnie ruchy, Wekowanie, słoik na ekranie końca */
.jm-start { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 25; width: min(440px, calc(100% - 20px)); box-sizing: border-box; padding: 16px 16px 14px; border-radius: 20px; text-align: center;
  background: linear-gradient(180deg, rgba(14,24,64,.97), rgba(6,12,36,.97)); border: 2px solid var(--gm-gold); box-shadow: 0 18px 50px rgba(0,0,0,.6); pointer-events: none; }
.jm-start .jm-scK { display: block; font-weight: 800; font-size: 15px; letter-spacing: .05em; text-transform: uppercase; color: var(--gm-gold3); }
.jm-start h3 { margin: 4px 0 12px; font-size: 22px; line-height: 1.2; color: #fff; }
.jm-start .jm-recRow { justify-content: center; flex-wrap: wrap; } .jm-start .jm-goals { justify-content: center; }
.jm-start .jm-goal { font-size: 22px; } .jm-start .jm-goal svg { width: 40px; height: 40px; }
.jm-start .gm-btn { pointer-events: auto; margin: 14px auto 0; min-height: 48px; min-width: 160px; justify-content: center; font-size: 18px; }
.jm-warn { position: absolute; left: 50%; top: 22%; z-index: 21; transform: translate(-50%, -50%); padding: 10px 18px; border-radius: 16px; pointer-events: none; white-space: nowrap; text-align: center;
  font: 900 clamp(22px, 5vw, 34px)/1.1 system-ui, sans-serif; color: #fff; background: linear-gradient(180deg, #FF8A7A, #D93A31); border: 2px solid #FFD2C8; box-shadow: 0 10px 30px rgba(0,0,0,.45); animation: jmWarn 1.6s ease-out forwards; }
.jm-warn small { display: block; margin-top: 4px; font-size: .5em; font-weight: 800; color: #FFF3C4; white-space: normal; }
@keyframes jmWarn { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 14% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 24% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%) scale(1); } }
.jm-warn.jm-wek { top: 18%; color: #3A2205; background: linear-gradient(180deg, #FFE9A8, #F2B544); border-color: #FFF4D0; animation: jmWek 4s ease-out forwards; }
.jm-warn.jm-wek small { color: #6B3A0E; }
@keyframes jmWek { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 6% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 10% { transform: translate(-50%, -50%) scale(1); } 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.jm-djar { display: inline-block; vertical-align: middle; margin: 0 14px 4px 0; pointer-events: none; } .jm-djar svg { display: block; width: 52px; height: 65px; overflow: visible; filter: drop-shadow(0 4px 10px rgba(0,0,0,.45)); }
.jm-dlg .jm-djar + .jm-bigPts { display: inline-flex; vertical-align: middle; } .jm-dlg .jm-djar + .jm-bigPts[hidden] { display: none; }
.jm-djar .jm-jfill { transform: translateY(74px); }
@media (max-width: 999px) { .jm-djar { margin: 0 10px 2px 0; } .jm-djar svg { width: 38px; height: 48px; } .jm-start { padding: 12px 12px 12px; } .jm-start h3 { font-size: 19px; margin-bottom: 8px; } .jm-start .jm-goal { font-size: 19px; } .jm-start .jm-goal svg { width: 32px; height: 32px; } }
@media (prefers-reduced-motion: reduce) { .jm-warn, .jm-warn.jm-wek { animation: none !important; } }
/* KF2d (25.11.2026): mapa „Ścieżka przez sad” — działy po 50, wąż słoików, „Jesteś tutaj” */
.jm-map { margin: 26px 0 8px; }
.jm-mapLv { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 10px auto 12px; max-width: 720px; }
.jm-mapNav, .jm-mapPath { max-width: 720px; margin-left: auto; margin-right: auto; }
.jm-mapLv button { padding: 8px 14px; border-radius: 999px; border: 1.5px solid rgba(227,196,106,.4); background: rgba(6,12,36,.5); color: var(--gm-ink); font: inherit; font-weight: 700; cursor: pointer; }
.jm-mapLv button[aria-pressed="true"] { background: var(--gm-gold); color: #1d1406; border-color: var(--gm-gold); }
.jm-mapNav { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: linear-gradient(90deg, rgba(76,124,52,.35), rgba(6,12,36,.55) 60%); border: 1.5px solid rgba(143,190,95,.45); }
.jm-mapSec { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; min-width: 0; }
.jm-mapSec b { font-size: 21px; color: #fff3d0; } .jm-mapSec span { font-size: 14px; opacity: .85; }
.jm-mapArr { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(227,196,106,.55); background: rgba(6,12,36,.6); color: var(--gm-gold); font-size: 30px; line-height: 1; cursor: pointer; }
.jm-mapArr:disabled { opacity: .3; cursor: default; }
.jm-mapGo { display: block; margin: 10px auto 0; }
.jm-mapGo[hidden] { display: none; }
.jm-mapPath { position: relative; width: 100%; max-width: 720px; margin: 14px auto 0; border-radius: 22px; background: radial-gradient(circle at 20% 10%, rgba(120,170,80,.22), transparent 55%), radial-gradient(circle at 85% 70%, rgba(120,170,80,.18), transparent 50%), rgba(18,40,22,.55); border: 1.5px solid rgba(143,190,95,.3); overflow: hidden; }
.jm-mapSvg { position: absolute; inset: 0; width: 100%; height: 100%; }
.jm-mapVerge { fill: none; stroke: rgba(126,176,84,.35); stroke-width: 34; stroke-linecap: round; }
.jm-mapRoad { fill: none; stroke: #b89263; stroke-width: 14; stroke-linecap: round; stroke-dasharray: 2 12; opacity: .9; }
.jm-mapDone { fill: none; stroke: var(--gm-gold); stroke-width: 7; stroke-linecap: round; opacity: .95; }
.jm-mn { position: absolute; transform: translate(-50%, -50%); width: 62px; display: flex; flex-direction: column; align-items: center; padding: 0; border: 0; background: none; cursor: pointer; color: var(--gm-ink); font: inherit; }
.jm-mn svg { width: 46px; height: 61px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.45)); transition: transform .15s; }
.jm-mn:hover svg, .jm-mn:focus-visible svg { transform: scale(1.1); }
.jm-mn:focus-visible { outline: 3px solid var(--gm-gold); outline-offset: 2px; border-radius: 10px; }
.jm-mn-lock { cursor: not-allowed; } .jm-mn-lock svg { filter: none; opacity: .75; } .jm-mn-lock:hover svg { transform: none; }
.jm-mn-here svg { width: 56px; height: 74px; filter: drop-shadow(0 0 10px rgba(255,214,102,.95)) drop-shadow(0 0 3px #fff6); animation: jmHere 1.6s ease-in-out infinite; }
.jm-mnHere { position: absolute; top: calc(100% - 16px); z-index: 1; white-space: nowrap; padding: 3px 9px; border-radius: 999px; background: var(--gm-gold); color: #1d1406; font-size: 13px; font-weight: 800; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.jm-mnPts { display: flex; gap: 1px; font-size: 10px; line-height: 1; margin-top: 1px; } .jm-mnPts i { font-style: normal; color: rgba(255,255,255,.3); } .jm-mnPts i.on { color: var(--gm-gold); }
@keyframes jmHere { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px) scale(1.04); } }
.jm-mapMore { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--gm-gold); background: rgba(6,12,36,.85); color: var(--gm-gold); font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.jm-mapMsg { position: fixed; left: 50%; bottom: 22px; z-index: 60; transform: translateX(-50%); max-width: min(92vw, 520px); margin: 0; padding: 12px 18px; border-radius: 14px; background: #2a1d0b; border: 1.5px solid var(--gm-gold); color: #fff3d0; font-size: 16px; text-align: center; box-shadow: 0 6px 20px rgba(0,0,0,.5); opacity: 0; pointer-events: none; }
.jm-mapMsg.on { animation: jmMsg 3.4s ease forwards; }
@keyframes jmMsg { 0% { opacity: 0; transform: translate(-50%, 10px); } 8%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 0); } }
@media (max-width: 999px) {
  .jm-mapSec b { font-size: 18px; } .jm-mapSec span { font-size: 13px; } .jm-mapArr { width: 42px; height: 42px; font-size: 26px; }
  .jm-mn { width: 50px; } .jm-mn svg { width: 36px; height: 48px; } .jm-mn-here svg { width: 44px; height: 58px; } .jm-mnHere { font-size: 11.5px; padding: 2px 7px; }
  .jm-mapLv button { padding: 7px 11px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .jm-mn-here svg { animation: none; } .jm-mn svg { transition: none; } }
/* KF3a (25.11.2026): nowy wygląd — gra na cały ekran, sad w tle, drewniana plansza, HUD, pszczółka, okrągłe przyciski (własny wygląd) */
html.jm-fsOn, html.jm-fsOn body { overflow: hidden !important; }
html.jm-fsOn .gm-jm { z-index: auto !important; transform: none !important; filter: none !important; contain: none !important; } /* bez własnej warstwy — gra wychodzi nad paski strony */
.jm-big { z-index: 2147483645; } /* nad grą na cały ekranie */
html.jm-fsOn #pnpPlCover { z-index: 2147483642 !important; } /* zasłona gościa/Free (games-lock-v1.js) zostaje nad planszą także na pełnym ekranie */
#jmGame.jm-fsG { --wd: #8a5a2b; --wd2: #c08a4d; --wd3: #5e3a17; --cr: #fff4dc; --gd: #f2c14e; --ik: #3b2410;
  position: fixed; inset: 0; z-index: 2147483640; overflow-y: auto; overflow-x: hidden; background: #a6d77f; color: var(--ik); font-family: 'Exo 2', system-ui, sans-serif; padding-bottom: env(safe-area-inset-bottom, 0px); overscroll-behavior: contain; }
.jm-scene { display: none; } .jm-fsTop { display: none; } .jm-fsBot { display: contents; } .jm-bee { display: none; } .jm-set[hidden] { display: none !important; }
.jm-fsG .jm-scene { display: block; position: fixed; inset: 0; z-index: 0; pointer-events: none; } .jm-fsG .jm-scene svg { width: 100%; height: 100%; display: block; }
.jm-fsG .jm-lvBar, .jm-fsG .jm-topbar, .jm-fsG .jm-now, .jm-fsG #jmHint, .jm-fsG .jm-nowM, .jm-fsG .jm-recP .gm-kicker { display: none !important; }
.jm-fsG .jm-fsTop { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 1180px; margin: 0 auto; padding: 10px 12px 0; }
.jm-rb { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer; color: var(--cr); background: radial-gradient(circle at 35% 30%, #d9a165, #8a5a2b 70%); border: 3px solid #5e3a17; box-shadow: 0 3px 0 #5e3a17, 0 6px 10px rgba(0,0,0,.25); }
.jm-rb svg { width: 24px; height: 24px; } .jm-rb:active { transform: translateY(2px); box-shadow: 0 1px 0 #5e3a17; } .jm-rb:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.jm-plank { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 7px 22px 8px; border-radius: 14px; background: linear-gradient(#c98d4e, #9a6430); border: 3px solid var(--wd3); box-shadow: inset 0 2px 0 #e6b47a, 0 4px 0 var(--wd3), 0 6px 12px rgba(0,0,0,.25); color: var(--cr); font-weight: 800; font-size: 20px; text-shadow: 0 2px 0 var(--wd3); }
.jm-fsG .jm-layout { position: relative; z-index: 1; display: block; max-width: 1180px; margin: 0 auto; padding: 0 8px; }
.jm-fsG .jm-work { gap: 10px; }
/* HUD: krem w drewnianej ramie, ruchy na złotym krążku, cele jak słoiki, punkty */
.jm-fsG .jm-recipe { margin-top: 10px; padding: 8px 10px; border-radius: 20px; background: linear-gradient(#fff8e8, #f3dfb5); border: 4px solid var(--wd); box-shadow: inset 0 0 0 2px #fff, 0 5px 0 var(--wd3), 0 10px 18px rgba(0,0,0,.2); color: var(--ik); }
.jm-fsG .jm-recRow { gap: 10px; }
.jm-fsG .jm-moves, .jm-start .jm-moves { width: 78px; height: 78px; min-width: 0; padding: 0; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #fff3c4, var(--gd, #f2c14e) 60%, #d49a1c); border: 4px solid #a8730f; box-shadow: inset 0 -4px 0 #c98a12, 0 3px 6px rgba(0,0,0,.2); color: #5a3605; }
.jm-fsG .jm-moves b { font-size: 34px; } .jm-fsG .jm-moves small { font-size: 10.5px; color: #6b4307; }
.jm-fsG .jm-moves.low { background: radial-gradient(circle at 40% 30%, #ffd0c4, #f0614f 60%, #b8281c); border-color: #8e1c12; color: #fff; } .jm-fsG .jm-moves.low small { color: #fff; }
.jm-fsG .jm-goals { flex: 1; justify-content: center; gap: 8px; }
.jm-fsG .jm-goal { position: relative; flex-direction: column; gap: 2px; padding: 10px 6px 0; width: 56px; border: 0; background: none; color: var(--ik); }
.jm-fsG .jm-goal::before { content: ""; position: absolute; left: 6px; right: 6px; top: 4px; bottom: 22px; border-radius: 6px 6px 12px 12px; background: linear-gradient(90deg, rgba(255,255,255,.85), rgba(225,242,255,.55) 40%, rgba(255,255,255,.8)); border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,.18), inset 0 -6px 10px rgba(120,160,200,.25); }
.jm-fsG .jm-goal::after { content: ""; position: absolute; left: 3px; right: 3px; top: 0; height: 8px; border-radius: 3px; background: linear-gradient(#ffe48a, #e6a21a); border: 1.5px solid #a86400; }
.jm-fsG .jm-goal svg { position: relative; width: 34px; height: 34px; margin-top: 4px; }
.jm-fsG .jm-goal b { position: relative; min-width: 38px; padding: 1px 8px; border-radius: 999px; background: var(--wd); color: #fff; font-size: 16px; font-weight: 800; text-align: center; border: 2px solid var(--cr); }
.jm-fsG .jm-goal.done b { background: #3d9a4a; }
.jm-score { display: none; }
.jm-fsG .jm-score { display: flex; flex: none; flex-direction: column; align-items: center; min-width: 74px; }
.jm-fsG .jm-score b { font-size: 22px; font-weight: 800; color: var(--wd3); font-variant-numeric: tabular-nums; } .jm-fsG .jm-score small { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #7a5a30; }
/* plansza na drewnianej tacy */
.jm-fsG .jm-stage { margin-top: 16px; margin-bottom: 14px; }
.jm-fsG .jm-stage::before { content: ""; position: absolute; left: 50%; top: -11px; width: calc(var(--bw, 0px) + 22px); height: calc(var(--bh, 0px) + 22px); transform: translateX(-50%); border-radius: 24px; background: linear-gradient(145deg, #c58848, #8a5a2b 55%, #6d4420); box-shadow: inset 0 2px 0 #e6b47a, 0 6px 0 var(--wd3), 0 14px 26px rgba(0,0,0,.35); pointer-events: none; }
.jm-fsG .jm-board { background: transparent; border-radius: 15px; box-shadow: inset 0 3px 8px rgba(109,68,32,.33); gap: 0; padding: 4px; }
.jm-fsG .jm-c { border-radius: 0; background: rgba(255,246,222,.95); box-shadow: none; }
.jm-fsG .jm-c.jm-dk { background: rgba(248,230,188,.95); }
.jm-fsG .jm-c.jm-hole { background: transparent; }
.jm-fsG .jm-c.jm-st::before { content: ""; position: absolute; inset: 7%; border-radius: 40% 55% 45% 60%; background: radial-gradient(circle at 40% 40%, #ff8fb0, #e04a7a 70%); opacity: .9; box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); }
.jm-fsG .jm-c.jm-st { background: rgba(255,232,238,.95); }
.jm-fsG .jm-c.jm-lf { background: radial-gradient(circle at 45% 35%, #ddf0d0, #b8d9a6); }
.jm-fsG .jm-c.jm-sel { box-shadow: inset 0 0 0 3px #fff, inset 0 0 14px 4px #ffe27a; }
.jm-fsG .jm-t svg { filter: drop-shadow(0 2px 1.5px rgba(60,30,0,.35)); }
.jm-fsG .jm-t.jm-sp svg { filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 3px #ffd34d); }
/* dół: pszczółka z dymkiem + okrągłe przyciski */
.jm-fsG .jm-fsBot { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 4px 4px 14px; }
.jm-fsG .jm-bee { display: block; position: relative; flex: none; align-self: flex-end; width: 64px; height: 64px; }
.jm-fsG .jm-bee svg { width: 64px; height: 64px; filter: drop-shadow(0 4px 4px rgba(0,0,0,.2)); }
.jm-beeBub { position: absolute; left: 40px; bottom: 54px; z-index: 5; width: max-content; max-width: min(260px, 70vw); padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: #fff; border: 3px solid #8a5a2b; font-weight: 800; font-size: 15px; line-height: 1.25; color: #5e3a17; box-shadow: 0 4px 8px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transition: opacity .3s; }
.jm-beeBub.on { opacity: 1; }
.jm-fsG .jm-dock, .jm-fsG .jm-tools { display: contents; }
.jm-fsG .jm-fsBot .jm-hintBtn, .jm-fsG .jm-fsBot .jm-tool { flex: 0 0 auto; display: inline-flex !important; flex-direction: column; align-items: center; gap: 3px; width: 70px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: #fff; font-size: 12px; font-weight: 800; line-height: 1.1; text-align: center; text-shadow: 0 1px 0 #3d2a10, 0 0 6px #3d2a10; cursor: pointer; }
.jm-fsG .jm-fsBot .jm-hintBtn svg, .jm-fsG .jm-fsBot .jm-tool svg { box-sizing: border-box; width: 56px; height: 56px; padding: 13px; border-radius: 50%; color: var(--cr); stroke: var(--cr); background: radial-gradient(circle at 35% 30%, #d9a165, #8a5a2b 70%); border: 3px solid #5e3a17; box-shadow: 0 3px 0 #5e3a17, 0 6px 10px rgba(0,0,0,.25); }
.jm-fsG .jm-fsBot .jm-hintBtn svg { background: radial-gradient(circle at 35% 30%, #fff3c4, #f2c14e 60%, #d49a1c); border-color: #a8730f; box-shadow: 0 3px 0 #a8730f, 0 6px 10px rgba(0,0,0,.25); stroke: #5a3605; color: #5a3605; }
.jm-fsG .jm-fsBot .jm-hintBtn:disabled, .jm-fsG .jm-fsBot .jm-tool:disabled { opacity: .5; }
.jm-fsG .jm-fsBot .jm-hintBtn:active svg, .jm-fsG .jm-fsBot .jm-tool:active svg { transform: translateY(2px); }
.jm-fsG .jm-fsBot .jm-hintBtn[hidden], .jm-fsG .jm-fsBot .jm-tool[hidden] { display: none !important; }
.jm-fsG .jm-fsBot .jm-bee + * { margin-left: auto; }
/* ustawienia w oknie */
.jm-set { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(40,25,10,.55); }
.jm-setBox { width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 16px 18px 18px; border-radius: 22px; background: linear-gradient(#fff8e8, #f3dfb5); border: 4px solid #8a5a2b; box-shadow: 0 10px 30px rgba(0,0,0,.4); color: #3b2410; }
.jm-setHead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; } .jm-setHead h2 { margin: 0; font-size: 24px; color: #5e3a17; }
.jm-setBox .jm-stats, .jm-setBox .jm-how { margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 2px solid #e3cfa6; color: #3b2410; }
.jm-setBox .jm-stats b, .jm-setBox summary { color: #5e3a17; } .jm-setBox dt, .jm-setBox dd, .jm-setBox p, .jm-setBox label { color: #3b2410 !important; opacity: 1; } .jm-setBox dd { font-weight: 800; } .jm-setBox .gm-btn.gm-ghost { color: #5e3a17; border-color: #8a5a2b; }
/* okno końca nad planszą — ciepłe kolory */
.jm-fsG .jm-dlg { background: linear-gradient(#fff8e8, #f3dfb5); border: 4px solid #8a5a2b; color: #3b2410; box-shadow: 0 6px 0 #5e3a17, 0 16px 40px rgba(0,0,0,.4); }
.jm-fsG .jm-dlg h2 { color: #5e3a17; } .jm-fsG .jm-dlg .jm-muted, .jm-fsG .jm-dlg p { color: #4a3018; } .jm-fsG .jm-dlg .gm-btn.gm-ghost { color: #5e3a17; border-color: #8a5a2b; background: #fff8; }
.jm-fsG .jm-dlg .gm-kicker { color: #8a5a2b; }
@media (max-width: 999px) {
  .jm-fsG .jm-side { display: none; } .jm-fsG .jm-recM { display: block !important; }
  .jm-fsG .jm-dlg { position: fixed; top: 64px; }
}
@media (max-width: 380px) { .jm-fsG .jm-moves { width: 66px; height: 66px; } .jm-fsG .jm-moves b { font-size: 28px; } .jm-fsG .jm-goal { width: 48px; } .jm-fsG .jm-score { min-width: 60px; } .jm-fsG .jm-fsBot .jm-tool, .jm-fsG .jm-fsBot .jm-hintBtn { width: 60px; } .jm-fsG .jm-fsBot .jm-tool svg, .jm-fsG .jm-fsBot .jm-hintBtn svg { width: 50px; height: 50px; padding: 11px; } }
/* komputer: HUD z lewej, plansza w środku, pszczółka i przyciski z prawej */
@media (min-width: 1000px) {
  .jm-fsG .jm-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 250px; gap: 26px; align-items: start; max-width: 1320px; padding: 0 24px; }
  .jm-fsG .jm-fsTop { max-width: 1320px; }
  .jm-fsG .jm-work { display: contents; } .jm-fsG .jm-side { display: contents; }
  .jm-fsG .jm-stage { grid-column: 2; grid-row: 1; margin-top: 26px; }
  .jm-fsG .jm-recP { grid-column: 1; grid-row: 1; align-self: center; margin-top: 0; padding: 16px; }
  .jm-fsG .jm-recP .jm-recRow { flex-direction: column; gap: 14px; }
  .jm-fsG .jm-recP .jm-moves { width: 116px; height: 116px; } .jm-fsG .jm-recP .jm-moves b { font-size: 52px; } .jm-fsG .jm-recP .jm-moves small { font-size: 14px; }
  .jm-fsG .jm-recP .jm-goal { width: 72px; } .jm-fsG .jm-recP .jm-goal svg { width: 44px; height: 44px; } .jm-fsG .jm-recP .jm-goal b { font-size: 19px; }
  .jm-fsG .jm-recP .jm-score b { font-size: 28px; }
  .jm-fsG .jm-fsBot { grid-column: 3; grid-row: 1; align-self: center; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 14px 22px; padding: 0 20px; }
  .jm-fsG .jm-bee { width: 110px; height: 110px; margin: 0 auto 70px; flex-basis: 100%; display: flex; justify-content: center; } .jm-fsG .jm-bee svg { width: 110px; height: 110px; }
  .jm-fsG .jm-beeBub { left: -66px; bottom: 104px; max-width: 236px; font-size: 18px; }
  .jm-fsG .jm-fsBot .jm-bee + * { margin-left: 0; }
  .jm-fsG .jm-fsBot .jm-hintBtn, .jm-fsG .jm-fsBot .jm-tool { width: 84px; font-size: 13.5px; } .jm-fsG .jm-fsBot .jm-hintBtn svg, .jm-fsG .jm-fsBot .jm-tool svg { width: 68px; height: 68px; padding: 16px; }
  .jm-fsG .jm-dlg { top: 90px; }
}
@media (prefers-reduced-motion: reduce) { .jm-beeBub { transition: none; } }
/* KF3a: karta przepisu i półka w oknie końca w ciepłych kolorach */
.jm-fsG .jm-start { background: linear-gradient(#fff8e8, #f3dfb5); border: 4px solid #8a5a2b; box-shadow: 0 6px 0 #5e3a17, 0 14px 30px rgba(0,0,0,.35); color: #3b2410; }
.jm-fsG .jm-start .jm-scK { color: #8a5a2b; } .jm-fsG .jm-start h3 { color: #5e3a17; }
.jm-fsG .jm-shelfDlg { background: linear-gradient(#9a6430, #7a4b22); box-shadow: inset 0 2px 0 #c98d4e, 0 4px 0 #5e3a17; }
.jm-fsG .jm-dlg .jm-also { background: rgba(138,90,43,.1); }
/* KF3a: słoik celu napełnia się kolorem owocu (--f = postęp, --c = kolor) */
.jm-fsG .jm-goal::before, .jm-start .jm-goal::before { background: linear-gradient(to top, color-mix(in srgb, var(--c, #f2c14e) 70%, transparent) calc(var(--f, 0) * 100%), transparent calc(var(--f, 0) * 100%)), linear-gradient(90deg, rgba(255,255,255,.85), rgba(225,242,255,.55) 40%, rgba(255,255,255,.8)); transition: background .4s; }

/* KF3b (25.11.2026): mapa jako pierwszy ekran Graj — obrazek działu (rysowany krajobraz), drewniana tabliczka, duży „Graj”, ścieżka na łące działu */
.jm-map { margin: 8px 0 8px; }
.jm-map > .jm-h2 { text-align: center; }
.jm-mapHero { position: relative; max-width: 720px; margin: 0 auto; border-radius: 22px 22px 0 0; overflow: hidden; border: 3px solid #8a5a2b; border-bottom: 0; background: #7cc6ee; }
.jm-mapScene { aspect-ratio: 600 / 200; min-height: 150px; }
.jm-mapScene svg { display: block; width: 100%; height: 100%; }
.jm-mapHero .jm-mapNav { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); width: min(94%, 520px); padding: 6px 8px; border-radius: 14px; background: linear-gradient(#c98f52, #a46a36); border: 2px solid #6e4420; box-shadow: 0 4px 0 #6e4420, 0 6px 14px rgba(0,0,0,.35); }
.jm-mapHero .jm-mapSec b { color: #fff8e6; text-shadow: 0 2px 0 #6e4420; }
.jm-mapHero .jm-mapSec span { color: #fff1d2; opacity: 1; }
.jm-mapHero .jm-mapArr { width: 42px; height: 42px; font-size: 28px; background: #fff4dc; color: #8a5a2b; border: 2px solid #6e4420; font-weight: 800; }
.jm-mapHero .jm-mapArr:disabled { opacity: .45; }
.jm-mapPath { margin-top: 0; border-radius: 0 0 22px 22px; border: 3px solid #8a5a2b; border-top: 0; background: radial-gradient(circle at 18% 22%, rgba(255,255,255,.22), transparent 40%), radial-gradient(circle at 82% 64%, rgba(255,255,255,.16), transparent 42%), linear-gradient(var(--g1, #b6e08c), var(--g2, #93cc68)); }
.jm-mapVerge { stroke: #e7cf98; stroke-width: 30; }
.jm-mapRoad { stroke: #b88a55; stroke-width: 10; stroke-dasharray: 2 13; opacity: .75; }
.jm-mapDone { stroke: #f2b632; stroke-width: 8; }
.jm-mn-lock svg { opacity: .9; }
.jm-mn { color: #3b2410; }
.jm-mnPts i { color: rgba(59,36,16,.28); text-shadow: 0 1px 0 #fff8; } .jm-mnPts i.on { color: #e09a00; }
.jm-map .jm-mapPlay { display: flex; align-items: center; justify-content: center; gap: 10px; width: min(100%, 420px); margin: 4px auto 12px; padding: 14px 22px; font-size: 22px; font-weight: 800; border-radius: 999px; box-shadow: 0 5px 0 #9a6a14, 0 8px 18px rgba(0,0,0,.35); }
.jm-map .jm-mapPlay svg { width: 26px; height: 26px; flex: none; }
.jm-mapPlay:active { transform: translateY(3px); box-shadow: 0 2px 0 #9a6a14; }
.jm-mapP { text-align: center; max-width: 620px; margin: 0 auto 8px; }
.jm-mapLv { margin: 6px auto 12px; }
.jm-map .jm-mapGo { margin: 0 auto 12px; }
.jm-mn-lock svg { filter: drop-shadow(0 2px 2px rgba(60,40,10,.25)); }
.jm-lvWrap { margin-top: 26px; }
@media (max-width: 760px) {
  .jm-map > .jm-h2 { font-size: 24px; margin-bottom: 2px; }
  .jm-mapHero, .jm-mapPath { border-width: 2.5px; }
  .jm-mapHero { border-radius: 18px 18px 0 0; } .jm-mapPath { border-radius: 0 0 18px 18px; }
  .jm-mapScene { min-height: 228px; }
  .jm-mapHero .jm-mapNav { bottom: 8px; padding: 5px 6px; } .jm-mapHero .jm-mapArr { width: 38px; height: 38px; font-size: 25px; }
  .jm-map .jm-mapPlay { font-size: 20px; padding: 13px 18px; }
  .jm-mapP { font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) { .jm-mapPlay:active { transform: none; } }

/* KF3c (26.11.2026): muzyka wł./wył. (okrągły przycisk z nutą obok kółka ustawień), nowy ekran końca — chusta w kratkę jak na słoiku konfitury, punkty liczą się w górę, Wekowanie, najlepszy wynik */
.jm-rbs { display: flex; gap: 8px; flex: none; }
.jm-musX { display: none; } .jm-rb.jm-off .jm-musX { display: inline; } .jm-rb.jm-off { opacity: .8; }
.jm-dRib { display: none; }
.jm-fsG .jm-dlg { overflow-x: hidden; }
.jm-fsG .jm-dRib { display: block; height: 30px; margin: -22px -20px 12px; border-bottom: 3px solid #8a5a2b;
  background-color: #fffaf0; background-image: linear-gradient(90deg, rgba(200,40,50,.55) 50%, transparent 50%), linear-gradient(rgba(200,40,50,.55) 50%, transparent 50%); background-size: 22px 22px;
  -webkit-mask: radial-gradient(9px at 50% 100%, transparent 98%, #000) 0 0 / 18px 100%; mask: radial-gradient(9px at 50% 100%, transparent 98%, #000) 0 0 / 18px 100%; border-radius: 18px 18px 0 0; }
.jm-fsG .jm-dlg.jm-dLose .jm-dRib { background-image: linear-gradient(90deg, rgba(70,100,150,.45) 50%, transparent 50%), linear-gradient(rgba(70,100,150,.45) 50%, transparent 50%); }
.jm-fsG .jm-dlg h2 { display: table; margin: -2px auto 8px; padding: 2px 16px 4px; line-height: 1.2; border-radius: 12px; background: #fffdf6; border: 2px dashed #c9a16a; }
.jm-dScore { display: inline-flex; align-items: baseline; justify-content: center; gap: 6px; margin: 0 0 6px 14px; vertical-align: middle; }
.jm-dScore b { font-family: 'Exo 2', system-ui, sans-serif; font-weight: 900; font-style: italic; letter-spacing: .5px; font-size: 46px; line-height: 1; color: #c2571a; text-shadow: 0 2px 0 #fff3c4, 0 4px 0 #8a5a2b; font-variant-numeric: tabular-nums; }
.jm-dScore small { font-size: 18px; color: #7a5228; font-weight: 700; }
.jm-dScore b.jm-bump { animation: jmBump .35s ease-out; }
@keyframes jmBump { 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
.jm-dlg p.jm-dWek { display: inline-block; margin: 0 6px 8px; padding: 4px 14px; border-radius: 999px; font-weight: 800; font-size: 17px; color: #5e3a17; background: linear-gradient(#ffe08a, #f2b632); border: 2px solid #b37a12; }
.jm-dlg p.jm-dBest { display: inline-block; margin: 0 6px 8px; padding: 4px 14px; border-radius: 999px; font-weight: 700; font-size: 16px; color: #4a3018; background: rgba(138,90,43,.12); }
.jm-dlg p.jm-dBest.jm-new { color: #fff; background: linear-gradient(#58b04a, #2f7d2a); border: 2px solid #23601f; animation: jmBump .5s ease-out; }
.jm-dlg p.jm-dWek[hidden], .jm-dlg p.jm-dBest[hidden] { display: none; }
@media (max-width: 560px) {
  .jm-fsG .jm-dRib { height: 22px; margin: -14px -14px 8px; background-size: 16px 16px; }
  .jm-dScore { margin: 0 0 4px 8px; } .jm-dScore b { font-size: 30px; } .jm-dScore small { font-size: 15px; }
  .jm-dlg p.jm-dWek, .jm-dlg p.jm-dBest { font-size: 14px; padding: 3px 10px; margin: 0 4px 6px; }
}
@media (min-width: 1000px) { .jm-fsG .jm-dRib { margin-top: -18px; } .jm-fsG .jm-dlg { top: 62px; } .jm-fsG .jm-dlg h2 { font-size: 24px; } }
@media (max-width: 380px) { .jm-rbs { gap: 6px; } .jm-fsG .jm-rbs .jm-rb { width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .jm-dScore b.jm-bump, .jm-dlg p.jm-dBest.jm-new { animation: none; } }

/* KF3d (29.11.2026): tabliczka „Powstał Plaster/Słoik/Miód” (pierwsze 3 razy), mocniejsze efekty specjalnych (błysk, szersza wiązka), jasna poświata wokół specjalnych */
.jm-spmsg { position: absolute; left: 50%; top: 14%; z-index: 22; transform: translateX(-50%); width: min(86%, 420px); box-sizing: border-box; padding: 10px 16px 12px; border-radius: 16px; pointer-events: none; text-align: center;
  background: linear-gradient(180deg, #FFE9A8, #F2B544); border: 3px solid #8a5a2b; box-shadow: 0 5px 0 #5e3a17, 0 14px 30px rgba(0,0,0,.4); color: #3A2205; animation: jmSpMsg 3.6s ease-out forwards; }
.jm-spmsg b { display: block; font: 900 clamp(20px, 5vw, 28px)/1.1 'Exo 2', system-ui, sans-serif; margin-bottom: 4px; }
.jm-spmsg span { display: block; font: 700 clamp(14px, 3.6vw, 17px)/1.3 'Exo 2', system-ui, sans-serif; color: #5e3a17; }
@keyframes jmSpMsg { 0% { opacity: 0; transform: translateX(-50%) translateY(-12px) scale(.9); } 8% { opacity: 1; transform: translateX(-50%) scale(1.04); } 14% { transform: translateX(-50%) scale(1); } 86% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) translateY(-8px); } }
.jm-flash { border-radius: 50%; pointer-events: none; }
.jm-bflash { position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 50% 50%, rgba(255,250,225,.95), rgba(255,236,170,.4) 60%, rgba(255,236,170,0)); pointer-events: none; z-index: 30; }
.jm-t.jm-sp::before { content: ''; position: absolute; inset: -14%; border-radius: 50%; z-index: -1; pointer-events: none; background: radial-gradient(circle, rgba(255,226,130,.65), rgba(255,226,130,0) 68%); animation: jmHalo 1.6s ease-in-out infinite; }
@keyframes jmHalo { 0%, 100% { opacity: .55; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .jm-spmsg { animation: none; } .jm-t.jm-sp::before { animation: none; } }
