/* Layout is code-native: flat stacking blocks and a separately animated keeper. */
.psg-overlay{position:fixed;inset:0;z-index:100110;background:#0c5260;color:#102b4d;font:800 16px Nunito,system-ui,sans-serif;box-sizing:border-box;isolation:isolate}
.psg-overlay *{box-sizing:border-box}.psg-shell{height:100%;height:100dvh;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top,0px)}
html.dm-native-ios .psg-shell{padding-top:var(--dm-ios-top-safe,62px)}
.psg-header{display:flex;align-items:center;gap:8px;padding:8px 10px;background:#087e7a;color:white;flex:none}.psg-header h2{flex:1;min-width:0;margin:0;font-size:clamp(17px,4.5vw,26px)}
.psg-overlay button{font:inherit;cursor:pointer;touch-action:manipulation}.psg-header button{flex:none;width:40px;height:42px;border:1px solid #ffffff44;border-radius:13px;background:#ffffff18;color:white;font-size:26px}.psg-overlay [hidden]{display:none!important}
.psg-body{position:relative;display:flex;flex-direction:column;gap:9px;flex:1;min-height:0;background:linear-gradient(#40a5ff,#d3f1ff);padding:12px 12px max(12px,env(safe-area-inset-bottom,0px));overflow:auto}
.psg-panel{width:min(100%,560px);margin:auto;display:flex;flex-direction:column;align-items:center;text-align:center;background:#fffdf4;border:2px solid white;border-radius:24px;padding:20px;box-shadow:0 6px 0 #15578b33}.psg-panel h2{font-size:27px;margin:15px 0 8px}.psg-panel p{line-height:1.5;margin:8px 0}.psg-cover{width:100%;max-height:230px;object-fit:cover;border-radius:16px}.psg-actions{display:grid;gap:12px;width:100%;margin-top:15px}.psg-actions button,.psg-pause button{min-height:52px;padding:12px;border:0;border-radius:16px;color:white;background:linear-gradient(#2dcf98,#0aa077);box-shadow:0 4px 0 #087b63}.psg-actions button:disabled{opacity:.6}
.psg-hud{flex:none;display:flex;align-items:center;justify-content:space-around;gap:8px;background:#0d438cd9;color:white;padding:12px 8px;border-radius:16px;font-size:clamp(12px,3.2vw,17px)}.psg-hud b{color:#ffed9a}.psg-time{flex:none;height:7px;border-radius:6px;overflow:hidden;background:#285a8a}.psg-time i{display:block;height:100%;width:100%;background:#99ee42}
.psg-tower-scene{position:relative;flex:1;min-height:170px;max-height:520px;overflow:hidden;container-type:size;background:url('arcade-assets/city.webp') center bottom/cover;border-radius:20px}.psg-tower-scene::before{content:'';position:absolute;inset:0;background:linear-gradient(#69baffee,#d5f2ff55 80%)}
.psg-platform{position:absolute;bottom:3%;left:20%;width:60%;height:12%;border-radius:50%/30%;background:linear-gradient(#fff1cf 30%,#c7a478 32%,#947652);box-shadow:0 5px 0 #8f6e4f}.psg-stack{position:absolute;bottom:12%;left:50%;width:min(48cqw,230px);height:80%;translate:-50% 0}
.psg-block{position:absolute;display:block;width:100%;height:11%;bottom:calc(var(--i)*11%);left:0;border-radius:9px;border:2px solid #ffffff70;background:linear-gradient(135deg,#ffb4f3,#fc45b6 30%,#c5137e 90%);box-shadow:inset 0 4px 3px #ffffff77,inset -4px -5px 4px #8c095b55,0 3px 2px #14325144;filter:hue-rotate(var(--hue));transform-origin:center bottom}.psg-falling{bottom:calc(var(--i)*11% + 16%);animation:psgFloat 2s ease-in-out infinite}.psg-papi{position:absolute;left:0;top:14%;width:26%;height:34%;object-fit:contain;filter:drop-shadow(0 5px 3px #254f6b44)}
.psg-drop .psg-falling{animation:psgLand .7s ease-in both}.psg-wobble .psg-stack{animation:psgWobble .5s}.psg-question{display:flex;align-items:center;gap:10px;flex:none;background:linear-gradient(#fffef5,#ffedc8);border:2px solid #fff;border-radius:18px;padding:12px;box-shadow:0 4px 0 #d2b178}.psg-question h3{margin:0;text-align:center;flex:1;font-size:clamp(18px,5vw,25px)}.psg-question button{width:46px;height:46px;flex:none;border:2px solid #e1ccff;background:#9a58e5;color:white;border-radius:14px;font-size:27px}
.psg-answers{display:grid;grid-template-columns:1fr 1fr;gap:11px;flex:none}.psg-answers button{min-width:0;min-height:57px;border:2px solid white;border-radius:18px;background:linear-gradient(#fffef6,#f5e5c8);color:#18355a;box-shadow:0 4px 0 #bda786;padding:10px;overflow-wrap:anywhere;font-size:clamp(16px,4vw,23px)}
.psg-feedback{flex:none;min-height:42px;display:grid;place-items:center;padding:9px;border-radius:14px;background:#f9ffffee;color:#164268;text-align:center;font-size:14px}
.psg-pitch{position:relative;flex:1;min-height:310px;container-type:size;border-radius:14px;overflow:hidden;background:repeating-linear-gradient(0deg,#73af29 0 8%,#639e25 8% 16%)}.psg-pitch::after{content:'';position:absolute;bottom:16%;left:0;right:0;border-top:4px solid #ffffffaa;pointer-events:none}.psg-stands{position:absolute;inset:0 0 64%;background:url('games-assets/kelime-golu-stadium-v1.webp') center top/100% auto no-repeat #67b8f3}
.psg-net{position:absolute;inset:29% 2% 30%;border:6px solid #fcfff8;border-bottom-width:4px;border-radius:9px 9px 0 0;background:repeating-linear-gradient(0deg,transparent 0 17px,#d4e9eeaa 17px 19px),repeating-linear-gradient(90deg,#123652d9 0 20px,#d4e9eeaa 20px 22px);box-shadow:inset 0 0 20px #001a30,0 5px 5px #132d2e66}
.psg-target{position:absolute;width:34%;min-height:11%;border:3px solid white;border-radius:14px;box-shadow:0 4px 0 #00265366,inset 0 3px 4px #ffffff66;color:white;text-shadow:0 2px 3px #012;font-size:clamp(15px,4.2cqw,28px);padding:8px 4px;line-height:1.2;overflow-wrap:anywhere;z-index:4}.psg-target-0{left:7%;top:32%;background:#e83a56}.psg-target-1{right:7%;top:32%;background:#07ab72}.psg-target-2{left:7%;top:54%;background:#e6a01c}.psg-target-3{right:7%;top:54%;background:#8b33d3}
.psg-keeper{position:absolute;left:50%;top:57%;width:27%;aspect-ratio:140/160;translate:-50% -50%;z-index:3;pointer-events:none;filter:drop-shadow(0 5px 3px #1236)}.psg-keeper svg{display:block;width:100%;height:100%}.psg-keeper.psg-save{z-index:5;animation:psgDive .6s cubic-bezier(.18,.62,.3,1) both}
.psg-ball{position:absolute;left:50%;bottom:4%;width:clamp(100px,28cqw,190px);aspect-ratio:1;translate:-50% 0;display:grid;place-items:center;z-index:6;pointer-events:none;filter:drop-shadow(0 10px 5px #18370dbb)}.psg-ball svg{position:absolute;inset:0;width:100%;height:100%}.psg-ball b{position:relative;max-width:82%;font:1000 clamp(16px,5.2cqw,31px)/1.05 Nunito,system-ui;color:#112d50;text-align:center;overflow-wrap:anywhere;transform:perspective(180px) rotateY(-10deg) rotateZ(-7deg);mix-blend-mode:multiply;text-shadow:0 1px 1px #132d5033}.psg-ball.psg-shot{animation:psgShot .6s cubic-bezier(.2,.6,.4,1) both}
.psg-overlay .psg-correct{background:#17ad72;color:white;border-color:#c4ffd7}.psg-overlay .psg-wrong{background:#b7374b;color:white}.psg-pause{position:absolute;inset:0;z-index:20;background:#092344ee;color:white;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px}.psg-overlay button:focus-visible{outline:3px solid #ffd349;outline-offset:3px}
@keyframes psgFloat{50%{transform:translateX(8px)}}@keyframes psgLand{to{bottom:calc(var(--i)*11%)}}@keyframes psgWobble{25%{rotate:-3deg}75%{rotate:3deg}}@keyframes psgShot{to{transform:translate(var(--dx),var(--dy)) scale(.26) rotate(280deg)}}@keyframes psgDive{25%{transform:translate(calc(var(--dx)*.2),calc(var(--dy)*.3 - 18px)) rotate(calc(var(--turn)*.3))}100%{transform:translate(var(--dx),var(--dy)) rotate(var(--turn))}}
@media(min-width:700px){.psg-body{width:min(100%,620px);margin:auto;width:620px;max-width:100%}.psg-shell{align-items:stretch}.psg-header{padding-inline:max(12px,calc((100% - 620px)/2))}}
@media(max-height:650px){.psg-body{gap:6px;padding:7px}.psg-tower-scene{min-height:100px}.psg-answers button{min-height:43px}.psg-question{padding:7px}.psg-question h3{font-size:18px}.psg-feedback{min-height:32px;font-size:12px}.psg-hud{padding:8px}.psg-pitch{min-height:240px}}
@media(prefers-reduced-motion:reduce){.psg-overlay *{animation-duration:.01ms!important;animation-iteration-count:1!important;transition:none!important}.psg-falling{animation:none}}
html body #premiumSkillGame.psg-overlay{inset:0!important;width:100%!important;height:100dvh!important;z-index:2147483643!important;display:block!important;padding:0!important;margin:0!important;overflow:hidden!important}
body:has(#premiumSkillGame) #bottomNavMobile#bottomNavMobile{display:none!important}
.psg-body{overscroll-behavior:contain}
.psg-stands{inset:0 0 78%;background-size:100% 500%;background-position:center top}
.psg-net{top:20%;bottom:29%}
.psg-target-0,.psg-target-1{top:24%}
.psg-target-2,.psg-target-3{top:54%}
.psg-keeper{top:53%;width:34%;aspect-ratio:1;background:url('games-assets/word-goal-sprites-v2.png') left center/300% 100% no-repeat}
.psg-keeper.psg-save{background-position:50% center;width:46%;animation:psgDiveReal .6s cubic-bezier(.18,.62,.3,1) both}
.psg-ball{width:clamp(110px,33cqw,190px);background:url('games-assets/word-goal-sprites-v2.png') right center/300% 100% no-repeat}
.psg-ball b{font-size:clamp(16px,5.2cqw,30px);max-width:72%;transform:perspective(180px) rotateY(-8deg) rotateZ(-6deg)}
@keyframes psgDiveReal{from{transform:scaleX(var(--facing,1))}40%{transform:translate(calc(var(--dx)*.5),calc(var(--dy)*.5 - 15px)) scaleX(var(--facing,1))}to{transform:translate(var(--dx),var(--dy)) scaleX(var(--facing,1))}}

/* One owned toolbar: the safe area is counted once, with the stage directly below. */
html body #premiumSkillGame .psg-shell{height:100%!important;min-height:0!important}
html body #premiumSkillGame .psg-header{min-height:54px;padding:6px 10px;gap:7px}
html body #premiumSkillGame .psg-header h2{font-size:clamp(17px,4.6vw,23px);line-height:1.15}
html body #premiumSkillGame .psg-body{padding-top:8px}
html body #premiumSkillGame[data-game-phase="intro"] .psg-body{justify-content:flex-start;gap:0}
html body #premiumSkillGame .psg-intro{margin:0 auto;padding:14px;gap:0;text-align:center;background:#fffdf7;flex:none}
.psg-intro-stage{position:relative;isolation:isolate;overflow:hidden;width:100%;height:clamp(155px,25dvh,215px);border-radius:20px;background:radial-gradient(ellipse at 40% 20%,#dbf8ff,#73c5ff 80%);border:1px solid #b0dfff}
.psg-intro-tower::after{content:'';position:absolute;bottom:9%;left:44%;width:49%;height:12%;border-radius:50%;background:#a384e4;box-shadow:0 7px 0 #7462bd}
.psg-intro-papi{position:absolute;left:0;bottom:3%;width:48%;height:91%;object-fit:contain;z-index:3;filter:drop-shadow(0 6px 4px #174e7330);animation:psgHello 3s ease-in-out infinite}
.psg-intro-stack{position:absolute;left:53%;bottom:24%;height:67%;width:35%;z-index:2}
.psg-intro-stack .psg-block{height:23%;bottom:calc(var(--i)*23%);border-radius:7px}
.psg-intro-stack .psg-block:last-child{bottom:82%;rotate:-5deg;animation:psgFloat 2s ease-in-out infinite}
.psg-intro-word{position:absolute;right:8%;top:8%;z-index:4;padding:6px 11px;border:2px solid white;border-radius:12px;background:#fffef4;color:#194a65;font-size:13px;box-shadow:0 3px 0 #84b4db}
.psg-intro-word-goal{background:linear-gradient(#8dd3ff 0 35%,#a7d93d 35%,#5ea52e)}
.psg-intro-goal{position:absolute;right:4%;top:12%;width:65%;height:61%;border:5px solid #fff;border-radius:7px;background:repeating-linear-gradient(0deg,transparent 0 13px,#ffffff99 13px 15px),repeating-linear-gradient(90deg,#174b68 0 14px,#ffffff99 14px 16px);box-shadow:0 4px 6px #315f3d55}
.psg-intro-target{position:absolute;right:9%;top:19%;z-index:2;padding:7px 14px;border:2px solid white;border-radius:11px;background:#15b682;color:white;font:900 17px Nunito,system-ui;box-shadow:0 3px 0 #08705c}
.psg-intro-ball{position:absolute;right:14%;bottom:5%;width:24%;aspect-ratio:1;z-index:3;display:grid;place-items:center;background:url('games-assets/word-goal-sprites-v2.png') right center/300% 100% no-repeat;filter:drop-shadow(0 6px 4px #2b52245c)}
.psg-intro-ball b{max-width:72%;font-size:clamp(12px,3.7vw,18px);color:#142f53;transform:rotate(-8deg);mix-blend-mode:multiply}
.psg-course{width:100%;padding:12px;border:1px solid #d6e6f4;border-radius:17px;background:#edf7ff;margin-top:9px;text-align:left}
.psg-course-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;color:#173e66}
.psg-course-heading strong{font-size:19px;white-space:nowrap}.psg-course-heading strong small{font-size:12px;color:#597c9d}
.psg-course-heading>span{font-size:11px;text-align:right;color:#466c91}
.psg-course progress{display:block;width:100%;height:9px;appearance:none;-webkit-appearance:none;border:0;border-radius:8px;overflow:hidden;background:#d5e4f2;margin:9px 0 5px}
.psg-course progress::-webkit-progress-bar{background:#d5e4f2}.psg-course progress::-webkit-progress-value{background:linear-gradient(90deg,#23bb8a,#8bdd53);border-radius:8px}.psg-course progress::-moz-progress-bar{background:#23bb8a}
.psg-course>small{display:block;font-size:11px;color:#456b8b}
.psg-course-route{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:0;margin:11px 0 0;list-style:none;gap:7px}
.psg-course-route li{display:flex;flex-direction:column;align-items:center;gap:4px;position:relative;color:#7692ab;font-size:10px}
.psg-course-route li::before{content:'';position:absolute;left:-50%;right:50%;height:3px;background:#cbddec;top:16px}.psg-course-route li:first-child::before{display:none}
.psg-course-route b{display:grid;place-items:center;position:relative;z-index:1;width:34px;height:34px;border:2px solid #fff;border-radius:12px;background:#d8e7f4;font-size:14px;box-shadow:0 3px 0 #c0d4e7}
.psg-course-route .is-done b{color:#fff;background:#29b58d;box-shadow:0 3px 0 #159875}.psg-course-route .is-current{color:#145d90;font-weight:900}.psg-course-route .is-current b{color:#173e66;background:#ffd358;box-shadow:0 3px 0 #e6ae2f;outline:2px solid #ffc43455;outline-offset:2px}
html body #premiumSkillGame .psg-rights{font-size:12px;line-height:1.35;color:#52718c;margin:10px 0 0}
html body #premiumSkillGame .psg-intro .psg-actions{margin-top:12px}
.psg-result-papi{width:145px;height:145px;object-fit:contain}.psg-result-note{font-size:15px;line-height:1.4;color:#245b75}
@layer bilgiIslands{
html body #premiumSkillGame .psg-panel h2{color:#153c65!important;-webkit-text-fill-color:#153c65!important;font:1000 27px/1.15 Nunito,system-ui,sans-serif!important;margin:13px 0 6px!important}
html body #premiumSkillGame .psg-panel>p{color:#3c5d78!important;-webkit-text-fill-color:#3c5d78!important;font:750 14px/1.45 Nunito,system-ui,sans-serif!important;margin:4px 0!important}
html body #premiumSkillGame .psg-header h2{color:white!important;-webkit-text-fill-color:white!important;margin:0!important}
html body #premiumSkillGame .psg-panel .psg-rights{font-size:12px!important;margin-top:10px!important}
}
@keyframes psgHello{50%{transform:translateY(-5px) rotate(-2deg)}}
@media(max-height:700px){
html body #premiumSkillGame .psg-intro{padding:10px}
.psg-intro-stage{height:110px;min-height:110px;border-radius:15px}.psg-intro-word{font-size:11px;padding:3px 7px}.psg-intro-target{font-size:14px;padding:4px 10px}
.psg-course{padding:8px;margin-top:6px}.psg-course-route{margin-top:6px}.psg-course-route b{width:27px;height:27px;border-radius:9px;font-size:12px}.psg-course-route li{gap:2px;font-size:9px}.psg-course-route li::before{top:13px}
.psg-course-heading strong{font-size:16px}.psg-course progress{height:7px;margin:6px 0 4px}.psg-course>small{font-size:10px}.psg-intro .psg-actions button{min-height:46px;padding:10px}
html body #premiumSkillGame .psg-intro .psg-actions{margin-top:8px}
@layer bilgiIslands{html body #premiumSkillGame .psg-intro h2{font-size:22px!important;margin:8px 0 3px!important}html body #premiumSkillGame .psg-intro>p{font-size:12px!important;line-height:1.3!important}html body #premiumSkillGame .psg-panel .psg-rights{font-size:10px!important;margin-top:7px!important}}
}
@media(prefers-reduced-motion:reduce){.psg-intro-papi{animation:none}}
html body #premiumSkillGame.psg-overlay{background:#087e7a!important}
html body #premiumSkillGame .psg-header>.dm-game-music{display:none!important}
