.pwa-install[hidden]{display:none!important}
.pwa-header-actions{display:flex;align-items:center;gap:22px}
.pwa-install{font:500 11px/1.5 'Noto Sans Thai',Tahoma,sans-serif;white-space:nowrap;color:#e4c58b;background:#152019d9;border:1px solid #c9a66d66;padding:9px 15px;cursor:pointer;min-height:38px}
.pwa-install:hover{background:#344035;color:#ffe5b3}
.pwa-install:focus-visible,.pwa-help button:focus-visible{outline:2px solid #f8d696;outline-offset:4px}
.pwa-help{color:#f0e8d7;background:#131d17;border:1px solid #c9a66d77;padding:28px;max-width:420px;width:calc(100% - 40px);font:14px/1.9 'Noto Sans Thai',Tahoma,sans-serif}
.pwa-help::backdrop{background:#000b}.pwa-help h2{font-size:21px;margin:0 0 15px;font-weight:500}.pwa-help p{color:#c6ccbc}
.pwa-help button{font:inherit;background:#d6b47a;border:0;color:#171e17;padding:9px 20px;cursor:pointer}
.pwa-offline{box-sizing:border-box;margin:0;min-height:100svh;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 30%,#29392b,#101310 75%);color:#f0e8d7;font:14px/1.9 Tahoma,sans-serif;padding:24px}
.pwa-offline main{max-width:480px;text-align:center}.pwa-offline img{width:76px;height:76px}.pwa-offline h1{font-size:28px;line-height:1.5;font-weight:500}.pwa-offline p{color:#bcc5b3}.pwa-offline a{display:inline-block;color:#e4c58b;margin:10px;padding:10px 5px;text-decoration:none;border-bottom:1px solid #c9a66d77}.pwa-offline a:focus-visible{outline:2px solid #f8d696;outline-offset:4px}
@media(max-width:600px){.pwa-header-actions{gap:8px}.pwa-install{font-size:10px;padding:7px 10px}.pwa-help{padding:22px}.information nav{gap:8px}}
@media(max-width:380px){.gateway-round .portal-header{gap:10px}.gateway-round .portal-header:has(.pwa-install:not([hidden])) .brand{font-size:14px;gap:8px;letter-spacing:1px}.gateway-round .portal-header:has(.pwa-install:not([hidden])) .brand-seal{width:27px;height:33px}.gateway-round .portal-header:has(.pwa-install:not([hidden])) .brand small{font-size:6px;letter-spacing:1.5px}}
@media(max-height:430px){.pwa-install{font-size:9px;min-height:30px;padding:6px 9px}}

.support-brand{position:absolute;top:24px;left:5.2%;right:5.2%;text-align:left}.pwa-offline .support-brand a{display:inline-flex;align-items:center;gap:13px;margin:0;padding:0;border:0;font:600 21px Georgia,serif;letter-spacing:2px}.pwa-offline .support-brand img{width:52px;height:56px;object-fit:contain}.pwa-offline:has(.support-brand) main{padding-top:72px}
@media(max-width:600px){.support-brand{top:20px}.pwa-offline .support-brand img{width:42px;height:46px}.pwa-offline .support-brand a{font-size:18px}}

/* Shared installation guide: scoped so the game HUD keeps its own styles. */
[data-pwa-invite][hidden],.pwa-device[hidden]{display:none!important}
.pwa-guide-link{display:block;width:max-content;max-width:100%;margin:0 auto 9px;color:#e4c58b;font:13px/1.6 Tahoma,sans-serif;text-underline-offset:5px}
.pwa-help{box-sizing:border-box;max-width:560px;max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;margin:auto;padding:24px;text-align:left}
.pwa-help h2{font-size:20px;margin:0}.pwa-dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;position:sticky;top:-24px;background:#131d17;padding:8px 0;z-index:1}
.pwa-help .pwa-dialog-heading button{font-size:24px;line-height:1;min-width:44px;min-height:44px;padding:6px}
.pwa-guide{scroll-margin-top:24px;max-width:780px;margin-inline:auto;text-align:left}
.pwa-guide,.pwa-help{color:#f0e8d7;font-family:'Noto Sans Thai',Tahoma,sans-serif;font-size:14px;line-height:1.8}
.pwa-guide h2{font-size:clamp(24px,5vw,36px)}
.pwa-intro{color:#d5d9ca}.pwa-browser-note{border:1px solid #c9a66d55;border-radius:8px;padding:14px;background:#27372d66;margin:18px 0}
.pwa-browser-note p{margin:8px 0 0}.pwa-browser-active{border-color:#e4c58b;background:#46392177}
.pwa-device-picker{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0 14px}
.pwa-device-picker button,.pwa-copy-row button{font:inherit;min-height:44px;padding:9px 16px;border:1px solid #c9a66d66;border-radius:6px;background:#1c2b22;color:#e4c58b;cursor:pointer}
.pwa-device-picker button[aria-pressed=true]{background:#d6b47a;color:#171e17;border-color:#d6b47a}
.pwa-device h3{font-size:19px;margin:14px 0}.pwa-device ol{padding-left:25px;margin:18px 0}.pwa-device li{padding-left:4px;margin:12px 0}
.pwa-ios-steps img{display:block;width:100%;max-width:280px;height:auto;margin:12px auto 24px;border:1px solid #697f7299;border-radius:12px;box-sizing:border-box}
.pwa-menu-picture{display:grid;grid-template-columns:1fr 44px;max-width:360px;margin:12px auto;padding:14px 18px;border-radius:14px;border:1px solid #697f7299;background:#202d26;box-shadow:0 8px 24px #0003}
.pwa-menu-picture span{align-self:center;font-size:13px;color:#cfdbd1}.pwa-menu-picture b{font-size:28px;text-align:center;color:#ffe2a7}.pwa-menu-picture em{grid-column:1/-1;border-top:1px solid #c9a66d44;padding-top:12px;margin-top:8px;font-style:normal;color:#e4c58b}
.pwa-caption,.pwa-footnote{font-size:12px;color:#b9c5b8}.pwa-copy-row{display:flex;align-items:end;gap:8px;margin-top:20px}.pwa-copy-row label{flex:1;min-width:0;font-size:12px;color:#b9c5b8}
.pwa-copy-row input{box-sizing:border-box;display:block;width:100%;min-height:44px;padding:8px;background:#0c1711;color:#eee6d2;border:1px solid #697f7280;border-radius:5px;font:12px/1.5 Tahoma,sans-serif}
.pwa-copy-row button{flex-shrink:0;font-size:12px}.pwa-troubleshoot{border-top:1px solid #c9a66d44;padding-top:14px}.pwa-troubleshoot summary{cursor:pointer;color:#e4c58b}
.pwa-guide button:focus-visible,.pwa-guide input:focus-visible,.pwa-help input:focus-visible{outline:2px solid #f8d696;outline-offset:3px}
@media(max-width:380px){.pwa-help{padding:16px;width:calc(100% - 16px)}.pwa-dialog-heading{top:-16px}.pwa-help h2{font-size:17px}.pwa-copy-row{flex-wrap:wrap}.pwa-copy-row label{flex-basis:100%}}
@media(max-height:650px){.gateway-round .gateway-secondary{padding-top:8px}.gateway-round .pwa-guide-link{font-size:11px;margin-bottom:5px}.gateway-round .gateway-note{display:none}}
/* Keep installation links above the footer on short landscape screens. */
@media(max-height:430px) and (min-width:601px){.gateway.gateway-round .gateway-secondary{display:flex;align-self:start;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px 18px;padding-top:8px}.gateway-round .gateway-secondary>a{width:auto;margin:0}}
.push-settings{display:flex;flex-direction:column;gap:8px;min-width:0;width:100%}.push-settings>button{width:100%;white-space:normal}.push-settings>p{margin:4px 0;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
