#poki-header-language{display:flex;align-items:center;justify-content:flex-end;min-width:112px;flex:none}
#poki-header-language .gm-language-widget{position:relative;inset:auto;z-index:30}
#poki-header-language .gm-language-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:6px 10px;border:1px solid #3e6389;border-radius:9px;white-space:nowrap;font-size:13px}
#poki-header-language .gm-language-icon{width:20px;height:20px;font-size:12px}
#poki-header-language .gm-language-panel{position:absolute;top:calc(100% + 8px);right:0;bottom:auto;left:auto;width:min(260px,calc(100vw - 32px));max-height:65dvh;overflow:auto;box-shadow:0 8px 22px #0007}
#poki-header-language .gm-language-options{display:grid;grid-template-columns:1fr}
#poki-header-language .gm-language-options button{min-height:34px;text-align:left}
body:has(#poki-header-language .gm-language-toggle)>a.edit-game-btn[href*="google.com/search?q=site:"]{right:134px!important}
@media(max-width:767px){
  #poki-header-language{min-width:65px}
  #poki-header-language .gm-language-toggle{min-height:36px;padding:6px 8px;font-size:12px}
  #poki-header-language .gm-language-icon{display:none}
  body:has(#poki-header-language .gm-language-toggle)>a.edit-game-btn[href*="google.com/search?q=site:"]{top:auto!important;bottom:16px!important;right:16px!important}
}

@media(max-width:360px){#header:has(#poki-header-language .gm-language-toggle) .poki-install-direct{left:100px}}

@media(min-width:361px) and (max-width:767px){#header:has(#poki-header-language .gm-language-toggle) .poki-install-direct{left:122px}}

.gx-header-main #poki-header-language{margin-left:8px;min-width:0}
.gx-header-main #poki-header-language .gm-language-toggle{background:#29184d;color:#fff;border-color:#7658ac;font-family:system-ui,sans-serif}
.gx-header-main #poki-header-language .gm-language-panel{padding:13px;background:#fff;color:#30204e;border:1px solid #ded2f1;border-radius:14px;font:600 14px/1.4 system-ui,sans-serif}
.gx-header-main #poki-header-language .gm-language-options{gap:5px;margin:8px 0}
.gx-header-main #poki-header-language .gm-language-panel[hidden]{display:none!important}
.gx-header-main #poki-header-language .gm-language-panel button{border:1px solid #e5dcef;border-radius:6px;background:#f5f0fb;color:#332250;padding:7px;cursor:pointer}
.gx-header-main #poki-header-language .gm-language-panel button:hover{background:#e9defa}
.gx-header-main #poki-header-language .gm-google-translate{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:767px){.gx-header-main #poki-header-language{margin-left:0}}

@media(max-width:767px){.gx-header-main #poki-header-language{order:99}}

#poki-header-language{--language-bg:#190f31;--language-row:#281747;--language-active:#3e2567;--language-border:#8155c7;--language-text:#faf3ff}
#poki-header-language .gm-language-toggle{background:var(--language-row)!important;color:var(--language-text)!important;border-color:var(--language-border)!important}
#poki-header-language .gm-language-current-flag,#poki-header-language .gm-language-options img{width:24px;height:16px;object-fit:cover;border-radius:3px;flex:none}
#poki-header-language .gm-language-chevron{width:7px;height:7px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg);margin:0 2px 3px}
#poki-header-language .gm-language-toggle[aria-expanded=true] .gm-language-chevron{transform:rotate(225deg);margin-top:4px}
#poki-header-language .gm-language-panel{background:var(--language-bg)!important;color:var(--language-text)!important;border:1px solid var(--language-border)!important;max-height:min(74dvh,580px);color-scheme:dark}
#poki-header-language .gm-language-panel strong{color:inherit}
#poki-header-language .gm-language-panel button{background:var(--language-row)!important;color:var(--language-text)!important;border-color:transparent!important}
#poki-header-language .gm-language-options button{display:flex;align-items:center;gap:8px;min-height:34px;text-align:left}
#poki-header-language .gm-language-options button[aria-pressed=true],#poki-header-language .gm-language-panel button:hover{background:var(--language-active)!important;border-color:var(--language-border)!important}
#poki-header-language .gm-language-options button[aria-pressed=true]::after{content:"";margin-left:auto;width:6px;height:11px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg)}
@media(max-width:767px){#poki-header-language .gm-language-toggle-label{display:none}}
