/* The first important cascade layer owns viewport geometry over legacy game skins. */
@layer bilgiIslands {
html body #genelSonucOverlay.acik{z-index:2147483644!important}
html body #dmGameIntro.dm-vp-root .hb-card{display:flex!important;flex-direction:column!important;padding-top:50px!important}
html body #dmGameIntro.dm-vp-root .hb-body{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important}
html body #dmIntroUnits .unite-chip{min-height:44px!important;min-width:52px!important;cursor:pointer!important;touch-action:manipulation}
html body #dmIntroUnits .unite-chip.selected{background:#087c72!important;color:white!important;border:2px solid #07594f!important}
/* Classic game summaries are replaced by the shared result card. */
html body .game-modal-overlay [id$="BitisEkrani"]{display:none!important}

/* Native close sets inline display:none; fullscreen classes must never override it. */
html body :is(.dm-vp-root,.fg-fs-active)[style*="display: none"],html body :is(.dm-vp-root,.fg-fs-active)[style*="display:none"]{display:none!important}

html:has(body.dm-game-viewport),html body.dm-game-viewport{overflow:hidden!important;overscroll-behavior:none!important}
html body.dm-game-viewport :is(#tpTeacherDock,#bottomNavMobile,.bottom-nav-mobile,.bottom-nav-desktop){display:none!important;visibility:hidden!important;pointer-events:none!important}
html body .dm-vp-root{position:fixed!important;inset:0!important;top:var(--dm-game-top,0px)!important;width:100%!important;height:var(--dm-game-height,100dvh)!important;max-width:none!important;max-height:var(--dm-game-height,100dvh)!important;box-sizing:border-box!important;padding:0!important;margin:0!important;overflow:hidden!important;align-items:stretch!important;justify-content:stretch!important;z-index:2147483641!important;transform:none!important;animation:none!important;transition:none!important}
html body .dm-vp-root>.game-modal-content{position:relative!important;display:flex!important;flex-direction:column!important;width:100%!important;max-width:none!important;height:100%!important;max-height:none!important;min-height:0!important;border-radius:0!important;margin:0!important;padding:calc(52px + env(safe-area-inset-top,0px)) clamp(10px,2vw,24px) calc(8px + env(safe-area-inset-bottom,0px))!important;overflow:hidden!important;box-sizing:border-box!important;transform:none!important;animation:none!important;transition:none!important}
html body .dm-vp-root>:is(.hb-card,.yo-kart,.pc-shell,.ww-shell,.mv-shell,.kg-shell){width:100%!important;max-width:none!important;max-height:100dvh!important;height:100%!important;border-radius:0!important;box-sizing:border-box!important}
html body .dm-vp-root :is(.game-close-btn,.fg-fs-back,.dm-session-back,.yo-kapat,.hb-card header [data-close],.pc-close,.ww-close,.mt-exit,.kg-close,.mv-close,.kp-close-x,.ba-close,.kart-oyun-kapat,.dm-x,[data-ia-close]){visibility:hidden!important;pointer-events:none!important}
html body .dm-vp-root>:is(.dm-vp-back,.dm-vp-exit){position:absolute!important;top:calc(6px + env(safe-area-inset-top,0px))!important;display:grid!important;place-items:center!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;padding:0!important;border:1px solid #abc8dd!important;border-radius:14px!important;background:#fff!important;color:#283c66!important;font:900 32px/1 system-ui!important;z-index:2147483646!important;cursor:pointer;touch-action:manipulation;visibility:visible!important;pointer-events:auto!important}
.dm-vp-back{left:10px!important}.dm-vp-exit{right:10px!important}
html body .dm-vp-root :is(.dm-game-clock,.fg-hero-papi,.ab-mascot){display:none!important}
html body .dm-vp-root :is(.fg-hero,.ab-hero){flex:0 0 56px!important;min-height:0!important;max-height:56px!important;height:56px!important;padding:5px 12px!important;margin:0!important;box-shadow:none!important;border-width:1px!important;border-radius:14px!important;background:#f0f8ffed!important;background-image:none!important}
html body .dm-vp-root :is(.fg-hero,.ab-hero)::before,html body .dm-vp-root :is(.fg-hero,.ab-hero)::after{display:none!important}
html body .dm-vp-root :is(.fg-hero h2,.fg-hero h3,.ab-hero h2){font-size:21px!important;margin:0!important;padding:0!important;background:none!important;color:#20385c!important;text-shadow:none!important}
html body .dm-vp-root :is(.fg-hero p,.ab-hero p){font-size:11px!important;margin:3px 0 0!important;line-height:1.2!important;color:#375477!important;}
html body .dm-vp-root :is(#jpBalonEkrani,#jpSoruEkrani,#yagmurOyunEkrani,#kelimebulOyunEkrani,#esOyunEkrani,#trenOyunEkrani,#boslukOyunEkrani,#hafizaOyunEkrani,#kyOyunEkrani,#asmacaOyunEkrani):not([style*="display: none"]):not([style*="display:none"]){position:relative!important;display:flex!important;flex-direction:column!important;flex:1 1 0%!important;min-height:0!important;max-height:100%!important;gap:7px!important;overflow:hidden!important}
html body .dm-vp-root :is(#jkBar,.ab-jokers){flex:0 0 auto!important;min-height:0!important;max-width:none!important;width:100%!important;margin:0!important;padding:5px 8px!important;border-radius:14px!important;box-sizing:border-box!important}
html body .dm-vp-root .ab-jokers>strong{display:none!important}
html body .dm-vp-root .jk-bar{border:0!important;gap:8px!important;padding:0!important;justify-content:center!important}
html body .dm-vp-root .jk-btn{width:auto!important;flex:1 1 0%!important;max-width:150px!important;min-height:44px!important;gap:2px!important;font-size:10px!important;line-height:1.15!important}
html body .dm-vp-root .jk-daire{width:36px!important;height:36px!important;border-width:1px!important;font-size:23px!important;box-shadow:none!important}
html body .dm-vp-root :is(.jk-alt,.jk-mesaj:empty,.ab-jokers .jk-baslik){display:none!important}
html body .dm-vp-root .jk-mesaj:not(:empty){font-size:11px!important;min-height:14px!important;margin:2px 0 0!important}
html body .dm-vp-root .ab-hud{flex:0 0 32px!important;max-height:32px!important;gap:5px!important}
html body .dm-vp-root .ab-hud svg{width:20px!important;height:20px!important}
/* Missing-letter question, answer slots and letter bank occupy distinct vertical areas. */
html body #boslukOyunOverlay.dm-vp-root #boslukSatirlarContainer{display:grid!important;grid-template-rows:minmax(0,1fr)!important;flex:1 1 0%!important;min-height:0!important;overflow:hidden!important}
html body #boslukOyunOverlay.dm-vp-root .dm-letter-word{display:grid!important;grid-template-rows:auto minmax(0,1fr) auto auto!important;align-items:center!important;justify-items:center!important;gap:12px!important;min-height:0!important;height:100%!important;width:100%!important;padding:14px!important;border:1px solid #d9c997!important;border-radius:20px!important;background:#fff9e6e8!important;box-shadow:none!important;box-sizing:border-box!important}
html body #boslukOyunOverlay.dm-vp-root .dm-letter-word>strong{width:100%!important;box-sizing:border-box!important;background:#fff!important;border-radius:16px!important;padding:16px 25px!important;font-size:clamp(22px,5vw,32px)!important;color:#223d62!important;line-height:1.25!important;text-align:center!important}
html body #boslukOyunOverlay.dm-vp-root .dm-letter-slots{display:flex!important;align-content:center!important;align-items:center!important;justify-content:center!important;flex-wrap:wrap!important;gap:6px!important;width:100%!important;min-height:0!important}
html body #boslukOyunOverlay.dm-vp-root .dm-letter-slots>:is(span,button){flex:0 1 44px!important;width:44px!important;min-width:24px!important;max-width:56px!important;height:clamp(44px,8dvh,64px)!important;font-size:clamp(26px,5vw,36px)!important;box-sizing:border-box!important;display:grid!important;place-items:center!important}
html body #boslukOyunOverlay.dm-vp-root .dm-letter-options{display:grid!important;grid-template-columns:repeat(3,minmax(48px,1fr))!important;gap:9px!important;width:min(100%,320px)!important;justify-self:center!important}
html body #boslukOyunOverlay.dm-vp-root .dm-letter-options button{width:100%!important;max-width:none!important;height:clamp(46px,8dvh,65px)!important;font-size:30px!important;flex:none!important;border-radius:13px!important;margin:0!important;box-sizing:border-box!important}
html body #boslukOyunOverlay.dm-vp-root .dm-letter-word>small{height:auto!important;min-height:18px!important;font-size:12px!important;white-space:normal!important;text-align:center!important}
/* Storm: most height belongs to the falling question, not decoration. */
html body #yagmurOyunOverlay.dm-vp-root #yagmurAlan{flex:1 1 0%!important;height:auto!important;min-height:100px!important;max-height:none!important;margin:0!important}
html body #yagmurOyunOverlay.dm-vp-root #yagmurSecenekler{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-rows:minmax(44px,1fr)!important;gap:6px!important;flex:0 0 clamp(100px,16dvh,132px)!important;min-height:0!important;padding:0!important;margin:0!important}
html body #yagmurOyunOverlay.dm-vp-root #yagmurSecenekler .yg-secenek-btn{grid-column:auto!important;min-width:0!important;max-width:none!important;height:100%!important;border-radius:12px!important;padding:6px!important;gap:3px!important;flex-direction:column!important;font-size:clamp(12px,2.9vw,17px)!important;box-shadow:0 2px 0 #8b7fb7!important;overflow-wrap:anywhere!important}
html body #yagmurOyunOverlay.dm-vp-root #yagmurSecenekler .yg-secenek-btn::before{width:20px!important;min-width:20px!important;max-width:20px!important;height:20px!important;flex:none!important;font-size:11px!important;border-radius:6px!important}
/* Train: legible chips, separate sentence and word bank, no decorative wagons. */
html body #trenOyunOverlay.dm-vp-root .game-modal-content{background:#eff5fc!important}
html body #trenOyunOverlay.dm-vp-root .tr-gorev{display:none!important}
html body #trenOyunOverlay.dm-vp-root .tr-ust{flex:0 0 27px!important;min-height:0!important;margin:0!important;padding:3px 6px!important;box-shadow:none!important;border-width:1px!important}
html body #trenOyunOverlay.dm-vp-root .tr-istasyon{flex:0 0 auto!important;min-height:55px!important;margin:0!important;padding:5px!important;background:#fff!important;border:1px solid #c3d3e6!important;box-shadow:none!important}
html body #trenOyunOverlay.dm-vp-root .tr-istasyon>span{display:none!important}
html body #trenOyunOverlay.dm-vp-root #trenTabela{width:100%!important;padding:7px!important;font-size:clamp(17px,4vw,25px)!important;line-height:1.25!important;color:#1c385b!important;background:none!important;border:0!important;box-shadow:none!important;text-align:center!important}
html body #trenOyunOverlay.dm-vp-root #trenTabela::before{content:'TÜRKÇE CÜMLE'!important;display:block!important;font-size:10px!important;margin-bottom:4px!important;color:#58708d!important}
html body #trenOyunOverlay.dm-vp-root :is(#trenHat,#trenHavuz){display:flex!important;align-content:center!important;align-items:center!important;justify-content:center!important;flex-wrap:wrap!important;gap:7px!important;margin:0!important;padding:10px!important;box-shadow:none!important;box-sizing:border-box!important;background:#fff!important;border:1px solid #bed2e7!important;border-radius:14px!important;overflow:hidden!important}
html body #trenOyunOverlay.dm-vp-root #trenHat{flex:1 1 0%!important;min-height:66px!important;background:#e2edf9!important}
html body #trenOyunOverlay.dm-vp-root #trenHavuz{flex:1.25 1 0%!important;min-height:95px!important}
html body #trenOyunOverlay.dm-vp-root .tr-lok,html body #trenOyunOverlay.dm-vp-root .tr-v::before,html body #trenOyunOverlay.dm-vp-root .tr-v::after{display:none!important;content:none!important}
html body #trenOyunOverlay.dm-vp-root .tr-v{position:static!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:42px!important;max-width:100%!important;padding:7px 11px!important;margin:0!important;font:800 clamp(14px,3.4vw,20px)/1.2 system-ui!important;color:#17395d!important;-webkit-text-fill-color:#17395d!important;background:#fff!important;border:1px solid #6b9cc8!important;border-radius:10px!important;box-shadow:0 2px 0 #c4d5e6!important;white-space:normal!important;visibility:visible!important;opacity:1!important;overflow-wrap:anywhere!important}
html body #trenOyunOverlay.dm-vp-root #trenHavuz .tr-v.bos{display:none!important}
html body #trenOyunOverlay.dm-vp-root .tr-empty{font-size:14px!important;color:#526b86!important;text-align:center!important}
html body #trenOyunOverlay.dm-vp-root .tr-alt{flex:0 0 30px!important;padding:0!important;margin:0!important;gap:8px!important;background:none!important}
html body #trenOyunOverlay.dm-vp-root .tr-ipucu{font-size:11px!important;min-height:30px!important;padding:4px!important}
html body #trenOyunOverlay.dm-vp-root .tr-kontrol{flex:0 0 44px!important;min-height:44px!important;margin:0!important;padding:6px!important;border-radius:12px!important;font-size:16px!important;box-shadow:none!important}
html body #trenOyunOverlay.dm-vp-root .tr-panel:where(.iyi,.kotu){position:absolute!important;inset:auto 10px 10px!important;max-height:45%!important;overflow:auto!important;z-index:20!important}
html body #kelimeYarismaOverlay.dm-vp-root #kyOyunEkrani>div:has(#kySoruKelimeText){flex:1 1 0%!important;min-height:80px!important;display:grid!important;align-content:center!important;padding:15px!important;margin:0!important}
html body #kelimeYarismaOverlay.dm-vp-root #kySoruKelimeText{font-size:clamp(25px,6vw,40px)!important}
html body #kelimeYarismaOverlay.dm-vp-root #kySeceneklerGrid{flex:0 0 100px!important;margin:0!important;min-height:0!important}
html body #asmacaOyunOverlay.dm-vp-root #asmacaSahne{flex:1 1 0%!important;min-height:80px!important;display:grid!important;place-items:center!important}
html body #asmacaOyunOverlay.dm-vp-root #asmacaKlavye{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:4px!important}
html body #asmacaOyunOverlay.dm-vp-root #asmacaKlavye button{min-width:0!important;width:100%!important;min-height:36px!important;font-size:15px!important;padding:4px!important}
/* Setup remains full-viewport; lengthy selections and an onscreen keyboard may scroll internally. */
html body .dm-vp-root .dm-garden-entry{min-height:0!important;overflow-y:auto!important;max-height:100%!important}
@media(max-height:700px){html body .dm-vp-root :is(.fg-hero,.ab-hero){flex-basis:42px!important;height:42px!important;max-height:42px!important}html body .dm-vp-root :is(.fg-hero p,.ab-hero p){display:none!important}html body .dm-vp-root .jk-daire{height:29px!important;width:29px!important;font-size:20px!important}html body .dm-vp-root .jk-btn{font-size:9px!important}html body #trenOyunOverlay.dm-vp-root #trenHavuz{min-height:80px!important}html body #trenOyunOverlay.dm-vp-root .tr-v{min-height:36px!important;font-size:13px!important;padding:5px 7px!important}html body #boslukOyunOverlay.dm-vp-root .dm-letter-word{gap:7px!important;padding:10px!important}}
}

/* Meteor setup and play share the available visual viewport, including iPhone safe areas. */
@layer bilgiIslands {
html body #meteorGame .mt-shell{height:100%!important;min-height:0!important;max-height:100%!important;display:grid!important;grid-template-rows:auto auto minmax(0,1fr) auto auto!important;gap:6px!important;padding:calc(52px + env(safe-area-inset-top,0px)) 10px calc(6px + env(safe-area-inset-bottom,0px))!important;box-sizing:border-box!important}
html body #meteorGame .mt-top{padding:6px 10px!important;gap:6px!important;min-height:36px!important;flex-wrap:wrap!important;border-radius:14px!important}
html body #meteorGame .mt-brand{font-size:20px!important}
html body #meteorGame .mt-category{font-size:11px!important}
html body #meteorGame.dm-vp-root .mt-exit{display:none!important}
html body #meteorGame .mt-scope:empty{display:none!important}
html body #meteorGame .mt-audio{margin-left:auto!important;gap:4px!important}
html body #meteorGame .mt-audio button{padding:5px 7px!important;font-size:10px!important;min-height:28px!important}
html body #meteorGame .mt-title{min-width:0!important;width:min(620px,95%)!important;max-width:100%!important;font-size:clamp(18px,3vw,30px)!important;line-height:1.15!important;padding:12px 24px!important;margin:0!important;box-sizing:border-box!important}
html body #meteorGame .mt-body{min-height:0!important;overflow:hidden!important}
html body #meteorGame .mt-setup{height:100%!important;min-height:0!important;max-height:100%!important;margin:0 auto!important;padding:10px 16px!important;display:flex!important;flex-direction:column!important;gap:5px!important;box-sizing:border-box!important;box-shadow:none!important;position:relative!important}
html body #meteorGame .mt-setup>img{height:clamp(36px,7dvh,64px)!important;flex:none!important}
html body #meteorGame .mt-setup h2{font-size:18px!important;line-height:1.15!important;margin:0!important}
html body #meteorGame .mt-setup form{display:flex!important;flex-direction:column!important;gap:6px!important;min-height:0!important;flex:1!important}
html body #meteorGame .mt-modes{margin:0!important;gap:8px!important}
html body #meteorGame .mt-modes button{font-size:14px!important;min-height:38px!important;padding:7px!important}
html body #meteorGame .mt-fields{gap:6px 10px!important}
html body #meteorGame .mt-fields label{font-size:12px!important;line-height:1.15!important;min-width:0!important}
html body #meteorGame .mt-fields input,html body #meteorGame .mt-fields select{font-size:16px!important;min-height:38px!important;height:38px!important;padding:6px 8px!important;margin-top:3px!important;border-radius:10px!important;box-sizing:border-box!important}
html body #meteorGame .mt-count{font-size:12px!important;line-height:1.2!important;margin:0!important}
html body #meteorGame .mt-help{font-size:12px!important;text-align:left!important;flex:none!important}
html body #meteorGame .mt-help summary{cursor:pointer!important;min-height:28px!important;display:flex!important;align-items:center!important;justify-content:center!important;border:1px solid #a6ced9!important;border-radius:9px!important;background:#e9f7fc!important}
html body #meteorGame .mt-help[open]{position:absolute!important;inset:8px!important;z-index:12!important;overflow:auto!important;background:#fff!important;padding:12px!important;border:2px solid #3995b3!important;border-radius:18px!important}
html body #meteorGame .mt-help[open] summary::after{content:' · Kapat'!important;font-weight:900!important}
html body #meteorGame .mt-start{margin-top:auto!important;flex:none!important;min-height:44px!important;padding:8px!important;font-size:17px!important;line-height:1.2!important;box-shadow:none!important}
html body #meteorGame :is(.mt-history,.mt-resume){margin:0!important;padding:6px!important;min-height:30px!important;font-size:12px!important;line-height:1.2!important}
html body #meteorGame .mt-meta{font-size:10px!important;line-height:1.15!important;margin:0!important}
html body #meteorGame .mt-footer{font-size:10px!important;line-height:1.2!important;padding:4px!important;min-height:0!important}
html body #meteorGame .mt-arenas{height:100%!important;min-height:0!important;max-height:100%!important;box-sizing:border-box!important}
html body #meteorGame .mt-rain{min-height:0!important}
html body #meteorGame .mt-setup .mt-ranking{position:absolute!important;inset:8px!important;z-index:10!important;margin:0!important;overflow:auto!important}
@media(max-height:700px){html body #meteorGame .mt-setup>img{display:none!important}html body #meteorGame .mt-top{padding:4px 8px!important}html body #meteorGame .mt-title{padding:8px 20px!important;font-size:18px!important}html body #meteorGame .mt-setup{padding:7px 10px!important;gap:4px!important}html body #meteorGame .mt-setup form{gap:4px!important}html body #meteorGame .mt-setup h2{font-size:16px!important}html body #meteorGame .mt-fields label{font-size:11px!important}html body #meteorGame .mt-modes button{min-height:34px!important;padding:5px!important}}
@media(max-height:500px) and (min-width:650px){html body #meteorGame .mt-shell{grid-template-columns:1fr 2fr!important;grid-template-rows:auto minmax(0,1fr) auto!important;padding-top:52px!important}html body #meteorGame .mt-top{grid-column:1/-1!important}html body #meteorGame .mt-title{grid-column:1!important;grid-row:2!important;align-self:center!important}html body #meteorGame .mt-body{grid-column:2!important;grid-row:2!important}html body #meteorGame:has(.mt-arenas) .mt-title{display:none!important}html body #meteorGame:has(.mt-arenas) .mt-body{grid-column:1/-1!important}html body #meteorGame .mt-footer{grid-column:1/-1!important}html body #meteorGame .mt-setup h2,html body #meteorGame .mt-meta{display:none!important}html body #meteorGame .mt-fields{grid-template-columns:repeat(4,minmax(0,1fr))!important}html body #meteorGame .mt-fields label{font-size:10px!important}html body #meteorGame .mt-count{font-size:10px!important}}
}
@layer bilgiIslands {
@media(max-width:360px){html body #meteorGame .mt-category{display:none!important}html body #meteorGame .mt-title{font-size:15px!important;padding:8px 18px!important}html body #meteorGame .mt-brand{font-size:18px!important}html body #meteorGame .mt-audio button{font-size:9px!important;padding:4px!important}}
@media(max-height:500px) and (min-width:650px){html body #meteorGame .mt-setup form{display:grid!important;grid-template-columns:1fr 1fr!important;grid-template-rows:auto auto auto minmax(40px,1fr)!important;align-content:start!important;gap:4px!important}html body #meteorGame .mt-fields{grid-column:1/-1!important;grid-row:1!important}html body #meteorGame .mt-modes{grid-column:1!important;grid-row:2!important}html body #meteorGame .mt-count{grid-column:2!important;grid-row:2!important;align-self:center!important}html body #meteorGame .mt-help{grid-column:1!important;grid-row:3!important}html body #meteorGame .mt-history{grid-column:2!important;grid-row:3!important}html body #meteorGame .mt-start{grid-column:1/-1!important;grid-row:4!important;align-self:end!important;margin:0!important}}
}
html body .dm-game-music{
 position:absolute;z-index:2147483646;bottom:calc(10px + env(safe-area-inset-bottom,0px));right:calc(10px + env(safe-area-inset-right,0px));
 width:44px;height:44px;padding:0;display:grid;place-items:center;border-radius:14px;border:1px solid #a9bedb;
 background:#f5fbff;color:#244672;font:900 22px/1 system-ui;box-shadow:0 2px 9px #163c6829;cursor:pointer;
}
html body .dm-game-music[aria-pressed=false]{color:#67758b;background:#eef1f6}
html body .dm-game-pause-sheet{
 position:absolute;inset:0;z-index:2147483647;display:grid;place-items:center;padding:20px;
 background:#111f45a6;backdrop-filter:blur(4px);text-align:center;
}
html body .dm-game-pause-sheet section{
 max-width:100%;padding:24px;border-radius:22px;background:#f5fbff;color:#244672;box-shadow:0 12px 40px #172d604d;
}
html body .dm-game-pause-sheet h2{margin:0 0 16px;font:900 clamp(19px,5vw,26px)/1.2 system-ui}
html body .dm-game-pause-sheet button,.dm-local-game-pause{
 min-height:44px;padding:8px 14px;border:1px solid #a9bedb;border-radius:14px;background:#f5fbff;color:#244672;font:800 16px system-ui;cursor:pointer;
}
html body .dm-vp-root>.dm-vp-pause{
 position:absolute;top:calc(6px + env(safe-area-inset-top,0px));right:60px;z-index:2147483646;
 width:42px;min-height:42px;padding:0;
}
html body .dm-sr-overlay .dm-sr-game-head:has([data-pause]){grid-template-columns:auto minmax(0,1fr) auto auto}
html body .dm-sr-overlay .dm-sr-game-head [data-pause]{grid-column:3;grid-row:1;width:42px;padding:0;align-self:center}
html body .dm-sr-overlay .dm-sr-game-head:has([data-pause]) .dm-sr-close{grid-column:4}
html body .dm-vp-root:is(#esOyunOverlay,#trenOyunOverlay)>.dm-game-music{
 top:calc(6px + env(safe-area-inset-top,0px));bottom:auto;left:60px;right:auto;width:42px;height:42px;
}
html body .dm-sr-overlay:has(.dm-sr-play){padding:0}
html body .dm-sr-overlay .dm-sr-play{
 width:100%;max-width:none;height:100dvh;max-height:100dvh;border-radius:0;
 padding-top:max(8px,env(safe-area-inset-top,0px));padding-bottom:max(8px,env(safe-area-inset-bottom,0px));
}

/* Paused overlays own their contrast in both app themes. */
html[data-dm-theme] body .dm-game-pause-sheet>section,
html[data-dm-theme] body #pwmRoot .pwm-modal.pause .pwm-card{
 background:#f5fbff!important;color:#173457!important;
}
html[data-dm-theme] body :is(.dm-game-pause-sheet,#pwmRoot .pwm-modal.pause) :is(h2,p){
 color:#173457!important;-webkit-text-fill-color:#173457!important;text-shadow:none!important;
}
html[data-dm-theme] body .dm-game-pause-sheet button{
 background:#254d79!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
}
html[data-dm-theme] body .sa-pause :is(h2,p,b,strong){
 color:#fff!important;-webkit-text-fill-color:#fff!important;
}

/* Music lives with the other controls, outside the playing surface. */
html body :is(header,.rr-hud-stats)>.dm-game-music{
 position:static;flex:none;z-index:auto;width:38px;height:38px;
}
html body .dm-sr-game-head:has(>.dm-game-music){
 grid-template-columns:auto minmax(0,1fr) auto auto auto;
}
html body .dm-sr-game-head>.dm-game-music{grid-column:5;grid-row:1;align-self:center}
html body .dm-vp-root:is(#dmGameIntro,#yoModal)>.dm-game-music{
 top:calc(6px + env(safe-area-inset-top,0px));bottom:auto;left:60px;right:auto;width:42px;height:42px;
}
@media(max-width:420px){
 html body #mvOverlay .mv-header{gap:4px;padding-inline:6px}
 html body #mvOverlay .mv-header>button{width:34px;height:38px;min-width:34px}
 html body #mvOverlay .mv-header>strong{min-width:0;overflow-wrap:anywhere}
 html body #kelimeGolu .kg-header h2{font-size:clamp(15px,5vw,21px)!important}
}
html[data-dm-theme] body #mvOverlay[data-music-paused="true"] .mv-panel h2{
 color:#173457!important;-webkit-text-fill-color:#173457!important;
}

@layer bilgiIslands {
html body .dm-vp-root:is(#papiCards,#wordWheel,#harfBahcesiOverlay,#soloArcadeOverlay)>:is(.pc-shell,.ww-shell,.hb-card,.sa-shell){
 padding-top:calc(54px + env(safe-area-inset-top,0px))!important;
 box-sizing:border-box;
}
}
html body #rallyGame.dm-vp-root .rr-stage{
 margin-top:calc(54px + env(safe-area-inset-top,0px));
 height:calc(100% - 54px - env(safe-area-inset-top,0px));
}
html body #rallyGame .rr-hud-stats>.dm-game-music{pointer-events:auto}

/* The approved slim header has its own safe-area row above every game surface. */
@layer bilgiIslands {
html body .dm-game-framed{
 --dm-frame-height:calc(54px + env(safe-area-inset-top,0px));
 box-sizing:border-box!important;padding-top:var(--dm-frame-height)!important;
}
html body .dm-game-framed :is(.dm-frame-source,button[data-pause],button.dm-vp-pause,button.rr-pause,button.mt-pause){display:none!important}
html body .dm-game-framed>.dm-game-frame{
 position:absolute;inset:0 0 auto;z-index:2147483647;height:var(--dm-frame-height);
 box-sizing:border-box;display:grid;grid-template-columns:44px minmax(0,1fr) repeat(3,44px);
 align-items:center;gap:5px;padding:env(safe-area-inset-top,0px) max(8px,env(safe-area-inset-right,0px)) 0 max(8px,env(safe-area-inset-left,0px));
 background:#0B6B66;color:#fff;border-bottom:0;
}
html[data-dm-theme="night"] body .dm-game-framed>.dm-game-frame{background:#123541;border-color:#3b626f}
html body .dm-game-framed>.dm-game-frame>b{
 min-width:0;text-align:center;color:#fff!important;-webkit-text-fill-color:#fff!important;
 font:900 clamp(17px,5vw,20px)/1.15 Nunito,system-ui,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
html body .dm-game-framed>.dm-game-frame>.dm-frame-control{
 position:static!important;display:grid!important;place-items:center;
 width:44px;height:44px;min-width:44px;min-height:44px;margin:0!important;padding:0!important;
 border:0!important;border-radius:14px!important;
 background:rgba(255,255,255,.14)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;box-shadow:none!important;
 cursor:pointer;touch-action:manipulation;
}
html body .dm-game-frame>.dm-frame-control:disabled{opacity:.4;cursor:default}
html body .dm-game-frame>.dm-frame-control:active{background:rgba(255,255,255,.26)!important}
html body .dm-game-frame>.dm-frame-control:focus-visible{outline:2px solid #ffdf76;outline-offset:1px}
html body .dm-game-frame svg{width:21px;height:21px;stroke:currentColor;stroke-width:2.2;fill:none;stroke-linecap:round;stroke-linejoin:round}
html body .dm-game-framed>.game-modal-content,
html body .dm-game-framed:is(#papiCards,#wordWheel,#harfBahcesiOverlay,#soloArcadeOverlay,#dmGameIntro)>:is(.pc-shell,.ww-shell,.hb-card,.sa-shell),
html body #meteorGame.dm-game-framed>.mt-shell{padding-top:8px!important}
html body #rallyGame.dm-game-framed .rr-stage{height:100%!important;margin-top:0!important}
html body .dm-game-framed>.dm-game-pause-sheet{top:var(--dm-frame-height)!important}
html body .dm-game-framed:is(.dm-flight,.dm-blocks,.papizzle){
 width:100%!important;max-width:none!important;height:100dvh!important;max-height:100dvh!important;overflow:hidden!important;
}
html body .papizzle.dm-game-framed>main{height:100%;min-height:0;overflow:auto}
html body .dm-game-framed>:is(.dm-flight-world,.dm-flight-overlay,.dm-blocks-overlay,.pwm-modal){top:var(--dm-frame-height)!important}
html body .dm-game-framed:is(.dm-flight,.dm-blocks) :is(.dm-flight-hud,.dm-blocks-world){padding-top:6px}
html body .dm-game-framed.dm-sr-overlay>.dm-sr-play{
 height:100%!important;max-height:100%!important;min-height:0!important;padding-top:6px!important;
 grid-template-rows:minmax(65px,25%) minmax(0,1fr) auto!important;
}
html body .dm-game-framed .dm-sr-game-head{display:none!important}
html body .dm-game-framed .dm-sr-setup{max-height:100%!important;min-height:0}
html body .dm-game-framed #yoGovde{overflow:auto;min-height:0}

html body .dm-game-framed .dm-picker-native{display:none!important}
html body .dm-game-framed .dm-picker-grid[hidden]{display:none!important}
html body .dm-game-framed :is(.dm-picker-grid,.sinif-secim-grid,.hb-classes){
 display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
 gap:7px!important;min-width:0;width:100%;margin-block:5px;
}
html body .dm-game-framed :is(.dm-picker-grid[data-kind="unit"],.unite-secim-box,.hb-units,.kg-units,.rr-units,.dm-sr-units){
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:7px!important;min-width:0;width:100%;max-height:226px!important;overflow:auto;
 padding:3px!important;align-content:start!important;
}
html body .dm-game-framed .dm-picker-grid[data-kind="mode"]{grid-template-columns:repeat(2,minmax(0,1fr))!important}
html body .dm-game-framed .dm-picker-grid[data-kind="time"]{grid-template-columns:repeat(3,minmax(0,1fr))!important}
html body .dm-game-framed :is(.dm-picker-grid>button,.sinif-btn,.unite-chip,.kg-unit,.rr-units>button,.dm-sr-units>button,.dm-game-modes>button,.mt-modes>button,.ww-mode>button){
 min-width:0!important;min-height:44px!important;height:auto!important;
 padding:7px 6px!important;margin:0!important;border:1px solid #8cc8c3!important;border-radius:11px!important;
 background:#f1fbf9!important;color:#124641!important;-webkit-text-fill-color:#124641!important;
 font:800 clamp(12px,3vw,15px)/1.15 system-ui!important;text-shadow:none!important;box-shadow:none!important;
 cursor:pointer;white-space:normal;overflow-wrap:anywhere;touch-action:manipulation;
}
html body .dm-game-framed :is(.dm-picker-grid>button,.sinif-btn,.unite-chip,.kg-unit,.rr-units>button,.dm-sr-units>button,.dm-game-modes>button,.mt-modes>button,.ww-mode>button):is(.active,.selected,[aria-pressed="true"],:has(input:checked)){
 background:#08796f!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#075c56!important;
}
html[data-dm-theme="night"] body .dm-game-framed :is(.dm-picker-grid>button,.sinif-btn,.unite-chip,.kg-unit,.rr-units>button,.dm-sr-units>button,.dm-game-modes>button,.mt-modes>button,.ww-mode>button):not(.active,.selected,[aria-pressed="true"],:has(input:checked)){
 background:#173c49!important;color:#e0f8f3!important;-webkit-text-fill-color:#e0f8f3!important;border-color:#47767b!important;
}
html body .dm-game-framed .dm-picker-grid>button:disabled{opacity:.5;cursor:default}
html body .dm-game-framed .dm-picker-grid>button:focus-visible{outline:2px solid #13a99a;outline-offset:1px}
html body .dm-game-framed .dm-game-modes{display:grid;grid-template-columns:1fr 1fr;gap:7px}
html body .dm-game-framed :is(.mt-fields,.ww-fields):has(.dm-picker-grid){grid-template-columns:minmax(0,1fr)!important}
html body .dm-game-framed :is(.mt-setup,.kg-setup,.ww-body,.pc-body,.hb-body,.sa-body){min-height:0;overflow:auto}
html body #meteorGame.dm-game-framed .mt-setup{overflow:auto!important;justify-content:flex-start!important}
html body .dm-game-framed .dm-sr-setup-body{grid-template-rows:none!important;grid-auto-rows:max-content;overflow:auto!important}
}

@layer bilgiIslands {
html body .dm-game-framed [data-unit-number]{
 display:grid!important;grid-template-columns:32px minmax(0,1fr)!important;align-items:center!important;
 position:relative;gap:7px!important;min-height:54px!important;padding:7px!important;
 font-size:0!important;text-align:left!important;
}
html body .dm-game-framed [data-unit-number]::before{
 content:attr(data-unit-number);display:grid;place-items:center;width:32px;height:32px;
 border-radius:9px;background:#d4eeea;color:#124641;-webkit-text-fill-color:#124641;
 font:900 16px/1 system-ui;font-variant-numeric:tabular-nums;
}
html body .dm-game-framed [data-unit-number]::after{
 content:attr(data-unit-title);display:block;min-width:0;
 font:750 12px/1.25 system-ui;word-break:normal;overflow-wrap:anywhere;
}
html body .dm-game-framed [data-unit-number]:is(.active,.selected,[aria-pressed="true"],:has(input:checked))::before{
 background:#fff;color:#08635b;-webkit-text-fill-color:#08635b;
}
html body .dm-game-framed [data-unit-number]>:not(input){display:none!important}
html body .dm-game-framed [data-unit-number]>input[type="checkbox"]{
 position:absolute!important;width:1px!important;height:1px!important;margin:0!important;
 clip-path:inset(50%);opacity:0!important;pointer-events:none;
}
html body .dm-game-framed [data-unit-number]:is(:focus-visible,:has(input:focus-visible)){
 outline:2px solid #13a99a;outline-offset:1px;
}
html[data-dm-theme="day"] body .dm-game-framed :is(.dm-picker-grid[data-kind="unit"],.unite-secim-box,.hb-units,.kg-units,.rr-units,.dm-sr-units)>:nth-child(4n+2):not(.active,.selected,[aria-pressed="true"],:has(input:checked)){
 background:#eef4ff!important;border-color:#aec6e5!important;
}
html[data-dm-theme="day"] body .dm-game-framed :is(.dm-picker-grid[data-kind="unit"],.unite-secim-box,.hb-units,.kg-units,.rr-units,.dm-sr-units)>:nth-child(4n+3):not(.active,.selected,[aria-pressed="true"],:has(input:checked)){
 background:#fff5e3!important;border-color:#dbca9d!important;
}
html[data-dm-theme="day"] body .dm-game-framed :is(.dm-picker-grid[data-kind="unit"],.unite-secim-box,.hb-units,.kg-units,.rr-units,.dm-sr-units)>:nth-child(4n):not(.active,.selected,[aria-pressed="true"],:has(input:checked)){
 background:#f7efff!important;border-color:#cfb6e2!important;
}

}

/* On small screens the options scroll inside the frame, with the primary action in reach. */
@layer bilgiIslands {
@media (max-width: 700px), (max-height: 620px) {
 html body .dm-game-framed :is(.pc-shell,.ww-shell,.hb-card,.sa-shell){
  display:flex!important;flex-direction:column!important;min-height:0!important;
  padding-bottom:max(8px,env(safe-area-inset-bottom,0px))!important;
 }
 html body .dm-game-framed :is(.pc-header,.ww-shell>header,.hb-card>header,.sa-header){flex:none}
 html body .dm-game-framed :is(.pc-body,.ww-body,.hb-body,.sa-body){flex:1 1 auto;min-height:0;overflow-y:auto!important}
 html body .dm-game-framed :is(.pc-body:has(.pc-setup),.ww-body:has(.ww-setup),.dm-garden-entry,.hb-body:has([data-start]),.sa-body:has(.sa-start),.kg-setup,.mt-setup,.rr-panel:has([data-start])){
  scroll-padding-block-end:64px;
 }
 html body .dm-game-framed :is(.pc-setup-papi,.ww-body .ww-papi,.dm-entry-intro img,.hb-intro img,.rr-setup-art){
  height:clamp(36px,7dvh,54px)!important;width:auto!important;object-fit:contain;
 }
 html body .dm-game-framed :is(.pc-setup,.ww-setup){gap:8px!important}
 html body .dm-game-framed :is(.dm-picker-grid[data-kind="unit"],.unite-secim-box,.hb-units,.kg-units,.rr-units,.dm-sr-units){
  max-height:clamp(82px,24dvh,174px)!important;
 }
 html body .dm-game-framed .dm-garden-entry{padding-top:10px!important}
 html body .dm-game-framed :is(.dm-entry-heading,.dm-entry-intro,.dm-entry-rules){margin-block:5px!important;padding-block:6px!important}
 html body .dm-game-framed .mt-setup form{flex:1 0 auto!important}
 html body .dm-game-framed :is(.pc-setup>.pc-start,.ww-setup>button[type="submit"],.dm-garden-entry .btn-giris,.hb-body>.hb-primary[data-start],.sa-start,.kg-primary[data-start],.mt-start,.rr-panel [data-start]){
  position:sticky!important;bottom:0!important;z-index:3!important;
  flex-shrink:0!important;min-height:44px!important;
 }
}
}

/* iOS: preserve the full game viewport while moving controls below the native status bar. */
html.dm-native-ios body .dm-vp-root{--dm-game-top:0px;--dm-game-height:100dvh}
html.dm-native-ios body .dm-vp-root>:is(.dm-vp-back,.dm-vp-exit){top:calc(var(--dm-ios-top-safe,62px) + 6px)!important}
html.dm-native-ios body .dm-vp-root>.game-modal-content{padding-top:calc(var(--dm-ios-top-safe,62px) + 52px)!important}
html.dm-native-ios body .dm-game-framed{--dm-frame-height:calc(54px + var(--dm-ios-top-safe,62px))}
html.dm-native-ios body .dm-game-framed .dm-game-frame{padding-top:var(--dm-ios-top-safe,62px)!important}

/* [12 Kas 2026] Klasik oyun pencereleri (Eksik Harf vb.) z-index 9999999 ile açılır; alt menünün Oyna diski
   (kol simgesi) bunların üstünde kalıyordu. bilgi-islands katmanındaki display:flex!important, katmansız gizleme
   kurallarını eziyordu; bu yüzden gizleme aynı katmanda ve daha güçlü seçiciyle yazıldı. */
@layer bilgiIslands{
html body:is(.dm-game-viewport,.dm-play-session) #bottomNavMobile#bottomNavMobile.bottom-nav-mobile,
html body:has(> .game-modal-overlay[style*="display: flex"]) #bottomNavMobile#bottomNavMobile.bottom-nav-mobile{display:none!important;visibility:hidden!important;pointer-events:none!important}
}
