/* Limit thumbnail frames to news and pickup cards on the homepage. */
body #news .news-list .news-item>.news-thumbnail,
body #pickup .pickup-card>a>img{display:block;width:100%;height:auto!important;aspect-ratio:16/9;object-fit:cover!important;object-position:center center;box-sizing:border-box}
.namako-back-to-top{position:fixed;right:max(16px,env(safe-area-inset-right,0px));bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:35;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;width:52px;height:56px;min-width:48px;min-height:48px;margin:0;padding:4px;border:2px solid #90a96a;border-radius:12px;background:#fff8e5;color:#53351e;box-shadow:0 3px 9px #53351e25;font:700 24px/1.1 system-ui,sans-serif;cursor:pointer;touch-action:manipulation}
.namako-back-to-top small{font-size:11px;line-height:1.2}.namako-back-to-top[hidden]{display:none!important}.namako-back-to-top:hover{background:#eaf2d5}.namako-back-to-top:focus-visible{outline:3px solid #8b5c20;outline-offset:3px}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}.namako-back-to-top{transition:none!important}}

/* Scoped content improvements; no selectors apply inside game play pages. */
html{scroll-padding-top:100px}body{overflow-wrap:break-word}main{min-width:0}main img{max-width:100%}
:is(a,button,summary,input,textarea,select):focus-visible{outline:3px solid #ad4b00!important;outline-offset:4px}
header nav a[aria-current="page"]{text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:7px}
.header .mobile-menu[open]>summary{background:#dcebb9;border-color:#65843d}
.header .mobile-menu nav{max-width:calc(100vw - 32px);max-height:70svh;overflow-y:auto;overscroll-behavior:contain}
.namako-common-footer .footer-line{white-space:normal;flex-wrap:wrap;line-height:1.7}
:is(.news-item,.pickup-card,.home-game-card,.release-card,.grid>.card){min-width:0;transition:box-shadow .18s ease,transform .18s ease}
@media(hover:hover){:is(.news-item,.pickup-card,.home-game-card,.release-card,.grid>.card):hover{box-shadow:0 8px 22px #53351e25;transform:translateY(-2px)}}
:is(.news-item,.pickup-card,.home-game-card,.release-card,.grid>.card):focus-within{box-shadow:0 0 0 3px #91ad55}
.news-item p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;line-height:1.75}
.home-game-card img,.grid>.card>.preview{aspect-ratio:16/9;object-fit:cover}
.release-player,.namako-video-shell{aspect-ratio:16/9;position:relative;width:100%;overflow:hidden;border-radius:16px;background:#233b23}
.release-player iframe,.namako-video-shell iframe{width:100%;height:100%;border:0}
.namako-video-preview{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;cursor:pointer;background:#233b23;color:white}
.namako-video-preview img{width:100%;height:100%;object-fit:cover;border-radius:16px}
.namako-video-preview span{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);padding:10px 18px;background:#16331ee8;border-radius:24px;font-weight:700}
.namako-video-preview[hidden],.namako-video-shell iframe[hidden]{display:none}
.namako-video-fallback{display:inline-block;font-size:.8rem;line-height:1.6;margin:6px 0 12px;position:relative;z-index:1}
.namako-single-link-card{position:relative}.namako-stretched-link::after{content:"";position:absolute;inset:0;border-radius:inherit}
.namako-image-unavailable{background:#e7edd7;object-fit:contain}.namako-image-fallback{display:block;color:#53351e;background:#e7edd7;font-size:.85rem;padding:6px 10px;border-radius:8px}
.release-caption time{font-size:.875rem;line-height:1.6;white-space:normal}.release-caption h2{line-height:1.5;letter-spacing:.02em}
article p,.article-page p{line-height:1.85;letter-spacing:.02em}
.actions{gap:12px}.actions a{min-height:44px}.grid>.card .namako-game-controls{font-size:.85rem;color:#53351e;margin:0 0 12px;flex:none}
.namako-game-status{display:inline-block;width:fit-content;padding:2px 9px;border-radius:20px;background:#e0eec5;color:#294318;font-size:.75rem;font-weight:700}
@media(max-width:700px){html{scroll-padding-top:16px}.wrap,.article-page{max-width:100%;min-width:0}.article-page h1{font-size:clamp(23px,6vw,30px)}.article-page h2{font-size:clamp(19px,5vw,25px)}.release-caption h2{font-size:clamp(17px,4.8vw,22px)}.namako-common-footer .footer-line{font-size:11px}.news-item p{line-height:1.65}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Compact, right-aligned YouTube destination links. */
a.namako-video-fallback[href^="https://www.youtube.com/"]{display:block;font-size:11px;line-height:1.6;text-align:right;margin:4px 0 8px}

/* The header divider uses the same warm border as the content cards. */
:root body>.header{border-bottom-color:#e1cf9e!important}
:root body>main>section.intro:has(>.inner){border-bottom-color:#e1cf9e!important}
:root body section.intro:has(>.inner){border-bottom-color:#e1cf9e!important}

/* Free materials, game library, and music library share the compact heading band. */
:root body main.wrap:has(>.grid[aria-label="?????"]),
:root body main.article-page:has(>.discography-list){
 box-sizing:border-box;width:calc(100% - 48px);max-width:1120px;
 margin-left:auto;margin-right:auto;margin-top:0!important;padding:0!important;
}
:root body main.wrap:has(>.grid[aria-label="?????"]){margin-top:0!important;padding-top:18px!important}
:root body main.wrap:has(>.grid[aria-label="?????"])>.eyebrow{display:none}
:root body main.wrap:has(>.grid[aria-label="?????"])>h1,
:root body main.article-page:has(>.discography-list)>.article-hero h1{
 font-size:clamp(32px,5vw,52px)!important;line-height:1.2!important;
 margin:0 0 10px!important;color:#53351e;font-weight:800;
}
:root body main.wrap:has(>.grid[aria-label="?????"])>p.intro{
 width:100%;max-width:none;background:transparent;margin:0 0 26px!important;
 padding:0 0 14px!important;border:0;border-bottom:2px solid #e1cf9e!important;
 font-size:17px;line-height:1.8;color:#765f47;
}
:root body main.article-page:has(>.discography-list)>.article-hero{
 box-sizing:border-box;width:100%;max-width:none;margin:0 0 26px!important;
 padding:18px 0 14px!important;background:transparent;border:0!important;
 border-bottom:2px solid #e1cf9e!important;border-radius:0;min-height:0;
}
:root body main.article-page:has(>.discography-list)>.article-hero>.article-kicker{display:none}
:root body main.article-page:has(>.discography-list)>.article-hero>p:not(.article-kicker){
 margin:0!important;font-size:17px;line-height:1.8;color:#765f47;
}
@media(max-width:700px){
 :root body main.wrap:has(>.grid[aria-label="?????"]),
 :root body main.article-page:has(>.discography-list){width:calc(100% - 40px)}
 :root body main.wrap:has(>.grid[aria-label="?????"]){padding-top:16px!important}
 :root body main.wrap:has(>.grid[aria-label="?????"])>h1,
 :root body main.article-page:has(>.discography-list)>.article-hero h1{font-size:34px!important}
 :root body main.wrap:has(>.grid[aria-label="?????"])>p.intro{padding-bottom:12px!important;font-size:16px}
 :root body main.article-page:has(>.discography-list)>.article-hero{padding:16px 0 12px!important}
 :root body main.article-page:has(>.discography-list)>.article-hero>p:not(.article-kicker){font-size:16px}
}
