/* Pisaczek Rozrywka — Ul (UL2, 30.11.2026): wygląd gry. Własne rysunki i kolory (miód, drewno, łąka); czcionki Exo 2 / Audiowide z games-v1.css (SIL OFL). */
.gm-ul { --wood: #8a5a2b; --wood3: #5e3a17; --cream: #fff4dc; --gold: #f2c14e; --ink: #3b2410; }
.ul-pane { margin-top: 10px; }
.ul-muted { color: var(--gm-mut, #7a5a30); font-size: 14px; }
.ul-h2 { margin: 18px 0 6px; font-size: 22px; } .ul-lead { margin: 0 0 12px; max-width: 62ch; }
/* ----- ekran startowy: poziomy, „Graj”, półka ----- */
.ul-cont { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0 0 14px; border-radius: 16px; background: rgba(242,193,78,.16); border: 1px solid rgba(242,193,78,.5); }
.ul-cont[hidden] { display: none; } .ul-cont > div { flex: 1; min-width: 0; } .ul-cont p { margin: 2px 0 0; font-size: 14px; } .ul-contArt { width: 34px; height: 34px; flex: none; color: var(--gold); } .ul-contArt svg, .ul-playBtn svg { width: 100%; height: 100%; fill: currentColor; stroke: none; }
.ul-lvBar { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; } .ul-lvBar button { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.ul-lvBar button[aria-pressed="true"] { background: var(--gold); color: #3a2205; border-color: #a8730f; }
.ul-playBtn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 30px; border-radius: 999px; font-size: 22px; font-weight: 900; min-height: 60px; } .ul-playBtn svg { width: 26px; height: 26px; }
.ul-note { margin-top: 12px; max-width: 70ch; }
.ul-levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 22px 0 8px; }
.ul-lvl { text-align: left; padding: 14px; border-radius: 16px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: inherit; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 4px; } .ul-lvl.on { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(242,193,78,.35); }
.ul-lvlName { font-size: 17px; } .ul-lvlD { font-size: 13px; opacity: .85; } .ul-lvlDone { font-weight: 800; margin-top: 4px; } .ul-lvlPts { color: var(--gold); letter-spacing: 2px; min-height: 1.2em; }
.ul-shelfBox { margin-top: 22px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); }
.ul-shelf { display: flex; flex-wrap: wrap; gap: 6px; min-height: 48px; margin: 8px 0; padding: 8px 10px 14px; border-radius: 10px; background: linear-gradient(#a9703a, #7a4a22); box-shadow: inset 0 -6px 0 #5e3a17; align-items: flex-end; }
.ul-jarW { display: inline-block; } .ul-jar { width: 44px; height: 44px; display: block; filter: drop-shadow(0 3px 2px rgba(0,0,0,.35)); }
@media (max-width: 760px) { .ul-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ul-playBtn { width: 100%; justify-content: center; } }
/* ----- okna pytań ----- */
.ul-big { position: fixed; inset: 0; z-index: 2147483646; display: grid; place-items: center; background: rgba(20,12,4,.55); padding: 16px; } .ul-big[hidden] { display: none; }
.ul-box { width: min(440px, 100%); padding: 22px; border-radius: 20px; background: linear-gradient(#fff8e8, #f3dfb5); border: 4px solid var(--wood); color: var(--ink); text-align: center; box-shadow: 0 6px 0 var(--wood3), 0 16px 40px rgba(0,0,0,.45); } .ul-box p { font-size: 19px; margin: 0 0 14px; }
.ul-row2 { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
/* ----- gra na cały ekran ----- */
.ul-fsG { position: fixed; inset: 0; z-index: 2147483640; overflow-y: auto; overflow-x: hidden; background: #a6d77f; color: var(--ink); font-family: 'Exo 2', system-ui, sans-serif; padding-bottom: env(safe-area-inset-bottom); }
html.ul-fsOn, html.ul-fsOn body { overflow: hidden !important; }
html.ul-fsOn .gm-ul { z-index: auto !important; transform: none !important; filter: none !important; contain: none !important; } /* bez własnej warstwy — gra wychodzi nad paski strony */
html.ul-fsOn #pnpPlCover { z-index: 2147483642 !important; } /* zasłona gościa/Free (games-lock-v1.js) zostaje nad planszą */
.ul-scene { display: none; } .ul-fsG .ul-scene { display: block; position: fixed; inset: 0; z-index: 0; } .ul-scene svg { width: 100%; height: 100%; display: block; }
.ul-fsTop, .ul-layout { display: none; } .ul-fsG .ul-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; }
.ul-rb { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer; color: var(--cream); background: radial-gradient(circle at 35% 30%, #d9a165, var(--wood) 70%); border: 3px solid var(--wood3); box-shadow: 0 3px 0 var(--wood3), 0 6px 10px rgba(0,0,0,.3); }
.ul-rb svg { width: 24px; height: 24px; } .ul-rb:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--wood3); } .ul-rb:focus-visible, .ul-tool:focus-visible { outline: 3px solid #fff; outline-offset: 2px; } .ul-musX { display: none; } .ul-rb.ul-off .ul-musX { display: inline; } .ul-rb.ul-off { opacity: .8; }
.ul-rbs { display: flex; gap: 8px; flex: none; }
.ul-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(--wood3); box-shadow: inset 0 2px 0 #e6b47a, 0 4px 0 var(--wood3), 0 6px 12px rgba(0,0,0,.25); color: #fff; font-weight: 900; font-size: 19px; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.ul-fsG .ul-layout { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 1180px; margin: 0 auto; padding: 8px 8px 16px; }
.ul-hud { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 20px; background: linear-gradient(#fff8e8, #f3dfb5); border: 4px solid var(--wood); box-shadow: 0 4px 0 var(--wood3), 0 10px 20px rgba(0,0,0,.28); box-sizing: border-box; }
.ul-moves { flex: none; width: 76px; height: 76px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle at 40% 30%, #ffe9a0, #f2b43a 70%); border: 4px solid #a8730f; box-shadow: 0 3px 0 #7a520a; }
.ul-moves b { font-size: 34px; line-height: .95; font-weight: 900; color: #5a3605; } .ul-moves span { font-size: 11px; font-weight: 900; letter-spacing: .06em; color: #6b4307; text-transform: uppercase; }
.ul-moves.low { background: radial-gradient(circle at 40% 30%, #ffb4a6, #e2553f 70%); border-color: #922b1b; box-shadow: 0 3px 0 #6e1d10; animation: ulLow 1s ease-in-out infinite; } .ul-moves.low b, .ul-moves.low span { color: #fff; } @keyframes ulLow { 50% { transform: scale(1.06); } }
.ul-goals { flex: 1; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; } .ul-goal { display: flex; flex-direction: column; align-items: center; } .ul-goal svg { width: 48px; height: 48px; filter: drop-shadow(0 3px 3px rgba(0,0,0,.25)); }
.ul-goal .n { margin-top: 1px; min-width: 46px; padding: 1px 8px; border-radius: 999px; background: var(--wood); color: #fff; font-weight: 900; font-size: 16px; text-align: center; border: 2px solid var(--wood3); } .ul-goal.done .n { background: #3f8f2f; border-color: #2a6420; }
.ul-pts { flex: none; width: 86px; text-align: center; } .ul-pts b { display: block; font-size: 24px; font-weight: 900; color: var(--wood3); } .ul-pts small { font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: #7a5228; }
.ul-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
.ul-tray { display: flex; align-items: center; gap: 10px; padding: 5px 16px 5px 8px; border-radius: 999px; background: linear-gradient(#fff8e8, #f3dfb5); border: 3px solid var(--wood); box-shadow: 0 3px 0 var(--wood3); } .ul-tray.ul-off { opacity: .55; }
.ul-now { width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(circle, #fff6cf, #ffd76a); border: 3px solid #e08a00; display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(255,184,74,.4); } .ul-now svg { width: 46px; height: 46px; }
.ul-next { width: 38px; height: 38px; border-radius: 50%; background: #f3e3bd; border: 2px solid #cda766; display: grid; place-items: center; } .ul-next svg { width: 32px; height: 32px; }
.ul-tray em { font-style: normal; font-size: 12px; font-weight: 900; color: #6b4a14; letter-spacing: .04em; text-transform: uppercase; }
.ul-frame { padding: 8px; border-radius: 26px; background: linear-gradient(#d9a165, #a8703a); border: 4px solid var(--wood3); box-shadow: 0 6px 0 var(--wood3), 0 14px 26px rgba(0,0,0,.35); }
.ul-board { display: block; border-radius: 18px; background: #fbe9bd; line-height: 0; touch-action: manipulation; user-select: none; -webkit-user-select: none; } .ul-board:focus-visible { outline: 3px solid #fff; outline-offset: 3px; } .ul-board svg { display: block; border-radius: 18px; }
.ul-cell { fill: #f8e2ae; stroke: #d9b064; stroke-width: 2; } .ul-c { cursor: pointer; } .ul-c.free:hover .ul-cell { fill: #fff1c4; } .ul-prop { fill: #7a4a22; stroke: #4d2b10; stroke-width: 2; } .ul-c.pr { cursor: not-allowed; }
.ul-wax { fill: #fff6dc; stroke: #d9c08a; stroke-width: 2; stroke-dasharray: 5 4; opacity: .95; }
.ul-c.sel .ul-cell { fill: #fff1c4; stroke: #ff9d00; stroke-width: 3.5; } .ul-c.mg .ul-cell { fill: #ffe9a0; stroke: #ff9d00; stroke-width: 3; } .ul-c.hn .ul-cell { fill: #fff1c4; stroke: #ff9d00; stroke-width: 3.5; animation: ulPulse 1s ease-in-out infinite; } .ul-c.kf .ul-cell { stroke: #3b2410; stroke-width: 3.5; stroke-dasharray: 6 4; }
@keyframes ulPulse { 50% { stroke-opacity: .25; } }
.ul-link { stroke: #ff9d00; stroke-width: 4; stroke-dasharray: 2 7; stroke-linecap: round; } .ul-ghost { pointer-events: none; } .ul-lf, .ul-ll { pointer-events: none; }
.ul-p { filter: drop-shadow(0 2px 1.5px rgba(70,40,10,.3)); pointer-events: none; }
.ul-fsG .ul-fsBot { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; }
.ul-tools { display: flex; gap: 6px; justify-content: center; }
.ul-tool { width: 80px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0; border: 0; background: none; cursor: pointer; font: 900 12px/1.1 'Exo 2', system-ui, sans-serif; color: #fff; }
.ul-tool span { padding: 2px 9px 3px; border-radius: 999px; background: var(--wood3); border: 1px solid rgba(255,255,255,.35); white-space: nowrap; }
.ul-tool svg { width: 56px; height: 56px; padding: 14px; box-sizing: border-box; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #d9a165, var(--wood) 70%); border: 3px solid var(--wood3); box-shadow: 0 3px 0 var(--wood3); color: var(--cream); }
.ul-tool.ul-hintBtn svg { background: radial-gradient(circle at 35% 30%, #ffe9a0, #f2b43a 70%); border-color: #a8730f; box-shadow: 0 3px 0 #7a520a; color: #5a3605; } .ul-tool:disabled { opacity: .55; cursor: default; }
.ul-bee { position: relative; width: 64px; height: 60px; align-self: flex-start; margin: 0 0 0 12px; } .ul-bee svg { width: 60px; height: 60px; }
.ul-beeBub { position: absolute; left: 62px; top: -2px; width: max-content; max-width: min(260px, 62vw); padding: 8px 12px; border-radius: 14px; background: #fff; border: 3px solid var(--wood); font-weight: 800; font-size: 14px; line-height: 1.25; opacity: 0; transform: scale(.7); transform-origin: 0 50%; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 5; } .ul-beeBub.on { opacity: 1; transform: none; }
.ul-nowTxt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* ----- okno końca ----- */
.ul-dlg { position: absolute; left: 50%; top: 40px; transform: translateX(-50%); z-index: 40; width: min(520px, calc(100% - 20px)); box-sizing: border-box; padding: 22px 20px 16px; border-radius: 22px; text-align: center; max-height: calc(100dvh - 110px); overflow-y: auto; overflow-x: hidden; background: linear-gradient(#fff8e8, #f3dfb5); border: 4px solid var(--wood); color: #3b2410; box-shadow: 0 6px 0 var(--wood3), 0 16px 40px rgba(0,0,0,.4); } .ul-dlg[hidden] { display: none; }
.ul-dlg h2 { display: table; margin: -2px auto 8px; padding: 2px 16px 4px; line-height: 1.2; font-size: 24px; color: #5e3a17; border-radius: 12px; background: #fffdf6; border: 2px dashed #c9a16a; } .ul-dlg p { font-size: 16px; margin: 0 0 8px; color: #4a3018; }
.ul-dRib { display: block; height: 28px; 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; }
.ul-dLose .ul-dRib { background-image: linear-gradient(90deg, rgba(70,100,150,.45) 50%, transparent 50%), linear-gradient(rgba(70,100,150,.45) 50%, transparent 50%); }
.ul-bigPts { display: flex; justify-content: center; gap: 10px; margin-bottom: 4px; font-size: 30px; line-height: 1; } .ul-bigPts[hidden] { display: none; } .ul-bigPts i { font-style: normal; color: rgba(90,54,5,.2); transition: color .2s; } .ul-bigPts i.on { color: #e7a113; } .ul-bigPts i.pop { animation: ulBump .35s ease-out; }
.ul-dScore { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 2px 0 6px; } .ul-dScore b { font-size: 44px; line-height: 1; font-weight: 900; font-style: italic; color: #c2571a; text-shadow: 0 2px 0 #fff3c4, 0 4px 0 #8a5a2b; font-variant-numeric: tabular-nums; } .ul-dScore small { font-size: 16px; color: #7a5228; font-weight: 700; }
.ul-bump { animation: ulBump .35s ease-out; } @keyframes ulBump { 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
.ul-dlg p.ul-dBonus, .ul-dlg p.ul-dBest { display: inline-block; margin: 0 6px 8px; padding: 4px 14px; border-radius: 999px; font-weight: 800; font-size: 15px; } .ul-dlg p.ul-dBonus { color: #5e3a17; background: linear-gradient(#ffe08a, #f2b632); border: 2px solid #b37a12; } .ul-dlg p.ul-dBest { color: #4a3018; background: rgba(138,90,43,.12); } .ul-dlg p.ul-dBest.ul-new { color: #fff; background: linear-gradient(#58b04a, #2f7d2a); border: 2px solid #23601f; animation: ulBump .5s ease-out; }
.ul-dlg p[hidden] { display: none; } .ul-rec { font-weight: 800; } .ul-shelfDlg { justify-content: center; } .ul-shelfDlg[hidden], .ul-panTxt[hidden] { display: none; }
.ul-dlg .ul-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .ul-dlg .ul-row2 > :first-child { grid-column: 1 / -1; } .ul-dlg .gm-btn { min-height: 46px; font-size: 16px; padding: 6px 12px; width: 100%; box-sizing: border-box; margin: 0; justify-content: center; }
.ul-dlg .gm-btn.gm-ghost { color: #5e3a17; border-color: #8a5a2b; background: rgba(255,255,255,.55); }
.ul-also { margin-top: 8px; padding: 8px 12px; display: flex; gap: 8px; align-items: center; border-radius: 12px; background: rgba(138,90,43,.1); text-align: left; } .ul-also[hidden] { display: none; } .ul-also > div { flex: 1; min-width: 0; } .ul-also b { display: block; font-size: 15px; } .ul-also .gm-kicker, .ul-also .ul-muted { display: none; } .ul-also .gm-btn { width: auto; flex: none; }
/* ----- ustawienia, karta startowa, komunikaty ----- */
.ul-set { position: fixed; inset: 0; z-index: 2147483645; display: grid; place-items: center; background: rgba(20,12,4,.55); padding: 14px; } .ul-set[hidden] { display: none; }
.ul-setBox { width: min(480px, 100%); max-height: 90dvh; overflow-y: auto; padding: 16px; border-radius: 20px; background: linear-gradient(#fff8e8, #f3dfb5); border: 4px solid var(--wood); color: var(--ink); box-shadow: 0 6px 0 var(--wood3), 0 16px 40px rgba(0,0,0,.45); }
.ul-setHead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; } .ul-setHead h2 { margin: 0; font-size: 22px; color: #5e3a17; } .ul-setBox .gm-btn.gm-ghost { color: #5e3a17; border-color: #8a5a2b; }
.ul-stats dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 6px 0 10px; } .ul-stats dt { color: #6b4a14; } .ul-stats dd { margin: 0; font-weight: 800; text-align: right; }
.ul-how { margin: 8px 0; } .ul-how summary { font-weight: 800; cursor: pointer; padding: 6px 0; } .ul-how p { margin: 6px 0; font-size: 15px; } .ul-opt { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; font-size: 15px; } .ul-opt input { margin-top: 3px; width: 20px; height: 20px; flex: none; }
.ul-startCard { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); z-index: 30; width: min(86%, 380px); box-sizing: border-box; padding: 14px 16px 16px; border-radius: 20px; text-align: center; background: linear-gradient(#fff8e8, #f3dfb5); border: 4px solid var(--wood); box-shadow: 0 6px 0 var(--wood3), 0 16px 40px rgba(0,0,0,.45); }
.ul-scK { display: block; font-size: 13px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: #7a5228; } .ul-startCard h3 { margin: 4px 0 8px; font-size: 22px; color: #5e3a17; } .ul-sGoals { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.ul-warn { position: absolute; left: 50%; top: 18%; z-index: 21; transform: translate(-50%, -50%); padding: 10px 18px; border-radius: 16px; pointer-events: none; white-space: nowrap; font: 900 clamp(22px, 5vw, 32px)/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: ulWarn 1.6s ease-out forwards; }
@keyframes ulWarn { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 25% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }
.ul-chain { position: absolute; left: 50%; top: 30%; z-index: 22; transform: translate(-50%, -50%); font: 900 clamp(28px, 7vw, 44px)/1 system-ui, sans-serif; color: #fff3c4; text-shadow: 0 3px 0 #a8630a, 0 8px 18px rgba(0,0,0,.4); pointer-events: none; animation: ulChain 1.3s ease-out forwards; } @keyframes ulChain { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.5); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -90%) scale(1); } }
.ul-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 35; } .ul-confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: ulConf 2.2s ease-in forwards; } @keyframes ulConf { to { transform: translateY(520px) rotate(var(--r, 360deg)); opacity: .2; } }
/* ----- komputer ----- */
@media (min-width: 1000px) {
  .ul-fsG .ul-layout { display: grid; grid-template-columns: minmax(200px, 1fr) auto minmax(200px, 1fr); grid-template-areas: "left stage right"; justify-content: center; align-items: start; gap: 24px; max-width: 1560px; padding: 18px 20px 24px; }
  .ul-fsG .ul-hud, .ul-fsG .ul-lnCard { grid-area: left; justify-self: end; width: min(100%, 300px); } .ul-fsG .ul-stage { grid-area: stage; width: auto; } .ul-fsG .ul-fsBot { grid-area: right; justify-self: start; width: min(100%, 220px); }
  .ul-lnCard { margin: 0; padding: 14px 16px 12px; } .ul-lnCard h2 { font-size: 21px; } .ul-lnCard p { font-size: 15.5px; }
  .ul-hud { width: auto; flex-direction: column; padding: 14px; } .ul-goals { flex-direction: row; } .ul-pts { width: auto; }
  .ul-fsG .ul-fsBot { align-items: center; } .ul-tools { flex-direction: column; } .ul-bee { align-self: center; margin: 6px 0 0; width: 150px; height: auto; text-align: center; } .ul-bee svg { display: block; margin: 0 auto; } .ul-beeBub { position: static; display: block; width: 150px; max-width: 150px; min-height: 66px; margin-top: 6px; box-sizing: border-box; transform-origin: 50% 0; }
  .ul-fsG .ul-dlg { position: fixed; top: 62px; }
}
@media (max-width: 999px) { .ul-fsG .ul-dlg { position: fixed; top: 64px; width: calc(100% - 20px); max-height: calc(100dvh - 150px); } .ul-dlg h2 { font-size: 22px; } .ul-dScore b { font-size: 32px; } .ul-dRib { height: 22px; margin: -22px -20px 8px; background-size: 16px 16px; } .ul-dlg .gm-btn { font-size: 15px; } }
@media (max-width: 380px) { .ul-rbs { gap: 6px; } .ul-rbs .ul-rb { width: 44px; height: 44px; } .ul-moves { width: 66px; height: 66px; } .ul-moves b { font-size: 28px; } .ul-tool { width: 72px; } }
@media (prefers-reduced-motion: reduce) { .ul-moves.low, .ul-c.hn .ul-cell, .ul-warn, .ul-chain, .ul-bump, .ul-dBest.ul-new, .ul-bigPts i.pop { animation: none !important; } .ul-beeBub { transition: none; } }

/* ----- mapa „Ścieżka przez łąkę”: plastry po 50 w dziale, wąż po 5 w rzędzie ----- */
.ul-map { margin: 16px 0 6px; }
.ul-mapNav { display: flex; align-items: center; gap: 10px; max-width: 326px; margin: 4px 0 8px; } /* węższe: strzałka nie wchodzi pod przycisk „Pomoc” przy prawej krawędzi telefonu */ .ul-mapSec { flex: 1; text-align: center; display: flex; flex-direction: column; } .ul-mapSec b { font-size: 17px; } .ul-mapSec span { font-size: 13px; opacity: .8; }
.ul-mapArr { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--wood3); background: radial-gradient(circle at 35% 30%, #d9a165, var(--wood) 70%); color: var(--cream); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 3px 0 var(--wood3); } .ul-mapArr:disabled { opacity: .4; cursor: default; }
.ul-mapMsg { min-height: 1.4em; margin: 0 0 6px; font-weight: 800; color: #ffd98a; } .ul-mapMsg.on { animation: ulBump .4s ease-out; }
.ul-trail { max-width: 420px; padding: 10px; border-radius: 22px; border: 4px solid var(--wood); box-shadow: 0 5px 0 var(--wood3); box-sizing: border-box; } .ul-trail svg { display: block; width: 100%; height: auto; }
.ul-nline { fill: none; stroke: rgba(138,90,43,.45); stroke-width: 4; stroke-dasharray: 2 8; stroke-linecap: round; stroke-linejoin: round; }
.ul-n { cursor: pointer; outline: none; } .ul-nh { fill: #ffe9a0; stroke: #d9b064; stroke-width: 2; } .ul-nt { font: 900 15px 'Exo 2', system-ui, sans-serif; fill: #4a2a05; pointer-events: none; }
.ul-n-won .ul-nh { fill: #f4b32a; stroke: #a8630a; stroke-width: 2.5; } .ul-n-lock .ul-nh { fill: #f3e7c8; stroke: #e0cfa3; } .ul-n-lock .ul-nt { fill: #b7a57a; } .ul-n-lock { cursor: not-allowed; }
.ul-n-here .ul-nh { fill: #fff1c4; stroke: #ff9d00; stroke-width: 3.5; animation: ulPulse 1.1s ease-in-out infinite; } .ul-n:focus-visible .ul-nh { stroke: #3b2410; stroke-width: 3.5; } .ul-n:hover:not(.ul-n-lock) .ul-nh { stroke-width: 3.5; }
.ul-mapGo { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .ul-n-here .ul-nh, .ul-mapMsg.on { animation: none; } }

/* ===== UL3 (30.11.2026): zakładki Graj / Naucz się, lekcje, zadania „jednym ruchem” ===== */
.ul-tabs { display: flex; gap: 6px; padding: 6px; margin: 0 0 12px; border-radius: 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(242,193,78,.45); max-width: 420px; }
.ul-tabs button { flex: 1 1 0; min-height: 48px; padding: 8px 14px; border-radius: 13px; border: 1px solid transparent; background: transparent; color: inherit; font: inherit; font-size: 18px; font-weight: 800; cursor: pointer; }
.ul-tabs button[aria-pressed="true"] { background: var(--gold); color: #3a2205; border-color: #a8730f; }
.ul-lpane[hidden], #ulPlayPane[hidden] { display: none; }
.ul-h3 { margin: 16px 0 4px; font-size: 19px; }
.ul-lessons { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 10px; max-width: 640px; }
.ul-lItem { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 14px; border-radius: 14px; border: 1.5px solid rgba(242,193,78,.45); background: rgba(255,255,255,.07); color: inherit; font: inherit; font-size: 17px; text-align: start; cursor: pointer; }
.ul-lItem span:nth-child(2) { flex: 1; display: flex; flex-direction: column; } .ul-lItem b { font-size: 14px; opacity: .75; font-weight: 600; } .ul-lItem i { font-style: normal; color: #2e8b4f; font-size: 22px; font-weight: 800; }
.ul-lNo { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: rgba(242,193,78,.3); flex: none; } .ul-lItem.done .ul-lNo { background: #2e8b4f; color: #fff; }
.ul-zd[hidden] { display: none; }
.ul-zdGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; margin-top: 10px; max-height: 260px; overflow-y: auto; }
.ul-zdGrid button { min-height: 44px; border-radius: 10px; border: 1px solid rgba(242,193,78,.5); background: rgba(255,255,255,.07); color: inherit; font: inherit; font-size: 15px; cursor: pointer; } .ul-zdGrid button.done { background: #2e8b4f; border-color: #1f6d3b; color: #fff; }
/* lekcja na pełnym ekranie: bez liczników ruchów/punktów, za to karta z opisem */
.ul-lsn .ul-hud { display: none; }
.ul-lnCard { width: min(560px, calc(100% - 24px)); box-sizing: border-box; padding: 10px 14px 8px; margin: 2px 0 6px; border-radius: 14px; background: rgba(255,250,235,.94); border: 2px solid #c9a16a; color: #3b2410; text-align: start; }
.ul-lnCard[hidden] { display: none; } .ul-lnCard h2 { margin: 2px 0 4px; font-size: 19px; line-height: 1.2; } .ul-lnCard p { margin: 3px 0; font-size: 14.5px; line-height: 1.35; } .ul-lnCard .gm-kicker { font-size: 12px; }
.ul-lnKeep[hidden] { display: none; } .ul-lnKeep { font-weight: 600; }
#ulLnDone p:empty { display: none; }
@media (max-width: 999px) { .ul-tabs { max-width: none; } .ul-lnCard p { font-size: 13.5px; } .ul-lnCard h2 { font-size: 17px; } }

/* ===== UL4 (30.11.2026): „Co to jest?” w karcie startu, „Jak grać” z drabiną elementów ===== */
.ul-intro { display: flex; align-items: center; gap: 10px; margin: 10px 0 6px; padding: 8px 10px; border-radius: 12px; background: rgba(242,193,78,.22); border: 1px dashed #c9a16a; text-align: start; }
.ul-intro svg { width: 46px; height: 46px; flex: none; } .ul-intro b { font-size: 15px; } .ul-intro p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.3; }
.ul-howHome { margin: 14px 0 4px; max-width: 70ch; } .ul-howHome summary { font-size: 17px; }
.ul-ladder { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 8px 0 10px; }
.ul-ladder span { display: flex; flex-direction: column; align-items: center; width: 62px; } .ul-ladder svg { width: 48px; height: 48px; } .ul-ladder small { font-size: 12px; font-weight: 700; } .ul-ladder i { font-style: normal; font-weight: 900; opacity: .6; }
.ul-startCard { pointer-events: none; } .ul-startCard button { pointer-events: auto; } /* UL4: karta startu nie blokuje planszy — dotknięcie pola pod nią zamyka kartę i działa jak zwykle */

/* UL5: „(1000)” przy poziomach i „Rozwiązane: x z 1000” */
.ul-lvBar button small { font-weight: 600; opacity: .8; } .ul-pzDone { margin: -4px 0 12px; font-weight: 700; }
.ul-pzDone { color: inherit; opacity: .9; } /* czytelny na ciemnym tle ekranu Rozrywki */

/* ===== UL6 (01.12.2026): układ komputera i telefonu — plansza duża i na środku, „Naucz się” prowadzi po kolei ===== */
.ul-lnLv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 10px; } .ul-lnLv[hidden] { display: none; } .ul-lnLv .gm-btn { min-height: 46px; font-size: 15px; padding: 6px 8px; width: 100%; box-sizing: border-box; margin: 0; justify-content: center; }
@media (max-width: 999px) { .ul-fsG .ul-lnCard { width: calc(100% - 24px); max-width: 560px; } .ul-lnLv { grid-template-columns: 1fr 1fr; } }
/* pasek u góry: tytuł dokładnie na środku, przyciski po bokach, w tej samej szerokości co układ */
.ul-fsG .ul-fsTop { display: grid; grid-template-columns: 1fr auto 1fr; max-width: 1560px; } .ul-fsG .ul-fsTop .ul-rbs { justify-self: end; } .ul-fsG .ul-fsTop > #ulBack { justify-self: start; }
@media (min-width: 1000px) { .ul-fsG .ul-fsTop { padding: 14px 20px 0; } }
.ul-lpane .ul-muted { color: inherit; opacity: .85; font-weight: 700; } @media (min-width: 1000px) { .ul-lpane > .ul-lcol, .ul-lpane > .ul-zd { min-width: 0; } .ul-lpane .ul-lcol .ul-h3, .ul-lpane .ul-zd .ul-h3 { margin-top: 4px; } }

/* ===== UL7 (01.12.2026): lista „Naucz się” na całą szerokość (karty lekcji jak karty poziomów), okno „O grze” nad grą na pełnym ekranie ===== */
.ul-lpane { max-width: none; }
.ul-lpane .ul-lessons { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; max-width: none; margin: 10px 0 18px; }
.ul-lpane .ul-lItem { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 8px; min-height: 120px; padding: 14px; position: relative; } .ul-lpane .ul-lItem span:nth-child(2) { flex: none; } .ul-lpane .ul-lItem i { position: absolute; top: 12px; right: 14px; }
.ul-lpane .ul-zd { margin-top: 8px; } .ul-lpane .ul-zdGrid { grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); max-height: none; }
.ul-lpane > .ul-lead, .ul-lpane .ul-zd > .ul-lead { max-width: 70ch; }
html.ul-fsOn .gm-about { z-index: 2147483646 !important; }
.ul-aboutBtn { width: 100%; margin: 0 0 10px; justify-content: center; }
/* UL9 (telefon): lekcja wygląda jak Graj — karta z opisem stoi w miejscu panelu z licznikami (plansza w tym samym miejscu), a dymek pszczoły zajmuje własny rząd i nie zasłania przycisków */
@media (max-width: 999px) {
  .ul-fsG .ul-lnCard { order: -1; min-height: 120px; display: flex; flex-direction: column; justify-content: center; margin: 0 0 2px; padding-top: 8px; padding-bottom: 6px; }
  .ul-fsG .ul-bee { display: flex; align-items: center; gap: 8px; width: calc(100% - 24px); height: auto; min-height: 64px; margin: 0 12px; box-sizing: border-box; }
  .ul-fsG .ul-bee svg { flex: none; }
  .ul-fsG .ul-beeBub { position: static; flex: 1; width: auto; max-width: none; transform-origin: 0 50%; }
}
