.hc-title-language { position:fixed; top:max(20px,env(safe-area-inset-top)); right:max(20px,env(safe-area-inset-right)); z-index:80000; font-family:'Segoe UI',Arial,sans-serif; color:#e8faff; }
.hc-title-language[hidden],.hc-language-layer[hidden],.hc-language-trigger[hidden] { display:none!important; }
body:not(.mobile-game):has(#developerToggle:not([hidden])) .hc-title-language { right:max(84px,calc(env(safe-area-inset-right) + 64px)); }
.hc-language-trigger { display:flex; align-items:center; justify-content:center; gap:8px; min-height:42px; padding:7px 13px; border:1px solid #80eaff; border-radius:10px; background:linear-gradient(135deg,#075f99,#041c39); color:#d9f8ff; box-shadow:inset 0 1px #d8f8ff22,0 0 12px #15aaff20; font:700 12px/1.2 'Segoe UI',Arial,sans-serif; letter-spacing:.07em; cursor:pointer; touch-action:manipulation; }
.hc-language-trigger svg { width:25px; height:25px; }
.hc-title-language button:focus-visible { outline:2px solid #d3f9ff; outline-offset:3px; }
.hc-language-trigger:hover,.hc-language-option:not(:disabled):hover { background:linear-gradient(135deg,#0876b8,#073654); border-color:#c5f6ff; }
.hc-language-layer { position:fixed; inset:0; display:grid; place-items:center; padding:16px; background:#000c; touch-action:none; box-sizing:border-box; }
.hc-language-dialog { position:relative; display:flex; flex-direction:column; gap:16px; width:min(620px,100%); max-height:calc(100dvh - 32px); box-sizing:border-box; padding:24px; border:1px solid #80eaffaa; border-radius:14px; background:linear-gradient(145deg,#08243c,#030d1c 70%); box-shadow:0 16px 60px #000a,inset 0 1px #a9eeff15; }
.hc-language-dialog h2 { margin:0; padding-right:38px; color:#a5edff; font:700 20px/1.25 'Segoe UI',Arial,sans-serif; letter-spacing:.06em; }
.hc-language-close { position:absolute; top:10px; right:10px; width:34px; height:34px; padding:0; border:1px solid #80eaff77; border-radius:8px; color:#a5edff; background:#071a30; font:24px/1 'Segoe UI',Arial,sans-serif; cursor:pointer; touch-action:manipulation; }
.hc-language-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; min-height:0; overflow:auto; overscroll-behavior:contain; touch-action:pan-y; padding:3px; }
.hc-language-option { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:4px; min-height:58px; padding:10px; border:1px solid #3e9bc277; border-radius:9px; background:#061b30; color:#d9f8ff; text-align:left; font:600 13px/1.4 'Segoe UI','Nirmala UI','Microsoft YaHei','Yu Gothic',sans-serif; cursor:pointer; touch-action:manipulation; overflow-wrap:anywhere; }
.hc-language-option small { color:#7fb9d0; font:10px/1.2 'Segoe UI',Arial,sans-serif; letter-spacing:.08em; }
.hc-language-option[aria-pressed=true] { border-color:#8aeeff; background:#075079; box-shadow:inset 3px 0 #73e8ff; }
.hc-language-option:disabled { opacity:.48; cursor:not-allowed; }
.hc-language-status { margin:0; color:#91afc2; font:12px/1.5 'Segoe UI','Nirmala UI',Arial,sans-serif; }
.mobile-game .hc-title-language { position:absolute; top:auto; bottom:calc(12px + var(--view-safe-bottom)); right:calc(14px + var(--view-safe-right)); }
.mobile-game .hc-language-trigger { min-height:36px; padding:5px 10px; font-size:10px; }
.mobile-game .hc-language-trigger svg { width:22px; height:22px; }
.mobile-game .hc-language-layer { position:fixed; width:var(--viewport-width); height:var(--viewport-height); }
.mobile-game .hc-language-dialog { max-height:calc(var(--viewport-height) - 24px); padding:16px; gap:10px; }
.mobile-game .hc-language-dialog h2 { font-size:16px; }
.mobile-game .hc-language-option { min-height:48px; padding:7px; font-size:12px; }
.mobile-game .hc-language-status { font-size:10px; }
@media(max-width:480px) { .hc-language-list { grid-template-columns:repeat(2,minmax(0,1fr)); } }
