/* Only adapts server-rendered gameweb state to qldyweb's existing DOM contract. */
[hidden] { display:none !important; }
.qldy-auth-logout-form { display:contents; }
.design-header-wrap,.sticky-header { display:contents; }
.sticky-header + .post-layout { padding-top:0; }
@media (min-width:721px) {
  .qldy-design-shell { overflow:visible !important; }
  .design-header-wrap > .topbar,.sticky-header > .topbar { position:sticky !important; z-index:100; top:0; left:0; width:100%; }
  .design-header-wrap > .account-bar,.design-header-wrap > .community-bar,.design-header-wrap > .home-account-bar,.sticky-header > .account-bar,.sticky-header > .community-bar,.sticky-header > .home-account-bar { position:relative !important; z-index:99; top:auto !important; left:auto; width:100%; margin-top:0 !important; }
  .qldy-design-shell > .composer { margin-top:0 !important; }
}
.validation-summary-errors,.field-validation-error { color:#d92323; }
.validation-summary-errors ul { margin:0; padding-left:1.25em; }
.gameweb-empty { margin:32px 0; color:inherit; text-align:center; }
.article-panel img,.article-body img,.notice-body img { max-width:100%; height:auto; }
.article-panel pre,.article-body pre,.notice-body pre { max-width:100%; overflow:auto; white-space:pre-wrap; }
.article-panel table,.article-body table,.notice-body table { max-width:100%; border-collapse:collapse; }
.article-panel td,.article-panel th,.article-body td,.article-body th,.notice-body td,.notice-body th { padding:8px; border:1px solid #aaa; }
.qldy-design-footer { min-height:0; flex:0 0 auto; padding:18px 25px 16px; overflow-wrap:anywhere; color:#ddd; background:#060606; text-align:center; font-size:11px; line-height:1.7; }
.qldy-design-footer-inner { width:min(100%, 1600px); margin:0 auto; }
.qldy-design-footer p { margin:2px 0; }
.qldy-design-footer a { color:inherit; text-decoration:none; }
.qldy-design-footer a:hover,.qldy-design-footer a:focus-visible { color:#ff9b3b; text-decoration:underline; text-underline-offset:2px; }
.qldy-design-footer strong { font-weight:normal; }
.qldy-design-footer-links { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; column-gap:12px; row-gap:2px; }
.qldy-design-footer-links > * { position:relative; }
.qldy-design-footer-links > * + *::before { content:"|"; position:absolute; right:calc(100% + 5px); color:#777; }
@media (max-width:720px) {
  .home-page .qldy-design-footer,.qldy-design-footer { padding:16px 12px !important; font-size:10px !important; line-height:1.65; }
  .qldy-design-footer-links { column-gap:10px; }
  .qldy-design-footer-links > * + *::before { right:calc(100% + 4px); }
}
.design-news-list { margin:0; padding:0; list-style:none; }
.design-news-list li { border-bottom:1px solid #bcbcbc; }
.design-news-list a { min-height:68px; padding:16px 0; display:flex; align-items:center; justify-content:space-between; gap:24px; font-size:18px; }
.design-news-list a:hover { color:#df813e; }
.design-news-list span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.design-news-list time { flex:0 0 auto; color:#777; font-size:14px; }
.text-list .gameweb-empty { color:#ddd; }
.gameweb-captcha-image { padding:0; overflow:hidden; }
.gameweb-captcha-image img { display:block; width:100%; height:100%; object-fit:cover; }
.login-design-card { padding-top:30px; }
.login-design-card .qldy-auth-choice-grid { margin-top:0; }
.login-design-card .login-mode-form { width:586px; margin:28px auto 0; }
.login-design-card .qldy-auth-register { margin-bottom:24px; }
.qldy-auth-choice.is-active .qldy-auth-choice-icon { border-color:#df813e; box-shadow:0 0 0 2px rgba(223,129,62,.16); }
.gameweb-remember { width:100%; display:block; margin:10px 0; font-size:16px; }
.forum-search-form { display:contents; }
.sort-button,.section-tab { display:grid; place-items:center; }
.gameweb-community-message { margin:0; padding:12px 18px; color:#16752b; background:#e4f5e6; }
.gameweb-community-message.is-error { color:#a71e1e; background:#f8dfdf; }
.composer textarea.content-editor { width:100%; height:100%; resize:none; }
.bbs-draft-modal { position:fixed; z-index:1000; inset:0; display:grid; place-items:center; }
.bbs-draft-modal[hidden] { display:none; }
.bbs-draft-backdrop { position:absolute; inset:0; background:rgba(0,0,0,.72); }
.bbs-draft-modal .draft-modal { position:relative; z-index:1; }
.bbs-draft-status { position:fixed; z-index:1100; left:50%; bottom:36px; transform:translateX(-50%); }
.gameweb-post-content { margin:0 0 20px; font-size:22px; line-height:1.65; }
.gameweb-post-content img:not(.bbs-emote),.gameweb-post-content video { display:block; max-width:100%; max-height:720px; margin:18px auto; object-fit:contain; }
.gameweb-post-content img.bbs-emote { width:36px; height:36px; display:inline-block; margin:0 3px; vertical-align:middle; object-fit:contain; }
.gameweb-publish-link { min-width:208px; padding:12px 40px; color:#fff; background:#df853e; font-size:24px; font-weight:bold; text-align:center; }
.post-actions form { display:contents; }
.post-actions details { position:relative; }
.post-actions summary { min-width:116px; padding:10px 18px; color:#b75d1d; border:1px solid #d88448; background:#fff; text-align:center; cursor:pointer; list-style:none; }
.post-actions details[open] form { position:absolute; z-index:20; right:0; top:46px; width:min(620px,calc(100vw - 40px)); padding:16px; display:grid; gap:10px; background:#fff; border:1px solid #d88448; box-shadow:0 10px 30px rgba(0,0,0,.24); }
.post-actions textarea,.post-actions input { width:100%; padding:10px; }
.gameweb-comment-actions { margin-top:10px; display:flex; gap:12px; flex-wrap:wrap; }
.gameweb-comment-actions details>summary,.gameweb-comment-actions button { padding:0; color:#2876d0; border:0; background:transparent; cursor:pointer; }
.gameweb-comment-actions form { margin-top:10px; padding:12px; display:grid; gap:8px; background:#f3f3f3; }
.gameweb-comment-actions textarea { width:100%; min-height:90px; }
.gameweb-comment-actions form button { justify-self:end; padding:7px 18px; color:#fff; background:#df853e; }
.comment .gameweb-comment-avatar-image { object-fit:cover; }
.gameweb-activity-panel { padding-bottom:70px; }
.gameweb-activity-form,.gameweb-activity-comments { margin-top:54px; }
.gameweb-activity-form .register-form { width:min(860px,100%); }
.gameweb-activity-form textarea { width:100%; min-height:120px; padding:14px 20px; border:1px solid #d89565; background:#eee; font:18px inherit; resize:vertical; }
.gameweb-activity-form select { width:100%; height:58px; padding:0 28px; border:1px solid #d89565; background:#eee; font-size:18px; }
.gameweb-activity-comments { padding-right:0; padding-left:0; background:transparent; }
.gameweb-form-message { padding:12px 16px; color:#16752b; background:#e4f5e6; }
.gameweb-form-message.is-error { color:#a71e1e; background:#f8dfdf; }
.gameweb-role-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.gameweb-role-grid label { cursor:pointer; }
.gameweb-role-grid label>input { position:absolute; opacity:0; }
.gameweb-role-grid label>span { min-height:110px; padding:18px; display:flex; flex-direction:column; gap:8px; border:1px solid #c8c8c8; background:#f2f2f2; }
.gameweb-role-grid input:checked+span { border-color:#df813e; box-shadow:0 0 0 2px rgba(223,129,62,.18); }
.gameweb-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0; }
.gameweb-facts div { padding:13px 16px; display:grid; grid-template-columns:140px 1fr; border-bottom:1px solid #ccc; }
.gameweb-facts dt { font-weight:bold; }
.gameweb-facts dd { margin:0; }
.gameweb-text-action { padding:0; color:#168fcf; border:0; border-bottom:1px solid currentColor; background:transparent; cursor:pointer; }
.gameweb-veteran-rewards { min-height:0; margin-top:54px; padding-bottom:28px; }
.gameweb-small-submit { margin:16px 0 0; width:190px; height:52px; font-size:20px; }
@media (max-width:900px) { .gameweb-role-grid { grid-template-columns:1fr; }.gameweb-facts { grid-template-columns:1fr; }.gameweb-facts div { grid-template-columns:110px 1fr; } }
@media (max-width:900px) {
  .design-news-list a { min-height:58px; padding:13px 0; gap:12px; font-size:15px; }
  .design-news-list time { font-size:12px; }
  .login-design-card .login-mode-form { width:100%; }
  .sticky-header + .post-layout { padding-top:0; }
}
