/* NAGAYAMA ☆LAB hub pages (games / apps / world figures) — one-screen layout on the top page's shell (2026-11-11). */
.v-hub{grid-template-rows:auto auto minmax(0,1fr);padding:clamp(8px,2.2cqh,20px) max(16px,calc((100cqw - 1240px)/2)) clamp(8px,2cqh,18px);gap:clamp(6px,1.6cqh,14px)}
.v-hub:has(.hub-note){grid-template-rows:auto auto minmax(0,1fr) auto}
.hub-bar{display:flex;align-items:center;gap:10px;min-width:0}
.hub-t{flex:1;min-width:0;margin:0;font-weight:900;line-height:1.2;font-size:clamp(20px,min(2.8cqw,5.6cqh),34px);display:flex;flex-wrap:wrap;align-items:baseline;gap:0 14px}
.hub-t small{flex-basis:100%;font-size:clamp(9.5px,1.9cqh,11.5px);letter-spacing:.24em;color:var(--gold);font-weight:900}
.hub-t em{font-style:normal;font-size:clamp(12px,2.4cqh,15px);color:var(--mute);font-weight:800}
.hub-info{flex:none;display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 14px;border-radius:999px;border:1.5px solid rgba(233,196,106,.6);background:rgba(233,196,106,.1);color:var(--gold2);font-family:inherit;font-weight:900;font-size:13.5px;cursor:pointer;white-space:nowrap}
.hub-info:hover{background:rgba(233,196,106,.25)}
.hub-chips{display:flex;flex-wrap:wrap;gap:6px;min-width:0;max-height:84px;overflow:hidden}
.hub-chips button{height:36px;padding:0 15px;border-radius:999px;border:1px solid var(--line);background:#ffffff;color:#43586e;font-family:inherit;font-weight:800;font-size:13.5px;cursor:pointer;white-space:nowrap}
.hub-chips button:hover{background:#e3f1fb}
.hub-chips button[aria-pressed="true"]{color:#1c1403;background:linear-gradient(180deg,#fff3c4,#e9c46a);border-color:#fff1c1}
.hub-q{flex:1 1 180px;min-width:0;max-width:340px;height:36px;border-radius:999px;border:1px solid var(--line);background:rgba(255,255,255,.07);color:#fff;font-family:inherit;font-size:16px;padding:0 14px;outline-offset:2px;margin-left:auto}
.hub-q::placeholder{color:#9aa2c8;font-size:13.5px}
.hub-grid .card{position:relative}
.hub-grid .card .badge{position:absolute;left:8px;top:8px;z-index:2;background:#e5173f;color:#fff;font-size:10.5px;font-weight:900;letter-spacing:.1em;border-radius:6px;padding:2px 8px}
.hub-grid .card .tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:4px;overflow:hidden;max-height:1.75em}
.hub-grid .card .tags i{font-style:normal;font-size:10.5px;font-weight:900;color:var(--gold2);border:1px solid rgba(233,196,106,.5);border-radius:999px;padding:1px 8px;white-space:nowrap}
.hub-grid .card .play{display:inline-block;margin-top:6px;font-size:13px;font-weight:900;color:#1c1403;background:linear-gradient(180deg,#fff3c4,#e9c46a);border-radius:999px;padding:4px 14px}
.hub-grid .card .play{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:top}
.hub-grid .card b{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.3}
.hub-grid .card.more{align-items:center;justify-content:center;text-align:center;border-style:dashed;color:var(--gold2);padding:10px}
.hub-grid .card.more img{flex:0 1 auto;width:auto;max-width:60%;max-height:55%;object-fit:contain}
.hub-grid .card.more b{white-space:normal;font-size:14px}
.view .card b img.nlab-flag,.nlab-flag{display:inline-block;flex:none;width:auto;min-height:0;height:.92em;aspect-ratio:auto;vertical-align:-.08em;margin:0 .32em 0 0;border-radius:2px;object-fit:contain}
.hub-empty{margin:0;align-self:center;justify-self:center;text-align:center;color:var(--mute);font-weight:800;grid-row:3;grid-column:1}
.hub-grid{grid-row:3;grid-column:1}
.hub-note{margin:0;font-size:11.5px;line-height:1.5;color:var(--mute);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.dock a{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;height:42px;padding:0 22px;border-radius:999px;border:1px solid var(--line);background:#f2f8fd;color:#43586e;font-weight:900;font-size:14px;white-space:nowrap;text-decoration:none;transition:background .15s,color .15s}
.dock a .i{font-size:18px;line-height:1}
.dock a:hover{background:#e3f1fb;color:var(--ink)}
.dock a[aria-current="page"]{color:#1c1403;background:linear-gradient(180deg,#fff3c4,#e9c46a);border-color:#fff1c1;box-shadow:0 0 18px rgba(233,196,106,.35)}
.hc-nav a[aria-current="page"]{color:#fff;background:rgba(255,255,255,.1)}
@container stage (max-height:520px){.hub-grid .card small{display:none}.hub-t small{display:none}}
@container stage (max-height:400px){.hub-grid .card .tags,.hub-grid .card .play,.hub-t em{display:none}.hub-chips button,.hub-q,.hub-info{height:30px}.hub-chips{max-height:30px}}

/* info sheet */
dialog.sheet{border:0;padding:0;border-radius:22px;background:#ffffff;color:var(--ink);width:min(94vw,620px);height:min(84vh,560px);height:min(84dvh,560px);max-width:none;max-height:none;box-shadow:0 30px 90px rgba(31,64,104,.25),0 0 0 1px rgba(29,42,56,.12);overflow:hidden}
dialog.sheet[open]{display:grid;grid-template-rows:auto minmax(0,1fr)}
dialog.sheet::backdrop{background:rgba(20,40,70,.45);backdrop-filter:blur(3px)}
.sheet-h{display:flex;align-items:center;gap:10px;padding:10px 12px 10px 18px;border-bottom:1px solid var(--line)}
.sheet-h b{flex:1;min-width:0;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sheet-h [data-close]{flex:none;width:38px;height:38px;border-radius:50%;border:1px solid var(--line);background:rgba(255,255,255,.06);color:#fff;font-size:15px;cursor:pointer}
.sheet-b{padding:16px 18px 18px;gap:0}
.sheet-b>section{min-height:0;overflow:auto;display:flex;flex-direction:column;justify-content:center;gap:10px;scrollbar-width:thin}
.sheet-b h2{margin:0;font-size:clamp(17px,4.6vw,21px);line-height:1.4;color:var(--gold2)}
.sheet-b p{margin:0;font-size:14.5px;line-height:1.75;color:#d5daf2}
.sheet-b p b{color:#fff}
.nlab-discovery-actions,.nlab-growth-actions{display:flex;flex-wrap:wrap;gap:8px}
.sheet-b a.nlab-discovery-link,.sheet-b .nlab-growth-actions a{display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border-radius:999px;border:1.5px solid rgba(233,196,106,.6);color:var(--gold2);font-weight:900;font-size:13.5px;text-decoration:none}
.sheet-b a.nlab-discovery-link.primary,.sheet-b .nlab-growth-actions a.primary{background:linear-gradient(180deg,#ff8fc4,#ff4f9f);color:#fff;border-color:#fff}
.sheet-btns{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.sheet-btns button{min-height:46px;border-radius:999px;font-family:inherit;font-weight:900;font-size:14.5px;cursor:pointer;border:1.5px solid rgba(255,255,255,.35);background:rgba(255,255,255,.06);color:#fff}
.sheet-btns button:first-child{background:#fff;color:#0b1030;border-color:#fff}
.sheet-b form.find{display:flex;gap:6px;margin:0;background:rgba(255,255,255,.07);border:1px solid var(--line);border-radius:999px;padding:4px 4px 4px 16px}
.sheet-b form.find input{flex:1;min-width:0;background:none;border:0;color:#fff;font-size:16px;font-family:inherit;outline:none}
.sheet-b form.find button{border:0;border-radius:999px;background:var(--gold);color:#1c1403;font-weight:900;padding:0 18px;min-height:38px;cursor:pointer;font-family:inherit}
.nlab-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.sheet-links{display:flex;flex-wrap:wrap;gap:6px}
.sheet-links a{font-size:13px;color:#d5daf2;text-decoration:none;border:1px solid var(--line);border-radius:999px;padding:5px 12px;background:rgba(255,255,255,.04)}
.sheet .hc-social{flex-wrap:wrap}.sheet .hc-social a{font-size:13px;padding:5px 12px;text-decoration:none}
.sheet-c{font-size:12px!important;color:var(--mute)!important}

@container stage (orientation:portrait){
 .v-hub{padding:10px 12px;gap:8px}
 .hub-t{font-size:clamp(19px,6cqw,26px)}
 .hub-t em{flex-basis:100%;font-size:11.5px}
 .hub-info{height:34px;padding:0 11px;font-size:12.5px}
 .hub-info span{display:none}
 .hub-chips button{height:32px;padding:0 11px;font-size:12.5px}
 .hub-chips{max-height:70px}
 .hub-q{display:none}
 .hub-grid .card small{display:none}
 .hub-grid .card .play{font-size:11.5px;padding:3px 10px;margin-top:4px}
 .hub-grid .card .tags i{font-size:9.5px;padding:0 6px}
 body[data-page="games"] .hub-grid{--pg-min-w:150!important;--pg-min-h:150!important}
 body[data-page="world-figures"] .hub-grid{--pg-min-w:104!important;--pg-min-h:124!important;gap:8px}
 body[data-page="apps"] .hub-grid{--pg-min-w:150!important;--pg-min-h:170!important}
 body[data-page="apps"] .hub-grid .card small{display:-webkit-box;-webkit-line-clamp:3;font-size:11.5px}
}
@container stage (orientation:portrait) and (min-width:600px){
 .v-hub{padding:18px 22px;gap:12px}
 .hub-t{font-size:34px}.hub-t em{flex-basis:auto;font-size:15px}
 .hub-info{height:42px;font-size:15px}.hub-info span{display:inline}
 .hub-chips button{height:40px;font-size:15px;padding:0 16px}.hub-chips{max-height:90px}
 .hub-q{display:block;flex:1 1 200px;max-width:340px;height:40px;margin-left:auto}
 .hub-grid .card small{display:-webkit-box}
 body[data-page="games"] .hub-grid{--pg-min-w:230!important;--pg-min-h:230!important}
 body[data-page="world-figures"] .hub-grid{--pg-min-w:170!important;--pg-min-h:200!important;gap:12px}
 body[data-page="apps"] .hub-grid{--pg-min-w:300!important;--pg-min-h:300!important}
}
@media (max-width:899px){
 .dock a{flex-direction:column;gap:0;height:48px;padding:0 2px;border:0;background:none;border-radius:13px;font-size:10.5px;line-height:1.25;min-width:0}
 .dock a .i{font-size:19px}
 .dock a span:not(.i){max-width:100%;overflow:hidden;text-overflow:ellipsis}
}
@media (max-height:430px){.dock a{height:36px;flex-direction:row;gap:6px;font-size:12px}}
