/* V8: one title and real gameplay in a square catalog tile. */
.catalog-page [hidden]{display:none!important}
.catalog-reloading{scroll-behavior:auto!important;overflow-anchor:none}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.catalog-page .header-inner{min-height:64px;gap:24px}
.catalog-page .header-inner nav a{padding-block:18px}
.catalog-page .nav-active:after{bottom:8px}
.catalog-page .games-section{padding-top:24px;padding-bottom:40px}
.catalog-page .section-line{margin-bottom:6px;align-items:center;flex-direction:row;gap:12px}
.catalog-page .section-line h1{font-size:1.75rem;line-height:1.4;letter-spacing:-.5px;margin:0}
.catalog-page .section-note{font-size:.8125rem;white-space:nowrap}
.catalog-caption{font-size:.9375rem;line-height:1.5;color:var(--muted);margin:0 0 8px}
.language-switch{display:flex;flex:none;border:1px solid var(--line);border-radius:9px;padding:3px;gap:3px;background:var(--paper)}
.language-switch button{border:0;background:transparent;border-radius:6px;min-height:38px;padding:6px 11px;color:var(--muted);font-size:.8125rem;font-weight:700}
.language-switch button[aria-pressed=true]{background:var(--blue);color:#fff}
.catalog-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:18px 0 0;font-size:.875rem}
.catalog-toolbar>label{font-weight:700}
.catalog-toolbar select{font:inherit;color:var(--ink);border:1px solid var(--line);background:#fff;border-radius:8px;min-height:44px;padding:8px 32px 8px 12px}
.catalog-toolbar select:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.count-guide{display:inline-flex;align-items:center;gap:5px;margin-left:auto;color:var(--muted);font-size:.8125rem;text-decoration:underline;text-underline-offset:3px}
.count-icon{width:20px;height:20px;flex:none}
.sort-note{min-height:1.5em;font-size:.8125rem;line-height:1.5;color:var(--muted);margin:5px 0 18px}
.motion-toggle{display:inline-flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:24px;background:#fff;color:var(--ink);padding:7px 12px;min-height:44px;font-size:.75rem;white-space:nowrap}
.motion-toggle strong{font-size:.6875rem;min-width:23px}
.motion-switch{display:block;position:relative;width:32px;height:19px;background:#8796ac;border-radius:20px}
.motion-switch:before{content:'';position:absolute;top:3px;left:3px;width:13px;height:13px;border-radius:50%;background:#fff;transition:transform .2s}
.motion-toggle[aria-pressed=true] .motion-switch{background:var(--blue)}
.motion-toggle[aria-pressed=true] .motion-switch:before{transform:translateX(13px)}
.catalog-page .game-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;overflow-anchor:none}
.catalog-page .game-card{position:relative;isolation:isolate;display:block;min-width:0;aspect-ratio:1;border:0;border-radius:clamp(22px,3vw,42px);overflow:hidden;background:var(--tile,#c9dcf8);color:var(--type,var(--ink));container-type:inline-size;box-shadow:0 2px 0 #192b4510,0 12px 22px -15px #192b4555;transition:transform .2s,box-shadow .2s}
.catalog-page .game-card:hover{transform:translateY(-4px);box-shadow:0 16px 24px -15px #192b4566}
.catalog-page .game-card:focus-within{outline:3px solid var(--blue);outline-offset:4px}
.catalog-page .visual-link{display:block;position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;border-radius:inherit;background:none;color:inherit;white-space:normal;text-decoration:none}
.catalog-page .visual-link:hover{background:none}
.catalog-page .visual-link:focus-visible{outline:3px solid var(--blue);outline-offset:-5px}
.catalog-page .game-card h2{position:absolute;left:6%;right:6%;top:3.5%;height:20%;display:flex;align-items:center;justify-content:flex-start;margin:0;font-family:var(--title-font,inherit);font-size:clamp(15px,11cqw,40px);font-weight:900;line-height:1.1;letter-spacing:-.025em;overflow-wrap:anywhere;word-break:normal;white-space:normal}
.catalog-page .bread{--title-font:'Arial Rounded MT Bold','Yu Gothic',sans-serif}
.catalog-page .kanji,.catalog-page .summon,.catalog-page .melos{--title-font:'Yu Mincho','Noto Serif JP',serif}
.catalog-page .melos h2{font-style:italic}
.catalog-page .map h2{letter-spacing:-.05em}.catalog-page .ark h2{letter-spacing:.01em}.catalog-page .money h2{font-weight:1000}
.catalog-page .game-cover{position:absolute;left:3%;right:3%;bottom:3%;width:94%;height:72%;min-height:0;border:0;border-radius:15px;background:#17263b;overflow:hidden;isolation:isolate}
.catalog-page .game-cover>img,.catalog-page .game-cover>video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:var(--media-fit,contain);object-position:var(--media-position,50% 50%);transform:none!important;transition:none;pointer-events:none}
.catalog-page .game-cover>video{opacity:0}.catalog-page .playing .game-cover>video{opacity:1}
.catalog-page .map-attribution{position:absolute;z-index:3;right:5%;top:26.5%;padding:2px 4px;border-radius:3px;background:#fffffff0;color:#192b45;font-size:8px;line-height:1.4;white-space:nowrap}
.catalog-page .map-attribution a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.catalog-page .player-count{position:absolute;z-index:2;left:7px;bottom:7px;display:flex;align-items:center;gap:5px;max-width:calc(100% - 57px);min-width:0;margin:0;padding:4px 8px;border:1px solid #ffffff55;border-radius:24px;background:#102036d9;color:#fff;box-shadow:0 1px 5px #0003;line-height:1.3;pointer-events:none}
.catalog-page .player-count .count-icon{width:17px;height:17px;color:#fff}
.catalog-page .player-count strong{font-size:clamp(10px,3.8cqw,14px);font-weight:700;color:#fff;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;white-space:normal}
.catalog-page .preview-toggle{position:absolute;right:5%;bottom:5%;z-index:3;width:40px;height:40px;padding:9px;display:grid;place-items:center;border-radius:50%;border:1px solid #ffffffa0;background:#fffffff0;color:var(--ink);box-shadow:0 1px 7px #10203644}
.preview-toggle svg{width:20px;height:20px;pointer-events:none}.preview-toggle[aria-pressed=true]{background:var(--blue);color:white;border-color:#fff}
.preview-toggle[aria-pressed=true]:after{content:'Ⅱ';position:absolute;inset:0;display:grid;place-items:center;background:var(--blue);border-radius:50%;font-size:18px}
.catalog-pagination{display:flex;flex-direction:column;align-items:center;gap:10px;margin:30px 0 16px;overflow-anchor:none}
#catalog-status{margin:0;color:var(--muted);font-size:.875rem}
#catalog-more{min-width:220px;min-height:48px;padding:10px 24px;border:1px solid var(--blue);border-radius:9px;background:white;color:var(--blue);font-weight:700}
#catalog-more:hover{background:#eaf0ff}
.counts-note{font-size:.8125rem;line-height:1.8;max-width:72em;color:var(--muted);margin:16px auto 0;scroll-margin-top:24px}
.counts-note a{text-decoration:underline;text-underline-offset:3px;color:var(--blue)}
.catalog-page .play-note{margin:18px 0 0}
@media(max-width:760px){
 .catalog-page .shell{width:calc(100% - 24px)}
 .catalog-page .header-inner{min-height:56px;flex-wrap:wrap;padding-block:8px;gap:4px 8px}
 .catalog-page .brand{font-size:1.25rem;gap:7px;letter-spacing:-.5px}.catalog-page .brand-icon{width:30px;height:30px}
 .catalog-page .header-inner nav{order:2;width:100%;margin:0;justify-content:flex-start;gap:22px}
 .catalog-page .header-inner nav a{font-size:.875rem;min-height:44px;display:flex;align-items:center;padding:6px 0}.catalog-page .nav-active:after{bottom:1px}
 .language-switch{margin-left:auto}.language-switch button{padding-inline:9px}
 .catalog-page .games-section{padding-top:18px;padding-bottom:30px}.catalog-page .section-line h1{font-size:1.3rem}.catalog-caption{font-size:.75rem}
 .catalog-toolbar{gap:7px;margin-top:12px}.catalog-toolbar>label{font-size:.8125rem}.catalog-toolbar select{max-width:130px}.count-guide{font-size:.75rem}
 .motion-toggle{margin-left:auto;font-size:.6875rem;padding-inline:9px;gap:6px}.count-guide{margin-left:0}.sort-note{margin-bottom:14px}
 .catalog-page .game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}
 .catalog-page .game-card{border-radius:22px}
 .catalog-page .game-card h2{left:5%;right:5%;top:2.5%;height:18.5%;font-size:10cqw;line-height:1.13;letter-spacing:-.015em;overflow-wrap:normal;line-break:strict;text-wrap:balance}
 .catalog-page .game-card h2.title-curated{white-space:pre;text-wrap:nowrap}
 .catalog-page .game-cover{left:2%;right:2%;bottom:2%;width:96%;height:76%;border-radius:10px}
 .catalog-page .map-attribution{top:23%;right:4%}
 .catalog-page .player-count{left:5px;bottom:5px;padding:3px 5px;gap:3px;max-width:calc(100% - 43px)}.catalog-page .player-count .count-icon{width:13px;height:13px}
 .catalog-page .preview-toggle{width:32px;height:32px;padding:6px}.preview-toggle svg{width:17px;height:17px}
}
@media(max-width:350px){.catalog-page .shell{width:calc(100% - 20px)}.catalog-page .game-grid{gap:14px 10px}.catalog-page .game-card{border-radius:19px}.catalog-page .section-note{font-size:.75rem}.catalog-page .player-count strong{font-size:10px}}
@media(prefers-reduced-motion:reduce){.catalog-page *{scroll-behavior:auto!important;transition:none!important}.catalog-page .game-card:hover{transform:none}}
.development-section{padding-block:32px 56px;border-top:1px solid var(--line)}
.development-heading{margin-bottom:24px}.development-heading h2{margin:0;font-size:1.65rem}.development-heading .eyebrow{margin-bottom:6px}
.development-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.development-card{overflow:hidden;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:16px;background:#fff}
.development-image{height:300px;background:#fcf2df;overflow:hidden}
.development-image img{display:block;width:100%;height:100%;object-fit:contain}
.rpg-art{background:#071319}.rpg-art img{object-fit:cover}
.development-copy{display:flex;flex-direction:column;align-items:flex-start;flex:1;padding:28px}
.development-copy .status-label{display:inline-block;background:#edf2ff;color:#28468a;border-radius:5px;padding:4px 9px;font-size:.75rem;font-weight:700;margin-bottom:12px}
.development-copy h3{font-size:1.5rem;line-height:1.4;margin:0 0 12px}
.development-copy p{font-size:.9375rem;color:var(--muted);margin:0 0 18px}
.development-copy .development-tagline{font-weight:700;color:var(--ink)}
.development-copy .yellow-button{margin-top:auto;display:inline-flex;align-items:center;justify-content:center;background:var(--yellow);color:var(--ink);font-weight:700;min-height:44px;padding:9px 18px;border-radius:8px;font-size:.875rem}
@media(max-width:720px){
 .catalog-page .header-inner{gap:4px 8px;padding-block:8px}
 .catalog-page .header-inner nav{order:2;width:100%;margin:0;justify-content:flex-start;gap:22px}
 .language-switch{margin-left:auto}.language-switch button{padding-inline:9px}
 .catalog-toolbar{gap:7px;margin-top:12px}.catalog-toolbar>label{font-size:.8125rem}.count-guide{font-size:.75rem}
 .development-grid{grid-template-columns:1fr;gap:20px}.development-image{height:auto;aspect-ratio:16/10}.development-copy{padding:22px}.development-copy h3{font-size:1.35rem}
 .development-heading h2{font-size:1.3rem}.development-section{padding-block:24px 36px}
}


/* Korean keeps words readable while allowing long text to wrap. */
html[lang="ko"] body{font-family:"Malgun Gothic","Apple SD Gothic Neo","Noto Sans KR",system-ui,sans-serif;word-break:keep-all;overflow-wrap:anywhere}
.language-switch button[lang="ko"]{font-family:"Malgun Gothic","Apple SD Gothic Neo",system-ui,sans-serif}
@media(max-width:400px){.catalog-page .language-switch{order:3;margin:0 0 4px}.catalog-page .header-inner nav{order:2}}

/* Keep the meaning readable on both static and animated cards. */
.catalog-page .player-count strong{font-size:clamp(11px,3.8cqw,14px)}
.catalog-page .player-count .count-icon{flex-shrink:0}

/* V10: one-line names, edge-to-edge action crops, no editorial captions. */
.catalog-page .game-card h2{top:2%;height:13%;white-space:nowrap!important;text-wrap:nowrap;overflow-wrap:normal;word-break:normal;line-height:1.1}
.catalog-page .game-cover{left:0;right:0;bottom:0;width:100%;height:84%;border-radius:0;background:var(--tile)}
.catalog-page .game-cover>img,.catalog-page .game-cover>video{object-fit:var(--media-fit,cover)}
.catalog-page .map-attribution{top:17%;right:2%}

/* Sheep Fence dedicated link image must retain its complete title and board. */
.catalog-page .game-card[data-game-id="mute-line"]{--media-fit:cover;--media-position:50% 50%}


.catalog-page .game-card[data-game-id="self-checkout"]{--media-fit:cover;--media-position:50% 50%}
