/* 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: jmPop .21s ease-in forwards; } @keyframes jmPop { 40% { transform: scale(1.22); } to { transform: scale(.1); opacity: 0; } }
.jm-t.made { animation: jmMade .35s cubic-bezier(.2,1.6,.4,1); } @keyframes jmMade { from { transform: scale(.2) rotate(-20deg); } }
.jm-t.fall { transform: translateY(calc(var(--d) * -100% - var(--d) * 3px)); transition: none; } .jm-t.fall.go { transform: none; transition: transform calc(110ms + var(--d) * 45ms) cubic-bezier(.4,1.35,.6,1); }
.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, .jm-t.fall.go { transition: 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; }
}
