.gd-game.gd-puzzle{box-sizing:border-box;max-width:1900px;margin:24px auto;padding:22px;color:#263a32;background:#f9faf6;border:1px solid #e3e7dc;border-radius:28px;font-family:system-ui,sans-serif;box-shadow:0 16px 50px #24382b0d}
.gd-game.gd-puzzle .gd-puzzle-nav{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:24px}
.gd-game.gd-puzzle .gd-puzzle-nav a{color:#315a46;text-decoration:none;font-weight:700;padding:9px 16px;background:#fff;border:1px solid #dbe4d8;border-radius:14px}
.gd-game.gd-puzzle .gd-puzzle-title{font-size:clamp(26px,4vw,40px);letter-spacing:-1px;line-height:1.15;margin:18px 0 10px;text-align:center;color:#263a32}
.gd-game.gd-puzzle .gd-puzzle-subtitle{text-align:center;color:#566659;line-height:1.55;margin:10px auto 22px;max-width:720px}
.gd-game.gd-puzzle button{font:inherit;cursor:pointer;touch-action:manipulation}
.gd-game.gd-puzzle button:focus-visible,.gd-game.gd-puzzle a:focus-visible{outline:4px solid #375adc;outline-offset:3px}
.gd-game.gd-puzzle .gd-puzzle-levels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-content:center;min-height:420px;max-width:940px;margin:auto}
.gd-game.gd-puzzle .gd-puzzle-level{border:1px solid #dbc77e;border-radius:24px;min-height:220px;padding:28px 18px;display:flex;flex-direction:column;gap:16px;align-items:center;justify-content:center;background:#fff1af;color:#594610;box-shadow:0 8px 0 #d8c77855}
.gd-game.gd-puzzle .gd-puzzle-level-mijlocie{background:#d9f0c5;border-color:#a5c788;color:#34522c;box-shadow:0 8px 0 #a5c78855}
.gd-game.gd-puzzle .gd-puzzle-level-mare{background:#e5dcfa;border-color:#b9a1dc;color:#543779;box-shadow:0 8px 0 #b9a1dc55}
.gd-game.gd-puzzle .gd-puzzle-level strong{font-size:23px}
.gd-game.gd-puzzle .gd-puzzle-level-icon{font-size:44px}
.gd-game.gd-puzzle .gd-puzzle-themes{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr));gap:24px}
.gd-game.gd-puzzle .gd-puzzle-theme{border:1px solid #dce4d7;background:#fff;border-radius:20px;overflow:hidden;padding:0 0 18px;display:flex;flex-direction:column;align-items:center;gap:8px;color:#293d31;box-shadow:0 7px 24px #24382b0c}
.gd-game.gd-puzzle .gd-puzzle-theme img{display:block;width:100%;height:210px;object-fit:contain;background:#f1f3eb}
.gd-game.gd-puzzle .gd-puzzle-theme strong{font-size:19px}
.gd-game.gd-puzzle .gd-puzzle-theme small{color:#79816e;margin-top:7px}
.gd-game.gd-puzzle .gd-puzzle-category{margin:28px 0 34px}
.gd-game.gd-puzzle .gd-puzzle-category-title{font-size:24px;padding-bottom:12px;border-bottom:1px solid #dce4d7;text-align:left}
.gd-game.gd-puzzle .gd-puzzle-theme strong{padding:6px 14px 0}
.gd-game.gd-puzzle .gd-puzzle-toolbar{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.gd-game.gd-puzzle .gd-button{background:#fff;border:1px solid #cedccf;border-radius:12px;padding:10px 16px;min-height:44px;color:#315a46;font-weight:650}
.gd-game.gd-puzzle .gd-puzzle-progress{text-align:center;font-weight:700;color:#40694c;font-size:17px}
.gd-game.gd-puzzle .gd-puzzle-layout{display:grid;gap:18px;width:100%;max-width:1100px;margin:auto;align-items:start}
.gd-game.gd-puzzle .gd-puzzle-layout:has(.gd-puzzle-tray){grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.gd-game.gd-puzzle .gd-puzzle-board{display:grid;width:100%;overflow:hidden;gap:0;background:#e7e9df;outline:4px solid #405941;border-radius:8px}
.gd-game.gd-puzzle .gd-puzzle-target{min-width:0;display:flex;flex-direction:column;gap:12px}
.gd-game.gd-puzzle .gd-puzzle-reference{margin:0;padding:0;min-width:0;display:flex;flex-direction:column;gap:5px}
.gd-game.gd-puzzle .gd-puzzle-reference figcaption{text-align:center;font-size:14px;font-weight:700;line-height:1.2;margin:0;padding:0;color:#315a46}
.gd-game.gd-puzzle .gd-puzzle-reference img{display:block;width:100%;height:clamp(90px,20dvh,180px);object-fit:contain;margin:0;padding:0;border-radius:8px;background:#edf1e7}
.gd-game.gd-puzzle.gd-puzzle-reference-in-tray .gd-puzzle-reference{margin-bottom:12px}
.gd-game.gd-puzzle.gd-puzzle-reference-in-tray .gd-puzzle-reference img{height:clamp(90px,14dvh,130px)}
.gd-game.gd-puzzle .gd-puzzle-toolbar .gd-button{box-sizing:border-box}
.gd-game.gd-puzzle .gd-puzzle-cell{padding:0;margin:0;border:0;min-width:0;min-height:0;border-radius:0;box-shadow:inset 0 0 0 1px #6b846449;background-color:#e8ece2;background-repeat:no-repeat}
.gd-game.gd-puzzle .gd-puzzle-cell:disabled{opacity:1;cursor:default}
.gd-game.gd-puzzle .gd-puzzle-cell[data-action="slot"]:not(:disabled)::after{content:'+';font-size:20px;color:#869381}
.gd-game.gd-puzzle .gd-puzzle-tray{display:grid;gap:6px;align-content:start;min-height:70px}
.gd-game.gd-puzzle .gd-puzzle-tray-panel{min-width:0}
.gd-game.gd-puzzle .gd-puzzle-piece[hidden],.gd-game.gd-puzzle .gd-puzzle-pager[hidden]{display:none}
.gd-game.gd-puzzle .gd-puzzle-pager{display:flex;justify-content:space-between;align-items:center;gap:4px;margin-top:10px;font-size:12px;white-space:nowrap}
.gd-game.gd-puzzle .gd-puzzle-pager .gd-button{min-width:32px;width:32px;min-height:44px;padding:5px 0;flex:0 0 32px}
.gd-game.gd-puzzle .gd-puzzle-piece{padding:0;margin:0;border:0;min-width:0;min-height:0;box-sizing:border-box;background-repeat:no-repeat;border-radius:5px;box-shadow:0 3px 8px #213c2b28;touch-action:none;cursor:grab}
.gd-game.gd-puzzle .gd-puzzle-selected{outline:4px solid #f4bd32;outline-offset:-4px}
.gd-game.gd-puzzle .gd-puzzle-dragging{opacity:.35}
.gd-game.gd-puzzle .gd-puzzle-ghost{position:fixed;pointer-events:none;background-repeat:no-repeat;padding:0;border:0;border-radius:5px;z-index:100000;box-shadow:0 12px 30px #1d32275c}
.gd-game.gd-puzzle .gd-puzzle-announcement{text-align:center;color:#5a6d54;min-height:20px;margin:8px 0 4px}
.gd-game.gd-puzzle .gd-puzzle-success{background:#e3f3d3;border-radius:20px;padding:22px;text-align:center;margin-top:16px;color:#35502d}
.gd-game.gd-puzzle .gd-puzzle-success[hidden]{display:none}
.gd-game.gd-puzzle:is([data-state="playing"],[data-state="completed"]){margin:10px auto;padding:16px}
.gd-game.gd-puzzle:is([data-state="playing"],[data-state="completed"]) .gd-puzzle-nav{margin-bottom:12px;gap:8px}
.gd-game.gd-puzzle:is([data-state="playing"],[data-state="completed"]) .gd-puzzle-title{font-size:clamp(23px,3vw,32px);margin:12px 0 8px}
.gd-game.gd-puzzle:is([data-state="playing"],[data-state="completed"]) .gd-puzzle-subtitle{font-size:14px;margin:8px auto 12px}
.gd-game.gd-puzzle:is([data-state="playing"],[data-state="completed"]) .gd-puzzle-progress{margin:8px 0 16px}
.gd-game.gd-puzzle.gd-puzzle-compact .gd-puzzle-layout:has(.gd-puzzle-tray){grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:12px}
.gd-game.gd-puzzle:fullscreen,.gd-game.gd-puzzle.gd-puzzle-expanded{width:100%;height:100dvh;max-width:none;overflow:auto;border-radius:0;margin:0;padding:12px;background:#f9faf6}
.gd-game.gd-puzzle.gd-puzzle-expanded{position:fixed;inset:0;z-index:100000}
.gd-game.gd-puzzle.gd-puzzle-stage{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;margin:0;padding:16px;border:0;border-radius:0;z-index:2147483000;overflow:auto;overscroll-behavior:contain;background:#f9faf6}
.gd-game.gd-puzzle:fullscreen .gd-puzzle-nav,.gd-game.gd-puzzle.gd-puzzle-expanded .gd-puzzle-nav{display:none}
@media(pointer:coarse){.gd-game.gd-puzzle .gd-puzzle-nav a,.gd-game.gd-puzzle .gd-button{min-height:48px;box-sizing:border-box}.gd-game.gd-puzzle .gd-puzzle-piece,.gd-game.gd-puzzle .gd-puzzle-cell{user-select:none;-webkit-user-select:none}}
@media(min-width:1400px){.gd-game.gd-puzzle:is([data-state="playing"],[data-state="completed"]) .gd-button{min-height:58px;font-size:19px;padding:12px 22px}.gd-game.gd-puzzle:is([data-state="playing"],[data-state="completed"]) .gd-puzzle-title{font-size:38px}.gd-game.gd-puzzle:is([data-state="playing"],[data-state="completed"]) .gd-puzzle-subtitle{font-size:18px}}
@media(max-height:500px) and (min-width:600px){.gd-game.gd-puzzle:is([data-state="playing"],[data-state="completed"]){padding:10px;margin:0 auto}.gd-game.gd-puzzle:is([data-state="playing"],[data-state="completed"]) .gd-puzzle-nav{margin-bottom:4px}.gd-game.gd-puzzle:is([data-state="playing"],[data-state="completed"]) .gd-puzzle-title{font-size:20px;margin:6px 0}.gd-game.gd-puzzle:is([data-state="playing"],[data-state="completed"]) .gd-puzzle-subtitle{font-size:12px;margin:4px auto}.gd-game.gd-puzzle:is([data-state="playing"],[data-state="completed"]) .gd-puzzle-progress{font-size:14px;margin:4px 0 10px}.gd-game.gd-puzzle:is([data-state="playing"],[data-state="completed"]) .gd-button{min-height:40px;padding:6px 12px;font-size:13px}.gd-game.gd-puzzle:is([data-state="playing"],[data-state="completed"]) .gd-puzzle-nav a{padding:6px 12px}}
@media(max-width:650px){.gd-game.gd-puzzle{margin:10px auto;padding:16px 12px;border-radius:20px}.gd-game.gd-puzzle .gd-puzzle-levels{grid-template-columns:1fr;gap:18px;min-height:460px}.gd-game.gd-puzzle .gd-puzzle-level{min-height:140px;padding:16px;gap:8px}.gd-game.gd-puzzle .gd-puzzle-level-icon{font-size:30px}.gd-game.gd-puzzle .gd-puzzle-title{font-size:28px}.gd-game.gd-puzzle .gd-puzzle-toolbar{gap:6px}.gd-game.gd-puzzle .gd-button{padding:8px 10px;font-size:14px}}
.gd-game.gd-puzzle.gd-puzzle-mobile-play{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;margin:0;border:0;border-radius:0;padding:10px;padding-top:max(10px,env(safe-area-inset-top));padding-bottom:max(10px,env(safe-area-inset-bottom));z-index:2147483000;overflow:auto;overscroll-behavior:contain;box-shadow:none}
.gd-game.gd-puzzle.gd-puzzle-mobile-play .gd-puzzle-nav{margin:0 0 4px;gap:6px}
.gd-game.gd-puzzle.gd-puzzle-mobile-play .gd-puzzle-nav a{display:flex;align-items:center;justify-content:center;min-height:40px;padding:6px 12px;font-size:13px}
.gd-game.gd-puzzle.gd-puzzle-mobile-play .gd-puzzle-toolbar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.gd-game.gd-puzzle.gd-puzzle-mobile-play .gd-puzzle-toolbar .gd-button{padding:6px 3px;min-height:44px;height:44px;line-height:1;font-size:13px;white-space:nowrap}
.gd-game.gd-puzzle.gd-puzzle-mobile-play .gd-puzzle-toolbar .gd-button::after{display:inline-block;position:static;line-height:1;margin:0;padding:0;vertical-align:middle}
.gd-game.gd-puzzle.gd-puzzle-mobile-play .gd-puzzle-toolbar [data-action="restart"],.gd-game.gd-puzzle.gd-puzzle-mobile-play .gd-puzzle-toolbar [data-action="fullscreen"],.gd-game.gd-puzzle.gd-puzzle-mobile-play .gd-puzzle-toolbar [data-action="sound"]{font-size:0}
.gd-game.gd-puzzle.gd-puzzle-mobile-play .gd-puzzle-toolbar [data-action="restart"]::after{content:'↻ Reia';font-size:13px}
.gd-game.gd-puzzle.gd-puzzle-mobile-play .gd-puzzle-toolbar [data-action="fullscreen"]::after{content:'⛶';font-size:22px}
.gd-game.gd-puzzle.gd-puzzle-mobile-play .gd-puzzle-toolbar [data-action="sound"]::after{content:'🔊';font-size:20px}
.gd-game.gd-puzzle.gd-puzzle-mobile-play .gd-puzzle-toolbar [data-action="sound"][aria-pressed="false"]::after{content:'🔇'}
.gd-game.gd-puzzle.gd-puzzle-mobile-play .gd-puzzle-title{font-size:19px;letter-spacing:-.3px;margin:8px 0 4px;line-height:1.2}
.gd-game.gd-puzzle.gd-puzzle-mobile-play .gd-puzzle-subtitle{font-size:12px;line-height:1.3;margin:4px auto 6px}
.gd-game.gd-puzzle.gd-puzzle-mobile-play .gd-puzzle-progress{font-size:14px;margin:6px 0 10px}
.gd-game.gd-puzzle.gd-puzzle-mobile-play .gd-puzzle-announcement{font-size:12px;margin:8px 0 0}
.gd-game.gd-puzzle.gd-puzzle-mobile-play .gd-puzzle-pager{flex-wrap:wrap;justify-content:center;white-space:normal;gap:4px;margin-top:6px}
.gd-game.gd-puzzle.gd-puzzle-mobile-play .gd-puzzle-pager span{order:-1;flex-basis:100%;text-align:center}
.gd-game.gd-puzzle.gd-puzzle-mobile-play .gd-puzzle-pager .gd-button{min-height:44px}
.gd-game.gd-puzzle.gd-puzzle-mobile-play .gd-puzzle-success{padding:12px;margin-top:10px}
@media(max-height:500px){.gd-game.gd-puzzle.gd-puzzle-mobile-play .gd-puzzle-nav{position:absolute;top:8px;left:10px;margin:0}.gd-game.gd-puzzle.gd-puzzle-mobile-play .gd-puzzle-toolbar{margin-left:200px;grid-template-columns:repeat(5,minmax(44px,1fr))}.gd-game.gd-puzzle.gd-puzzle-mobile-play .gd-puzzle-subtitle{display:none}.gd-game.gd-puzzle.gd-puzzle-mobile-play .gd-puzzle-title{font-size:17px;margin:6px 0 4px}}
