/* Existing CobyPlay controls in NightPlay's neutral palette. */

.scope-tags:not(:empty){padding-top:12px;margin-top:13px;border-top:1px solid var(--line)}
.price-values{display:flex;justify-content:space-between;gap:10px;margin-bottom:5px;color:#e0e2e8;font-size:14px;font-weight:700}.price-values span:last-child{color:#83d8d3}
.dual-range{position:relative;height:30px;margin:2px 4px 3px}.dual-range:before,.price-fill{position:absolute;top:13px;left:0;right:0;height:4px;border-radius:99px}.dual-range:before{content:'';background:#44454f}.price-fill{right:auto;background:linear-gradient(90deg,#bd8eaa,#83d8d3);pointer-events:none}
.range-box .dual-range input{position:absolute;top:0;left:0;width:100%;height:30px;margin:0;appearance:none;-webkit-appearance:none;pointer-events:none;background:transparent;padding:0}
.dual-range input::-webkit-slider-thumb{width:17px;height:17px;border:3px solid #f1eaf0;border-radius:50%;appearance:none;-webkit-appearance:none;pointer-events:auto;background:#a77191;box-shadow:0 0 0 3px #bd8eaa30;cursor:grab}.dual-range input::-moz-range-thumb{width:11px;height:11px;border:3px solid #f1eaf0;border-radius:50%;pointer-events:auto;background:#a77191;cursor:grab}
.dual-range input:focus-visible{outline:0}.dual-range input:focus-visible::-webkit-slider-thumb{outline:2px solid #83d8d3;outline-offset:3px}.single-range input{height:22px}.range-labels{color:#92929c;font-size:13px}.deal-option{margin-top:12px}
.single-range input{appearance:none;-webkit-appearance:none;background:transparent}.single-range input::-webkit-slider-runnable-track{height:4px;background:#44454f;border-radius:99px}.single-range input::-webkit-slider-thumb{width:17px;height:17px;margin-top:-6.5px;border:3px solid #f1eaf0;border-radius:50%;appearance:none;-webkit-appearance:none;background:#a77191;box-shadow:0 0 0 3px #bd8eaa30}.single-range input::-moz-range-track{height:4px;background:#44454f;border-radius:99px}.single-range input::-moz-range-thumb{width:11px;height:11px;border:3px solid #f1eaf0;border-radius:50%;background:#a77191}
.community{position:relative;display:flex;align-items:center;gap:7px;flex-shrink:0}.community-discord,.community-toggle{min-height:34px;border-radius:6px;padding:6px 10px;font-size:14px;font-weight:600;white-space:nowrap;text-decoration:none}.community-discord{background:#43333e;color:#f0dce8;border:1px solid #9e718b}.community-toggle{background:#222326;border:1px solid #555258;color:#e7e3e9}.community-toggle span{margin-left:4px}.community-menu{position:absolute;top:calc(100% + 8px);right:0;z-index:60;min-width:168px;padding:7px;border:1px solid #555258;border-radius:8px;background:#202124;box-shadow:0 10px 25px #0006}.community-menu a{display:flex;align-items:center;gap:10px;color:#e0e2e8;padding:9px;border-radius:5px;text-decoration:none;font-size:14px}.community-menu a:hover{background:#343038}.community-menu b{min-width:24px;color:#d3a4bf;font-size:13px}
.detail-page #trailerLink{top:20px;right:20px;bottom:auto;display:inline-flex;gap:7px;width:auto;height:auto;min-height:35px;padding:8px 11px;border:1px solid #ffffff60;border-radius:99px;color:#fff;background:#111622aa;font-size:12px;line-height:1.3;box-shadow:none}.detail-page #trailerLink b{display:grid;place-items:center;width:17px;height:17px;border-radius:50%;background:#fff;color:#111622;font-size:10px}.detail-page #trailerLink span{padding:0}
.detail-page .summary .game-aliases{font-size:13px;color:#a6a6b0;margin:0 0 5px}.detail-page .summary .price-source{font-size:12px;color:#9999a2;margin:5px 0 0}.detail-page .price-line{flex-wrap:wrap}.detail-page .shell header>.community{margin-left:auto}.detail-page .shell header>.language-switch{margin-left:14px}
@media(max-width:1050px) and (min-width:741px){.header-inner{gap:18px}.brand img.nightplay-logo{width:205px;height:68px}.header-status{gap:10px}.community-discord,.community-toggle{font-size:13px;padding:6px 8px}.audience-badge>span{display:none}}
@media(max-width:740px){body:not(.detail-page) .header-inner{flex-wrap:wrap!important;row-gap:7px;padding-top:7px;padding-bottom:9px}.header-status{display:contents}.header-inner>.brand{order:1}.header .language-switch{order:2;margin-left:auto}.header .audience-badge{order:3}.header nav[aria-label="主要導覽"]{display:none}.header .community{order:4;flex-basis:100%;justify-content:flex-end}.community-discord,.community-toggle{min-height:34px;font-size:13px;padding:5px 9px}.detail-page .shell header{height:auto;min-height:100px;flex-wrap:wrap;gap:7px;padding:7px 0 9px}.detail-page .shell header>.brand{order:1}.detail-page .shell header>nav{display:none}.detail-page .shell header>.language-switch{order:2;margin-left:auto}.detail-page .shell header>.community{order:3;flex-basis:100%;justify-content:flex-end;margin-left:0}.detail-page .shell header .nightplay-logo{width:148px;height:49px}.detail-page #trailerLink{top:12px;right:12px;font-size:11px;min-height:34px}.dual-range{height:36px}.dual-range:before,.price-fill{top:16px}.range-box .dual-range input{height:36px}.dual-range input::-webkit-slider-thumb{width:20px;height:20px}.range-labels{font-size:13px}}
@media(max-width:740px){.header .community{flex-basis:auto;margin-left:auto}html{scroll-padding-top:114px}}
@media(max-width:360px){.detail-page .shell header .nightplay-logo{width:120px;height:40px}.detail-page .language-switch select{max-width:94px}}

/* Larger type: let scope controls wrap on narrow screens in every locale. */
@media(max-width:740px){.scope-head{flex-wrap:wrap;row-gap:8px}.scope-tools{flex-wrap:wrap}}

/* Match CobyPlay's shell and gutters. Its desktop homepage uses 1.1 zoom;
   express that visible width here without scaling NightPlay's typography. */
body:not(.detail-page) .wrap,body:not(.detail-page) .header-inner{max-width:1440px;padding-left:42px;padding-right:42px}
.detail-page .shell{max-width:1440px;padding-left:42px;padding-right:42px}
@media(min-width:1200px){body:not(.detail-page) .wrap,body:not(.detail-page) .header-inner{max-width:1584px;padding-left:46.2px;padding-right:46.2px}}
@media(max-width:950px){.detail-page .shell{padding-left:22px;padding-right:22px}}
@media(max-width:900px){body:not(.detail-page) .wrap,body:not(.detail-page) .header-inner{padding-left:22px;padding-right:22px}}
@media(max-width:540px){body:not(.detail-page) .wrap,body:not(.detail-page) .header-inner,.detail-page .shell{padding-left:14px;padding-right:14px}}

/* CobyPlay's desktop filter column is 264px, visually 290.4px at its 1.1 scale. */
@media(min-width:901px){.workspace{grid-template-columns:264px minmax(0,1fr);gap:24px}}
@media(min-width:1200px){.workspace{grid-template-columns:290.4px minmax(0,1fr);gap:26.4px}}

/* Multiplayer labels and release-year range controls. */
.sidebar [data-filter-group="connection"] legend{flex-wrap:wrap;gap:3px 8px;align-items:baseline}
.sidebar [data-filter-group="connection"] legend span{display:inline;font-size:12px;letter-spacing:.3px;margin-left:auto}
.year-values span:last-child{color:#d8b1ca}.year-fill{background:linear-gradient(90deg,#b58aab,#d1a4be)}
/* Review-count selection uses the same soft rose palette as the year range. */
#review-min::-webkit-slider-runnable-track{background:linear-gradient(90deg,#b58aab 0%,#d1a4be var(--review-progress,0%),#44454f var(--review-progress,0%),#44454f 100%)}
#review-min::-moz-range-progress{height:4px;border-radius:99px;background:linear-gradient(90deg,#b58aab,#d1a4be)}

/* Shared logo frame and header spacing on home and game detail pages. */
:root{--brand-logo-width:246px;--brand-logo-height:82px;--brand-header-height:94px}
body:not(.detail-page) .header .brand,.detail-page .shell header>.brand{display:flex;align-items:center;flex:0 0 var(--brand-logo-width);width:var(--brand-logo-width);height:var(--brand-logo-height);padding:0;margin:0}
body:not(.detail-page) .header .brand img.nightplay-logo,.detail-page .shell header .brand img.nightplay-logo{display:block;width:var(--brand-logo-width);height:var(--brand-logo-height);object-fit:contain}
body:not(.detail-page) .header-inner{min-height:calc(var(--brand-header-height) - 1px);padding-top:calc((var(--brand-header-height) - var(--brand-logo-height) - 1px)/2);padding-bottom:calc((var(--brand-header-height) - var(--brand-logo-height) - 1px)/2)}
.detail-page .shell header{height:var(--brand-header-height);padding-top:calc((var(--brand-header-height) - var(--brand-logo-height) - 1px)/2);padding-bottom:calc((var(--brand-header-height) - var(--brand-logo-height) - 1px)/2)}
html{scroll-padding-top:calc(var(--brand-header-height) + 13px)}
@media(min-width:741px) and (max-width:1050px){:root{--brand-logo-width:205px;--brand-logo-height:68px;--brand-header-height:80px}}
@media(max-width:740px){:root{--brand-logo-width:148px;--brand-logo-height:49px;--brand-header-height:100px}body:not(.detail-page) .header-inner{padding-top:7px;padding-bottom:9px}.detail-page .shell header{height:auto;min-height:var(--brand-header-height);padding-top:7px;padding-bottom:9px}html{scroll-padding-top:114px}}
@media(max-width:360px){:root{--brand-logo-width:120px;--brand-logo-height:40px}}
