/* Incremental presentation layer over the original public styles.
   Original detail, category, pagination, tutorial and download-page rules remain
   authoritative. New homepage styles are scoped to .ns-structure-home. */

/* Shared navigation: retain the original logo, APP control and vector pattern. */
.site-header-band{z-index:30;--header-brand-height:77px;--header-top-space:14px}
.site-header-band::before{height:calc(var(--header-brand-height) + var(--header-top-space));background-image:url('/platform/header-console-pattern-v2.svg');background-size:auto 100%;background-repeat:repeat-x;background-position:center top;opacity:.1}
.site-header-band > .site-header{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;height:auto;padding-top:var(--header-top-space);row-gap:0;align-items:center}
.site-header-band .header-navigation{display:contents}
.site-header-band .brand{grid-row:1;grid-column:1;min-height:var(--header-brand-height);min-width:0}
.site-header-band .app-download-slot{grid-row:1;grid-column:2;justify-self:end}
.site-header-band #resource-nav.public-navigation{grid-row:2;grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:stretch;justify-content:flex-start;min-width:0;margin:0;padding-left:0;gap:0 clamp(22px,3.8vw,54px)}
.site-header-band #resource-nav > .nav-link,.site-header-band #resource-nav > .nav-group > summary{min-height:54px;font-size:16px;font-weight:600}
.site-header-band #resource-nav > .nav-link.active:after{bottom:0}
.site-header-band #resource-nav > .home-global-search{flex:1 1 260px;align-self:center;width:360px;min-width:0;max-width:420px;margin:0 0 0 auto;font-size:13px}
.site-header-band #home-global-search input{font:inherit;line-height:1.4;padding:8px 3px}
.site-header-band #home-global-search input::placeholder{color:var(--muted);opacity:1}
.site-header-band #home-global-search:focus-within{border-color:var(--blue);box-shadow:0 0 0 2px #3988ef20}
@media(max-width:900px){
  .site-header-band #resource-nav > .home-global-search{flex-basis:100%;width:100%;max-width:none;margin:10px 0 14px}
}
@media(max-width:650px){
  .site-header-band #resource-nav > .home-global-search{position:relative;grid-column:1/-1;width:100%;margin:14px 0;min-height:44px;background:#252b37}
  .site-header-band #home-global-search::before{content:"";position:absolute;inset:-16px -17px -15px;z-index:-1;border-top:1px solid var(--border);background:#151617;pointer-events:none}
  .site-header-band #home-global-search input{font-size:16px}
  .site-header-band #home-global-search button{min-height:34px;padding:8px 15px}
}

/* Explicit game platform, shared by update rows and ranking rows. */
.ns-platform-mark{display:block;flex:none;width:90px;height:64px;color:#eef1f5;opacity:.28;pointer-events:none;user-select:none;-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 72%);mask-image:linear-gradient(90deg,transparent 0%,#000 72%)}
.ranking-item .ranking-copy{min-width:0}
.ranking-item .ranking-side{display:flex;flex:0 0 90px;width:90px;flex-direction:column;align-items:center;justify-content:center;gap:2px;align-self:center;text-align:center}
.ranking-item .ranking-side>.ranking-platform-mark{width:90px;height:48px}
.ranking-item .ranking-count{display:block;font-size:16px;line-height:1.3;color:var(--blue);font-variant-numeric:tabular-nums}
.ranking-item .ranking-count>small{display:block;margin-top:2px;font-size:9px;line-height:1.3;white-space:nowrap}
.community-page .ranking-item>img{display:block;flex-shrink:0;width:160px;height:auto;object-fit:contain}
@media(max-width:700px){
  .community-page .ranking-item>img{width:96px}
}
@media(max-width:650px){
  .ranking-item .ranking-side{flex-basis:56px;width:56px}
  .ranking-item .ranking-side>.ranking-platform-mark{width:56px;height:40px}
  .ranking-item .ranking-count{font-size:14px}
  .ranking-item .ranking-count>small{font-size:8px}
}
.game-detail-aside .switch2-extraction-password{margin:0 0 12px;padding-bottom:12px;border-bottom:1px solid var(--border);font-size:13px;font-weight:600;line-height:1.6;text-align:center;color:#ffc857;overflow-wrap:anywhere}

/* Warehouse presentation only; keep the original form, category and pager. */
#home-layout.without-sidebar{grid-template-columns:minmax(0,1fr)}
#home-layout > #library > .library-title,.library-title{display:flex;align-items:baseline;gap:15px;margin:0 0 22px;min-width:0}
.library-title h1{font-size:27px;line-height:1.4;margin:0}
.library-title > span{font-size:11px;color:var(--muted);line-height:1.7}
#library > .library-toolbar{display:block}
#library > .library-toolbar .search-form{width:100%;max-width:none;min-width:0}
#library > .library-results-row{display:flex;justify-content:flex-end;align-items:center;gap:12px;min-width:0;margin:0 0 16px}
#library > .library-results-row > .sort-options{margin:0 0 0 auto;justify-content:flex-end;min-width:0;max-width:100%;flex-wrap:wrap}
#library > .library-results-row > .sort-options > button{white-space:nowrap}
#library > .download-strips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0 0 22px}
#library > .download-strips--single{grid-template-columns:minmax(0,1fr)}
#library .download-strip{display:flex;align-items:center;gap:15px;min-width:0;min-height:79px;border:1px solid #3c4652;border-radius:8px;padding:14px 19px;background:linear-gradient(110deg,#242c37,#1f2329)}
#library .download-strip:hover{border-color:#738dad}
#library .download-strip h2{font-size:16px;line-height:1.4;margin:0 0 5px}
#library .download-strip p{font-size:11px;line-height:1.7;color:#929eb1;margin:0}
#library .download-strip > div{min-width:0}
#library .strip-icon{display:block;width:40px;height:40px;flex-shrink:0;color:#a0bfeb}
#library .strip-icon svg{display:block;width:36px;height:36px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
#library .strip-arrow{margin-left:auto;padding-left:8px;color:#88a9d8;font-size:24px;flex-shrink:0}

/* New homepage: accepted artwork geometry and continuous text positioning. */
.ns-structure-home{--panel:var(--surface);--radius:12px;min-width:0}
.ns-structure-home .hero-shell{position:relative;container-type:inline-size;--hero-edge-mask:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.028) 4%,rgba(0,0,0,.104) 8%,rgba(0,0,0,.216) 12%,rgba(0,0,0,.352) 16%,rgba(0,0,0,.5) 20%,rgba(0,0,0,.648) 24%,rgba(0,0,0,.784) 28%,rgba(0,0,0,.896) 32%,rgba(0,0,0,.972) 36%,#000 40%,#000 100%)}
.ns-structure-home .hero-viewport{overflow:hidden;border:1px solid #40464e;border-radius:var(--radius);background:#19202a;touch-action:pan-y}
.ns-structure-home .hero-track{display:flex;transition:transform .44s cubic-bezier(.22,.65,.24,1)}
.ns-structure-home .hero-slide{position:relative;flex:0 0 100%;min-width:0;overflow:hidden;background:var(--hero-color,#1b2430)}
.ns-structure-home .hero-backdrop{display:block;position:absolute;inset:-25px;width:calc(100% + 50px);max-width:none;height:calc(100% + 50px);object-fit:cover;filter:blur(22px);opacity:.65;pointer-events:none;z-index:0}
.ns-structure-home .hero-slide:after{content:"";position:absolute;inset:0;pointer-events:none;z-index:1;background:linear-gradient(90deg,#0a1019e6 0%,#0a1019b0 38%,#0a10194d 76%,#0a101980)}
.ns-structure-home .hero-art{display:block;position:absolute;inset:0 0 0 auto;width:auto;max-width:none;height:100%;object-fit:contain;object-position:right center;opacity:1;z-index:2;-webkit-mask-image:var(--hero-edge-mask);mask-image:var(--hero-edge-mask)}
.ns-structure-home .hero-copy{position:relative;z-index:3;max-width:36%;padding:55px 0 64px 48px}
.ns-structure-home .hero-topline{display:flex;align-items:center;color:#c2d1e8}
.ns-structure-home .pill{display:inline-flex;align-items:center;gap:5px;max-width:100%;border:1px solid #ffffff29;border-radius:4px;padding:4px 8px;font-size:10px;color:#dde5ef;background:#242c3bba;white-space:nowrap;line-height:1.4}
.ns-structure-home .pill.platform-switch2{color:#ffd1b9;border-color:#bd795745;background:#583d313d}
.ns-structure-home .hero-copy h1{font-weight:650;text-wrap:balance}
.ns-structure-home .hero-english{color:#b6c0d1}
.ns-structure-home .hero-meta{display:flex;color:#acb8cb}
.ns-structure-home .hero-controls{position:absolute;display:flex;align-items:center;z-index:4}
.ns-structure-home .icon-button{display:grid;place-items:center;width:34px;height:34px;border:1px solid #444a55;background:#24282f;color:var(--text);border-radius:6px;font-size:21px;line-height:1;padding:0}
.ns-structure-home .hero-controls .icon-button{background:#151c29b8;border-color:#ffffff35}
.ns-structure-home .hero-counter{font-family:ui-monospace,Consolas,monospace;color:#c6cfdf;text-align:center}
.ns-structure-home .hero-dots{position:absolute;display:flex;gap:7px;z-index:4}
.ns-structure-home .hero-dots button{width:6px;height:6px;padding:0;outline-offset:5px;border-radius:6px;border:0;background:#ffffff40;transition:width .2s,background .2s}
.ns-structure-home .hero-dots button.active{width:24px;background:#d0dff4}
.ns-structure-home .section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:34px 0 18px;min-width:0}
.ns-structure-home .section-heading > div:first-child{min-width:0}
.ns-structure-home .section-heading h2{display:flex;align-items:center;gap:13px;font-size:22px;font-weight:650;line-height:1.4;letter-spacing:.2px;margin:0}
.ns-structure-home .section-heading h2 small{font-size:11px;font-weight:400;color:var(--muted);letter-spacing:0}
.ns-structure-home .section-subtitle{font-size:12px;color:var(--muted);margin-top:7px;line-height:1.7}
.ns-structure-home .section-action{display:flex;align-items:center;gap:8px;font-size:12px;color:#a3b5d0}
.ns-structure-home .section-action:hover{color:#cde0ff}
.ns-structure-home .home-panel{min-width:0}
.ns-structure-home .home-discovery{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:1fr;gap:26px;align-items:stretch;margin-top:30px}
.ns-structure-home .home-discovery > .home-panel{display:flex;flex-direction:column;align-self:stretch;padding:18px;border:1px solid var(--home-panel-border);border-radius:10px;background:var(--home-panel-background)}
.ns-structure-home .home-updates{--home-panel-background:var(--surface);--home-panel-border:var(--border)}
.ns-structure-home .home-ranking{--home-panel-background:#282321;--home-panel-border:#4d4038}
.ns-structure-home .home-collections{margin-top:34px}
.ns-structure-home .home-discovery > .home-panel .section-heading{min-height:0;margin:0 0 8px;padding-bottom:15px;border-bottom:1px solid var(--home-panel-border)}
.ns-structure-home .home-ranking .ranking-list{display:flex;flex:1;flex-direction:column;gap:0;min-width:0;border:0;border-radius:0;overflow:visible}
.ns-structure-home .home-ranking .ranking-item{display:grid;grid-template-columns:24px clamp(120px,28%,144px) minmax(0,1fr) 90px;align-items:center;gap:10px;min-width:0;min-height:88px;padding:11px 0;border:0;border-bottom:1px solid var(--border);border-radius:0;background:transparent}
.ns-structure-home .home-ranking .ranking-item{flex:1 0 auto}
.ns-structure-home .home-ranking .ranking-item:last-child{border-bottom:0}
.ns-structure-home .home-ranking .ranking-item:hover{background:#ffffff03}
.ns-structure-home .home-ranking .ranking-number{display:grid;place-items:center;width:24px;height:27px;border:1px solid #ffffff12;border-radius:5px;background:#ffffff06;color:var(--muted);font:650 13px/1.2 system-ui;font-variant-numeric:tabular-nums}
.ns-structure-home .home-ranking .ranking-item:nth-child(1) .ranking-number{color:#e4c789;background:#9a74351a;border-color:#b99b5a36}
.ns-structure-home .home-ranking .ranking-item:nth-child(2) .ranking-number{color:#c6d3e2;background:#8299b01a;border-color:#94a8be30}
.ns-structure-home .home-ranking .ranking-item:nth-child(3) .ranking-number{color:#d1ab94;background:#ab78561a;border-color:#af806136}
.ns-structure-home .home-ranking .ranking-item > img{display:block;width:100%;height:auto;object-fit:contain;border-radius:5px}
.ns-structure-home .home-ranking .ranking-item > div{display:flex;flex-direction:column;gap:3px;min-width:0}
.ns-structure-home .home-ranking .ranking-item strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;font-weight:600;line-height:1.42;overflow-wrap:anywhere}
.ns-structure-home .home-ranking .ranking-item > div > small{display:block;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;line-height:1.4;color:var(--muted)}
.ns-structure-home .home-ranking .ranking-item .game-category-badges--inline{display:flex;flex-wrap:wrap;gap:3px;margin:0;line-height:1}
.ns-structure-home .home-ranking .ranking-item .game-category-badge{padding:1px 3px;font-size:8px;line-height:1.2;font-weight:500;box-shadow:none}
.ns-structure-home .home-ranking .ranking-item > span{text-align:right;white-space:nowrap;font-size:16px;line-height:1.3;color:#aac4e7;font-variant-numeric:tabular-nums}
.ns-structure-home .home-ranking .ranking-item > span > small{margin-top:4px;font-size:9px;line-height:1.3;color:var(--muted)}
.ns-structure-home .home-updates .update-results{display:flex;flex:1;flex-direction:column;padding:0;border:0;border-radius:0;background:transparent}
.ns-structure-home .home-updates .update-day{display:contents}
.ns-structure-home .home-updates .update-day h2{flex:none;font-size:14px}
.ns-structure-home .home-updates .update-day:not(:first-child) h2{margin-top:18px}
.ns-structure-home .home-updates .update-row{position:relative;flex:1 0 auto;padding:0;gap:12px}
.ns-structure-home .home-updates .update-row:last-child{border-bottom:1px solid #2a2d32}
.ns-structure-home .home-updates .update-cover-link{position:relative;display:flex;align-items:center;align-self:stretch;flex:0 0 clamp(104px,28%,160px)}
.ns-structure-home .home-updates .update-row .update-cover-link img{position:static;display:block;width:100%;height:auto;border-radius:0;object-fit:contain}
.ns-structure-home .home-updates .update-row>div{position:relative;z-index:1;padding:13px 0}
.ns-structure-home .home-updates .update-row--platform>div{padding-right:102px}
.ns-structure-home .home-updates .update-platform-mark{position:absolute;right:0;top:50%;transform:translateY(-50%);width:90px;height:64px;max-height:calc(100% - 14px)}
.ns-structure-home .home-updates .update-game-name{font-size:13px;overflow-wrap:anywhere}
.ns-structure-home .home-updates .update-row p{font-size:11px;line-height:1.7}
.ns-structure-home .home-updates .update-tags{margin:5px 0;gap:6px;flex-wrap:wrap}
.ns-structure-home .home-updates .update-detail-link{display:none}
.ns-structure-home .collections-controls{display:flex;gap:8px;align-items:center}
.ns-structure-home .home-collections .collection-track{display:flex;flex-wrap:nowrap;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:#3d4655 transparent;overscroll-behavior-x:contain;padding-bottom:12px;scroll-behavior:smooth}
.ns-structure-home .home-collections .collection-card{display:flex;flex-direction:column;flex:0 0 calc((100% - 54px)/4);min-width:0;scroll-snap-align:start}
.ns-structure-home .home-collections .collection-art{position:relative;display:block;flex-shrink:0;width:100%;height:auto;aspect-ratio:16/10;padding:0;background:var(--raised);overflow:hidden}
.ns-structure-home .home-collections .sidebar-covers{position:absolute;inset:0;width:100%;height:100%;transform:scale(1.08)}
.ns-structure-home .home-collections .sidebar-covers.has-custom-cover{transform:none}
.ns-structure-home .home-collections .sidebar-covers.has-custom-cover > img{width:100%;height:100%;object-fit:cover;border:0;border-radius:0;box-shadow:none}
.ns-structure-home .home-collections .collection-card .collection-body{padding:13px 13px 14px;flex-shrink:0}
.ns-structure-home .home-collections .collection-body h3{font-size:14px;line-height:1.6;margin:0 0 8px}
.ns-structure-home .home-collections .collection-body p{font-size:11px;margin:0 0 8px;line-height:1.7}
.ns-structure-home .home-collections .collection-meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;font-size:10px;color:var(--muted)}
.ns-structure-home .home-collections .collection-meta > span{font-size:inherit;white-space:nowrap}

@media(min-width:901px){
  .ns-structure-home .hero-slide{height:33.75cqw;min-height:0}
  .ns-structure-home .hero-copy{position:absolute;left:4.4%;top:20%;width:32%;max-width:none;padding:0;display:flex;flex-direction:column;align-items:flex-start}
  .ns-structure-home .hero-topline{font-size:clamp(9.5px,.88cqw,12px);line-height:1.4;gap:clamp(7px,.8cqw,11px);letter-spacing:.04em;margin:0 0 clamp(12px,1.55cqw,21px)}
  .ns-structure-home .hero-topline .pill{font-size:clamp(8.5px,.74cqw,10px);line-height:1.35;padding:clamp(2px,.22cqw,3px) clamp(5px,.6cqw,8px)}
  .ns-structure-home .hero-copy h1{width:100%;font-size:clamp(22px,2.7cqw,36px);line-height:1.25;letter-spacing:-.02em;overflow-wrap:anywhere;margin:0 0 clamp(6px,.7cqw,10px)}
  .ns-structure-home .hero-english{width:100%;font-size:clamp(10px,1.04cqw,14px);line-height:1.45;overflow-wrap:anywhere;margin:0 0 clamp(10px,1.25cqw,17px)}
  .ns-structure-home .hero-meta{width:100%;font-size:clamp(9.5px,.86cqw,12px);line-height:1.5;min-height:1.5em;gap:clamp(8px,.95cqw,13px);flex-wrap:wrap;margin:0 0 clamp(12px,1.6cqw,22px)}
  .ns-structure-home .hero-copy .primary{font-size:clamp(10px,.95cqw,13px);line-height:1.4;gap:clamp(8px,.9cqw,12px);padding:clamp(8px,.8cqw,11px) clamp(15px,1.6cqw,22px);white-space:nowrap}
  .ns-structure-home .hero-dots{left:4.4%;bottom:5.5%}
  .ns-structure-home .hero-controls{right:2%;bottom:4.7%;gap:clamp(8px,.9cqw,12px)}
  .ns-structure-home .hero-controls .icon-button{width:clamp(28px,2.6cqw,34px);height:clamp(28px,2.6cqw,34px);font-size:clamp(18px,1.5cqw,20px)}
  .ns-structure-home .hero-counter{font-size:clamp(10px,.9cqw,12px);min-width:3.25em}
}
@media(min-width:1000px){
  .ns-structure-home .home-discovery{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:30px;align-items:stretch}
  .ns-structure-home .home-panel{display:flex;flex-direction:column}
  .ns-structure-home .home-panel .section-heading{min-height:52px;margin:0 0 17px;gap:10px}
  .ns-structure-home .home-panel .section-heading h2{font-size:21px;gap:9px}
  .ns-structure-home .home-panel .section-subtitle{font-size:10px}
  .ns-structure-home .home-panel .section-action{font-size:11px;white-space:nowrap}
}
@media(min-width:1000px) and (max-width:1150px){
  .ns-structure-home .home-discovery{gap:22px}
  .ns-structure-home .home-panel .section-heading h2{font-size:19px}
  .ns-structure-home .home-panel .section-subtitle{font-size:9px}
  .ns-structure-home .home-panel .section-action{font-size:10px}
}
@media(min-width:651px) and (max-width:999px){
  .ns-structure-home .home-collections .collection-card{flex-basis:calc((100% - 36px)/3)}
}
@media(max-width:900px){
  .site-header-band #resource-nav > .nav-link,.site-header-band #resource-nav > .nav-group > summary{font-size:14px;min-height:48px}
  .ns-structure-home .hero-slide{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;min-height:0}
  .ns-structure-home .hero-art{position:relative;inset:auto;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;object-position:center;margin:0;flex-shrink:0;-webkit-mask-image:none;mask-image:none}
  .ns-structure-home .hero-copy{max-width:none;width:100%;padding:clamp(18px,3.2cqw,26px) clamp(20px,4.4cqw,32px) clamp(58px,7cqw,66px)}
  .ns-structure-home .hero-topline{font-size:10px;line-height:1.4;margin:0 0 11px;gap:8px;letter-spacing:0}
  .ns-structure-home .hero-topline .pill{font-size:9px;padding:3px 6px}
  .ns-structure-home .hero-copy h1{font-size:clamp(23px,4.6cqw,30px);line-height:1.35;letter-spacing:-.5px;overflow-wrap:anywhere;margin:0 0 7px}
  .ns-structure-home .hero-english{font-size:11px;line-height:1.5;overflow-wrap:anywhere;margin:0 0 11px}
  .ns-structure-home .hero-meta{font-size:10px;line-height:1.5;min-height:18px;margin:0 0 16px;gap:10px;flex-wrap:wrap}
  .ns-structure-home .hero-copy .primary{font-size:11px;line-height:1.4;padding:9px 14px}
  .ns-structure-home .hero-dots{left:23px;bottom:19px;gap:6px}
  .ns-structure-home .hero-controls{right:14px;bottom:13px;gap:7px}
  .ns-structure-home .hero-controls .icon-button{width:29px;height:29px;font-size:18px}
  .ns-structure-home .hero-counter{font-size:10px;min-width:32px}
}
@media(max-width:700px){
  .site-header-band{--header-top-space:12px}
  .site-header-band::before{opacity:.09}
}
@media(max-width:650px){
  .site-header-band{--header-brand-height:66px}
  .site-header-band #resource-nav.public-navigation{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;width:100%;padding:0}
  .site-header-band #resource-nav > .nav-link,.site-header-band #resource-nav > .nav-group{grid-row:auto;grid-column:auto;min-width:0}
  .site-header-band #resource-nav > .nav-link,.site-header-band #resource-nav > .nav-group > summary{justify-content:center;text-align:center;min-height:46px;font-size:13px;gap:4px}
  .site-header-band #resource-nav > .nav-link:nth-child(-n+3){border-bottom:1px solid #ffffff08}
  .site-header-band #resource-nav > .nav-link.active:after{left:17%;right:17%;bottom:0}
  .site-header-band #resource-nav .nav-chevron{position:static}
  .library-title{gap:10px;margin-bottom:17px}
  .library-title h1{font-size:23px}
  .library-title > span{font-size:10px}
  #library > .library-toolbar{margin-bottom:18px}
  #library > .download-strips{grid-template-columns:minmax(0,1fr);gap:9px;margin-bottom:16px}
  #library .download-strip{padding:12px 15px;min-height:69px;gap:12px}
  #library .download-strip h2{font-size:14px;margin-bottom:4px}
  #library .download-strip p{font-size:10px}
  #library .strip-icon{width:34px;height:34px}
  #library .strip-icon svg{width:31px;height:31px}
  #library .strip-arrow{font-size:19px}
  #library > .library-results-row{margin-bottom:12px;gap:8px}
  #library > .library-results-row .sort-option{font-size:10px;padding:7px 10px;min-height:30px}
  .ns-structure-home .section-heading{margin:27px 0 15px;gap:9px}
  .ns-structure-home .section-heading h2{font-size:19px;gap:8px}
  .ns-structure-home .section-heading h2 small{font-size:10px}
  .ns-structure-home .section-subtitle{font-size:10px}
  .ns-structure-home .section-action{font-size:10px;gap:3px}
  .ns-structure-home .home-updates .update-cover-link{flex-basis:clamp(88px,31%,112px)}
  .ns-structure-home .home-updates .update-row--platform>div{padding-right:64px}
  .ns-structure-home .home-updates .update-platform-mark{width:56px;height:45px}
  .ns-structure-home .home-collections .collection-track{gap:12px}
  .ns-structure-home .home-collections .collection-card{flex-basis:76%}
  .ns-structure-home .home-discovery > .home-panel{padding:14px}
  .ns-structure-home .home-discovery > .home-panel .section-heading{padding-bottom:12px}
  .ns-structure-home .home-ranking .ranking-item{grid-template-columns:20px 96px minmax(0,1fr) 56px;gap:8px;min-height:82px;padding:10px 0}
  .ns-structure-home .home-ranking .ranking-number{width:20px;height:24px;font-size:11px}
  .ns-structure-home .home-ranking .ranking-item > img{width:100%;height:auto}
  .ns-structure-home .home-ranking .ranking-item strong{font-size:12px}
  .ns-structure-home .home-ranking .ranking-item > div > small{font-size:9px}
  .ns-structure-home .home-ranking .ranking-item > span{font-size:14px}
  .ns-structure-home .home-ranking .ranking-item > span > small{font-size:8px}
}
@media(max-width:360px){
  .ns-structure-home .home-ranking .ranking-item,.community-page .ranking-item{display:grid;grid-template-columns:20px 88px minmax(0,1fr);column-gap:8px;row-gap:6px;align-content:center}
  .ns-structure-home .home-ranking .ranking-number,.community-page .ranking-number{grid-column:1;grid-row:1 / span 2;width:20px}
  .ns-structure-home .home-ranking .ranking-item>img,.community-page .ranking-item>img{grid-column:2;grid-row:1 / span 2}
  .ns-structure-home .home-ranking .ranking-copy,.community-page .ranking-copy{grid-column:3;grid-row:1}
  .ns-structure-home .home-ranking .ranking-side,.community-page .ranking-side{grid-column:3;grid-row:2;flex-direction:row;justify-content:flex-start;gap:8px;width:100%}
  .community-page .ranking-item>img{width:88px}
}
@media(prefers-reduced-motion:reduce){
  .ns-structure-home .hero-track,.ns-structure-home .hero-dots button{transition:none}
  .ns-structure-home .home-collections .collection-track{scroll-behavior:auto}
}


/* LOCAL PREVIEW ONLY. Single-column panels must keep their natural heights. */
@media(max-width:999px){
 .ns-structure-home .home-discovery{grid-auto-rows:auto;align-items:start}
 .ns-structure-home .home-ranking .ranking-list{flex:0 0 auto}
 .ns-structure-home .home-ranking .ranking-item,.ns-structure-home .home-updates .update-row{flex:0 0 auto}
}
@media(max-width:650px){
 .ns-structure-home .home-discovery{gap:18px;margin-top:0}
 .ns-structure-home .home-discovery>.home-panel{padding:14px}
 .ns-structure-home .home-updates .update-day h2{margin:4px 0 0;padding:9px 0;font-size:13px}
 .ns-structure-home .home-updates .update-row{display:grid;grid-template-columns:92px minmax(0,1fr);grid-template-rows:auto auto;align-items:start;gap:6px 12px;padding:14px 0;min-height:0}
 .ns-structure-home .home-updates .update-cover-link{grid-column:1;grid-row:1 / span 2;display:block;align-self:start;width:92px;min-width:0;margin-top:2px}
 .ns-structure-home .home-updates .update-row .update-cover-link img{width:100%;height:auto;max-height:80px;object-fit:contain;object-position:left top;border-radius:5px}
 .ns-structure-home .home-updates .update-row>div{display:contents;padding:0}
 .ns-structure-home .home-updates .update-game-name{grid-column:2;grid-row:1;min-width:0;padding-right:31px;font-size:14px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
 .ns-structure-home .home-updates .update-tags{grid-column:2;grid-row:2;align-self:start;min-width:0;margin:0;padding-right:0;gap:5px}
 .ns-structure-home .home-updates .update-tags .badge{font-size:9px;padding:3px 5px}
 .ns-structure-home .home-updates .update-version{font-size:10px;overflow-wrap:anywhere}
 .ns-structure-home .home-updates .update-row p{grid-column:1 / -1;margin:3px 0 0;font-size:13px;line-height:1.75;overflow-wrap:anywhere;color:var(--muted)}
 .ns-structure-home .home-updates .update-platform-mark{position:absolute;top:16px;right:0;transform:none;width:27px;height:22px;max-height:none;opacity:.45}
 .ns-structure-home .home-ranking .ranking-item{display:grid;grid-template-columns:20px 84px minmax(0,1fr);grid-template-rows:auto auto;align-content:center;align-items:center;column-gap:9px;row-gap:4px;min-height:88px;padding:12px 0}
 .ns-structure-home .home-ranking .ranking-number{grid-column:1;grid-row:1 / span 2;width:20px;height:24px}
 .ns-structure-home .home-ranking .ranking-item>img{grid-column:2;grid-row:1 / span 2;width:84px;height:auto;max-height:70px;object-fit:contain}
 .ns-structure-home .home-ranking .ranking-copy{grid-column:3;grid-row:1;align-self:end;gap:3px}
 .ns-structure-home .home-ranking .ranking-item strong{font-size:13px;line-height:1.5}
 .ns-structure-home .home-ranking .ranking-item>div>small{font-size:10px;line-height:1.5}
 .ns-structure-home .home-ranking .ranking-side{grid-column:3;grid-row:2;display:flex;flex-direction:row;align-items:center;align-self:start;justify-content:flex-start;gap:7px;width:auto;min-width:0;text-align:left}
 .ns-structure-home .home-ranking .ranking-side>.ranking-platform-mark{width:25px;height:21px;opacity:.45}
 .ns-structure-home .home-ranking .ranking-count{display:flex;align-items:baseline;gap:4px;font-size:13px;line-height:1.4}
 .ns-structure-home .home-ranking .ranking-count>small{display:inline;margin:0;font-size:9px}
}


/* Local preview revision: original right-hand gradient marks become backgrounds. */
@media(max-width:650px){
 .ns-structure-home .home-updates .update-row{isolation:isolate}
 .ns-structure-home .home-updates .update-game-name{padding-right:0}
 .ns-structure-home .home-updates .update-cover-link,
 .ns-structure-home .home-updates .update-game-name,
 .ns-structure-home .home-updates .update-tags,
 .ns-structure-home .home-updates .update-row p{position:relative;z-index:1}
 .ns-structure-home .home-updates .update-platform-mark{position:absolute;right:0;top:50%;transform:translateY(-50%);width:128px;height:96px;max-height:none;opacity:.22;z-index:0;pointer-events:none}
 .ns-structure-home .home-ranking .ranking-item{position:relative;isolation:isolate}
 .ns-structure-home .home-ranking .ranking-number,
 .ns-structure-home .home-ranking .ranking-item>img,
 .ns-structure-home .home-ranking .ranking-copy,
 .ns-structure-home .home-ranking .ranking-count{position:relative;z-index:1}
 .ns-structure-home .home-ranking .ranking-side{position:static}
 .ns-structure-home .home-ranking .ranking-side>.ranking-platform-mark{position:absolute;right:0;top:50%;transform:translateY(-50%);width:128px;height:96px;opacity:.22;z-index:0;pointer-events:none}
}

/* Local preview: simpler panel headings and larger navigation links. */
@media(max-width:650px){
 .ns-structure-home .home-discovery > .home-panel .section-heading .section-action{font-size:14px;font-weight:500;line-height:1.5;white-space:nowrap}
}

/* Local preview: emphasize each update date as a clear group marker. */
@media(max-width:650px){
 .ns-structure-home .home-updates .update-day h2{display:flex;align-items:center;gap:12px;min-width:0;margin:10px 0 2px;padding:9px 11px;border:0;border-left:3px solid #79a9f2;border-radius:5px;background:rgba(105,155,235,.10);color:#e8f0ff;font-size:16px;font-weight:700;line-height:1.5;letter-spacing:.25px;font-variant-numeric:tabular-nums}
 .ns-structure-home .home-updates .update-day h2 small{flex:none;margin:0 0 0 auto;font-size:11px;font-weight:400;line-height:1.5;letter-spacing:0;color:#9eacc1}
}

/* Local preview: readable update-type and game-category badges. */
@media(max-width:650px){
 .ns-structure-home .home-updates .update-tags .badge,
 .ns-structure-home .home-ranking .ranking-item .game-category-badge{display:inline-flex;align-items:center;font-size:12px;font-weight:600;line-height:1.4;padding:4px 7px}
}

/* Local preview: each row must contain the full logo with space to the dividers. */
@media(max-width:650px){
 .ns-structure-home .home-discovery{--home-platform-logo-height:96px;--home-platform-logo-gap:12px}
 .ns-structure-home .home-updates .update-row,
 .ns-structure-home .home-ranking .ranking-item{min-height:calc(var(--home-platform-logo-height) + var(--home-platform-logo-gap) + var(--home-platform-logo-gap) + 1px)}
 .ns-structure-home .home-updates .update-platform-mark,
 .ns-structure-home .home-ranking .ranking-side>.ranking-platform-mark{height:var(--home-platform-logo-height)}
}

/* Local preview: center the cover within the two grid rows for title and tags. */
@media(max-width:650px){
 .ns-structure-home .home-updates .update-cover-link{align-self:center;margin-top:0}
 .ns-structure-home .home-updates .update-row .update-cover-link img{display:block}
}

/* The approved preview omits these redundant subtitles on mobile. */
@media(max-width:650px){
 .ns-structure-home .home-discovery>.home-panel>.section-heading .section-subtitle{display:none}
}

/* Date strips already separate the groups; keep separators between games. */
@media(max-width:650px){
 .ns-structure-home .home-updates .update-day>h2+.update-row{border-top:0}
}


/* Desktop proposal: shared readable headings, date strips and badges. */
@media(min-width:651px){
 .ns-structure-home .home-discovery>.home-panel>.section-heading .section-subtitle{display:none}
 .ns-structure-home .home-discovery>.home-panel>.section-heading .section-action{font-size:14px;font-weight:500;line-height:1.5;white-space:nowrap}
 .ns-structure-home .home-updates .update-day h2{display:flex;align-items:center;gap:12px;min-width:0;margin:10px 0 2px;padding:9px 11px;border:0;border-left:3px solid #79a9f2;border-radius:5px;background:rgba(105,155,235,.10);color:#e8f0ff;font-size:16px;font-weight:700;line-height:1.5;letter-spacing:.25px;font-variant-numeric:tabular-nums}
 .ns-structure-home .home-updates .update-day h2 small{flex:none;margin:0 0 0 auto;font-size:11px;font-weight:400;line-height:1.5;letter-spacing:0;color:#9eacc1}
 .ns-structure-home .home-updates .update-tags .badge,
 .ns-structure-home .home-ranking .ranking-item .game-category-badge{display:inline-flex;align-items:center;font-size:12px;font-weight:600;line-height:1.4;padding:4px 7px}
 .ns-structure-home .home-updates .update-day>h2+.update-row{border-top:0}
}

/* Desktop proposal: full platform artwork as a background with clear row spacing. */
@media(min-width:651px){
 .ns-structure-home .home-discovery{--home-platform-logo-height:96px;--home-platform-logo-gap:12px}
 .ns-structure-home .home-updates .update-row,
 .ns-structure-home .home-ranking .ranking-item{position:relative;isolation:isolate;min-height:calc(var(--home-platform-logo-height) + var(--home-platform-logo-gap) + var(--home-platform-logo-gap) + 1px)}
 .ns-structure-home .home-updates .update-row--platform>div{padding-right:0}
 .ns-structure-home .home-updates .update-cover-link,
 .ns-structure-home .home-updates .update-row>div,
 .ns-structure-home .home-ranking .ranking-number,
 .ns-structure-home .home-ranking .ranking-item>img,
 .ns-structure-home .home-ranking .ranking-copy,
 .ns-structure-home .home-ranking .ranking-count{position:relative;z-index:1}
 .ns-structure-home .home-updates .update-platform-mark,
 .ns-structure-home .home-ranking .ranking-side>.ranking-platform-mark{position:absolute;right:0;top:50%;transform:translateY(-50%);width:128px;height:var(--home-platform-logo-height);max-height:none;opacity:.22;z-index:0;pointer-events:none}
 .ns-structure-home .home-ranking .ranking-item{grid-template-columns:24px clamp(120px,28%,144px) minmax(0,1fr);grid-template-rows:auto auto;align-content:center;column-gap:10px;row-gap:4px}
 .ns-structure-home .home-ranking .ranking-number{grid-column:1;grid-row:1 / span 2}
 .ns-structure-home .home-ranking .ranking-item>img{grid-column:2;grid-row:1 / span 2}
 .ns-structure-home .home-ranking .ranking-copy{grid-column:3;grid-row:1;align-self:end}
 .ns-structure-home .home-ranking .ranking-side{position:static;grid-column:3;grid-row:2;align-self:start;display:flex;flex-direction:row;justify-content:flex-start;width:auto;min-width:0;gap:0;text-align:left}
 .ns-structure-home .home-ranking .ranking-count{display:flex;align-items:baseline;gap:5px;font-size:14px;line-height:1.4}
 .ns-structure-home .home-ranking .ranking-count>small{display:inline;margin:0;font-size:10px}
}


/* Shared ranking proposal: larger artwork with the rank over its left edge. */
.ns-structure-home .home-ranking{--ranking-logo-gap:6px}
.ns-structure-home .home-ranking .ranking-item{grid-template-columns:clamp(156px,32%,184px) minmax(0,1fr);grid-template-rows:auto auto;column-gap:12px;row-gap:4px;padding:6px 0;min-height:calc(var(--home-platform-logo-height,96px) + var(--ranking-logo-gap) + var(--ranking-logo-gap) + 1px)}
.ns-structure-home .home-ranking .ranking-cover{position:relative;z-index:1;display:block;grid-column:1;grid-row:1 / span 2;align-self:center;width:100%;min-width:0;overflow:hidden;border-radius:5px;line-height:0}
.ns-structure-home .home-ranking .ranking-cover>img{position:static;display:block;width:100%;height:auto;max-height:none;object-fit:contain;border-radius:0}
.ns-structure-home .home-ranking .ranking-cover>.ranking-number{position:absolute;left:0;top:0;bottom:0;z-index:2;display:grid;place-items:center;width:24px;height:auto;margin:0;border:0;border-radius:0;background:#20252deb;color:#92989f;font:650 16px/1.2 system-ui;font-variant-numeric:tabular-nums;text-shadow:0 1px 2px #0008}
.ns-structure-home .home-ranking .ranking-item:nth-child(1) .ranking-number{background:#655025eb;color:#e4c789}
.ns-structure-home .home-ranking .ranking-item:nth-child(2) .ranking-number{background:#465464eb;color:#c6d3e2}
.ns-structure-home .home-ranking .ranking-item:nth-child(3) .ranking-number{background:#644635eb;color:#d1ab94}
.ns-structure-home .home-ranking .ranking-copy{grid-column:2;grid-row:1;align-self:end}
.ns-structure-home .home-ranking .ranking-side{grid-column:2;grid-row:2;align-self:start}
.ns-structure-home .home-ranking .ranking-side>.ranking-platform-mark{height:calc(100% - var(--ranking-logo-gap) - var(--ranking-logo-gap));width:auto;aspect-ratio:4 / 3;max-height:none;max-width:none}
@media(max-width:650px){
 .ns-structure-home .home-ranking .ranking-item{grid-template-columns:108px minmax(0,1fr);column-gap:12px}
 .ns-structure-home .home-ranking .ranking-cover>.ranking-number{width:19px;font-size:13px}
}

/* Independent update/ranking pages share the existing platform artwork. */
.updates-page .update-row{position:relative;isolation:isolate}
.updates-page .update-row--platform{min-height:121px}
.updates-page .update-row>a,.updates-page .update-row>div{position:relative;z-index:1}
.updates-page .update-row--platform>div{padding-right:0}
.updates-page .update-platform-mark{position:absolute;right:0;top:50%;transform:translateY(-50%);width:128px;height:96px;max-height:none;opacity:.22;z-index:0;pointer-events:none}

.community-page .ranking-item{position:relative;isolation:isolate}
.community-page .ranking-number,.community-page .ranking-item>img,.community-page .ranking-copy,.community-page .ranking-count{position:relative;z-index:1}
.community-page .ranking-copy{padding-right:0}
.community-page .ranking-side{display:grid;flex:0 0 auto;width:auto;grid-template-columns:max-content 128px;column-gap:18px;align-items:center;align-self:center;text-align:right}
.community-page .ranking-side::before{content:"";grid-column:2;grid-row:1;justify-self:start;align-self:center;width:1px;height:64px;background:var(--border);transform:translateX(-9px)}
.community-page .ranking-side>.ranking-platform-mark{grid-column:2;grid-row:1;width:128px;height:96px;max-height:none;opacity:.22}
.community-page .ranking-count{grid-column:1;grid-row:1;display:flex;align-items:baseline;justify-content:flex-end;gap:5px;min-width:76px;font-size:18px;line-height:1.4;font-variant-numeric:tabular-nums}
.community-page .ranking-count>small{display:inline;margin:0;font-size:11px;line-height:1.4;white-space:nowrap}

@media(max-width:650px){
 .ns-structure-home .hero-shell{margin-bottom:18px}
 .community-page .ranking-item{display:grid;grid-template-columns:20px 96px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;column-gap:10px;row-gap:5px;min-height:121px;padding:14px 12px}
 .community-page .ranking-number{grid-column:1;grid-row:1 / span 2;width:20px}
 .community-page .ranking-item>img{grid-column:2;grid-row:1 / span 2;width:96px;height:auto;object-fit:contain}
 .community-page .ranking-copy{grid-column:3;grid-row:1;align-self:end;min-width:0;padding-right:0}
 .community-page .ranking-side{display:contents}
 .community-page .ranking-side::before{display:none}
 .community-page .ranking-side>.ranking-platform-mark{position:absolute;right:12px;top:50%;transform:translateY(-50%);width:128px;height:96px;opacity:.22;z-index:0;pointer-events:none}
 .community-page .ranking-count{grid-column:3;grid-row:2;align-self:start;justify-self:start;justify-content:flex-start;min-width:0;min-height:0;padding:0;border-right:0;font-size:14px;line-height:1.4;text-align:left}
 .community-page .ranking-count>small{display:inline;margin:0;font-size:10px}
}
