html[data-entry-pending] #game-shell{visibility:hidden}
.terms-dialog{box-sizing:border-box;width:min(900px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;color:#f4dfac;background:#123c4c;border:3px solid #d7ae65;font:16px/1.55 system-ui,sans-serif;overscroll-behavior:contain}
.terms-dialog[open]{display:flex;flex-direction:column}.terms-dialog::backdrop{background:rgba(3,21,29,.96)}
.terms-dialog header,.terms-dialog footer{padding:16px 22px;flex-shrink:0}.terms-dialog header{border-bottom:1px solid #668b8d}.terms-dialog h1{font:700 25px/1.2 system-ui,sans-serif;margin:8px 0}.terms-dialog header p{margin:6px 0}.terms-dialog header label{display:inline-block;margin-left:20px}.terms-dialog select{font:inherit;padding:5px;color:inherit;background:#082d38;border:1px solid #d7ae65}
.terms-document{padding:4px 22px;overflow:auto;min-height:90px;flex:1}.terms-document h2{font:700 19px/1.35 system-ui,sans-serif;margin:20px 0 8px}.terms-document p{font:inherit;margin:0 0 16px;color:#e2e9e5}.terms-dialog footer{border-top:1px solid #668b8d}.terms-dialog a,.terms-page-body a{color:#ffda89;text-underline-offset:3px}.terms-check{display:flex;gap:12px;align-items:flex-start;margin:12px 0;cursor:pointer}.terms-check input{width:22px;height:22px;min-width:22px;margin:2px 0;accent-color:#e9bf70}.terms-actions{display:flex;flex-wrap:wrap;gap:12px}.terms-actions button{font:700 15px/1.4 system-ui,sans-serif;padding:12px 18px;min-height:44px;cursor:pointer}.terms-actions button:disabled{opacity:.45;cursor:not-allowed}.terms-dialog footer [role=status]:empty{display:none}.terms-dialog footer [role=status]{font-size:14px;margin:10px 0 0}.terms-dialog :focus-visible,.terms-page-body :focus-visible{outline:3px solid #fff;outline-offset:3px}
.topbar a.game-info-button{text-decoration:none;box-sizing:border-box}.terms-load-error{position:fixed;inset:40% 10% auto;z-index:9999;padding:24px;background:#123c4c;color:#fff;border:2px solid #e9bf70}
.terms-page-body{margin:0;padding:24px;color:#e2e9e5;background:#082d38;font:16px/1.65 system-ui,sans-serif}.terms-page-body main{max-width:850px;margin:auto}.terms-page-body header{padding-bottom:20px;border-bottom:2px solid #d7ae65}.terms-page-body header>a{display:block;margin-top:16px}.terms-page-body h1,.terms-page-body h2{color:#ffda89}.terms-page-body select{font:inherit;padding:8px;margin-left:10px}
@media(max-width:600px),(max-height:650px){.terms-dialog{font-size:14px}.terms-dialog header,.terms-dialog footer{padding:10px 14px}.terms-dialog h1{font-size:20px}.terms-dialog header p{display:none}.terms-document{padding:0 14px}.terms-dialog header label{margin-left:12px}.terms-actions button{padding:9px 12px}.topbar a.game-info-button{width:44px;min-height:44px}.terms-page-body{padding:14px}}

@media(max-width:600px){#menu-toggle{top:calc(max(8px,env(safe-area-inset-top)) + 84px)}.left-rail{top:calc(max(8px,env(safe-area-inset-top)) + 136px);max-height:calc(100dvh - 160px)}}
