/* Portal navigation, shop and author pages. */
body:not(.game-page):not(.embedded-game) .header {
 position:sticky; top:0; z-index:110; display:grid; grid-template-columns:minmax(0,1fr) auto;
 align-items:center; gap:12px 16px; padding:18px 0 0; min-height:0; background:#fff;
}
.header > .brand { grid-column:1; grid-row:1; justify-self:start; }
.header > .follow-link { grid-column:2; grid-row:1; }
.header > .nav { grid-column:1 / -1; grid-row:2; width:100%; display:flex; align-items:center; justify-content:flex-start; flex-wrap:wrap; gap:4px 24px; padding:0 0 8px; }
.header .nav > a { padding:10px 0; border-bottom:3px solid transparent; font-size:15px; font-weight:700; white-space:nowrap; text-decoration:none; }
.header .nav > a[aria-current="page"] { border-bottom-color:#30343b; }
.header .nav > a:hover { border-bottom-color:#aaa; }
.header .nav #ksk-language-control { margin-left:auto; }
.follow-link { display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:8px 14px; border:1px solid #30343b; border-radius:6px; background:#30343b; color:#fff; font:700 14px/1.4 Arial,"Hiragino Kaku Gothic ProN",Meiryo,sans-serif; text-decoration:none; }
.follow-link:hover { background:#515761; }
.catalog-sort { display:flex; align-items:center; justify-content:flex-end; gap:10px; margin:0 0 18px; font-size:14px; }
.catalog-sort select { max-width:100%; min-height:44px; padding:9px 32px 9px 12px; border:1px solid #b7bbc0; border-radius:6px; background:#fff; color:#30343b; font:inherit; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.shop-heading,.profile-heading { padding:32px 0 24px; }
.shop-heading h1,.profile-heading h1 { font-size:27px; line-height:1.5; margin:0 0 12px; }
.shop-heading p,.profile-heading p { margin:0; color:#626870; }
.board-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px; }
.board-card { display:flex; flex-direction:column; border:1px solid #e4e5e7; border-radius:8px; overflow:hidden; }
.board-image { display:block; aspect-ratio:1; background:#f6f6f4; }
.board-image img { display:block; width:100%; height:100%; object-fit:contain; }
.board-info { padding:22px; display:flex; flex-direction:column; flex:1; align-items:flex-start; }
.board-info h2 { margin:0 0 8px; font-size:23px; line-height:1.5; }
.design-credit { margin:0 0 12px; padding:5px 9px; border-radius:4px; background:#f0f2f2; font-size:14px; font-weight:700; }
.board-description { margin:0 0 20px; color:#626870; font-size:15px; }
.purchase-link { display:block; width:100%; margin-top:auto; padding:12px 16px; text-align:center; border:1px solid #30343b; border-radius:5px; color:#fff; background:#30343b; font-weight:700; }
.purchase-link:hover { background:#515761; }
.shop-note { margin:22px 0; color:#626870; font-size:13px; }
.author-profile { max-width:740px; padding:20px 0 40px; }
.author-intro { display:flex; gap:24px; align-items:center; margin-bottom:30px; }
.author-intro img { width:100px; height:100px; object-fit:contain; }
.author-intro h2 { font-size:24px; margin:0 0 6px; }
.author-intro p { margin:0; }
.author-links { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.author-links a { display:block; padding:22px; border:1px solid #dadde0; border-radius:8px; }
.author-links a:hover { background:#f6f7f7; }
.author-links strong { display:block; font-size:20px; margin-bottom:6px; }
.author-links span { font-size:14px; color:#626870; }
.game-follow { position:fixed; bottom:0; left:0; right:0; z-index:120; height:calc(40px + env(safe-area-inset-bottom,0px)); padding:0 10px env(safe-area-inset-bottom,0px); display:flex; align-items:center; justify-content:center; gap:12px; border-top:1px solid #dce0e4; background:#fff; color:#30343b; font:13px/1.4 Arial,Meiryo,sans-serif; }
.game-follow a { display:inline-flex; align-items:center; min-height:36px; font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.game-page,.embedded-game { --follow-height:calc(40px + env(safe-area-inset-bottom,0px)); padding-bottom:var(--follow-height); }
.game-page .player { height:calc(100vh - var(--game-bar-height) - var(--follow-height)); height:calc(100svh - var(--game-bar-height) - var(--follow-height)); }
.game-page .player:fullscreen { width:100%; height:100%; }
.embedded-game > iframe { height:calc(100vh - var(--follow-height)); height:calc(100dvh - var(--follow-height)); }
.game-page #ksk-language-control:not(.ksk-inline),.embedded-game #ksk-language-control:not(.ksk-inline) { bottom:calc(var(--follow-height) + 8px); }
#games { scroll-margin-top:160px; }
@media(max-width:700px) {
 body:not(.game-page):not(.embedded-game) .header { gap:8px 10px; padding:10px 0 0; }
 body:not(.game-page) .header .brand { font-size:20px; gap:6px; }
 body:not(.game-page) .header .site-icon { width:32px; height:32px; }
 .header .game-bar-brand-name { flex-direction:row; }
 .header > .nav { gap:0 16px; }
 .header .nav > a { font-size:13px; padding:10px 0; }
 .header .nav #ksk-language-control { margin-left:auto; font-size:12px; padding:2px; }
 .header #ksk-language-select { padding:4px; max-width:88px; }
 .header > .follow-link { font-size:12px; min-height:38px; padding:6px 9px; }
 .board-grid { grid-template-columns:1fr; gap:24px; }
 .board-info { padding:18px; }
 .board-info h2 { font-size:22px; }
 .author-links { grid-template-columns:1fr; }
 .shop-heading h1,.profile-heading h1 { font-size:24px; }
 .game-follow { gap:8px; font-size:12px; }
}
@media(max-width:420px) {
 body:not(.game-page) .header .brand { font-size:18px; }
 .header > .nav { gap:0 12px; }
 .header .nav #ksk-language-control { margin:0 0 4px auto; }
 .author-intro { gap:16px; }
 .author-intro img { width:76px; height:76px; }
}
