/* Main catalogue only; keep game and round selection proportions. */
:root{--bg:#f5f6f8;--card:#fff;--ink:#172333;--blue:#244fc1}
body{font-family:Inter,'Segoe UI',Arial,sans-serif}.layout{display:block!important;width:100%;max-width:1600px;padding:0 clamp(16px,3vw,48px);box-sizing:border-box}main{padding:0;width:100%}
.home-header{height:84px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dde1e8;margin-bottom:36px}.home-brand{font-size:23px;font-weight:800;letter-spacing:-.8px;color:var(--ink);text-decoration:none}.home-brand span{color:var(--blue)}.home-edition{font-size:11px;letter-spacing:1.5px;color:#687488;text-transform:uppercase}
.home-heading{font-family:inherit;font-size:clamp(30px,4vw,46px);font-weight:750;letter-spacing:-1.6px;line-height:1.15;margin:0 0 24px}.home-tools{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:28px}.home-tools input,.home-tools select{font:inherit;background:var(--card);color:var(--ink);border:1px solid #d5dbe5;border-radius:10px;padding:13px 16px;margin:0}.home-tools input{flex:1;min-width:180px;width:auto}.home-tools select{min-width:160px}
#grid{grid-template-columns:minmax(0,1fr);gap:22px;padding-bottom:40px}.home-card{min-width:0;border-radius:14px;overflow:hidden;background:var(--card);border:1px solid #e1e5ec;box-shadow:0 3px 12px #10203004}.home-photo{display:block;position:relative;width:100%;aspect-ratio:16/10;padding:0;border:0;background:#e8edf5;overflow:hidden}.home-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .2s}.home-fallback{display:grid;place-items:center;position:absolute;inset:0;font-size:42px;letter-spacing:8px;color:#6981a6;background:linear-gradient(135deg,#e6ecf5,#f0f3f8)}.home-badge{position:absolute;bottom:12px;left:12px;z-index:1;background:#ffffffed;color:#233349;padding:5px 9px;border-radius:5px;font-size:11px;font-weight:700}
.home-card-body{padding:17px 16px}.home-title{display:block;border:0;padding:0;background:transparent;color:var(--ink);font-size:17px;font-weight:750;line-height:1.4;text-align:left;letter-spacing:-.3px}.home-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:17px;font-size:12px;color:#67758a}.home-details{border:1px solid #dbe1eb;background:transparent;color:var(--ink);border-radius:6px;padding:6px 10px;font-size:12px}
.home-photo:hover img{transform:scale(1.035)}.home-title:hover{color:var(--blue)}.home-photo:focus-visible,.home-title:focus-visible,.home-details:focus-visible{outline:3px solid var(--blue);outline-offset:-3px}#homeEmpty{padding:40px 0;color:#687488}#homeDetailsDialog{background:var(--card);color:var(--ink);border:1px solid #dde1e8;border-radius:16px;max-width:400px;width:calc(100% - 40px);padding:24px;box-sizing:border-box}#homeDetailsDialog::backdrop{background:#14223899}#homeDetailsDialog h2{font-family:inherit;font-size:22px;margin-bottom:16px}#homeDetailsClose{background:var(--blue);color:white;padding:10px 20px;border:0;border-radius:8px}
#play,#end{max-width:720px;margin:0 auto}#expansionStatus{font-size:11px;margin:0;padding-bottom:16px}.ad,.slot{display:none!important}
@media(min-width:550px){#grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:900px){#grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(min-width:1200px){#grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(min-width:1600px){#grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:549px){.home-header{height:68px;margin-bottom:26px}.home-edition{display:none}.home-tools select{width:100%}.home-card-body{padding:17px}.home-title{font-size:18px}}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]){--bg:#121923;--card:#1b2532;--ink:#e9edf3;--blue:#95b2ff}.home-card,.home-header{border-color:#344154}.home-tools input,.home-tools select,.home-details{border-color:#3a475b}.home-card-bottom{color:#a4b0c2}}
@media(prefers-reduced-motion:reduce){.home-photo img{transition:none}}
/* Homepage pair only: retain the outer card geometry and existing action overlays. */
.home-photo:has(>.home-photo-half){display:flex}
.home-photo>.home-photo-half{display:block;position:relative;flex:0 0 50%;width:50%;height:100%;min-width:0;overflow:hidden;background:linear-gradient(145deg,#233b55,#36465d 45%,#172230)}
.home-photo-half>.home-pair-fallback{position:absolute;inset:0;display:grid;place-items:center;padding:8px;color:#bbc6d6;font-size:11px;text-align:center}
.home-photo-half>.home-pair-fallback[hidden]{display:none}
.home-periods{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 14px}
.home-periods[hidden]{display:none}
.home-read-status{margin:12px 0;color:var(--ink);font-size:13px}

/* D.png left-page composition only. Game/VS selectors remain unchanged. */
body:has(#start:not(.hide)){background:#fff}.home-header{height:74px;margin:0;border-bottom:0;gap:24px}.home-brand{font-size:24px;letter-spacing:-.7px}.home-brand span{color:inherit}.home-edition{display:none}.home-nav{display:flex;align-items:center;gap:28px;font-size:14px}.home-nav a{color:var(--ink);text-decoration:none}.home-nav .current{color:#1267ff;font-weight:700}
#start .home-hero{height:390px;position:relative;overflow:hidden;border-radius:12px;margin-bottom:0;background:#253b3b}
#start .hero-image{width:100%;height:100%;object-fit:cover;object-position:center 54%;position:absolute;inset:0}
#start .home-hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,24,38,.88),rgba(8,24,38,.42) 48%,rgba(8,24,38,.06))}
#start .hero-content{position:relative;z-index:1;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:36px clamp(24px,4vw,64px);color:#fff}
#start .hero-title{font-family:Inter,'Segoe UI',Arial,sans-serif;color:white;font-size:clamp(42px,5vw,68px);letter-spacing:-2px;line-height:1.02;font-weight:800;margin:0 0 16px}#start .hero-content p{font-size:15px;font-weight:400;margin:0 0 22px;line-height:1.5}#heroStart{border:0;background:#1267ff;color:white;border-radius:999px;padding:12px 26px;font-size:14px;font-weight:700}
#start .home-tools{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0;padding:18px 0}#homeTabs{display:flex;gap:8px;overflow-x:auto;min-width:0;padding:3px 0}.home-tab{background:transparent;border:0;border-radius:7px;color:var(--ink);padding:10px 20px;white-space:nowrap;font-size:13px}.home-tab[aria-pressed=true]{background:#1267ff;color:white}#start .home-tools input{flex:0 1 240px;min-width:150px;font-size:13px;padding:10px 14px;background:#f5f7fa;border:0}
#start #grid{grid-template-columns:minmax(0,1fr);gap:18px;padding-bottom:40px}.home-card{position:relative;aspect-ratio:1.3;border:0;border-radius:12px;box-shadow:none;overflow:hidden;background:#243143}.home-photo{height:100%;aspect-ratio:auto;background:#243143}.home-photo img{object-fit:cover}.home-fallback{background:linear-gradient(145deg,#233b55,#36465d 45%,#172230);font-size:0;letter-spacing:0}.home-card:has(.home-photo:not(:has(img))) .home-fallback:after{content:'COMING SOON';color:#bbc6d6;font-size:clamp(16px,2vw,24px);letter-spacing:3px;font-weight:700;position:absolute;top:30%;left:0;right:0;text-align:center}
.home-card-body{position:absolute;bottom:0;left:0;right:0;z-index:2;padding:64px 18px 16px;background:linear-gradient(transparent,rgba(0,0,0,.68) 40%,rgba(0,0,0,.92));pointer-events:none}.home-title{font-size:19px;color:#fff;line-height:1.3;pointer-events:auto}.home-title:hover{color:#fff;text-decoration:underline}.home-description{color:#e9edf3;font-size:12px;font-weight:400;margin:6px 0 0;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.home-card-bottom{margin-top:10px;color:#d4dce6;font-size:11px}.home-details{pointer-events:auto;color:white;border-color:#ffffff40;padding:4px 9px;background:#ffffff08;font-size:11px}.home-badge{bottom:auto;top:14px;left:14px;padding:5px 8px;background:#f38c0b;color:#fff;font-size:10px;letter-spacing:.3px;border-radius:6px}
.home-photo:focus-visible,.home-title:focus-visible,.home-details:focus-visible,.home-tab:focus-visible,#heroStart:focus-visible{outline:3px solid #83b4ff;outline-offset:-3px}
@media(min-width:640px){#start #grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:1000px){#start #grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.home-header{height:64px}.home-brand{font-size:20px}.home-nav{gap:14px;font-size:12px}#start .home-hero{height:310px}#start .hero-title{font-size:44px}#start .home-tools{align-items:stretch;flex-direction:column;gap:10px}#start .home-tools input{flex:auto;width:100%;box-sizing:border-box}.home-tab{padding:10px 15px}.home-card{aspect-ratio:1.35}.home-title{font-size:18px}.home-card-body{padding:64px 15px 15px}}
@media(prefers-color-scheme:dark){body:has(#start:not(.hide)){background:var(--bg)}#start .home-tools input{background:#1b2532}}

.home-card[data-category="actor"] .home-badge{background:#116bd6}.home-card[data-category="actress"] .home-badge{background:#6441a4}.home-card[data-category="singer"] .home-badge{background:#ad2f86}.home-card[data-category="others"] .home-badge{background:#526171}
