@media(min-width:1700px){body.design-1 .theme-toggle{position:absolute;right:24px;top:50%;transform:translateY(-50%)}}
@media(max-width:1699px){body.design-1 .site-header{gap:12px}}
@media(max-width:600px){body.design-1 .site-header{gap:8px}body.design-1 .brand{font-size:22px}body.design-1 .brand-logo{width:34px;height:34px}}
html[data-color-mode=dark] body.design-1{--bg:#171b20;--surface:#20262d;--ink:#e0e6ec;--muted:#a1adb9;--line:#35404b;--accent:#73b4eb;--soft:#293d50;background:#171b20!important;color:#d1dae3!important;color-scheme:dark!important}
html[data-color-mode=dark] body.design-1 :is(.site-header,.sub-menu,.section-nav,.xnew-footer,.back-top,.category-pagination>a,.category-pagination>span){background:#20262d!important;color:#d1dae3;border-color:#35404b!important}
html[data-color-mode=dark] body.design-1 :is(h1,h2,h3,h4,.brand,.account,.nav-list,.site-header .nav-list>.menu-item>a,.recent-copy h3,.account-name,.section-title,.my-comments-title,.stats-total strong,.stat-item strong){color:#e0e6ec!important}
html[data-color-mode=dark] body.design-1 :is(.brand-caption,.recent-description,.recent-meta,.recent-meta time,.recent-category,.home-card-meta,.result-summary,.classify-heading p,.library-empty,.library-more p,.footer-copy,.footer-copy a,.account-id,.account-kicker,.field small,.stat-item span,.my-comments-time,.download-info p,.info-row span,.download-heading p,.help-heading p,.stats-total>span,.stats-total small,.stats-head){color:#a1adb9!important}
html[data-color-mode=dark] body.design-1 :is(.classify-heading,.category-sidebar,.recent-game,.category-banner-area,.category-banner-stack,.library-main,.help-heading,.help-toc,.download-heading,.download-info,.info-row,.stats-row,.my-comments-header,.my-comments-table td,.stat-item){border-color:#35404b!important}
html[data-color-mode=dark] body.design-1 :is(.category-banner-area,.category-banner-stack,.account-sidebar,.account-form,.avatar-preview,.avatar-option,.my-comments-panel,.my-comments-table th,.disk-link,.help-toc,.auth-main,.search-hotwords){background:#20262d!important;color:#d1dae3!important;border-color:#35404b!important;box-shadow:none!important}
html[data-color-mode=dark] body.design-1 :is(input,textarea,select){background:#1c2228!important;color:#e0e6ec!important;border-color:#455563!important}
html[data-color-mode=dark] body.design-1 :is(input,textarea)::placeholder{color:#94a4b1!important}
html[data-color-mode=dark] body.design-1 :is(.recent-game:hover,.recent-game:focus-within,.category-sidebar nav a:hover,.category-sidebar nav a[aria-current],.stats-row:hover,.disk-link:hover,.avatar-option.is-active,.sub-menu a:hover,.button.quiet:hover){background:#293d50!important;border-color:#527797!important;color:#91c7f2!important}
html[data-color-mode=dark] body.design-1 :is(.category-sidebar nav a,.home-category-link,.day-game a,.my-comment-link,.auth-switch a,.help-toc a,.info-row strong,.disk-link>i:first-child,.stats-row>span){color:#b4c9d9!important}
html[data-color-mode=dark] body.design-1 :is(.recent-category b,.featured-language,.day-language,.language-badge){background:#293d50!important;color:#91c7f2!important}
html[data-color-mode=dark] body.design-1 :is(.button.quiet,.account-save){background:#293d50!important;color:#b7dbf7!important;border-color:#527797!important}
html[data-color-mode=dark] body.design-1 .my-comments-table td{background:transparent!important;color:#d1dae3!important}
html[data-color-mode=dark] body.design-1 :is(.my-comment-text,.field>span,.disk-link small,.download-status){color:#c1cdda!important}
html[data-color-mode=dark] body.design-1 .category-sidebar nav{scrollbar-color:#63798c #20262d}
html[data-color-mode=dark] body.design-1 .help-content,
html[data-color-mode=dark] body.design-1 .help-content :is(p,span,font,div,li,td,strong){background-color:transparent!important;color:#d1dae3!important}
html[data-color-mode=dark] body.design-1 .help-content a{color:#83bdf0!important}
html[data-color-mode=dark] body.design-1 #sitewide-banner-container>div{background:transparent!important;border-color:#35404b!important}
body.out-view .theme-toggle{margin-left:auto}
html[data-color-mode=dark] body.out-view{background:#171b20;color:#d1dae3}
html[data-color-mode=dark] body.out-view :is(.brand,h1){color:#e0e6ec;border-color:#35404b}
html[data-color-mode=dark] body.out-view p{color:#a1adb9}
html[data-color-mode=dark] body.out-view #destination{background:#20262d;color:#c4d9e9;border-color:#455563}
html[data-color-mode=dark] body.out-view .actions a{background:#20262d;color:#91c7f2;border-color:#455563}
html[data-color-mode=dark] body.design-1 :is(.cinema-hero h1,.recent-copy h3,.home-game h3,.carousel-info h3,.related-game h3,.download-heading h1){color:#c7d5e0!important}
html[data-color-mode=dark] body.design-1 :is(.home-game h3 a,.recent-copy h3 a,.related-game h3 a){color:inherit}
html[data-color-mode=dark] body.design-1 :is(.home-game h3 a:hover,.recent-copy h3 a:hover,.related-game h3 a:hover){color:#91c7f2}
html[data-color-mode=dark] body.design-1 .help-sidebar nav a[aria-current]{background:#293d50;color:#91c7f2}
html[data-color-mode=dark] body.design-1 .account-page{background:transparent!important;color:#d1dae3}
html[data-color-mode=dark] body.design-1 .account-page :is(h1,h2,h3,label){color:#e0e6ec!important}
html[data-color-mode=dark] body.design-1 .stat-item{background:#20262d}
html[data-color-mode=dark] body.design-1 .stats-category:after{background:linear-gradient(to right,var(--category-color,#809878) var(--share),#35404b var(--share))}
/* Match the specificity of the legacy shared palette's chained exclusions. */
html[data-color-mode=dark] body.design-1:not(.home-view):not(.game-light):not(.classify-view){background:#171b20!important;color:#d1dae3!important;color-scheme:dark!important}
html[data-color-mode=dark] body.design-1.design-1 .account-page{background:#171b20!important}
html[data-color-mode=dark] body.design-1 .my-comments-more{background:#293d50!important;color:#a9d4f4!important;border-color:#527797!important}
html[data-color-mode=dark] body.design-1 .my-comments-more:hover{background:#36516a!important;color:#d1e8f8!important}
html[data-color-mode=dark] body.design-1 .day-month-block,
html[data-color-mode=dark] body.design-1 .archives-list li{border-color:#35404b}
html[data-color-mode=dark] body.design-1 .archives-list a{color:#c7d5e0}
html[data-color-mode=dark] body.design-1 .archives-list a:hover{color:#91c7f2}
html[data-color-mode=dark] body.design-1 .archives-list time{color:#9eafbd}
html[data-color-mode=dark] body.design-1 .archives-list tag{background:#293d50;color:#91c7f2}
html[data-color-mode=dark] body.design-1 .archives-list font{color:#c9ae8b}
html[data-color-mode=dark] body.design-1 .stats-row>span:nth-child(2){color:#d1dae3}
html[data-color-mode=dark] body.design-1 .stats-row>span:nth-child(3){color:#a1adb9}
html[data-color-mode=dark] body.design-1.classify-view.tags-view{background:#171b20!important;color:#d1dae3!important}
html[data-color-mode=dark] body.design-1.tags-view .category-sidebar nav{background:transparent;border-color:#35404b}
html[data-color-mode=dark] body.design-1.tags-view .category-sidebar nav>a{background:transparent;color:#b4c9d9!important}
html[data-color-mode=dark] body.design-1.tags-view .category-sidebar nav>a[aria-current],
html[data-color-mode=dark] body.design-1.tags-view .category-sidebar nav>a:hover{background:#293d50!important;color:#91c7f2!important}
html[data-color-mode=dark] body.design-1.tags-view .category-sidebar nav>a small{color:#9eafbd}
html[data-color-mode=dark] body.design-1.design-1 .site-header .sub-menu,
html[data-color-mode=dark] body.design-1.design-1 .site-header .sub-menu a,
html[data-color-mode=dark] body.design-1.design-1 .site-header .sub-menu a i{color:#c7d5e0!important}
html[data-color-mode=dark] body.design-1.design-1 .site-header .sub-menu a:hover,
html[data-color-mode=dark] body.design-1.design-1 .site-header .sub-menu a:focus-visible{background:#293d50!important;color:#91c7f2!important}
